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

 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 (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.
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 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 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
 @param {!_ZonePrivate} api
 @param {?} target
 @param {string} targetName
 @param {string} method
 @param {!Array<string>} callbacks
 @return {void}
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
var g,ca=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ca);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b);this.reportErrorToServer=!0},da=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");ca.call(this,c+a[d])},fa=function(a){ea.setTimeout(function(){throw a;},0)},ha=function(){var a=ea.navigator;return a&&(a=a.userAgent)?a:""},ja=function(a){return ia(ha(),a)},aaa=function(){return ja("Trident")||
ja("MSIE")},la=function(){return ja("Firefox")||ja("FxiOS")},baa=function(){return ja("Safari")&&!(ma()||ja("Coast")||ja("Opera")||ja("Edge")||ja("Edg/")||ja("OPR")||la()||ja("Silk")||ja("Android"))},ma=function(){return(ja("Chrome")||ja("CriOS"))&&!ja("Edge")||ja("Silk")},caa=function(){return ja("Android")&&!(ma()||la()||ja("Opera")||ja("Silk"))},daa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});return function(c){return b[c.find(function(d){return d in b})]||""}},eaa=function(a){var b=
ha();if("Internet Explorer"===a){if(aaa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);b=daa(c);switch(a){case "Opera":if(ja("Opera"))return b(["Version",
"Opera"]);if(ja("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(ja("Edge"))return b(["Edge"]);if(ja("Edg/"))return b(["Edg"]);break;case "Chromium":if(ma())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&la()||"Safari"===a&&baa()||"Android Browser"===a&&caa()||"Silk"===a&&ja("Silk")?(b=c[2])&&b[1]||"":""},na=function(a){a=eaa(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])},oa=function(){return ja("iPhone")&&!ja("iPod")&&!ja("iPad")},qa=function(){return oa()||
ja("iPad")||ja("iPod")},faa=function(){var a=ha(),b="";ja("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):qa()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):ja("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):ra(ha(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):ja("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):ja("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&
a[1]);return 0<=sa(b||"",12)},ta=function(a){return a[a.length-1]},gaa=function(a,b){var c=0;ua(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},haa=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},ya=function(a,b){return 0<=va(a,b)},za=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Ea=function(a,b){b=va(a,b);var c;(c=0<=b)&&Ba(a,b);return c},Ba=function(a,b){Array.prototype.splice.call(a,
b,1)},Fa=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&&Ba(a,b)},Ga=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[]},Ia=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ha(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)}},jaa=function(a,b,c,d){return Array.prototype.splice.apply(a,iaa(arguments,
1))},iaa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Na=function(a,b,c){b=b||a;var d=function(q){return La(q)?"o"+Ma(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},Pa=function(a,b){a.sort(b||kaa)},laa=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||kaa;Pa(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},kaa=function(a,b){return a>b?1:a<b?-1:0},maa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},naa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},paa=function(a){if(null==a||Ra(a))return a;if("string"===typeof a)return oaa(a);Sa(a);return null},Ra=function(a){return qaa&&null!=a&&a instanceof Uint8Array},saa=function(){return raa||(raa=new Uint8Array(0))},taa=function(a){if(a!==
Ta)throw Error("w");},Wa=function(a,b){if(Va)return a[Va]|=b;if(void 0!==a.internalArrayState)return a.internalArrayState|=b;Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b},Xa=function(a,b){Va?a[Va]&&(a[Va]&=~b):void 0!==a.internalArrayState&&(a.internalArrayState&=~b)},Ya=function(a){var b;Va?b=a[Va]:b=a.internalArrayState;return null==b?0:b},ab=function(a,b){Va?a[Va]=b:void 0!==a.internalArrayState?a.internalArrayState=b:Object.defineProperties(a,
{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}})},bb=function(a){Wa(a,1);return a},cb=function(a){return!!(Ya(a)&2)},db=function(a){Wa(a,2);return a},eb=function(a){Wa(a,16);return a},uaa=function(a,b){ab(b,(a|0)&-51)},vaa=function(a,b){ab(b,(a|18)&-41)},gb=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},jb=function(a,b){if(null!=a)if("string"===typeof a)a=a?new hb(a,Ta):ib();else if(a.constructor!==hb)if(Ra(a))a=a.length?new hb(new Uint8Array(a),
Ta):ib();else{if(!b)throw Error();a=void 0}return a},waa=function(a){a instanceof hb&&(taa(Ta),a=a.value_||"");return a},xaa=function(a){return Array.isArray(a)&&!!(Ya(a)&1)&&!a.length},yaa=function(a){var b=a.length;(b=b?a[b-1]:void 0)&&gb(b)?b.g=1:(b={},a.push((b.g=1,b)))},kb=function(a){return a},lb=function(a){return a},zaa=function(a){return a},Aaa=function(a){return a},Baa=function(a){return a},Caa=function(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.messagePrototypeMarker===
nb)return a;if(d)return new b(a);if(c)return new b},Daa=function(a,b){a=""+a;b=""+b;return a>b?1:a<b?-1:0},Eaa=function(a,b,c,d){a=Caa(a,b,!0);c?db(a.internalArray_):d&&(a=ob(a));return a},Faa=function(a){return a},Gaa=function(a){return a},Haa=function(a){return a},Jaa=function(a,b){a=a||{};b=b||{};var c={},d;for(d in a)c[d]=0;for(var e in b)c[e]=0;for(var f in c)if(!Iaa(a,f,a[f],b,f,b[f]))return!1;return!0},Kaa=function(a){return a&&"object"===typeof a?a.internalArray_||a:a},Maa=function(a,b){if(null==
b)return!1;a=a.map_;b=b.map_;if(a.size!=b.size)return!1;a=a.entries();for(var c;!(c=a.next()).done;)if(c=c.value,!Laa(c[1],b.get(c[0])))return!1;return!0},Oaa=function(a,b,c,d){if(null==d)d=[];else if(!Array.isArray(d))return null;return b[c]=Naa(a,d)},Iaa=function(a,b,c,d,e,f){c=waa(c);f=waa(f);c=Kaa(c);f=Kaa(f);if(c==f)return!0;if(qaa){var h=Ra(c),k=Ra(f);if(h||k){if(h)a=c;else if("string"===typeof c)a=paa(c);else return!1;if(!k)if("string"===typeof f)f=paa(f);else return!1;if(a.length!==f.length)return!1;
for(k=0;k<a.length;k++)if(a[k]!==f[k])return!1;return!0}}if(c instanceof pb)return Maa(c,f instanceof pb?f:Oaa(c,d,e,f));if(f instanceof pb)return Maa(f,Oaa(f,a,b,c));if(null==c&&xaa(f)||null==f&&xaa(c))return!0;if(!La(c)||!La(f))return"number"===typeof c&&isNaN(c)||"number"===typeof f&&isNaN(f)?String(c)==String(f):!1;if(c.constructor!=f.constructor)return!1;if(c.constructor===Array){k=c;b=a=void 0;c=Math.max(k.length,f.length);for(d=0;d<c;d++)if(e=k[d],h=f[d],e&&e.constructor==Object&&(a=e,e=void 0),
h&&h.constructor==Object&&(b=h,h=void 0),!Iaa(k,d,e,f,d,h))return!1;return a||b?(a=a||{},b=b||{},Jaa(a,b)):!0}if(c.constructor===Object)return Jaa(c,f);throw Error("F");},Laa=function(a,b){return Iaa(void 0,void 0,a,void 0,void 0,b)},Paa=function(a,b){qb=b;a=new a(b);qb=void 0;return a},Raa=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a)if(Array.isArray(a)){if(0!==(Ya(a)&128))return a=Array.prototype.slice.call(a),yaa(a),a}else{if(Ra(a))return rb(a);if(a instanceof
hb)return sb(a);if(a instanceof pb)return Qaa(a)}}return a},vb=function(a,b,c,d){if(null!=a){if(Array.isArray(a))a=tb(a,b,c,void 0!==d);else if(gb(a)){var e={},f;for(f in a)e[f]=vb(a[f],b,c,d);a=e}else a=b(a,d);return a}},tb=function(a,b,c,d){var e=Ya(a);d=d?!!(e&16):void 0;a=Array.prototype.slice.call(a);for(var f=0;f<a.length;f++)a[f]=vb(a[f],b,c,d);c(e,a);return a},Uaa=function(a){return vb(a,Saa,Taa)},Saa=function(a){return a.messagePrototypeMarker===nb?a.toJSON():a instanceof pb?Qaa(a,Uaa):Raa(a)},
Waa=function(a){return vb(a,Vaa,Taa)},Vaa=function(a){if(!a)return a;if("object"===typeof a){if(Ra(a))return new Uint8Array(a);if(a instanceof pb)return a.size?Naa(a,eb(Xaa(a,Waa))):[];if(a.messagePrototypeMarker===nb)return a.clone()}return a},Taa=function(a,b){a&128&&yaa(b)},wb=function(a,b,c,d){a.internalCachedImmutable_&&(a.internalCachedImmutable_=void 0);if(b>=a.pivot_||d)return Yaa(a)[b]=c,a;a.internalArray_[b+a.arrayIndexOffset]=c;(c=a.internalSparseObject_)&&b in c&&delete c[b];return a},
zb=function(a,b,c,d,e){var f=l(a,b,d);Array.isArray(f)||(f=yb);var h=Ya(f);h&1||bb(f);if(e)h&2||db(f),c&1||Object.freeze(f);else{e=!(c&2);var k=h&2;c&1||!k?e&&h&16&&!k&&Xa(f,16):(f=bb(Array.prototype.slice.call(f)),wb(a,b,f,d))}return f},Cb=function(a,b,c,d){var e=cb(a.internalArray_),f=zb(a,b,1,d,e),h=Ya(f);if(!(h&4)){Object.isFrozen(f)&&(f=bb(f.slice()),wb(a,b,f,d));for(var k=0,q=0;k<f.length;k++){var t=c(f[k]);null!=t&&(f[q++]=t)}q<k&&(f.length=q);Wa(f,5);e&&(db(f),Object.freeze(f))}!e&&(h&2||
Object.isFrozen(f))&&(f=Array.prototype.slice.call(f),Wa(f,5),Bb(a,b,f,d));return f},Zaa=function(a){return jb(a,!0)},Db=function(a,b,c,d){if(null==c)return m(a,b,yb);var e=Ya(c);if(!(e&4)){if(e&2||Object.isFrozen(c))c=Array.prototype.slice.call(c);for(var f=0;f<c.length;f++)c[f]=d(c[f]);ab(c,e|5)}return m(a,b,c)},Fb=function(a,b,c,d){Eb(a);c!==d?wb(a,b,c):wb(a,b,void 0,!1);return a},Gb=function(a,b,c,d){Eb(a);b=zb(a,b,2,!1,!1);void 0!=d?b.splice(d,0,c):b.push(c);return a},$aa=function(a,b,c,d,e,
f){a.internalWrappers_||(a.internalWrappers_={});var h=a.internalWrappers_[c],k=zb(a,c,3,d,f);if(h)f||(Object.isFrozen(h)?e||(h=Array.prototype.slice.call(h),a.internalWrappers_[c]=h):e&&Object.freeze(h));else{h=[];var q=!!(Ya(a.internalArray_)&16),t=cb(k);!f&&t&&(k=bb(Array.prototype.slice.call(k)),wb(a,c,k,d));d=t;for(var x=0;x<k.length;x++){var y=k[x];var F=b;var K=q,J=!1;J=void 0===J?!1:J;K=void 0===K?!1:K;F=Array.isArray(y)?new F(K?eb(y):y):J?new F:void 0;void 0!==F&&(d=d||cb(y),h.push(F),t&&
db(F.internalArray_))}a.internalWrappers_[c]=h;a=k;Object.isFrozen(a)||(b=Ya(a)|33,ab(a,d?b&-9:b|8));(f||e&&t)&&db(h);(f||e)&&Object.freeze(h)}return h},Hb=function(a,b,c){return Fb(a,b,c,"")},Ib=function(a,b){return null==a?b:a},bba=function(a){var b=Ya(a);if(b&2)return a;a=Kb(a,aba);vaa(b,a);Object.freeze(a);return a},Lb=function(a,b,c){c=void 0===c?vaa:c;if(null!=a){if(qaa&&a instanceof Uint8Array)return a.length?new hb(new Uint8Array(a),Ta):ib();if(Array.isArray(a)){var d=Ya(a);if(d&2)return a;
if(b&&!(d&32)&&(d&16||0===d))return ab(a,d|2),a;a=tb(a,Lb,c,!0);b=Ya(a);b&4&&b&2&&Object.freeze(a);return a}return a.messagePrototypeMarker===nb?aba(a):a instanceof pb?Naa(a,db(Xaa(a,Lb))):a}},aba=function(a){if(cb(a.internalArray_))return a;a=cba(a,!0);db(a.internalArray_);return a},cba=function(a,b){var c=a.internalArray_,d=eb([]),e=a.constructor.messageId;e&&d.push(e);0!==(Ya(c)&128)&&yaa(d);b=b||a.isImmutable()?vaa:uaa;d=Paa(a.constructor,d);a.internalUnknownFields_&&(d.internalUnknownFields_=
a.internalUnknownFields_.slice());e=!!(Ya(c)&16);for(var f=0;f<c.length;f++){var h=c[f];if(f===c.length-1&&gb(h))for(var k in h){var q=+k;if(Number.isNaN(q))Yaa(d)[q]=h[q];else{var t=h[k],x=a.internalWrappers_&&a.internalWrappers_[q];x?Mb(d,q,bba(x),!0):m(d,q,Lb(t,e,b),!0)}}else q=f-a.arrayIndexOffset,(t=a.internalWrappers_&&a.internalWrappers_[q])?Mb(d,q,bba(t),!1):m(d,q,Lb(h,e,b),!1)}return d},dba=function(a,b){if(Array.isArray(a)){var c=Ya(a),d=1;!b||c&2||(d|=16);(c&d)!==d&&ab(a,c|d)}},eba=function(a,
b){return Raa(b)},fba=function(a,b){b.internalUnknownFields_&&(a.internalUnknownFields_=b.internalUnknownFields_.slice());var c=b.internalWrappers_;if(c){b=b.internalSparseObject_;for(var d in c){var e=c[d];if(e){var f=!(!b||!b[d]),h=+d;if(Array.isArray(e)){if(e.length)for(f=Nb(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)fba(f[h],e[h])}else throw Error("H`"+Sa(e)+"`"+e);}}}},hba=function(a){if("string"===typeof a)return{buffer:oaa(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===hb)return{buffer:gba(a)||saa(),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("Q");},iba=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a},lba=function(a,b){b>>>=0;a>>>=0;if(2097151>=
b)var c=""+(4294967296*b+a);else jba?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+kba(c)+kba(a));return c},kba=function(a){a=String(a);return"0000000".slice(a.length)+a},mba=function(a,b,c){return a[Pb]||(a[Pb]=function(d,e){return b(d,e,c)})},pba=function(a){var b=a[Pb];if(!b){var c=nba(a);b=function(d,e){return oba(d,e,c)};a[Pb]=b}return b},
qba=function(a){var b=a.binaryFieldsInitializer;if(b)return pba(b);if(b=a.messageSetReaderFn)return mba(a.fieldInfo.ctor,b,a.messageSetExtensions)},rba=function(a){var b=qba(a),c=a.fieldInfo,d=a.readerWriterSelector.reader;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}},tba=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Qb in c||sba in c||0<c.length&&"function"==typeof c[0])?c:void 0},uba=function(a,b){a[0]=b},vba=function(a,
b,c,d){var e=c.reader;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},wba=function(a,b,c,d,e){var f=c.reader,h=pba(d),k=nba(d).ctor;a[b]=function(q,t,x){return f(q,t,x,k,h,e)}},xba=function(a,b,c,d,e,f,h){var k=c.reader,q=mba(d,e,f);a[b]=function(t,x,y){return k(t,x,y,d,q,h)}},nba=function(a){var b=a[Qb];if(b)return b;b=a[Qb]={};var c=uba,d=vba,e=wba,f=xba;b.ctor=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var k=a[h++];c(b,k)}for(;h<a.length;){c=a[h++];for(var q=h+1;q<a.length&&"number"!==typeof a[q];)q++;
k=a[h++];q-=h;switch(q){case 0:d(b,c,k);break;case 1:(q=tba(a,h))?(h++,e(b,c,k,q)):d(b,c,k,a[h++]);break;case 2:q=b;var t=h++;t=tba(a,t);e(q,c,k,t,a[h++]);break;case 3:f(b,c,k,a[h++],a[h++],a[h++]);break;case 4:f(b,c,k,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("R`"+q);}}Qb in a&&sba in a&&(a.length=0);return b},oba=function(a,b,c){for(;yba(b)&&4!=b.nextWireType_;){var d=b.nextField_,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=rba(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.fieldCursor_,Rb(f),
!f.discardUnknownFields){var h=f.decoder_.getCursor()-d;f.decoder_.cursor_=d;d=f.decoder_.readByteString(h);(f=e.internalUnknownFields_)?f.push(d):e.internalUnknownFields_=[d]}}return a},Sb=function(a,b){return{reader:a,writer:b}},Tb=function(a,b,c,d){return new zba(a,b,c,d)},Aba=function(a){var b=this.ctor,c=this.fieldIndex;return this.isRepeated?Nb(a,b,c,!0):Ub(a,b,c,!0)},Bba=function(a,b){var c=this.fieldIndex;return this.isRepeated?Mb(a,c,b,!0):Vb(a,c,b,!0)},Wb=function(a,b,c){for(var d=[],e=
0;e<a.length;e++)d.push(b(c,a[e]));return d},Cba=function(a,b,c,d){for(var e in c){var f=c[e],h=a.getExtension(f);if(null!=h){var k=void 0;for(k in f.fieldName)if(f.fieldName.hasOwnProperty(k))break;var q=f.toObjectFn;b[k]=q?f.isRepeated?Wb(h,q,d):q(d,h):h}}},Dba=function(a){null!=a&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},Xb=function(a){return null===a?void 0:a},Eba=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return sb(b)}):sb(a)},Yb=function(a,
b,c){for(var d in a)b.call(c,a[d],d,a)},Zb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Fba=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Gba=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Hba=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Iba=function(a,b){return null!==a&&b in a},Jba=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Kba=function(a,b){return(b=Jba(a,b))&&a[b]},
$b=function(a){for(var b in a)return!1;return!0},Lba=function(a){for(var b in a)delete a[b]},ac=function(a,b){b in a&&delete a[b]},bc=function(a,b){return null!==a&&b in a?a[b]:void 0},cc=function(a){var b={},c;for(c in a)b[c]=a[c];return b},dc=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<Mba.length;f++)c=Mba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Nba=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return Nba.apply(null,
arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Uba=function(a){if(a instanceof ec)return'url("'+fc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof gc)a=hc(a);else{a=String(a);var b=a.replace(Oba,"$1").replace(Oba,"$1").replace(Pba,"url");if(Qba.test(b)){if(b=!Rba.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&&Sba(a)}a=b?Tba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new da("Value does not allow [{;}], got: %s.",
[a]);return a},Sba=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},Tba=function(a){return a.replace(Pba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});b=(Vba(d)||ic).getTypedStringValue();return c+f+b+f+e})},Wba=function(a,b){return Zone.current.wrap(a,b)},Xba=function(a,b){for(var c=a.length-1;0<=c;c--)"function"===
typeof a[c]&&(a[c]=Wba(a[c],b+"_"+c));return a},Zba=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={$jscomp$loop$prop$name$1884:d.$jscomp$loop$prop$name$1884},e++){d.$jscomp$loop$prop$name$1884=b[e];var f=a[d.$jscomp$loop$prop$name$1884];if(f){var h=jc(a,d.$jscomp$loop$prop$name$1884);Yba(h)&&(a[d.$jscomp$loop$prop$name$1884]=function(k){return function(q){var t=function(){return q.apply(this,Xba(arguments,c+"."+k.$jscomp$loop$prop$name$1884))};
lc(t,q);return t}}(d)(f))}}},Yba=function(a){return a?!1===a.writable?!1:!("function"===typeof a.get&&"undefined"===typeof a.set):!0},bca=function(a,b,c){var d=jc(a,b);!d&&c&&jc(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=mc("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=nc[h];k||(k=nc[h]=mc("ON_PROPERTY"+h));d.set=function(q){var t=this;t||a!==oc||(t=oc);t&&("function"===typeof t[k]&&t.removeEventListener(h,
$ba),f&&f.call(t,null),t[k]=q,"function"===typeof q&&t.addEventListener(h,$ba,!1))};d.get=function(){var q=this;q||a!==oc||(q=oc);if(!q)return null;var t=q[k];return t?t:e&&(t=e.call(this))?(d.set.call(this,t),"function"===typeof q.removeAttribute&&q.removeAttribute(b),t):null};aca(a,b,d);a[c]=!0}},cca=function(a,b,c){if(b)for(var d=0;d<b.length;d++)bca(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++)bca(a,b[d],c)}},qc=function(a){var b=oc[a];if(b){oc[mc(a)]=
b;oc[a]=function(){var e=Xba(arguments,a);switch(e.length){case 0:this[pc]=new b;break;case 1:this[pc]=new b(e[0]);break;case 2:this[pc]=new b(e[0],e[1]);break;case 3:this[pc]=new b(e[0],e[1],e[2]);break;case 4:this[pc]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("ka");}};lc(oc[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?oc[a].prototype[e]=function(){return this[pc][e].apply(this[pc],arguments)}:aca(oc[a].prototype,
e,{set:function(f){"function"===typeof f?(this[pc][e]=Wba(f,a+"."+e),lc(this[pc][e],f)):this[pc][e]=f},get:function(){return this[pc][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(oc[a][d]=b[d])}},rc=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=dca(d);!d&&a[b]&&(d=a);a=mc(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&jc(d,b);if(Yba(f)){var h=c(e,a,b);d[b]=function(){return h(this,arguments)};lc(d[b],e)}}return e},eca=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=rc(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)}})},lc=function(a,b){a[mc("OriginalDelegate")]=b},hca=function(){if(fca)return gca;fca=!0;try{var a=sc.navigator.userAgent;if(-1!==a.indexOf("MSIE ")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/"))gca=!0}catch(b){}return gca},
ica=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=tc+c;b=tc+b;uc[a]={};uc[a]["false"]=c;uc[a]["true"]=b},oca=function(a,b,c,d){function e(aa,ba,ka){if(ba=ba||a.event){aa=aa||ba.target||a;var wa=aa[uc[ba.type][ka?"true":"false"]];if(wa){ka=[];if(1===wa.length)(ba=F(wa[0],aa,ba))&&ka.push(ba);else{wa=wa.slice();for(var Aa=0;Aa<wa.length&&(!ba||!0!==ba[jca]);Aa++){var Ka=F(wa[Aa],aa,ba);Ka&&ka.push(Ka)}}if(1===ka.length)throw ka[0];ba={};for(aa=0;aa<ka.length;ba={$jscomp$loop$prop$err$1445$1886:ba.$jscomp$loop$prop$err$1445$1886},
aa++)ba.$jscomp$loop$prop$err$1445$1886=ka[aa],b.nativeScheduleMicroTask(function(Ja){return function(){throw Ja.$jscomp$loop$prop$err$1445$1886;}}(ba))}}}function f(aa,ba){if(!aa)return!1;var ka=!0;ba&&void 0!==ba.useG&&(ka=ba.useG);var wa=ba&&ba.vh,Aa=!0;ba&&void 0!==ba.chkDup&&(Aa=ba.chkDup);var Ka=!1;ba&&void 0!==ba.rt&&(Ka=ba.rt);for(var Ja=aa;Ja&&!Ja.hasOwnProperty(h);)Ja=dca(Ja);!Ja&&aa[h]&&(Ja=aa);if(!Ja||Ja[x])return!1;var Jb=ba&&ba.eventNameToString,ub={},fb=Ja[x]=Ja[h],pa=Ja[mc(k)]=Ja[k];
aa=Ja[mc(q)]=Ja[q];var xa=Ja[mc(t)]=Ja[t],Ca;ba&&ba.prepend&&(Ca=Ja[mc(ba.prepend)]=Ja[ba.prepend]);var Za=function(Ua){if(!Ua.isRemoved){var xb=uc[Ua.eventName],Ob;xb&&(Ob=xb[Ua.capture?"true":"false"]);if(xb=Ob&&Ua.target[Ob])for(var kc=0;kc<xb.length;kc++)if(xb[kc]===Ua){xb.splice(kc,1);Ua.isRemoved=!0;0===xb.length&&(Ua.allRemoved=!0,Ua.target[Ob]=null);break}}if(Ua.allRemoved)return pa.call(Ua.target,Ua.eventName,Ua.capture?J:K,Ua.options)},Da=function(Ua){return fb.call(ub.target,ub.eventName,
Ua.invoke,ub.options)},Ab=function(Ua){return Ca.call(ub.target,ub.eventName,Ua.invoke,ub.options)},Qa=function(Ua){return pa.call(Ua.target,Ua.eventName,Ua.invoke,Ua.options)};Da=ka?function(){if(!ub.isExisting)return fb.call(ub.target,ub.eventName,ub.capture?J:K,ub.options)}:Da;Za=ka?Za:Qa;Qa=function(Ua,xb){var Ob=typeof xb;return"function"===Ob&&Ua.callback===xb||"object"===Ob&&Ua.originalDelegate===xb};var $a=ba&&ba.diff?ba.diff:Qa,Oa=Zone[mc("UNPATCHED_EVENTS")],mb=a[mc("PASSIVE_EVENTS")];Qa=
function(Ua,xb,Ob,kc,Cc,De){Cc=void 0===Cc?!1:Cc;De=void 0===De?!1:De;return function(){var hd=this||a,Qd=arguments[0];ba&&ba.transferEventName&&(Qd=ba.transferEventName(Qd));var ri=arguments[1];if(!ri||vc&&"uncaughtException"===Qd)return Ua.apply(this,arguments);var j4=!1;if("function"!==typeof ri){if(!ri.handleEvent)return Ua.apply(this,arguments);j4=!0}if(!wa||wa(Ua,ri,hd,arguments)){var mq=wc&&!!mb&&-1!==mb.indexOf(Qd);var Kf=arguments[2];Kf=!wc&&"object"===typeof Kf&&Kf?!!Kf.capture:wc&&mq?"boolean"===
typeof Kf?{capture:Kf,passive:!0}:Kf?"object"===typeof Kf&&!1!==Kf.passive?Object.assign({},Kf,{passive:!0}):Kf:{passive:!0}:Kf;if(Oa)for(var LK=0;LK<Oa.length;LK++)if(Qd===Oa[LK])return mq?Ua.call(hd,Qd,ri,Kf):Ua.apply(this,arguments);mq=Kf?"boolean"===typeof Kf?!0:Kf.capture:!1;LK=Kf&&"object"===typeof Kf?Kf.once:!1;var $3a=Zone.current,nq=uc[Qd];nq||(ica(Qd,Jb),nq=uc[Qd]);var xt=nq[mq?"true":"false"];nq=hd[xt];var eD=!1;if(nq){if(eD=!0,Aa)for(xt=0;xt<nq.length;xt++)if($a(nq[xt],ri))return}else nq=
hd[xt]=[];var Wk;xt=hd.constructor.name;var rya=kca[xt];rya&&(Wk=rya[Qd]);Wk||(Wk=xt+xb+(Jb?Jb(Qd):Qd));ub.options=Kf;LK&&(ub.options.once=!1);ub.target=hd;ub.capture=mq;ub.eventName=Qd;ub.isExisting=eD;if(eD=ka?lca:void 0)eD.taskData=ub;Wk=$3a.scheduleEventTask(Wk,ri,eD,Ob,kc);ub.target=null;eD&&(eD.taskData=null);LK&&(Kf.once=!0);if(wc||"boolean"!==typeof Wk.options)Wk.options=Kf;Wk.target=hd;Wk.capture=mq;Wk.eventName=Qd;j4&&(Wk.originalDelegate=ri);De?nq.unshift(Wk):nq.push(Wk);if(Cc)return hd}}};
Ja[h]=Qa(fb,y,Da,Za,Ka);Ca&&(Ja.prependListener=Qa(Ca,".prependListener:",Ab,Za,Ka,!0));Ja[k]=function(){var Ua=this||a,xb=arguments[0];ba&&ba.transferEventName&&(xb=ba.transferEventName(xb));var Ob=arguments[2],kc=Ob?"boolean"===typeof Ob?!0:Ob.capture:!1;Ob=arguments[1];if(!Ob)return pa.apply(this,arguments);if(!wa||wa(pa,Ob,Ua,arguments)){var Cc=uc[xb],De;Cc&&(De=Cc[kc?"true":"false"]);if(kc=De&&Ua[De])for(Cc=0;Cc<kc.length;Cc++){var hd=kc[Cc];if($a(hd,Ob)){kc.splice(Cc,1);hd.isRemoved=!0;0===
kc.length&&(hd.allRemoved=!0,Ua[De]=null,"string"===typeof xb&&(Ua[tc+"ON_PROPERTY"+xb]=null));hd.zone.cancelTask(hd);if(Ka)return Ua;return}}return pa.apply(this,arguments)}};Ja[q]=function(Ua){var xb=this||a,Ob=Ua;ba&&ba.transferEventName&&(Ob=ba.transferEventName(Ob));Ua=[];xb=mca(xb,Jb?Jb(Ob):Ob);for(Ob=0;Ob<xb.length;Ob++){var kc=xb[Ob];Ua.push(kc.originalDelegate?kc.originalDelegate:kc.callback)}return Ua};Ja[t]=function(Ua){var xb=this||a;if(Ua){ba&&ba.transferEventName&&(Ua=ba.transferEventName(Ua));
var Ob=uc[Ua];if(Ob){var kc=xb[Ob["false"]];xb=xb[Ob["true"]];if(kc)for(kc=kc.slice(),Ob=0;Ob<kc.length;Ob++){var Cc=kc[Ob];this[k].call(this,Ua,Cc.originalDelegate?Cc.originalDelegate:Cc.callback,Cc.options)}if(xb)for(xb=xb.slice(),kc=0;kc<xb.length;kc++)Ob=xb[kc],this[k].call(this,Ua,Ob.originalDelegate?Ob.originalDelegate:Ob.callback,Ob.options)}}else{Ua=Object.keys(xb);for(xb=0;xb<Ua.length;xb++)(kc=(kc=nca.exec(Ua[xb]))&&kc[1])&&"removeListener"!==kc&&this[t].call(this,kc);this[t].call(this,
"removeListener")}if(Ka)return this};lc(Ja[h],fb);lc(Ja[k],pa);xa&&lc(Ja[t],xa);aa&&lc(Ja[q],aa);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",t=d&&d.rmAll||"removeAllListeners",x=mc(h),y="."+h+":",F=function(aa,ba,ka){if(!aa.isRemoved){var wa=aa.callback;"object"===typeof wa&&wa.handleEvent&&(aa.callback=function(Ja){return wa.handleEvent(Ja)},aa.originalDelegate=wa);try{aa.invoke(aa,ba,[ka])}catch(Ja){var Aa=Ja}var Ka=aa.options;
Ka&&"object"===typeof Ka&&Ka.once&&ba[k].call(ba,ka.type,aa.originalDelegate?aa.originalDelegate:aa.callback,Ka);return Aa}},K=function(aa){return e(this,aa,!1)},J=function(aa){return e(this,aa,!0)},R=[],S=0;S<c.length;S++)R[S]=f(c[S],d);return R},mca=function(a,b){if(!b){var c=[],d;for(d in a){var e=nca.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=uc[b];c||(ica(b),c=uc[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():
[]},pca=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[jca]=!0;c&&c.apply(d,e)}})},yc=function(a,b,c,d){function e(t){var x=t.data;x.args[0]=function(){return t.invoke.apply(this,arguments)};x.handleId=h.apply(a,x.args);return t}function f(t){return k.call(a,t.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=rc(a,b,function(t){return function(x,y){if("function"===typeof y[0]){var F={isPeriodic:"Interval"===d,delay:"Timeout"===
d||"Interval"===d?y[1]||0:void 0,args:y},K=y[0];y[0]=function(){try{return K.apply(this,arguments)}finally{F.isPeriodic||("number"===typeof F.handleId?delete q[F.handleId]:F.handleId&&(F.handleId[xc]=null))}};x=Zone.current.scheduleMacroTask(b,y[0],F,e,f);if(!x)return x;y=x.data.handleId;"number"===typeof y?q[y]=x:y&&(y[xc]=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 t.apply(a,y)}});
k=rc(a,c,function(t){return function(x,y){x=y[0];if("number"===typeof x)var F=q[x];else(F=x&&x[xc])||(F=x);F&&"string"===typeof F.type?"notScheduled"!==F.state&&(F.cancelFn&&F.data.isPeriodic||0===F.runCount)&&("number"===typeof x?delete q[x]:x&&(x[xc]=null),F.zone.cancelTask(F)):t.apply(a,y)}})},qca=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,t){q&&q.prototype&&e.forEach(function(x){var y=c+"."+d+"::"+x,F=q.prototype;try{if(F.hasOwnProperty(x)){var K=
a.ObjectGetOwnPropertyDescriptor(F,x);K&&K.value?(K.value=a.wrapWithCurrentZone(K.value,y),a._redefineProperty(q.prototype,x,K)):F[x]&&(F[x]=a.wrapWithCurrentZone(F[x],y))}else F[x]&&(F[x]=a.wrapWithCurrentZone(F[x],y))}catch(J){}});return h.call(b,k,q,t)};a.attachOriginToPatched(b[d],h)}},rca=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)})},sca=
function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&2<b.length}).map(function(b){return b.substring(2)})},xca=function(){zc=Zone.__symbol__;Ac=Object[zc("defineProperty")]=Object.defineProperty;tca=Object[zc("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor;uca=Object.create;Bc=zc("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[Bc]&&a[Bc][b])throw new TypeError("oa`"+b+"`"+a);var d=c.configurable;"prototype"!==b&&(c=vca(a,b,c));
return wca(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=n(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]=vca(a,c,b[c])});return uca(a,b)};Object.getOwnPropertyDescriptor=
function(a,b){var c=tca(a,b);c&&a&&a[Bc]&&a[Bc][b]&&(c.configurable=!1);return c}},yca=function(a,b,c){var d=c.configurable;c=vca(a,b,c);return wca(a,b,c,d)},vca=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[Bc]||Object.isFrozen(a)||Ac(a,Bc,{writable:!0,value:{}}),a[Bc]&&(a[Bc][b]=!0));return c},wca=function(a,b,c,d){try{return Ac(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return Ac(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;}},zca=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,t="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(ba){return"HTML"+ba+"Element"}).concat(t):
a.EventTarget?c.push("EventTarget"):c=t;var y=a.__Zone_disable_IE_check||!1,F=a.__Zone_enable_cross_context_check||!1,K=b.isIEOrEdge(),J={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(t=0;t<d.length;t++){var R=d[t],S=q+(R+k),aa=q+(R+h);f[R]={};f[R][k]=S;f[R][h]=aa}for(f=0;f<x.length;f++)for(h=
x[f],k=e[h]={},q=0;q<d.length;q++)t=d[q],k[t]=h+".addEventListener:"+t;d=[];for(e=0;e<c.length;e++)x=a[c[e]],d.push(x&&x.prototype);b.patchEventTarget(a,b,d,{vh:function(ba,ka,wa,Aa){if(!y&&K)if(F)try{var Ka=ka.toString();if("[object FunctionWrapper]"===Ka||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Ka)return ba.apply(wa,Aa),!1}catch(Ja){return ba.apply(wa,Aa),!1}else{if(ka=ka.toString(),"[object FunctionWrapper]"===ka||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
ka)return ba.apply(wa,Aa),!1}else if(F)try{ka.toString()}catch(Ja){return ba.apply(wa,Aa),!1}return!0},transferEventName:function(ba){return J[ba]||ba}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},Aca=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 t=1<arguments.length?new f(k,q):new f(k),x=a.ObjectGetOwnPropertyDescriptor(t,"onmessage");if(x&&
!1===x.configurable){var y=a.ObjectCreate(t);var F=t;[d,e,"send","close"].forEach(function(K){y[K]=function(){var J=a.ArraySlice.call(arguments);if(K===d||K===e){var R=0<J.length?J[0]:void 0;R&&(R=Zone.__symbol__("ON_PROPERTY"+R),t[R]=y[R])}return t[K].apply(t,J)}})}else y=t;a.patchOnProperties(y,["close","error","message","open"],F);return y};c=b.WebSocket;for(var h in f)c[h]=f[h]},Bca=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},Dca=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<Cca.length;c={$jscomp$loop$prop$onproperty$1893:c.$jscomp$loop$prop$onproperty$1893},
d++){var e=Cca[d];c.$jscomp$loop$prop$onproperty$1893="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.$jscomp$loop$prop$onproperty$1893:"unknown."+f.$jscomp$loop$prop$onproperty$1893;h;){if(h[f.$jscomp$loop$prop$onproperty$1893]&&!h[f.$jscomp$loop$prop$onproperty$1893][b]){var q=a.wrapWithCurrentZone(h[f.$jscomp$loop$prop$onproperty$1893],k);q[b]=h[f.$jscomp$loop$prop$onproperty$1893];h[f.$jscomp$loop$prop$onproperty$1893]=q}h=h.parentElement}}}(c),
!0)}},Dc=function(a){for(var b in a)if(a[b]===Dc)return b;throw Error("pa");},Eca=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},Ec=function(a){if("string"===typeof a)return a;if(Array.isArray(a))return"["+a.map(Ec).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)},Fca=function(a,b){return null==a||""===a?null===
b?"":b:null==b||""===b?a:a+" "+b},Fc=function(a){a.__forward_ref__=Fc;a.toString=function(){return Ec(this())};return a},Gc=function(a){return Gca(a)?a():a},Gca=function(a){return"function"===typeof a&&a.hasOwnProperty(Hca)&&a.__forward_ref__===Fc},Hc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},Ic=function(a){return{providers:a.providers||[],imports:a.imports||[]}},Jc=function(a){var b;(b=a.hasOwnProperty(Ica)?a[Ica]:null)||(b=a.hasOwnProperty(Jca)?
a[Jca]:null);return b},Kca=function(a){var b=a&&(a[Ica]||a[Jca]);return b?(a.hasOwnProperty("name")?a=a.name:(a=(""+a).match(/^function\s*([^\s(]+)/),a=null===a?"":a[1]),console.warn('DEPRECATED: DI is instantiating a token "'+a+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "'+(a+'" class.')),b):null},Nca=function(a){return a&&(a.hasOwnProperty(Lca)||a.hasOwnProperty(Mca))?a[Lca]:
null},Kc=function(a){return"string"===typeof a?a:null==a?"":String(a)},Mc=function(){throw new Lc(-201,!1);},Nc=function(a){var b=Oca;Oca=a;return b},Pca=function(a,b,c){var d=Jc(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;Mc(Ec(a))},Pc=function(a){var b=Oc;Oc=a;return b},Qca=function(a,b){b=void 0===b?0:b;if(void 0===Oc)throw new Lc(-203,!1);return null===Oc?Pca(a,void 0,b):Oc.get(a,b&8?null:void 0,b)},p=function(a,b){b=
void 0===b?0:b;return(Oca||Qca)(Gc(a),b)},Rc=function(a,b){return p(a,Qc(void 0===b?0:b))},Qc=function(a){return"undefined"===typeof a||"number"===typeof a?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},Rca=function(a){for(var b=[],c=0;c<a.length;c++){var d=Gc(a[c]);if(Array.isArray(d)){if(0===d.length)throw new Lc(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(p(e,f))}else b.push(p(d))}return b},Sc=
function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},Tc=function(a){return{toString:a}.toString()},Sca=function(a){return function(){var b=Uc.apply(0,arguments);if(a){b=a.apply(null,r(b));for(var c in b)this[c]=b[c]}}},Vc=function(a){return Tc(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=Uc.apply(0,
arguments);if(this instanceof b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(r(e))));d.annotation=f;return d}var c=Sca(a);return b})},u=function(a){return Tc(function(){var b=!0===a.standalone,c={},d={type:a.type,providersResolver:null,decls:a.decls,vars:a.vars,factory:null,template:a.template||null,consts:a.consts||null,ngContentSelectors:a.ngContentSelectors,hostBindings:a.hostBindings||null,hostVars:a.hostVars||0,hostAttrs:a.hostAttrs||null,contentQueries:a.contentQueries||
null,declaredInputs:c,inputs:null,outputs:null,exportAs:a.exportAs||null,onPush:0===a.changeDetection,directiveDefs:null,pipeDefs:null,standalone:b,dependencies:b&&a.dependencies||null,getStandaloneInjector:null,selectors:a.selectors||Wc,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||0,id:"c"+Tca++,styles:a.styles||Wc,_:null,setInput:null,schemas:a.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},e=a.dependencies;b=a.features;
d.inputs=Uca(a.inputs,c);d.outputs=Uca(a.outputs);b&&b.forEach(function(f){return f(d)});d.directiveDefs=e?function(){return("function"===typeof e?e():e).map(Vca).filter(Wca)}:null;d.pipeDefs=e?function(){return("function"===typeof e?e():e).map(Xca).filter(Wca)}:null;return d})},Yca=function(a,b){var c=[];a=a.\u0275cmp;a.directiveDefs=function(){return("function"===typeof b?b():b).map(Vca)};a.pipeDefs=function(){return("function"===typeof c?c():c).map(Xca)}},Vca=function(a){return a[Xc]||a[Zca]||
null},Wca=function(a){return null!==a},Yc=function(a){return Tc(function(){return{type:a.type,bootstrap:a.bootstrap||Wc,declarations:a.declarations||Wc,imports:a.imports||Wc,exports:a.exports||Wc,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},Uca=function(a,b){if(null==a)return Zc;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},$c=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}},Xca=function(a){return a[$ca]||null},ad=function(a){return Array.isArray(a)&&"object"===typeof a[1]},bd=function(a){return Array.isArray(a)&&!0===a[1]},dd=function(a){return a.hasOwnProperty(cd)?a[cd]:null},ed=function(){return ada},ada=function(a){a.type.prototype.ngOnChanges&&(a.setInput=bda);return cda},cda=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===Zc)a.previous=
b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},bda=function(a,b,c,d){c=this.declaredInputs[c];var e;(e=a.__ngSimpleChanges__||null)||(e=a.__ngSimpleChanges__={previous:Zc,current:null});var f=e;e=f.current||(f.current={});f=f.previous;var h=f[c];e[c]=new dda(h&&h.currentValue,b,f===Zc);a[d]=b},fd=function(a){for(;Array.isArray(a);)a=a[0];return a},gd=function(a,b){return fd(b[a.index])},id=function(a,b){a=b[a];return ad(a)?a:a[0]},jd=function(a,b){return null===b||void 0===b?
null:a[b]},eda=function(a,b){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]},v=function(){return kd.lView},w=function(a){kd.contextLView=a;return a[8]},z=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},fda=function(a){var b=kd.currentDirectiveIndex;return-1===b?null:a[b]},hda=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[15];if(b.type&10)break}if(null===b)return!1}c=kd=gda();c.currentTNode=b;c.lView=a;return!0},ida=function(a){var b=gda(),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},
gda=function(){var a=kd,b=null===a?null:a.child;return null===b?jda(a):b},jda=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},kda=function(){var a=kd;kd=a.parent;a.currentTNode=null;a.lView=null;return a},lda=function(){var a=kda();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(){kd.currentNamespace=null},sd=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;e&&(a.contentHooks||(a.contentHooks=[])).push(-c,e);f&&((a.contentHooks||(a.contentHooks=[])).push(c,f),(a.contentCheckHooks||(a.contentCheckHooks=[])).push(c,f));h&&(a.viewHooks||(a.viewHooks=[])).push(-c,h);k&&((a.viewHooks||(a.viewHooks=[])).push(c,k),(a.viewCheckHooks||(a.viewCheckHooks=[])).push(c,k));null!=d&&(a.destroyHooks||(a.destroyHooks=[])).push(c,d)}},ud=function(a,b,c,d){(a[2]&3)===c&&td(a,b,c,d)},mda=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&2047)+1)},td=function(a,
b,c,d){for(var e=null!=d?d:-1,f=b.length-1,h=0,k=void 0!==d?a[18]&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[18]+=65536);if(h<e||-1==e){var q=0>b[k],t=b[k+1],x=a[q?-b[k]:b[k]];q?a[2]>>11<a[18]>>16&&(a[2]&3)===c&&(a[2]+=2048,t.call(x)):t.call(x);a[18]=(a[18]&4294901760)+k+2}k++}},nda=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++}},vd=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?oda(a,c,e,b[++d]):oda(a,c,e,null))}return a},oda=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)},wd=function(a,b){for(a>>=16;0<a;)b=b[15],a--;return b},xd=function(a){var b=pda;pda=a;return b},rda=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(yd)&&(d=c[yd]);null==d&&(d=c[yd]=qda++);c=d&255;b.data[a+(c>>5)]|=1<<c},zd=function(a,b){var c=sda(a,b);if(-1!==c)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,tda(c.data,
a),tda(b,null),tda(c.blueprint,null));c=uda(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&32767,e=wd(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},tda=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},sda=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},uda=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;a=0;for(var c=b;null!==c;){b=vda(c);if(null===b)break;
a++;c=c[15];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},Ad=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},wda=function(a,b,c,d){c&8&&void 0===d&&(d=null);if(0===(c&3)){a=a[9];var e=Nc();try{return a?a.get(b,d,c&8):Pca(b,d,c&8)}finally{Nc(e)}}c&
8||void 0!==d?b=d:(Mc(),b=void 0);return b},yda=function(a,b,c,d,e){d=void 0===d?0:d;if(null!==a){if(b[2]&1024){a:{var f=d;for(var h=Bd,k=a,q=b;null!==k&&null!==q&&q[2]&1024&&!(q[2]&256);){var t=xda(k,q,c,f|2);if(t!==Bd){f=t;break a}k=k.parent;if(!k){if(k=q[21])if(k=k.get(c,Bd,f),k!==Bd){f=k;break a}k=vda(q);q=q[15]}}f=h}if(f!==Bd)return f}a=xda(a,b,c,d);if(a!==Bd)return a}return wda(b,c,d,e)},xda=function(a,b,c,d){var e=Bd;if("string"===typeof c)var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(yd)?
c[yd]:void 0,f="number"===typeof f?0<=f?f&255:zda:f;if("function"===typeof f){if(!hda(b,a,d))return d&1?d&8||void 0!==e?b=e:(Mc(),b=void 0):b=wda(b,c,d,e),b;try{var h=f(d);if(null!=h||d&8)return h;Mc()}finally{kda()}}else if("number"===typeof f){h=null;var k=sda(a,b),q=d&1?b[16][6]:null;if(-1===k||d&4){var t=-1===k?uda(a,b):b[k+8];-1===t||d&2?k=-1:(h=b[1],k=t&32767,b=wd(t,b))}for(;-1!==k;){a=b[1];if(a.data[k+(f>>5)]&1<<f){t=b[1];var x=t.data[k+8],y=Cd(x,t,c,null==h?-1<x.componentOffset&&pda:h!=t&&
0!==(x.type&3),d&1&&q===x);t=null!==y?Dd(b,t,y,x):Bd;if(t!==Bd)return t}t=b[k+8];-1!==t&&!(d&2||d&1&&b[1].data[k+8]===q)&&b[k+(f>>5)]&1<<f?(h=a,k=t&32767,b=wd(t,b)):k=-1}}return e},Cd=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])&&null!==e.template&&e.type===c?b:null},Dd=function(a,b,c,d){var e=a[c],f=b.data;if(e instanceof Ed){var h=
e;if(h.resolving)throw a=f[c],new Lc(-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():Kc(a)));var k=xd(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?Nc(h.injectImpl):null;hda(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var t=f[c],x=t.type.prototype,y=x.ngOnInit,F=x.ngDoCheck;if(x.ngOnChanges){var K=ada(t);(b.preOrderHooks||
(b.preOrderHooks=[])).push(c,K);(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,K)}y&&(b.preOrderHooks||(b.preOrderHooks=[])).push(-c,y);F&&((b.preOrderHooks||(b.preOrderHooks=[])).push(c,F),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,F))}}finally{null!==q&&Nc(q),xd(k),h.resolving=!1,kda()}}return e},zda=function(){return new Fd(ld(),v())},Gd=function(a){return Tc(function(){var b=a.prototype.constructor;b=b[cd]||Ada(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&
d!==c;){var e=d[cd]||Ada(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Ada=function(a){return Gca(a)?function(){var b=Ada(Gc(a));return b&&b()}:dd(a)},vda=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},Bda=function(a,b){void 0===b&&(b=a);for(var c=0;c<a.length;c++){var d=a[c];Array.isArray(d)?(b===a&&(b=a.slice(0,c)),Bda(d,b)):b!==a&&b.push(d)}return b},Cda=function(a,b){a.forEach(function(c){return Array.isArray(c)?Cda(c,b):b(c)})},
Hd=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Dda=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);return c},Jd=function(a,b,c){var d=Id(a,b);if(0<=d)a[d|1]=c;else{d=~d;var e=a.length;if(e==d)a.push(b,c);else if(1===e)a.push(c,a[0]),a[0]=b;else{e--;for(a.push(a[e-1],a[e]);e>d;)a[e]=a[e-2],e--;a[d]=b;a[d+1]=c}}},Eda=function(a,b){b=Id(a,b);if(0<=b)return a[b|1]},Id=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)},Gda=function(){return{"\u0275providers":Fda(!0,Uc.apply(0,arguments)),"\u0275fromNgModule":!0}},Fda=function(a){var b=[],c=new Set,d;Cda(Uc.apply(1,arguments),function(e){Hda(e,b,[],c)&&(d||(d=[]),d.push(e))});void 0!==d&&Ida(d,b);return b},Ida=function(a,b){for(var c={},d=0;d<a.length;c={$jscomp$loop$prop$providers$1895:c.$jscomp$loop$prop$providers$1895,$jscomp$loop$prop$ngModule$1896:c.$jscomp$loop$prop$ngModule$1896},d++){var e=a[d];c.$jscomp$loop$prop$ngModule$1896=e.ngModule;c.$jscomp$loop$prop$providers$1895=
e.providers;Jda(c.$jscomp$loop$prop$providers$1895,function(){return function(f){b.push(f)}}(c))}},Hda=function(a,b,c,d){a=Gc(a);if(!a)return!1;var e=null,f=Nca(a),h=!f&&(a[Xc]||null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=Nca(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=n(f),k=f.next();!k.done;k=f.next())Hda(k.value,b,c,d)}else if(f){if(null!=f.imports&&!k){d.add(e);
var q;Cda(f.imports,function(t){Hda(t,b,c,d)&&(q||(q=[]),q.push(t))});void 0!==q&&Ida(q,b)}k||(h=dd(e)||function(){return new e},b.push({provide:e,useFactory:h,deps:Wc},{provide:Kda,useValue:e,multi:!0},{provide:Lda,useValue:function(){return p(e)},multi:!0}));f=f.providers;null==f||k||Jda(f,function(t){b.push(t)})}else return!1;return e!==a&&void 0!==a.providers},Jda=function(a,b){a=n(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&c.\u0275providers&&(c=c.\u0275providers),Array.isArray(c)?
Jda(c,b):b(c)},Nda=function(a){return null!==a&&"object"==typeof a&&Mda in a},Kd=function(a){return"function"===typeof a},Ld=function(){void 0===Oda&&(Oda=new Pda);return Oda},Rda=function(a){var b=Jc(a);b=null!==b?b.factory:dd(a);if(null!==b)return b;if(a instanceof Md)throw new Lc(204,!1);if(a instanceof Function)return Qda(a);throw new Lc(204,!1);},Qda=function(a){var b=a.length;if(0<b)throw Dda(b,"?"),new Lc(204,!1);var c=Kca(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},
Tda=function(a){if(Nda(a))return Nd(void 0,a.useValue);a=Sda(a);return Nd(a,Od)},Sda=function(a){var b=void 0;if(Kd(a))return b=Gc(a),dd(b)||Rda(b);if(Nda(a))b=function(){return Gc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,r(Rca(a.deps||[])))};else if(a&&a.useExisting)b=function(){return p(Gc(a.useExisting))};else{var c=Gc(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(r(Rca(a.deps)))))};else return dd(c)||
Rda(c)}return b},Nd=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},Uda=function(a,b){a=n(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?Uda(c,b):c&&c&&c.\u0275providers?Uda(c.\u0275providers,b):b(c)},Xda=function(a,b,c,d){a=Vda(a,void 0===b?null:b,void 0===c?null:c,d);Wda(a);return a},Vda=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)||Wc,Gda(a)];d=d||("object"===typeof a?void 0:Ec(a));return new Pd(c,b||Ld(),
d||null,e)},Sd=function(a,b){return new Rd(gd(a,b))},Yda=function(a){return a instanceof Rd?a.nativeElement:a},Td=function(a,b){ad(b)?(a.__ngContext__=b[20],Zda.set(b[20],b)):a.__ngContext__=b},Ud=function(a){return a.ownerDocument.defaultView},$da=function(a){return a.ownerDocument},A=function(a){aea(kd.tView,v(),kd.selectedIndex+a)},aea=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&td(b,a,3,c)):(a=a.preOrderHooks,null!==a&&ud(b,a,0,c));kd.selectedIndex=c},B=function(a,b){b=void 0===
b?0:b;var c=v();return null===c?p(a,b):yda(ld(),c,Gc(a),b)},Vd=function(){throw Error("ta");},bea=function(){if(void 0===Wd&&(Wd=null,Xd.trustedTypes))try{Wd=Xd.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Wd},Yd=function(a){var b;return(null==(b=bea())?void 0:b.createHTML(a))||a},cea=function(a){a=a[3];return bd(a)?a[3]:a},Zd=function(a){for(;null!==a&&!bd(a);)a=a[4];return a},$d=
function(a,b,c,d,e){if(null!=d){var f=!1;if(bd(d))var h=d;else ad(d)&&(f=!0,d=d[0]);d=fd(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=fd(h),d!==f&&$d(a,b,c,d,e),e=10;e<h.length;e++)f=h[e],ae(b,a,f[1].firstChild,f,c,d,!1)}},dea=function(a,b){a=a[9];var c=a.indexOf(b),d=b[3];b[2]&512&&(b[2]&=-513,eda(d,
-1));a.splice(c,1)},eea=function(a,b){if(!(10>=a.length)){var c=10+b,d=a[c];if(d){var e=d[17];null!==e&&e!==a&&dea(e,d);0<b&&(a[c-1][4]=d[4]);a=Hd(a,10+b);ae(d[11],2,d[1].firstChild,d,null,null,!1);d[0]=null;d[6]=null;b=a[19];null!==b&&b.detachView(a[1]);d[3]=null;d[4]=null;d[2]&=-65}return d}},gea=function(a,b){if(!(b[2]&128)){var c=b[11];c.destroyNode&&ae(c,3,a.firstChild,b,null,null,!1);if(a=b[13])for(;a;){c=null;if(ad(a))c=a[13];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)ad(a)&&fea(a[1],
a),a=a[3];null===a&&(a=b);ad(a)&&fea(a[1],a);c=a&&a[4]}a=c}else fea(b[1],b)}},fea=function(a,b){if(!(b[2]&128)){b[2]&=-65;b[2]|=128;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 Ed)){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)}}d=a.cleanup;c=b[7];f=-1;if(null!==d)for(e=0;e<d.length-1;e+=2)if("string"===typeof d[e]){f=d[e+3];if(0<=f)c[f]();else c[f=-f].unsubscribe();e+=2}else h=c[f=d[e+1]],
d[e].call(h);if(null!==c){for(d=f+1;d<c.length;d++)(0,c[d])();b[7]=null}1===b[1].type&&b[11].destroy();c=b[17];null!==c&&bd(b[3])&&(c!==b[3]&&dea(c,b),c=b[19],null!==c&&c.detachView(a));Zda.delete(b[20])}},hea=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:gd(b,c)},be=function(a,b,c,d){a=hea(a,d.parent,b);var e=b[11];d=d.parent||b[6];b=d.type&40?gd(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)},ce=function(a,b){if(null!==b){var c=b.type;if(c&3)return gd(b,a);if(c&4)return iea(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return ce(a,c);a=a[b.index];return bd(a)?iea(-1,a):fd(a)}if(c&32)return(void 0)(b,a)()||fd(a[b.index]);c=null!==b?a[16][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];a=cea(a[16]);return ce(a,c)}return ce(a,
b.next)}return null},iea=function(a,b){a+=11;if(a<b.length){a=b[a];var c=a[1].firstChild;if(null!==c)return ce(a,c)}return b[7]},ae=function(a,b,c,d,e,f,h){for(;null!=c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&Td(fd(k),d),c.flags|=2);if(32!==(c.flags&32))if(q&8)ae(a,b,c.child,d,e,f,!1),$d(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var t;t=q();)$d(b,a,e,t,f);$d(b,a,e,k,f)}else q&16?jea(a,b,d,c,e,f):$d(b,a,e,k,f);c=h?c.projectionNext:c.next}},jea=function(a,b,c,d,e,f){c=c[16];d=c[6].projection[d.projection];
if(Array.isArray(d))for(c=0;c<d.length;c++)$d(b,a,e,d[c],f);else ae(a,b,d,c[3],e,f,!0)},kea=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;null!==d&&nda(a,b,d);null!==e&&(""===e?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));null!==c&&a.setAttribute(b,"style",c)},lea=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}},mea=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 t=d&8?q:b[++k];if(d&8&&null!==a.attrs){a:{q=a.attrs;for(var x=c,y=0;y<q.length;){var F=q[y++];if(x&&"class"===F){if(F=q[y],-1!==lea(F.toLowerCase(),
t)){t=!0;break a}}else if(1===F){for(;y<q.length&&"string"==typeof(F=q[y++]);)if(F.toLowerCase()===t){t=!0;break a}break}}t=!1}if(!t){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;){F=e[x];if(F===q){q=x;break a}if(3===F||6===F)y=!0;else if(1===F||2===F){for(F=e[++x];"string"===typeof F;)F=e[++x];continue}else if(4===F)break;else if(0===F){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(""!==t&&(q=q>f?"":e[q+1].toLowerCase(),(x=d&8?q:null)&&-1!==lea(x,t)||d&2&&t!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},nea=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(mea(a,b[d],c))return!0;return!1},oea=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},ee=function(a){return a instanceof de?a.changingThisBreaksApplicationSecurity:a},fe=function(a,b){a=a instanceof de&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("ua`"+b+"`"+a);}return a===b},qea=function(a){a=String(a);return a.match(pea)?a:"unsafe:"+a},ge=function(a){var b=
{};a=n(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},he=function(){for(var a={},b=n(Uc.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},tea=function(a){return a.replace(/&/g,"&amp;").replace(rea,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(sea,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},Cea=function(a,b){var c=
null;try{var d;if(!(d=ie)){var e=new uea(a);try{var f=!!(new window.DOMParser).parseFromString(Yd(""),"text/html")}catch(S){f=!1}d=f?new vea(e):e}ie=d;var h=b?String(b):"";c=ie.getInertBodyElement(h);a=5;b=h;do{if(0===a)throw Error("wa");a--;h=b;b=c.innerHTML;c=ie.getInertBodyElement(h)}while(h!==b);var k=new wea,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 t=b.nodeName.toLowerCase();
if(xea.hasOwnProperty(t)){a.buf.push("<");a.buf.push(t);var x=b.attributes;for(b=0;b<x.length;b++){var y=x.item(b),F=y.name,K=F.toLowerCase();if(yea.hasOwnProperty(K)){var J=y.value;zea[K]&&(J=qea(J));a.buf.push(" ",F,'="',tea(J),'"')}}a.buf.push(">");h=!0}else h=!Aea.hasOwnProperty(t)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(tea(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var R=Bea(q,q.nextSibling);if(R){q=R;break}q=Bea(q,q.parentNode)}}return Yd(k.buf.join(""))}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)}},Dea=function(){if(void 0===je&&(je=null,Xd.trustedTypes))try{je=Xd.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return je},Eea=function(a){var b;return(null==(b=Dea())?void 0:b.createHTML(a))||a},Fea=function(a){var b;return(null==(b=Dea())?void 0:
b.createScriptURL(a))||a},ke=function(a){var b=Gea();b?a=Eea(b.sanitize(1,a)||""):fe(a,"HTML")?a=Eea(ee(a)):(b=void 0!==Hea?Hea:"undefined"!==typeof document?document:void 0,a=Cea(b,Kc(a)));return a},le=function(a){var b=Gea();return b?b.sanitize(4,a)||"":fe(a,"URL")?ee(a):qea(Kc(a))},Iea=function(a){var b=Gea();if(b)return Fea(b.sanitize(5,a)||"");if(fe(a,"ResourceURL"))return Fea(ee(a));throw new Lc(904,!1);},Gea=function(){var a=v();return a&&a[12]},Jea=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)}}},me=function(a,b,c,d,e,f,h,k,q,t,x){var y=b.blueprint.slice();y[0]=e;y[2]=d|76;if(null!==x||a&&a[2]&1024)y[2]|=1024;y[18]=0;y[3]=y[15]=a;y[8]=c;y[10]=h||a&&a[10];y[11]=k||a&&a[11];y[12]=q||a&&a[12]||null;y[9]=t||a&&a[9]||null;y[6]=f;y[20]=Kea++;y[21]=x;y[16]=2==b.type?a[16]:y;return y},ne=function(a,b,c,d,e){var f=a.data[b];if(null===f){f=kd.currentTNode;var h=kd.isParent,
k=h?f:f&&f.parent;b=a.data[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:k?k.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:k,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));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},Lea=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},Nea=function(a,b,c){ida(b);try{var d=
a.viewQuery;null!==d&&(kd.currentQueryIndex=0,d(1,c));var e=a.template;null!==e&&Mea(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);a.staticContentQueries&&Jea(a,b);if(a.staticViewQueries){var f=a.viewQuery;kd.currentQueryIndex=0;f(2,c)}var h=a.components;if(null!==h)for(c=0;c<h.length;c++){for(var k=id(h[c],b),q=k[1],t=k.length;t<q.blueprint.length;t++)k.push(q.blueprint[t]);Nea(q,k,k[8])}}catch(x){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),x;}finally{b[2]&=-5,
lda()}},oe=function(a,b,c,d){var e=b[2];if(128!==(e&128)){ida(b);try{b[18]=0;kd.bindingIndex=a.bindingStartIndex;null!==c&&Mea(a,b,c,2,d);if(c=3===(e&3)){var f=a.preOrderCheckHooks;null!==f&&td(b,f,3,null)}else{var h=a.preOrderHooks;null!==h&&ud(b,h,0,null);mda(b,0)}for(var k=Zd(b[13]);null!==k;k=Zd(k[4]))if(k[2]){var q=k[9];for(f=0;f<q.length;f++){var t=q[f],x=t[3];0===(t[2]&512)&&eda(x,1);t[2]|=512}}for(var y=Zd(b[13]);null!==y;y=Zd(y[4]))for(k=10;k<y.length;k++){var F=y[k],K=F[1];64===(F[2]&64)&&
oe(K,F,K.template,F[8])}null!==a.contentQueries&&Jea(a,b);if(c){var J=a.contentCheckHooks;null!==J&&td(b,J,3)}else{var R=a.contentHooks;null!==R&&ud(b,R,1);mda(b,1)}var S=a.hostBindingOpCodes;if(null!==S)try{for(y=0;y<S.length;y++){var aa=S[y];if(0>aa)kd.selectedIndex=~aa;else{F=aa;var ba=S[++y],ka=S[++y];K=kd;K.bindingIndex=K.bindingRootIndex=ba;kd.currentDirectiveIndex=F;ka(2,b[F])}}}finally{kd.selectedIndex=-1}var wa=a.components;if(null!==wa)for(S=0;S<wa.length;S++){var Aa=id(wa[S],b);if(64===
(Aa[2]&64)){var Ka=Aa[1];Aa[2]&48?oe(Ka,Aa,Ka.template,Aa[8]):0<Aa[5]&&Oea(Aa)}}var Ja=a.viewQuery;null!==Ja&&(kd.currentQueryIndex=0,Ja(2,d));if(c){var Jb=a.viewCheckHooks;null!==Jb&&td(b,Jb,3)}else{var ub=a.viewHooks;null!==ub&&ud(b,ub,2);mda(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-41;b[2]&512&&(b[2]&=-513,eda(b[3],-1))}finally{lda()}}},Mea=function(a,b,c,d,e){var f=kd.selectedIndex;try{kd.selectedIndex=-1,d&2&&22<b.length&&aea(a,b,22),c(d,e)}finally{kd.selectedIndex=f}},Pea=
function(a,b,c){if(0!==(b.flags&4)){var d=b.directiveEnd;for(b=b.directiveStart;b<d;b++){var e=a.data[b];e.contentQueries&&e.contentQueries(1,c[b],b)}}},Sea=function(a,b,c){var d=gd(c,b),e=c.directiveStart,f=c.directiveEnd;a.firstCreatePass||zd(c,b);Td(d,b);d=c.initialInputs;for(var h=e;h<f;h++){var k=a.data[h],q=null!==k.template;if(q){var t=b,x=c,y=gd(x,t),F=Qea(k),K=t[10];y=pe(t,me(t,F,null,k.onPush?32:16,y,x,K,K.createRenderer(y,k),null,null,null));t[x.index]=y}t=Dd(b,a,h,c);Td(t,b);if(null!==
d&&(x=d[h-e],null!==x))for(y=k.setInput,F=0;F<x.length;){K=x[F++];var J=x[F++],R=x[F++];null!==y?k.setInput(t,R,K,J):t[J]=R}q&&(id(c.index,b)[8]=t)}64===(c.flags&64)&&Rea(a,b,c)},Tea=function(a,b,c){c=void 0===c?gd: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}},Qea=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=Uea(1,null,a.template,a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):
b},Uea=function(a,b,c,d,e,f,h,k,q,t){d=22+d;e=d+e;for(var x=[],y=0;y<e;y++)x.push(y<d?null:qe);t="function"===typeof t?t():t;return x[1]={type:a,blueprint:x,template:c,queries:null,viewQuery:k,declTNode:b,data:x.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:t,incompleteFirstPass:!1}},Vea=function(a,b,c,d){b=b[7]||(b[7]=[]);null===c?b.push(d):(b.push(c),a.firstCreatePass&&(a.cleanup||(a.cleanup=[])).push(d,b.length-1))},Wea=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},re=function(a,b,c,d,e,f,h,k){var q=gd(b,c),t=b.inputs,x;!k&&null!=t&&(x=t[d])?(Xea(a,c,x,d,e),-1<b.componentOffset&&Yea(c,b.index)):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))},Yea=function(a,b){a=id(b,a);a[2]&16||(a[2]|=32)},afa=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 t=f[q];if(nea(c,t.selectors,!1))if(h||(h=[]),null!==t.template)if(null!==t.findHostDirectiveDefs){var x=[];k=k||new Map;t.findHostDirectiveDefs(t,x,k);h.unshift.apply(h,[].concat(r(x),[t]));Zea(a,c,x.length)}else h.unshift(t),Zea(a,c,0);else{k=k||new Map;var y=x=void 0;null==(y=(x=t).findHostDirectiveDefs)||y.call(x,t,h,k);h.push(t)}}f=null===h?null:[h,k];null===f?f=h=null:(h=n(f),f=h.next().value,
h=h.next().value);null!==f&&$ea(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 Lc(-301,!1);a.push(d[b],f)}c.mergedAttrs=vd(c.mergedAttrs,c.attrs)},$ea=function(a,b,c,d,e,f){for(var h=0;h<d.length;h++){var k=zd(c,b);rda(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);k=h=!1;for(var q=Lea(a,b,d.length,null),t=0;t<d.length;t++){var x=
d[t];c.mergedAttrs=vd(c.mergedAttrs,x.hostAttrs);var y=a,F=c,K=b,J=q;y.data[J]=x;var R=x.factory||(x.factory=dd(x.type));R=new Ed(R,null!==x.template);y.blueprint[J]=R;K[J]=R;var S=F;K=Lea(y,K,x.hostVars,qe);if(F=x.hostBindings){R=y.hostBindingOpCodes;null===R&&(R=y.hostBindingOpCodes=[]);y=~S.index;a:{for(S=R.length;0<S;){var aa=R[--S];if("number"===typeof aa&&0>aa){S=aa;break a}}S=0}S!=y&&R.push(y);R.push(J,K,F)}y=q;if(J=e){if(x.exportAs)for(K=0;K<x.exportAs.length;K++)J[x.exportAs[K]]=y;null!==
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;!h&&(x.ngOnChanges||x.ngOnInit||x.ngDoCheck)&&((a.preOrderHooks||(a.preOrderHooks=[])).push(c.index),h=!0);k||!x.ngOnChanges&&!x.ngDoCheck||((a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(c.index),k=!0);q++}b=c.directiveEnd;a=a.data;d=c.attrs;e=[];k=h=null;for(q=c.directiveStart;q<b;q++){t=a[q];y=(x=f?f.get(t):null)?x.outputs:null;h=Wea(t.inputs,
q,h,x?x.inputs:null);k=Wea(t.outputs,q,k,y);if(null===h||null===d||4===c.type&&"ng-template"!==c.value)t=null;else{t=h;x=q;y=null;for(J=0;J<d.length;)if(K=d[J],0===K)J+=4;else{if(5!==K){if("number"===typeof K)break;if(t.hasOwnProperty(K))for(null===y&&(y=[]),F=t[K],R=0;R<F.length;R+=2)if(F[R]===x){y.push(K,F[R+1],d[J+1]);break}}J+=2}t=y}e.push(t)}null!==h&&(h.hasOwnProperty("class")&&(c.flags|=8),h.hasOwnProperty("style")&&(c.flags|=16));c.initialInputs=e;c.inputs=h;c.outputs=k},Rea=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}},Zea=function(a,b,c){b.componentOffset=c;(a.components||(a.components=[])).push(b.index)},se=function(a,b,c,d,e,f){var h=gd(a,b);b=b[11];a=a.value;null==d?b.removeAttribute(h,c,
f):(d=null==e?Kc(d):e(d,a||"",c),b.setAttribute(h,c,d,f))},Oea=function(a){for(var b=Zd(a[13]);null!==b;b=Zd(b[4]))for(var c=10;c<b.length;c++){var d=b[c];if(64===(d[2]&64))if(d[2]&512){var e=d[1];oe(e,d,e.template,d[8])}else 0<d[5]&&Oea(d)}b=a[1].components;if(null!==b)for(c=0;c<b.length;c++)d=id(b[c],a),64===(d[2]&64)&&0<d[5]&&Oea(d)},pe=function(a,b){a[13]?a[14][4]=b:a[13]=b;return a[14]=b},bfa=function(a){for(;a;){a[2]|=32;var b=cea(a);if(0!==(a[2]&256)&&!b)break;a=b}},dfa=function(a,b,c,d){d=
void 0===d?!0:d;var e=b[10];e.begin&&e.begin();try{oe(a,b,a.template,c)}catch(f){throw d&&cfa(b,f),f;}finally{e.end&&e.end()}},efa=function(a,b,c){if(null===a||null!==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]},cfa=function(a,b){(a=(a=a[9])?a.get(te,null):null)&&a.handleError(b)},Xea=function(a,b,c,d,e){for(var f=0;f<c.length;){var h=c[f++],k=c[f++],q=b[h];h=a.data[h];null!==h.setInput?h.setInput(q,e,d,k):q[k]=e}},ue=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=Fca(e,k);else if(2==f){var q=b[++h];d=Fca(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},ve=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(fd(f));if(bd(f))for(var h=10;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==q&&ve(k[1],k,q,d)}f=c.type;if(f&8)ve(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[16][6].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,r(f)):(h=cea(b[16]),ve(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},ffa=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push({propName:a[c],templateName:c});return b},gfa=function(){sd(v()[1],ld())},hfa=function(a,b,c){return(new we(a,b,void 0===c?null:c)).injector},xe=function(a){return!!a&&"function"===typeof a.then},ifa=function(a){return!!a&&
"function"===typeof a.subscribe},jfa=function(){},lfa=function(){return kfa()+kfa()+kfa()},kfa=function(){return String.fromCharCode(97+Math.floor(25*Math.random()))},ye=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=mfa(b))return a;b=b.split("-")[0];if(a=mfa(b))return a;if("en"===b)return nfa;throw new Lc(701,!1);},mfa=function(a){a in ofa||(ofa[a]=Xd.ng&&Xd.ng.common&&Xd.ng.common.locales&&Xd.ng.common.locales[a]);return ofa[a]},qfa=function(a){"undefined"===typeof Zone?pfa.then(function(){a&&
a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)},ze=function(a){setTimeout(function(){throw a;},0)},Ae=function(a){return"function"===typeof a},Be=function(a){return null!==a&&"object"===typeof a},rfa=function(a){return a instanceof Ce||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},sfa=function(a){return a.reduce(function(b,c){return b.concat(c instanceof Ee?c.errors:c)},[])},tfa=function(a){for(;a;){var b=a,
c=b.destination,d=b.isStopped;if(b.closed||d)return!1;c&&c instanceof Fe?a=c:a=null}return!0},Ge=function(a){return a},ufa=function(a){return 0===a.length?Ge:1===a.length?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},vfa=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===typeof a.complete},wfa=function(a){a||(a=He.Promise||Promise);if(!a)throw Error("za");return a},xfa=function(a){return new Ie(function(b){return a.schedule(function(){return b.complete()})})},
yfa=function(a,b){return new Ie(function(c){var d=new Ce,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},Je=function(a,b){return b?yfa(a,b):new Ie(zfa(a))},Ke=function(a){return a&&"function"===typeof a.schedule},Afa=function(){var a=Uc.apply(0,arguments),b=a[a.length-1];return Ke(b)?(a.pop(),yfa(a,b)):Je(a)},Bfa=function(a){a.subscriber.error(a.error)},Le=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("Aa");
},Cfa=function(a,b){if(a&&"function"===typeof a.lift)return a.lift.call(b);throw new TypeError("Aa");},Me=function(){return function(a){return Le(a,new Dfa)}},C=function(a){return function(b){if("function"!==typeof a)throw new TypeError("Ba");return Le(b,new Efa(a))}},Ffa=function(a,b,c){if(b)if(Ke(b))c=b;else return function(){return Ffa(a,c).apply(null,r(Uc.apply(0,arguments))).pipe(C(function(d){return Ne(d)?b.apply(null,r(d)):b(d)}))};return function(){var d=Uc.apply(0,arguments),e=this,f,h={context:e,
subject:void 0,callbackFunc:a,scheduler:c};return new Ie(function(k){if(c)return c.schedule(Gfa,0,{args:d,subscriber:k,params:h});if(!f){f=new Oe;var q=function(){var t=Uc.apply(0,arguments);f.next(1>=t.length?t[0]:t);f.complete()};try{a.apply(e,[].concat(r(d),[q]))}catch(t){tfa(f)?f.error(t):console.warn(t)}}return f.subscribe(k)})}},Gfa=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 Oe;e=function(){var q=
Uc.apply(0,arguments);b.add(h.schedule(Hfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{a.apply(f,[].concat(r(c),[e]))}catch(q){k.error(q)}}this.add(k.subscribe(d))},Hfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Ifa=function(a,b,c){if(b)if(Ke(b))c=b;else return function(){return Ifa(a,c).apply(null,r(Uc.apply(0,arguments))).pipe(C(function(d){return Ne(d)?b.apply(null,r(d)):b(d)}))};return function(){var d=Uc.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,
context:this};return new Ie(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(Jfa,0,{params:e,subscriber:f,context:h});if(!k){k=e.subject=new Oe;var q=function(){var t=Uc.apply(0,arguments),x=t.shift();x?k.error(x):(k.next(1>=t.length?t[0]:t),k.complete())};try{a.apply(h,[].concat(r(d),[q]))}catch(t){tfa(k)?k.error(t):console.warn(t)}}return k.subscribe(f)})}},Jfa=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 Oe;c=function(){var q=Uc.apply(0,arguments),t=q.shift();t?b.add(h.schedule(Kfa,0,{err:t,subject:k})):b.add(h.schedule(Lfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{e.apply(a,[].concat(r(f),[c]))}catch(q){this.add(h.schedule(Kfa,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},Lfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Kfa=function(a){a.subject.error(a.err)},Mfa=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},Ofa=function(a){return function(b){Nfa(a,
b).catch(function(c){return b.error(c)})}},Nfa=function(a,b){var c,d,e,f,h,k;return Pe(function(q){switch(q.nextAddress){case 1:Qe(q,2,3);var t=a[Symbol.asyncIterator];f=void 0!==t?t.call(a):new Pfa(n(a));case 5:return Re(q,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:Se(q);q.catchAddress_=0;q.finallyAddress_=9;if(!d||d.done||!(e=f.return)){q.jumpTo(9);break}return Re(q,e.call(f),9);case 9:Se(q,0,0,1);if(c)throw c.error;Te(q,10,1);break;
case 10:Te(q,4);break;case 2:k=Ue(q);c={error:k};q.jumpTo(3);break;case 4:b.complete(),Ve(q)}})},Xe=function(a,b){if(!b.closed)return a instanceof Ie?a.subscribe(b):We(a)(b)},Qfa=function(a,b){if(!a)throw Error("Ea");return new Ie(function(c){var d=new Ce;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})},Rfa=function(a,b){if(!a)throw Error("Ea");return new Ie(function(c){var d=
new Ce,e;d.add(function(){e&&"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[Ye]();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})},Sfa=function(a,b){return new Ie(function(c){var d=new Ce;d.add(b.schedule(function(){var e=a[Ze]();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})},Tfa=function(a,b){return new Ie(function(c){var d=new Ce;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})},Vfa=function(a,b){if(null!=a){if(a&&"function"===typeof a[Ze])return Sfa(a,b);if(Mfa(a))return Tfa(a,b);if(Ufa(a))return yfa(a,b);
if(a&&"function"===typeof a[Ye]||"string"===typeof a)return Rfa(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return Qfa(a,b)}throw new TypeError("Fa`"+(null!==a&&typeof a||a));},$e=function(a,b){return b?Vfa(a,b):a instanceof Ie?a:new Ie(We(a))},af=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(af(function(e,f){return $e(a(e,f)).pipe(C(function(h,k){return b(e,h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return Le(d,
new Wfa(a,c))}},bf=function(a){a=void 0===a?Infinity:a;return af(Ge,a)},cf=function(){return bf(1)(Afa.apply(null,r(Uc.apply(0,arguments))))},Xfa=function(a){return new Ie(function(b){try{var c=a()}catch(d){b.error(d);return}return $e(c).subscribe(b)})},$fa=function(a){return new Ie(function(b){var c=a||Yfa,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-d});b.closed||(f=Zfa(e))};var f=Zfa(e);return function(){return f.unsubscribe()}})},df=function(a,b){return new Ie(function(c){var d=
a.length;if(0===d)c.complete();else for(var e=Array(d),f=0,h=0,k={$jscomp$loop$prop$i$1901:0};k.$jscomp$loop$prop$i$1901<d;k={$jscomp$loop$prop$hasValue$1902:k.$jscomp$loop$prop$hasValue$1902,$jscomp$loop$prop$i$1901:k.$jscomp$loop$prop$i$1901},k.$jscomp$loop$prop$i$1901++){var q=$e(a[k.$jscomp$loop$prop$i$1901]);k.$jscomp$loop$prop$hasValue$1902=!1;c.add(q.subscribe({next:function(t){return function(x){t.$jscomp$loop$prop$hasValue$1902||(t.$jscomp$loop$prop$hasValue$1902=!0,h++);e[t.$jscomp$loop$prop$i$1901]=
x}}(k),error:function(t){return c.error(t)},complete:function(t){return function(){f++;f!==d&&t.$jscomp$loop$prop$hasValue$1902||(h===d&&c.next(b?b.reduce(function(x,y,F){return x[y]=e[F],x},{}):e),c.complete())}}(k)}))}})},aga=function(a,b,c,d){Ae(c)&&(d=c,c=void 0);return d?aga(a,b,c).pipe(C(function(e){return Ne(e)?d.apply(null,r(e)):d(e)})):new Ie(function(e){bga(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):e.next(f)},e,c)})},bga=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++)bga(a[h],b,c,d,e);else throw new TypeError("Ga");d.add(f)},
cga=function(a,b,c){return c?cga(a,b).pipe(C(function(d){return Ne(d)?c.apply(null,r(d)):c(d)})):new Ie(function(d){var e=function(){var h=Uc.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)}})},dga=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)}},ega=function(a){return!Ne(a)&&0<=a-parseFloat(a)+1},fga=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)},ef=function(){},gga=function(){var a=Uc.apply(0,arguments);if(0===a.length)return ff;var b=n(a),c=b.next().value,d=gf(b);return 1===a.length&&Ne(c)?gga.apply(null,r(c)):new Ie(function(e){var f=
function(){return e.add(gga.apply(null,r(d)).subscribe(e))};return $e(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},hga=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()},hf=function(a,b){return function(c){return Le(c,new iga(a,b))}},jga=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}
c.pred=a;c.thisArg=b;return c},lga=function(){var a=Uc.apply(0,arguments);if(1===a.length)if(Ne(a[0]))a=a[0];else return $e(a[0]);return Le(Je(a),new kga)},mga=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)))},nga=function(a){return a instanceof Date&&!isNaN(a)},pga=function(a,b,c){a=void 0===a?0:a;var d=-1;null!=b&&(Ke(b)?c=b:d=b);Ke(c)||(c=jf);return new Ie(function(e){var f=Math.max(0,nga(a)?+a-c.now():a);
return c.schedule(oga,f,{counter:0,period:d,subscriber:e})})},oga=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)}},kf=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:jf;if(nga(a))var k=a;else if("number"===typeof a)d=a;else{k=a.first;d=a.each;e=a.with;b=a.scheduler||jf;var q;f=null!=(q=a.meta)?q:null}var t;e=null!=(t=e)?t:qga;if(null==k&&null==d)throw new TypeError("Ia");return Le(c,
function(x){var y=this,F=new Ce,K,J=null,R=null,S=0,aa=function(ba){F.add(J=b.schedule(function(){var ka={meta:f,lastValue:R,seen:S};try{var wa=$e(e(ka))}catch(Aa){y.error(Aa);return}K.unsubscribe();F.add(wa.subscribe(y))},ba))};F.add(K=x.subscribe({next:function(ba){var ka;null==(ka=J)||ka.unsubscribe();J=null;S++;R=ba;null!=d&&0<d&&aa(d);y.next(ba)},error:function(ba){return y.error(ba)},complete:function(){return y.complete()}}));x=null!=k?"number"===typeof k?k:+k-b.now():d;aa(x);return F})}},
qga=function(a){throw new rga(a);},tga=function(a){return a in sga?(delete sga[a],!0):!1},uga=function(a){return function(b){setTimeout(a,void 0,b)}},lf=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}}},wga=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=
a.nativeRequestAnimationFrame.call(Xd,function(){a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;vga(a);a.isCheckStableRunning=!0;lf(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));a.fakeTopEventTask.invoke()}),vga(a))},yga=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,h){try{return xga(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&
"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&wga(a),a._nesting--,lf(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return xga(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&wga(a),a._nesting--,lf(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,vga(a),lf(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}})},vga=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},xga=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Aga=function(a){return function(b){return Le(b,new zga(a))}},mf=function(a,b){b=void 0===b?jf:b;return Aga(function(){return pga(a,b)})},Cga=function(a){return function(b){return Le(b,new Bga(a))}},nf=function(a){return function(b){return Le(b,
function(c){var d=this,e=new Ce,f=null,h=!1,k;f=c.subscribe({next:function(q){return d.next(q)},error:function(q){try{k=$e(a(q,nf(a)(c)))}catch(t){d.error(t)}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})}},Dga=function(){var a=Uc.apply(0,arguments);return function(b){return Cfa(b,cf.apply(null,[b].concat(r(a))))}},Ega=function(){var a=Uc.apply(0,arguments);return function(b){return Cfa(b,
cf.apply(null,[b].concat(r(a))))}},Gga=function(a){return function(b){return Le(b,new Fga(a))}},of=function(a,b){b=void 0===b?jf:b;return function(c){return Le(c,new Hga(a,b))}},Jga=function(a){Iga(a)},pf=function(a){a=void 0===a?null:a;return function(b){return Le(b,new Kga(a))}},qf=function(a,b){b=void 0===b?jf:b;var c=nga(a)?+a-b.now():Math.abs(a);return function(d){return Le(d,new Lga(c,b))}},rf=function(a){return function(b){return Le(b,new Mga(a))}},sf=function(){if(isNaN(1))throw new TypeError("Ka");
return function(a){return Le(a,new Nga)}},Qga=function(a){a=void 0===a?Oga:a;return function(b){return Le(b,new Pga(a))}},Oga=function(){return new tf},uf=function(a){return function(b){return Le(b,new Rga(a))}},vf=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?hf(function(e,f){return a(e,f,d)}):Ge,sf(),c?pf(b):Qga(function(){return new tf}))}},Tga=function(){return function(a){return Le(a,new Sga)}},Vga=function(){if(isNaN(1))throw new TypeError("Ka");return function(a){return Le(a,
new Uga)}},Wga=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?hf(function(e,f){return a(e,f,d)}):Ge,Vga(),c?pf(b):Qga(function(){return new tf}))}},wf=function(a){return function(b){return Le(b,new Xga(a))}},Zga=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return Le(d,new Yga(a,b,c))}},aha=function(a){return function(b){var c;"function"===typeof a?c=a:c=function(){return a};var d=Object.create(b,$ga);d.source=b;d.subjectFactory=c;return d}},bha=
function(){var a=new xf(1,void 0,void 0);return function(b){return aha(function(){return a})(b)}},cha=function(){var a=Uc.apply(0,arguments);return function(b){return 0===a.length?b:Cfa(b,lga.apply(null,[b].concat(r(a))))}},dha=function(){return new yf},zf=function(){return function(a){return Me()(aha(dha)(a))}},Af=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 Le(c,eha(b))}},eha=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 t=f.subscribe(this);else f=new xf(b,c,e),t=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--;t.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},Bf=function(a){return function(b){return Le(b,new fha(a))}},Cf=
function(){var a=Uc.apply(0,arguments),b=a[a.length-1];return Ke(b)?(a.pop(),function(c){return cf(a,c,b)}):function(c){return cf(a,c)}},Df=function(a){return function(b){return Le(b,new gha(a))}},hha=function(a){return Df(function(){return a})},Ef=function(a){return function(b){return Le(b,new iha(a))}},kha=function(a){var b=void 0===b?!1:b;return function(c){return Le(c,new jha(a,b))}},Ff=function(a,b){return function(c){return Le(c,new lha(a,b))}},oha=function(a){var b=void 0===b?mha:b;return function(c){return Le(c,
new nha(a,!!b.leading,!!b.trailing))}},Gf=function(){var a=Uc.apply(0,arguments);return function(b){var c;"function"===typeof a[a.length-1]&&(c=a.pop());return Le(b,new pha(a,c))}},rha=function(a){(a=a.get(qha,null))&&a.forEach(function(b){return b()})},vha=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new Md(d);return function(f){f=void 0===f?[]:f;var h=sha();if(!h||h.injector.get(tha,!1))if(f=[].concat(r(c),r(f),[{provide:e,useValue:!0}]),a)a(f);else{f=uha(f,d);if(Hf&&!Hf.get(tha,!1))throw new Lc(400,
!1);Hf=f;f.get(If);rha(f)}f=sha();if(!f)throw new Lc(401,!1);return f}},uha=function(a,b){a=void 0===a?[]:a;return Jf({name:b,providers:[{provide:wha,useValue:"platform"},{provide:xha,useValue:new Set([function(){return Hf=null}])}].concat(r(a))})},sha=function(){var a,b;return null!=(b=null==(a=Hf)?void 0:a.get(If))?b:null},yha=function(a,b){var c;"noop"===a?c=new Lf:c=("zone.js"===a?void 0:a)||new Mf(b);return c},zha=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;}},Aha=function(a,b){Array.isArray(b)?a=b.reduce(Aha,a):a=Object.assign({},a,b);return a},Nf=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},Of=function(a){for(var b=Object.getPrototypeOf(a.type.prototype).constructor,c=!0,d=[a];b;){if(null!==a.template)var e=b.\u0275cmp||b.\u0275dir;else{if(b.\u0275cmp)throw new Lc(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Bha(a.inputs);f.declaredInputs=Bha(a.declaredInputs);
f.outputs=Bha(a.outputs);(f=e.hostBindings)&&Cha(a,f);f=e.viewQuery;var h=e.contentQueries;f&&Dha(a,f);h&&Eha(a,h);Eca(a.inputs,e.inputs);Eca(a.declaredInputs,e.declaredInputs);Eca(a.outputs,e.outputs);null!==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===Of&&(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=vd(e.hostAttrs,
b=vd(b,e.hostAttrs))},Bha=function(a){return a===Zc?{}:a===Wc?[]:a},Dha=function(a,b){var c=a.viewQuery;c?a.viewQuery=function(d,e){b(d,e);c(d,e)}:a.viewQuery=b},Eha=function(a,b){var c=a.contentQueries;c?a.contentQueries=function(d,e,f){b(d,e,f);c(d,e,f)}:a.contentQueries=b},Cha=function(a,b){var c=a.hostBindings;c?a.hostBindings=function(d,e){b(d,e);c(d,e)}:a.hostBindings=b},Qf=function(){if(!Pf){var a=Xd.Symbol;if(a&&a.iterator)Pf=a.iterator;else{a=Object.getOwnPropertyNames(Map.prototype);for(var b=
0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(Pf=c)}}}return Pf},Gha=function(a){return Fha(a)?Array.isArray(a)||!(a instanceof Map)&&Qf()in a:!1},Hha=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[Qf()]();!(c=a.next()).done;)b(c.value)},Fha=function(a){return null!==a&&("function"===typeof a||"object"===typeof a)},Rf=function(a,b,c){return a[b]=c},Sf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},
Tf=function(a,b,c,d){c=Sf(a,b,c);return Sf(a,b+1,d)||c},Uf=function(a,b,c,d){var e=v(),f=kd.bindingIndex++;Sf(e,f,b)&&(f=pd(),se(f,e,a,b,c,d));return Uf},Vf=function(a,b,c,d){return Sf(a,kd.bindingIndex++,c)?b+Kc(c)+d:qe},Iha=function(a,b,c,d,e,f){a=Tf(a,kd.bindingIndex,c,e);od(2);return a?b+Kc(c)+d+Kc(e)+f:qe},Wf=function(a,b,c,d,e,f){var h=v();b=Vf(h,b,c,d);b!==qe&&(c=pd(),se(c,h,a,b,e,f));return Wf},Xf=function(a,b,c,d,e,f,h,k){var q=v();b=Iha(q,b,c,d,e,f);b!==qe&&(c=pd(),se(c,q,a,b,h,k));return Xf},
Jha=function(a,b,c,d,e,f,h,k,q,t){var x=v();var y=kd.bindingIndex;var F=Tf(x,y,c,e);y=Sf(x,y+2,h)||F;od(3);b=y?b+Kc(c)+d+Kc(e)+f+Kc(h)+k:qe;b!==qe&&(c=pd(),se(c,x,a,b,q,t));return Jha},D=function(a,b,c){var d=v(),e=kd.bindingIndex++;if(Sf(d,e,b)){e=kd.tView;var f=pd();re(e,f,d,a,b,d[11],c,!1)}return D},Kha=function(a,b,c,d,e){e=e?"class":"style";Xea(a,c,b.inputs[e],e,d)},Lha=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],t=a[h],x=
b;if(null===t||null==x||(Array.isArray(t)?t[1]:t)===x||Array.isArray(t)&&"string"===typeof x&&0<=Id(t,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)},Qha=function(a,b){var c=Mha;if(c===b)return-1;for(b=Nha=b;b<c&&32<a.charCodeAt(b);)b++;b=Oha=b;return Pha(a,b,c)},Pha=function(a,b,c){for(;b<c&&32>=a.charCodeAt(b);)b++;return b},Yf=function(a,b,c){Rha(a,b,c,!1);return Yf},Zf=function(a,b){Rha(a,b,null,!0);return Zf},Rha=function(a,b,c,d){var e=v(),f=kd.tView,h=od(2);f.firstUpdatePass&&
Sha(f,a,h,d);if(b!==qe&&Sf(e,h,b)){var k=f.data[kd.selectedIndex],q=e[11];null!=b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=Ec(ee(b))));Tha(f,k,e,q,a,e[h+1]=b,d,h)}},$f=function(a){var b=kd.tView,c=od(2);b.firstUpdatePass&&Sha(b,null,c,!0);var d=v();if(a!==qe&&Sf(d,c,a)){var e=b.data[kd.selectedIndex];if(0===(e.flags&8)||c>=b.expandoStartIndex){var f=d[11],h=d[c+1];if(null==a||""===a)var k=Wc;else if(k=[],a=ee(a),Array.isArray(a))for(var q=0;q<a.length;q++)Jd(k,a[q],!0);else if("object"===
typeof a)for(q in a)a.hasOwnProperty(q)&&Jd(k,q,a[q]);else if("string"===typeof a)for(Oha=Nha=0,Mha=a.length,q=Qha(a,Pha(a,0,Mha));0<=q;q=Qha(a,q))Jd(k,a.substring(Nha,Oha),!0);k=d[c+1]=k;h===qe&&(h=Wc);q=a=0;for(var t=0<h.length?h[0]:null,x=0<k.length?k[0]:null;null!==t||null!==x;){var y=a<h.length?h[a+1]:void 0,F=q<k.length?k[q+1]:void 0,K=null,J=void 0;t===x?(a+=2,q+=2,y!==F&&(K=x,J=F)):null===x||null!==t&&t<x?(a+=2,K=t):(q+=2,K=x,J=F);null!==K&&Tha(b,e,d,f,K,J,!0,c);t=a<h.length?h[a]:null;x=q<
k.length?k[q]:null}}else c=e.classesWithoutHost,null!==c&&(a=Fca(c,a?a:"")),Kha(b,e,d,a,!0)}},Sha=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=fda(e),k=d?f.residualClasses:f.residualStyles;if(null===h)0===(d?f.classBindings:f.styleBindings)&&(b=Uha(null,e,f,b,d),b=ag(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===q||e[q]!==h)if(b=Uha(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=Uha(null,e,f,h[1],d),h=ag(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=ag(k,e[q].hostAttrs,d);k=ag(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 t=!1;if(Array.isArray(q)){if(h=q[1],null===h||0<Id(q,h))t=!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);t&&(e[c+1]=e[c+1]|2);Lha(e,h,c,!0);Lha(e,h,c,!1);a=d?f.residualClasses:f.residualStyles;null!=a&&"string"==typeof h&&0<=Id(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},Uha=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=ag(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},ag=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]),Jd(a,h,c?!0:b[++f]))}return void 0===a?null:a},Tha=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)?Vha(a,b,c,e,(q&131068)>>2,h):void 0)&&(void 0!==f||2==(q&2)&&(f=Vha(a,null,c,e,k,h)),b=fd(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))))}},Vha=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],t=Array.isArray(q),x=t?q[1]:q,y=null===x,F=c[e+1];F===qe&&(F=y?Wc:void 0);x=y?Eda(F,d):x===d?F:void 0;t&&void 0===x&&(x=Eda(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=Eda(a,d)));return k},bg=function(a,b,c){a=Vf(v(),a,b,c);$f(a)},E=function(a,b,c,d){var e=v(),f=kd.tView,h=22+a;a=e[11];var k=e[h]=a.createElement(b,kd.currentNamespace);if(f.firstCreatePass){var q=f.consts;c=jd(q,c);b=ne(f,h,2,b,c);afa(f,e,b,jd(q,d));null!==b.attrs&&ue(b,b.attrs,!1);null!==b.mergedAttrs&&ue(b,b.mergedAttrs,!0);null!==f.queries&&f.queries.elementStart(f,b)}else b=f.data[h];md(b,!0);kea(a,k,b);32!==(b.flags&32)&&be(f,e,k,b);0===kd.elementDepthCount&&Td(k,
e);kd.elementDepthCount++;1===(b.flags&1)&&(Sea(f,e,b),Pea(f,b,e));null!==d&&Tea(e,b);return E},G=function(){var a=ld();kd.isParent?kd.isParent=!1:(a=a.parent,md(a,!1));var b=a;kd.elementDepthCount--;var c=kd.tView;c.firstCreatePass&&(sd(c,a),0!==(a.flags&4)&&c.queries.elementEnd(a));null!=b.classesWithoutHost&&0!==(b.flags&8)&&Kha(c,b,v(),b.classesWithoutHost,!0);null!=b.stylesWithoutHost&&0!==(b.flags&16)&&Kha(c,b,v(),b.stylesWithoutHost,!1);return G},H=function(a,b,c,d){E(a,b,c,d);G();return H},
I=function(a,b,c){var d=v(),e=kd.tView;a+=22;if(e.firstCreatePass){var f=e.consts;var h=jd(f,b);b=ne(e,a,8,"ng-container",h);null!==h&&ue(b,h,!0);f=jd(f,c);afa(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];md(f,!0);a=d[a]=d[11].createComment("");be(e,d,a,f);Td(a,d);1===(f.flags&1)&&(Sea(e,d,f),Pea(e,f,d));null!=c&&Tea(d,f);return I},L=function(){var a=ld(),b=kd.tView;kd.isParent?kd.isParent=!1:(a=a.parent,md(a,!1));b.firstCreatePass&&(sd(b,a),0!==(a.flags&4)&&b.queries.elementEnd(a));
return L},cg=function(a,b,c){I(a,b,c);L();return cg},dg=function(a,b,c){var d=v(),e=kd.bindingIndex++;if(Sf(d,e,b)){e=kd.tView;var f=pd();re(e,f,d,a,b,d[11],c,!0)}return dg},eg=function(a,b,c){var d=v(),e=kd.bindingIndex++;if(Sf(d,e,b)){e=kd.tView;var f=pd(),h=efa(fda(e.data),f,d);re(e,f,d,a,b,h,c,!0)}return eg},M=function(a,b,c,d){c=v();Wha(kd.tView,c,c[11],ld(),a,b,d);return M},Xha=function(a,b){var c=ld(),d=v(),e=kd.tView,f=efa(fda(e.data),c,d);Wha(e,d,f,c,a,b);return Xha},Yha=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},Wha=function(a,b,c,d,e,f,h){var k=1===(d.flags&1),q=a.firstCreatePass&&(a.cleanup||(a.cleanup=[])),t=b[7]||(b[7]=[]),x=!0;if(d.type&3||h){var y=gd(d,b),F=h?h(y):y;y=t.length;var K=h?function(S){return h(fd(S[d.index]))}:d.index,J=null;!h&&k&&(J=Yha(a,b,e,d.index));null!==J?((J.__ngLastListenerFn__||J).__ngNextListenerFn__=f,J.__ngLastListenerFn__=
f,x=!1):(f=Zha(d,b,f),a=c.listen(F,e,f),t.push(f,a),q&&q.push(e,K,y,y+1))}else f=Zha(d,b,f);a=d.outputs;var R;if(x&&null!==a&&(R=a[e])&&(x=R.length))for(a=0;a<x;a+=2)c=b[R[a]][R[a+1]].subscribe(f),k=t.length,t.push(f,c),q&&q.push(e,d.index,k,-(k+1))},$ha=function(a,b,c){try{return!1!==b(c)}catch(d){return cfa(a,d),!1}finally{}},Zha=function(a,b,c){return function f(e){if(e===Function)return c;var h=-1<a.componentOffset?id(a.index,b):b;bfa(h);h=$ha(b,c,e);for(var k=f.__ngNextListenerFn__;k;)h=$ha(b,
k,e)&&h,k=k.__ngNextListenerFn__;return h}},N=function(a){var b=kd;a=void 0===a?1:a;for(var c=kd.contextLView;0<a;)c=c[15],a--;return(b.contextLView=c)[8]},fg=function(a){var b=v()[16][6];if(!b.projection){var c=b.projection=Dda(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 t=f[q];if("*"===t)h=q;else{if(null===k)t=nea(e,t,!0);else b:{var x=0;c:for(;x<
t.length;x++){var y=t[x];if(k.length===y.length){for(var F=0;F<k.length;F++)if(k[F]!==y[F])continue c;t=!0;break b}}t=!1}if(t){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}}},gg=function(a,b,c){b=void 0===b?0:b;var d=v(),e=kd.tView;a=ne(e,22+a,16,null,c||null);null===a.projection&&(a.projection=b);kd.isParent=!1;32!==(a.flags&32)&&(b=d[11],e=hea(e,a.parent,d),c=a.parent||d[6],c=c.type&40?gd(c,d):null,jea(b,0,d,a,e,c))},ig=function(a,b,c){hg(a,"",b,"",c);
return ig},hg=function(a,b,c,d,e){var f=v();b=Vf(f,b,c,d);b!==qe&&(c=kd.tView,d=pd(),re(c,d,f,a,b,f[11],e,!1));return hg},jg=function(a,b,c,d,e,f,h){var k=v();b=Iha(k,b,c,d,e,f);b!==qe&&(c=kd.tView,d=pd(),re(c,d,k,a,b,k[11],h,!1));return jg},O=function(a){return kd.contextLView[22+a]},P=function(a,b,c,d,e,f,h,k){var q=v(),t=kd.tView;a+=22;if(t.firstCreatePass){var x=t.consts;e=ne(t,a,4,e||null,jd(x,f));afa(t,q,e,jd(x,h));sd(t,e);b=e.tViews=Uea(2,e,b,c,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,
x);null!==t.queries&&(t.queries.template(t,e),b.queries=t.queries.embeddedTView(e));b=e}else b=t.data[a];md(b,!1);c=q[11].createComment("");be(t,q,c,b);Td(c,q);pe(q,q[a]=[c,!0,!1,q,null,0,b,c,null,null]);1===(b.flags&1)&&Sea(t,q,b);null!=h&&Tea(q,b,k)},Q=function(a,b){b=void 0===b?"":b;var c=v(),d=kd.tView,e=a+22;a=d.firstCreatePass?ne(d,e,1,b,null):d.data[e];b=c[e]=c[11].createText(b);be(d,c,b,a);md(a,!1)},kg=function(a){T("",a,"");return kg},T=function(a,b,c){var d=v();a=Vf(d,a,b,c);a!==qe&&(b=
fd(d[kd.selectedIndex]),d[11].setValue(b,a));return T},lg=function(a,b,c,d,e){var f=v();a=Iha(f,a,b,c,d,e);a!==qe&&(b=fd(f[kd.selectedIndex]),f[11].setValue(b,a));return lg},aia=function(a,b,c,d,e){a=Gc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)aia(a[f],b,c,d,e);else{f=kd.tView;var h=v(),k=Kd(a)?a:Gc(a.provide),q=Sda(a),t=ld(),x=t.providerIndexes&1048575,y=t.directiveStart,F=t.providerIndexes>>20;if(Kd(a)||!a.multi)d=new Ed(q,e),q=bia(k,b,e?x:x+F,y),-1===q?(q=zd(t,h),rda(q,f,k),cia(f,a,b.length),
b.push(k),t.directiveStart++,t.directiveEnd++,e&&(t.providerIndexes+=1048576),c.push(d),h.push(d)):(c[q]=d,h[q]=d);else{y=bia(k,b,x+F,y);x=bia(k,b,x,x+F);var K=0<=y&&c[y];F=0<=x&&c[x];e&&!F||!e&&!K?(y=zd(t,h),rda(y,f,k),y=c.length,K=new Ed(e?dia:eia,e),K.multi=[],K.index=y,K.componentProviders=0,d&&!e&&K.componentProviders++,K.multi.push(q),!e&&F&&(c[x].providerFactory=K),cia(f,a,b.length,0),b.push(k),t.directiveStart++,t.directiveEnd++,e&&(t.providerIndexes+=1048576),c.push(K),h.push(K)):(b=c[e?
x:y],!e&&d&&b.componentProviders++,b=b.multi.push(q)-1,cia(f,a,-1<y?y:x,b));!e&&d&&F&&c[x].componentProviders++}}},cia=function(a,b,c,d){var e=Kd(b),f=!!b.useClass;if(e||f)if(f=(f?Gc(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)},bia=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},eia=function(){return fia(this.multi,[])},dia=function(a,b,c,d){b=this.multi;if(this.providerFactory){var e=
this.providerFactory.componentProviders;d=Dd(c,c[1],this.providerFactory.index,d);c=d.slice(0,e);fia(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],fia(b,c);return c},fia=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},mg=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=null!==d.template,aia(b,f.data,f.blueprint,d,!0),aia(e,f.data,f.blueprint,d,!1))}}},ng=function(a,b){a=nd()+a;var c=v();
return c[a]===qe?Rf(c,a,b()):c[a]},og=function(a,b,c){return gia(v(),nd(),a,b,c)},pg=function(a,b,c,d){return hia(v(),nd(),a,b,c,d)},qg=function(a,b,c,d){return iia(v(),nd(),2,a,b,c,d)},kia=function(a,b,c,d,e,f){var h=jia,k=nd()+8,q=v();var t=Tf(q,k,a,b);t=Tf(q,k+2,c,d)||t;return Tf(q,k+4,e,f)||t?Rf(q,k+6,h(a,b,c,d,e,f)):q[k+6]},lia=function(a,b){a=a[b];return a===qe?void 0:a},gia=function(a,b,c,d,e,f){b+=c;return Sf(a,b,e)?Rf(a,b+1,f?d.call(f,e):d(e)):lia(a,b+1)},hia=function(a,b,c,d,e,f,h){b+=c;
return Tf(a,b,e,f)?Rf(a,b+2,h?d.call(h,e,f):d(e,f)):lia(a,b+2)},iia=function(a,b,c,d,e,f,h,k){b+=c;c=Tf(a,b,e,f);return Sf(a,b+2,h)||c?Rf(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):lia(a,b+3)},U=function(a,b){var c=kd.tView;a+=22;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;b.onDestroy&&(c.destroyHooks||(c.destroyHooks=[])).push(a,b.onDestroy)}else b=c.data[a];b=b.factory||(b.factory=dd(b.type));d=Nc(B);try{var h=
xd(!1),k=b();xd(h);var q=v();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);q[a]=k}finally{Nc(d)}},V=function(a,b,c){a+=22;var d=v(),e=d[a];return d[1].data[a].pure?gia(d,nd(),b,e.transform,c,e):e.transform(c)},rg=function(a,b,c,d){a+=22;var e=v(),f=e[a];return e[1].data[a].pure?hia(e,nd(),b,f.transform,c,d,f):f.transform(c,d)},mia=function(){return this._results[Qf()]()},nia=function(){return sg(ld(),v())},sg=function(a,b){return a.type&4?new tg(b,a,Sd(a,b)):null},pia=function(){return oia(ld(),
v())},qia=function(a){return a[8]||(a[8]=[])},oia=function(a,b){var c=b[a.index];if(!bd(c)){if(a.type&8)var d=fd(c);else{var e=b[11];d=e.createComment("");var f=gd(a,b),h=e.parentNode(f);f=e.nextSibling(f);e.insertBefore(h,d,f,!1)}b[a.index]=c=[c,!0,!1,b,null,0,a,d,null,null];pe(b,c)}return new ug(c,a,b)},ria=function(a,b,c,d){d=b[19].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,t=q.push,x=b,y=a[k],F=e[h+1];k=c.metadata.read;
-1===F?(k=y,x=k.type&11?Sd(k,x):k.type&4?sg(k,x):null):-2===F?x=k===Rd?Sd(y,x):k===vg?sg(y,x):k===wg?oia(y,x):void 0:x=Dd(x,x[1],F,y);t.call(q,x)}}d.matches=f}return d.matches},sia=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(null!==f)for(a=ria(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=10;k<h.length;k++){var q=h[k];q[17]===q[3]&&sia(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],sia(q[1],q,e,d)}}return d},yg=function(a){var b=
v(),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?sia(c,b,d,[]):ria(c,b,e,d),a.reset(b,Yda),xg(a)),!0):!1},zg=function(a,b,c){var d=kd.tView;d.firstCreatePass&&(tia(d,new uia(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));via(d,b)},Ag=function(a,b,c,d){var e=kd.tView;e.firstCreatePass&&(tia(e,new uia(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));via(e,c)},Bg=function(){return v()[19].queries[kd.currentQueryIndex].queryList},via=function(a,b){var c=v();b=new Cg(4===(b&4));Vea(a,c,b,b.destroy);null===c[19]&&(c[19]=new Dg);c[19].queries.push(new Eg(b))},tia=function(a,b,c){null===a.queries&&(a.queries=new Fg);a.queries.track(new Gg(b,c))},Hg=function(a,b){return sg(a,b)},wia=function(a){var b=ld(),c=v();-1<b.componentOffset&&16!==(a&16)?
(a=id(b.index,c),a=new Ig(a,a)):a=b.type&47?new Ig(c[16],c):null;return a},xia=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},Jg=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},yia=function(a,b){if(b&&!b.createEmbeddedView)throw Error("Ma`"+a+"`"+Ec(b));},zia=function(a,b,c){a=ye(a);b=Kg([a[1],a[2]],b);return Kg(b,c)},Aia=function(a,b,c){a=ye(a);b=Kg([a[3],a[4]],b);return Kg(b,c)},Bia=function(a,b,c){a=ye(a);b=Kg([a[5],a[6]],b);
return Kg(b,c)},Cia=function(a,b){a=ye(a)[7];return Kg(a,b)},Lg=function(a,b){a=ye(a);return Kg(a[10],b)},Mg=function(a,b){a=ye(a);return Kg(a[11],b)},Ng=function(a,b){a=ye(a)[12];return Kg(a,b)},Og=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},Dia=function(a){if(!a[21])throw Error("Na`"+a[0]);},Fia=function(a){a=ye(a);Dia(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?Eia(b):[Eia(b[0]),Eia(b[1])]})},
Gia=function(a,b,c){a=ye(a);Dia(a);b=Kg([a[21][0],a[21][1]],b)||[];return Kg(b,c)||[]},Kg=function(a,b){for(;-1<b;b--)if("undefined"!==typeof a[b])return a[b];throw Error("Oa");},Eia=function(a){var b=n(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},Pg=function(){return new Lc(2100,!1)},Nia=function(a,b,c,d){var e=Hia(a);b=Qg(c,b)||b;a=[];for(var f;b;)if(f=Iia.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=
Jia(d,h),e=Kia(e,d));var k="";a.forEach(function(q){a:if(Lia[q])var t=Lia[q];else{switch(q){case "G":case "GG":case "GGG":t=Rg(3,1);break;case "GGGG":t=Rg(3,2);break;case "GGGGG":t=Rg(3,0);break;case "y":t=Sg(0,1,0,!1,!0);break;case "yy":t=Sg(0,2,0,!0,!0);break;case "yyy":t=Sg(0,3,0,!1,!0);break;case "yyyy":t=Sg(0,4,0,!1,!0);break;case "Y":t=Tg(1);break;case "YY":t=Tg(2,!0);break;case "YYY":t=Tg(3);break;case "YYYY":t=Tg(4);break;case "M":case "L":t=Sg(1,1,1);break;case "MM":case "LL":t=Sg(1,2,1);
break;case "MMM":t=Rg(2,1);break;case "MMMM":t=Rg(2,2);break;case "MMMMM":t=Rg(2,0);break;case "LLL":t=Rg(2,1,1);break;case "LLLL":t=Rg(2,2,1);break;case "LLLLL":t=Rg(2,0,1);break;case "w":t=Mia(1);break;case "ww":t=Mia(2);break;case "W":t=Mia(1,!0);break;case "d":t=Sg(2,1);break;case "dd":t=Sg(2,2);break;case "c":case "cc":t=Sg(7,1);break;case "ccc":t=Rg(1,1,1);break;case "cccc":t=Rg(1,2,1);break;case "ccccc":t=Rg(1,0,1);break;case "cccccc":t=Rg(1,3,1);break;case "E":case "EE":case "EEE":t=Rg(1,
1);break;case "EEEE":t=Rg(1,2);break;case "EEEEE":t=Rg(1,0);break;case "EEEEEE":t=Rg(1,3);break;case "a":case "aa":case "aaa":t=Rg(0,1);break;case "aaaa":t=Rg(0,2);break;case "aaaaa":t=Rg(0,0);break;case "b":case "bb":case "bbb":t=Rg(0,1,1,!0);break;case "bbbb":t=Rg(0,2,1,!0);break;case "bbbbb":t=Rg(0,0,1,!0);break;case "B":case "BB":case "BBB":t=Rg(0,1,0,!0);break;case "BBBB":t=Rg(0,2,0,!0);break;case "BBBBB":t=Rg(0,0,0,!0);break;case "h":t=Sg(3,1,-12);break;case "hh":t=Sg(3,2,-12);break;case "H":t=
Sg(3,1);break;case "HH":t=Sg(3,2);break;case "m":t=Sg(4,1);break;case "mm":t=Sg(4,2);break;case "s":t=Sg(5,1);break;case "ss":t=Sg(5,2);break;case "S":t=Sg(6,1);break;case "SS":t=Sg(6,2);break;case "SSS":t=Sg(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ug(0);break;case "ZZZZZ":t=Ug(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ug(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ug(2);break;default:t=null;break a}Lia[q]=t}k+=t?t(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,
"'")});return k},Vg=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},Qg=function(a,b){var c=ye(a)[0];Wg[c]=Wg[c]||{};if(Wg[c][b])return Wg[c][b];var d="";switch(b){case "shortDate":d=Lg(a,0);break;case "mediumDate":d=Lg(a,1);break;case "longDate":d=Lg(a,2);break;case "fullDate":d=Lg(a,3);break;case "shortTime":d=Mg(a,0);break;case "mediumTime":d=Mg(a,1);break;case "longTime":d=Mg(a,2);break;case "fullTime":d=Mg(a,3);break;case "short":d=Qg(a,"shortTime");var e=Qg(a,
"shortDate");d=Xg(Ng(a,0),[d,e]);break;case "medium":d=Qg(a,"mediumTime");e=Qg(a,"mediumDate");d=Xg(Ng(a,1),[d,e]);break;case "long":d=Qg(a,"longTime");e=Qg(a,"longDate");d=Xg(Ng(a,2),[d,e]);break;case "full":d=Qg(a,"fullTime"),e=Qg(a,"fullDate"),d=Xg(Ng(a,3),[d,e])}d&&(Wg[c][b]=d);return d},Xg=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return null!=b&&d in b?b[d]:c}));return a},Yg=function(a,b,c,d,e){var f="";if(0>a||e&&0>=a)e?a=-a+1:(a=-a,f=void 0===c?"-":c);for(a=String(a);a.length<
b;)a="0"+a;d&&(a=a.slice(a.length-b));return f+a},Sg=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=Oia(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return Yg(f,3).substring(0,b);h=Og(h,5);return Yg(f,b,h,d,e)}},Oia=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("Pa`"+a);}},Rg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,f){return Pia(e,f,a,b,c,d)}},Pia=function(a,b,c,d,e,f){switch(c){case 2:return Bia(b,e,d)[a.getMonth()];case 1:return Aia(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=Fia(b),a=Gia(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var t=n(q);q=t.next().value;t=t.next().value;var x=h>=q.hours&&k>=q.minutes,y=h<t.hours||h===t.hours&&k<t.minutes;
if(q.hours<t.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]:zia(b,e,d)[12>h?0:1];case 3:return Cia(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Qa`"+c);}},Ug=function(a){return function(b,c,d){b=-1*d;c=Og(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+Yg(e,2,c)+Yg(Math.abs(b%60),2,c);case 1:return"GMT"+(0<=b?"+":"")+Yg(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+Yg(e,2,c)+":"+Yg(Math.abs(b%60),
2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+Yg(e,2,c)+":"+Yg(Math.abs(b%60),2,c);default:throw Error("Ra`"+a);}}},Qia=function(a){return Vg(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))},Mia=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=Qia(c);c=e.getFullYear();var f=Vg(c,0,1).getDay();c=Vg(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return Yg(e,
a,Og(d,5))}},Tg=function(a,b){b=void 0===b?!1:b;return function(c,d){c=Qia(c).getFullYear();return Yg(c,a,Og(d,5),b)}},Jia=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Kia=function(a,b){var c=a.getTimezoneOffset();b=Jia(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Hia=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=n(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 Vg(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(Ria))return Sia(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Sa`"+a);return b},Sia=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},Tia=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},Zia=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=Uia(a);e&&(h=Via(h));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(Wia);if(null===q)throw Error("Ta`"+d);d=q[1];var t=q[3];q=q[5];null!=d&&(f=Xia(d));null!=t&&(e=Xia(t));null!=q?k=Xia(q):null!=t&&e>k&&(k=e)}Yia(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(Og(c,1));k.length&&(f+=Og(c,0)+k.join(""));e&&(f+=Og(c,6)+"+"+e)}else f=Og(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},Via=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},Uia=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}},Yia=function(a,b,c){if(b>c)throw Error("Ua`"+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,t=b+a.integerLen;if(b=d.reduceRight(function(x,y,F,K){y+=x;K[F]=10>y?y:y-10;q&&(0===K[F]&&F>=t?K.pop():
q=!1);return 10<=y?1:0},0))d.unshift(b),a.integerLen++},Xia=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Va`"+a);return b},$ia=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},aja=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)},Zg=function(a){return a&&"?"!==a[0]?"?"+a:a},$g=function(a){return null==a||("string"===typeof a||
Array.isArray(a))&&0===a.length},bja=function(a){return function(b){if($g(b.value)||$g(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},cja=function(a){return $g(a.value)?{required:!0}:null},dja=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}},fja=function(a){if(!a)return eja;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($g(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},eja=function(){return null},gja=function(a){return null!=a},hja=function(a){return xe(a)?(0,W.from)(a):a},ija=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},jja=function(a,b){return b.map(function(c){return c(a)})},
kja=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},lja=function(a){if(!a)return null;var b=a.filter(gja);return 0==b.length?null:function(c){return ija(jja(c,b))}},mja=function(a){return null!=a?lja(kja(a)):null},nja=function(a){if(!a)return null;var b=a.filter(gja);return 0==b.length?null:function(c){c=jja(c,b).map(hja);return(0,W.forkJoin)(c).pipe(C(ija))}},oja=function(a){return null!=a?nja(kja(a)):null},pja=function(a,b){return null===a?[b]:Array.isArray(a)?
[].concat(r(a),[b]):[a,b]},qja=function(a,b){return[].concat(r(b.path),[a])},ah=function(a,b,c){c=void 0===c?"whenDisabledForLegacyCode":c;rja(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)}sja(a,b);tja(a,b);uja(a,b);vja(a,b)},ch=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));bh(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},
dh=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},vja=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)})}},rja=function(a,b){var c=a._rawValidators;null!==b.validator?wja(a,pja(c,b.validator)):"function"===typeof c&&wja(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?xja(a,pja(c,b.asyncValidator)):
"function"===typeof c&&xja(a,[c]);c=function(){return eh(a)};dh(b._rawValidators,c);dh(b._rawAsyncValidators,c)},bh=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(){};dh(b._rawValidators,a);dh(b._rawAsyncValidators,a);return c},sja=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&yja(a,b)})},uja=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&yja(a,b);"submit"!==a.updateOn&&zja(a)})},yja=function(a,b){a._pendingDirty&&Aja(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);
a._pendingChange=!1},tja=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)})},Bja=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},Cja=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)})},
Dja=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===fh?b=e:Object.getPrototypeOf(e.constructor)===gh?c=e:d=e});return d?d:c?c:b?b:null},Eja=function(a){return(hh(a)?a.validators:a)||null},hh=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},Fja=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new Lc(1002,"");})},Gja=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in
a&&"disabled"in a},Ija=function(){if(ih)return ih;if("object"!==typeof document||!document)return ih=new Set(Hja);var a=document.createElement("input");return ih=new Set(Hja.filter(function(b){a.setAttribute("type",b);return a.type===b}))},Jja=function(){if(null==jh&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return jh=!0}}))}finally{jh=jh||!1}return jh},kh=function(a){return Jja()?a:!!a.capture},Kja=function(){if(null==lh){if("object"!==
typeof document||!document||"function"!==typeof Element||!Element)return lh=!1;if("scrollBehavior"in document.documentElement.style)lh=!0;else{var a=Element.prototype.scrollTo;lh=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return lh},Lja=function(){if("object"!==typeof document||!document)return 0;if(null==mh){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);mh=0;0===a.scrollLeft&&(a.scrollLeft=1,mh=0===a.scrollLeft?1:2);a.remove()}return mh},nh=function(a){if(null==Mja){var b="undefined"!==typeof document?document.head:null;Mja=!(!b||!b.createShadowRoot&&!b.attachShadow)}return Mja&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},oh=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},ph=function(a){return a.composedPath?a.composedPath()[0]:a.target},Nja=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},Oja=function(a){if(!a.hasAttribute("tabindex")||void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},Pja=function(a){if(!Oja(a))return null;
a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},qh=function(a){return Array.isArray(a)?a:[a]},rh=function(a){return null!=a&&"false"!==""+a},sh=function(a){return null==a?"":"string"===typeof a?a:a+"px"},th=function(a){return a instanceof Rd?a.nativeElement:a},uh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},Qja=function(a){var b=void 0===b?/\s+/:b;var c=[];if(null!=a)for(a=Array.isArray(a)?a:(""+a).split(b),a=n(a),b=a.next();!b.done;b=a.next())(b=
(""+b.value).trim())&&c.push(b);return c},vh=function(a){return 0===a.buttons||0===a.offsetX&&0===a.offsetY},wh=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)},xh=function(a){var b=Uc.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},Rja=function(a){yh.remove(a)},zh=function(a,b,c){for(var d=0;d<b.length;d++){var e=
b[d];Array.isArray(e)?zh(a,e,c):(e=e.replace(Sja,a),c.push(e))}return c},Tja=function(a){return function(b){if("__ngUnwrap__"===b)return a;!1===a(b)&&(b.preventDefault(),b.returnValue=!1)}},Bh=function(a){var b=void 0===b?{}:b;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 Ah(a)},Uja=function(a){if("script"===a.tagName.toLowerCase())throw Error("eb");if("style"===a.tagName.toLowerCase())throw Error("fb");},Wja=function(a){if(a instanceof ec)a=fc(a);else{b:if(Vja){try{var b=new URL(a)}catch(c){b="https:";break b}b=b.protocol}else c:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break c}b=b.protocol;b=":"===b||""===b?"https:":b}a="javascript:"!==b?a:void 0}return a},Dh=function(a){var b=Uc.apply(1,arguments);if(0===b.length)return Ch(a[0]);for(var c=
[a[0]],d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),c.push(a[d+1]);return Ch(c.join(""))},Eh=function(a){return new Xja(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},Gh=function(a){var b=void 0===b?Yja:b;a:{b=void 0===b?Yja:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Xja&&d.isValid(a)){a=Fh(a);break a}}a=void 0}return a||ic},aka=function(a,b){var c=[];"string"==typeof a?a.split(/\s*,\s*/).forEach(function(d){a:{if(":"==d[0]&&(d=Zja(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 Lc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push($ja(d,e));"<"!=f[0]||"*"==d&&"*"==e||c.push($ja(e,d));d=void 0}}return d}):c.push(a);return c},Zja=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 Lc(3016,
!1)),"* => *"}},$ja=function(a,b){var c=Hh.has(a)||Ih.has(a),d=Hh.has(b)||Ih.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==f;!h&&c&&"boolean"===typeof e&&(h=e?Hh.has(a):Ih.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Hh.has(b):Ih.has(b));return h&&k}},Jh=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Kh=function(a,b){return{type:4,styles:void 0===b?null:b,timings:a}},Lh=function(a){return{type:6,styles:a,offset:null}},Mh=function(a,b){return{type:0,name:a,styles:b,options:void 0}},
Nh=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},Oh=function(){return{type:9,options:null}},Ph=function(a,b){var c={optional:!0};return{type:11,selector:a,animation:b,options:void 0===c?null:c}},bka=function(){return"undefined"!==typeof process&&"[object process]"==={}.toString.call(process)},Rh=function(a){switch(a.length){case 0:return new Qh;case 1:return a[0];default:return new cka(a)}},eka=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"),t=q==f,x=t&&h||new Map;k.forEach(function(y,F){var K=F;if("offset"!==F)switch(K=Sh(K),y){case "!":y=b.get(F);break;case "*":y=c.get(F);break;default:y=dka(K,y,d)}x.set(K,y)});t||e.push(x);h=x;f=q});if(d.length)throw new Lc(3502,!1);return e},gka=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&fka(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&fka(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&
fka(c,"destroy",a))})}},fka=function(a,b,c){var d=c.totalTime;b=hka(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},hka=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}},Th=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},ika=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},kka=function(a){a=
a.parentNode||a.host;return a===jka?null:a},Uh=function(a){if("number"==typeof a)return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||2>a.length?0:lka(parseFloat(a[1]),a[2])},lka=function(a,b){switch(b){case "s":return 1E3*a;default:return a}},Vh=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 Lc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=
lka(parseFloat(d[1]),d[2]);var h=d[3];null!=h&&(e=lka(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,0>a&&(b.push(new Lc(3100,!1)),c=!0),0>e&&(b.push(new Lc(3101,!1)),c=!0),c&&b.splice(d,0,new Lc(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},Wh=function(a){var b=void 0===b?{}:b;Object.keys(a).forEach(function(c){b[c]=a[c]});return b},mka=function(a){var b=new Map;Object.keys(a).forEach(function(c){b.set(c,a[c])});return b},nka=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return mka(b)}):
[]},Xh=function(a,b,c){b=void 0===b?new Map:b;if(c){c=n(c);for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b.set(d,e)}}a=n(a);for(c=a.next();!c.done;c=a.next())d=n(c.value),c=d.next().value,d=d.next().value,b.set(c,d);return b},oka=function(a){for(var b="",c=0;c<a.style.length;c++){var d=a.style.item(c),e=a.style.getPropertyValue(d);b+=e?d+":"+e+";":""}for(var f in a.style)a.style.hasOwnProperty(f)&&!f.startsWith("_")&&(c=f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),
d=a.style[f],b+=d?c+":"+d+";":"");a.setAttribute("style",b)},Yh=function(a,b,c){a.style&&(b.forEach(function(d,e){var f=Sh(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d}),bka()&&oka(a))},Zh=function(a,b){a.style&&(b.forEach(function(c,d){d=Sh(d);a.style[d]=""}),bka()&&oka(a))},$h=function(a){return Array.isArray(a)?1==a.length?a[0]:{type:2,steps:a,options:null}:a},qka=function(a,b,c){var d=b.params||{};a=pka(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Lc(3001,!1))})},pka=
function(a){var b=[];if("string"===typeof a){for(var c;c=rka.exec(a);)b.push(c[1]);rka.lastIndex=0}return b},ai=function(a,b,c){var d=a.toString(),e=d.replace(rka,function(f,h){h=b[h];null==h&&(c.push(new Lc(3003,!1)),h="");return h.toString()});return e==d?a:e},bi=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},Sh=function(a){return a.replace(ska,function(){return Uc.apply(0,arguments)[1].toUpperCase()})},tka=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={$jscomp$loop$prop$kf$1907:c.$jscomp$loop$prop$kf$1907},f++)c.$jscomp$loop$prop$kf$1907=b[f],e.forEach(function(h){return function(k){var q=h.$jscomp$loop$prop$kf$1907,t=q.set;var x=window.getComputedStyle(a)[k];return t.call(q,k,x)}}(c))}}return b},ci=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 Lc(3004,!1);}},vka=function(a){var b=a.split(/\s*,\s*/).find(function(c){return":self"==c})?!0:!1;b&&(a=a.replace(uka,""));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]},wka=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},xka=function(a,b){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return{duration:Vh(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=Vh(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},di=function(a){if(a){if(a=Wh(a),a.params){var b=a;var c=(c=a.params)?Wh(c):null;b.params=c}}else a={};return a},yka=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}},Aka=function(a,b,c,d,e,f,h,k,q,t){f=void 0===f?new Map:f;h=void 0===h?new Map:h;t=void 0===t?[]:t;return(new zka).buildKeyframes(a,b,c,d,e,f,h,k,q,t)},Bka=function(a){var b=Math.pow(10,2);return Math.round(a*b)/b},Cka=function(a,b){var c=new Map,d;a.forEach(function(e){if("*"===e){d=d||b.keys();e=n(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else Xh(e,c)});return c},Dka=function(a,b,c,d,e,f,h,k,q,t,x,y,F){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,
fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:t,postStyleProps:x,totalTime:y,errors:F}},Eka=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},Fka=function(a,b){b=Wh(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},Gka=function(a,b){return new ei(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},Hka=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))},fi=function(a){return a&&1===a.nodeType},Ika=function(a,b){var c=a.style.display;a.style.display=null!=b?b:"none";return c},Kka=function(a,b,c,d,e){var f=[];c.forEach(function(q){return f.push(Ika(q))});var h=[];d.forEach(function(q,t){var x=new Map;q.forEach(function(y){var F=b.computeStyle(t,y,e);x.set(y,F);F&&0!=F.length||(t.__ng_removed=Jka,h.push(t))});a.set(t,x)});var k=0;c.forEach(function(q){return Ika(q,f[k++])});return h},Lka=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},gi=function(a,b){var c;null==(c=a.classList)||c.add(b)},hi=function(a,b){var c;null==(c=a.classList)||c.remove(b)},Mka=function(a,b,c){Rh(c).onDone(function(){return ii(a,b)})},Oka=function(a){var b=[];Nka(a,b);return b},Nka=
function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof cka?Nka(d.players,b):b.push(d)}},Pka=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},Qka=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},Ska=function(a,b){var c=null,d=null;Array.isArray(b)&&b.length?(c=Rka(b[0]),1<b.length&&
(d=Rka(b[b.length-1]))):b instanceof Map&&(c=Rka(b));return c||d?new ji(a,c,d):null},Rka=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},Tka=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},Uka=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},Vka=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},
removeListener:function(){}}},Wka=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},Xka=function(){return null},Yka=function(a,b){var c=ki(a);c.some(function(d){return d.trim()==b.trim()})||(c.push(b.trim()),a.setAttribute("aria-describedby",c.join(" ")))},Zka=function(a,b){var c=ki(a).filter(function(d){return d!=b.trim()});c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby")},
ki=function(a){return(a.getAttribute("aria-describedby")||"").match(/\S+/g)||[]},$ka=function(a,b){return"string"===typeof a?(b||"")+"/"+a:a},bla=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+ala++)},cla=function(){return Rc(li)},dla=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})},ela=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})},fla=function(a){return a&&"function"===typeof a.connect&&!(a instanceof W.ConnectableObservable)},mi=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},hla=function(a){if("number"!==typeof a&&null!=a){var b=n(a.split(gla));a=b.next().value;return(b=b.next().value)&&"px"!==b?null:parseFloat(a)}return a||null},ila=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)}},
oi=function(a,b){var c=function(){var d=a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};X(c,a);ni.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},pi=function(a){var b=function(){var c=
a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;c._disableRipple=!1;return c};X(b,a);ni.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=rh(c)}}});return b},qi=function(a){var b=function(){var c=a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;c._disabled=!1;return c};X(b,a);ni.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(c){this._disabled=rh(c)}}});return b},jla=function(a){var b=function(){var c=a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;c.errorState=!1;return c};X(b,a);b.prototype.updateErrorState=function(){var c=this.ngControl?this.ngControl.control:null;var d=this._parentFormGroup||this._parentForm;c=!!(c&&c.invalid&&(c.touched||d&&d.submitted));c!==this.errorState&&(this.errorState=c,this.stateChanges.next())};return b},kla=function(a){var b=function(){var c=a.apply(this,[].concat(r(Uc.apply(0,
arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new W.Observable(function(d){c._isInitialized?c._notifySubscriber(d):c._pendingSubscribers.push(d)});return c};X(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},si=function(a){var b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(r(Uc.apply(0,
arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};X(c,a);ni.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=null!=d?uh(d):this.defaultTabIndex}}});return c},lla=function(){return Rc(ti)},mla=function(a,b){var c=void 0===c?"mat":c;a.changes.pipe(Cf(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)})},nla=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)},ola=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},pla=function(a,b,c,d){return a<
c?a:a+b>c+d?Math.max(0,a-d+b):c},qla=function(a){a&1&&(E(0,"tr",3)(1,"td",4),Q(2),G()());a&2&&(a=N(),A(1),Yf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Uf("colspan",a.numCols),A(1),T(" ",a.label," "))},rla=function(a){a&1&&(E(0,"td",4),Q(1),G());a&2&&(a=N(2),Yf("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Uf("colspan",a._firstRowOffset),A(1),T(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},sla=function(a,b){if(a&1){var c=v();E(0,"td",8)(1,"button",
9);M("click",function(f){var h=w(c).$implicit,k=N(2);return z(k._cellClicked(h,f))})("focus",function(f){var h=w(c).$implicit,k=N(2);return z(k._emitActiveDateChange(h,f))});E(2,"div",10);Q(3);G();H(4,"div",11);G()()}if(a&2){a=b.$implicit;b=b.index;var d=N().index,e=N();Yf("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Uf("data-mat-row",d)("data-mat-col",b);A(1);Zf("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));D("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);Uf("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));
A(1);Zf("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);A(1);T(" ",a.displayValue," ")}},tla=function(a,b){a&1&&(E(0,"tr",5),P(1,rla,2,6,"td",6),P(2,sla,5,48,"td",7),G());if(a&2){a=b.$implicit;b=b.index;var c=N();A(1);D("ngIf",0===b&&c._firstRowOffset);A(1);D("ngForOf",a)}},ula=function(a){return"TD"===(null==a?void 0:a.nodeName)},vla=function(a){if(ula(a))var b=
a;else if(ula(a.parentNode))b=a.parentNode;else{var c;ula(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},wla=function(a,b,c){return null!==c&&b!==c&&a<c&&a===b},xla=function(a,b,c){return null!==b&&b!==c&&a>=b&&a===c},yla=function(a,b,c,d){return d&&null!==b&&null!==c&&b!==c&&a>=b&&a<=c},zla=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},Ala=function(a,
b){a&1&&(E(0,"th",5)(1,"span",6),Q(2),G(),E(3,"span",7),Q(4),G()());a&2&&(a=b.$implicit,A(2),kg(a.long),A(2),kg(a.narrow))},Cla=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=Bla(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},ui=function(a,b,c,d){return((a.getYear(b)-Bla(a,c,d))%24+24)%24},Bla=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},Dla=function(){},Ela=function(a){if(a&1){var b=v();E(0,"mat-month-view",5);M("activeDateChange",function(c){w(b);
var d=N();return z(d.activeDate=c)})("_userSelection",function(c){w(b);var d=N();return z(d._dateSelected(c))})("dragStarted",function(c){w(b);var d=N();return z(d._dragStarted(c))})("dragEnded",function(c){w(b);var d=N();return z(d._dragEnded(c))});G()}a&2&&(a=N(),D("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))},Fla=function(a){if(a&1){var b=v();E(0,"mat-year-view",6);M("activeDateChange",function(c){w(b);var d=N();return z(d.activeDate=c)})("monthSelected",function(c){w(b);var d=N();return z(d._monthSelectedInYearView(c))})("selectedChange",function(c){w(b);var d=N();return z(d._goToDateInView(c,"month"))});G()}a&2&&(a=N(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",
a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},Gla=function(a){if(a&1){var b=v();E(0,"mat-multi-year-view",7);M("activeDateChange",function(c){w(b);var d=N();return z(d.activeDate=c)})("yearSelected",function(c){w(b);var d=N();return z(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){w(b);var d=N();return z(d._goToDateInView(c,"year"))});G()}a&2&&(a=N(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",
a.dateClass))},Hla=function(a){a&1&&H(0,"mat-pseudo-checkbox",4);a&2&&(a=N(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Ila=function(a){a&1&&(E(0,"span",5),Q(1),G());a&2&&(a=N(),A(1),T("(",a.group.label,")"))},Jla=function(){},Kla=function(a,b){for(var c=a.length;c--;)b(a[c])},Lla=function(){},Mla=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},
Nla=function(a){a&1&&(I(0),E(1,"div",14),H(2,"div",15)(3,"div",16)(4,"div",17),G(),E(5,"div",18),H(6,"div",15)(7,"div",16)(8,"div",17),G(),L())},Ola=function(a){if(a&1){var b=v();E(0,"div",19);M("cdkObserveContent",function(){w(b);var c=N();return z(vi(c))});gg(1,1);G()}a&2&&(a=N(),D("cdkObserveContentDisabled","outline"!=a.appearance))},Pla=function(a){a&1&&(I(0),gg(1,2),E(2,"span"),Q(3),G(),L());a&2&&(a=N(2),A(3),kg(a._control.placeholder))},Qla=function(a){a&1&&gg(0,3,["*ngSwitchCase","true"])},
Rla=function(a){a&1&&(E(0,"span",23),Q(1," *"),G())},Sla=function(a){if(a&1){var b=v();E(0,"label",20,21);M("cdkObserveContent",function(){w(b);var c=N();return z(vi(c))});P(2,Pla,4,1,"ng-container",12);P(3,Qla,1,0,"ng-content",12);P(4,Rla,2,0,"span",22);G()}a&2&&(a=N(),Zf("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),D("cdkObserveContentDisabled","outline"!=a.appearance)("id",
a._labelId)("ngSwitch",a._hasLabel()),Uf("for",a._control.id)("aria-owns",a._control.id),A(2),D("ngSwitchCase",!1),A(1),D("ngSwitchCase",!0),A(1),D("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Tla=function(a){a&1&&(E(0,"div",24),gg(1,4),G())},Ula=function(a){a&1&&(E(0,"div",25),H(1,"span",26),G());a&2&&(a=N(),A(1),Zf("mat-accent","accent"==a.color)("mat-warn","warn"==a.color))},Vla=function(a){a&1&&(E(0,"div"),gg(1,5),G());a&2&&(a=N(),D("@transitionMessages",a._subscriptAnimationState))},
Wla=function(a){a&1&&(E(0,"div",30),Q(1),G());a&2&&(a=N(2),D("id",a._hintLabelId),A(1),kg(a.hintLabel))},Xla=function(a){a&1&&(E(0,"div",27),P(1,Wla,2,2,"div",28),gg(2,6),H(3,"div",29),gg(4,7),G());a&2&&(a=N(),D("@transitionMessages",a._subscriptAnimationState),A(1),D("ngIf",a.hintLabel))},Yla=function(a){var b=new Map;0<a.length&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=n(-1==d?[decodeURIComponent(c),""]:[decodeURIComponent(c.slice(0,d)),decodeURIComponent(c.slice(d+
1))]);c=d.next().value;d=d.next().value;var e=b.get(c)||[];e.push(d);b.set(c,e)});return b},ama=function(a){return encodeURIComponent(a).replace(Zla,function(b,c){var d;return null!=(d=$la[c])?d:b})},bma=function(a){return""+a},cma=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},dma=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},ema=function(a){return"undefined"!==typeof FormData&&a instanceof FormData},fma=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}},gma=function(a,b){return b(a)},hma=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},ima=function(a,b,c){return function(d,e){return wi(c,function(){return b(d,function(f){return a(f,e)})})}},mma=function(a,b){var c=a.url.toLowerCase();if(!Rc(jma)||"GET"===a.method||"HEAD"===a.method||c.startsWith("http://")||
c.startsWith("https://"))return b(a);c=Rc(kma).getToken();var d=Rc(lma);null==c||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},nma=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},pma=function(){var a=[];a.push({provide:oma,useValue:"XSRF-TOKEN"});a.push({provide:lma,useValue:"X-XSRF-TOKEN"});return nma(2,a)},qma=function(){if(void 0===xi&&(xi=null,"undefined"!==typeof window)){var a=window;void 0!==a.trustedTypes&&(xi=a.trustedTypes.createPolicy("angular#components",
{createHTML:function(b){return b}}))}return xi},rma=function(a){var b;return(null==(b=qma())?void 0:b.createHTML(a))||a},sma=function(){var a=Rc(li),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},tma=function(a){a&1&&(E(0,"mat-icon",9),Q(1),G());a&2&&(a=N(2),A(1),kg(a.actionBtnIcon))},uma=function(a){if(a&1){var b=v();E(0,"button",6);M("click",function(){w(b);var c=N();return z(c.action.emit())});E(1,"span",7);Q(2);P(3,tma,2,1,"mat-icon",8);G()()}a&2&&(a=N(),
A(2),T(" ",a.actionBtnText," "),A(1),D("ngIf",a.actionBtnIcon))},vma=function(a){if(a&1){var b=v();E(0,"onedev-feature-tooltip-body",1);M("action",function(){w(b);var c=N();return z(c.action.emit())})("dismiss",function(){w(b);var c=N();c.hideFeatureTooltip();c.dismiss.emit();return z()});gg(1);G()}a&2&&(a=N(),D("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},yi=function(a){a&&"function"==typeof a.dispose&&
a.dispose()},wma=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Ha(d)?wma.apply(null,d):yi(d)}},xma=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;x=t=0}function b(y){for(var F=h,K=0;64>K;K+=4)F[K/4]=y[K]<<24|y[K+1]<<16|y[K+2]<<8|y[K+3];for(K=16;80>K;K++)y=F[K-3]^F[K-8]^F[K-14]^F[K-16],F[K]=(y<<1|y>>>31)&4294967295;y=e[0];var J=e[1],R=e[2],S=e[3],aa=e[4];for(K=0;80>K;K++){if(40>K)if(20>K){var ba=S^J&(R^S);var ka=1518500249}else ba=
J^R^S,ka=1859775393;else 60>K?(ba=J&R|S&(J|R),ka=2400959708):(ba=J^R^S,ka=3395469782);ba=((y<<5|y>>>27)&4294967295)+ba+aa+ka+F[K]&4294967295;aa=S;S=R;R=(J<<30|J>>>2)&4294967295;J=y;y=ba}e[0]=e[0]+y&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+R&4294967295;e[3]=e[3]+S&4294967295;e[4]=e[4]+aa&4294967295}function c(y,F){if("string"===typeof y){y=unescape(encodeURIComponent(y));for(var K=[],J=0,R=y.length;J<R;++J)K.push(y.charCodeAt(J));y=K}F||(F=y.length);K=0;if(0==t)for(;K+64<F;)b(y.slice(K,K+64)),K+=
64,x+=64;for(;K<F;)if(f[t++]=y[K++],x++,64==t)for(t=0,b(f);K+64<F;)b(y.slice(K,K+64)),K+=64,x+=64}function d(){var y=[],F=8*x;56>t?c(k,56-t):c(k,64-(t-56));for(var K=63;56<=K;K--)f[K]=F&255,F>>>=8;b(f);for(K=F=0;5>K;K++)for(var J=24;0<=J;J-=8)y[F++]=e[K]>>J&255;return y}for(var e=[],f=[],h=[],k=[128],q=1;64>q;++q)k[q]=0;var t,x;a();return{reset:a,update:c,digest:d,digestString:function(){for(var y=d(),F="",K=0;K<y.length;K++)F+="0123456789ABCDEF".charAt(Math.floor(y[K]/16))+"0123456789ABCDEF".charAt(y[K]%
16);return F}}},yma=function(a,b,c){zi(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)},zma=function(a){this.logSource_=a;this.sessionIndex_="0";this.destinationUrl_="https://play.google.com/log?format=json&hasfast=true";this.enableServiceWorkerScope_=!1;this.networkIOSend_=yma;this.componentId_="";this.enableSendBeaconApi_=this.useGetRequestForFinalFlush_=this.useSendBeaconForFinalFlush_=
!1;this.useConsistentTimezoneOffset=void 0},Ama=function(a){a&1&&(qd(),E(0,"svg",3),H(1,"polygon",4),G())},Bma=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},Cma=function(a){a&1&&(qd(),E(0,"svg",2),H(1,"polygon",3),G())},Dma=function(a){if(a&1){var b=v();E(0,"div",0);M("keydown",function(c){w(b);var d=N();return z(d._handleKeydown(c))})("click",function(){w(b);var c=N();return z(c.closed.emit("click"))})("@transformMenu.start",
function(c){w(b);var d=N();return z(d._onAnimationStart(c))})("@transformMenu.done",function(c){w(b);var d=N();return z(d._onAnimationDone(c))});E(1,"div",1);gg(2);G()()}a&2&&(a=N(),D("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),Uf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},Ai=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);},Fma=function(a){var b=Bi(a,"Content-Type");
if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new Ci:new Ema;if(b.startsWith("application/x-protobuf")){a=Bi(a,"Content-Transfer-Encoding");if(!a)return new Di;if("base64"==a.toLowerCase())return new Ei}return null},Gma=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,t){(t=document.getElementById(t))&&
q.push(t);return q},[]);if(b.length)return b.map(function(q){return Gma(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 Gma(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()},Hma=function(){return{color:"accent"}},Ima=function(a){return"nonprod"===a.environment?"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com":"https://devopsconsole-pa-googleapis.corp.google.com"},Jma=function(a,b){a.src=Fi(b).toString()},Gi=function(a,b){a.src=Fi(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)},Kma=function(a,b,c){b=Wja(b);void 0!==b&&a.open(b,c,void 0)},Hi=function(a,b){return Object.entries(a).reduce(function(c,d){var e=n(d);d=e.next().value;e=e.next().value;c[b[d]]=e;return c},{})},Lma=function(a){return Ii({id:a.getId(),std_offset:Ji(a,3),names:Ki(a,2),transitions:Li(a,4)||[]})},Qi=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=Mi(a,4);var f=Ub(a,Ni,5);f=null!=f?{logoUrl:f.getLogoUrl(),theme:Mma[f.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,
associatedTrackerIds:e,branding:null!=f?f:null,internalBaseUrl:Oi(a,6)?Pi(a,6):void 0,externalBaseUrl:Oi(a,7)?Pi(a,7):void 0}},Nma=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(Qi)},Oma=function(a){return{trackers:a.getTrackersList().map(Qi),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},Pma=function(a,b){return a.size!==b.size?!1:[].concat(r(a)).every(function(c){return b.has(c)})},Qma=function(a){var b=new Set;a=n(a);for(var c=a.next();!c.done;c=a.next()){c=n(c.value);
for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},Rma=function(a,b){if(!Pma(a,b)){var c=[].concat(r(b)).filter(function(e){return!a.has(e)}),d=[].concat(r(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},Sma=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(r(a===c?b:a)).filter(function(d){return c.has(d)}))},Tma=function(a,b){return a.size>=b.size&&[].concat(r(b)).every(function(c){return a.has(c)})},Uma=function(a){return["google","corp","devops","tools"].reduce(function(b,
c){b=void 0===b?{}:b;return null==b[c]?void 0:b[c]},a)},Ri=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(!Ri(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?Pma(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(!Vma.call(b,f)||!Ri(a[f],b[f]))return!1}return!0}return!1},Wma=function(a){var b=[];a=n(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=n(b),f=e.next();!f.done;f=e.next())if(Ri(c,f.value)){d=!0;break}d||b.push(c)}return b},Xma=function(a,b){for(var c=a.length-1;0<=c;c--)Ri(a[c],b)&&a.splice(c,1)},Yma=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},$ma=function(a){return Object.assign.apply(Object,[{}].concat(r(Zma.map(function(b){var c={};return c[b]=a[b],c}))))},Si=function(a){if(null!==a&&void 0!==a&&-1===["boolean","function","number","string"].indexOf(typeof a))if(Array.isArray(a)){var b=
[];a=n(a);for(var c=a.next();!c.done;c=a.next())b.push(Si(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());else if(a instanceof Map){b=new Map;a=n(a);for(c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.set(Si(c),Si(d))}a=b}else{b={};c=n(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b[d]=Si(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},Ti=function(a){return"number"===typeof a},
Ui=function(a){return"string"===typeof a},ana=function(a){return Ti(a)||Ui(a)},bna=function(a){return Array.isArray(a)&&a.every(Ui)},cna=function(a){return Array.isArray(a)&&a.every(Ti)},dna=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},Vi=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Yi=function(a){if(a){if(Ti(a)){var b=new Date(a);47E3<b.getFullYear()&&(b=
new Date(a/1E3));return new Wi(b)}b=a.split("/");if(3===b.length)return a=Xi(b[2]),50>a?a+=2E3:100>a&&(a+=1900),new Wi(a,Xi(b[0])-1,Xi(b[1]));if(1===b.length)return Yi(Number(a))}return new Wi},ena=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},fna=function(a){return!(!a||!Zi(a,"text/")&&!Zi(a,"image/")&&"application/pdf"!==a)},$i=function(a,b){return a.map(function(c){return c[b]})},gna=function(a,b){return a.filter(function(c){return!b.has(c)})},hna=function(a,b){for(var c=n(a),
d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=n(b);for(d=b.next();!d.done;d=b.next())if(!a.has(d.value))return!1;return!0},aj=function(a,b){return gna(a,new Set(b))},cj=function(a,b){var c=/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(bj).filter(function(d){return!!d})},ina=function(a,b){a=new URL(a);return a.host+a.pathname+b},dj=function(a){return void 0!==a.user},ej=function(a){return void 0!==a.group},jna=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";
case "googlers_unrestricted":return"Full-time Googlers";default:return fj(a.replace(/_/g," ").toLowerCase())}},hj=function(a){if(null==a)return"UNSPECIFIED_FORMATTING_MODE";switch(gj[a]){case 2:return"MARKDOWN";case 1:return"PLAIN";case 3:return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},jj=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new ij({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new ij({type:"CUSTOM_FIELD",
customFieldId:a.customFieldId,customFieldName:a.name}));return a},kna=function(a){a=kj(a);if(lj(a))return null;var b=a.split(":");if(2!==b.length||lj(b[1]))return null;a="asc"===b[1].toLowerCase()?"ASCENDING":"DESCENDING";return(b=jj(b[0]))&&a?new mj(b,a):null},yna=function(a){var b={};nj(a,1)&&(b.showFullHistory=oj(a,1));nj(a,2)&&(b.useCodefont=oj(a,2));nj(a,5)&&(b.resultsPerPage=Ji(a,5));nj(a,26)&&(b.showRecentEventsFirst=oj(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(lna)});
if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(mna)};Oi(a,7)&&(b.bannerMessageId=Pi(a,7));if(c=Ub(a,nna,3)){var d={};nj(c,1)&&(d.reportedPriority=pj[qj(c,1,0)]);nj(c,2)&&(d.assignedPriority=pj[qj(c,2,0)]);nj(c,3)&&(d.verifiedPriority=pj[qj(c,3,0)]);nj(c,4)&&(d.ccdPriority=pj[qj(c,4,0)]);nj(c,9)&&(d.collaboratorPriority=pj[qj(c,9,0)]);nj(c,5)&&(d.starredPriority=pj[qj(c,5,0)]);nj(c,6)&&(d.excludeChangesByMe=oj(c,6));nj(c,7)&&(d.unsubscribeFromAll=oj(c,7));nj(c,8)&&(d.enableV2Prefs=
oj(c,8));b.notificationPreferences=d}if(d=Ub(a,ona,9))c={showHotlists:oj(d,1),showStatusIcons:oj(d,4),wrapComponents:oj(d,3),wrapTitles:oj(d,2),rtlComponentPath:oj(d,5)},d=rj(d,6),c.fieldStatus=Object.fromEntries(d.entries()),b.listViewPreferences=c;if(c=a.getLayoutPreferences())d={},nj(c,1)&&(d.leftSidebarWidth=Ji(c,1)),nj(c,2)&&(d.expandIssueSlo=oj(c,2)),nj(c,3)&&(d.rightSidebarWidth=Ji(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},Oi(c,1)&&(d.calendarFormat=Pi(c,1)),Oi(c,2)&&
(d.timeFormat=Pi(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),nj(c,7)&&(d.sloEtaViewAs=pna[qj(c,7,0)]),b.dateTimePreferences=d;if(c=Ub(a,sj,8))d={},nj(c,1)&&(d.density=qna[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=rna(c.getResourceType())),c.hasResourceId()&&(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=Ub(a,sna,17))d={},nj(c,1)&&(d.enableAllHotkeys=oj(c,1,!0)),b.keyboardPreferences=d;tj(a,16)&&(b.newFeaturesAcknowledgedMillis=
uj(a,16));nj(a,18)&&(b.autoCcOnComment=oj(a,18));vj(a,wj,20)&&(d=Ub(a,wj,20),c=d.getCommentDisplayOverride(),d=qj(d,1,0),b.textDisplayPreferences={commentDisplayOverride:tna(c),lastPublishMode:tna(d)});vj(a,xj,21)&&(c=Ub(a,xj,21),d={},nj(c,2)&&(d.announcementDismissed=oj(c,2)),nj(c,1)&&(d.enableBugScreensaver=oj(c,1)),b.bugScreensaverPreferences=d);vj(a,yj,24)&&(c=Ub(a,yj,24),d={},zj(c,1)&&(d.announcementDismissedMillis=Aj(c,1)),b.g3nPreferences=d);if(c=Ub(a,una,23))b.teamWarningPreferences={componentTeamWarnings:Nb(c,
Bj,1).map(vna)};c=rj(a,25,Cj);c.size&&(b.dismissalTimestamps=wna(c));c=rj(a,27);c.size&&(b.collapsed=Object.fromEntries(c.entries()));nj(a,29)&&(b.showInlineImages=a.getShowInlineImages());vj(a,Dj,28)&&(a=Ub(a,Dj,28),c={},nj(a,1)&&(c.commentFilter=xna(qj(a,1,0))),b.commentFilterPreferences=c);return b},lna=function(a){var b={};a.hasType()&&(b.type=zna[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=a.getCustomFieldId());return b},mna=function(a){var b={};if(nj(a,2)){a:{var c=qj(a,2,1);switch(c){case 1:c=
"ASCENDING";break a;case 2:c="DESCENDING";break a;default:c=Ai(c,"Unknown sortOrder: "+c)}}b.order=c}if(a=a.getColumn())b.column=lna(a);return b},tna=function(a){if(0!==a)return gj[a]},rna=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";default:return Ai(a,"Unknown resourceType: "+a)}},vna=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId());zj(a,2)&&(b.dismissMillis=Aj(a,2));return b},wna=function(a){a=Array.from(a.entries()).map(function(b){var c=
n(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},xna=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 Ai(a,"Unknown resourceType: "+a)}},Kna=function(a){var b=new Ej;null!=a.showFullHistory&&m(b,1,a.showFullHistory);null!=a.useCodefont&&m(b,2,a.useCodefont);null!=a.resultsPerPage&&m(b,5,a.resultsPerPage);if(null!=a.displayColumns){var c=Ana(a.displayColumns);
Vb(b,4,c)}null!=a.sortColumns&&(c=Bna(a.sortColumns),Vb(b,6,c));null!=a.bannerMessageId&&m(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new nna;d=m(d,1,Fj[c.reportedPriority]);d=m(d,2,Fj[c.assignedPriority]);d=m(d,3,Fj[c.verifiedPriority]);d=m(d,4,Fj[c.ccdPriority]);d=m(d,9,Fj[c.collaboratorPriority]);d=m(d,5,Fj[c.starredPriority]);d=m(d,6,c.excludeChangesByMe);d=m(d,7,c.unsubscribeFromAll);c=m(d,8,c.unsubscribeFromAll);Vb(b,3,c)}null!=a.listViewPreferences&&
(c=a.listViewPreferences,d=new ona,d=m(d,1,c.showHotlists),d=m(d,2,c.wrapTitles),d=m(d,3,c.wrapComponents),d=m(d,4,c.showStatusIcons),d=m(d,5,c.rtlComponentPath),null!=c.fieldStatus&&Cna(c.fieldStatus,rj(d,6)),Vb(b,9,d));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new Dna,null!=c.leftSidebarWidth&&m(d,1,c.leftSidebarWidth),null!=c.expandIssueSlo&&m(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&m(d,3,c.rightSidebarWidth),Vb(b,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,
d=new Gj,d=m(d,1,c.calendarFormat),d=m(d,2,c.timeFormat).setTimeZone(c.timeZone),c=m(d,7,Ena[c.sloEtaViewAs]),Vb(b,11,c));null!=a.themePreferences&&(c=a.themePreferences,c=(new sj).setDensity(Fna[c.density]),Vb(b,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new Hj,null!=c.resourceType&&d.setResourceType(Gna(c.resourceType)),null!=c.resourceId&&d.setResourceId(c.resourceId),Vb(b,13,d));null!=a.keyboardPreferences&&(c=a.keyboardPreferences,d=new sna,c=m(d,1,c.enableAllHotkeys),Vb(b,
17,c));null!=a.newFeaturesAcknowledgedMillis&&m(b,16,a.newFeaturesAcknowledgedMillis);null!=a.autoCcOnComment&&m(b,18,a.autoCcOnComment);null!=a.textDisplayPreferences&&(c=a.textDisplayPreferences,d=new wj,c.commentDisplayOverride&&d.setCommentDisplayOverride(Hna(c.commentDisplayOverride)),c.lastPublishMode&&m(d,1,Hna(c.lastPublishMode)),Vb(b,20,d));null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,d=new xj,null!=c.enableBugScreensaver&&m(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&
m(d,2,c.announcementDismissed),Vb(b,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new yj,null!=c.announcementDismissedMillis&&m(d,1,c.announcementDismissedMillis),Vb(b,24,d));null!=a.teamWarningPreferences&&(c=Ina(a.teamWarningPreferences),Vb(b,23,c));if(null!=a.dismissalTimestamps){c=rj(b,25,Cj);d=n(Object.entries(a.dismissalTimestamps));for(var e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set,q=new Cj;h=h.getTime();q.setSeconds(Math.floor(h/
1E3)).setNanos(h%1E3*1E6);k.call(f,e,q)}}null!=a.collapsed&&Cna(a.collapsed,rj(b,27));null!=a.showRecentEventsFirst&&m(b,26,a.showRecentEventsFirst);null!=a.showInlineImages&&m(b,29,a.showInlineImages);null!=a.commentFilterPreferences&&(c=a.commentFilterPreferences,a=new Dj,null!=c.commentFilter&&(c=Jna(c.commentFilter),m(a,1,c)),Vb(b,28,a));return b},Ana=function(a){return(new Ij).setColumnList(a.column.map(function(b){return Lna(b)}))},Lna=function(a){var b=new Jj,c=b.setType,d=a.type;if(!Kj.hasOwnProperty(d))throw Error("ac`"+
d);b=c.call(b,Mna[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},Bna=function(a){return(new Lj).setColumnList(a.column.map(function(b){var c=(new Mj).setColumn(Lna(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=Ai(b,"Unknown sortOrder: "+b)}return m(c,2,b)}))},Gna=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;default:return Ai(a,"Unknown resourceType: "+a)}},
Hna=function(a){switch(gj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},Ina=function(a){var b=new una;null!=a.componentTeamWarnings&&Nna(b,a.componentTeamWarnings.map(function(c){var d=new Bj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&m(d,2,c.dismissMillis);return d}));return b},Jna=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 Ai(a,"Unknown commentFilterType: "+
a)}},Cna=function(a,b){a=n(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}},Uj=function(){null==Nj&&(Nj=new Ona(Pna.buganizerSessionJspb));Nj.hasConfig()||Nj.setConfig(new Oj);if(!vj(Nj,Pj,9)){var a=Nj,b=new Pj;Vb(a,9,b)}Nj.hasUser()||Nj.setUser(new Qj);vj(Nj,Ej,7)||(a=Nj,b=new Ej,Vb(a,7,b));a=Nj;b=a.hasUser()?a.getUser():new Qj;b=oj(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,
email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};var c=a.hasConfig()?a.getConfig():new Oj;for(var d=new Map,e=n(rj(c,4).entries()),f=e.next();!f.done;f=e.next()){var h=n(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:Mi(c,10),isDogfooder:oj(c,11),createRestrictedSubresourcesComponentWhitelist:Cb(c,13,lb)};d=yna(vj(a,Ej,7)?a.getUserPreferences():new Ej);f=vj(a,Pj,9)?Ub(a,Pj,9):new Pj;e=Nb(f,Rj,1).map(Lma);vj(f,Sj,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:Pi(f,2),dismissible:oj(f,3),tags:Ki(f,4)}):
f=null;e={timezones:e,announcement:f};return{user:b,config:c,xsrfToken:a.getXsrfToken(),cspNonce:a.getCspNonce(),frontendAccessMode:a.getFrontendAccessMode(),mustAcknowledgeTerms:a.getMustAcknowledgeTerms(),showNewFeaturesDialog:a.getShowNewFeaturesDialog(),userPreferences:d,preload:e,appBaseHref:a.getAppBaseHref(),tracker:vj(a,Tj,11)?Qi(a.getTracker()):null}},Vj=function(a){return a},Wj=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},Xj=function(a,b){for(var c=
Math.max(a.length,b.length),d=[],e=0;e<c;e++)d.push([a[e],b[e]]);return d},Qna=function(a){a=void 0===a?[]:a;return a.filter(function(b){return"number"===typeof b}).filter(function(b){return 0!==b})},Rna=function(a,b){if(a.length!==b.length)return!1;a=[].concat(r(a)).sort();b=[].concat(r(b)).sort();return a.every(function(c,d){return c===b[d]})},Sna=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)})}},Tna=
function(a,b){var c=new Map;a=n(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(r(c.values()))},Yj=function(a){a=void 0===a?{}:a;return Qna(Object.values(a)).sort(function(b,c){return b-c})},Una=function(a){a&1&&(E(0,"button",15)(1,"span"),Q(2,"Edit"),G(),H(3,"b-icon",16),G());if(a&2){a=N();var b=O(7);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Vna=function(a){a&1&&(E(0,"button",15)(1,"span"),Q(2,"Link"),
G(),H(3,"b-icon",16),G());if(a&2){a=N();var b=O(66);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Wna=function(a){a&1&&(E(0,"button",15)(1,"span"),Q(2,"CC"),G(),H(3,"b-icon",16),G());if(a&2){a=N();var b=O(82);D("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},Xna=function(a,b){if(a&1){var c=v();E(0,"button",3);M("click",function(){var d=w(c).$implicit,e=N();return z(e.quickBulkEdit("PRIORITY",d))});Q(1);G()}a&2&&(a=b.$implicit,b=N(),A(1),T(" ",b.constants.protoIssuePrioritiesDisplayNames.get(a),
" "))},Yna=function(a,b){if(a&1){var c=v();E(0,"button",3);M("click",function(){var d=w(c).$implicit,e=N();return z(e.quickBulkEdit("SEVERITY",d))});Q(1);G()}a&2&&(a=b.$implicit,b=N(),A(1),T(" ",b.constants.protoIssueSeveritiesDisplayNames.get(a)," "))},Zna=function(a,b){if(a&1){var c=v();E(0,"button",3);M("click",function(){var d=w(c).$implicit,e=N();return z(e.quickBulkEdit("STATUS",d))});Q(1);G()}a&2&&(a=b.$implicit,b=N(),A(1),T(" ",b.STATUS_FULL_TEXT[a]," "))},$na=function(a,b){if(a&1){var c=
v();E(0,"button",17);M("click",function(){var e=w(c).$implicit,f=N();return z(f.quickBulkEdit("TYPE",e))});Q(1);G()}if(a&2){a=b.$implicit;b=N();var d;D("matTooltip",null!==(d=b.constants.protoIssueTypesShortDescriptions.get(a))&&void 0!==d?d:"");A(1);T(" ",b.constants.protoIssueTypesDisplayNames.get(a)," ")}},aoa=function(a){if(a&1){var b=v();E(0,"button",5);M("click",function(){w(b);var c=N(2);return z(c.exportCsvClicked.emit())});Q(1,"Export issues to CSV ");G()}},boa=function(a){if(a&1){var b=
v();E(0,"button",5);M("click",function(){w(b);var c=N(2);return z(c.flagAsSpamClicked.emit())});Q(1,"Flag issues as spam ");G()}},coa=function(a){a&1&&(I(0),E(1,"button",1)(2,"span"),Q(3,"More"),G(),H(4,"b-icon",2),G(),E(5,"mat-menu",null,3),P(7,aoa,2,0,"button",4),P(8,boa,2,0,"button",4),G(),L());if(a&2){var b=O(6);a=N();A(1);D("disabled",a.isAnonymous)("matMenuTriggerFor",b);A(6);D("ngIf",a.showExportCsv);A(1);D("ngIf",a.showFlagIssuesAsSpam)}},doa=function(a){a&1&&(I(0),Q(1," Network connection has been interrupted. "),
L())},eoa=function(a){a&1&&Q(0," Network connection has been interrupted or login credentials may have expired. ")},hoa=function(a){if(a&1){var b=v();E(0,"button",5);M("click",function(c){w(b);N(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=Vba("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||ic;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("bc");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(",");qa()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Zj(document,"A"),e=e instanceof ec?e:foa(e),d.href=fc(e),d.target=f,h&&(d.rel=
"noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):h?(c=goa("",c,f,q),e=fc(e),c&&(ak&&ia(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=Ah('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+bk(e)+'">'),(c=c.document)&&c.write&&(c.write(ck(e)),c.close()))):((c=goa(e,c,f,q))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null));return z()});Q(1," Log in again ");
G()}},ioa=function(a){a&1&&(E(0,"b-callout",1)(1,"b-callout-body"),P(2,doa,2,0,"ng-container",2),P(3,eoa,1,0,"ng-template",null,3,Hg),G(),E(5,"b-callout-actions"),P(6,hoa,2,0,"button",4),G()());if(a&2){var b=O(4);a=N();D("messageType","error");A(2);D("ngIf",a.isAnonymous)("ngIfElse",b);A(4);D("ngIf",!a.isAnonymous)}},dk=function(){return new joa},koa=function(a){var b={};a=rj(a,1,ek);a=n(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:qj(d,
1,0),detailedUserType:qj(d,2,0)}}return b},loa=function(a,b){return a.map(function(c){return b[c]||null})},moa=function(a){if(a)return a;a=new ek;m(a,1,1);m(a,2,0);return a},noa=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("gc");}},ooa=function(a){a&1&&(E(0,"a",1),Q(1," Hiring!\n"),G())},poa=function(a){return a instanceof fk?a:new fk(a,{})},gk=function(a){a=poa(a);
return new fk(a.char,Object.assign({},a.modifiers,{shift:!0}))},qoa=function(a){a=poa(a);return new fk(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},roa=function(){var a=gk("f");a=poa(a);return new fk(a.char,Object.assign({},a.modifiers,{alt:!0}))},toa=function(a){if(a instanceof fk){var b=soa(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(toa).join(" "):soa(a)},hk=function(){return Uc.apply(0,arguments)},
soa=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 Ai(a)}},uoa=function(){for(var a={},b=n(Object.entries(ik)),c=b.next();!c.done;c=b.next()){var d=n(c.value);c=d.next().value;d=d.next().value;1<d&&(a[c]=d)}return a},woa=function(){var a=Object.values(ik),b=a.map(function(c){return c-1}).reduce(voa,0);a=a.reduce(voa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},xoa=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}},jk=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],!yoa(a[d],b[d]))return!1;return!0},yoa=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==
b.length)return!1;a=[].concat(r(a)).sort();var c=[].concat(r(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},kk=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},lk=function(a){return ifa(a)?a:xe(a)?(0,W.from)(Promise.resolve(a)):(0,W.of)(a)},Boa=function(a,b,c){return zoa[c.paths](a.root,b.root,c.matrixParams)&&Aoa[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},Coa=function(a,b){return jk(a,b)},Doa=function(a,b,c){if(!mk(a.segments,
b.segments)||!nk(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!Doa(a.children[d],b.children[d],c))return!1;return!0},Eoa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return yoa(a[c],b[c])})},Goa=function(a,b,c){return Foa(a,b,b.segments,c)},Foa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),mk(a,c)&&!b.hasChildren()&&nk(a,c,d)?!0:!1;
if(a.segments.length===c.length){if(!mk(a.segments,c)||!nk(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!Goa(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 mk(a.segments,e)&&nk(a.segments,e,d)&&a.children.primary?Foa(a.children.primary,b,c,d):!1},nk=function(a,b,c){return b.every(function(d,e){return Aoa[c](a[e].parameters,d.parameters)})},Hoa=function(a,b){return mk(a,b)&&a.every(function(c,d){return jk(c.parameters,
b[d].parameters)})},mk=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},Ioa=function(a,b){var c=[];kk(a.children,function(d,e){"primary"===e&&(c=c.concat(b(d,e)))});kk(a.children,function(d,e){"primary"!==e&&(c=c.concat(b(d,e)))});return c},pk=function(a){return a.segments.map(function(b){return ok(b.path)+Joa(b.parameters)}).join("/")},qk=function(a,b){if(!a.hasChildren())return pk(a);if(b){b=a.children.primary?qk(a.children.primary,!1):"";var c=[];kk(a.children,
function(d,e){"primary"!==e&&c.push(e+":"+qk(d,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=Ioa(a,function(d,e){return"primary"===e?[qk(a.children.primary,!1)]:[e+":"+qk(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?pk(a)+"/"+b[0]:pk(a)+"/("+b.join("//")+")"},Koa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},rk=function(a){return Koa(a).replace(/%3B/gi,";")},ok=function(a){return Koa(a).replace(/\(/g,
"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},Joa=function(a){return Object.keys(a).map(function(b){return";"+ok(b)+"="+ok(a[b])}).join("")},Loa=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return rk(c)+"="+rk(e)}).join("&"):rk(c)+"="+rk(d)}).filter(function(c){return!!c});return b.length?"?"+b.join("&"):""},sk=function(a){return(a=a.match(Moa))?a[0]:""},Noa=function(a){var b={};return 0<a.segments.length?new tk([],(b.primary=a,b)):a},uk=
function(a){for(var b={},c=n(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=uk(a.children[d]);if(0<e.segments.length||e.hasChildren())b[d]=e}a=new tk(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,a=new tk(a.segments.concat(b.segments),b.children));return a},wk=function(a){return a instanceof vk},xk=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},yk=function(a){return"object"===typeof a&&null!=a&&a.outlets},Poa=
function(a,b,c,d,e){var f={};d&&kk(d,function(h,k){f[k]=Array.isArray(h)?h.map(function(q){return""+q}):""+h});a=a===b?c:Ooa(a,b,c);a=Noa(uk(a));return new vk(a,f,e)},Ooa=function(a,b,c){var d={};kk(a.children,function(e,f){d[f]=e===b?c:Ooa(e,b,c)});return new tk(a.segments,d)},Roa=function(a){if("string"===typeof a[0]&&1===a.length&&"/"===a[0])return new Qoa(!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={};kk(e.outlets,function(k,q){h[q]="string"===
typeof k?k.split("/"):k});return[].concat(r(d),[{outlets:h}])}if(e.segmentPath)return[].concat(r(d),[e.segmentPath])}return"string"!==typeof e?[].concat(r(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(r(d),[e])},[]);return new Qoa(c,b,a)},Soa=function(a){if(yk(a[0]))return a[0].outlets;var b={};return b.primary=a,b},Uoa=function(a,b,c){a||(a=new tk([],{}));if(0===a.segments.length&&a.hasChildren())return zk(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(yk(q))break;q=""+q;var t=e<c.length-1?c[e+1]:null;if(0<f&&void 0===q)break;if(q&&t&&"object"===typeof t&&void 0===t.outlets){if(q!=k.path||!jk(t,k.parameters)){d=h;break a}e+=2}else{t={};if(q!=k.path||!jk(t,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 tk(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new tk(a.segments.slice(d.pathIndex),a.children),zk(b,0,e)):d.match&&0===e.length?new tk(a.segments,{}):d.match&&!a.hasChildren()?Toa(a,b,c):d.match?zk(a,0,e):Toa(a,b,c)},zk=function(a,b,c){if(0===c.length)return new tk(a.segments,{});var d=Soa(c),e={};kk(d,function(f,h){"string"===typeof f&&(f=[f]);null!==f&&(e[h]=Uoa(a.children[h],b,f))});kk(a.children,function(f,h){void 0===d[h]&&(e[h]=f)});return new tk(a.segments,e)},Toa=function(a,
b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(yk(f))return a=Voa(f.outlets),new tk(d,a);if(0===e&&xk(c[0]))d.push(new Ak(a.segments[b].path,Woa(c[0]))),e++;else{f=yk(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&xk(h)?(d.push(new Ak(f,Woa(h))),e+=2):(d.push(new Ak(f,{})),e++)}}return new tk(d,{})},Voa=function(a){var b={};kk(a,function(c,d){"string"===typeof c&&(c=[c]);null!==c&&(b[d]=Toa(new tk([],{}),0,c))});return b},Woa=function(a){var b={};kk(a,function(c,
d){return b[d]=""+c});return b},Xoa=function(a,b){if(a===b.value)return b;b=n(b.children);for(var c=b.next();!c.done;c=b.next())if(c=Xoa(a,c.value))return c;return null},Yoa=function(a,b){if(a===b.value)return[b];for(var c=n(b.children),d=c.next();!d.done;d=c.next())if(d=Yoa(a,d.value),d.length)return d.unshift(b),d;return[]},Bk=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Zoa=function(a,b){a=new Ck("",new Dk(new Ek([],{},{},"",{},"primary",b,null,
a.root,-1,{}),[]));b=new Fk(new W.BehaviorSubject([new Ak("",{})]),new W.BehaviorSubject({}),new W.BehaviorSubject({}),new W.BehaviorSubject(""),new W.BehaviorSubject({}),"primary",b,a.root);b.snapshot=a.root;return new Gk(new Dk(b,[]),a)},apa=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 $oa(a.slice(c))},$oa=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:{}})},bpa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return bpa(a,c)})},cpa=function(a){var b=0<a.children.length?" { "+a.children.map(cpa).join(", ")+" } ":"";return""+a.value+b},dpa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;
a.snapshot=c;jk(b.queryParams,c.queryParams)||a.queryParams.next(c.queryParams);b.fragment!==c.fragment&&a.fragment.next(c.fragment);jk(b.params,c.params)||a.params.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(!jk(d[f],e[f])){d=!1;break a}d=!0}}d||a.url.next(c.url);jk(b.data,c.data)||a.data.next(c.data)}else a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data)},epa=function(a,b){var c=jk(a.params,b.params)&&Hoa(a.url,b.url),d=
!a.parent!==!b.parent;return c&&!d&&(!a.parent||epa(a.parent,b.parent))},Hk=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=fpa(a,b,c);return new Dk(d,b)}if(a.shouldAttach()&&(d=a.retrieve(),null!==d))return d=d.route,d.value._futureSnapshot=b.value,d.children=b.children.map(function(e){return Hk(a,e)}),d;d=gpa(b.value);b=b.children.map(function(e){return Hk(a,e)});return new Dk(d,b)},fpa=function(a,b,c){return b.children.map(function(d){for(var e=
n(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return Hk(a,d,f);return Hk(a,d)})},gpa=function(a){return new Fk(new W.BehaviorSubject(a.url),new W.BehaviorSubject(a.params),new W.BehaviorSubject(a.queryParams),new W.BehaviorSubject(a.fragment),new W.BehaviorSubject(a.data),a.outlet,a.component,a)},ipa=function(a){var b=wk(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,c=b.redirectTo;b=b.navigationBehaviorOptions;a=hpa(0,a);a.url=c;a.navigationBehaviorOptions=
b;return a},hpa=function(a,b){var c=Error("ic`");c.ngNavigationCancelingError=!0;c.cancellationCode=a;b&&(c.url=b);return c},jpa=function(a){return a&&a.ngNavigationCancelingError},kpa=function(a,b){a.providers&&!a._injector&&(a._injector=hfa(a.providers,b,"Route: "+a.path));var c;return null!=(c=a._injector)?c:b},Ik=function(a){var b=a.children&&a.children.map(Ik);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||"primary"===a.outlet||
(a.component=Jk);return a},Kk=function(a){return a.outlet||"primary"},lpa=function(a,b){var c=a.filter(function(d){return Kk(d)===b});c.push.apply(c,r(a.filter(function(d){return Kk(d)!==b})));return c},Lk=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},
Nk=function(){return Df(function(a){return(0,W.combineLatest)(a.map(function(b){return b.pipe(sf(),Cf(Mk))})).pipe(C(function(b){b=n(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,!0!==c){if(c===Mk)return Mk;if(!1===c||c instanceof vk)return c}return!0}),hf(function(b){return b!==Mk}),sf())})},Ok=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?"function"!==typeof a||null!==Jc(a)?b.get(a):a:d},Pk=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=Bk(b);
a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),t=e;t=void 0===t?{canDeactivateChecks:[],canActivateChecks:[]}:t;var x=h.value,y=k?k.value:null,F=c?c.getContext(h.value.outlet):null;if(y&&x.routeConfig===y.routeConfig){var K=mpa(y,x,x.routeConfig.runGuardsAndResolvers);K?t.canActivateChecks.push(new npa(q)):(x.data=y.data,x._resolvedData=y._resolvedData);x.component?Pk(h,k,F?F.children:null,q,t):Pk(h,k,c,q,t);K&&F&&F.outlet&&F.outlet.isActivated&&t.canDeactivateChecks.push(new Qk(F.outlet.component,
y))}else y&&Rk(k,F,t),t.canActivateChecks.push(new npa(q)),x.component?Pk(h,null,F?F.children:null,q,t):Pk(h,null,c,q,t);delete f[h.value.outlet]});kk(f,function(h,k){return Rk(h,c.getContext(k),e)});return e},mpa=function(a,b,c){if("function"===typeof c)return c(a,b);switch(c){case "pathParamsChange":return!mk(a.url,b.url);case "pathParamsOrQueryParamsChange":return!mk(a.url,b.url)||!jk(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!epa(a,b)||!jk(a.queryParams,
b.queryParams);default:return!epa(a,b)}},Rk=function(a,b,c){var d=Bk(a),e=a.value;kk(d,function(f,h){e.component?b?Rk(f,b.children.getContext(h),c):Rk(f,null,c):Rk(f,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new Qk(b.outlet.component,e)):c.canDeactivateChecks.push(new Qk(null,e)):c.canDeactivateChecks.push(new Qk(null,e))},Sk=function(a){return"function"===typeof a},opa=function(a){return a instanceof W.EmptyError||"EmptyError"===(null==a?void 0:a.name)},rpa=
function(a,b){return af(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,W.of)(Object.assign({},c,{guardsResult:!0})):ppa(f,d,e,a).pipe(af(function(k){return k&&"boolean"===typeof k?qpa(d,h,a,b):(0,W.of)(k)}),C(function(k){return Object.assign({},c,{guardsResult:k})}))})},ppa=function(a,b,c,d){return(0,W.from)(a).pipe(af(function(e){return spa(e.component,e.route,c,b,d)}),vf(function(e){return!0!==
e},!0))},qpa=function(a,b,c,d){return(0,W.from)(b).pipe(af(function(e){var f=W.concat;var h=e.route.parent;null!==h&&d&&d(new tpa(h));h=(0,W.of)(!0);var k=e.route;null!==k&&d&&d(new Tk(k));k=(0,W.of)(!0);return f.call(W,h,k,upa(a,e.path,c),vpa(a,e.route,c))},1),vf(function(e){return!0!==e},!0))},vpa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||0===d.length)return(0,W.of)(!0);d=d.map(function(e){return(0,W.defer)(function(){var f,h=null!=(f=Lk(b))?f:c,k=Ok(e,h);f=k&&Sk(k.canActivate)?
k.canActivate(b,a):wi(h,function(){return k(b,a)});return lk(f).pipe(vf())})});return(0,W.of)(d).pipe(Nk())},upa=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,W.defer)(function(){var f=e.guards.map(function(h){var k,q=null!=(k=Lk(e.node))?k:c,t=Ok(h,q);h=t&&Sk(t.canActivateChild)?t.canActivateChild(d,
a):wi(q,function(){return t(d,a)});return lk(h).pipe(vf())});return(0,W.of)(f).pipe(Nk())})});return(0,W.of)(b).pipe(Nk())},spa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,W.of)(!0);f=f.map(function(h){var k,q=null!=(k=Lk(b))?k:e,t=Ok(h,q);h=t&&Sk(t.canDeactivate)?t.canDeactivate(a,b,c,d):wi(q,function(){return t(a,b,c,d)});return lk(h).pipe(vf())});return(0,W.of)(f).pipe(Nk())},xpa=function(a,b,c){var d=b.canLoad;if(void 0===d||0===d.length)return(0,W.of)(!0);
d=d.map(function(e){var f=Ok(e,a);e=f&&Sk(f.canLoad)?f.canLoad(b,c):wi(a,function(){return f(b,c)});return lk(e)});return(0,W.of)(d).pipe(Nk(),wpa())},wpa=function(){return(0,W.pipe)(Ff(function(a){if(wk(a))throw ipa(a);}),C(function(a){return!0===a}))},ypa=function(a,b,c){var d=b.canMatch;if(!d||0===d.length)return(0,W.of)(!0);d=d.map(function(e){var f=Ok(e,a);e=f&&Sk(f.canMatch)?f.canMatch(b,c):wi(a,function(){return f(b,c)});return lk(e)});return(0,W.of)(d).pipe(Nk(),wpa())},Bpa=function(a,b,c,
d){var e=zpa(a,b,c);if(!e.matched)return(0,W.of)(e);d=kpa(b,d);return ypa(d,b,c).pipe(C(function(f){return!0===f?e:Object.assign({},Apa)}))},zpa=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},Apa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||xoa)(c,a,b);if(!a)return Object.assign({},Apa);var d={};kk(a.posParams,function(f,h){d[h]=f.path});b=0<a.consumed.length?Object.assign({},
d,a.consumed[a.consumed.length-1].parameters):d;var e;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:b,positionalParamSegments:null!=(e=a.posParams)?e:{}}},Vk=function(a,b,c,d){if(0<c.length&&Cpa(a,c,d)){var e=tk,f=new tk(c,a.children);c={};c.primary=f;f._sourceSegment=a;f._segmentIndexShift=b.length;f=n(d);for(var h=f.next();!h.done;h=f.next())if(h=h.value,""===h.path&&"primary"!==Kk(h)){var k=new tk([],{});k._sourceSegment=a;k._segmentIndexShift=
b.length;c[Kk(h)]=k}c=new e(b,c);c._sourceSegment=a;c._segmentIndexShift=b.length;return{segmentGroup:c,slicedSegments:[]}}if(0===c.length&&Dpa(a,c,d)){e=tk;f=a.segments;h=a.children;k={};d=n(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,Uk(a,c,q)&&!h[Kk(q)]){var t=new tk([],{});t._sourceSegment=a;t._segmentIndexShift=b.length;k[Kk(q)]=t}h=Object.assign({},h,k);e=new e(f,h);e._sourceSegment=a;e._segmentIndexShift=b.length;return{segmentGroup:e,slicedSegments:c}}e=new tk(a.segments,a.children);
e._sourceSegment=a;e._segmentIndexShift=b.length;return{segmentGroup:e,slicedSegments:c}},Cpa=function(a,b,c){return c.some(function(d){return Uk(a,b,d)&&"primary"!==Kk(d)})},Dpa=function(a,b,c){return c.some(function(d){return Uk(a,b,d)})},Uk=function(a,b,c){return(a.hasChildren()||0<b.length)&&"full"===c.pathMatch?!1:""===c.path},Epa=function(a,b,c,d){return Kk(a)===d||"primary"!==d&&Uk(b,c,a)?"**"===a.path?!0:zpa(b,a,c).matched:!1},Yk=function(a){return(0,W.throwError)(new Xk(a))},Fpa=function(a,
b,c,d){return Df(function(e){return(new Zk(a,b,c,e.extractedUrl,d)).apply().pipe(C(function(f){return Object.assign({},e,{urlAfterRedirects:f})}))})},Hpa=function(){var a=new Gpa;return new W.Observable(function(b){return b.error(a)})},Jpa=function(a,b,c,d,e,f,h){return(new Ipa(a,b,c,d,e,void 0===h?"emptyOnly":h,f)).recognize().pipe(Df(function(k){return null===k?Hpa():(0,W.of)(k)}))},Kpa=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)})},
Lpa=function(a){return(a=a.value.routeConfig)&&""===a.path&&void 0===a.redirectTo},Mpa=function(a){var b=[],c=new Set,d={};a=n(a);for(var e=a.next();!e.done;d={$jscomp$loop$prop$node$1922:d.$jscomp$loop$prop$node$1922},e=a.next())d.$jscomp$loop$prop$node$1922=e.value,Lpa(d.$jscomp$loop$prop$node$1922)?(e=b.find(function(f){return function(h){return f.$jscomp$loop$prop$node$1922.value.routeConfig===h.value.routeConfig}}(d)),void 0!==e?(e.children.push.apply(e.children,r(d.$jscomp$loop$prop$node$1922.children)),
c.add(e)):b.push(d.$jscomp$loop$prop$node$1922)):b.push(d.$jscomp$loop$prop$node$1922);d=n(c);for(a=d.next();!a.done;a=d.next())a=a.value,e=Mpa(a.children),b.push(new Dk(a.value,e));return b.filter(function(f){return!c.has(f)})},Npa=function(a){for(;a._sourceSegment;)a=a._sourceSegment;return a},Opa=function(a){for(var b,c=null!=(b=a._segmentIndexShift)?b:0;a._sourceSegment;)a=a._sourceSegment,b=void 0,c+=null!=(b=a._segmentIndexShift)?b:0;return c-1},Ppa=function(a,b,c,d,e){return af(function(f){return Jpa(a,
b,c,f.urlAfterRedirects,d.serialize(f.urlAfterRedirects),d,e).pipe(C(function(h){return Object.assign({},f,{targetSnapshot:h})}))})},Rpa=function(a,b){return af(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,W.of)(c);var f=0;return(0,W.from)(e).pipe(af(function(h){return Qpa(h.route,d,a,b)},1),Ff(function(){return f++}),Vga(),af(function(){return f===e.length?(0,W.of)(c):W.EMPTY}))})},Qpa=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[$k]=e.title);return Spa(f,a,b,d).pipe(C(function(h){a._resolvedData=h;a.data=apa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[$k]=e.title);return null}))},Spa=function(a,b,c,d){var e=Tpa(a);if(0===e.length)return(0,W.of)({});var f={};return(0,W.from)(e).pipe(af(function(h){return Upa(a[h],b,c,d).pipe(vf(),Ff(function(k){f[h]=k}))}),Vga(),wf(f),nf(function(h){return opa(h)?W.EMPTY:(0,W.throwError)(h)}))},Tpa=function(a){return[].concat(r(Object.keys(a)),
r(Object.getOwnPropertySymbols(a)))},Upa=function(a,b,c,d){var e,f=null!=(e=Lk(b))?e:d,h=Ok(a,f);a=h.resolve?h.resolve(b,c):wi(f,function(){return h(b,c)});return lk(a)},Vpa=function(a){return Df(function(b){var c=a(b);return c?(0,W.from)(c).pipe(C(function(){return b})):(0,W.of)(b)})},Xpa=function(a,b){return"string"===typeof b?(0,W.from)(a.get(Wpa).load(b)):null},Ypa=function(a){return a&&"object"===typeof a&&"default"in a?a["default"]:a},Zpa=function(a){throw a;},$pa=function(a,b){return b.parse("/")},
cqa=function(){var a=Rc(al),b=Rc(bl),c=Rc(cl),d=Rc(dl),e=Rc(el),f,h=null!=(f=Rc(aqa,{optional:!0}))?f:[],k;f=null!=(k=Rc(bqa,{optional:!0}))?k:{};a=new fl(null,a,b,c,d,e,Array.prototype.concat.apply([],h));f.errorHandler&&(a.errorHandler=f.errorHandler);f.malformedUriErrorHandler&&(a.malformedUriErrorHandler=f.malformedUriErrorHandler);f.onSameUrlNavigation&&(a.onSameUrlNavigation=f.onSameUrlNavigation);f.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=f.paramsInheritanceStrategy);f.urlUpdateStrategy&&
(a.urlUpdateStrategy=f.urlUpdateStrategy);f.canceledNavigationResolution&&(a.canceledNavigationResolution=f.canceledNavigationResolution);return a},dqa=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},eqa=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("/")},hl=function(a){return a instanceof gl},fqa=function(a){return a instanceof il},jl=function(a){return null==console?
!1:"function"===typeof console[a]},kl=function(){jl("debug")&&console.debug.apply(console,Uc.apply(0,arguments))},gqa=function(){jl("info")&&console.info.apply(console,Uc.apply(0,arguments))},hqa=function(){jl("log")&&console.log.apply(console,Uc.apply(0,arguments))},ll=function(){jl("warn")&&console.warn.apply(console,Uc.apply(0,arguments))},iqa=function(){jl("error")&&console.error.apply(console,Uc.apply(0,arguments))},jqa=function(a){return function(b){return new W.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()})})})}},ml=function(a,b){b=new W.BehaviorSubject(b);a.subscribe(b);return b},nl=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},ol=function(){return rf(function(a,b){return Ri(a,b)})},kqa=function(){return function(a){return a.pipe(C(function(b){return{event:b,timestamp:Date.now()}}),Cga(a.pipe(of(1E4,W.asapScheduler))))}},lqa=function(a){return a.keys.join("-")+
"-"+a.description+"-"+a.displayAs},mqa=function(a,b){a&1&&(E(0,"tr")(1,"td",5),Q(2),G(),E(3,"td"),Q(4,":"),G(),E(5,"td",6),Q(6),G()());a&2&&(a=b.$implicit,A(2),kg(a.displayAs),A(4),kg(a.description))},nqa=function(a,b){a&1&&(E(0,"thead")(1,"tr"),H(2,"th",3),E(3,"th",4),Q(4),G()(),P(5,mqa,7,2,"tr",1),G());a&2&&(a=b.$implicit,A(4),kg(a.title),A(1),D("ngForOf",a.hotkeys))},ql=function(a,b){return pl("issues/:issueId",{id:a,params:b})},oqa=function(a,b){return pl("issues/:issueId/dependencies",{id:a,
params:b})},sl=function(a){return rl("issues",{params:a})},pqa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},qqa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},rqa=function(a,b){return pl("components/:componentId/manage",{id:a,tab:b})},sqa=function(a){return a?rl("settings/:settingsTab?",{id:a,token:":settingsTab?"}):rl("settings")},pl=function(a,b){b=void 0===b?{}:b;return null==b.id?"":rl(a,b)},rl=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=tqa(f,d));e&&(f=f+"#"+e);return f},tl=function(a,b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},ul=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},uqa=function(a){a={component:a};
a=void 0===a?{}:a;return{path:"/issues/new",queryParams:a}},vl=function(a){return{path:"/components/"+a}},vqa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},wl=function(a){return{path:"/slos/"+a+"/edit"}},wqa=function(a){for(var b={},c=n(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},yl=function(a,b,c,d){return new xqa(a,xl[a],b,c,d)},El=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&&yqa(b,zqa(new Al,a.numericSpec.multiplier));if(a.enumSpec){var c;Aqa(b,Bqa(new Bl,(null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new Cl).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}Dl(b,6,a)}return b},Cqa=function(a){var b=new Fl;a.specId&&Fb(b,1,a.specId,0);a.estimate&&Hb(b,2,a.estimate);a.averageDays&&
Fb(b,3,a.averageDays,0);a.totalOpen&&Fb(b,4,a.totalOpen,0);a.totalComplete&&Fb(b,5,a.totalComplete,0);return b},Dqa=function(a){var b=a.getInherit(),c=a.getId(),d=a.getName();a:switch(qj(a,6,0)){case 2:var e="MAX";break a;case 1:e="SUM";break a;default:e="AGGREGATION_TYPE_UNSPECIFIED"}b={inherit:b,id:c,name:d,aggregationType:e,customFieldId:a.getCustomFieldId()};if(Gl(a)){var f=Hl(a,Al,4,Il);f&&(b.numericSpec={multiplier:Jl(f,1)})}else if(Kl(a)&&(a=Ll(a),b.enumSpec={options:[]},a&&0<(null==a?void 0:
null==(f=Nb(a,Cl,1))?void 0:f.length)))for(f=n(Nb(a,Cl,1)),a=f.next();!a.done;a=f.next())a=a.value,d=c=void 0,null==(c=b.enumSpec)||null==(d=c.options)||d.push({label:a.getLabel(),value:a.getValue()});return b},Eqa=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new Ml;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Nl=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new Cj;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Fqa=function(a){if(!a)return null;
var b=new Ol;if(a.startTime){var c=Nl(a.startTime);Vb(b,1,c)}a.targetTime&&(c=Nl(a.targetTime),Vb(b,3,c));a.endTime&&(a=Nl(a.endTime),Vb(b,2,a));return b},Gqa=function(a){if(!a)return null;var b=new Pl;if(a.assignmentBounds){var c=Fqa(a.assignmentBounds);Vb(b,1,c)}a.responseBounds&&(c=Fqa(a.responseBounds),Vb(b,2,c));a.closureBounds&&(a=Fqa(a.closureBounds),Vb(b,3,a));return b},Hqa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||"UNSPECIFIED"===a},Rl=function(a){return a?a.map(Ql):
[]},Sl=function(a){a=Rl(a);a.sort();return a},Ql=function(a){return a&&a.getUserGaiaStatus?Iqa(Tl(a)):Iqa(a)},Iqa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":Hqa(a)?Jqa(a)||"[No Data]":"[No Data]":""},Ul=function(a){return a&&a.getUserGaiaStatus?Jqa(Tl(a)):Jqa(a)},Jqa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Tl=function(a){if(null!=a){var b={},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=
Pi(a,2))b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=Kqa[c];(c=Ki(a,4))&&0<c.length&&(b.aliases=c);return b}},Vl=function(a){if(!a)return null;var b=[];a=n(a);for(var c=a.next();!c.done;c=a.next())(c=Tl(c.value))&&b.push(c);return b},Yl=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Wl;b&&m(e,1,b);c&&m(e,2,c);d&&Xl(e,4,d);a&&m(e,3,Lqa[a]);return e},Zl=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:
null},$l=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},am=function(a){if(null!=a)return String(a)},bm=function(a){if(null!=a&&"0"!==a)return a},cm=function(a){return null==a?void 0:a},dm=function(a){return null==a?null:a},em=function(a){return function(b){return null==b?a:b}},fm=function(a){return null!=a},Nqa=function(a){if(!a.getType())throw Error("nc");return{type:Mqa[a.getType()],customFieldId:$l(a.getCustomFieldId()),customFieldName:cm(a.getCustomFieldName())}},
Pqa=function(a){var b=new gm;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.customFieldName&&m(b,3,a.customFieldName);void 0!==a.type&&b.setType(Oqa[a.type]);return b},Qqa=function(a){var b=a.getField();if(!b)throw Error("oc");if(!a.getDirection())throw Error("pc");return{field:Nqa(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},Rqa=function(a){var b=new hm;b.setField(Pqa(a.field));b.setDirection("ASCENDING"===a.direction?1:2);return b},Sqa=function(a){var b=
new im;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(Pqa));var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map(Rqa));void 0!==a.etag&&b.setEtag(a.etag);var e;b.setAdminUsersList((null!=(e=a.adminUsers)?e:[]).map(Yl));return b},jm=function(a){if(!a.getHotlistId())throw Error("qc");
if(!a.getName())throw Error("rc");if(!a.getCreatedTimeMicros())throw Error("sc");if(!a.getModifiedTimeMicros())throw Error("tc");var b,c,d,e;return{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(Nqa),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(Qqa),etag:a.getEtag(),
adminUsers:Vl(a.getAdminUsersList())}},Tqa=function(a){var b;return(null!=(b=a.getHotlistsList())?b:[]).map(jm)},Uqa=function(a){var b;return(null!=(b=Nb(a,im,1))?b:[]).map(jm)},Wqa=function(a){if(a)return{accessLevel:Vqa[a.getAccessLevel()]}},Yqa=function(a){a=Xqa[a.accessLevel];var b=new km;b.setAccessLevel(a);return b},lm=function(a){return new Wi(a.year,a.month-1,a.day)},mm=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Zqa=function(a){return!(!a||null==a.day||
null==a.month||null==a.year)},$qa=function(a){if(null!=a){var b=a.getYear();if(null==b)ll("No year. dateToJs");else{var c=a.getDay();if(null==c)ll("No day. dateToJs");else if(a=a.getMonth(),null==a)ll("No month. dateToJs");else return{year:b,day:c,month:a}}}},ara=function(a){var b=new nm;Fb(b,3,a.day,0);b.setMonth(a.month);b.setYear(a.year);return b},om=function(a){if(null!=a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},pm=function(a){var b=new Cj;b.setSeconds(a.seconds);b.setNanos(a.nanos);
return b},bra=function(a){if(null!=a)return Number(a.toDate())},cra=function(a){return String(a)},qm=function(a){a=$l(a);return void 0===a?NaN:a},era=function(a){if(null!=a)return{customFieldId:cm(a.getCustomFieldId()),standardField:dra[qj(a,rm(a,sm,2),0)]}},gra=function(a){var b=new tm;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&um(b,2,sm,fra[a.standardField]);return b},jra=function(a){if(a){var b=hra(a);if(b)return a=new vm,a.customFieldId=b.customFieldId,a.componentId=
b.componentId,a.name=b.name,a.type=b.type,a.description=b.description||"",b.typedDefaultValue&&(a.typedDefaultValue=new wm(b.typedDefaultValue)),a.required=!!b.required,a.fieldSignificance=b.fieldSignificance||"MINOR",a.allowedValue=b.allowedValue||null,a.stateOnIssues=ira[b.stateOnIssues]||1,b=b.enabledOnIssues,a.enabledOnIssues=null==b?!0:b,a}},hra=function(a){if(null!=a){var b=a.getName();if(null==b)ll("No name. customFieldToJs");else{var c=$l(a.getCustomFieldId());if(null==c)ll("No customFieldId. customFieldToJs");
else{if(a.hasType())return{name:b,description:cm(a.getDescription()),required:cm(oj(a,4)),enabledOnIssues:!!a.getEnabledOnIssues(),type:kra[a.getType()],customFieldId:c,componentId:$l(a.getComponentId()),allowedValue:cm(Ki(a,8)),stateOnIssues:lra[a.getStateOnIssues()],fieldSignificance:mra[qj(a,9,0)],typedDefaultValue:nra(Ub(a,xm,10))};ll("No type. customFieldToJs")}}}},nra=function(a){if(null!=a){var b=$l(a.getCustomFieldId());if(null==b)ll("No customFieldId. customFieldValueToJs");else{var c=cm(Ki(a,
12));b={customFieldId:b,displayValues:c};switch(ym(a,zm)){case 4:b.textValue=cm(Pi(a,rm(a,zm,4)));break;case 5:b.dateValue=$qa(a.getDateValue());break;case 6:b.enumValue=cm(Pi(a,rm(a,zm,6)));break;case 7:b.numericValue=cm(Jl(a,rm(a,zm,7)));break;case 8:var d,e;b.repeatedTextValue={values:null!=(e=null==(d=Hl(a,Am,8,zm))?void 0:d.getValuesList())?e:[]};break;case 10:var f,h;b.repeatedEnumValue={values:null!=(h=null==(f=Hl(a,Am,10,zm))?void 0:f.getValuesList())?h:[]};break;case 11:var k,q;b.repeatedNumericValue=
{values:null!=(q=null==(k=Hl(a,Bm,11,zm))?void 0:k.getValuesList())?q:[]};break;case 9:var t,x,y,F;b.repeatedDateValue={values:null!=(F=null==(t=Hl(a,Cm,9,zm))?void 0:null==(x=t.getValuesList())?void 0:null==(y=x.map($qa))?void 0:y.filter(fm))?F:[]}}return b}}},ora=function(a){var b=new xm;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));a.displayValues&&Xl(b,12,a.displayValues);if(void 0!==a.textValue)um(b,4,zm,a.textValue);else if(void 0!==a.enumValue)um(b,6,zm,a.enumValue);else if(void 0!==
a.numericValue)um(b,7,zm,a.numericValue);else if(void 0!==a.dateValue)a=ara(a.dateValue),Dm(b,5,zm,a);else if(void 0!==a.repeatedTextValue){var c=new Am;c.setValuesList(a.repeatedTextValue.values);Dm(b,8,zm,c)}else void 0!==a.repeatedEnumValue?(c=new Am,c.setValuesList(a.repeatedEnumValue.values),Dm(b,10,zm,c)):void 0!==a.repeatedNumericValue?(c=new Bm,c.setValuesList(a.repeatedNumericValue.values),Dm(b,11,zm,c)):void 0!==a.repeatedDateValue&&(c=new Cm,c.setValuesList(a.repeatedDateValue.values.map(ara)),
Dm(b,9,zm,c));return b},pra=function(a){return jra(Ub(a,Em,1))},sra=function(a){var b=new Em;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(qra[a.type]);m(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=ora(a.typedDefaultValue);Vb(b,10,c)}a.allowedValue&&Xl(b,8,a.allowedValue);b.setFieldSignificance(rra[a.fieldSignificance]);b.setStateOnIssues(a.stateOnIssues);b.setEnabledOnIssues(a.enabledOnIssues);
return b},tra=function(a){return{noAccessEmails:Ki(a,1),unknownEmails:Ki(a,2)}},ura=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=Tl(c);if(c=a.getGroup())b.group=Tl(c);if(c=Pi(a,rm(a,Fm,3)))b.alias=c;return b}},Hm=function(a){var b=new Gm;if(dj(a))return b.setUser(Yl(a.user)),b;if(ej(a))return b.setGroup(Yl(a.group)),b;void 0!==a.alias&&um(b,3,Fm,a.alias);return b},xra=function(a){var b=vra[qj(a,1,0)],c=wra[qj(a,10,0)],d,e,f,h,k,q,t,x,y,F;return{inheritance:b,admins:Im(null!=(d=Nb(a,
Gm,2))?d:[]),appenders:Im(null!=(e=Nb(a,Gm,6))?e:[]),editors:Im(null!=(f=Nb(a,Gm,4))?f:[]),readers:Im(null!=(h=Nb(a,Gm,8))?h:[]),restrictedReaders:Im(null!=(k=Nb(a,Gm,11))?k:[]),restrictedPlusReaders:Im(null!=(q=Nb(a,Gm,12))?q:[]),inheritedAdmins:Im(null!=(t=Nb(a,Gm,3))?t:[]),implicitAppenders:Im(null!=(x=Nb(a,Gm,7))?x:[]),implicitEditors:Im(null!=(y=Nb(a,Gm,5))?y:[]),implicitReaders:Im(null!=(F=Nb(a,Gm,9))?F:[]),implicitAccess:c}},Im=function(a){return a.map(ura).filter(fm)},Jm=function(a){if(null==
a)return"";var b=a.user,c=a.group,d=a.alias;if(null!=b){var e=2;var f=b.emailAddress||b.obfuscatedEmailAddress||void 0}else null!=c?(e=3,f=c.emailAddress||c.obfuscatedEmailAddress||void 0):null!=d&&(e=4,f=d);return null==e||null==f?(iqa("Invalid principal: ",a),""):e+":"+f},yra=function(a){return(null!=a?a:[]).map(Jm)},zra=function(a){return(null!=a?a:[]).map(Km)},Km=function(a){var b=n(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("uc`"+b);switch(Number(a)){case 2:return{user:{emailAddress:b}};
case 3:return{group:{emailAddress:b}};case 4:return{alias:b};default:throw Error("vc`"+b);}},Lm=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return Ai(a,"Unexpected pii severity")}},Mm=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 Ai(a,"Unexpected pii severity")}},Nm=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},
Ara=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},Bra=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},Cra=function(a){var b=tj(a,1)?uj(a,1):void 0,c=a.hasResourcePath()?a.getResourcePath():void 0,d=Lm(a.getSeverity()),e=a.getJudgementReason();a=Pi(a,5);return{contentJudgementId:b,resourcePath:c,severity:d,judgementReason:e,contentJudge:a}},Dra=function(a){var b=new Om;b.setJudgementReason(a.judgementReason);
b.setSeverity(Mm(a.severity));return b},Fra=function(a){var b=new Pm;m(b,1,Era[a.retentionSelection]);null!==a.retentionPeriodDays&&m(b,2,a.retentionPeriodDays);m(b,3,Era[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&m(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&m(b,5,a.spiiRetentionPeriodDays);return b},Qm=function(a){if(null!=a){var b=dm(om(a.getRetentionPeriod()));a=dm(om(Ub(a,Cj,2)));return{retentionPeriod:b,scheduledDeletionTime:a}}},Sm=function(a){if(null!=a){a:{a=
Ub(a,Rm,1);if(null!=a){if(a.hasSeverity()){a={severity:Gra[a.getSeverity()]};break a}ll("No severity. piiVerdictToJs")}a=void 0}return{piiVerdict:a}}},Hra=function(a){if(null!=a)return{startTime:om(a.getStartTime()),endTime:om(Ub(a,Cj,2)),targetTime:om(Ub(a,Cj,3))}},Ira=function(a){var b=new Ol;if(a.startTime){var c=pm(a.startTime);Vb(b,1,c)}a.endTime&&(c=pm(a.endTime),Vb(b,2,c));a.targetTime&&(a=pm(a.targetTime),Vb(b,3,a));return b},Kra=function(a){var b=new Tm;b.setInherit(a.inherit);b.setSource(Jra[a.source]);
b.setId(a.id);b.setComment(a.comment);m(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},Lra=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:qj(b,2,0))},Mra=function(a){var b;return 1===(null==(b=Ub(a,Um,1))?void 0:b.getEffectiveSloEditPolicy())},Nra=function(a){if(null!=a)return{tag:a.getTag(),text:Pi(a,2)}},Ura=function(a){if(null!=a){var b,c,d,e,f,h,k;return{title:a.getTitle()||"",comment:dm(a.getComment()),snapshotNumber:dm(Aj(a,26)),version:dm(a.getVersion()),
createdTimeMicros:dm(a.getCreatedTimeMicros()),isArchived:!!a.getIsArchived(),inProd:!!a.getInProd(),isDeleted:dm(oj(a,27)),changelist:dm(Ki(a,18)),postmortems:dm(Ki(a,35)),foundInVersion:dm(Ki(a,19)),targetedToVersion:dm(Ki(a,20)),verifiedInVersion:dm(Ki(a,21)),componentId:dm($l(a.getComponentId())),duplicateOfIssueId:null!=(h=bm(uj(a,15)))?h:null,attachmentId:dm(null==(b=Mi(a,14))?void 0:b.map($l).filter(fm)),blockedByIssueId:dm(null==(c=Mi(a,16))?void 0:c.map(bm).filter(fm)),blockingIssueId:dm(null==
(d=Mi(a,17))?void 0:d.map(bm).filter(fm)),hotlistId:dm(null==(e=a.getHotlistIdList())?void 0:e.map($l).filter(fm)),duplicateIssueId:dm(null==(f=Mi(a,30))?void 0:f.map(bm).filter(fm)),sloSnoozeUntil:a.getSloSnoozeUntil(),authorUser:dm(Tl(Ub(a,Wl,36))),reporterUser:dm(Tl(Ub(a,Wl,37))),assigneeUser:dm(Tl(Ub(a,Wl,38))),verifierUser:dm(Tl(Ub(a,Wl,39))),ccUsers:dm(Vl(Nb(a,Wl,40))),collaboratorsUsers:dm(Vl(Nb(a,Wl,51))),commentContentVerdict:Sm(a.getCommentContentVerdict()),customField:Nb(a,xm,24).map(nra).filter(fm),
retention:Vm[a.getRetention()],significanceOverride:mra[a.getSignificanceOverride()],deletionReason:Ora[qj(a,28,0)],type:a.hasType()?Pra[a.getType()]:null,priority:a.hasPriority()?Qra[a.getPriority()]:null,severity:a.hasSeverity()?Rra[a.getSeverity()]:null,status:a.hasStatus()?Wm[a.getStatus()]:null,sloSnoozeType:nj(a,52)?Sra[qj(a,52,0)]:null,issueAccessLimitLevel:nj(a,53)?Tra[qj(a,53,0)]:null,effort:null!=(k=Ub(a,Fl,50))?k:void 0}}},csa=function(a){var b=new Xm;if(a.authorUser){var c=Yl(a.authorUser);
Vb(b,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(Vra[a.type]);a.status&&b.setStatus(Ym[a.status]);a.priority&&b.setPriority(Wra[a.priority]);a.severity&&b.setSeverity(Xra[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Yl(a.reporterUser),Vb(b,37,c));a.assigneeUser&&(c=Yl(a.assigneeUser),Vb(b,38,c));a.verifierUser&&(c=Yl(a.verifierUser),Vb(b,39,
c));a.ccUsers&&(c=a.ccUsers.map(Yl),Mb(b,40,c));a.collaboratorsUsers&&(c=a.collaboratorsUsers.map(Yl),Mb(b,51,c));a.attachmentId&&(c=a.attachmentId.map(cra),Zm(b,14,c));a.duplicateOfIssueId&&m(b,15,a.duplicateOfIssueId);a.blockedByIssueId&&Zm(b,16,a.blockedByIssueId);a.blockingIssueId&&Zm(b,17,a.blockingIssueId);a.changelist&&Xl(b,18,a.changelist);a.postmortems&&Xl(b,35,a.postmortems);a.foundInVersion&&Xl(b,19,a.foundInVersion);a.targetedToVersion&&Xl(b,20,a.targetedToVersion);a.verifiedInVersion&&
Xl(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(cra));a.customField&&(c=a.customField.map(ora),Mb(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode($m[a.formattingMode]);if(a.commentContentVerdict){c=b.setCommentContentVerdict;var d=a.commentContentVerdict,e=new an;if(d.piiVerdict){d=d.piiVerdict;var f=new Rm;f.setSeverity(Yra[d.severity]);Vb(e,1,f)}c.call(b,e)}a.snapshotNumber&&m(b,26,a.snapshotNumber);a.retention&&b.setRetention(Zra[a.retention]);
a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason($ra[a.deletionReason]);a.significanceOverride&&b.setSignificanceOverride(rra[a.significanceOverride]);a.duplicateIssueId&&Zm(b,30,a.duplicateIssueId);void 0!==a.inProd&&b.setInProd(a.inProd);void 0!==a.isArchived&&b.setIsArchived(a.isArchived);a.sloSnoozeUntil&&b.setSloSnoozeUntil(a.sloSnoozeUntil);a.sloSnoozeType&&b.setSloSnoozeType(asa[a.sloSnoozeType]);a.issueAccessLimitLevel&&m(b,53,bsa[a.issueAccessLimitLevel]);a.effort&&
Vb(b,50,a.effort);return b},dsa=function(a){var b={targetIssueId:String(Aj(a,1))};if(a=Aj(a,2))b.afterIssueId=am(a);return b},esa=function(a){var b=new bn;b.setIssueId(String(a));return b},gsa=function(a){var b=new fsa;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},isa=function(a){var b=new hsa;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},jsa=function(a){return{issueId:bm(a.getIssueId()),status:Wm[a.getStatus()],title:a.getTitle()}},
msa=function(a){var b=new ksa;m(b,1,a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(lsa[a.actionType]);a.customFieldValue&&b.setCustomFieldValue(ora(a.customFieldValue));return b},osa=function(a){var b=new nsa;b.setIssueId(String(a.issueId));b.setActionsList(a.actions.map(msa));return b},qsa=function(a){var b=new cn,c=a.addHotlistIds.map(String);Zm(b,1,c);c=a.removeHotlistIds.map(String);Zm(b,2,c);var d=a.hotlistIssue;a=new dn;a.setIssueId(String(d.issueId));d.position&&a.setPosition(d.position);
if(d.issue){c=a.setIssue;d=d.issue;var e=new en;e.setIssueId(String(d.issueId));var f,h=(null!=(f=d.snapshot)?f:[]).map(csa);Mb(e,2,h);if(d.userData){f=e.setUserData;h=d.userData;var k=new fn;h.voted&&k.setVoted(h.voted);h.starred&&k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(psa[h.notificationSubscription]);void 0!==h.lastViewedTimeMicros&&m(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(d.aggregatedData){h=d.aggregatedData;f=new gn;m(f,1,h.voteCount);f.setCreatedTimeMicros(h.createdTimeMicros);
m(f,4,h.resolvedTimeMicros);m(f,5,h.verifiedTimeMicros);f.setModifiedTimeMicros(h.modifiedTimeMicros);f.setSloId(String(h.sloId));f.setTeamId(String(h.teamId));if(h.retentionState){k=f.setRetentionState;var q=h.retentionState,t=new hn;if(q.retentionPeriod){var x=q.retentionPeriod,y=new Ml;y.setSeconds(x.seconds);y.setNanos(x.nanos);Vb(t,1,y)}q.scheduledDeletionTime&&(q=pm(q.scheduledDeletionTime),Vb(t,2,q));k.call(f,t)}h.sloStatus&&(k=f.setSloStatus,t=h.sloStatus,h=new Pl,t.assignmentBounds&&(q=Ira(t.assignmentBounds),
Vb(h,1,q)),t.responseBounds&&(q=Ira(t.responseBounds),Vb(h,2,q)),t.closureBounds&&(t=Ira(t.closureBounds),Vb(h,3,t)),k.call(f,h));Vb(e,4,f)}d.accessLimit&&e.setAccessLimit(Yqa(d.accessLimit));var F;f=(null!=(F=d.visibleFields)?F:[]).map(gra);Mb(e,6,f);m(e,7,d.majorModifiedTimeMicros);Zm(e,8,d.parentIssueIds);if(d.ancestors)for(F=rj(e,9,jn),f=n(d.ancestors.entries()),h=f.next();!h.done;h=f.next())h=n(h.value),q=h.next().value,h=h.next().value,k=F,t=k.set,q=Number(q),x=new jn,x.setSourceIssueIdsList(h.sourceIssueIds.map($l).filter(fm)),
t.call(k,q,x);m(e,10,d.childIssueCount);e.setIsArchived(d.isArchived);c.call(a,e)}Vb(b,3,a);return b},rsa=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?b:[]).map(jsa),numTotalResults:a.getNumTotalResults()}},usa=function(a){var b=new ssa;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);Zm(b,2,c);b.setRelation(tsa[a.relation]);b.setActionType(lsa[a.actionType]);a.commentDisplayOverride&&b.setCommentDisplayOverride($m[a.commentDisplayOverride]);return b},wsa=
function(a){var b=new vsa;b.setIssueId(String(a.issueId));b.setRetention(Zra[a.retention]);a.significanceOverride&&b.setSignificanceOverride(rra[a.significanceOverride]);a.commentDisplayOverride&&b.setCommentDisplayOverride($m[a.commentDisplayOverride]);return b},xsa=function(a){return{issueId:bm(a.getIssueId())}},ln=function(a){return{issueId:bm(a.getIssueId()),updateText:Pi(a,2),formattedText:cm(Ub(a,kn,3)),formattingMode:ysa[a.getFormattingMode()],author:cm(Tl(a.getAuthor())),updateTime:cm(om(a.getUpdateTime())),
version:a.getVersion()}},zsa=function(a){var b=new mn;b.setInherit(a.inherit);b.setId(String(a.id));return b},Asa=function(a){return{teamId:a.getId(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList()}},Bsa=function(a){return{teamId:a.getTeamId(),score:Jl(a,2)}},Csa=function(a){var b=new nn;b.setTeamId(a.teamId);Fb(b,2,a.score,0);return b},pn=function(a){if(a.hasRetentionSettings()){var b=a.getRetentionSettings();b={retentionSelection:Dsa[qj(b,
1,0)],retentionPeriodDays:Ji(b,2),piiRetentionSelection:Dsa[qj(b,3,0)],piiRetentionPeriodDays:Ji(b,4),spiiRetentionPeriodDays:Ji(b,5)}}else b=void 0;if(vj(a,on,10)){var c=Ub(a,on,10),d,e;var f=(null!=(d=Mi(c,1))?d:[]).map(qm);d=Ki(c,2);var h=Nb(c,Em,4);if(h){c=[];h=n(h);for(var k=h.next();!k.done;k=h.next())(k=jra(k.value))&&c.push(k)}else c=void 0;f={componentPathId:f,componentPathName:d,allCustomField:null!=(e=c)?e:[]}}else f=void 0;e=f;a.hasSlo()?(f=a.getSlo(),f={inherit:f.getInherit(),source:Esa[f.getSource()],
id:f.getId(),sourceComponentId:uj(f,6),sourceTeamId:f.getSourceTeamId(),comment:f.getComment()}):f=void 0;d=vj(a,zl,24)?Dqa(a.getEffortSpec()):void 0;a.hasTeam()?(c=a.getTeam(),c={inherit:c.getInherit(),id:c.getId()}):c=void 0;var q,t;h=qm(a.getComponentId());k=qm(uj(a,2));var x=a.getName(),y=a.getDescription(),F=a.getArchived(),K=(null!=(q=Mi(a,7))?q:[]).map(qm);q=Wqa(a.getAccessLimit());var J=Pi(a,13),R=oj(a,14);var S=1===qj(a,15,0)?"ENABLED":"DISABLED";return{componentId:h,parentComponentId:k,
name:x,description:y,archived:F,customFieldId:K,componentPathInfo:e,accessLimit:q,emailAlias:J,userHasEditAccess:R,commentEditState:S,defaultTemplateId:qm(uj(a,18)),slo:f,bugscopeSloId:uj(a,20),retentionSettings:b,fieldOrdering:Fsa[qj(a,23,0)],effortSpec:d,team:c,teamSuggestions:(null!=(t=a.getTeamSuggestionsList())?t:[]).map(Bsa),trackerId:"0"!==a.getTrackerId()?a.getTrackerId():void 0}},Gsa=function(a){var b=new qn;m(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(Fra(a.retentionSettings));return b},Hsa=function(a){var b;return(null!=(b=Nb(a,qn,1))?b:[]).map(pn)},Isa=function(a){return{warningHeader:Pi(a,1),warning:Pi(a,2),isAllowed:oj(a,3),isExternalMove:oj(a,4)}},Jsa=function(a){return{templateId:a.getTemplateId(),componentId:qm(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),snapshot:Ura(a.getSnapshot())}},
Ksa=function(a){var b=new rn;b.setTemplateId(a.templateId);b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);b.setSnapshot(csa(a.snapshot));return b},Lsa=function(a){var b={},c=rj(a,2,Em).entries();c=n(c);for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;(e=jra(e))&&(b[qm(d)]=e)}return{snapshot:Ura(a.getSnapshot()),customFieldMap:b}},Msa=function(a){var b;return(null!=(b=Nb(a,qn,1))?b:[]).map(pn)},
Osa=function(a){return{encryptedMedia:sb(Nsa(a,1)),errorMessage:a.getErrorMessage()}},Psa=function(a){var b=new sn;m(b,1,jb(a.attachment,!1));void 0!==a.contentJudgement&&b.setContentJudgement(Dra(a.contentJudgement));return b},Qsa=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?b:[]).map(tn)}},tn=function(a){if(null!=a){var b=$l(a.getAttachmentId()),c=Pi(a,7),d=a.getEtag(),e=a.getContentType(),f=a.getDescription(),h=a.getFilename(),k=a.getLength(),q=Vm[a.getPiiRetention()],
t=Qm(a.getPiiRetentionState()),x=Rsa(a.getEntityStatus()),y=Sm(Ub(a,an,9));a=Ub(a,Ssa,3);a=null!=a?{filename:cm(a.getFilename()),length:cm(a.getLength()),contentType:cm(a.getContentType())}:void 0;return{attachmentId:b,filecompUrl:c,etag:d,contentType:e,description:f,filename:h,length:k,piiRetention:q,piiRetentionState:t,entityStatus:x,contentVerdict:y,media:a}}},Rsa=function(a){if(null!=a)return{reason:Tsa[a.getReason()],status:Usa[a.hasStatus()?a.getStatus():0]}},Ysa=function(a){if(null!=a){var b=
a.getName();if(null==b)ll("No name. eventDiffToJs");else{b={name:b,displayName:cm(a.getDisplayName()),timestamp:bra(a.getTimestamp()),important:!!oj(a,5),type:Vsa[a.getType()]};if(un(a,vn,6,wn)){var c=Hl(a,vn,6,wn);if(un(c,Wsa,1,xn)){var d=Hl(c,Wsa,1,xn);b.isUser=!0;b.oldValue=em("<none>")(Ul(null==d?void 0:Ub(d,Wl,1)));b.newValue=em("<none>")(Ul(null==d?void 0:Ub(d,Wl,2)))}if(un(c,yn,2,xn)){var e,f;b.oldValue=cm(null==(e=Hl(a,vn,6,wn))?void 0:null==(f=Hl(e,yn,2,xn))?void 0:f.getOldValue());var h,
k;b.newValue=cm(null==(h=Hl(a,vn,6,wn))?void 0:null==(k=Hl(h,yn,2,xn))?void 0:k.getNewValue())}}else if(un(a,zn,9,wn)){var q;b.customFieldId=cm(null==(q=Hl(a,zn,9,wn))?void 0:q.getCustomFieldId());var t;b.oldValue=cm(null==(t=Hl(a,zn,9,wn))?void 0:t.getOldValue());var x;b.newValue=cm(null==(x=Hl(a,zn,9,wn))?void 0:x.getNewValue())}else if(un(a,An,10,wn))e=Hl(a,An,10,wn),b.isUser=!0,a=(null==e?void 0:e.getAddedList())||[],e=(null==e?void 0:e.getRemovedList())||[],b.added=a.map(function(K){return Ul(K)}).map(em("<none>")),
b.removed=e.map(function(K){return Ul(K)}).map(em("<none>"));else if(un(a,Bn,7,wn)){var y;b.added=(null==(y=Hl(a,Bn,7,wn))?void 0:y.getAddedList())||[];var F;b.removed=(null==(F=Hl(a,Bn,7,wn))?void 0:F.getRemovedList())||[]}else un(a,Cn,8,wn)?(e=(null==(d=Hl(a,Cn,8,wn))?void 0:d.getAddedList())||[],a=(null==(c=Hl(a,Cn,8,wn))?void 0:c.getRemovedList())||[],b.added=e.map(Xsa).filter(fm),b.removed=a.map(Xsa).filter(fm)):un(a,Dn,11,wn)?(a=Rsa(Hl(a,Dn,11,wn).getEntityStatus()),b.statusUpdateDiff={entityStatus:a}):
ll("Unhandled diff type '"+b.type+"'");return b}}},Xsa=function(a){if(null!=a){var b=a.getValue();if(null==b)ll("No value. linkedItemToJs");else if(a=a.getHref(),null==a)ll("No href. linkedItemToJs");else return{value:b,href:a}}},Zsa=function(a){a=ck(a).toString();var b=new En;m(b,2,a);return b},$sa=function(a){if(!a)return null;a=l(a,2);var b;null===a||void 0===a?b=null:b=Ah(a);return b},Fn=function(a){if(null!=a){var b=a.getIssueId();if(null==b)ll("No issueId. issueToJs");else{for(var c=new Map,
d=n(rj(a,9,jn).entries()),e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;f=f.next().value;c.set(String(e),{sourceIssueIds:f.getSourceIssueIdsList().map(String)})}var h,k,q,t;d=a.getUserData();if(null!=d){var x;d={voted:dm(d.getVoted()),starred:dm(d.getStarred()),notificationSubscription:ata[qj(d,4,0)],lastViewedTimeMicros:null!=(x=Aj(d,5))?x:0}}else d=void 0;x=Wqa(a.getAccessLimit());e=Nb(a,Xm,2).map(Ura).filter(fm);f=Nb(a,tm,6).map(era).filter(fm);var y;var F=Ub(a,gn,4);if(null!=
F){var K,J,R,S,aa=null!=(K=Aj(F,1))?K:0;K=null!=(J=F.getCreatedTimeMicros())?J:0;J=null!=(R=Aj(F,4))?R:0;R=null!=(S=Aj(F,5))?S:0;S=null!=(y=F.getModifiedTimeMicros())?y:0;y=$l(F.getSloId());var ba=$l(F.getTeamId()),ka=Qm(F.getRetentionState());F=F.getSloStatus();F=null!=F?{assignmentBounds:Hra(Ub(F,Ol,1)),responseBounds:Hra(Ub(F,Ol,2)),closureBounds:Hra(Ub(F,Ol,3))}:void 0;y={voteCount:aa,createdTimeMicros:K,resolvedTimeMicros:J,verifiedTimeMicros:R,modifiedTimeMicros:S,sloId:y,teamId:ba,retentionState:ka,
sloStatus:F}}else y=void 0;return{issueId:b,userData:d,accessLimit:x,snapshot:e,visibleFields:f,aggregatedData:y,majorModifiedTimeMicros:null!=(h=Aj(a,7))?h:0,parentIssueIds:null!=(k=Mi(a,8))?k:[],ancestors:c,childIssueCount:null!=(q=Ji(a,10))?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(t=Nb(a,bta,12))?t:[]).map(cta),trackerId:"0"!==a.getTrackerId()?a.getTrackerId():void 0,statusUpdate:a.hasStatusUpdate()?ln(a.getStatusUpdate()):void 0}}}},eta=function(a){if(null!=a){var b=bra(Ub(a,Cj,4)),
c=!!oj(a,8),d=Cb(a,1,lb),e,f=null!=(e=Gn(a.getComment()))?e:{};e=a.hasStatusUpdate()?ln(a.getStatusUpdate()):void 0;var h,k=null==(h=Nb(a,Hn,2))?void 0:h.map(Ysa).filter(fm),q;h=null==(q=Nb(a,Hn,3))?void 0:q.map(Ysa).filter(fm);var t;q=null==(t=Nb(a,dta,9))?void 0:t.map(Nra).filter(fm);t=a.getAttachmentsList().map(tn).filter(fm);var x=Ul(Ub(a,Wl,5));x=em("<none>")(x);var y=Tl(Ub(a,Wl,5)),F=!!oj(a,11),K=!!oj(a,12);if(null==b)ll("No modifiedDate. issueEventToJs");else return Object.assign({},f,{attachments:t,
version:a.getVersion(),modifiedDate:b,preDiffs:k,postDiffs:h,isMajorEvent:c,addedAttachmentIds:d,statusUpdate:e,taggedSummary:q,userPerformingAction:x,userPerformingActionUser:y,isHumanAuthor:F,isCollaboratorAuthor:K})}},Gn=function(a){if(null==a)return{};var b=a.hasEntityStatus()?Usa[a.getEntityStatus().getStatus()]:void 0,c=a.hasPiiRetention()?Vm[a.getPiiRetention()]:null,d=ysa[a.getFormattingMode()],e=a.getVersion(),f=Pi(a,7),h=Ji(a,2),k=a.getVersion();var q=a.getLastModified();return{version:e,
unlinkifiedComment:f,commentNumber:h,commentVersion:k,commentLastModifiedAtDate:null!=q?q/1E3:void 0,commentRedacted:cm(oj(a,15)),commentContentVerdict:Sm(a.getCommentContentVerdict()),commentRetentionState:Qm(a.getPiiRetentionState()),commentDeletionStatus:b,commentRetention:c,lastCommentEditorUser:Tl(Ub(a,Wl,8)),formattingMode:d,formattedComment:cm(a.getFormattedComment()),commentEtag:a.getEtag(),commentReactions:fta(Ub(a,In,18))}},Ln=function(a){if(null!=a){var b=Fn(a.getIssue());if(null==b)ll("No issue. issueFetchResponseToJs");
else{var c={},d=rj(a,4,Jn).entries();d=n(d);for(var e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;f=f.next().value;(f=tn(f))&&(c[e]=f)}d=eta(Ub(a,Kn,5));return{issue:b,events:Nb(a,Kn,2).map(eta).filter(fm),customFields:Nb(a,Em,3).map(hra).filter(fm),attachmentMap:c,firstEvent:d}}}},gta=function(a){var b=[];a=n(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.getIssueRelationshipsList().map(dsa),
totalChildCount:d.getTotalSize()})}return b},hta=function(a){var b=new Mn;b.setIssueIdsList(a.issueIds.map(String));b.setActionsList(a.actions.map(msa));return b},ita=function(a){return{issueId:a.getIssueId(),message:a.getMessage()}},jta=function(a){var b={};var c=rj(a,1,en);c=n(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=Fn(e)}c={};d=rj(a,3,qn);d=n(d.entries());for(e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;
f=f.next().value;c[Number(e)]=pn(f)}var h;a=(null!=(h=Nb(a,Nn,2))?h:[]).map(ita);return{affectedIssues:b,componentMap:c,errors:a}},kta=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Gn)},cta=function(a){var b=ym(a,lta);switch(b){case 2:return b=Hl(a,On,2,lta),0!==b.getCommentNumber()?{type:"issueReference",issueId:String(b.getIssueId()),commentNumber:b.getCommentNumber(),sourceCommentNumber:Ji(a,3)}:{type:"issueReference",issueId:String(b.getIssueId()),sourceCommentNumber:Ji(a,
3)};case 1:return{type:"hyperlink",href:Hl(a,mta,1,lta).getHref(),sourceCommentNumber:Ji(a,3)};case 0:throw Error("wc");default:return Ai(b)}},nta=function(a){return{readTimestamp:Aj(a,1)}},pta=function(a){var b=Ub(a,ota,2);b={componentId:b.getComponentId(),type:Pra[b.getType()],status:Wm[b.getStatus()],priority:Qra[b.getPriority()],severity:Rra[b.getSeverity()]};return{issueId:String(a.getIssueId()),issueState:b,modifiedTime:om(Ub(a,Cj,5)),teamId:a.getTeamId()}},Pn=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 Ai(a,"Unexpected formatting mode")}},qta=function(a){var b=void 0;a.hasCommentContentVerdict()&&(b=Sm(a.getCommentContentVerdict()));return{issueId:a.getIssueId(),commentNumber:Ji(a,2),commentContentVerdict:b,formattingMode:ysa[a.getFormattingMode()],lastEditorUser:Tl(Ub(a,Wl,8)),lastModified:String(a.getLastModified()),version:a.getVersion(),unlinkifiedComment:Pi(a,7),
entityStatus:Rsa(a.getEntityStatus()),piiRetentionState:Qm(a.getPiiRetentionState()),piiRetention:Vm[a.getPiiRetention()],etag:a.getEtag(),commentReactions:fta(Ub(a,In,18))}},rta=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(qta)},sta=function(a){var b=new kn,c=new Qn;c.setContent(Zsa(Bh(a)));Dm(b,3,Rn,c);return b},fta=function(a){var b=null==a?void 0:Nb(a,Sn,1);a=new Map;b=n(b||[]);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=null!=(d=tta[c.getType()])?
d:"REACTION_TYPE_UNSPECIFIED",f=d=void 0,h=void 0,k=void 0,q={type:e,hasReacted:null!=(f=oj(c,1))?f:!1,count:null!=(h=c.getCount())?h:0,recentResponders:null!=(k=null==(d=Nb(c,Wl,3))?void 0:d.map(Tl).filter(fm))?k:[]};a.set(e,q)}return a},uta=function(a){return{user:Tl(Ub(a,Wl,1)),createdTime:om(a.getCreatedTime())}},vta=function(a){return{responders:Nb(a,Tn,1).map(uta),totalSize:a.getTotalSize(),nextPageToken:a.getNextPageToken()}},wta=function(a){var b=a.getIssuesList();if(b){var c=[];b=n(b);for(var d=
b.next();!d.done;d=b.next())(d=d.value)&&(d=Fn(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=a.getComponentsMap();d={};e=n(e.entries());for(var f=e.next();!f.done;f=e.next()){var h=n(f.value);f=h.next().value;h=h.next().value;d[Number(f)]=pn(h)}f=rj(a,4);if(void 0!==f)for(e={},f=n(f.entries()),h=f.next();!h.done;h=f.next()){var k=n(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()}},
yta=function(a){for(var b={},c=n(a.getComponentsMap().entries()),d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=pn(e)}var f,h;return{issuesWithSignals:Nb(a,Un,1).map(xta),numTotalResults:null!=(f=a.getNumTotalResults())?f:0,components:b,nextPageToken:null!=(h=a.getNextPageToken())?h:""}},xta=function(a){return{issue:Fn(a.getIssue()),signals:Nb(a,Vn,2).map(zta)}},zta=function(a){return{signalType:Ata[qj(a,1,0)],timestamp:om(a.getTimestamp())}},Bta=function(a){return{dismissTimestamp:vj(a,
Cj,1)?om(Ub(a,Cj,1)):void 0}},Cta=function(a){if(a&1){var b=v();E(0,"div",2)(1,"button",3);M("click",function(){w(b);var c=N();return z(c.action())});Q(2);G()()}a&2&&(a=N(),A(2),kg(a.data.action))},Dta=function(){},Eta=function(a){a&1&&(E(0,"span",6),Q(1),G());a&2&&(a=N(),A(1),kg(a.data.message))},Fta=function(a){a&1&&H(0,"span",7);a&2&&(a=N(),D("innerHtml",a.data.htmlMessage,ke))},Hta=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(Gta(c.snackBarRef))});
Q(1);G()}a&2&&(a=N(),A(1),T(" ",a.data.actionLabel," "))},Ita=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(c.snackBarRef.dismiss())});Q(1);G()}a&2&&(a=N(),A(1),T(" ",a.data.dismissLabel," "))},Jta=function(a){if(a&1){var b=v();E(0,"button",9);M("click",function(){w(b);var c=N();return z(c.snackBarRef.dismiss())});H(1,"mat-icon",10);G()}},Kta=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},Wn=function(a){return!!a&&La(a)&&(!!a.data&&
void 0!==a.data.message||Kta(a))},Xn=function(a){return a.data&&void 0!==a.data.message&&a.data&&a.data.message?a.data.message:Kta(a)&&a.error&&a.error.message?a.error.message:""},Yn=function(a){return 0<Object.values(a).length},Lta=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},Zn=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},Mta=function(a,b){var c=a.getValue(),d={};c=n(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=
n(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},$n=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(r(a)).sort());return JSON.stringify(b)},Nta=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},Ota=function(a){a=void 0===a?{}:a;return $ma(a)},Pta=function(a){var b=new W.Subject,c=a.subscribe(b);a=(0,W.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},Qta=function(a){return null==a?new Promise(function(){}):
Promise.resolve(a)},ao=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,"+")},bo=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("Hc`"+a);}},Rta=function(a){var b={};if(null==a)return b;a=n(Nb(a,co,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Pi(c,1),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},Sta=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})},Tta=function(a){return Jsa(Ub(a,rn,1))},Uta=function(a){return(Nb(a,rn,1)||[]).map(Jsa)},Vta=function(a,b){var c;a=null==(c=a.componentPathInfo)?void 0:c.allCustomField;if(!a)return!0;c={};a=n(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$customField$1932:c.$jscomp$loop$prop$customField$1932},d=a.next())if(c.$jscomp$loop$prop$customField$1932=d.value,c.$jscomp$loop$prop$customField$1932.required){d=!!c.$jscomp$loop$prop$customField$1932.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.$jscomp$loop$prop$customField$1932.customFieldId}}(c));if(!d&&!h)return!1}return!0},Xta=function(a){return null==a?!1:Wta.has(a.name)},Yta=function(a){return"hotlist"===(null==a?void 0:a.name)},Zta=function(a){return null==a?!1:null!=a.href&&null!=a.value},$ta=function(a){return Array.isArray(a)?a.every(Zta):!1},eo=function(a,b){return function(c,d){return aua(c,
a,b,d)}},aua=function(a,b,c,d){d=void 0===d?"":d;return""===d?a:[].concat(r(a)).sort(function(e,f){var h="asc"===d?1:-1;return c(b(e),b(f))*h})},bua=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},cua=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},fo=function(a){return!(null==a||!a.commentNumber)},go=function(a){var b;return 0<(null==(b=a.attachments)?void 0:
b.length)},dua=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(r(a.slice(0,d)),[c],r(a.slice(d+1)))},ho=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},eua=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("-")},fua=function(a){if(null==a)return"";var b=a.attachments.map(eua).join("-"),c,d;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,null==(c=a.commentContentVerdict)?void 0:null==(d=c.piiVerdict)?void 0:d.severity,a.commentDeletionStatus,a.commentRetention].join("-")},gua=function(a){return a.map(function(b){return b.commentNumber}).filter(fm).reduce(function(b,
c){return Math.max(b,c)},1)},hua=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||fua(d)!==fua(e)))return!1}return!0},jo=function(a){if(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=io[a])?void 0:d.open)?e:!1},iua=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=io[a];return null==b?!1:!(null==b?0:b.open)},ko=function(a){return null==a.isArchived?!1:!a.isArchived},kua=function(a){return eo(function(b){var c,d;return null!=(d=jua[Ym[null==(c=a(b))?void 0:c.snapshot[0].status]])?d:0},bua)},lua=function(a){return eo(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},cua)},mua=function(a){return eo(function(b){var c;
return null==(c=a(b))?void 0:c.snapshot[0].type},cua)},nua=function(a){return eo(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},cua)},oua=function(a){return eo(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},bua)},lo=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},mo=function(a){var b;return null==a?void 0:null==
(b=a.snapshot)?void 0:b[0]},pua=function(a,b){a=mo(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(r(b.map(function(c){return c.userPerformingActionUser})));return Wj(b.filter(fm),Ul)},qua=function(a,b){b=pua(a,b);var c,d,e;a=null!=(e=null==(c=mo(a))?void 0:null==(d=c.ccUsers)?void 0:d.length)?e:0;return b.length+a},rua=function(a){var b=a.map(function(c){return qj(c,2,0)});return b.includes(4)?3:b.includes(3)?0:b.includes(2)?
4:a.map(function(c){return qj(c,1,0)}).includes(3)?1:b.includes(1)?5:2},sua=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"}},tua=function(a){var b=a.newEditors,c=a.newImplicitUsers,d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=rua(a.userPrincipals);return{title:"Allow "+(1===a?"members of the group to ":sua(a,d)+" to ")+(0===b.length?"comment?":"edit?"),content:"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)+"."}},vua=function(a){a=a.getFavorite();return{user:Tl(a.getUser()),resourceType:uua[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},wua=function(a){var b,c;return{searchId:Number(uj(a,1)),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(Qqa),displayColumn:(null!=
(c=a.getDisplayColumnList())?c:[]).map(Nqa),adminUsers:Vl(a.getAdminUsersList())}},xua=function(a){var b;return(null!=(b=Nb(a,no,1))?b:[]).map(wua)},yua=function(a){return{id:a.getId(),name:a.getName(),description:a.getDescription(),adminUsers:Vl(a.getAdminUsersList()),starred:a.getStarred(),resourceType:a.getResourceType()}},zua=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),adminUsers:Vl(a.getAdminUsersList()),starred:a.getStarred(),sublinks:(null!=(b=Nb(a,
oo,6))?b:[]).map(yua)}},Aua=function(a){var b,c,d,e;return{hotlists:(null!=(b=a.getHotlistsList())?b:[]).map(yua),bookmarkGroups:(null!=(c=a.getBookmarkGroupsList())?c:[]).map(zua),archivedHotlists:(null!=(d=Nb(a,oo,3))?d:[]).map(yua),archivedBookmarkGroups:(null!=(e=Nb(a,po,4))?e:[]).map(zua)}},Cua=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=Nb(new Bua(a),qo,1))&&1===a.length)return Ln(a[0])},so=function(a){return function(){var b=ro.getItem(a);return null==b?!1:!!JSON.parse(b)}},
to=function(a){return function(b){!0===b?ro.setItem(a,"1"):ro.removeItem(a)}},Dua=function(){return Uc.apply(0,arguments).map(String).join("__")},Eua=function(a){var b=a.name;if(null!=b&&(a=Math.round(a.duration),!isNaN(a))){var c=n(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}}},Gua=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(Fua);if(null!=
b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},Kua=function(){var a=window.performance.getEntries(),b=Gua(a);if(null==b)return[];var c=b.startTime;return a.filter(Hua).filter(Iua).filter(Jua).filter(function(d){return d.startTime<=c})},Fua=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},Hua=function(a){return 0!==a.name.indexOf("Zone")},Jua=function(a){return"resource"===a.entryType},Lua=function(a){return"xmlhttprequest"===
a.initiatorType},Iua=function(a){return null==a.name.match(/\.html$/)},Mua=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}},Nua=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},Qua=function(){if(!Oua){var a=Kua(),b=a.filter(function(c){return!Lua(c)}).reduce(Mua,Pua());uo("r-until-cf",
"asset","count",b.count);uo("r-until-cf","asset","transferSize",b.transferSize);uo("r-until-cf","asset","duration",b.duration);uo("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(Lua).reduce(Mua,Pua());uo("r-until-cf","xhr","count",a.count);uo("r-until-cf","xhr","transferSize",a.transferSize);uo("r-until-cf","xhr","duration",a.duration);Oua=!0}},vo=function(a,b){Rua({hitType:"event",eventCategory:a,eventAction:b})},uo=function(a,b,c,d){Rua({hitType:"event",eventCategory:a,eventAction:b,
eventLabel:c,eventValue:d})},Rua=function(a){null!=a&&("function"===typeof wo.ga?wo.ga("send",a):Sua&&gqa("[stub ga.ts] ga('send')",a))},xo=function(a,b){"function"===typeof wo.ga?wo.ga("set",a,b):Sua&&gqa("[stub ga.ts] ga('set', '"+a+"', "+b+")")},Xua=function(){var a=void 0===a?vo:a;var b=Date.now(),c=yo(b);yo(Tua())!==c?a("retention","first-visit"):(c=yo(b),yo(Tua())===c&&1===Uua()&&a("retention","second-visit"));a=yo(b);yo(Tua())!==a?Vua(1):(a=Uua()||0,Vua(a+1));Wua(b)},yo=function(a){if(null!=
a)return(new Date(a)).toLocaleDateString()},Yua=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},Zua=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:a.issueId})},$ua=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)}},ava=function(a){function b(){var e,f,h,k;return Pe(function(q){if(1==q.nextAddress){if(d||0===c.length)return q.return();d=!0;e=[].concat(r(c));c=[];f=n(e);h=f.next()}if(3!=q.nextAddress){if(h.done)return d=!1,Re(q,b(),0);k=h.value;return Re(q,a.apply(null,r(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=Uc.apply(0,arguments),f=new joa;c.push({args:e,returnValue:f});b();return f.promise}},zo=
function(a){var b=!1;return function(){var c=Uc.apply(0,arguments);if(!b)return b=!0,a.apply(null,r(c))}},bva=function(a){return!(null==a||!a.relatedChildren.length)},dva=function(a,b){var c=[].concat(r(a));a=new Set(a.map(function(h){return h.targetIssueId}));var d={};b=n(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$newItem$1938:d.$jscomp$loop$prop$newItem$1938},e=b.next())if(d.$jscomp$loop$prop$newItem$1938=e.value,!a.has(d.$jscomp$loop$prop$newItem$1938.targetIssueId)){e=c.findIndex(function(h){return function(k){return k.targetIssueId===
h.$jscomp$loop$prop$newItem$1938.afterIssueId}}(d));var f=void 0;f=d.$jscomp$loop$prop$newItem$1938.afterIssueId?-1===e?c.length:e+1:0;c.splice(f,0,d.$jscomp$loop$prop$newItem$1938);a.add(d.$jscomp$loop$prop$newItem$1938.targetIssueId)}return cva(c)},eva=function(a,b){return cva(a.filter(function(c){return c.targetIssueId!==b}))},cva=function(a){for(var b=[],c=n(a.entries()),d=c.next();!d.done;d=c.next()){var e=n(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});null==d.afterIssueId&&delete d.afterIssueId;b.push(d)}return b},fva=function(a){var b=new Map,c={};a=n(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$previousOperation$1940:c.$jscomp$loop$prop$previousOperation$1940},d=a.next()){var e=d.value;d=e.issues.map(function(f){return f.issueId}).join(",");c.$jscomp$loop$prop$previousOperation$1940=b.get(d);c.$jscomp$loop$prop$previousOperation$1940?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:c.$jscomp$loop$prop$previousOperation$1940.issues,
eventTimestamps:[].concat(r(c.$jscomp$loop$prop$previousOperation$1940.eventTimestamps),r(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(c.$jscomp$loop$prop$previousOperation$1940.done.resolve).catch(function(f){return function(h){f.$jscomp$loop$prop$previousOperation$1940.done.reject(h);throw h;}}(c)),b.set(d,e)):b.set(d,e)}b=[].concat(r(b.values()));c={};a=n(b);for(d=a.next();!d.done;c={$jscomp$loop$prop$operation$1692$1942:c.$jscomp$loop$prop$operation$1692$1942},
d=a.next())c.$jscomp$loop$prop$operation$1692$1942=d.value,c.$jscomp$loop$prop$operation$1692$1942.newRelations=c.$jscomp$loop$prop$operation$1692$1942.newRelations.map(function(f){return function(h){return f.$jscomp$loop$prop$operation$1692$1942.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===h.targetIssueId})}}(c));return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,r(f.issues.map(function(t){return k.findIndex(function(x){return x.targetIssueId===
t.issueId})})));h=Math.min.apply(Math,r(h.issues.map(function(t){return q.findIndex(function(x){return x.targetIssueId===t.issueId})})));return f===h?0:f<h?-1:1})},gva=function(a){var b=new nn;a.teamId&&b.setTeamId(a.teamId);a.score&&Fb(b,2,a.score,0);return b},hva=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},iva=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},jva=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},kva=function(a){var b;return null==(b=lo(a))?void 0:b.title},lva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.status)?c:void 0},mva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.priority)?c:void 0},nva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.assigneeUser)?c:void 0},ova=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.reporterUser)?c:void 0},pva=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 am(a)},qva=function(a){var b;a=null==(b=lo(a))?void 0:b.componentId;return am(a)},rva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.ccUsers)?c:[]},sva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.collaboratorsUsers)?c:[]},tva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.type)?c:void 0},uva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.foundInVersion)?c:
[]},vva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.targetedToVersion)?c:[]},wva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.changelist)?c:[]},xva=function(a){var b,c;return null!=(c=null==(b=lo(a))?void 0:b.postmortems)?c:[]},yva=function(a){var b;return(null==(b=lo(a))?void 0:b.inProd)||!1},zva=function(a){var b;return null==(b=lo(a))?void 0:b.effort},Ava=function(a){var b;return null!=(b=null==a?void 0:a.customFields)?b:[]},Bva=function(a){var b,c;return null!=
(c=null==(b=lo(a))?void 0:b.customField)?c:[]},Cva=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.issue)?void 0:b.visibleFields)?c:[]},Dva=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},Eva=function(a){var b;return null!=(b=null==a?void 0:a.attachmentMap)?b:{}},Fva=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},Hva=function(a){return Gva(null==a?void 0:a.issue)},
Gva=function(a){var b,c;return null!=(c=null==(b=mo(a))?void 0:b.isDeleted)?c:!1},Jva=function(a){return Iva(null==a?void 0:a.issue)},Iva=function(a){var b;return null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},Kva=function(a){var b;return(a=null==a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},Mva=function(a){return Lva(null==a?void 0:a.issue)},Lva=function(a){var b,c;return null!=(c=null==(b=mo(a))?void 0:b.retention)?c:void 0},Nva=function(a){var b,
c;return null!=(c=null==(b=lo(a))?void 0:b.duplicateOfIssueId)?c:void 0},Pva=function(a){return Ova(null==a?void 0:a.issue)},Ova=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},Qva=function(a){var b,c;return null!=(c=Gqa(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloStatus))?c:void 0},Rva=function(a){var b;return am(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloId)},Sva=function(a){var b;return null==a?void 0:
null==(b=a.issue.aggregatedData)?void 0:b.createdTimeMicros},Tva=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.teamSuggestions)?void 0:b.map(gva))?c:[]},Uva=function(a){return(null==a?void 0:a.effortSpec)&&El(a.effortSpec)},Vva=function(a){a=Uva(a);return!(!a||!a.getName()&&!a.getInherit())},Wva=function(a){return null==a?void 0:a.componentPathInfo},Xva=function(a){a=a.filter(function(b){return null!=b.customFieldId}).map(function(b){return String(b.customFieldId)});return new Set(a)},
Yva=function(a){if(!a)return{};var b,c=n(null!=(b=a.match(RegExp("comment([0-9]+)")))?b:[]);c.next();b=c.next().value;var d;a=n(null!=(d=a.match(RegExp("comment[0-9]+version([0-9]+)")))?d:[]);a.next();d=a.next().value;return{commentNumber:$l(b),commentVersion:$l(d)}},Ao=function(a){return!!a&&Zva.test(a)&&!$va.test(a)},Bo=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||a.endsWith("-robots@google.com")||awa(a)},awa=function(a){return bwa.some(function(b){return a.endsWith(b)})},
cwa=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}},dwa=function(a){return a?fj(a.replace(/_/g," ").toLowerCase()):""},ewa=function(a){return a?a.join(", "):""},fwa=function(a,b){if(!a)return Co("");if(!b)return Co(a);b=b.split(" ").map(ena);b=b.filter(function(h){return!!h});b=b.map(Do);if(0===b.length)return Co(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(Eo("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Fo(c)},gwa=function(a){return a?"Yes":"No"},hwa=function(a){var b;a?b=Array.isArray(a)&&a.every(ana)?a.join(" > "):a.componentPathInfo&&a.componentPathInfo.componentPathName?a.componentPathInfo.componentPathName.join(" > "):"":b="";return b},iwa=function(a){return a?
a.pathNames?a.pathNames.join(" > "):"":""},jwa=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},kwa=function(a){if(a&&Ao(a))return a},Go=function(a){return null==a?"":String(a)},lwa=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},mwa=function(a){a&1&&H(0,"bug-screensaver")},nwa=function(a){a&1&&gg(0)},owa=function(a){a&
1&&cg(0)},pwa=function(a){if(a&1){var b=v();E(0,"button",7,8);M("click",function(e){w(b);var f=N();return z(f.onClick(e))});P(2,owa,1,0,"ng-container",9);G()}if(a&2){a=N();var c=O(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Uf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);A(2);D("ngTemplateOutlet",c)}},qwa=function(a){a&1&&cg(0)},rwa=function(a){if(a&1){var b=v();E(0,"button",10,8);M("click",function(e){w(b);var f=
N();return z(f.onClick(e))});P(2,qwa,1,0,"ng-container",9);G()}if(a&2){a=N();var c=O(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Uf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);A(2);D("ngTemplateOutlet",c)}},swa=function(a){a&1&&cg(0)},twa=function(a){if(a&1){var b=v();E(0,"button",11,8);M("click",function(e){w(b);var f=N();return z(f.onClick(e))});P(2,swa,1,0,"ng-container",9);G()}if(a&2){a=N();var c=O(1),d;D("color",
a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Uf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);A(2);D("ngTemplateOutlet",c)}},uwa=function(a){a&1&&cg(0)},vwa=function(a){if(a&1){var b=v();E(0,"button",12,8);M("click",function(e){w(b);var f=N();return z(f.onClick(e))});P(2,uwa,1,0,"ng-container",9);G()}if(a&2){a=N();var c=O(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==
d?d:"");Uf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);A(2);D("ngTemplateOutlet",c)}},wwa=function(a){a&1&&cg(0)},xwa=function(a){if(a&1){var b=v();E(0,"button",7,8);M("click",function(e){w(b);var f=N();return z(f.onClick(e))});P(2,wwa,1,0,"ng-container",9);G()}if(a&2){a=N();var c=O(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");Uf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);A(2);D("ngTemplateOutlet",
c)}},ywa=function(a){a&1&&(E(0,"footer"),H(1,"img",1),U(2,"async"),E(3,"span",2),Q(4),U(5,"async"),G(),Q(6," Powered by Google "),E(7,"span",3),Q(8,"|"),G(),E(9,"a",4),Q(10,"Privacy"),G(),E(11,"span",3),Q(12,"|"),G(),E(13,"a",5),Q(14,"Terms"),G()());a&2&&(a=N(),A(1),D("src",V(2,2,a.trackerLogo$),le),A(3),T("",V(5,4,a.trackerName$)," Issue Tracker"))},zwa=function(a){var b;return null!=(b=$l(a))?b:null},Awa=function(a){var b;return null!=(b=am(a))?b:null},Ho=function(a){return!a||"0"===a},Bwa=function(a,
b){if(a&1){var c=v();E(0,"a",8);M("click",function(){var d=w(c).$implicit,e=N(2);return z(e.clickSegment.emit(d.name||d.path))});Q(1);G()}a&2&&(a=b.$implicit,D("href",a.path,le),A(1),T(" ",a.name||a.path," "))},Cwa=function(a){a&1&&(I(0),E(1,"button",4),H(2,"mat-icon",5),G(),E(3,"mat-menu",null,6),P(5,Bwa,2,2,"a",7),G(),L());if(a&2){var b=O(4);a=N();A(1);D("matMenuTriggerFor",b);A(4);D("ngForOf",a.segments)}},Dwa=function(a,b){if(a&1){var c=v();I(0);E(1,"b-fab-segmented",1);M("clickMain",function(f){w(c);
var h=N(3);return z(h.trackClick(f))})("clickSegment",function(f){w(c);var h=N(3);return z(h.trackClick(f))});G();L()}if(a&2){a=b.ngIf;b=N().ngIf;var d=N().ngIf,e=N();A(1);D("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},Ewa=function(a){a&1&&(I(0),P(1,Dwa,2,4,"ng-container",0),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.buttonIcon$)))},Fwa=function(a){a&1&&(I(0),P(1,Ewa,3,3,"ng-container",0),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.buttonLabel$)))},Io=function(a){for(var b=
n(a.item||[]),c=b.next();!c.done;c=b.next())c=c.value,"hotlistId"in c?c.resourceType="HOTLIST":"savedSearchId"in c&&(c.resourceType="SAVED_SEARCH");return a},Gwa=function(a){return a.map(Io)},Iwa=function(a){var b={name:a.getName(),description:a.getDescription()};1===ym(a,Jo)?b.hotlistId=Number(a.getHotlistId()):4===ym(a,Jo)&&(b.savedSearchId=Number(Hwa(a,4)));return b},Ko=function(a){var b;return{bookmarkGroupId:Number(a.getBookmarkGroupId()),name:a.getName(),description:a.getDescription(),archived:a.getArchived(),
item:(null!=(b=a.getItemList())?b:[]).map(Iwa),adminUsers:Vl(a.getAdminUsersList())}},Jwa=function(a){var b=new Lo;b.setName(a.name);void 0!==a.description&&b.setDescription(a.description);void 0!==a.hotlistId?b.setHotlistId(String(a.hotlistId)):void 0!==a.savedSearchId&&um(b,4,Jo,String(a.savedSearchId));return b},Kwa=function(a){var b;return(null!=(b=a.getBookmarkGroupsList())?b:[]).map(Ko)},Lwa=function(a){if(a&1){var b=v();E(0,"button",5);M("click",function(){w(b);var c=N();return z(c.dialogRef.close(!1))});
Q(1);G()}a&2&&(a=N(),A(1),T(" ",a.cancelButtonText," "))},Mwa=function(a){a&1&&cg(0)},Nwa=function(a){a&1&&cg(0)},Owa=function(a){a&1&&(I(0),P(1,Nwa,1,0,"ng-container",1),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.content))},Pwa=function(a){a&1&&Q(0," Archived ")},Qwa=function(a){a&1&&(E(0,"button",16),M("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",17),G());if(a&2){N();var b=O(5);D("matMenuTriggerFor",b)}},Rwa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);
var c=N(3).$implicit;return z(c.unstar())});Q(1," Unstar ");G()}},Swa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N(3).$implicit;return z(c.unarchive())});Q(1," Unarchive ");G()}},Twa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);return z(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");G();E(2,"button",18);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);return z(d.handleBookmarkGroupDashboard(c.id))});
Q(3," Dashboard ");G();E(4,"button",18);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);return z(d.openEditBookmarkGroup(c.id))});Q(5," Settings ");G();P(6,Rwa,2,0,"button",19);P(7,Swa,2,0,"button",19)}a&2&&(a=N(2).$implicit,A(6),D("ngIf",a.isUnstarable()),A(1),D("ngIf",a.isEditable()))},Uwa=function(a){a&1&&(E(0,"div",11)(1,"span",12),Q(2),G(),P(3,Qwa,2,1,"button",13),E(4,"mat-menu",null,14),P(6,Twa,8,2,"ng-template",15),G()());a&2&&(a=N().$implicit,Wf("id","bv2-user-archived-bookmarkgroup-item-",
a.id,""),A(2),kg(a.name),A(1),D("ngIf",a))},Vwa=function(a,b){if(a&1){var c=v();E(0,"li",22)(1,"a",23);M("click",function(d){var e=w(c).$implicit,f=N(5);return z(f.onAnchorClick(e.href,d))});E(2,"span",12);Q(3);G()()()}a&2&&(a=b.$implicit,b=N(2).$implicit,Zf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),Jha("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),A(1),D("href",
a.href,le),A(2),T(" ",a.name," "))},Wwa=function(a){a&1&&(E(0,"ul",20),P(1,Vwa,4,12,"li",21),G());a&2&&(a=N().$implicit,A(1),D("ngForOf",a.items))},Xwa=function(a,b){a&1&&(E(0,"li",7)(1,"sidebar-zippy",8),P(2,Uwa,7,3,"ng-template",null,9,Hg),P(4,Wwa,2,1,"ng-template",null,10,Hg),G()());if(a&2){a=b.$implicit;var c=O(3),d=O(5);D("title",a.name);A(1);D("header",c)("content",d)}},Ywa=function(a){a&1&&(E(0,"button",28),H(1,"mat-icon",17),G());if(a&2){N();var b=O(6);D("matMenuTriggerFor",b)}},Zwa=function(a){if(a&
1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N(2).$implicit;return z(c.unstar())});Q(1," Unstar ");G()}},$wa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N(2).$implicit;return z(c.unarchive())});Q(1," Unarchive ");G()}},axa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N().$implicit,d=N(3);return z(d.openEditHotlist(c.id))});Q(1," Settings ");G();P(2,Zwa,2,0,"button",19);P(3,$wa,2,0,"button",19)}a&2&&(a=N().$implicit,
A(2),D("ngIf",a.isUnstarable()),A(1),D("ngIf",a.isEditable()))},bxa=function(a,b){if(a&1){var c=v();E(0,"li",24)(1,"a",25);M("click",function(d){var e=w(c).$implicit,f=N(3);return z(f.onAnchorClick(e.href,d))});E(2,"span",12);Q(3);G()();P(4,Ywa,2,1,"button",26);E(5,"mat-menu",null,27);P(7,axa,4,2,"ng-template",15);G()()}a&2&&(a=b.$implicit,Zf("selected",a.isSelected()),hg("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),D("title",a.name),A(1),D("href",a.href,le),A(2),kg(a.name),A(1),D("ngIf",
a))},cxa=function(a){a&1&&(E(0,"ul",4),P(1,Xwa,6,3,"li",5),P(2,bxa,8,7,"li",6),G());a&2&&(a=N(2),A(1),D("ngForOf",a.bookmarkGroups),A(1),D("ngForOf",a.hotlists))},dxa=function(a){a&1&&(E(0,"div"),H(1,"hr"),E(2,"sidebar-zippy",1),P(3,Pwa,1,0,"ng-template",null,2,Hg),P(5,cxa,3,2,"ng-template",null,3,Hg),G()());if(a&2){var b=O(4),c=O(6);A(2);D("header",b)("content",c)}},exa=function(){return{diameter:100}},fxa=function(a){a&1&&(qd(),H(0,"circle",4));if(a&2){a=N();var b=O(1);Yf("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));Uf("r",a._getCircleRadius())}},gxa=function(a){a&1&&(qd(),H(0,"circle",4));if(a&2){a=N();var b=O(1);Yf("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));
Uf("r",a._getCircleRadius())}},hxa=function(a){a&1&&H(0,"mat-spinner",2);a&2&&D("diameter",36)},ixa=function(a){a&1&&H(0,"mat-spinner",3);a&2&&D("diameter",16)("strokeWidth",2)},kxa=function(a){if(null==jxa){var b="undefined"!==typeof document?document.head:null;jxa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return jxa&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},lxa=function(a){if(a&1){var b=v();E(0,"div",0);M("clickOutside",
function(){w(b);var c=N();return z(c.closeHovercard$.next())})("mouseenter",function(){w(b);N().isOnHover$.next(!0);return z()})("mouseleave",function(){w(b);N().isOnHover$.next(!1);return z()});gg(1);G()}a&2&&(a=N(),$f(a.className),D("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},mxa=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}},nxa=function(a,b){a&1&&(E(0,"div",0,1),gg(2),G());a&2&&(a=b.id,b=N(),D("id",b.id)("ngClass",b._classList),Uf("aria-label",b.ariaLabel||null)("aria-labelledby",
b._getPanelAriaLabelledby(a)))},oxa=function(a){a&1&&H(0,"b-spinner")},pxa=function(a){if(a&1){var b=v();E(0,"b-star-toggle",15);M("starClicked",function(){w(b);var c=N().$implicit,d=N();return z(d.toggleStar(c))});G()}a&2&&(a=N().$implicit,D("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",a.isStarred))},qxa=function(a){a&1&&H(0,"b-hotlist-card",16);a&2&&(a=N().$implicit,D("hotlist",a))},rxa=function(a){a&1&&H(0,"b-bookmark-group-card",17);a&2&&(a=N().$implicit,D("bookmarkGroup",
a))},sxa=function(a,b){a&1&&(E(0,"mat-option",8)(1,"div",9),P(2,pxa,1,3,"b-star-toggle",10),E(3,"onedev-hovercard",null,11),P(5,qxa,1,1,"b-hotlist-card",12),P(6,rxa,1,1,"b-bookmark-group-card",13),G(),E(7,"span",14),Q(8),G()()());if(a&2){a=b.$implicit;var c=O(4);b=N();D("value",a);A(1);Zf("bv2-bookmark-group",b.showHotlists&&a.isGroup);A(1);D("ngIf",b.shouldShowStar(a));A(3);D("ngIf",!a.isGroup);A(1);D("ngIf",!!a.isGroup);A(1);D("onedevHovercardTrigger",c);A(1);kg(a.name)}},txa=function(){return Gga(function(){return(0,W.from)(Promise.resolve(void 0))})},
uxa=function(a){a&1&&H(0,"a",1)},vxa=function(a){if(a&1){var b=v();E(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);M("itemSelect",function(c){w(b);var d=N();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return z()});G()()()}a&2&&(a=N(),A(2),D("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},wxa=function(a){if(a&1){var b=v();E(0,"span");Q(1,"Bookmark groups");G();E(2,"b-hotlist-search-popup",
4);M("itemSelect",function(c){w(b);var d=N();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return z()});G()}a&2&&(A(2),D("showHotlists",!1))},xxa=function(a){a&1&&(E(0,"button",17),M("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",18),G());if(a&2){N();var b=O(5);D("matMenuTriggerFor",b)}},yxa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(3).$implicit;return z(c.unstar())});Q(1," Unstar ");G()}},zxa=function(a){if(a&1){var b=v();E(0,"button",
19);M("click",function(){w(b);var c=N(3).$implicit;return z(c.archive())});Q(1," Archive ");G()}},Axa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(3).$implicit;return z(c.setAsPreferredHomepage())});Q(1," Set as homepage ");G()}},Bxa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);return z(d.handleBookmarkGroupOpen(c.id))});Q(1," Open ");G();E(2,"button",19);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);
return z(d.handleBookmarkGroupDashboard(c.id))});Q(3," Dashboard ");G();E(4,"button",19);M("click",function(){w(b);var c=N(2).$implicit,d=N(3);return z(d.editBookmarkGroup(c.id))});Q(5," Settings ");G();P(6,yxa,2,0,"button",20);P(7,zxa,2,0,"button",20);P(8,Axa,2,0,"button",20)}a&2&&(a=N(2).$implicit,A(6),D("ngIf",a.isUnstarable()),A(1),D("ngIf",a.isEditable()),A(1),D("ngIf",!a.isPreferredHomepage()))},Cxa=function(a){a&1&&(E(0,"div",12)(1,"span",13),Q(2),G(),P(3,xxa,2,1,"button",14),E(4,"mat-menu",
null,15),P(6,Bxa,9,3,"ng-template",16),G()());a&2&&(a=N().$implicit,Wf("id","bv2-user-bookmarkgroup-item-",a.id,""),A(2),kg(a.name),A(1),D("ngIf",a))},Dxa=function(a){a&1&&(E(0,"button",27),H(1,"mat-icon",18),G());if(a&2){N();var b=O(6);D("matMenuTriggerFor",b)}},Exa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(2).$implicit;return z(c.unstar())});Q(1," Unstar ");G()}},Fxa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(2).$implicit;
return z(c.setAsPreferredHomepage())});Q(1," Set as homepage ");G()}},Gxa=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N().$implicit,d=N(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));return z()});Q(1," Settings ");G();P(2,Exa,2,0,"button",20);P(3,Fxa,2,0,"button",20)}a&2&&(a=N().$implicit,A(2),D("ngIf",a.isUnstarable()),A(1),D("ngIf",!a.isPreferredHomepage()))},Hxa=function(a,b){if(a&1){var c=v();E(0,
"li",23)(1,"a",24);M("click",function(d){var e=w(c).$implicit,f=N(5);return z(f.onAnchorClick(e.href,d))});E(2,"span",13);Q(3);G()();P(4,Dxa,2,1,"button",25);E(5,"mat-menu",null,26);P(7,Gxa,4,2,"ng-template",16);G()()}a&2&&(a=b.$implicit,b=N(2).$implicit,Zf("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),Jha("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),A(1),D("href",
a.href,le),A(2),T(" ",a.name," "),A(1),D("ngIf",b))},Ixa=function(a){a&1&&(E(0,"ul",21),P(1,Hxa,8,13,"li",22),G());a&2&&(a=N().$implicit,A(1),D("ngForOf",a.items))},Jxa=function(a,b){a&1&&(E(0,"li",8)(1,"sidebar-zippy",9),P(2,Cxa,7,3,"ng-template",null,10,Hg),P(4,Ixa,2,1,"ng-template",null,11,Hg),G()());if(a&2){a=b.$implicit;var c=O(3),d=O(5);D("title",a.name);A(1);D("header",c)("content",d)("expanded",!1)}},Kxa=function(a){a&1&&(E(0,"ul",6),P(1,Jxa,6,4,"li",7),G());a&2&&(a=N(2),A(1),D("ngForOf",
a.bookmarkGroups))},Lxa=function(a){a&1&&P(0,Kxa,2,1,"ul",5);a&2&&(a=N(),D("ngIf",a.bookmarkGroups))},Mxa=function(a){if(a&1){var b=v();E(0,"span");Q(1,"Hotlists");G();E(2,"b-hotlist-search-popup",4);M("itemSelect",function(c){w(b);var d=N();Mo(d.analytics,"hotlistSearch","goToHotlist");d.location.url(c.href);return z()});G()}a&2&&(A(2),D("showGroups",!1))},Nxa=function(a){a&1&&(E(0,"button",14),H(1,"mat-icon",15),G());if(a&2){N();var b=O(6);D("matMenuTriggerFor",b)}},Oxa=function(a){if(a&1){var b=
v();E(0,"button",16);M("click",function(){w(b);var c=N(2).$implicit;return z(c.unstar())});Q(1," Unstar ");G()}},Pxa=function(a){if(a&1){var b=v();E(0,"button",16);M("click",function(){w(b);var c=N(2).$implicit;return z(c.setAsPreferredHomepage())});Q(1," Set as homepage ");G()}},Qxa=function(a){if(a&1){var b=v();E(0,"button",16);M("click",function(){w(b);var c=N().$implicit,d=N(3);return z(d.openEditHotlist(c.id))});Q(1," Settings ");G();P(2,Oxa,2,0,"button",17);P(3,Pxa,2,0,"button",17)}a&2&&(a=
N().$implicit,A(2),D("ngIf",a.isUnstarable()),A(1),D("ngIf",!a.isPreferredHomepage()))},Rxa=function(a,b){if(a&1){var c=v();E(0,"li",8)(1,"a",9);M("click",function(d){var e=w(c).$implicit,f=N(3);return z(f.onAnchorClick(e.href,d))});E(2,"span",10);Q(3);G()();P(4,Nxa,2,1,"button",11);E(5,"mat-menu",null,12);P(7,Qxa,4,2,"ng-template",13);G()()}a&2&&(a=b.$implicit,Zf("selected",a.isSelected()),hg("id","bv2-user-hotlists-hotlist-item-",a.id,""),D("title",a.name),A(1),D("href",a.href,le),A(2),kg(a.name),
A(1),D("ngIf",a))},Sxa=function(a){a&1&&(E(0,"ul",6),P(1,Rxa,8,7,"li",7),G());a&2&&(a=N(2),A(1),D("ngForOf",a.hotlists))},Txa=function(a){a&1&&P(0,Sxa,2,1,"ul",5);a&2&&(a=N(),D("ngIf",a.hotlists))},Uxa=function(a){return wua(a.getSearch())},Vxa=function(a){a&1&&(E(0,"span"),Q(1,"Saved searches"),G())},Wxa=function(a){if(a&1){var b=v();E(0,"button",14);M("click",function(){w(b);var c=N(2).$implicit;return z(c.setAsPreferredHomepage())});Q(1," Set as homepage ");G()}},Yxa=function(a){if(a&1){var b=
v();E(0,"button",14);M("click",function(){w(b);var c=N().$implicit,d=N(3);return z(d.openEditSavedSearch(c.id))});Q(1," Settings ");G();P(2,Wxa,2,0,"button",15);E(3,"button",14);M("click",function(){w(b);var c=N().$implicit,d=N(3);return z(Xxa(d,c))});Q(4," Delete ");G()}a&2&&(a=N().$implicit,A(2),D("ngIf",!a.isPreferredHomepage()))},Zxa=function(a,b){if(a&1){var c=v();E(0,"li",7)(1,"a",8);M("click",function(e){var f=w(c).$implicit,h=N(3);return z(h.onAnchorClick(f.href,e))});E(2,"span",9);Q(3);G()();
E(4,"button",10);H(5,"mat-icon",11);G();E(6,"mat-menu",null,12);P(8,Yxa,5,1,"ng-template",13);G()()}if(a&2){a=b.$implicit;var d=O(7);Zf("selected",a.isSelected());Wf("id","bv2-saved-searches-search-item-",a.id,"");D("title",a.name);A(1);D("href",a.href,le);A(2);kg(a.name);A(1);D("matMenuTriggerFor",d)}},$xa=function(a){a&1&&(E(0,"ul",5),P(1,Zxa,9,7,"li",6),G());a&2&&(a=N(2),A(1),D("ngForOf",a.searches))},aya=function(a){a&1&&P(0,$xa,2,1,"ul",4);a&2&&(a=N(),D("ngIf",a.searches))},dya=function(a){var b=
a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(bya).length;var c=a.filter(function(d){return!bya(d)}).filter(cya).length;return{filters:b,text:a.length-b-c,resourceIds:c}},cya=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:!/[^0-9]/.test(a)},bya=function(a){return!!a.match(/\w:\w/g)},eya=function(a,b){return(null!=a?a:0)+(null!=b?b:0)},
fya=function(a,b){for(a.has(b)&&a.delete(b);25<=a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},gya=function(a,b){var c;b=null!=(c=null==b?void 0:b.split(","))?c:[];a.clear();c=n(b);for(b=c.next();!b.done;b=c.next())a.set(b.value,void 0)},iya=function(a){a&1&&(E(0,"onedev-feature-tooltip-controller",23)(1,"onedev-feature-tooltip",24)(2,"p",25),Q(3,'New "Needs Attention" Page'),G(),Q(4," Track issues which need your attention based on activity. "),G()());a&2&&(a=N(),D("showTooltip$",a.showFeatureTooltip$),
A(1),D("customPositions",og(3,hya,a.TOOLTIP_POSITIONS.RIGHT_CENTER_BOTTOM))("tooltipId",a.TOOLTIP_ID_NEEDS_ATTENTION_SIDEBAR))},jya=function(a,b){a&1&&H(0,"mat-icon",30);a&2&&(a=b.$implicit,D("matBadge",99<a?"99+":a)("matBadgeHidden",0===a)("matBadgeDescription","Badge indicating "+a+" issues need attention"))},kya=function(a){a&1&&H(0,"mat-icon",31)},mya=function(a){if(a&1){var b=v();E(0,"li",26)(1,"a",27);M("click",function(d){w(b);var e=N();return z(lya(e,e.needsAttentionPath,d))});P(2,jya,1,3,
"mat-icon",28);U(3,"async");P(4,kya,1,0,"ng-template",null,29,Hg);Q(6," Needs attention ");G()()}if(a&2){var c=O(5);a=N();Zf("selected",!!a.location.path().match(/^\/attention\b/));A(1);D("href",a.needsAttentionPath,le)("onedevFeatureTooltip",a.TOOLTIP_ID_NEEDS_ATTENTION_SIDEBAR)("hideTooltipWhenAnchorNotVisible",!0);A(1);D("ngIf",V(3,7,a.needsAttentionIssueCount$))("ngIfElse",c)}},nya=function(a){a&1&&(I(0),E(1,"button",32),H(2,"mat-icon",33),G(),L());if(a&2){N();var b=O(14);A(1);D("matMenuTriggerFor",
b)}},pya=function(a){if(a&1){var b=v();E(0,"button",34);M("click",function(){w(b);var c=N();return z(oya(c))});Q(1," Set as homepage ");G()}},sya=function(a){if(a&1){var b=v();E(0,"li")(1,"a",7);M("click",function(c){w(b);var d=N();return z(d.onAnchorClick(d.votedPath,c))});H(2,"mat-icon",35);Q(3," Upvoted by me ");G()()}a&2&&(a=N(),Zf("selected",qya(a.appSearchState)),A(1),D("href",a.votedPath,le))},tya=function(a,b){if(a&1){var c=v();E(0,"li")(1,"a",7);M("click",function(d){var e=w(c).$implicit,
f=N();return z(f.onAnchorClick(e,d))});H(2,"mat-icon",36);Q(3," Recently Viewed ");G()()}a&2&&(a=b.$implicit,b=N(),Zf("selected",!!b.location.path().match(/^\/recent\b/)),A(1),D("href",a,le))},uya=function(){return{color:"accent",clickAction:"check-indeterminate"}},vya=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},wya=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)},xya=function(a,b,c){b=void 0===b?"#ccc":b;c=void 0===c?400:c;No++;var d=156;d+=12*(No-1);return function(e){e=void 0===e?b:e;var f,h=null!=(f=document.getElementById(a))?f:vya(a,d);wya(h,e,c)}},yya=function(a,b){if(a&1){var c=v();I(0);E(1,"iframe",6);M("load",
function(){w(c);var d=N();return z(d.contentLoaded=!0)});G();L()}a&2&&(a=b.$implicit,b=N(),A(1),Zf("loading",!b.contentLoaded),D("src",a,Iea))},zya=function(a){a&1&&H(0,"mat-spinner",7)},Bya=function(a){return Aya.some(function(b){return b.test(a)})},Cya=function(a){var b;return null==(b=a.formContent)?void 0:b.locale},Fya=function(a){var b=Cya(a);b=(b&&Dya.includes(b)?Cya(a):"en").replaceAll("-","_").toLowerCase();var c;a=(null==(c=a.initializationData)?0:c.useNightlyRelease)?"nightly":"live";return Dh(Eya,
a,b)},Hya=function(a,b,c){if(Gya)return Gya;var d=Fya(a);return Gya=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(e,f){var h=c.createElement("script");Gi(h,d);h.onload=function(){b.feedbackV2GlobalObject?e(b.feedbackV2GlobalObject):f("feedbackV2GlobalObject not found on window.")};h.onerror=function(){f("Feedback binary script tag failed to load: "+d.toString())};c.body.appendChild(h)})},Iya=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,t;return Pe(function(x){switch(x.nextAddress){case 1:return f=
Date.now(),Re(x,Hya(a,c,d),2);case 2:h=x.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||(null==(t=a.initializationData)?0:t.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);x.jumpTo(3);break}return Re(x,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=x.yieldResult;case 3:return k.initiateAloha(),x.return(k)}})},Jya=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k;Pe(function(q){f=e=c||ea;if(f.isFormOpened)throw h=Error("Mc"),h.name="DuplicateFormError",h;
f.isFormOpened=!0;a.callbacks=a.callbacks||{};k=a.callbacks.onClose||function(){};a.callbacks.onClose=function(t){f.isFormOpened=!1;k(t)};try{return q.return(Iya(a,b,f,e.document,d))}catch(t){throw f.isFormOpened=!1,t;}})},Mya=function(a,b){return Pe(function(c){return c.return(new Promise(function(d){var e=Kya(null!=b?b:"")+"/aloha_form_properties?productId="+a;zi(e,function(f){f=f.target;var h=null;try{h=Oo(Lya,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new Lya,h=new Po,h=Qo(h,5,!1),
h=Qo(h,2,!1),h=Qo(h,4,!1),h=Qo(h,8,!1),h=Qo(h,9,!1),h=Qo(h,7,!1),h=Qo(h,10,!1),h=Qo(h,12,!1),h=Qo(h,13,!1),h=Qo(h,14,!1),h=Vb(f,1,h)}d(h)},"GET","",{},2E3,!0)}))})},Kya=function(a){return Bya(a)?a:"https://www.google.com/tools/feedback"},Nya=function(a){a=void 0===a?!1:a;var b=woa(),c=b.total,d=b.redundancyRatio;uo("after-60s","xhr","redundant",b.redundant);uo("after-60s","xhr","total",c);uo("after-60s","xhr","redundancyRatio",d);a&&(console.table(uoa()),console.log(b))},Oya=function(a){if(a&1){var b=
v();E(0,"button",4);M("click",function(){w(b);var c=N();return z(c.toggle())});H(1,"mat-icon",5);G()}a&2&&(a=N(),Zf("isClosed",a.isClosed),D("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),Uf("aria-label",a.toggleButtonLabel),A(1),D("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},Pya=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},Qya=function(a){a=a.getBoundingClientRect();return 0<a.bottom&&a.top<window.innerHeight},Rya=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 W.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(rf())},Sya=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,W.merge)((0,W.of)(void 0),(0,W.fromEvent)(window,"scroll").pipe(of(500))).pipe(C(function(){return d(a)}),
rf())},Ro=function(a){return"hyperlink"===a.type},Tya=function(a){return Ro(a)&&!!a.href.match(So)},Vya=function(a){return Ro(a)&&!!a.href.match(Uya)},Wya=function(a){var b,c;return(a=null!=(c=null==(b=a.match(So))?void 0:b[2])?c:null)?"https://screenshot.googleplex.com/"+a+".png":null},To=function(a){return"issueReference"===a.type},Xya=function(a){return Ro(a)&&!Tya(a)&&!(Ro(a)&&a.href.startsWith("mailto:"))},Uo=function(a,b){a=void 0===a?"":a;b=void 0===b?48:b;var c=void 0===c?"...":c;var d=[].concat(r(a));
if(d.length<=b)return a;a=b-[].concat(r(c)).length;d=d.slice(0,a).join("");null!=String.prototype.trimEnd&&(d=d.trimEnd());return d+c},Yya=function(a){a=void 0===a?"":a;var b=new Set([].concat(r('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(r(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return 0===a.length?[]:a.split(/[\s]+/g)},Zya=function(a){return a.split("").every(function(b){return 1===b.length&&0<=b.charCodeAt(0)&&255>=b.charCodeAt(0)})},aza=function(a){if(null!=a){a=
[].concat(r(a)).slice(0,100);a=n(a);for(var b=a.next();!b.done;b=a.next())if(b=$ya[b.value])return b}},bza=function(a){a&1&&(I(0),H(1,"img",3),U(2,"async"),L());if(a&2){a=N(2);var b;A(1);D("src",V(2,2,a.srcRedirected$),le);Uf("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},cza=function(a){a&1&&(I(0),P(1,bza,3,4,"ng-container",0),U(2,"async"),L());if(a&2){a=N();var b=O(3);A(1);D("ngIf",V(2,2,a.showImage$))("ngIfElse",b)}},dza=function(a){if(a&1){var b=v();E(0,"a",4);M("click",function(c){w(b);
var d=N();return z(d.trigger(c))})("keydown.enter",function(c){w(b);var d=N();return z(d.trigger(c))});U(1,"async");U(2,"async");E(3,"b-glue");H(4,"mat-icon",5);G();I(5);Q(6);U(7,"async");L();G()}a&2&&(a=N(),D("href",V(1,3,a.src$),le)("title",V(2,5,a.src$)),A(6),kg(V(7,7,a.srcTruncated$)))},eza=function(a){a&1&&(H(0,"mat-icon",6),U(1,"async"));a&2&&(a=N(),hg("matTooltip","Unable to load image ",V(1,1,a.srcTruncated$),""))},fza=function(a){a&1&&(I(0),H(1,"br"),E(2,"a",4),H(3,"b-secure-image-widget",
5),G(),H(4,"br"),L());if(a&2){a=N().ngIf;var b=N();A(2);D("href",a,le)("rel",b.EXTERNAL_LINK_REL);A(1);D("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},gza=function(a){a&1&&H(0,"b-secure-image-widget",6);if(a&2){a=N().ngIf;var b=N();D("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!1)}},hza=function(a){a&1&&(I(0)(1,1),U(2,"async"),P(3,fza,5,5,"ng-container",2),P(4,gza,1,3,"b-secure-image-widget",3),L()());a&2&&(a=N(),A(1),D("ngSwitch",V(2,3,a.displayMode$)),
A(2),D("ngSwitchCase",a.DisplayMode.SHOW),A(1),D("ngSwitchCase",a.DisplayMode.COLLAPSE))},jza=function(a){if(a&1){var b=v();E(0,"a",8);M("keydown.enter",function(){w(b);var c=N(2);return z(iza(c))})("keydown.space",function(){w(b);var c=N(2);return z(iza(c))})("click",function(){w(b);var c=N(2);return z(iza(c))});Q(1," Dismiss");G()}},kza=function(a){a&1&&(E(0,"div",4)(1,"div",5),H(2,"span",6),P(3,jza,2,0,"a",7),G()());a&2&&(a=N(),A(2),D("innerHtml",a.announcement.message,ke),A(1),D("ngIf",a.announcement.dismissible))},
mza=function(a){if(a&1){var b=v();E(0,"b-resizable-sidebar",9);M("widthChanged",function(c){w(b);var d=N();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,lza(d,c));return z()});H(1,"b-sidebar");G()}a&2&&(a=N(),D("size",a.matSidebarWidth)("disableToggleBtn",!0))},nza=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},oza=function(a){a&1&&(E(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. "),
E(2,"a",13),Q(3," Learn more "),G()());a&2&&(a=N(2),A(2),D("href",a.getRestrictedAccessHelpLink(),le))},qza=function(a){a&1&&(I(0),P(1,oza,4,1,"div",8),L());a&2&&(a=N(),A(1),D("ngIf",pza(a)))},rza=function(a){a&1&&(E(0,"div",2)(1,"span",14),Q(2," You do not have access to view this attachment. "),G()())},sza=function(a){a&1&&H(0,"mat-spinner",15)},tza=function(a,b){a&1&&(I(0),E(1,"time",1),U(2,"async"),Q(3),G(),L());a&2&&(a=b.ngIf,b=N(),A(1),D("title",a.title),Uf("datetime",V(2,3,b.timestampIso$)),
A(2),kg(a.formatted))},Vo=function(a){if(!a)return 0;if(a instanceof Cj){var b=a.getSeconds();a=a.getNanos()||0}else b=a.seconds,a=a.nanos;return 1E3*b+a/1E6},Wo=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":""))+")"},uza=function(a){if(a){var b=new Xo;b.setTime(a.getTime());return b}},wza=function(a){if(a&1){var b=v();E(0,"button",10);M("click",function(){w(b);var c=N(2),d=new Wi;c.date=d;c.dateSelectionChange.emit(d);vza(c,
c.date);c.calendar._getCurrentViewComponent()._focusActiveCell(!1);c.dateChange.emit(c.date);return z(c.saveClicked.emit())});Q(1,"Today");G()}},xza=function(a){if(a&1){var b=v();E(0,"button",11);M("click",function(){w(b);var c=N(2);c.date=void 0;c.dateSelectionChange.emit(void 0);c.dateChange.emit(c.date);return z(c.saveClicked.emit())});Q(1,"None");G()}},yza=function(a){a&1&&(E(0,"div",1),P(1,wza,2,0,"button",8),P(2,xza,2,0,"button",9),H(3,"mat-divider"),G());a&2&&(a=N(),A(1),D("ngIf",a.todayButtonEnabled),
A(1),D("ngIf",a.noneButtonEnabled&&!a.required))},zza=function(a){a&1&&H(0,"b-formatted-date-time",4);a&2&&(a=N(),D("date",a.value))},Aza=function(a){a&1&&(I(0),Q(1,"---"),L())},Bza=function(a){a&1&&H(0,"mat-pseudo-checkbox",5);a&2&&(a=N(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},Cza=function(a,b){if(a&1){var c=v();E(0,"div",8)(1,"mat-checkbox",9);M("change",function(){var d=w(c).$implicit,e=N();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 z()})("click",function(d){return d.stopPropagation()});Q(2);G()()}a&2&&(a=b.$implicit,b=N(),D("title",b.getDisplayString(a)),A(1),D("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),A(1),T(" ",b.getDisplayString(a)," "))},Eza=function(a){if(a&1){var b=v();E(0,"input",10,11);M("keydown",function(c){w(b);var d=N();"Enter"===
c.key&&(Dza(d)&&d.addValue(),c.preventDefault());return z()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){w(b);var d=N();return z(d.filterValue=c)});G()}a&2&&(a=N(),D("type","REPEATED_NUMERIC"===a.type?"number":"text")("ngModel",a.filterValue)("placeholder","REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},Fza=function(a){a&1&&H(0,"mat-divider")},Gza=function(a){if(a&1){var b=v();E(0,"div",12);M("click",function(c){w(b);var d=N();c.stopPropagation();
return z(d.addValue())});Q(1," Add ");G()}},Hza=function(a){if(a&1){var b=v();E(0,"div")(1,"b-date-time-input",13);M("valueChange",function(c){w(b);var d=N();return z(d.currentSelectedDate=c)});G();E(2,"div",14);M("click",function(c){w(b);var d=N();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),d.currentSelectedDate=void 0;return z()});Q(3," Add ");G()()}a&2&&(a=N(),A(1),D("value",a.currentSelectedDate))},Iza=function(a){if(a&
1){var b=v();E(0,"div",0);M("keydown",function(c){w(b);var d=N();return z(d.processKeydown(c))});gg(1);G()}a&2&&(a=N(),Uf("id",a.id))},Jza=function(a){a&1&&cg(0)},Lza=function(a){if(a&1){var b=v();E(0,"div",3);M("click",function(){w(b);var d=N();return z(d.select(void 0))});P(1,Jza,1,0,"ng-container",4);G()}if(a&2){a=N();var c=O(3);D("option",void 0);Uf("aria-selected",a.isSelected(void 0));A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",ng(4,Kza))}},Mza=function(a){a&1&&cg(0)},Oza=function(a){if(a&
1){var b=v();E(0,"div",3);M("click",function(){w(b);var e=N().$implicit,f=N();return z(f.select(e))});P(1,Mza,1,0,"ng-container",4);G()}if(a&2){a=N().$implicit;var c=N(),d=O(3);D("option",a);Uf("aria-selected",c.isSelected(a));A(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",og(4,Nza,a))}},Pza=function(a,b){a&1&&(I(0),P(1,Oza,2,6,"div",0),L());a&2&&(a=b.$implicit,A(1),D("ngIf",a))},Qza=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N(2).$implicit,A(1),T(" ",a," "))},Rza=function(a){a&1&&(E(0,"span",
8),Q(1,"--"),G())},Sza=function(a){a&1&&(I(0),P(1,Qza,2,1,"ng-container",5),P(2,Rza,2,0,"ng-template",null,7,Hg),L());if(a&2){var b=O(3);a=N().$implicit;A(1);D("ngIf",null!=a)("ngIfElse",b)}},Tza=function(a){a&1&&cg(0)},Uza=function(a){a&1&&P(0,Tza,1,0,"ng-container",4);if(a&2){a=N().$implicit;var b=N();D("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",og(2,Nza,a))}},Vza=function(a){a&1&&(P(0,Sza,4,2,"ng-container",5),P(1,Uza,1,4,"ng-template",null,6,Hg));if(a&2){var b=O(2);a=N();D("ngIf",
!a.optionTemplate)("ngIfElse",b)}},Wza=function(a){a&1&&cg(0)},Yza=function(a){a&1&&(I(0),P(1,Wza,1,0,"ng-container",10),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,Xza,a.value)))},Zza=function(a){a&1&&cg(0)},$za=function(a){a&1&&(I(0),P(1,Zza,1,0,"ng-container",10),L());a&2&&(a=N(2),A(1),D("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",og(2,Xza,a.value)))},aAa=function(a){a&1&&P(0,$za,2,4,"ng-container",3);if(a&2){a=N();var b=O(8);D("ngIf",
a.optionTemplate)("ngIfElse",b)}},bAa=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N(2),A(1),T(" ",a.value," "))},cAa=function(a){a&1&&(E(0,"span",12),Q(1,"--"),G())},dAa=function(a){a&1&&(P(0,bAa,2,1,"ng-container",3),P(1,cAa,2,0,"ng-template",null,11,Hg));if(a&2){var b=O(2);a=N();D("ngIf",null!=a.value)("ngIfElse",b)}},eAa=function(a){a&1&&(qd(),E(0,"svg",13),H(1,"path",14),G())},fAa=function(a){a&1&&(E(0,"div"),Q(1," The selected issues have no custom fields in common. "),G())},gAa=function(a){a&1&&
(E(0,"span"),Q(1,"*"),G())},hAa=function(a){if(a&1){var b=v();E(0,"input",16);M("ngModelChange",function(c){w(b);var d=N(2).$implicit;return z(d.textValue=c)});G()}a&2&&(a=N(2).$implicit,N(),D("ngModel",a.textValue),Uf("aria-labelledby",Yo(a)))},iAa=function(a){if(a&1){var b=v();E(0,"input",17);M("ngModelChange",function(c){w(b);var d=N(2).$implicit;return z(d.numericValue=c)});G()}a&2&&(a=N(2).$implicit,N(),D("ngModel",a.numericValue),Uf("aria-labelledby",Yo(a)))},kAa=function(a){if(a&1){var b=v();
E(0,"div")(1,"b-date-time-input",18);M("valueChange",function(e){w(b);var f=N(2).$implicit;N();return z(f.dateValue=e?mm(e):void 0)});G()()}if(a&2){a=N(2).$implicit;var c=N(),d;A(1);D("value",null!==(d=jAa(a.dateValue))&&void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",Yo(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},mAa=function(a){if(a&1){var b=v();E(0,"onedev-single-select",19);M("valueChange",function(d){w(b);var e=N(2).$implicit;return z(e.enumValue=
d)});G()}if(a&2){a=N(2).$implicit;N();var c;D("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:ng(3,lAa));Uf("aria-labelledby",Yo(a))}},oAa=function(a){if(a&1){var b=v();E(0,"b-bulk-repeated-field-picker",20);M("onSave",function(e){w(b);var f=N(2).$implicit,h=N();return z(nAa(h,f.customFieldId,e))});G()}if(a&2){a=N(2).$implicit;var c=N(),d;D("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&
void 0!==d?d:ng(3,lAa))}},pAa=function(a){a&1&&(I(0,10),P(1,hAa,1,2,"input",11),P(2,iAa,1,2,"input",12),P(3,kAa,2,4,"div",13),P(4,mAa,1,4,"onedev-single-select",14),P(5,oAa,1,4,"b-bulk-repeated-field-picker",15),L());if(a&2){a=N().$implicit;var b=N();D("ngSwitch",b.getCustomFieldType(a));A(1);D("ngSwitchCase","TEXT");A(1);D("ngSwitchCase","NUMERIC");A(1);D("ngSwitchCase","DATE");A(1);D("ngSwitchCase","ENUM")}},qAa=function(a){if(a&1){var b=v();E(0,"span");Q(1," Multiple values ");G();E(2,"a",21);
M("click",function(){w(b);var c=N().$implicit,d=N();return z(d.clearCustomFieldValue(c))});Q(3,"X");G()}},rAa=function(a,b){a&1&&(E(0,"div",5)(1,"div",6)(2,"label",7),Q(3),P(4,gAa,2,0,"span",1),G()(),P(5,pAa,6,5,"ng-template",8),P(6,qAa,4,0,"ng-template",null,9,Hg),G());if(a&2){a=b.$implicit;var c=O(7);N();A(2);D("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]");Uf("id",Yo(a));A(1);T(" ",a.name," ");A(1);D("ngIf",a.required);A(1);D("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},sAa=function(a){a&
1&&H(0,"img",9);a&2&&(a=N(),D("src",a.person.imageUrl,le)("alt",a.person.name+"'s profile picture"))},tAa=function(a){a&1&&(E(0,"div",10),Q(1),G());a&2&&(a=N(),A(1),T(" ",a.person.email," "))},uAa=function(a){a&1&&(E(0,"div",11)(1,"onedev-chip",12),H(2,"mat-icon",13),Q(3),G()());a&2&&(a=N(),A(3),T("",a.outOfOfficeDescription," "))},vAa=function(a){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=N(2),A(1),kg(a.person.title))},wAa=function(a){a&1&&H(0,"li",18)},xAa=function(a){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=N(2),
A(1),kg(a.person.department))},yAa=function(a){a&1&&(I(0),H(1,"mat-icon",14),E(2,"div",15)(3,"ul",16),P(4,vAa,2,1,"li",8),P(5,wAa,1,0,"li",17),P(6,xAa,2,1,"li",8),G()(),L());a&2&&(a=N(),A(4),D("ngIf",a.person.title),A(1),D("ngIf",a.person.title&&a.person.department),A(1),D("ngIf",a.person.department))},zAa=function(a){a&1&&(I(0),H(1,"mat-icon",19),E(2,"div",15),Q(3),G(),L());a&2&&(a=N(),A(3),kg(a.person.location))},AAa=function(a){a&1&&(E(0,"li")(1,"a",21),Q(2,"Teams"),G()());a&2&&(a=N(2),A(1),D("href",
"https://moma.corp.google.com/person/"+a.person.ldap,le))},BAa=function(a){a&1&&H(0,"li",18)},CAa=function(a){a&1&&(I(0),H(1,"mat-icon",20),E(2,"div",15)(3,"ul",16),P(4,AAa,3,1,"li",8),P(5,BAa,1,0,"li",17),E(6,"li")(7,"a",21),Q(8,"Whostory"),G()(),H(9,"li",18),E(10,"li")(11,"a",21),Q(12,"Calendar"),G()(),H(13,"li",18),E(14,"li")(15,"a",21),Q(16,"CLs"),G()(),H(17,"li",18),E(18,"li")(19,"a",21),Q(20,"Readability"),G()()()(),L());a&2&&(a=N(),A(4),D("ngIf",a.person.title||a.person.department),A(1),D("ngIf",
a.person.title||a.person.department),A(2),D("href","https://whostory.corp.google.com/"+a.person.ldap,le),A(4),D("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",le),A(4),D("href","https://critique.corp.google.com/"+a.person.ldap,le),A(4),D("href","https://icanread.corp.google.com/s/"+a.person.ldap,le))},DAa=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},EAa=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}},FAa=function(a,b,c){c=void 0===c?{}:c;b=n(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=n(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},GAa=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},HAa=function(a,b){return Zo(b,a)},IAa=function(a,b,c){b[a]=c},JAa=function(){return{}},NAa=function(a,b){var c=new a;return null==
b?c:$o(b,KAa,LAa,MAa,a)},KAa=function(a,b){return b[a]},LAa=function(a,b,c){b.Serializable$values[a]=c},MAa=function(a){if(null==a)throw Error("gd");return new a},$o=function(a,b,c,d,e){e=d(e);for(var f=OAa(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},t={},x=n(f.keys||[]),y=x.next();!y.done;t={$jscomp$loop$prop$mapMetadata$1947:t.$jscomp$loop$prop$mapMetadata$1947},y=x.next()){y=y.value;var F=b(y,a);if(null!=F){var K=void 0;if(h.hasOwnProperty(y)){if(f.emptyArrayIsUnset&&0===F.length)continue;
K=ap(F,b,c,d,!0,!0,h[y])}else if(k.hasOwnProperty(y))K=ap(F,b,c,d,!1,!0,k[y]);else if(q.hasOwnProperty(y))t.$jscomp$loop$prop$mapMetadata$1947=q[y],K=t.$jscomp$loop$prop$mapMetadata$1947.isPropertyArray?F.map(function(J){return function(R){return PAa(R,J.$jscomp$loop$prop$mapMetadata$1947,b,c,d)}}(t)):PAa(F,t.$jscomp$loop$prop$mapMetadata$1947,b,c,d);else if(Array.isArray(F)){if(f.emptyArrayIsUnset&&0===F.length)continue;K=ap(F,b,c,d,!0,!1)}else K=F;c(y,e,K)}}return e},PAa=function(a,b,c,d,e){for(var f=
{},h=n(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];null!=q&&(f[k]=ap(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},ap=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 $o(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?$o(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):a;return k},OAa=function(a,b){if(b instanceof bp)a=GAa(b.getPartialClassMetadata());else if(a instanceof bp)a=
GAa(a.getPartialClassMetadata());else throw Error("id");return a},RAa=function(a){return a&&QAa.test(a)?a.split("@")[0]:""},SAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},TAa=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},UAa=function(a,b){a&1&&(E(0,"onedev-person-hovercard-body",1),U(1,"async"),gg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),
gg(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),G());a&2&&(a=b.ngIf,b=N(),D("person",a)("outOfOfficeDescription",V(1,2,b.outOfOfficeDescription$)))},VAa=function(a){a&1&&(E(0,"onedev-person-hovercard",1,2),gg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),G());if(a&2){var b=O(1);a=N();D("email",a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},WAa=function(a){a&1&&cg(0)},XAa=function(a){a&1&&(I(0),E(1,"span",2),
P(2,WAa,1,0,"ng-container",3),G(),E(3,"onedev-hovercard",null,4),H(5,"b-person-card",5),G(),L());if(a&2){var b=O(4);a=N();var c=O(2);A(1);D("onedevHovercardTrigger",b)("onedevHovercardActive",!!a.email);A(1);D("ngTemplateOutlet",c);A(3);D("email",a.email)}},YAa=function(a){a&1&&gg(0)},ZAa=function(a,b){a&1&&(E(0,"div",1),qd(),E(1,"svg",2)(2,"g"),H(3,"path",3),G()(),rd(),E(4,"span",4),Q(5),G()());a&2&&(a=b.ngIf,Uf("aria-label",a)("title",a),A(5),kg(a))},$Aa=function(a){a&1&&H(0,"waldo-availability-chip",
1);a&2&&(a=N(),D("user",a.user),Uf("coinonly",a.coinonly))},aBa=function(a){return a.retentionPeriod&&(a=Eqa(a.retentionPeriod))?Wo(Math.floor(1E3*a.getSeconds()/864E5)):"indefinite"},cp=function(a){return"string"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},bBa=function(a,b){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=b.$implicit,A(1),kg(a))},cBa=function(a,b,c,d){c&&vj(c,Cj,3)&&(vj(c,Cj,2)?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},dBa=function(a,b){a=Ub(a.sloBounds,
Cj,3).getSeconds();b=Ub(b.sloBounds,Cj,3).getSeconds();return a-b},dp=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},ep=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},eBa=function(a,b){return ep([].concat(r(a.keys())),function(c){return b(a.get(c))})},fBa=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0,variations:new Set}},fp=function(a){return a?ia(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},gp=function(a){return a.customFieldValue?
String(a.customFieldValue.customFieldId):a.fieldName},iBa=function(a){if(a&1){var b=v();I(0,3);E(1,"onedev-hovercard-action",4);M("onAction",function(){w(b);var e=N();return z(gBa(e))});U(2,"async");E(3,"span");Q(4);G()();E(5,"onedev-hovercard-action",4);M("onAction",function(){w(b);var e=N();return z(hBa(e))});U(6,"async");E(7,"span");Q(8);G()();L()}if(a&2){a=N();var c,d;A(1);D("disabled",null!==(c=V(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);A(3);kg(a.email!==a.currentAssignee?"Set as assignee":
"Remove assignee");A(1);D("disabled",null!==(d=V(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);A(3);kg(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},jBa=function(a){a&1&&(I(0),H(1,"b-availability-chip",3),L());a&2&&(a=N(2).ngIf,A(1),D("user",a.email))},kBa=function(a){a&1&&(I(0),Q(1),L(),P(2,jBa,2,1,"ng-container",0));if(a&2){a=N().ngIf;var b=N();A(1);kg(a.content);A(1);D("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},lBa=function(a){a&1&&cg(0)},mBa=function(a){a&
1&&(I(0),E(1,"span",4),P(2,lBa,1,0,"ng-container",5),G(),E(3,"onedev-hovercard",null,6),H(5,"b-issue-person-card",7),G(),L());if(a&2){var b=O(4);a=N().ngIf;var c=O(2),d=N();A(1);D("onedevHovercardTrigger",b);Uf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);A(1);D("ngTemplateOutlet",c);A(3);D("email",a.email)}},nBa=function(a,b){a&1&&(I(0),P(1,kBa,3,2,"ng-template",null,1,Hg),P(3,mBa,6,4,"ng-container",2),L());if(a&2){a=b.ngIf;var c=O(2);b=N();A(3);D("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",
c)}},oBa=function(a){a&1&&H(0,"b-user-display-name",2);a&2&&(a=N(),D("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},pBa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),A(1),kg(a.getDisplayString()))},qBa=function(a){a&1&&cg(0)},rBa=function(a){a&1&&(I(0),E(1,"span",3),P(2,qBa,1,0,"ng-container",4),G(),E(3,"onedev-hovercard",null,5),H(5,"b-issue-person-card",6),G(),L());if(a&2){var b=O(4);
a=N().ngIf;var c=O(3);A(1);D("onedevHovercardTrigger",b);A(1);D("ngTemplateOutlet",c);A(3);D("email",a.email)}},sBa=function(a){a&1&&H(0,"img",9);a&2&&(a=N(2).ngIf,D("src",a.src,le)("srcset",a.srcset))},tBa=function(a){a&1&&(E(0,"span",7),P(1,sBa,1,2,"img",8),G());a&2&&(a=N().ngIf,Zf("anonymous",!a.showImage),A(1),D("ngIf",a.showImage))},uBa=function(a,b){a&1&&(I(0),P(1,rBa,6,3,"ng-container",1),P(2,tBa,2,3,"ng-template",null,2,Hg),L());if(a&2){a=b.ngIf;var c=O(3);b=N();A(1);D("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",
c)}},vBa=function(a){a&1&&(E(0,"div",8),H(1,"b-spinner"),G())},wBa=function(a){a&1&&H(0,"code",22);a&2&&(a=N(2).$implicit,N(2),D("innerHtml",ck(a.formattingModeDiff),ke))},xBa=function(a){a&1&&(E(0,"code",23),Q(1),G());a&2&&(a=N(2).$implicit,A(1),T(" ",a.formattingMode," "))},yBa=function(a){a&1&&(E(0,"p",19),Q(1," Formatting: "),P(2,wBa,1,1,"code",20),P(3,xBa,2,1,"code",21),G());a&2&&(a=N(3),A(2),D("ngIf",a.diffView),A(1),D("ngIf",!a.diffView))},zBa=function(a){if(a&1){var b=v();E(0,"div")(1,"span",
24)(2,"b-person-hovercard",25);U(3,"omitObfuscatedEmail");Q(4);U(5,"appendDomain");G()();E(6,"a",26);M("click",function(c){w(b);var d=N().$implicit,e=N(2);d=d.version;c.stopPropagation();c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return z()});Q(7);G()()}a&2&&(a=N().$implicit,N(2),A(2),D("email",V(3,5,Ul(a.lastEditorUser))),A(2),T(" <",V(5,7,Ul(a.lastEditorUser)),"> "),A(2),Wf("aria-label","Comment version ",a.version,""),hg("id","bv2-edit-issue-comment-",
a.version,""),A(1),T(" #",a.version,""))},ABa=function(a){a&1&&(E(0,"div",30),Q(1),G());a&2&&(a=N(2).$implicit,A(1),kg(a.preview))},BBa=function(a){a&1&&(E(0,"div",31),Q(1,"Comment deleted."),G())},CBa=function(a){a&1&&(E(0,"div",32),Q(1,"Comment history restricted."),G())},DBa=function(a){a&1&&(I(0),P(1,ABa,2,1,"div",27),P(2,BBa,2,0,"div",28),P(3,CBa,2,0,"div",29),L());a&2&&(a=N().$implicit,A(1),D("ngIf",!a.restricted&&!a.deleted),A(1),D("ngIf",!a.restricted&&a.deleted),A(1),D("ngIf",a.restricted))},
EBa=function(a){a&1&&(E(0,"div",35),Q(1,"Comment deleted."),G())},FBa=function(a){a&1&&(E(0,"div",36),U(1,"async"),G());if(a&2){a=N(2).$implicit;var b=N(2);Zf("codefont",V(1,3,b.codefont.codefont$));D("innerHtml",a.unlinkifiedComment,ke)}},GBa=function(a){a&1&&(E(0,"div",36),U(1,"async"),G());if(a&2){a=N(2).$implicit;var b=N(2);Zf("codefont",V(1,3,b.codefont.codefont$));D("innerHtml",ck(a.diff),ke)}},HBa=function(a){a&1&&(E(0,"div",32),Q(1," This comment is not available due to present or past restrictions on the comment. "),
G())},IBa=function(a){a&1&&(I(0),P(1,EBa,2,0,"div",33),P(2,FBa,2,5,"div",34),P(3,GBa,2,5,"div",34),P(4,HBa,2,0,"div",29),L());if(a&2){a=N().$implicit;var b=N(2);A(1);D("ngIf",!a.restricted&&a.deleted);A(1);D("ngIf",!b.diffView&&!a.restricted&&!a.deleted);A(1);D("ngIf",b.diffView&&!a.restricted&&!a.deleted);A(1);D("ngIf",a.restricted)}},JBa=function(a,b){if(a&1){var c=v();E(0,"li",11)(1,"div",12);H(2,"b-user-image",13);G();E(3,"div",14);M("click",function(){var d=w(c).$implicit;return z(d.open=!d.open)});
H(4,"b-user-display",15)(5,"b-formatted-date-time",16);P(6,yBa,4,2,"p",17);P(7,zBa,8,9,"div",18);P(8,DBa,4,3,"ng-container",18);G();P(9,IBa,5,4,"ng-container",18);G()}a&2&&(a=b.$implicit,N(2),Zf("comment-version-open",a.open),A(2),D("email",Ul(a.lastEditorUser)),A(2),D("model",a.lastEditorUser),A(1),D("timestamp",a.lastModified),A(1),D("ngIf",!a.deleted),A(1),D("ngIf",a.open),A(1),D("ngIf",!a.open),A(1),D("ngIf",a.open))},KBa=function(a){a&1&&(E(0,"ul",9),P(1,JBa,10,9,"li",10),G());a&2&&(a=N(),A(1),
D("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},LBa=function(){},OBa=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=MBa?MBa:MBa=NBa(a)},PBa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},NBa=function(a){a=void 0===a?{}:a;var b;return Pe(function(c){if(1==c.nextAddress)return(b=window.gapi)&&b.client&&b.client.load?c.return(b):Re(c,QBa(hp(ip("https://apis.google.com/js/api.js")),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("md");
return b.client&&b.client.load?c.jumpTo(3):Re(c,PBa(),3)}return c.return(b)})},RBa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},SBa=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(jp.has(a))return jp.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){jp.delete(a)});jp.set(a,b);return b}return Promise.resolve()},TBa=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})},UBa=function(a){a&1&&H(0,"b-user-image",5);a&2&&(a=N(),D("email",a.email))},VBa=function(a){a&1&&cg(0)},WBa=function(a){a&1&&(I(0),E(1,"span",6),P(2,VBa,1,0,"ng-container",7),G(),E(3,"onedev-hovercard",null,8),H(5,"b-issue-person-card",9),G(),L());if(a&2){var b=O(4);a=N();var c=O(4);A(1);D("onedevHovercardTrigger",b);A(1);D("ngTemplateOutlet",c);A(3);
D("email",a.email)}},XBa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),A(1),kg(a.email))},YBa=function(a){a&1&&(E(0,"span",10),H(1,"b-availability-chip",11),G());a&2&&(a=N(),A(1),D("user",a.email))},ZBa=function(a){a&1&&H(0,"b-user-image",6);a&2&&(a=N(),D("email",a.email))},$Ba=function(a){a&1&&H(0,"b-user-display-name",7);a&2&&(a=N(),D("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},aCa=function(a){a&1&&cg(0)},bCa=function(a){a&1&&(I(0),E(1,"span",10),P(2,aCa,1,
0,"ng-container",11),G(),E(3,"onedev-hovercard",null,12),H(5,"b-issue-person-card",13),G(),L());if(a&2){var b=O(4);N();var c=O(2);a=N();A(1);D("onedevHovercardTrigger",b);A(1);D("ngTemplateOutlet",c);A(3);D("email",a.email)}},cCa=function(a){a&1&&(E(0,"span",14),Q(1),G());a&2&&(a=N(2),A(1),kg(a.email))},dCa=function(a){a&1&&(P(0,bCa,6,3,"ng-container",8),P(1,cCa,2,1,"ng-template",null,9,Hg));if(a&2){var b=O(2);a=N();D("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},eCa=function(a){a&1&&(H(0,
"mat-icon",15),U(1,"async"),U(2,"async"));if(a&2){a=N();var b,c;D("svgIcon",null!==(b=V(1,2,a.iconName$))&&void 0!==b?b:"")("matTooltip",null!==(c=V(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},fCa=function(a){a&1&&(I(0),H(1,"b-availability-chip",16),L());a&2&&(a=N(),A(1),D("user",a.email))},iCa=function(a,b){var c=new gCa;a=kp(c,a,b);hCa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Eo("SPAN",{"class":"diff-removed"},d);case 1:return Eo("SPAN",{"class":"diff-added"},d);case 0:return Eo("SPAN",
{"class":null},d);default:throw Error("od`"+e);}});return Fo(c)},jCa=function(a){var b;return"DELETED"===(null==(b=a.entityStatus)?void 0:b.status)},kCa=function(a){a&1&&cg(0)},lCa=function(a){if(a&1){var b=v();E(0,"div",3);M("mouseenter",function(){w(b);var c=N();return z(c.toggle(!0))})("mouseleave",function(){w(b);var c=N();return z(c.toggle(!1))})("mousemove",function(){w(b);N().activity.next();return z()});P(1,kCa,1,0,"ng-container",4);G()}a&2&&(a=N(),D("ngClass",a.bubbleStyle)("@fade",void 0),
A(1),D("ngTemplateOutlet",a.panelTemplate))},mCa=function(a){a&1&&(I(0),E(1,"span",3),Q(2),U(3,"toAccessLevelLabel"),G(),L());a&2&&(a=N(2),A(1),Zf("xs",a.compactMode),D("ngClass",a.chipClass),A(1),T(" ",rg(3,4,a.accessLevel,a.compactMode)," "))},nCa=function(a){a&1&&(E(0,"div",7),Q(1),E(2,"a",8),Q(3," Learn more"),G()());a&2&&(a=N(3),A(1),T(" ",a.bubbleText," "),A(1),D("href",lp(a.documentationLinks),le))},oCa=function(a){a&1&&(E(0,"xap-bubble",4)(1,"span",5),Q(2),U(3,"toAccessLevelLabel"),G(),P(4,
nCa,4,2,"ng-template",null,6,Hg),G());if(a&2){var b=O(5);a=N(2);D("panelTemplate",b);A(1);Zf("xs",a.compactMode);D("ngClass",a.chipClass);A(1);T(" ",rg(3,5,a.accessLevel,a.compactMode)," ")}},pCa=function(a){a&1&&(I(0),P(1,mCa,4,7,"ng-container",1),P(2,oCa,6,8,"ng-template",null,2,Hg),L());if(a&2){var b=O(3);a=N();A(1);D("ngIf",a.labelOnlyMode)("ngIfElse",b)}},qCa=function(a){a&1&&(E(0,"li")(1,"a",4),Q(2," Create an issue in this component"),G()());a&2&&(a=N(2),A(1),D("href",a.createIssueUrl,le))},
rCa=function(a,b){a&1&&(I(0),E(1,"h3"),Q(2),G(),E(3,"p"),Q(4),G(),H(5,"b-access-level-indicator",3),E(6,"p"),Q(7),G(),E(8,"ul")(9,"li")(10,"a",4),Q(11," View recent open issues"),G()(),P(12,qCa,3,1,"li",2),E(13,"li")(14,"a",4),Q(15," View component"),G()()(),L());a&2&&(a=b.ngIf,b=N(),A(2),kg(a.name),A(2),T("ID: ",b.componentId,""),A(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0),A(2),kg(a.description),A(3),D("href",b.recentIssuesUrl,le),A(2),D("ngIf",!b.isAnonymous),
A(2),D("href",b.viewComponentUrl,le))},sCa=function(a){a&1&&(E(0,"span",8),Q(1),G());a&2&&(a=N(),A(1),kg(a.placeholder))},tCa=function(a){a&1&&(E(0,"span",12),Q(1),G());a&2&&(a=N(2),A(1),kg(a.triggerValue))},uCa=function(a){a&1&&gg(0,0,["*ngSwitchCase","true"])},vCa=function(a){a&1&&(E(0,"span",9),P(1,tCa,2,1,"span",10),P(2,uCa,1,0,"ng-content",11),G());a&2&&(a=N(),D("ngSwitch",!!a.customTrigger),A(2),D("ngSwitchCase",!0))},wCa=function(a){if(a&1){var b=v();E(0,"div",13)(1,"div",14,15);M("@transformPanel.done",
function(c){w(b);var d=N();return z(d._panelDoneAnimatingStream.next(c.toState))})("keydown",function(c){w(b);var d=N();return z(d._handleKeydown(c))});gg(3,1);G()()}a&2&&(a=N(),D("@transformPanelWrap",void 0),A(1),bg("mat-select-panel ",a._getPanelTheme(),""),Yf("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),D("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":"showing"),Uf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||
null)("aria-labelledby",a._getPanelAriaLabelledby()))},xCa=function(a,b){a&1&&(E(0,"mat-option",19),Q(1),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",a," "))},yCa=function(a){if(a&1){var b=v();E(0,"mat-form-field",16)(1,"mat-select",17);M("selectionChange",function(c){w(b);var d=N(2);return z(d._changePageSize(c.value))});P(2,xCa,2,2,"mat-option",18);G()()}a&2&&(a=N(2),D("appearance",a._formFieldAppearance)("color",a.color),A(1),D("value",a.pageSize)("disabled",a.disabled)("panelClass",a.selectConfig.panelClass||
"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",a._intl.itemsPerPageLabel),A(1),D("ngForOf",a._displayedPageSizeOptions))},zCa=function(a){a&1&&(E(0,"div",20),Q(1),G());a&2&&(a=N(2),A(1),kg(a.pageSize))},ACa=function(a){a&1&&(E(0,"div",12)(1,"div",13),Q(2),G(),P(3,yCa,3,8,"mat-form-field",14),P(4,zCa,2,1,"div",15),G());a&2&&(a=N(),A(2),T(" ",a._intl.itemsPerPageLabel," "),A(1),D("ngIf",1<a._displayedPageSizeOptions.length),A(1),D("ngIf",1>=a._displayedPageSizeOptions.length))},
BCa=function(a){if(a&1){var b=v();E(0,"button",21);M("click",function(){w(b);var c=N();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return z()});qd();E(1,"svg",7);H(2,"path",22);G()()}a&2&&(a=N(),D("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),Uf("aria-label",a._intl.firstPageLabel))},CCa=function(a){if(a&1){var b=v();qd();rd();E(0,"button",23);M("click",
function(){w(b);var c=N();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return z()});qd();E(1,"svg",7);H(2,"path",24);G()()}a&2&&(a=N(),D("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),Uf("aria-label",a._intl.lastPageLabel))},DCa=function(a){if(a&1){var b=v();E(0,"mat-paginator",3);M("page",function(c){w(b);var d=N(),e=c.pageIndex*
c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return z()});G()}a&2&&(a=N(),D("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},ECa=function(a,b){if(a&1){var c=v();E(0,"li")(1,"a",4);M("click",function(){var e=w(c).$implicit,f=N();return z(f.onVisit.emit(e))});Q(2);G();E(3,"onedev-hovercard",null,5);H(5,"b-component-card",6);G()()}if(a&2){a=b.$implicit;var d=O(4);b=N();A(1);D("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId),
le);A(1);T(" ",a.name," ");A(3);D("componentId",a.componentId.toString())}},FCa=function(a){if(a&1){var b=v();E(0,"button",6);M("click",function(){w(b);var c=N();return z(c.onClickCopyIssueShortLinks.emit())});Q(1);G()}a&2&&(a=N(),A(1),T(" Copy '",a.shortLinkPrefix,"'' links "))},GCa=function(a,b){a&1&&(E(0,"span",5)(1,"a",6),Q(2),G(),E(3,"onedev-hovercard",null,7),H(5,"b-component-card",8),G()());if(a&2){a=b.$implicit;var c=O(4);A(1);D("onedevHovercardTrigger",c)("routerLinkObj",a.route);A(1);kg(a.name);
A(3);D("componentId",a.id.toString())}},HCa=function(a){a&1&&(E(0,"span",9),Q(1,"[Archived]"),G())},mp=function(a,b){b=void 0===b?ul: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}})},ICa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),kg(a.text))},JCa=function(a){a&1&&(E(0,"span"),H(1,"b-access-level-indicator",2),G());
a&2&&(a=N().$implicit,A(1),D("accessLevel",a.accessLevel))},KCa=function(a,b){a&1&&(E(0,"span"),P(1,ICa,2,1,"span",1),P(2,JCa,2,1,"span",1),G());a&2&&(a=b.$implicit,b=N(),A(1),D("ngIf",b.isText(a)),A(1),D("ngIf",!b.isText(a)))},LCa=function(a){if(a&1){var b=v();E(0,"div");H(1,"br");E(2,"mat-checkbox",8);M("ngModelChange",function(c){w(b);var d=N();return z(d.acknowledged=c)});G();E(3,"span");Q(4,"All information in this issue is suitable for external sharing.");G()()}a&2&&(a=N(),A(2),D("ngModel",
a.acknowledged))},MCa=function(a){if(a&1){var b=v();E(0,"button",9);M("click",function(){w(b);var c=N();return z(c.allow())});Q(1," Move Issue ");G()}a&2&&(a=N(),D("disabled",!a.acknowledged))},np=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]]}))})},op=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},NCa=function(a){a&1&&(I(0),Q(1," Trackers are distinct communities with their own branding. "),
L())},OCa=function(a){a&1&&(E(0,"a",12),Q(1,"Learn More"),G())},PCa=function(a){a&1&&(I(0),E(1,"button",1),H(2,"img",2)(3,"img",3),E(4,"span",4),Q(5),G()(),E(6,"onedev-hovercard",null,5)(8,"div",6)(9,"div",7)(10,"span",8),Q(11),P(12,NCa,2,0,"ng-container",0),G(),E(13,"div",9)(14,"a",10),Q(15),G(),P(16,OCa,2,0,"a",11),G()()()(),L());if(a&2){var b=O(7);a=N();A(1);Zf("xs",a.compactMode);D("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);A(1);D("src",a.logoLight,le);A(1);D("src",a.logoDark,
le);A(2);kg(a.name);A(6);T(" This component or issue is part of ",a.extendedName,". ");A(1);D("ngIf",!a.isGlobalBuganizer);A(2);D("href",a.redirectUrl,le);A(1);T("View ",a.extendedName,"");A(1);D("ngIf",!a.isGlobalBuganizer)}},QCa=function(a){a&1&&(H(0,"b-tracker-chip",1),U(1,"async"));a&2&&(a=N(),D("tracker",V(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},RCa=function(a){if(a&1){var b=v();E(0,"a",18);M("click",function(){w(b);
var c=N().$implicit,d=N();return z(d.showChildren(c))});H(1,"mat-icon",19);G()}},SCa=function(a){if(a&1){var b=v();E(0,"a",20);M("click",function(){w(b);var c=N().$implicit;return z(c.showChildren=!1)});H(1,"mat-icon",21);G()}},UCa=function(a){a&1&&(E(0,"a",22),Q(1," (Recent Issues) "),G());if(a&2){a=N().$implicit;var b=N();D("href",b.paths.listIssues(og(1,TCa,"status:open componentid:"+a.componentId)),le)}},VCa=function(a){a&1&&(E(0,"span"),Q(1,"[Archived]"),G())},WCa=function(a){a&1&&(E(0,"a",23),
Q(1," Create issue "),G());if(a&2){a=N().$implicit;var b=N();D("href",b.paths.createIssue()+"?component="+a.componentId,le)}},XCa=function(a){a&1&&(E(0,"div",28),Q(1," No child components found. "),G())},YCa=function(a){a&1&&(E(0,"div",29),H(1,"b-spinner"),G())},ZCa=function(a){if(a&1){var b=v();E(0,"component-subtree-list",30);M("childClosed",function(d){w(b);var e=N(3);return z(e.onSubtreeChildClosed(d))});G()}if(a&2){a=N(2).$implicit;var c=N();D("components",a.children)("parentComponent",a)("rootController",
c.rootController)("includeArchived",c.includeArchived)}},$Ca=function(a){a&1&&(E(0,"div",24),P(1,XCa,2,0,"div",25),P(2,YCa,2,0,"div",26),P(3,ZCa,1,4,"component-subtree-list",27),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.noChildren),A(1),D("ngIf",!(a.noChildren||a.children)),A(1),D("ngIf",a.children))},aDa=function(a,b){if(a&1){var c=v();E(0,"li",2);M("click",function(d){var e=w(c).$implicit,f=N();return z(f.setSelected(e.componentId,d))});E(1,"div",3);H(2,"div",4);E(3,"div",5);P(4,RCa,2,0,"a",6);
P(5,SCa,2,0,"a",7);G();E(6,"div",8)(7,"div")(8,"a",9);Q(9);G();P(10,UCa,2,3,"a",10);P(11,VCa,2,0,"span",11);H(12,"b-access-level-indicator",12)(13,"b-tracker-chip-smart",13);G();E(14,"div",14);Q(15);G()();E(16,"div",15);P(17,WCa,2,1,"a",16);G()();P(18,$Ca,4,3,"div",17);G()}a&2&&(a=b.$implicit,b=N(),hg("id","component-",a.componentId,""),A(4),D("ngIf",!a.showChildren),A(1),D("ngIf",a.showChildren),A(3),D("href",b.paths.viewComponent(a.componentId),le),A(1),T(" ",a.name," "),A(1),D("ngIf",!a.archived),
A(1),D("ngIf",a.archived),A(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),A(1),D("trackerId",a.trackerId),A(2),kg(a.description),A(2),D("ngIf",!a.archived),A(1),D("ngIf",a.showChildren))},bDa=function(a){if(a&1){var b=v();E(0,"a",18);M("click",function(){w(b);var c=N().$implicit,d=N();return z(d.showChildren(c))});H(1,"mat-icon",19);G()}},cDa=function(a){if(a&1){var b=v();E(0,"a",20);M("click",function(){w(b);var c=N().$implicit;return z(c.showChildren=!1)});H(1,"mat-icon",
21);G()}},eDa=function(a){a&1&&(E(0,"a",22),Q(1," (Recent Issues) "),G());if(a&2){a=N().$implicit;var b=N();D("href",b.paths.listIssues(og(1,dDa,"status:open componentid:"+a.componentId)),le)}},fDa=function(a){a&1&&(E(0,"span"),Q(1,"[Archived]"),G())},gDa=function(a){a&1&&(E(0,"a",23),Q(1," Create issue "),G());if(a&2){a=N().$implicit;var b=N();D("href",b.paths.createIssue()+"?component="+a.componentId,le)}},hDa=function(a){a&1&&(E(0,"div",28),Q(1," No child components found. "),G())},iDa=function(a){a&
1&&(E(0,"div",29),H(1,"b-spinner"),G())},jDa=function(a){if(a&1){var b=v();E(0,"component-subtree-list",30);M("childClosed",function(d){w(b);var e=N(3);return z(e.onSubtreeChildClosed(d))});G()}if(a&2){a=N(2).$implicit;var c=N();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},kDa=function(a){a&1&&(E(0,"div",24),P(1,hDa,2,0,"div",25),P(2,iDa,2,0,"div",26),P(3,jDa,1,4,"component-subtree-list",27),G());a&2&&(a=N().$implicit,A(1),
D("ngIf",a.noChildren),A(1),D("ngIf",!(a.noChildren||a.children)),A(1),D("ngIf",a.children))},lDa=function(a,b){if(a&1){var c=v();E(0,"li",2);M("click",function(d){var e=w(c).$implicit,f=N();return z(f.setSelected(e.componentId,d))});E(1,"div",3);H(2,"div",4);E(3,"div",5);P(4,bDa,2,0,"a",6);P(5,cDa,2,0,"a",7);G();E(6,"div",8)(7,"div")(8,"a",9);Q(9);G();P(10,eDa,2,3,"a",10);P(11,fDa,2,0,"span",11);H(12,"b-access-level-indicator",12)(13,"b-tracker-chip-smart",13);G();E(14,"div",14);Q(15);G()();E(16,
"div",15);P(17,gDa,2,1,"a",16);G()();P(18,kDa,4,3,"div",17);G()}a&2&&(a=b.$implicit,b=N(),D("id","component-"+a.componentId),A(4),D("ngIf",!a.showChildren),A(1),D("ngIf",a.showChildren),A(3),D("href",b.paths.viewComponent(a.componentId),le),A(1),T(" ",a.name," "),A(1),D("ngIf",!a.archived),A(1),D("ngIf",a.archived),A(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),A(1),D("trackerId",a.trackerId),A(2),kg(a.description),A(2),D("ngIf",!a.archived),A(1),D("ngIf",a.showChildren))},
pp=function(a){return(null!=a?a:[]).map(Jm)},qp=function(a){return(null!=a?a:[]).map(Km)},rp=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},tp=function(){var a=sp("gapi.config.get");if((a=rp(a&&a("googleapis.config/sessionIndex")))||(a=rp(ea.__X_GOOG_AUTHUSER))||(a=rp(sp("google.authuser"))))return a;var b=ea.location.href||"",c=mDa.exec(b);try{a=rp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=nDa.exec(b);try{a=rp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;
a=oDa.exec(b);return(a=rp(a&&a[1]))?a:""},pDa=function(){var a=sp("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=sp("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}},qDa=function(a){a=void 0===a?"":a;var b;if(!(b=pDa())){b=a;var c=void 0===c?tp():c;a={};var d=up([]);d&&(a.Authorization=d);b||(b=(b=sp("gapi.config.get"))&&
b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},rDa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=sp("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=sp("gapi.config.get"))&&
b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},tDa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return ea.setTimeout(c,b)})).then(function(){return sDa(a-1,2*b)})},sDa=function(a,b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=ea;try{do var d=c.gapi;while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return tDa(a,b);ea.gapi||(ea.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")})})},uDa=function(){var a=void 0===a?"":a;var b=void 0===b?tp():b;var c=sp("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)},vDa=function(a){return(new vp).setEventType(2).setRpcType(2).setLookupType(a)},wDa=function(a){a=Math.round(1E3*a);return isFinite(a)?a:null},yp=function(a,b,c,d){wp.call(this);this.initialized_=!1;this.title_=null;
this.cache_=b;this.id_=c;this.transport_=a;xDa(this.transport_,this.id_);d&&xp(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},yDa=function(a){var b={};if(a){a=n(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},ADa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return zDa(b.name,b.email)}).join(", "):""},DDa=function(a,b,c){var d=[];a&&(BDa("name",a.name,
b,d,c),BDa("phone",a.phone,b,d,c),BDa("photo",a.photo,b,d,c));return d.map(function(e){return new CDa(e)})},BDa=function(a,b,c,d,e){if(b){b=n(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,"CONTACT"!==sp("metadata.containerType",f)){var h=c,k=d,q=e,t=sp("metadata.encodedContainerId",f),x=sp("metadata.containerType",f);if(h.contains(t,x))var y=h.get(t,x)||0;else y=k.length,h.set(t,x,y),k.push({}),q.push(t);y=k[y];y[a]=y[a]||[];y[a].push(f)}}},FDa=function(a,b){if(a){a=EDa(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},GDa=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},HDa=function(a){this.query_=a;this.error_=0},Bp=function(a,b){b=a(b||IDa,void 0);a=zp().createElement("DIV");b=JDa(b);Ap(a,b);1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},JDa=function(a){if(La(a))if(a instanceof Cp){if(a.contentKind!==
Dp)throw Error("vd");a=Ah(a.toString())}else a=Co("zSoyz");else a=Co(String(a));return a},Fp=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?new Ep(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},KDa=function(a){a=a.getEmail();if(!a)return!1;for(var b=n(["-pager","+pager","-oncall","+oncall",
"lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(0<=a.indexOf(c.value))return!0;return!1},ODa=function(a,b,c){a=a.filter(LDa());if(!c)return a;c=c.map(function(d){return{contact:d,toString:function(){return d.text}}});b=MDa(new NDa(c),b,c.length);return a.concat(b.map(function(d){return d.contact}))},PDa=function(a){a&1&&(H(0,"div"),U(1,"lowercase"));a&2&&(a=N(3),bg("bv2-edit-icon ",V(1,3,a.type),""))},QDa=function(a){a&1&&(E(0,"div")(1,"label"),Q(2),G(),P(3,PDa,2,5,"div",10),G());a&2&&(a=N(2),bg("bv2-editable-title bv2-editable-title-",
a.name," flex-kids-x"),A(2),T(" ",a.title," "),A(1),D("ngIf",!a.readonly&&!a.disabled))},RDa=function(a){a&1&&cg(0)},SDa=function(a){if(a&1){var b=v();E(0,"div",14);M("menuClosed",function(){w(b);var e=N(2);return z(Gp(e,null,!1,!0))});P(1,RDa,1,0,"ng-container",15);G()}if(a&2){N();var c=O(6);N();var d=O(7);D("matMenuTriggerFor",d);A(1);D("ngTemplateOutlet",c)}},TDa=function(a){a&1&&cg(0)},UDa=function(a){a&1&&(E(0,"div",16),P(1,TDa,1,0,"ng-container",15),G());if(a&2){N();var b=O(6);A(1);D("ngTemplateOutlet",
b)}},VDa=function(a){a&1&&H(0,"b-user-membership-chip",25);a&2&&(a=N(5),D("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},WDa=function(a){a&1&&H(0,"b-user-image",26);a&2&&(a=N(5),D("email",a.value))},XDa=function(a){a&1&&(E(0,"span",27)(1,"b-person-hovercard",28),Q(2),G()());a&2&&(a=N(5),A(1),D("email",a.value),A(1),T(" ",a.getDisplayValue("--")," "))},YDa=function(a){a&1&&(I(0),E(1,"div",21),P(2,VDa,1,4,"b-user-membership-chip",22),P(3,WDa,1,1,"b-user-image",23),P(4,XDa,
3,2,"span",24),G(),L());a&2&&(a=N(4),A(2),D("ngIf",a.enableTeamAnnotations&&!!a.value),A(1),D("ngIf",!a.enableTeamAnnotations&&!!a.value),A(1),D("ngIf",!a.enableTeamAnnotations))},ZDa=function(a){a&1&&(E(0,"div"),P(1,YDa,5,3,"ng-container",3),G());a&2&&(a=N(3),A(1),D("ngIf",a.isUser))},$Da=function(a){a&1&&H(0,"b-truncated-span",33);a&2&&(a=N(4),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},aEa=function(a){a&1&&H(0,"b-truncated-span",34);a&2&&(a=N(4),D("ngClass",
a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},bEa=function(a){a&1&&H(0,"b-truncated-span",33);a&2&&(a=N(4),bg("chippy status-",a.convertIssueStatusStrToTag(a.value),""),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},cEa=function(a){a&1&&H(0,"div",35)},dEa=function(a){a&1&&(E(0,"div"),P(1,$Da,1,3,"b-truncated-span",29),P(2,aEa,1,4,"b-truncated-span",30),P(3,bEa,1,6,"b-truncated-span",31),P(4,cEa,1,0,"div",
32),G());a&2&&(a=N(3),A(1),D("ngIf","Priority"!==a.title&&"Status"!==a.title),A(1),D("ngIf","Priority"===a.title),A(1),D("ngIf","Status"===a.title),A(1),D("ngIf",!a.title&&!a.readonly&&!a.disabled))},eEa=function(a){a&1&&(E(0,"div",36),H(1,"mat-icon",37),G())},fEa=function(a){a&1&&(E(0,"div",38),H(1,"mat-icon",39),G())},hEa=function(a){if(a&1){var b=v();E(0,"div",17,18);M("keydown",function(c){w(b);var d=N(2);return z(gEa(d,c))})("click",function(c){w(b);var d=N(2);return z(Gp(d,c,!0,!1))});P(2,ZDa,
2,1,"div",3);P(3,dEa,5,4,"div",3);P(4,eEa,2,0,"div",19);P(5,fEa,2,0,"div",20);G()}a&2&&(a=N(2),Zf("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),A(2),D("ngIf",a.isUser),A(1),D("ngIf",!a.isUser),A(1),D("ngIf","ENUM"!=a.type),A(1),D("ngIf","ENUM"==a.type))},iEa=function(a){if(a&1){var b=v();E(0,"div",8,9);M("click",function(c){w(b);var d=N();return z(Gp(d,c,!0,!1))})("keydown",function(c){w(b);var d=N();return z(gEa(d,c))});P(2,QDa,4,5,"div",10);P(3,SDa,2,2,"div",11);P(4,UDa,
2,1,"div",12);P(5,hEa,6,8,"ng-template",null,13,Hg);G()}a&2&&(a=N(),bg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,""),Zf("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),Xf("aria-label","",a.title," value is ",a.getDisplayValue("empty"),""),D("matTooltip",a.getTooltip()),Uf("aria-disabled",!1),A(2),D("ngIf",a.title),A(1),D("ngIf","ENUM"===a.type),A(1),D("ngIf","ENUM"!==a.type))},jEa=function(a){if(a&1){var b=v();E(0,"div",43);M("click",function(){w(b);var c=N(2);return z(c.setFieldValue(!c.value))});
E(1,"label");Q(2);G()()}a&2&&(a=N(2),bg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),A(2),kg(a.title))},lEa=function(a){if(a&1){var b=v();E(0,"div",40);P(1,jEa,3,4,"div",41);E(2,"b-slide-toggle",42);M("modelChange",function(){w(b);var d=N();return z(d.setFieldValue(!d.value))});G()()}if(a&2){a=N();var c;bg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");D("ngClass",pg(10,kEa,a.disabled,a.readonly))("matTooltip",a.getTooltip());Uf("aria-disabled",!1);A(1);D("ngIf",
a.title);A(1);D("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&void 0!==c?c:void 0)}},mEa=function(a){a&1&&H(0,"b-availability-chip",45);a&2&&(a=N(2),D("user",a.value))},nEa=function(a){a&1&&(I(0),P(1,mEa,1,1,"b-availability-chip",44),L());a&2&&(a=N(),A(1),D("ngIf",a.value&&a.enableWaldoAvailability))},oEa=function(a){if(a&1){var b=v();E(0,"button",48);M("click",function(){w(b);var c=N(2);return z(c.clearFieldValue())});E(1,"span",49);H(2,"mat-icon",50);G();Q(3,
" \u00a0 ");G()}a&2&&(a=N(2),Zf("b-menu-item-checked",null==a.value),D("disabled",null==a.value))},pEa=function(a,b){if(a&1){var c=v();E(0,"button",51);M("click",function(){var d=w(c).$implicit,e=N(2);return z(e.setFieldValue(d.value))});E(1,"span",49);H(2,"mat-icon",50);G();Q(3);G()}a&2&&(a=b.$implicit,b=N(2),Zf("b-menu-item-checked",b.value==a.value),D("disabled",b.value==a.value)("matTooltip",a.altText||""),Uf("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),A(3),
T(" ",a.displayText," "))},qEa=function(a){a&1&&(P(0,oEa,4,3,"button",46),P(1,pEa,4,7,"button",47));a&2&&(a=N(),D("ngIf",a.clearable),A(1),D("ngForOf",a.choices))},rEa=function(a){a&1&&cg(0)},sEa=function(a){a&1&&cg(0)},tEa=function(a){if(a&1){var b=v();E(0,"div",43);M("click",function(d){return d.stopPropagation()});E(1,"b-date-time-picker-content",57);M("dateSelectionChange",function(d){w(b);var e=N(2);return z(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){w(b);var d=N(2);
return z(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){w(b);var d=N(2);return z(Gp(d,null,!1,!1))});G()()}if(a&2){a=N(2);var c;A(1);D("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==c?c:void 0)}},vEa=function(a){if(a&1){var b=v();E(0,"textarea",66);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.textBuffer=c)})("keydown",function(c){w(b);var d=N(4);return z(uEa(d,c))});G()}a&2&&(a=N(4),D("ngModel",a.textBuffer),Uf("aria-label",a.title))},
xEa=function(a){if(a&1){var b=v();E(0,"input",67);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.textBuffer=c)})("keydown",function(c){w(b);var d=N(4);return z(wEa(d,c))});G()}a&2&&(a=N(4),D("ngModel",a.textBuffer),Uf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},yEa=function(a){a&1&&(E(0,"div"),P(1,vEa,1,2,"textarea",64),P(2,xEa,1,3,"input",65),G());a&2&&(a=N(3),A(1),D("ngIf",a.multiline),A(1),D("ngIf",!a.multiline))},zEa=function(a){if(a&1){var b=v();E(0,"textarea",
70);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.textBuffer=c)})("keydown",function(c){w(b);var d=N(4);return z(uEa(d,c))})("autocompleteActive",function(c){w(b);var d=N(4);return z(d.autocompleteActive=c)});G()}a&2&&(a=N(4),D("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),Uf("aria-label",a.title))},AEa=function(a){if(a&1){var b=v();E(0,"input",71);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.textBuffer=c)})("keydown",function(c){w(b);var d=N(4);return z(wEa(d,c))})("autocompleteActive",
function(c){w(b);var d=N(4);return z(d.autocompleteActive=c)});G()}a&2&&(a=N(4),D("ngModel",a.textBuffer)("bContactAutocomplete","SINGLE"),Uf("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},BEa=function(a){a&1&&(E(0,"div"),P(1,zEa,1,3,"textarea",68),P(2,AEa,1,4,"input",69),G());a&2&&(a=N(3),A(1),D("ngIf",a.multiline),A(1),D("ngIf",!a.multiline))},DEa=function(a){if(a&1){var b=v();E(0,"div",58);M("click",function(c){return c.stopPropagation()});P(1,yEa,3,2,"div",3);P(2,BEa,3,2,"div",
3);E(3,"div",59)(4,"button",60);M("click",function(){w(b);var c=N(2);return z(CEa(c))});H(5,"mat-icon",61);G();E(6,"button",62);M("click",function(c){w(b);var d=N(2);return z(Gp(d,c,!1,!0))});H(7,"mat-icon",63);G()();E(8,"div",36);H(9,"mat-icon",37);G()()}a&2&&(a=N(2),A(1),D("ngIf",!a.isUser),A(1),D("ngIf",a.isUser),A(2),Wf("aria-label","Apply change to ",a.title,""),hg("matTooltip","Apply change to ",a.title,""),D("disabled",a.value==a.textBuffer),A(2),Wf("aria-label","Discard change to ",a.title,
""),hg("matTooltip","Discard change to ",a.title,""))},EEa=function(a){a&1&&(E(0,"div",52,53),P(2,rEa,1,0,"ng-container",54),P(3,sEa,1,0,"ng-container",54),P(4,tEa,2,2,"div",55),P(5,DEa,10,7,"div",56),G());a&2&&(a=N(),bg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),D("ngSwitch",a.type),A(2),D("ngSwitchCase","ENUM"),A(1),D("ngSwitchCase","BOOL"),A(1),D("ngSwitchCase","DATE"))},FEa=function(a){var b;return{changelistNumbers:null!=(b=Li(a,1))?b:[]}},GEa=function(a){var b;
return{author:a.getAuthor(),description:a.getDescription(),pending:oj(a,3),timestamp:a.getTimestamp(),affectedFiles:null!=(b=Ki(a,5))?b:[]}},HEa=function(a,b){a&1&&(E(0,"span",9),Q(1," by "),H(2,"b-user-display-name",10),G());a&2&&(a=b.ngIf,A(2),D("email",a)("hovercardEnabled",!1))},IEa=function(a,b){a&1&&(E(0,"div")(1,"span"),Q(2),G(),H(3,"b-formatted-date-time",11),G());a&2&&(a=b.ngIf,b=N().ngIf,A(2),kg(b.pending?"Created on: ":"Submitted on: "),A(1),D("timestamp",a))},JEa=function(a,b){a&1&&(I(0),
H(1,"br"),Q(2),L());a&2&&(a=b.$implicit,A(2),T("",a," "))},KEa=function(a,b){a&1&&(I(0),E(1,"div",3)(2,"a",4),Q(3," CL "),E(4,"span"),Q(5),G()(),P(6,HEa,3,2,"span",5),H(7,"br")(8,"br"),P(9,IEa,4,2,"div",2),E(10,"div",6),H(11,"div",7)(12,"br"),E(13,"div"),Q(14," Affected files: "),P(15,JEa,3,1,"ng-container",8),G()()(),L());a&2&&(a=b.ngIf,b=N(),A(2),D("href","http://critique.corp.google.com/"+b.changelistId,le),A(3),kg(b.changelistId),A(1),D("ngIf",a.author),A(3),D("ngIf",a.timestamp),A(2),D("innerHTML",
a.description,ke),A(4),D("ngForOf",a.affectedFiles))},LEa=function(a){a&1&&H(0,"b-changelist-card",3,4);if(a&2){var b=O(1);a=N();D("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},MEa=function(a){if(a&1){var b=v();E(0,"a",15);M("click",function(){w(b);var c=N();return z(c.trackClick("viewTeamAssociationOnComponent"))});E(1,"button",11);Q(2,"View team association on component");G()()}a&2&&(a=N(),D("href",a.manageComponentLink(),le))},NEa=function(a){if(a&1){var b=v();E(0,"a",6);M("click",
function(){w(b);var d=N(2);return z(d.trackClick("viewTeamInMoma"))});E(1,"span");Q(2);H(3,"mat-icon",7);G()()}if(a&2){a=N(2);var c=O(3);hg("href","https://moma.corp.google.com/team/",a.teamId,"",le);D("onedevHovercardTrigger",c);Uf("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");A(1);Uf("id",a.teamLinkId);A(1);T("",a.teamName?a.teamName:a.teamId," ")}},OEa=function(a){a&1&&(E(0,"span",8),Q(1),G());if(a&2){a=N(2);var b=O(3);D("onedevHovercardTrigger",
b);A(1);kg(a.teamName?a.teamName:a.teamId)}},PEa=function(a){a&1&&(I(0),P(1,NEa,4,6,"a",4),P(2,OEa,2,2,"span",5),L());a&2&&(a=N(),A(1),D("ngIf",a.anchorLinkEnabled),A(1),D("ngIf",!a.anchorLinkEnabled))},QEa=function(a){a&1&&H(0,"span",11)},REa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(2),A(1),kg(a.teamNotAssignedMessage))},SEa=function(a){a&1&&(P(0,QEa,1,0,"span",9),P(1,REa,2,1,"span",10));a&2&&(a=N(),D("ngIf","0"!=a.teamId),A(1),D("ngIf","0"==a.teamId))},TEa=function(a){a&1&&H(0,"b-icon",
7);a&2&&(a=N(),D("name",a.iconName))},UEa=function(a){a&1&&(E(0,"span",8),Q(1),G());a&2&&(a=N(),A(1),kg(a.title))},VEa=function(a){a&1&&(E(0,"div",9),Q(1,"\u00a0"),G())},WEa=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}},XEa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},Hp=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},YEa=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},bFa=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?ZEa(a,b):("input"===d||"select"===d||"textarea"===d)&&$Ea(a,b);aFa("canvas",a,b,ZEa);aFa("input, textarea, select",a,b,$Ea);return b},aFa=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])},$Ea=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+cFa++)},ZEa=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},dFa=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)}},Ip=function(a,b){var c=b?"":"none";dFa(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})},fFa=function(a,b){dFa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},eFa)},Jp=function(a,b){return b&&"none"!=b?a+" "+b:a},gFa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},iFa=function(a){a=getComputedStyle(a);var b=hFa(a,"transition-property"),c=b.find(function(d){return"transform"===d||
"all"===d});if(!c)return 0;b=b.indexOf(c);c=hFa(a,"transition-duration");a=hFa(a,"transition-delay");return gFa(c[b])+gFa(a[b])},hFa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},Kp=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},Lp=function(a){return"t"===a.type[0]},jFa=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},kFa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=Kp(b.left,b.top)},Mp=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}},lFa=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},mFa=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},nFa=function(a){a&1&&
(E(0,"label",16),Q(1),G());a&2&&(a=N(),Uf("aria-label",a.title),A(1),T(" ",a.title," "))},pFa=function(a,b){a&1&&(E(0,"div",20),cg(1,21),G());if(a&2){a=b.$implicit;b=b.index;N(2);var c=O(13);A(1);D("ngTemplateOutletContext",pg(2,oFa,a,b))("ngTemplateOutlet",c)}},rFa=function(a){a&1&&(E(0,"collapsible-panel",17),P(1,pFa,2,5,"div",18),cg(2,19),G());if(a&2){a=N();var b=O(15);D("isExpanded",a.isExpanded)("iconName",a.iconName)("hasCompactTitleBar",!0)("title",a.collapsiblePanelTitle);A(1);D("ngForOf",
qFa(a))("ngForTrackBy",a.trackByIndex);A(1);D("ngTemplateOutlet",b)}},sFa=function(a,b){a&1&&(E(0,"div",20),cg(1,21),G());if(a&2){a=b.$implicit;b=b.index;N(2);var c=O(13);A(1);D("ngTemplateOutletContext",pg(2,oFa,a,b))("ngTemplateOutlet",c)}},tFa=function(a){a&1&&(E(0,"div"),Q(1,"--"),G())},uFa=function(a){a&1&&(I(0),P(1,sFa,2,5,"div",18),cg(2,19),P(3,tFa,2,0,"div",6),L());if(a&2){a=N();var b=O(15);A(1);D("ngForOf",qFa(a))("ngForTrackBy",a.trackByIndex);A(1);D("ngTemplateOutlet",b);A(1);D("ngIf",
!(null==a.values?0:a.values.length))}},xFa=function(a){if(a&1){var b=v();E(0,"button",26);M("menuOpened",function(){w(b);var d=N(2);vFa(d);d.enumPendingValues=new Set(d.values||[]);return z()})("menuClosed",function(){w(b);var d=N(2);return z(wFa(d))});Q(1,"Edit ");G()}if(a&2){a=N(2);var c=O(17);Wf("aria-label","Add item to ",a.title,"");D("matMenuTriggerFor",c)}},yFa=function(a){a&1&&(E(0,"button",27),Q(1,"Add "),G());if(a&2){a=N(2);var b=O(22);Wf("aria-label","Add item to ",a.title,"");D("xapInlineDialogClick",
b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},zFa=function(a){if(a&1){var b=v();E(0,"button",28);M("beforeOpened",function(){w(b);var d=N(2);return z(d.invalidMessage="")});Q(1,"Add ");G()}if(a&2){a=N(2);var c=O(20);Wf("aria-label","Add item to ",a.title,"");hg("matTooltip","Add item to ",a.title,"");D("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},AFa=function(a){a&1&&(I(0,22),P(1,xFa,2,2,"button",23),P(2,yFa,2,3,"button",24),P(3,zFa,2,4,"button",25),L());a&2&&(a=N(),
D("ngSwitch",a.type),A(1),D("ngSwitchCase","REPEATED_ENUM"),A(1),D("ngSwitchCase","REPEATED_DATE"))},BFa=function(a){a&1&&(E(0,"div"),H(1,"b-changelist-link",39),G());if(a&2){a=N(2).item;var b=N();A(1);D("changelistId",b.asNumber(a))}},CFa=function(a){a&1&&(E(0,"div")(1,"a",40),Q(2),G()());if(a&2){a=N(3).item;var b=N();A(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"}D("href",
b+"/"+a.workspaceId+"/work_item/b/"+a.issueId,le);Uf("aria-label","Workspace"+a.workspaceId);A(1);T(" ",a.workspaceName," ")}},DFa=function(a){a&1&&P(0,CFa,3,3,"div",32);if(a&2){N();var b=O(6);N();a=N();D("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},EFa=function(a){a&1&&(E(0,"div"),H(1,"b-team-display",41),G());a&2&&(a=N(3).item,A(1),D("teamId",a.teamId)("componentId",a.componentId))},FFa=function(a){a&1&&P(0,EFa,2,2,"div",32);if(a&2){N();var b=O(8);N();a=N();D("ngIf","TEAM"===a.type)("ngIfElse",
b)}},GFa=function(a){if(a&1){var b=v();E(0,"div")(1,"a",42);M("click",function(){w(b);var c=N(4);return z(c.trackClick("postmortem"))});Q(2);G()()}a&2&&(a=N(3).item,A(1),hg("href","https://pm.corp.google.com/",a,"",le),Wf("aria-label","Postmortem ",a,""),A(1),T(" ",a," "))},HFa=function(a){a&1&&P(0,GFa,3,3,"div",32);if(a&2){N();var b=O(10);N();a=N();D("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},IFa=function(a){a&1&&(E(0,"div"),H(1,"b-truncated-span",44),G());if(a&2){a=N(3).item;var b=N();A(1);
D("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},JFa=function(a){a&1&&H(0,"b-user-membership-chip",48);if(a&2){a=N(4).item;var b=N();D("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)}},KFa=function(a){a&1&&(E(0,"b-person-hovercard",49),Q(1),G());a&2&&(a=N(4).item,D("email",a),A(1),T(" ",a," "))},LFa=function(a){a&1&&(E(0,"div",45),P(1,JFa,1,4,"b-user-membership-chip",46),P(2,KFa,2,2,"b-person-hovercard",47),G());a&2&&(a=N(4),A(1),D("ngIf",a.enableTeamAnnotations),
A(1),D("ngIf",!a.enableTeamAnnotations))},MFa=function(a){a&1&&(P(0,IFa,2,3,"div",6),P(1,LFa,3,2,"div",43));if(a&2){a=N(2).item;var b=N();D("ngIf",!b.isUser&&b.isString(a));A(1);D("ngIf",b.isUser&&b.isString(a))}},NFa=function(a){if(a&1){var b=v();E(0,"button",50,51);M("click",function(){w(b);var d=N(2).$index,e=N();return z(e.removeItem(d))});G()}if(a&2){a=N(2).item;var c=N();Xf("aria-label","Remove ",a," from ",c.title,"");D("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},OFa=function(a){a&
1&&(E(0,"div",30)(1,"div",31),P(2,BFa,2,1,"div",32),P(3,DFa,1,2,"ng-template",null,33,Hg),P(5,FFa,1,2,"ng-template",null,34,Hg),P(7,HFa,1,2,"ng-template",null,35,Hg),P(9,MFa,2,2,"ng-template",null,36,Hg),G(),P(11,NFa,2,4,"button",37),H(12,"div",38),G());if(a&2){var b=O(4);N();a=N();A(2);D("ngIf","CHANGELISTS"===a.type)("ngIfElse",b);A(9);D("ngIf",!a.readonly&&"REPEATED_ENUM"!==a.type)}},PFa=function(a,b){a&1&&P(0,OFa,13,3,"div",29);a&2&&(a=b.$index,b=N(),D("ngIf",b.showingAll||a<b.defaultLineCount||
!!b.values&&b.values.length===b.defaultLineCount+1))},QFa=function(a){if(a&1){var b=v();E(0,"div",53,54);M("click",function(c){w(b);var d=N(2);return z(Np(d,!1,c))})("keydown.enter",function(c){w(b);var d=N(2);return z(Np(d,!1,c))})("keydown.space",function(c){w(b);var d=N(2);return z(Np(d,!1,c))});Q(2," (show fewer) ");G()}a&2&&(a=N(2),Xf("aria-label","Show at most ",a.defaultLineCount," ",a.title," items"),hg("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},RFa=function(a){if(a&
1){var b=v();E(0,"div")(1,"div",55);Q(2);E(3,"span",56,57);M("click",function(c){w(b);var d=N(2);return z(Np(d,!0,c))})("keydown.enter",function(c){w(b);var d=N(2);return z(Np(d,!0,c))})("keydown.space",function(c){w(b);var d=N(2);return z(Np(d,!0,c))});Q(5," (show all) ");G()()()}a&2&&(a=N(2),A(2),T(" ... and ",a.values.length-a.defaultLineCount," more "),A(1),Xf("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),hg("matTooltip","Show all ",null==a.values?null:a.values.length,
" items in the list"))},SFa=function(a){a&1&&(P(0,QFa,3,3,"div",52),P(1,RFa,6,4,"div",6));a&2&&(a=N(),D("ngIf",a.showingAll&&!!a.values&&a.values.length>a.defaultLineCount+1),A(1),D("ngIf",!a.showingAll&&!!a.values&&a.values.length>a.defaultLineCount+1))},TFa=function(a,b){if(a&1){var c=v();E(0,"button",59);M("click",function(d){var e=w(c).$implicit,f=N(2);e=e.value;f.enumPendingValues.has(e)?f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return z()});E(1,"span",
60);H(2,"mat-icon",61);G();Q(3);G()}a&2&&(a=b.$implicit,b=N(2),Zf("b-menu-item-checked",b.enumPendingValues.has(a.value)),D("disabled",b.listFieldDisabled),Uf("aria-label",a.displayText),A(3),T(" ",a.displayText," "))},UFa=function(a){a&1&&P(0,TFa,4,5,"button",58);a&2&&(a=N(),D("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},VFa=function(a){a&1&&H(0,"input",71);a&2&&(a=N(2),Wf("aria-label","Addition to ",a.title,""),D("bContactAutocomplete","MULTI"))},WFa=function(a){a&1&&H(0,"input",
72);a&2&&(a=N(2),Wf("aria-label","Addition to ",a.title,""),D("type","REPEATED_NUMERIC"===a.type?"number":"text"))},XFa=function(a){a&1&&(E(0,"mat-error"),Q(1),G());a&2&&(a=N(2),Xf("aria-label","",a.title," error: ",a.invalidMessage,""),A(1),T(" ",a.invalidMessage," "))},$Fa=function(a){if(a&1){var b=v();E(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",62,63);M("ngSubmit",function(){w(b);var d=O(3),e=O(4),f=N();return z(YFa(f,d,e))});P(5,VFa,1,2,"input",64);P(6,WFa,1,2,"input",65);
E(7,"div",66)(8,"button",67);H(9,"mat-icon",68);G();E(10,"button",69);M("click",function(){w(b);var d=N();return z(ZFa(d,!0))});H(11,"mat-icon",70);G()();P(12,XFa,2,3,"mat-error",6);G()()()}if(a&2){var c=O(3);a=N();A(5);D("ngIf",a.isUser);A(1);D("ngIf",!a.isUser);A(2);Wf("aria-label","Apply addition to ",a.title,"");D("disabled",!c.valid||a.listFieldDisabled);A(2);Wf("aria-label","Discard addition to ",a.title,"");A(2);D("ngIf",a.invalidMessage)}},aGa=function(a){if(a&1){var b=v();E(0,"b-date-time-picker-content",
73);M("dateChange",function(c){w(b);var d=N();return z(c&&d.addItems(c))})("cancelClicked",function(){w(b);var c=N();return z(ZFa(c,!1))});G()}a&2&&D("required",!0)("renderPanel",!1)},Op=function(a,b){return{originX:a,originY:b}},Pp=function(a,b){return{overlayX:a,overlayY:b}},dGa=function(a){if(a&1){var b=v();E(0,"b-edit-field",3);M("valueChange",function(e){w(b);var f=N(2);return z(f.save.emit(e))});G()}if(a&2){a=N().ngIf;var c=N(),d;D("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",
c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",bGa(c))("displayValueOverride",c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:ng(11,cGa))("showEnumTitle",!0)("disabled",c.disabled)}},fGa=function(a){if(a&1){var b=v();E(0,"b-list-field",4);M("valuesChange",function(d){w(b);var e=N(2);return z(e.save.emit(d.values))});G()}if(a&2){a=N().ngIf;var c=N();D("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("tooltip",
c.getTooltip())("values",eGa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},gGa=function(a,b){a&1&&(I(0),P(1,dGa,1,12,"b-edit-field",1),P(2,fGa,1,9,"b-list-field",2),L());a&2&&(a=b.ngIf,A(1),D("ngIf",!a.isRepeated()),A(1),D("ngIf",a.isRepeated()))},hGa=function(a){a&1&&(I(0),H(1,"mat-icon",11),L())},iGa=function(a){if(a&1){var b=v();I(0);E(1,"button",12);M("mousedown",function(c){w(b);var d=N();return z(d.back(c))});H(2,"mat-icon",13);G();L()}},
jGa=function(a){if(a&1){var b=v();I(0);E(1,"button",14);M("mousedown",function(c){w(b);var d=N();return z(d.expand(d.componentOption,c))});H(2,"mat-icon",15);G();L()}a&2&&(a=N(),A(1),D("matTooltip","View child components of "+a.componentOption.name),Uf("aria-label","View child components of "+a.componentOption.name))},kGa=function(a){if(a&1){var b=v();I(0);E(1,"a",19);M("mousedown",function(d){w(b);var e=N().$implicit;N(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return z()});
U(2,"boldPrefixMatches");U(3,"toString");G();L()}if(a&2){a=N().$implicit;var c=N(2);A(1);D("innerHtml",rg(2,1,V(3,4,a.name),c.query),ke)}},lGa=function(a){a&1&&Q(0);a&2&&(a=N().$implicit,T(" ",a.name," "))},mGa=function(a){a&1&&(I(0),Q(1,"\u00a0>\u00a0"),L())},nGa=function(a,b){a&1&&(I(0),P(1,kGa,4,6,"ng-container",6),P(2,lGa,1,1,"ng-template",null,17,Hg),P(4,mGa,2,0,"ng-container",18),L());if(a&2){a=b.$implicit;b=b.last;var c=O(3);A(1);D("ngIf",a.name!=a.id)("ngIfElse",c);A(3);D("ngIf",!b)}},oGa=
function(a){a&1&&(I(0),P(1,nGa,5,3,"ng-container",16),L());a&2&&(a=N(),A(1),D("ngForOf",a.componentOption.componentPath))},pGa=function(a,b){if(a&1){var c=v();I(0);E(1,"a",20);M("mousedown",function(d){var e=w(c).ngIf;N(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return z()});Q(2);G();L()}a&2&&(a=b.ngIf,A(2),T(" ",a.name," "))},qGa=function(a){a&1&&P(0,pGa,3,1,"ng-container",18);a&2&&(a=N(),D("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-
1]))},rGa=function(a){a&1&&(E(0,"span",21),Q(1," [Archived] "),G())},sGa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList(),expanded:!1}},tGa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),expanded:!1}},Qp=function(a){var b,c,d=null!=(c=null==(b=a.componentPathInfo)?void 0:b.componentPathId)?c:[],e,f,h=null!=(f=null==(e=a.componentPathInfo)?void 0:e.componentPathName)?
f:[];b=d.map(function(k,q){return{id:k,name:h[q],pathText:h.slice(0,q+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}},uGa=function(a){return new Map([].concat(r(a.entries())).map(function(b){var c=n(b);b=c.next().value;c=c.next().value;return[b,c.map(tGa)]}))},vGa=function(a){a&1&&H(0,"img",5);a&2&&(a=N(),Uf("src",a.getLogoUrl(),le))},wGa=function(a){a&1&&(E(0,"span",
9),Q(1,"no components"),G())},xGa=function(a){a&1&&(E(0,"div",6),H(1,"div",7),U(2,"boldPrefixMatches"),P(3,wGa,2,0,"span",8),G());a&2&&(a=N(),A(1),D("innerHtml",rg(2,2,a.teamOption.name,a.query),ke),A(2),D("ngIf",a.hasNoComponent))},yGa=function(a){if(a&1){var b=v();I(0);E(1,"a",15);M("mousedown",function(c){w(b);var d=N(2).index,e=N(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return z()});Q(2);G();L()}a&2&&(a=N(2).$implicit,
A(2),kg(a))},zGa=function(a){a&1&&Q(0);a&2&&(a=N(2).$implicit,kg(a))},AGa=function(a){a&1&&(I(0),P(1,yGa,3,1,"ng-container",12),P(2,zGa,1,1,"ng-template",null,14,Hg),I(4),Q(5," \u00b7 "),L()());if(a&2){var b=O(3);a=N(3);A(1);D("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},BGa=function(a){a&1&&(I(0),E(1,"strong",17),Q(2),G(),L());a&2&&(a=N(2).$implicit,A(2),kg(a))},CGa=function(a){a&1&&Q(0);a&2&&(a=N(2).$implicit,kg(a))},DGa=function(a){a&1&&(P(0,BGa,3,1,"ng-container",12),P(1,CGa,1,1,"ng-template",
null,16,Hg));if(a&2){var b=O(2);a=N(3);D("ngIf",a.compact)("ngIfElse",b)}},EGa=function(a,b){a&1&&(I(0),P(1,AGa,6,2,"ng-container",12),P(2,DGa,3,2,"ng-template",null,13,Hg),L());if(a&2){a=b.last;var c=O(3);A(1);D("ngIf",!a)("ngIfElse",c)}},FGa=function(a){a&1&&(E(0,"div",10),P(1,EGa,4,2,"ng-container",11),G());a&2&&(a=N(),A(1),D("ngForOf",a.teamOption.pathNames))},GGa=function(){var a=Rc(li),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},HGa=function(a){if(a&
1){var b=v();E(0,"button",9);M("mousedown",function(c){w(b);N().clearQuery();return z(Rp(c))});H(1,"mat-icon",10);G()}},IGa=function(a){a&1&&(E(0,"div",13),Q(1," Checking for admin access... "),G())},JGa=function(a){a&1&&(E(0,"div",15),Q(1," You do not have admin access to this component. "),E(2,"a",16),Q(3,"View component admins"),G()());a&2&&(a=N(3),A(2),D("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),le))},KGa=function(a){a&1&&P(0,JGa,4,1,"div",14);a&2&&(a=N(2),D("ngIf",
!a.hasAccess&&a.selectedComponent))},LGa=function(a){a&1&&(E(0,"div"),P(1,IGa,2,0,"div",11),P(2,KGa,1,1,"ng-template",null,12,Hg),G());if(a&2){var b=O(3);a=N();A(1);D("ngIf",a.checkingAccess)("ngIfElse",b)}},MGa=function(a){a&1&&H(0,"mat-progress-bar",24)},NGa=function(a){a&1&&(I(0),Q(1,"s"),L())},PGa=function(a,b){if(a&1){var c=v();I(0);E(1,"div",30);M("mousedown",function(e){var f=w(c).$implicit,h=N(5);OGa(h.searchState,f);return z(Rp(e))});E(2,"team-row",31);M("selectTeamId",function(e){w(c);var f=
N(5);return z(Sp(f.searchState,e))});G()();L()}if(a&2){a=b.$implicit;b=N(5);var d=O(3);A(1);D("data",a);A(1);D("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},QGa=function(a){a&1&&(E(0,"div",27)(1,"div",28),Q(2," Filter components by my teams "),E(3,"span"),Q(4),P(5,NGa,2,0,"ng-container",5),G()(),P(6,PGa,3,4,"ng-container",29),H(7,"mat-divider"),G());a&2&&(a=N().ngIf,A(4),T("",a.length," team"),A(1),D("ngIf",1<a.length),A(1),D("ngForOf",a))},RGa=function(a,
b){a&1&&(I(0),P(1,QGa,8,3,"div",26),L());a&2&&(a=b.ngIf,A(1),D("ngIf",a.length))},SGa=function(a){a&1&&cg(0)},UGa=function(a){a&1&&(I(0),P(1,RGa,2,1,"ng-container",5),U(2,"async"),P(3,SGa,1,0,"ng-container",25),L());if(a&2){a=N(2);var b=O(12);A(1);D("ngIf",V(2,3,a.searchState.myTeams$));A(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(5,TGa,a.searchState.recentComponents))}},VGa=function(a){a&1&&(I(0),Q(1,"s"),L())},WGa=function(a){a&1&&cg(0)},ZGa=function(a,b){a&1&&(I(0),P(1,WGa,1,0,"ng-container",
25),L());if(a&2){a=b.$implicit;b=b.index;N(5);var c=O(10);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(4,XGa,a,og(2,YGa,b)))}},$Ga=function(a){if(a&1){var b=v();E(0,"button",33);M("mousedown",function(){w(b);var c=N(5);return z(c.searchState.showAllTeams$.next(!0))});H(1,"mat-icon",34);Q(2," Show all teams ");G()}},aHa=function(a,b){a&1&&(E(0,"div",27)(1,"div",28),Q(2," Filter components by teams "),E(3,"span"),Q(4),P(5,VGa,2,0,"ng-container",5),G()(),P(6,ZGa,2,7,"ng-container",29),U(7,
"async"),P(8,$Ga,3,0,"button",32),U(9,"async"),H(10,"mat-divider"),G());a&2&&(a=b.ngIf,b=N(4),A(4),T("",a," team"),A(1),D("ngIf",1<a),A(1),D("ngForOf",V(7,4,b.searchState.filteredTeamOptions$)),A(2),D("ngIf",V(9,6,b.searchState.hasHiddenTeams$)))},bHa=function(a,b){a&1&&(I(0),P(1,aHa,11,8,"div",26),L());a&2&&(a=b.ngIf,A(1),D("ngIf",a.length))},cHa=function(a){a&1&&cg(0)},eHa=function(a){a&1&&(I(0),P(1,bHa,2,1,"ng-container",5),U(2,"async"),P(3,cHa,1,0,"ng-container",25),L());if(a&2){a=N(2);var b=
O(12);A(1);D("ngIf",V(2,3,a.searchState.teamOptions$));A(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(5,dHa,a.searchState.componentOptions))}},fHa=function(a){a&1&&cg(0)},hHa=function(a,b){a&1&&(I(0),P(1,fHa,1,0,"ng-container",25),L());if(a&2){a=b.$implicit;b=b.index;N(7);var c=O(10);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",pg(4,XGa,a,og(2,gHa,b)))}},iHa=function(a){a&1&&(E(0,"div",42),P(1,hHa,2,7,"ng-container",29),G());a&2&&(a=N(2).ngIf,A(1),D("ngForOf",a))},lHa=function(a){if(a&
1){var b=v();I(0);P(1,iHa,2,1,"div",41);E(2,"button",33);M("mousedown",function(c){w(b);var d=N(5),e=d.searchState.teamScope$.value;e.expanded?jHa(d.searchState,e):kHa(d.searchState,e);return z(Rp(c))});H(3,"mat-icon",34);Q(4);G();L()}a&2&&(a=N(5),A(1),D("ngIf",a.searchState.teamScope$.value.expanded),A(2),Zf("expanded",a.searchState.teamScope$.value.expanded),A(1),T(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},mHa=function(a,b){a&1&&(I(0),P(1,lHa,5,4,"ng-container",
5),L());a&2&&(a=b.ngIf,A(1),D("ngIf",a.length))},oHa=function(a){if(a&1){var b=v();E(0,"div",36)(1,"div",28);Q(2," Filtering by team: ");G();E(3,"div",37)(4,"team-row",38);M("selectTeamId",function(d){w(b);var e=N(3);return z(Sp(e.searchState,d))});G();E(5,"button",39);M("mousedown",function(d){w(b);var e=N(3);Tp(e.searchState);return z(Rp(d))});H(6,"mat-icon",40);G()();P(7,mHa,2,1,"ng-container",5);G()}if(a&2){a=N(3);var c=O(3);A(3);D("data",a.searchState.teamScope$.value)("listOrder",ng(7,nHa));
A(1);D("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);A(3);D("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},pHa=function(a){a&1&&cg(0)},rHa=function(a){a&1&&(I(0),P(1,oHa,8,8,"div",35),P(2,pHa,1,0,"ng-container",25),L());if(a&2){a=N(2);var b=O(12);A(1);D("ngIf",a.searchState.teamScope$.value);A(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",pg(3,qHa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},
uHa=function(a){if(a&1){var b=v();E(0,"div",44)(1,"div",45);Q(2,"Component Tree Browser");G();E(3,"component-row",46);M("goBack",function(){w(b);var c=N(3);return z(sHa(c.searchState))})("selectComponentId",function(c){w(b);var d=N(3);return z(tHa(d.searchState,c))});G()()}a&2&&(a=N(3),A(3),D("componentOption",a.searchState.componentScope))},vHa=function(a){a&1&&cg(0)},xHa=function(a){a&1&&(I(0),P(1,uHa,4,1,"div",43),P(2,vHa,1,0,"ng-container",25),L());if(a&2){a=N(2);var b=O(12);A(1);D("ngIf",a.searchState.componentScope);
A(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(3,wHa,a.searchState.componentOptions))}},yHa=function(a){if(a&1){var b=v();E(0,"div",17,18);M("mousedown",function(c){w(b);N();return z(Rp(c))});E(2,"div",19);P(3,MGa,1,0,"mat-progress-bar",20);G();E(4,"div",21);I(5,22);U(6,"async");P(7,UGa,4,7,"ng-container",23);P(8,eHa,4,7,"ng-container",23);P(9,rHa,3,6,"ng-container",23);P(10,xHa,3,5,"ng-container",23);L();G()()}a&2&&(a=N(),A(3),D("ngIf",a.isLoading()),A(2),D("ngSwitch",V(6,6,a.searchState.state$)),
A(2),D("ngSwitchCase","default"),A(1),D("ngSwitchCase","global"),A(1),D("ngSwitchCase","team_scope"),A(1),D("ngSwitchCase","component_scope"))},zHa=function(a){if(a&1){var b=v();E(0,"button",50);M("mousedown",function(c){w(b);var d=N().team,e=N();d.expanded?jHa(e.searchState,d):kHa(e.searchState,d);return z(Rp(c))});H(1,"mat-icon",51);G()}a&2&&(a=N().team,A(1),Zf("expanded",a.expanded))},AHa=function(a){a&1&&cg(0)},CHa=function(a,b){a&1&&(I(0),P(1,AHa,1,0,"ng-container",25),L());if(a&2){a=b.$implicit;
b=b.index;var c=N(2),d=c.level;c=c.order;N();var e=O(10);A(1);D("ngTemplateOutlet",e)("ngTemplateOutletContext",qg(BHa,a,d+1,c.concat(b)))}},DHa=function(a){a&1&&(I(0),P(1,CHa,2,6,"ng-container",29),L());if(a&2){a=N().team;var b=N();A(1);D("ngForOf",b.searchState.getChildTeams(a.id))}},EHa=function(a,b){if(a&1){var c=v();E(0,"div",47);M("mousedown",function(h){var k=w(c).team,q=N();OGa(q.searchState,k);return z(Rp(h))});E(1,"div",48);P(2,zHa,2,2,"button",49);E(3,"team-row",31);M("selectTeamId",function(h){w(c);
var k=N();return z(Sp(k.searchState,h))});G()()();P(4,DHa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=N(),f=O(3);D("listOrder",b)("data",a);A(1);Yf("margin-left",28*d,"px");A(1);D("ngIf",e.searchState.getChildTeams(a.id).length);A(1);Zf("indent",!e.searchState.getChildTeams(a.id).length);D("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));A(1);D("ngIf",a.expanded)}},FHa=function(a){a&1&&(I(0),Q(1,"s"),L())},HHa=function(a,b){if(a&1){var c=
v();E(0,"div",56);M("mousedown",function(e){var f=w(c).$implicit,h=N(3);GHa(h.searchState,f.id);return z(Rp(e))});E(1,"component-row",57);M("selectComponentId",function(e){w(c);var f=N(3);return z(GHa(f.searchState,e))})("expandComponent",function(e){w(c);var f=N(3);return z(f.searchState.expandComponent(e))});G()()}if(a&2){a=b.$implicit;b=N(2).mode;N();var d=O(3);D("data",a);A(1);D("componentOption",a)("query",d.value)("mode",b)}},IHa=function(a,b){a&1&&(E(0,"div",54)(1,"div",28),Q(2),E(3,"span"),
Q(4),P(5,FHa,2,0,"ng-container",5),G()(),P(6,HHa,2,4,"div",55),G());if(a&2){a=b.ngIf;var c=N();b=c.mode;c=c.$implicit;A(2);T(" ","recent"===b?"Select recent component":"Select component"," ");A(2);T("",a," component");A(1);D("ngIf",1<a);A(1);D("ngForOf",c)}},JHa=function(a){a&1&&(I(0),Q(1," No recent components "),L())},KHa=function(a){a&1&&(I(0),Q(1," No child components "),L())},LHa=function(a){a&1&&(I(0),Q(1),H(2,"mat-icon",61),Q(3," above ("),E(4,"a",62),Q(5,"learn more "),H(6,"mat-icon",63),
G(),Q(7," about team associations)"),L());a&2&&(a=N(4).teamScope,A(1),T(" for ",a.name,". Remove the team filter by clicking on the "))},MHa=function(a){a&1&&(I(0),Q(1," No components found "),P(2,LHa,8,1,"ng-container",5),L());a&2&&(a=N(3).teamScope,A(2),D("ngIf",a))},NHa=function(a){a&1&&(E(0,"div",59),I(1,22),P(2,JHa,2,0,"ng-container",23),P(3,KHa,2,0,"ng-container",23),P(4,MHa,3,1,"ng-container",60),L(),G());a&2&&(a=N(2).mode,A(1),D("ngSwitch",a),A(1),D("ngSwitchCase","recent"),A(1),D("ngSwitchCase",
"leaf"))},OHa=function(a){a&1&&P(0,NHa,5,3,"div",58);a&2&&(a=N(2),D("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},PHa=function(a,b){a&1&&(P(0,IHa,7,4,"div",52),P(1,OHa,1,1,"ng-template",null,53,Hg));if(a&2){a=b.$implicit;var c=O(2);D("ngIf",a.length)("ngIfElse",c)}},QHa=function(a,b){b=n([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},RHa=function(a){a&1&&(E(0,"div"),
Q(1," Loading custom fields... "),G())},SHa=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N(2),A(1),T(" There are no custom fields in component ",a.selectedComponent.name,". "))},THa=function(a,b){a&1&&(E(0,"mat-option",9),Q(1),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",a.name," "))},UHa=function(a){if(a&1){var b=v();E(0,"div")(1,"mat-form-field",6)(2,"mat-label");Q(3,"Custom field");G();E(4,"mat-select",7);M("selectionChange",function(c){w(b);var d=N(2);return z(d.fieldSelected.emit(c.value))});
P(5,THa,2,2,"mat-option",8);G()()()}a&2&&(a=N(2),A(5),D("ngForOf",a.customFields))},VHa=function(a){a&1&&(E(0,"div",4),P(1,RHa,2,0,"div",5),P(2,SHa,2,1,"div",5),P(3,UHa,6,1,"div",5),G());a&2&&(a=N(),A(1),D("ngIf",null==a.customFields),A(1),D("ngIf",a.customFields&&!a.customFields.length),A(1),D("ngIf",null==a.customFields?null:a.customFields.length))},WHa=function(a){a&1&&cg(0)},XHa=function(){},YHa=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().value,A(1),kg(a.textValue))},ZHa=function(a){a&1&&(I(0),
H(1,"b-formatted-date-time",5),L());if(a&2){a=N().value;var b=N();A(1);D("date",b.toDate(a.dateValue))}},$Ha=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().value,A(1),kg(a.enumValue))},aIa=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().value,A(1),kg(a.numericValue))},bIa=function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.$implicit,b=b.last,A(1),lg("",a,"",b?"":", ",""))},cIa=function(a){a&1&&(I(0),P(1,bIa,2,2,"ng-container",6),L());a&2&&(a=N().value,A(1),D("ngForOf",a.repeatedTextValue.values))},dIa=function(a,
b){a&1&&(I(0),H(1,"b-formatted-date-time",5),Q(2),L());if(a&2){a=b.$implicit;b=b.last;var c=N(3);A(1);D("date",c.toDate(a));A(1);kg(b?"":", ")}},eIa=function(a){a&1&&(I(0),P(1,dIa,3,2,"ng-container",6),L());a&2&&(a=N().value,A(1),D("ngForOf",a.repeatedDateValue.values))},fIa=function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.$implicit,b=b.last,A(1),lg("",a,"",b?"":", ",""))},gIa=function(a){a&1&&(I(0),P(1,fIa,2,2,"ng-container",6),L());a&2&&(a=N().value,A(1),D("ngForOf",a.repeatedEnumValue.values))},hIa=
function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.$implicit,b=b.last,A(1),lg("",a,"",b?"":", ",""))},iIa=function(a){a&1&&(I(0),P(1,hIa,2,2,"ng-container",6),L());a&2&&(a=N().value,A(1),D("ngForOf",a.repeatedNumericValue.values))},jIa=function(a,b){a&1&&(P(0,YHa,2,1,"ng-container",4),P(1,ZHa,2,1,"ng-container",4),P(2,$Ha,2,1,"ng-container",4),P(3,aIa,2,1,"ng-container",4),P(4,cIa,2,1,"ng-container",4),P(5,eIa,2,1,"ng-container",4),P(6,gIa,2,1,"ng-container",4),P(7,iIa,2,1,"ng-container",4));a&2&&(a=b.value,
b=N(),D("ngIf",null!=a.textValue),A(1),D("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),A(1),D("ngIf",null!=a.enumValue),A(1),D("ngIf",null!=a.numericValue),A(1),D("ngIf",null!=a.repeatedTextValue),A(1),D("ngIf",null!=a.repeatedDateValue),A(1),D("ngIf",null!=a.repeatedEnumValue),A(1),D("ngIf",null!=a.repeatedNumericValue))},Up=function(a){var b=void 0===b?kIa:b;var c=Ma(a),d=function(e){e=n(e);e.next();e=gf(e);return b(c,e)};return function(){var e=Uc.apply(0,arguments),f=this||ea,h=lIa.get(f);h||
(h={},lIa.set(f,h));f=h;h=[this].concat(r(e));e=d?d(h):h;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=n(h);h=k.next().value;k=gf(k);h=a.apply(h,k);f=f[e]=h}return f}},Vp=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},Wp=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},mIa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];
break}},oIa=function(a){a=cc(a);for(var b=0;b<nIa.length;++b){var c=nIa[b],d=Wp(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,mIa(a,c))}return a},pIa=function(a){a=cc(a);mIa(a,"X-Goog-Upload-Status");return a},qIa=function(a){a&1&&(E(0,"span"),Q(1),U(2,"humanFileSize"),U(3,"humanFileSize"),G());if(a&2){a=N().$implicit;var b;A(1);lg(" ",V(2,2,a.transferredBytes)," of ",V(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},rIa=function(a){a&1&&(E(0,"span",11),Q(1),G());a&2&&(a=N().$implicit,A(1),T(" ",a.errorMessage,
" "))},sIa=function(a){a&1&&(E(0,"span",11),Q(1),U(2,"humanFileSize"),G());if(a&2){a=N().$implicit;var b;A(1);T(" ",V(2,1,null!==(b=a.size)&&void 0!==b?b:0)," ")}},uIa=function(a,b){if(a&1){var c=v();E(0,"div",3)(1,"div",4);H(2,"mat-icon",5);E(3,"span",6);Q(4);G();E(5,"span",7);P(6,qIa,4,6,"span",8);P(7,rIa,2,1,"span",9);P(8,sIa,3,3,"span",9);G()();E(9,"button",10);M("click",function(){var d=w(c).$implicit,e=N(2);return z(e.cancel(d))});G()()}a&2&&(a=b.$implicit,b=N(2),D("ngClass",og(8,tIa,a.state===
b.uploadStates.ERROR)),A(3),D("matTooltip",a.name),A(1),kg(a.name),A(2),D("ngIf",a.state===b.uploadStates.UPLOADING),A(1),D("ngIf",a.state===b.uploadStates.ERROR),A(1),D("ngIf",a.state===b.uploadStates.COMPLETE),A(1),D("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Uf("aria-label","Remove attachment"+a.name))},vIa=function(a){a&1&&(E(0,"div",1),P(1,uIa,10,10,"div",2),G());a&2&&(a=N(),A(1),D("ngForOf",a.uploads))},Xp=function(a){this.action=a;this.wfv=!1},xIa=
function(){var a=new Yp,b=new Zp;Qo(b,5,!0);var c=wIa();c.setType(7);c.setDirection(2);$p(b,c);aq(b,1);Vb(a,3,b);a.setSourceId(2);a.setName("Shared with me");return a},cq=function(){var a=new Yp,b=new Zp,c=new bq;c.setType(10);c.setDirection(2);$p(b,c);aq(b,1);Vb(a,3,b);a.setSourceId(2);a.setName("Recent");return a},yIa=function(){var a=new Yp,b=new Zp;b.setStarred(!0);$p(b,wIa());aq(b,1);Vb(a,3,b);a.setSourceId(2);a.setName("Starred");return a},wIa=function(){var a=new bq;a.setType(4);a.setDirection(1);
return a},BIa=function(){var a=new dq;a.addSource(zIa());a.addSource(AIa());return a},zIa=function(){var a=new Yp,b=new eq;b.setViewMode(1);Dl(b,2,1);Qo(b,5,!0);Qo(b,6,!1);Vb(a,6,b);a.setSourceId(3);a.setName("Photos");return a},AIa=function(){var a=new Yp,b=new eq;b.setViewMode(2);Qo(b,5,!0);Qo(b,6,!1);Vb(a,6,b);a.setSourceId(3);a.setName("Albums");return a},CIa=function(){var a=new Yp,b=new eq;b.setViewMode(1);Dl(b,2,1);Qo(b,5,!1);Qo(b,6,!0);Vb(a,6,b);a.setSourceId(3);a.setName("Videos");return a},
DIa=function(a){a=void 0===a?1:a;var b=new Yp;b.setSourceId(6);b.setName("YouTube");var c=new fq;c.setViewMode(a);Vb(b,9,c);return b},EIa=function(a,b){Xp.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},IIa=function(a,b){b=b?FIa:GIa;if(!HIa(a)){a=a||zp(document);var c=a.createElement("SCRIPT");Gi(c,b);c.type="text/javascript";a.document_.body.appendChild(c)}},HIa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},JIa=function(a,b){var c=b&&b.getWindow()||window;
if(HIa(b))a();else if(gq)gq.push(a);else var d=gq=[a],e=c.setInterval(function(){if(HIa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();gq=null}},100)},LIa=function(a,b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=hq(c,"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!KIa(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()},iq=function(a,b){b?(b=$sa(b))?
(void 0!==a.tagName&&Uja(a),a.innerHTML=ck(b)):MIa(a):MIa(a)},MIa=function(a){for(;a.lastChild;)a.lastChild.remove()},NIa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},jq=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},kq=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},OIa=function(a){if(a&1){var b=v();E(0,"div",5);M("clickOutside",function(){w(b);var c=N();return z(c.hide())});E(1,"div",
6);Q(2," Relative link may be malformed:\u00a0 ");E(3,"code");Q(4);G();E(5,"button",7);M("click",function(){w(b);var c=N();return z(c.copyToClipboard())});H(6,"mat-icon",8);G()();E(7,"div",6);Q(8," Force open as: \u00a0 ");E(9,"a",9);M("click",function(c){w(b);var d=N();kq(c)||(c.preventDefault(),c.stopPropagation(),lq(d.domSafe,"http://"+d.originalHref));return z()});Q(10);G()()()}a&2&&(a=N(),A(4),kg(a.originalHref),A(5),hg("href","http://",a.originalHref,"",le),A(1),T(" http://",a.originalHref,
" "))},PIa=function(a){a&1&&(E(0,"b-glue"),H(1,"mat-icon",5),G())},TIa=function(a){if(a&1){var b=v();E(0,"div",6);M("clickOutside",function(){w(b);var c=N();return z(c.hide())});E(1,"span",7)(2,"a",8);M("click",function(c){w(b);var d=N();return z(QIa(d,c))})("keydown",function(c){w(b);var d=N();return z(RIa(d,c))});Q(3);G()();E(4,"button",9);M("keydown.Tab",function(c){w(b);var d=N();return z(SIa(d,c))})("click",function(){w(b);var c=N();return z(c.copyToClipboard())});H(5,"mat-icon",10);G()()}a&
2&&(a=N(),A(2),D("href",a.originalHref,le)("rel",a.EXTERNAL_LINK_REL),A(1),kg(a.originalHref))},UIa=function(a){a&1&&(E(0,"div",4),cg(1,5),G());a&2&&(a=N(),D("onedevIsHovercardReady",a.hovercardReady))},VIa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},WIa=function(a,b){a&1&&(I(0),H(1,"b-plain-format-section",2),L());a&2&&(a=b.$implicit,A(1),D("section",a))},XIa=function(a){a&1&&H(0,"b-plain-format-quoted-section",1);a&2&&(a=N(),D("section",a.section))},YIa=function(a){a&1&&H(0,"b-plain-format-unquoted-section",
1);a&2&&(a=N(),D("section",a.section))},$Ia=function(a){if(a&1){var b=v();E(0,"a",4);M("click",function(){w(b);var c=N();c.showQuote=!0;ZIa(c);return z()});Q(1," - Show quoted text - ");G()}a&2&&(a=N(),Uf("aria-controls",a.childId))},aJa=function(a){if(a&1){var b=v();E(0,"a",5);M("click",function(){w(b);var c=N();c.showQuote=!1;ZIa(c);return z()});Q(1," - Hide quoted text - ");G()}a&2&&(a=N(),Uf("aria-controls",a.childId))},bJa=function(a,b){a&1&&(I(0),H(1,"b-literal-format-presenter",1),L());a&2&&
(a=b.ngIf,A(1),D("content",a))},cJa=function(a,b){a&1&&(I(0),H(1,"b-markdown-format-presenter",1),L());a&2&&(a=b.ngIf,A(1),D("content",a))},dJa=function(a,b){a&1&&(I(0),H(1,"b-plain-format-presenter",1),L());a&2&&(a=b.ngIf,A(1),D("content",a))},eJa=function(a){switch(a.formattingMode){case "LITERAL":return(0,W.of)(sta(a.comment));case "MARKDOWN":var b=new kn,c=new oq,d=Zsa(Bh(""));c.setContent(d);Dm(b,2,Rn,c);return(0,W.of)(b);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return b=new kn,
c=new pq,d=new qq,a=Zsa(Bh(a.comment)),d.setContent(a),rq(c,1,qq,d),Dm(b,1,Rn,c),(0,W.of)(b);default:return Ai(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},fJa=function(a,b){a&1&&(I(0),E(1,"div",1),H(2,"b-formatted-comment-presenter",2),G(),L());a&2&&(a=b.$implicit,b=N(),A(1),Zf("invisible",""===(b.comment||"").trim())("error",a.isFallback),A(1),D("formattedComment",a.formattedComment))},gJa=function(a){a&1&&(E(0,"a",2),H(1,"mat-icon",3),G());a&2&&(a=N(),D("href",a.mdHelpLink,
le)("disableRipple",!0))},hJa=function(a){a&1&&H(0,"b-formatted-comment-presenter",4);a&2&&(a=N(),D("formattedComment",a.note.formattedComment))},iJa=function(a){a&1&&H(0,"b-live-preview",5);a&2&&(a=N(),D("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode||a.FormattingMode.PLAIN)("idPrefix",a.idPrefix))},jJa=function(a){var b=function(){var c=a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;c._fitToContent=!1;return c};
X(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)}},kJa=function(){},lJa=function(){},mJa=function(a){a&1&&gg(0)},nJa=function(){},oJa=function(a){a&1&&P(0,nJa,0,0,"ng-template",10);a&2&&(a=N().$implicit,D("cdkPortalOutlet",a.templateLabel))},pJa=function(a){a&1&&Q(0);
a&2&&(a=N().$implicit,kg(a.textLabel))},qJa=function(a,b){if(a&1){var c=v();E(0,"div",6);M("click",function(){var f=w(c),h=f.$implicit;f=f.index;var k=N(),q=O(1);return z(k._handleClick(h,q,f))})("cdkFocusChange",function(f){var h=w(c).index,k=N();return z(k._tabFocusChanged(f,h))});E(1,"div",7);P(2,oJa,1,1,"ng-template",8);P(3,pJa,1,1,"ng-template",null,9,Hg);G()()}if(a&2){a=b.$implicit;b=b.index;var d=O(4),e=N();Zf("mat-tab-label-active",e.selectedIndex===b);D("id",e._getTabLabelId(b))("ngClass",
a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);Uf("tabIndex",e._getTabIndex(a,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);A(2);D("ngIf",a.templateLabel)("ngIfElse",d)}},rJa=function(a,b){if(a&1){var c=v();E(0,"mat-tab-body",11);M("_onCentered",function(){w(c);var e=N();
return z(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){w(c);var f=N();return z(f._setTabBodyWrapperHeight(e))});G()}if(a&2){a=b.$implicit;b=b.index;var d=N();Zf("mat-tab-body-active",d.selectedIndex===b);D("id",d._getTabContentId(b))("ngClass",a.bodyClass)("content",a.content)("position",a.position)("origin",a.origin)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);Uf("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",
d._getTabLabelId(b))}},tJa=function(a){if(a&1){var b=v();E(0,"input",7,8);M("change",function(){w(b);var c=N();if(sq(c)){var d=tq(c);uq(c);sJa(c,!0);tq(c).focus();d.scrollTop=c.scrollPosition;d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return z()})("keyup",function(c){w(b);var d=N();document.activeElement===vq(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,sJa(d,!0),tq(d).focus()):sJa(d));return z()});G()}a&
2&&(a=N(),D("value",a.autocompleteUserName))},uJa=function(a){a&1&&H(0,"div",9,10)},vJa=function(a){a&1&&cg(0)},wJa=function(a){a&1&&cg(0)},xJa=function(a){if(a&1){var b=v();E(0,"b-drive-attachment",11);M("onPickDoc",function(c){w(b);var d=N(2);d.comment&&(d.comment.value+="\n\n"+c.url+" ("+c.name+")");return z()})("onCloneBlob",function(c){w(b);var d=N(2);d.comment&&d.comment.uploads.push(c);return z()});G()}a&2&&(a=N(2),D("disabled",a.attachmentsDisabled))},yJa=function(a){if(a&1){var b=v();I(0);
E(1,"button",15);M("click",function(){w(b);var c=N(3);return z(c.onRestrict.emit())});H(2,"mat-icon",16);G();L()}a&2&&(a=N(3),A(1),D("disabled",a.attachmentsDisabled))},zJa=function(a){if(a&1){var b=v();E(0,"button",17);M("click",function(){w(b);var c=N(3);return z(c.onRestrict.emit())});H(1,"mat-icon",16);Q(2);G()}a&2&&(a=N(3),A(2),T(" ",a.getRestrictedLabel()," "))},AJa=function(a){a&1&&(E(0,"div",12),P(1,yJa,3,1,"ng-container",13),P(2,zJa,3,1,"ng-template",null,14,Hg),G());if(a&2){var b=O(3);a=
N(2);A(1);D("ngIf",!a.isRestricted())("ngIfElse",b)}},BJa=function(a){if(a&1){var b=v();E(0,"div",7);gg(1,1,["class","goog-inline-block"]);E(2,"b-attachment-selector",8);M("onSelect",function(d){w(b);var e=N();d=e.attachmentUploader.upload(d);e.comment&&e.comment.uploads.push(d);return z()});G();P(3,xJa,1,1,"b-drive-attachment",9);U(4,"async");P(5,AJa,4,2,"div",10);G()}if(a&2){a=N();var c;A(2);D("disabled",a.attachmentsDisabled);A(1);D("ngIf",!(null!==(c=V(4,3,a.currentTracker.inTracker$))&&void 0!==
c&&c));A(2);D("ngIf",a.showRestrictionOptions)}},CJa=function(a){a&1&&(E(0,"div"),H(1,"b-live-preview",18),G());a&2&&(a=N(),A(1),D("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},EJa=function(a,b){if(a&1){var c=v();E(0,"button",13);M("click",function(){var d=w(c).$implicit,e=N(3);return z(DJa(e.issueEditBuilder,d))});Q(1);G()}a&2&&(a=b.$implicit,b=N(3),D("disabled",b.issueEditBuilder.issueState==a),A(1),T(" ",a.displayValue," "))},
FJa=function(a){if(a&1){var b=v();E(0,"div",27)(1,"span");Q(2,"Multiple");G();E(3,"a",28);M("click",function(){w(b);var c=N(4);return z(c.issueEditBuilder.clearAssignee())});Q(4,"X");G()()}},GJa=function(a){if(a&1){var b=v();E(0,"div",27)(1,"span");Q(2,"Possibly multiple");G();E(3,"a",28);M("click",function(){w(b);var c=N(4);return z(c.issueEditBuilder.clearAssignee())});Q(4,"X");G()()}},IJa=function(a){if(a&1){var b=v();E(0,"div")(1,"input",29);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.issueEditBuilder.commonAssignee=
c)})("ngModelChange",function(){w(b);var c=N(4);return z(HJa(c.issueEditBuilder))});G()()}a&2&&(a=N(4),A(1),D("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),Uf("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},JJa=function(a){if(a&1){var b=v();E(0,"div",27)(1,"span");Q(2);G();E(3,"a",30);M("click",function(){w(b);var c=N(4);return z(c.issueEditBuilder.clearVerifier())});Q(4,"X");G()()}a&2&&(a=N(4),Zf("bv2-invalid-multiple-user-chip",!wq(a.issueEditBuilder)),
A(2),T(" Multiple ",wq(a.issueEditBuilder)?"":"(some unset)"," "))},KJa=function(a){if(a&1){var b=v();E(0,"div",27)(1,"span");Q(2);G();E(3,"a",30);M("click",function(){w(b);var c=N(4);return z(c.issueEditBuilder.clearVerifier())});Q(4,"X");G()()}a&2&&(a=N(4),Zf("bv2-invalid-multiple-user-chip",!wq(a.issueEditBuilder)),A(2),T(" Possibly multiple ",wq(a.issueEditBuilder)?"":"(some unset)"," "))},LJa=function(a){if(a&1){var b=v();E(0,"div")(1,"input",31);M("ngModelChange",function(c){w(b);var d=N(4);
return z(d.issueEditBuilder.commonVerifier=c)});G()()}a&2&&(a=N(4),A(1),D("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete","SINGLE"),Uf("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},MJa=function(a){a&1&&(E(0,"div")(1,"div",21)(2,"label",22),Q(3," Assignee "),G(),E(4,"div",15),P(5,FJa,5,0,"div",23),P(6,GJa,5,0,"div",23),P(7,IJa,2,3,"div",24),G()(),E(8,"div",21)(9,
"label",25),Q(10," Verifier "),G(),E(11,"div",15),P(12,JJa,5,3,"div",26),P(13,KJa,5,3,"div",26),P(14,LJa,2,4,"div",24),G()()());a&2&&(a=N(3),A(4),D("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),A(1),D("ngSwitchCase","MULTIPLE"),A(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"),A(5),D("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),A(1),D("ngSwitchCase","MULTIPLE"),A(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"))},NJa=function(a){if(a&1){var b=v();E(0,"div",21)(1,"label",32);Q(2," Issue ID ");
G();E(3,"input",33);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.issueEditBuilder.commonDuplicateOf=c.trim())});G()()}a&2&&(a=N(3),A(3),D("ngModel",a.issueEditBuilder.commonDuplicateOf),Uf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},OJa=function(a,b){a&1&&(E(0,"li"),Q(1),H(2,"b-access-level-indicator",36),G());a&2&&(a=b.$implicit,A(1),T(" ",a.path," "),A(1),D("accessLevel",a.accessLevel))},PJa=function(a){a&1&&(E(0,"div",34)(1,"div")(2,"strong"),Q(3,"You are editing issues in components that have external viewers:"),
G()(),E(4,"ul"),P(5,OJa,3,2,"li",35),G()());a&2&&(a=N(3),A(5),D("ngForOf",a.externalWarnings))},QJa=function(a){if(a&1){var b=v();E(0,"div",9)(1,"button",10)(2,"span");Q(3);G();H(4,"b-icon",11);G();E(5,"mat-menu",null,12)(7,"button",13);M("click",function(){w(b);var d=N(2);return z(d.issueEditBuilder.issueState=void 0)});Q(8,"No change ");G();P(9,EJa,2,2,"button",14);G();E(10,"div",15);P(11,MJa,15,6,"div",16);P(12,NJa,4,2,"div",17);G();E(13,"div")(14,"b-comment-box",18);M("onSubmit",function(){w(b);
var d;null==(d=N(2).matDialogRef)||d.close(!0);return z()});G()();H(15,"div",19);P(16,PJa,6,1,"div",20);G()}if(a&2){var c=O(6);a=N(2);A(1);D("matMenuTriggerFor",c);A(2);kg(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:"No change");A(4);D("disabled",!a.issueEditBuilder.issueState);A(2);D("ngForOf",a.issueStates);A(1);D("ngSwitch",!a.issueEditBuilder.issueState||"DUPLICATE"!==a.issueEditBuilder.issueState.status);A(1);D("ngSwitchCase",!0);A(3);D("comment",a.comment)("showToolbar",
!1);A(2);D("ngIf",0<a.externalWarnings.length)}},RJa=function(a){if(a&1){var b=v();E(0,"div",37)(1,"b-recaptcha",38);M("onUpdate",function(c){w(b);var d=N(2);return z(d.issueEditBuilder.recaptchaResponse=c)});G()()}},TJa=function(a){a&1&&(E(0,"form",null,1)(2,"h1",2),Q(3,"Change issue status"),G(),E(4,"div",3)(5,"span"),Q(6,"Enter updated issue status information below"),G(),P(7,QJa,17,9,"div",4),G(),P(8,RJa,2,0,"div",5),E(9,"div",6)(10,"button",7),Q(11," Cancel "),G(),E(12,"button",8),Q(13," Save "),
G()()());if(a&2){var b=O(1);a=N();A(7);D("ngIf",a.issueEditBuilder);A(1);D("ngIf",a.issueEditBuilder&&a.enableRecaptcha);A(2);D("mat-dialog-close",!1);A(2);var c=D("mat-dialog-close",!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=SJa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!wq(a.issueEditBuilder)&&!d.get("verifier");break a}}d=!1}c("disabled",d||!(!a.enableRecaptcha||""!==a.issueEditBuilder.recaptchaResponse))}},
UJa=function(a){a&1&&(E(0,"div")(1,"p"),Q(2),G()());a&2&&(a=N(),A(2),lg(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},VJa=function(a,b){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=b.$implicit,A(1),lg(" ",a.issueId," - ",a.title," "))},WJa=function(a){a&1&&(E(0,"div")(1,"p"),Q(2),G(),E(3,"ul"),P(4,VJa,2,2,"li",9),G()());a&2&&(a=N(),A(2),T(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),
A(2),D("ngForOf",a.protectedIssues))},$Ja=function(a,b){if(a&1){var c=v();E(0,"div",18,19);M("click",function(){var e=w(c).$implicit,f=N(2);xq(f,e)||yq(f,e);return z()});E(2,"mat-pseudo-checkbox",20);M("click",function(e){var f=w(c).$implicit,h=N(2);e.stopPropagation();return z(XJa(h,f))});G();E(3,"span");Q(4);G()()}if(a&2){a=b.$implicit;b=b.index;var d=N(2);Yf("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");Zf("focused",b===d.focusedRowIndex);ig("title",a.name);Uf("id","hotlist-item-"+
a.hotlistId)("aria-checked",YJa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",xq(d,a));A(2);D("state",ZJa(d.selectedHotlistMap[a.hotlistId]))("disabled",xq(d,a));A(2);T(" ",a.name," ")}},aKa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(2),A(1),T(" (",a.filterText,")"))},bKa=function(a){if(a&1){var b=v();E(0,"div",21,22);M("click",function(){w(b);var c=N(2);return z(c.loadHotlist())})("keydown.enter",function(){w(b);var c=N(2);return z(c.loadHotlist())});Q(2,"Load hotlist from id ");E(3,
"span");Q(4);G()()}a&2&&(a=N(2),Zf("focused",a.focusedRowIndex===a.choices.length+1),Uf("aria-label","Load hotlist from"+a.filterText),A(4),T("(",a.filterText,")"))},cKa=function(a){if(a&1){var b=v();E(0,"div",23,24);M("click",function(){w(b);var c=N(2);return z(zq(c))})("keydown.enter",function(){w(b);var c=N(2);return z(zq(c))});Q(2,"Apply");G()}a&2&&(a=N(2),Zf("focused",a.focusedRowIndex===a.choices.length+2))},dKa=function(a){if(a&1){var b=v();E(0,"div",5)(1,"div",10,11);P(3,$Ja,5,11,"div",12);
G()();H(4,"mat-divider");E(5,"div",13,14);M("click",function(){w(b);var c=N();return z(c.createHotlist())})("keydown.enter",function(){w(b);var c=N();return z(c.createHotlist())});Q(7,"Create new hotlist ");P(8,aKa,2,1,"span",15);G();P(9,bKa,5,4,"div",16);P(10,cKa,3,2,"div",17)}a&2&&(a=N(),A(3),D("ngForOf",a.choices),A(2),Zf("focused",a.focusedRowIndex===a.choices.length),D("disabled",!a.canCreate),Uf("aria-label","Create new hotlist"+a.filterText),A(3),D("ngIf",!!a.filterText),A(1),D("ngIf",a.canLoad),
A(1),D("ngIf",a.pendingChanges))},eKa=function(a){a&1&&(I(0),Q(1,"Un-"),L())},fKa=function(a){a&1&&(E(0,"span"),Q(1," Assigned to "),H(2,"b-user-display",16),G());a&2&&(a=N(2).ngIf,A(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},gKa=function(a){a&1&&(E(0,"span"),Q(1," Accepted by "),H(2,"b-user-display",16),G());a&2&&(a=N(2).ngIf,A(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},hKa=function(a){a&1&&(E(0,"span"),Q(1," Duplicate of "),E(2,"a",3),Q(3),G()());if(a&2){a=N(2).ngIf;var b=
N(),c;A(2);Wf("aria-label","Go to issue ",a.duplicateOfIssueId,"");D("href",b.editIssue(null!==(c=a.duplicateOfIssueId)&&void 0!==c?c:void 0),le);A(1);T(" ",a.duplicateOfIssueId," ")}},iKa=function(a){a&1&&(E(0,"span"),Q(1),G());if(a&2){a=N().ngIf;var b=N(2);A(1);T(" ",b.STATUS_FULL_TEXT[a]," ")}},jKa=function(a,b){a&1&&(I(0,13),P(1,fKa,3,2,"span",14),P(2,gKa,3,2,"span",14),P(3,hKa,4,3,"span",14),P(4,iKa,2,1,"span",15),L());a&2&&(D("ngSwitch",b.ngIf),A(1),D("ngSwitchCase","ASSIGNED"),A(1),D("ngSwitchCase",
"ACCEPTED"),A(1),D("ngSwitchCase","DUPLICATE"))},kKa=function(a,b){a&1&&(I(0),H(1,"b-app-vote-button",17),L());if(a&2){a=b.ngIf;b=N().ngIf;var c=N(2),d;A(1);D("issueId",c.issueId)("voteCount",b.voteCount)("upvoted",null!==(d=a.voted)&&void 0!==d?d:!1)}},lKa=function(a){a&1&&(I(0),P(1,kKa,2,3,"ng-container",1),L());a&2&&(a=N(2),A(1),D("ngIf",a.issue.userData))},nKa=function(a){if(a&1){var b=v();I(0);E(1,"button",18);M("click",function(){w(b);var c=N(2);return z(mKa(c,c.childContextId))});Q(2," Unlink parent ");
G();L()}},oKa=function(a,b){a&1&&(E(0,"li"),Q(1," Last updated by "),H(2,"b-user-display",16),Q(3," on: "),H(4,"b-formatted-date-time",19),G());a&2&&(a=b.ngIf,b=N().ngIf,A(2),D("model",a)("hovercardEnabled",!1),A(2),D("timestamp",b.modifiedTimeMicros/1E3))},pKa=function(a,b){a&1&&(I(0),P(1,oKa,5,3,"li",1),E(2,"li"),Q(3," Reported by "),H(4,"b-user-display",16),Q(5," on: "),H(6,"b-formatted-date-time",19),G(),L());if(a&2){a=b.ngIf;b=N().ngIf;var c=N();A(1);D("ngIf",c.events[c.events.length-1].userPerformingActionUser);
A(3);D("model",b.reporterUser)("hovercardEnabled",!1);A(2);D("timestamp",a.createdTimeMicros/1E3)}},qKa=function(a){a&1&&(E(0,"li",20),H(1,"b-note-container",21),G());if(a&2){a=N(2);var b;A(1);var c=D("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",null!==(b=a.events[0].formattingMode)&&void 0!==b?b:a.FormattingMode.UNSPECIFIED_FORMATTING_MODE),d,e;b={commentNumber:1,unlinkifiedComment:(null==(d=a.events[0])?void 0:d.unlinkifiedComment)||
"",formattedComment:null==(e=a.events[0])?void 0:e.formattedComment};c("note",b)}},tKa=function(a,b){if(a&1){var c=v();I(0);E(1,"div",2)(2,"h3")(3,"a",3);Q(4);G();Q(5," \u00a0 ");E(6,"span",4);Q(7);G()();E(8,"ul")(9,"li",5);H(10,"b-access-level-indicator",6);G();E(11,"li",7)(12,"span",8);Q(13);G();Q(14," \u00a0 ");P(15,jKa,5,4,"ng-container",9);G()();E(16,"div",10)(17,"b-cc-button",11);M("onCc",function(e){w(c);var f=N();f.location&&e&&Mo(f.analytics,f.location+"_"+Aq.ISSUE_CARD,"add","CC");return z()});
G();P(18,lKa,2,1,"ng-container",1);P(19,nKa,3,0,"ng-container",1);G();E(20,"ul");P(21,pKa,7,4,"ng-container",1);P(22,qKa,2,4,"li",12);G()();L()}if(a&2){a=b.ngIf;b=N();var d;A(3);Wf("aria-label","Go to issue ",b.issueId,"");D("href",b.editIssue(b.issueId),le);A(1);kg(b.issueId);A(3);kg(a.title);A(3);D("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);A(2);D("ngClass",b.priorityClass(a.priority));A(1);kg(b.priority(a.priority));A(2);D("ngIf",a.status);
A(2);D("issueId",b.issueId)("ccState",rKa(b,null!==(d=a.ccUsers)&&void 0!==d?d:ng(15,sKa)));A(1);D("ngIf",b.issue.aggregatedData);A(1);D("ngIf",b.childContextId);A(2);D("ngIf",b.issue.aggregatedData);A(1);D("ngIf",b.events[0].unlinkifiedComment)}},uKa=function(a){a&1&&(E(0,"div")(1,"div",9),Q(2," An issue cannot reference itself. "),G()())},vKa=function(a){a&1&&(E(0,"mat-option",10)(1,"div",11),H(2,"b-spinner",12),G()());a&2&&(A(2),D("large",!0))},wKa=function(a){a&1&&(E(0,"mat-option",13),Q(1," No issues found. "),
G())},xKa=function(a){a&1&&H(0,"mat-icon",24);if(a&2){a=N().$implicit;var b=N();D("svgIcon",b.STATUS_ICON[a.status])}},yKa=function(a){a&1&&H(0,"b-issue-card",25,26);if(a&2){var b=O(1);a=N().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},AKa=function(a,b){a&1&&(E(0,"mat-option",14)(1,"div",15),P(2,xKa,1,1,"mat-icon",16),E(3,"strong",17),Q(4),G(),E(5,"onedev-hovercard",null,18),P(7,yKa,2,2,"b-issue-card",19),G(),E(8,"a",20),M("click",function(d){return d.stopPropagation()}),
H(9,"mat-icon",21),G(),E(10,"span",22),Q(11),G(),H(12,"div",23),U(13,"boldPrefixMatches"),G()());if(a&2){a=b.$implicit;var c=O(6);b=N();D("value",a);A(1);Uf("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");A(1);D("ngIf",a.status);A(1);ig("title",a.resourceId);A(1);T(" ",a.resourceId," ");A(4);D("onedevHovercardTrigger",c)("href",b.getIssueLink(a),le);A(3);kg(zKa(a));A(1);ig("title",a.displayText);D("innerHTML",rg(13,10,a.displayText,b.query),ke)}},
BKa=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"}},CKa=function(){},DKa=function(a){a&1&&P(0,CKa,0,0,"ng-template")},EKa=function(a,b){a&1&&(I(0),P(1,DKa,1,0,null,12),L());if(a&2){a=b.$implicit;N(2);var c=O(12);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,Bq,a))}},FKa=function(a){if(a&1){var b=v();E(0,"p",13)(1,"a",14);M("click",function(){w(b);var c=N(2);return z(c.onCancel.emit())});Q(2,"See all recent issues...");G()()}},GKa=function(a,b){a&1&&(I(0),P(1,EKa,2,4,"ng-container",10),P(2,FKa,3,0,"p",11),L());
a&2&&(a=b.$implicit,A(1),D("ngForOf",a),A(1),D("ngIf",0<a.length))},HKa=function(a){a&1&&(E(0,"h3",18),Q(1," Buganizer "),E(2,"span",19),Q(3,"(Your Team)"),G()())},IKa=function(){},JKa=function(a){a&1&&P(0,IKa,0,0,"ng-template")},KKa=function(a,b){a&1&&(I(0),P(1,JKa,1,0,null,12),L());if(a&2){a=b.$implicit;N(3);var c=O(12);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,Bq,a))}},LKa=function(a,b){a&1&&(E(0,"section",20),P(1,KKa,2,4,"ng-container",10),G());a&2&&(a=b.$implicit,A(1),D("ngForOf",
a))},MKa=function(a,b){if(a&1){var c=v();I(0);Q(1);E(2,"span",19);Q(3,"(This Issue's ");E(4,"a",22);M("click",function(){w(c);var d=N(3);return z(d.onCancel.emit())});Q(5,"Component");G();Q(6,")");G();L()}a&2&&(a=b.$implicit,b=N(3),A(1),T(" ",a.name," "),A(3),D("routerLinkObj",b.viewIssues(a.componentId)))},NKa=function(a){a&1&&(E(0,"h3",18),P(1,MKa,7,2,"ng-container",21),U(2,"async"),G());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.contextComponent$)))},OKa=function(){},PKa=function(a){a&1&&P(0,OKa,0,0,"ng-template")},
QKa=function(a,b){a&1&&(I(0),P(1,PKa,1,0,null,12),L());if(a&2){a=b.$implicit;N(3);var c=O(12);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,Bq,a))}},RKa=function(a,b){a&1&&(E(0,"section",20),P(1,QKa,2,4,"ng-container",10),G());a&2&&(a=b.$implicit,A(1),D("ngForOf",a))},SKa=function(){},TKa=function(a){a&1&&P(0,SKa,0,0,"ng-template")},UKa=function(a,b){a&1&&(I(0),P(1,TKa,1,0,null,12),L());if(a&2){a=b.$implicit;N(3);var c=O(12);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,
Bq,a))}},VKa=function(a){a&1&&(E(0,"p",24),Q(1,"No results."),G())},WKa=function(a,b){a&1&&(E(0,"section",20),P(1,UKa,2,4,"ng-container",10),P(2,VKa,2,0,"p",23),G());a&2&&(a=b.$implicit,A(1),D("ngForOf",a),A(1),D("ngIf",0===a.length))},XKa=function(a){a&1&&(E(0,"mat-tab",15),P(1,HKa,4,0,"h3",16),U(2,"async"),P(3,LKa,2,1,"section",17),U(4,"async"),P(5,NKa,3,3,"h3",16),U(6,"async"),P(7,RKa,2,1,"section",17),U(8,"async"),E(9,"h3",18),Q(10," All Issues "),G(),P(11,WKa,3,2,"section",17),U(12,"async"),
G());if(a&2){a=N();var b=O(14),c,d;A(1);D("ngIf",0!==(null==(c=V(2,8,a.myTeamResults$))?null:c.length));A(2);D("ngIf",V(4,10,a.myTeamResults$))("ngIfElse",b);A(2);D("ngIf",0!==(null==(d=V(6,12,a.triggerComponentResults$))?null:d.length));A(2);D("ngIf",V(8,14,a.triggerComponentResults$))("ngIfElse",b);A(4);D("ngIf",V(12,16,a.globalSearchResults$))("ngIfElse",b)}},YKa=function(){},ZKa=function(a){a&1&&P(0,YKa,0,0,"ng-template")},$Ka=function(a,b){a&1&&(I(0),P(1,ZKa,1,0,null,12),L());if(a&2){a=b.$implicit;
N(3);var c=O(12);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,Bq,a))}},aLa=function(a,b){a&1&&(E(0,"section",20),P(1,$Ka,2,4,"ng-container",10),G());a&2&&(a=b.$implicit,A(1),D("ngForOf",a))},bLa=function(a){a&1&&(E(0,"mat-tab",25)(1,"h3",18),Q(2," Exact ID Matches "),G(),P(3,aLa,2,1,"section",17),U(4,"async"),G());if(a&2){a=N();var b=O(14);A(3);D("ngIf",V(4,2,a.exactIdMatches$))("ngIfElse",b)}},cLa=function(a){a&1&&H(0,"b-issue-card",36,37);if(a&2){var b=O(1);a=N().$implicit;D("onedevIsHovercardReady",
b.init)("issueId",a.issueId)}},dLa=function(a){a&1&&(E(0,"span",38),Q(1),G());a&2&&(a=N().$implicit,A(1),T("(",null==a.aggregatedData?null:a.aggregatedData.voteCount," Votes)"))},eLa=function(a){a&1&&(E(0,"span",38),Q(1),G());a&2&&(a=N().$implicit,A(1),T("(",null==a?null:null==a.snapshot[0].duplicateIssueId?null:a.snapshot[0].duplicateIssueId.length," Duplicates)"))},fLa=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.$implicit,b=N(2),bg("chippy status-",a,""),A(1),T(" ",b.STATUS_TERSE[a]," "))},
lLa=function(a,b){if(a&1){var c=v();E(0,"onedev-hovercard",null,26);P(2,cLa,2,2,"b-issue-card",27);G();E(3,"div",28);M("click",function(){var e=w(c).$implicit,f=N();gLa(f,e);return z()});E(4,"span",29)(5,"mat-checkbox",30);M("click",function(e){return e.stopPropagation()})("change",function(){var e=w(c).$implicit,f=N();return z(gLa(f,e))});G();E(6,"span");Q(7);G();E(8,"span",31);Q(9);G()();E(10,"span")(11,"a",32);M("click",function(){var e=w(c).$implicit,f=N();f.selectedIds.clear();f.selectedIds.add(e.issueId);
f.onSelect.emit([{resourceId:e.issueId,displayText:e.snapshot[0].title,status:e.snapshot[0].status,relations:[]}]);f.onSave.emit();return z()});Q(12);G();P(13,dLa,2,1,"span",33);P(14,eLa,2,1,"span",33);G();E(15,"span",34);P(16,fLa,2,4,"span",35);G()()}if(a&2){a=b.$implicit;var d=O(1);b=N();A(5);D("checked",b.selectedIds.has(a.issueId));A(1);bg("p-chip priority-",hLa(a)," margin-s-right");A(1);T(" ",a.snapshot[0].priority," ");A(2);kg(a.issueId);A(2);D("onedevHovercardTrigger",d);A(1);kg(a.snapshot[0].title);
A(1);D("ngIf",iLa(a));A(1);D("ngIf",jLa(a));A(2);D("ngIf",("NEW"===a.snapshot[0].status||"ASSIGNED"===a.snapshot[0].status?!1:!0)&&kLa(a))}},mLa=function(a){a&1&&(E(0,"p",24),Q(1,"Loading..."),G())},nLa=function(a){return{resourceId:a,displayText:String(a),status:null,relations:[]}},oLa=function(a){return a.split(/[\s,]/g).map(function(b){return b.trim()}).filter(function(b){return 4<=b.length}).filter(function(b){return b.match(/^[0-9]+$/)})},pLa=function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.$implicit,
b=b.last,A(1),lg(" ",a.resourceId,"",b?"":","," "))},qLa=function(a){a&1&&(E(0,"span",8),P(1,pLa,2,2,"ng-container",9),G());a&2&&(a=N(),A(1),D("ngForOf",a.selectedIssues))},sLa=function(a){if(a&1){var b=v();I(0);E(1,"issue-picker-assistive",10);M("onSelect",function(c){w(b);N().selectedIssues=c;return z()})("onCancel",function(){w(b);var c=N();return z(c.onPressCancel())})("onSave",function(){w(b);var c=N();return z(rLa(c))});U(2,"async");G();L()}a&2&&(a=N(),A(1),D("contextIssueId",V(2,2,a.issueId$))("supportMultiSelect",
a.data.allowMultipleIds))},tLa=function(a,b){a&1&&(E(0,"a",19),Q(1),G());a&2&&(a=b.$implicit,b=b.last,hg("href","issues/",a.resourceId,"",le),A(1),lg(" ",a.resourceId,"",b?"":","," "))},uLa=function(a){a&1&&(E(0,"div",17),P(1,tLa,2,3,"a",18),G());a&2&&(a=N(2),A(1),D("ngForOf",a.selectedIssues))},vLa=function(a){a&1&&(E(0,"div",17)(1,"a",20)(2,"span",21),Q(3),G(),E(4,"span"),H(5,"mat-icon",22),G()()());a&2&&(a=N(2),A(1),hg("href","issues/",a.selectedIssues[0].resourceId,"",le),A(2),T(" ",a.selectedIssues[0].displayText,
" "))},xLa=function(a){if(a&1){var b=v();E(0,"div",23)(1,"div",24);M("click",function(){w(b);var c=N(2);return z(wLa(c))})("keyup.space",function(){w(b);var c=N(2);return z(wLa(c))});G()()}a&2&&(a=N(2),A(1),D("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),Uf("aria-checked",a.isQueryRestricted))},yLa=function(a){if(a&1){var b=v();E(0,"div",11);P(1,uLa,2,1,"div",12);P(2,vLa,6,2,"div",12);G();E(3,"div",13)(4,"div",14);P(5,xLa,2,2,"div",
15);E(6,"b-issue-picker",16);M("keydown.enter",function(){w(b);var c=N();return z(c.onEnter())})("entrySelect",function(c){w(b);N().selectedIssues=c;return z()})("queryChange",function(c){w(b);var d=N();return z(d.onQueryChange(c))});G()()()}a&2&&(a=N(),A(1),D("ngIf",1<a.selectedIssues.length),A(1),D("ngIf",1===a.selectedIssues.length),A(3),D("ngIf",!!a.queryRestriction),A(1),Zf("bv2-rel-issue-issue-picker-full-width",!!a.queryRestriction),D("defaultChoices",a.data.defaultChoices)("enableAsyncSearch",
!0)("currentResourceId",a.data.currentResourceId)("currentResourceType",a.data.currentResourceType)("allowMultipleIds",a.data.allowMultipleIds))},ALa=function(a,b){return!!Cq(b,"enableAssistiveIssuePickers")&&!zLa&&0===(a.defaultChoices||[]).length},CLa=function(a){if(a&1){var b=v();E(0,"b-app-bar-bulk-edit-menus",6);M("onBulkEdit",function(c){w(b);var d=N();return z(d.bulkEdit(c))})("onQuickBulkEdit",function(c){w(b);var d=N();return z(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){w(b);
var d=N();return z(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){w(b);var c=N();return z(c.bulkMarkIssueRead())});G()}a&2&&(a=N(),D("readStatePrompt",BLa(a)))},GLa=function(a){if(a&1){var b=v();E(0,"b-copy-issue-id-button",7);M("onClickCopyIssueIds",function(){w(b);var c=N();return z(DLa(c.copyIssueIdService,Dq(c)))})("onClickCopyIssueShortLinks",function(){w(b);var c=N();return z(ELa(c.copyIssueIdService,Dq(c)))})("onClickCopyAsIssueSearch",function(){w(b);var c=N();return z(FLa(c.copyIssueIdService,
Dq(c)))});G()}a&2&&(a=N(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},HLa=function(a){if(a&1){var b=v();E(0,"div",8)(1,"b-hotlist-picker",9);M("onApply",function(c){w(b);var d=N();return z(d.handleHotlistPickerSave(c))})("onCreate",function(c){w(b);var d=N();return z(d.onCreateHotlist.emit(c))})("onLoad",function(c){w(b);var d=N();return z(d.onLoadHotlist.emit(c))});G()()}a&2&&(a=N(),A(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",
a.hotlistChoices))},JLa=function(a){if(a&1){var b=v();E(0,"b-comment-box",16);M("commentChange",function(c){w(b);var d=N(2);return z(d.comment=c)})("onSubmit",function(){w(b);var c=N(2);return z(ILa(c))});G()}a&2&&(a=N(2),D("comment",a.comment)("showToolbar",!1))},KLa=function(a,b){a&1&&(E(0,"li"),Q(1),H(2,"b-access-level-indicator",19),G());a&2&&(a=b.$implicit,A(1),T(" ",a.path," "),A(1),D("accessLevel",a.accessLevel))},LLa=function(a){a&1&&(E(0,"div",17)(1,"div")(2,"strong"),Q(3,"You are commenting on issues in components that have external viewers:"),
G()(),E(4,"ul"),P(5,KLa,3,2,"li",18),G()());a&2&&(a=N(2),A(5),D("ngForOf",a.externalWarnings))},MLa=function(a){if(a&1){var b=v();E(0,"div",20)(1,"b-recaptcha",21);M("onUpdate",function(c){w(b);var d=N(2);return z(d.recaptchaResponse=c)});G()()}},NLa=function(a){a&1&&(E(0,"h1",10),Q(1,"Add comment"),G(),E(2,"mat-dialog-content"),P(3,JLa,1,2,"b-comment-box",11),P(4,LLa,6,1,"div",12),G(),P(5,MLa,2,0,"div",13),E(6,"mat-dialog-actions")(7,"button",14),Q(8," Cancel "),G(),E(9,"button",15),Q(10," Save "),
G()());a&2&&(a=N(),A(3),D("ngIf",a.comment),A(1),D("ngIf",0<a.externalWarnings.length),A(1),D("ngIf",a.enableRecaptcha),A(2),D("mat-dialog-close",!1),A(2),D("disabled",a.enableRecaptcha&&""===a.recaptchaResponse)("mat-dialog-close",!0))},OLa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Fq=function(a,b){b=void 0===b?{}:b;return null==b.id?"":Eq(a,b)},Eq=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=tqa(a,b));c&&(a=a+"#"+c);return a},PLa=
function(a){if(a&1){var b=v();E(0,"button",7);M("click",function(){w(b);var c=N(2);return z(c.removeHotlist.emit())});H(1,"mat-icon",8);G()}a&2&&(a=N(2),Zf("invisible",a.disabled),Uf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},QLa=function(a){a&1&&(I(0),E(1,"span",1)(2,"span",2)(3,"a",3),Q(4),G()(),P(5,PLa,2,4,"button",4),G(),E(6,"onedev-hovercard",null,5),H(8,"b-hotlist-card",6),G(),L());if(a&2){var b=O(7);a=N();A(1);Yf("padding-right",a.removable?0:"10px");Zf("muted",
a.disabled);D("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);A(2);D("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),le);Uf("aria-label",a.getAriaLabel(a.hotlist));A(1);kg(a.hotlist.name);A(1);D("ngIf",a.removable);A(3);D("hotlist",a.hotlist)}},RLa=function(a,b){if(a&1){var c=v();E(0,"div",9);M("click",function(){var d=w(c).$implicit,e=N();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return z()});E(1,"div",10);H(2,"mat-icon",11);E(3,"span",12);
Q(4);G()();E(5,"div",13);Q(6);G()()}a&2&&(a=b.$implicit,A(2),D("svgIcon",a.icon),A(2),T(" ",a.title," "),A(2),T(" ",a.description," "))},SLa=function(){return{color:"accent"}},TLa=function(a){a&1&&(E(0,"span"),Q(1,"Edit"),G())},ULa=function(a){a&1&&(E(0,"span"),Q(1,"Cancel"),G())},ZLa=function(a){if(a&1){var b=v();I(0);E(1,"td")(2,"div")(3,"div",11);Q(4);G();E(5,"div",12)(6,"a",13);Q(7);G()()()();E(8,"td",3)(9,"mat-radio-button",14);M("change",function(d){w(b);var e=N(2);return z(VLa(e,d.value))});
G()();E(10,"td",3)(11,"b-button",15);M("onAction",function(){w(b);var d=N().$implicit,e=N();return z(WLa(e,d))});P(12,TLa,2,0,"span",9);P(13,ULa,2,0,"span",9);G()();E(14,"td",3)(15,"b-button",16);M("onAction",function(){w(b);var d=N().$implicit,e=N();return z(XLa(e,d))});Q(16," Delete ");G()();L()}if(a&2){a=N().$implicit;var c=N();A(3);Zf("selected",Gq(c,a));A(1);T(" ",a.name," ");A(2);D("href",YLa(c,a),le);Uf("aria-label",a.name+"- Click to create a new issue");A(1);T(" ",YLa(c,a)," ");A(2);hg("id",
"template-default-radio-",a.index,"");D("checked",c.defaultIndex===a.index)("aria-label","Make template "+a.name+" as default template")("value",a.index);A(2);D("bAriaLabel",Gq(c,a)?"Cancel editing "+a.name:"Edit "+a.name);A(1);D("ngIf",!Gq(c,a));A(1);D("ngIf",Gq(c,a));A(2);D("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},$La=function(a){a&1&&(E(0,"h2",65),Q(1," Create Template "),G())},aMa=function(a){a&1&&(E(0,"h2",65),Q(1),G());a&2&&(a=N(2).$implicit,
A(1),lg(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},bMa=function(a){if(a&1){var b=v();E(0,"div",20)(1,"b-issue-access-limits-dropdown",66);M("updatedAccessLimitLevel",function(c){w(b);var d=N(2).$implicit;return z(d.editableTemplate.onAccessLimitLevelSelected(c))});G()()}a&2&&(a=N(2).$implicit,A(1),D("defaultAccessLimitLevel",a.editableTemplate.issueAccessLimitLevel))},dMa=function(a,b){if(a&1){var c=v();E(0,"button",67);M("click",function(){var e=w(c).$implicit,
f=N(2).$implicit,h=N();f.issueType=e.value;return z(cMa(h))});Q(1);G()}if(a&2){a=b.$implicit;b=N(2).$implicit;var d;D("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");A(1);T(" ",a.displayText," ")}},eMa=function(a,b){if(a&1){var c=v();E(0,"button",68);M("click",function(){var d=w(c).$implicit,e=N(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return z()});Q(1);G()}a&2&&(a=b.$implicit,b=N(2).$implicit,D("disabled",b.editableTemplate.priority===
a.value),A(1),T(" ",a.displayText," "))},fMa=function(a,b){if(a&1){var c=v();E(0,"button",68);M("click",function(){var d=w(c).$implicit,e=N(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return z()});Q(1);G()}a&2&&(a=b.$implicit,b=N(2).$implicit,D("disabled",b.editableTemplate.severity===a.value),A(1),T(" ",a.displayText," "))},gMa=function(a,b){if(a&1){var c=v();E(0,"div",69)(1,"b-hotlist-chip",70);M("removeHotlist",function(){var d=w(c).$implicit,e=N(3);return z(e.removeHotlist(d.hotlistId))});
G()()}a&2&&(a=b.$implicit,A(1),D("hotlist",a))},hMa=function(a){a&1&&(E(0,"h3"),Q(1,"Custom issue fields"),G())},iMa=function(a){if(a&1){var b=v();E(0,"input",78);M("ngModelChange",function(d){w(b);var e=N().$implicit,f=N(2).$implicit;return z(f.editableTemplate.customFieldValues[e.id].textValue=d)})("ngModelChange",function(){w(b);N(3).$implicit.editableTemplate.dirty=!0;return z()});G()}if(a&2){a=N().$implicit;var c=N(2).$implicit;Wf("id","template-cf-",a.id,"");D("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},
jMa=function(a){if(a&1){var b=v();E(0,"input",79);M("ngModelChange",function(d){w(b);var e=N().$implicit,f=N(2).$implicit;return z(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){w(b);N(3).$implicit.editableTemplate.dirty=!0;return z()});G()}if(a&2){a=N().$implicit;var c=N(2).$implicit;Wf("id","template-cf-",a.id,"");D("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},lMa=function(a){if(a&1){var b=v();E(0,"b-edit-field",80);M("valueChange",
function(h){w(b);var k=N().$implicit,q=N(2).$implicit,t=N();return z(t.setCustomField(q,k.id,h))});G()}if(a&2){a=N().$implicit;var c=N(2).$implicit,d=N(),e,f;Wf("id","template-cf-",a.id,"");D("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,kMa))}},mMa=function(a){if(a&1){var b=v();E(0,"bv2-input-date-picker",
81);M("boundValueChange",function(e){w(b);var f=N().$implicit,h=N(2).$implicit,k=N();return z(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){w(b);N(3).$implicit.editableTemplate.dirty=!0;return z()});G()}if(a&2){a=N().$implicit;var c=N(2).$implicit,d;Wf("id","template-cf-",a.id,"");D("boundValue",null!==(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},oMa=function(a){if(a&1){var b=v();E(0,"b-list-field",82);M("valuesChange",
function(e){w(b);var f=N().$implicit,h=N(2).$implicit,k=N();return z(k.setCustomField(h,f.id,e.values))});G()}if(a&2){a=N().$implicit;var c=N(2).$implicit,d=N();Wf("id","template-cf-",a.id,"");D("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",nMa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},pMa=function(a,b){a&1&&(E(0,"div")(1,"div",21)(2,"label",71),Q(3),G()(),E(4,"div",72),P(5,iMa,1,2,"input",73),P(6,jMa,1,2,"input",74),P(7,lMa,1,7,
"b-edit-field",75),P(8,mMa,1,2,"bv2-input-date-picker",76),P(9,oMa,1,6,"b-list-field",77),G()());a&2&&(a=b.$implicit,bg("cell-",a.cellType,""),A(2),hg("for","template-cf-",a.id,""),A(1),lg("",a.name," (id=",a.id,")"),A(1),D("ngSwitch",a.type),A(1),D("ngSwitchCase","TEXT"),A(1),D("ngSwitchCase","NUMERIC"),A(1),D("ngSwitchCase","ENUM"),A(1),D("ngSwitchCase","DATE"))},sMa=function(a){if(a&1){var b=v();E(0,"td",17)(1,"div",18);P(2,$La,2,0,"h2",19);P(3,aMa,2,2,"h2",19);E(4,"div",20)(5,"div",21)(6,"label",
22);Q(7,"Template Name");G()();E(8,"input",23);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.name=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;return z()});G()();E(9,"div",20)(10,"div",21)(11,"label",24);Q(12,"Description of Template");G()();E(13,"input",25);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.description=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;return z()});
G()();E(14,"div",26)(15,"h3");Q(16," Standard issue fields ");G();P(17,bMa,2,1,"div",27);E(18,"div",20)(19,"div",21)(20,"label",28);Q(21,"Title");G()();E(22,"input",29);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.title=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;return z()});G()();E(23,"div",30)(24,"div",21)(25,"label",31);Q(26,"Type");G()();E(27,"button",32)(28,"span");Q(29);G();H(30,"b-icon",33);G();E(31,"mat-menu",34,35);P(33,
dMa,2,3,"button",36);G()();E(34,"div",30)(35,"div",21)(36,"label",37);Q(37,"Priority");G()();E(38,"button",38)(39,"span");Q(40);G();H(41,"b-icon",33);G();E(42,"mat-menu",34,39);P(44,eMa,2,2,"button",40);G()();E(45,"div",30)(46,"div",21)(47,"label",41);Q(48,"Severity");G()();E(49,"button",42)(50,"span");Q(51);G();H(52,"b-icon",33);G();E(53,"mat-menu",34,43);P(55,fMa,2,2,"button",40);G()();E(56,"div",44)(57,"div",21)(58,"label",45);Q(59,"Default Hotlists");G()();E(60,"b-hotlist-picker",46);M("onApply",
function(h){w(b);var k=N(2);return z(k.handleHotlistPickerSave(h))})("onCreate",function(h){w(b);var k=N(2);return z(k.createHotlist(h))})("onLoad",function(h){w(b);var k=N(2);return z(k.loadHotlist(h))});G();P(61,gMa,2,1,"div",47);G();H(62,"div",48);E(63,"div",49)(64,"div",21)(65,"label",50);Q(66,"Assignee");G()();E(67,"input",51);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.assignee=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;
return z()});G()();E(68,"div",49)(69,"div",21)(70,"label",52);Q(71,"Verifier");G()();E(72,"input",53);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.verifier=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;return z()});G()();E(73,"div",20)(74,"div",21)(75,"label",54);Q(76,"CC");G()();E(77,"input",55);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(qMa(k.editableTemplate,h))});G()();E(78,"div",20)(79,"div",21)(80,"label",
56);Q(81,"Initial Comment");G()();E(82,"textarea",57);M("ngModelChange",function(h){w(b);var k=N().$implicit;return z(k.editableTemplate.comment=h)})("ngModelChange",function(){w(b);N().$implicit.editableTemplate.dirty=!0;return z()});Q(83,"              ");G()();E(84,"div",20)(85,"div",21)(86,"label",58);Q(87,"In Prod");G()();E(88,"b-slide-toggle",59);M("modelChange",function(){w(b);var h=N().$implicit.editableTemplate;h.inProd=!h.inProd;h.dirty=!0;return z()});G()()();E(89,"div",60);P(90,hMa,2,
0,"h3",9);P(91,pMa,10,11,"div",61);G();E(92,"div",62)(93,"b-button",63);M("onAction",function(){w(b);var h=N(2);return z(rMa(h))});Q(94," Save ");G();E(95,"b-button",64);M("onAction",function(){w(b);var h=N(2);return z(Hq(h))});Q(96," Cancel ");G()()()()}if(a&2){var c=O(32),d=O(43),e=O(54);a=N().$implicit;var f=N();A(2);D("ngIf",a.editableTemplate.new);A(1);D("ngIf",!a.editableTemplate.new);A(5);D("ngModel",a.editableTemplate.name);A(5);D("ngModel",a.editableTemplate.description);A(4);D("ngIf",f.enableIssueAccessLimits);
A(5);D("ngModel",a.editableTemplate.title);A(5);D("matMenuTriggerFor",c);A(2);kg(a.issueType);A(2);D("overlapTrigger",!0);A(2);D("ngForOf",f.issueTypeChoices);A(5);D("matMenuTriggerFor",d);A(2);kg(a.editableTemplate.priority);A(2);D("overlapTrigger",!0);A(2);D("ngForOf",f.priorityChoices);A(5);D("matMenuTriggerFor",e);A(2);kg(a.editableTemplate.severity);A(2);D("overlapTrigger",!0);A(2);D("ngForOf",f.severityChoices);A(5);D("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);A(1);D("ngForOf",
f.selectedHotlists);A(6);D("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.assignee);A(5);D("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);A(5);D("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));A(5);D("ngModel",a.editableTemplate.comment);A(6);D("model",a.editableTemplate.inProd);A(2);D("ngIf",0<f.customFieldRows.length);A(1);D("ngForOf",f.customFieldRows);A(2);D("disabled",!a.editableTemplate.isDirty())}},tMa=function(a,b){a&1&&(E(0,
"tr"),P(1,ZLa,17,15,"ng-container",9),P(2,sMa,97,32,"td",10),G());a&2&&(a=b.$implicit,A(1),D("ngIf",!a.editableTemplate),A(1),D("ngIf",!!a.editableTemplate))},uMa=function(a,b){a&1&&(E(0,"div",83),Q(1),G(),E(2,"div",84)(3,"button",85),Q(4," Cancel "),G(),E(5,"button",86),Q(6," Confirm "),G()());a&2&&(a=b.$implicit,A(1),T(' Are you sure you want to delete the template "',a.name,'"? '),A(2),D("mat-dialog-close",!1),A(2),D("mat-dialog-close",!0))},vMa=function(a,b){a&1&&(E(0,"div",83),Q(1),G(),E(2,"div",
84)(3,"button",87),Q(4," Cancel "),G(),E(5,"button",87),Q(6," Don't Save "),G(),E(7,"button",88),Q(8," Save "),G()());a&2&&(a=b.$implicit,A(1),T(' Do you want to save changes to template "',a.name,'" before closing? '),A(2),D("mat-dialog-close",void 0),A(2),D("mat-dialog-close",!1),A(2),D("mat-dialog-close",!0))},wMa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),A(1),T(" (",a.objectiveDisplayText," total) "))},xMa=function(a){a&1&&(E(0,"div"),H(1,"b-slo-time-indicator",1),G());a&2&&(a=N(),A(1),
D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.assignmentSlo)("includeObjective",!0))},yMa=function(a){a&1&&(E(0,"div"),H(1,"b-slo-time-indicator",2),G());a&2&&(a=N(),A(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.responseSlo)("includeObjective",!0))},zMa=function(a){a&1&&(E(0,"div"),H(1,"b-slo-time-indicator",3),G());a&2&&(a=N(),A(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.closureSlo)("includeObjective",!0))},AMa=function(a){a&1&&(E(0,"div",8),H(1,"b-slo-status-summary",9),
G());a&2&&(a=N(),A(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric",a.onlyShowMetric))},BMa=function(a){a&1&&(I(0),Q(1," No applicable SLO rules "),L())},CMa=function(a){a&1&&(I(0),Q(1," No SLO set on issue component "),L())},DMa=function(a){a&1&&(E(0,"div",10),P(1,BMa,2,0,"ng-container",7),P(2,CMa,2,0,"ng-container",7),G());a&2&&(a=N(),A(1),D("ngIf",a.editSloLink),A(1),D("ngIf",!a.editSloLink))},EMa=function(a){if(a&1){var b=v();E(0,"a",12);M("click",function(){w(b);
var c=N(2);return z(c.trackOpenSlo())});Q(1);G()}a&2&&(a=N(2),D("href",a.editSloLink,le),A(1),T(" ",a.sloName," "))},FMa=function(a){a&1&&(E(0,"span"),Q(1," (private) "),G())},GMa=function(a){a&1&&(E(0,"span"),Q(1," SLO definition: "),P(2,EMa,2,2,"a",11),P(3,FMa,2,0,"span",7),G());a&2&&(a=N(),A(2),D("ngIf",a.sloName),A(1),D("ngIf",!a.sloName))},Iq=function(a,b){b=void 0===b?document.documentElement:b;return(0,W.concat)((0,W.defer)(function(){return(0,W.of)(b.querySelector(a))}),HMa(b,{childList:!0,
subtree:!0}).pipe(hf(function(c){return c.some(function(d){return 0<d.addedNodes.length})}),C(function(){return b.querySelector(a)}))).pipe(hf(fm),sf(),C(function(c){return c}))},HMa=function(a,b){return new W.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},Jq=function(a,b){return function(c){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}},IMa=function(a,b){a&1&&H(0,"col");a&2&&bg("",b.$implicit.name,
"-col")},JMa=function(a){a&1&&cg(0)},LMa=function(a,b){a&1&&(I(0),P(1,JMa,1,0,"ng-container",8),L());a&2&&(a=b.$implicit,b=N(),A(1),D("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",og(2,KMa,a)))},MMa=function(a){a&1&&cg(0)},OMa=function(a,b){a&1&&(I(0),P(1,MMa,1,0,"ng-container",8),L());if(a&2){a=b.$implicit;b=b.index;var c=N(),d=c.$implicit;c=c.index;var e=N().ngIf;A(1);D("ngTemplateOutlet",e[b])("ngTemplateOutletContext",qg(NMa,d,a,c))}},
PMa=function(a,b){if(a&1){var c=v();E(0,"tr",10,11);M("click",function(){var e=w(c).index,f=N(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return z()})("focus",function(){var e=w(c).index,f=N(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return z()});P(2,OMa,2,6,"ng-container",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=N(2);Zf("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",
d.focusedRowIndex===b);Uf("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));A(2);D("ngForOf",d.columns)}},QMa=function(a){a&1&&(I(0),P(1,PMa,3,12,"tr",9),L());a&2&&(a=N(),A(1),D("ngForOf",a.list))},RMa=function(a,b){a&1&&(E(0,"th"),H(1,"pop-grid-default-th",12),G());a&2&&(a=b.column,A(1),D("column",a))},SMa=function(a,b){a&1&&(E(0,"td"),H(1,"pop-grid-default-cell",13),G());a&2&&(a=b.row,b=b.column,A(1),D("row",a)("column",b))},TMa=function(a){if(a&
1){var b=v();E(0,"b-sortable-header",3);M("sortChanged",function(c){w(b);var d=N();d.grid&&d.grid.sortChange.emit(c);return z()});G()}a&2&&(a=N(),D("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||""))},UMa=function(a){a&1&&(E(0,"div",4),Q(1),G());a&2&&(a=N(),Uf("aria-label",a.column.label),A(1),T(" ",a.column.label," "))},VMa=function(a){if(a&1){var b=v();E(0,
"div",13,14);M("menuOpened",function(){w(b);var d=N();return z(d.menuOpen=!0)})("menuClosed",function(){w(b);var d=N();return z(d.menuOpen=!1)})("keydown.enter",function(d){w(b);Kq(O(1));d.preventDefault();return z(d.stopPropagation())})("keydown.space",function(){w(b);var d=O(1);return z(Kq(d))});G()}if(a&2){a=N();var c=O(5);Zf("columnpicker-button-active",a.menuOpen);Wf("aria-label","",a.column.fullLabel," column configuration");D("matMenuTriggerFor",c)}},YMa=function(a,b){if(a&1){var c=v();E(0,
"button",15);M("click",function(){var d=w(c).$implicit,e=N();return z(WMa(e,d.name))});H(1,"b-icon",16);E(2,"span",17);Q(3);G()()}a&2&&(a=b.$implicit,b=N(),Zf("b-menu-item-checked",XMa(a.name).get(b.listViewPrefs)),A(3),T(" ",a.menuItem," "))},ZMa=function(a){a&1&&H(0,"mat-divider")},$Ma=function(a){if(a&1){var b=v();E(0,"button",22);M("click",function(){w(b);var c=N().$implicit,d=N().before,e=N();return z(e.add(c,d))});Q(1);G()}a&2&&(a=N().$implicit,D("matTooltip",a.tooltip),A(1),T(" ",a.fullLabel,
" "))},bNa=function(a){a&1&&(E(0,"button",9)(1,"span"),Q(2),G()());if(a&2){a=N().$implicit;var b=N().before;N();var c=O(18);D("matMenuTriggerFor",c)("matMenuTriggerData",pg(3,aNa,a.columns,b));A(2);kg(a.label)}},cNa=function(a,b){a&1&&(I(0),P(1,$Ma,2,2,"button",20),P(2,bNa,3,6,"button",21),L());a&2&&(a=b.$implicit,b=N(2),A(1),D("ngIf",b.isIssueGridColumn(a)),A(1),D("ngIf",!b.isIssueGridColumn(a)))},eNa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){var c=w(b).before,d=N();return z(dNa(d,
c))});Q(1," Custom Field ");G();H(2,"mat-divider");P(3,cNa,3,2,"ng-container",19)}a&2&&(a=N(),A(3),D("ngForOf",a.currentAvailableItems))},fNa=function(a,b){if(a&1){var c=v();E(0,"button",18);M("click",function(){var d=w(c).$implicit,e=N().before,f=N();return z(f.add(d,e))});Q(1);G()}a&2&&(a=b.$implicit,A(1),T(" ",a.fullLabel," "))},gNa=function(a,b){a&1&&P(0,fNa,2,1,"button",23);a&2&&D("ngForOf",b.columns)},XMa=function(a){switch(a){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("fe`"+a);}},hNa=function(a){a&1&&(I(0),Q(1," This issue has not been modified since "),H(2,"b-formatted-date-time",1),Q(3," and is scheduled for deletion on "),E(4,"strong"),H(5,"b-formatted-date-time",1),
G(),Q(6,". "),E(7,"a",2),Q(8,"Learn more"),G(),L());a&2&&(a=N(),A(2),D("mode","date")("timestamp",a.modifiedTime),A(3),D("mode","date")("timestamp",a.retentionExpireTime),A(2),D("href",a.documentationLink,le))},iNa=function(a){a&1&&(E(0,"b-base-chip",1)(1,"div",2),H(2,"retention-text",3),G(),E(3,"div",4),H(4,"retention-help-text",5),G()());a&2&&(a=N(),D("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),A(2),D("retentionState",a.retentionState)("compactMode",
a.compactMode),A(2),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},jNa=function(a){var b=void 0===b?new Date:b;var c=Vo(Nl(a.scheduledDeletionTime));b=b.getTime();a=(a=Eqa(a.retentionPeriod))?1E3*a.getSeconds()+(a.getNanos()||0)/1E6:0;return b>=c-Math.max(12096E5,.2*a)},kNa=function(a){a&1&&cg(0)},lNa=function(a,b){a&1&&(E(0,"th",22),P(1,kNa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},mNa=function(a){a&
1&&cg(0)},nNa=function(a,b){a&1&&(E(0,"th",24),P(1,mNa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},pNa=function(a){if(a&1){var b=v();I(0);E(1,"mat-pseudo-checkbox",26);M("click",function(c){w(b);var d=N(2);c.stopPropagation();return z(d.toggleAllIssueSelection())})("keydown.enter",function(c){w(b);var d=N(2);c.stopPropagation();return z(d.toggleAllIssueSelection())})("keydown.space",function(c){w(b);var d=N(2);c.stopPropagation();
return z(d.toggleAllIssueSelection())});G();L()}a&2&&(a=N(2),A(1),D("state",a.getHeaderCheckboxState()),Uf("aria-checked",oNa(a)))},qNa=function(a,b){a&1&&(E(0,"th",25),P(1,pNa,2,2,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},rNa=function(a){a&1&&cg(0)},sNa=function(a,b){a&1&&(E(0,"th"),P(1,rNa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},
tNa=function(a){a&1&&(I(0),H(1,"pop-grid-default-th",27),L());a&2&&(a=N().column,A(1),D("column",a))},uNa=function(a,b){a&1&&(E(0,"th"),P(1,tNa,2,1,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},vNa=function(a){if(a&1){var b=v();E(0,"b-column-picker",30);M("selectedColumnsChange",function(d){w(b);var e=N(3);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return z()});G()}if(a&2){a=N(2).column;var c=N();D("column",
a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},wNa=function(a){a&1&&H(0,"pop-grid-default-th",27);a&2&&(a=N(2).column,D("column",a))},xNa=function(a){a&1&&(I(0),P(1,vNa,1,3,"b-column-picker",28),P(2,wNa,1,1,"pop-grid-default-th",29),L());a&2&&(a=N(2),A(1),D("ngIf",a.enableColumnSaving),A(1),D("ngIf",!a.enableColumnSaving))},yNa=function(a,b){a&1&&(E(0,"th"),P(1,xNa,3,2,"ng-container",23),G());a&2&&(a=b.column,b=N(),Uf("data-stable-column-name",a.name),A(1),D("ngIf",b.isIssueGridColumn(a)))},
zNa=function(a){a&1&&cg(0)},ANa=function(a){a&1&&(E(0,"td",22),P(1,zNa,1,0,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},BNa=function(a){a&1&&cg(0)},CNa=function(a){a&1&&(E(0,"td",31),P(1,BNa,1,0,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},DNa=function(a){if(a&1){var b=v();I(0);E(1,"mat-pseudo-checkbox",32);M("click",function(c){w(b);var d=N(),e=d.index;d=d.row;var f=N();c.stopPropagation();return z(f.onCheckboxClicked(c,e,d))});G();L()}a&2&&(a=N().row,
A(1),D("state",a.selected?"checked":"unchecked"),Uf("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},ENa=function(a){a&1&&(E(0,"td",25),P(1,DNa,2,3,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},FNa=function(a){if(a&1){var b=v();I(0);E(1,"b-star-toggle",34);M("starClicked",function(){w(b);var d=N().row,e=N();return z(e.toggleStar(d))});G();L()}if(a&2){a=N().row;var c=N();A(1);D("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage",
"Un-star this issue")}},GNa=function(a){a&1&&(E(0,"td",33),P(1,FNa,2,4,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},HNa=function(a){a&1&&(I(0),E(1,"span"),Q(2),G(),L());a&2&&(a=N().row,A(1),Uf("title",a.position),A(1),T(" ",a.position," "))},INa=function(a){a&1&&(E(0,"td"),P(1,HNa,3,2,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},JNa=function(a){a&1&&(I(0),E(1,"a",36),Q(2),G(),L());if(a&2){a=N().row;var b=N();A(1);D("href",b.paths.editIssue(a.issueId),
le);Uf("title",a.title);A(1);T(" ",a.issueId," ")}},KNa=function(a){a&1&&(E(0,"td",35),P(1,JNa,3,3,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},LNa=function(a){a&1&&H(0,"archived-issue-indicator")},MNa=function(a,b){a&1&&H(0,"b-hotlist-chip-smart",47);a&2&&D("id",b.$implicit)("removable",!1)},NNa=function(a){a&1&&(E(0,"div",45),P(1,MNa,1,2,"b-hotlist-chip-smart",46),G());a&2&&(a=N(2).row,A(1),D("ngForOf",a.hotlistId))},ONa=function(a){a&1&&(I(0),E(1,"div",38),P(2,LNa,1,0,"archived-issue-indicator",
23),H(3,"b-access-level-indicator",39)(4,"b-tracker-chip-smart",40)(5,"b-retention-chip",41),E(6,"div",42)(7,"a",43),Q(8),G()(),P(9,NNa,2,1,"div",44),G(),L());if(a&2){a=N().row;var b=N();A(1);Zf("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);A(1);D("ngIf",a.archived);A(1);D("accessLevel",a.accessLevel)("compactMode",!0);A(1);D("trackerId",a.trackerId)("compactMode",!0);A(1);D("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);
A(2);D("href",b.paths.editIssue(a.issueId),le);Uf("title",a.title);A(1);T(" ",a.title," ");A(1);D("ngIf",b.listViewPrefs&&b.listViewPrefs.showHotlists)}},PNa=function(a){a&1&&(E(0,"td",37),P(1,ONa,10,15,"ng-container",23),G());a&2&&(a=N(),Zf("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),A(1),D("ngIf",a.isIssueRow()))},RNa=function(a){a&1&&(I(0),E(1,"div",49),Q(2),G(),L());if(a&2){a=N().row;var b=N();A(1);D("ngClass",qg(QNa,b.isLowPriority(a),b.isHighPriority(a),b.isP0Priority(a)));
A(1);T(" P",a.priority," ")}},SNa=function(a){a&1&&(E(0,"td",48),P(1,RNa,3,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},TNa=function(a){a&1&&(I(0),E(1,"div",49),Q(2),G(),L());a&2&&(a=N().row,N(),A(1),D("ngClass",qg(QNa,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),A(1),T(" S",a.severity," "))},UNa=function(a){a&1&&(E(0,"td",50),P(1,TNa,3,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},VNa=function(a){a&1&&H(0,"mat-icon",56);if(a&
2){a=N().$implicit;var b=N(3);D("svgIcon",b.STATUS_ICON[a])}},WNa=function(a){a&1&&(I(0),Q(1),L());if(a&2){a=N().$implicit;var b=N(3);A(1);kg(b.STATUS_TERSE[a])}},XNa=function(a){a&1&&(E(0,"span"),Q(1),G());if(a&2){a=N().$implicit;var b=N(3);bg("chippy status-",a," margin-left-auto");A(1);T(" ",b.STATUS_TERSE[a]," ")}},YNa=function(a,b){a&1&&(I(0),E(1,"span",52),P(2,VNa,1,1,"mat-icon",53),P(3,WNa,2,1,"ng-container",54),P(4,XNa,2,4,"span",55),G(),L());a&2&&(a=b.$implicit,b=N(3),A(1),D("ngSwitch",null==
b.listViewPrefs?null:null==b.listViewPrefs.fieldStatus?null:b.listViewPrefs.fieldStatus.mode)("title",b.STATUS_FULL_TEXT[a]===b.STATUS_TERSE[a]?"":b.STATUS_FULL_TEXT[a]),A(1),D("ngSwitchCase","icon"),A(1),D("ngSwitchCase","plain"))},ZNa=function(a){a&1&&(I(0),P(1,YNa,5,4,"ng-container",23),L());if(a&2){a=N().row;var b=N();A(1);D("ngIf",b.convertIssueStatusStrToTag(a.status))}},$Na=function(a){a&1&&(E(0,"td",51),P(1,ZNa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},aOa=function(a){a&
1&&(I(0),Q(1),U(2,"enumToHuman"),L());a&2&&(a=N().row,A(1),T(" ",V(2,1,a.type)," "))},bOa=function(a){a&1&&(E(0,"td",57),P(1,aOa,3,3,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},cOa=function(a){a&1&&(E(0,"b-person-hovercard",60),U(1,"omitObfuscatedEmail"),Q(2),G());a&2&&(a=N(2).row,D("email",V(1,2,a.reporter)),A(2),T(" ",a.reporter," "))},dOa=function(a){a&1&&(E(0,"span"),Q(1,"--"),G())},eOa=function(a){a&1&&(I(0),P(1,cOa,3,4,"b-person-hovercard",59),U(2,"omitObfuscatedEmail"),
P(3,dOa,2,0,"span",23),L());a&2&&(a=N().row,A(1),D("ngIf",V(2,2,a.reporter)),A(2),D("ngIf",!a.reporter))},fOa=function(a){a&1&&(E(0,"td",58),P(1,eOa,4,4,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},gOa=function(a){a&1&&(E(0,"b-person-hovercard",60),U(1,"omitObfuscatedEmail"),Q(2),G());a&2&&(a=N(2).row,D("email",V(1,2,a.assignee)),A(2),T(" ",a.assignee," "))},hOa=function(a){a&1&&(E(0,"span"),Q(1,"--"),G())},iOa=function(a){a&1&&(I(0),P(1,gOa,3,4,"b-person-hovercard",59),U(2,
"omitObfuscatedEmail"),P(3,hOa,2,0,"span",23),L());a&2&&(a=N().row,A(1),D("ngIf",V(2,2,a.assignee)),A(2),D("ngIf",!a.assignee))},jOa=function(a){a&1&&(E(0,"td",58),P(1,iOa,4,4,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},kOa=function(a){a&1&&(E(0,"b-person-hovercard",60),U(1,"omitObfuscatedEmail"),Q(2),G());a&2&&(a=N(2).row,D("email",V(1,2,a.verifier)),A(2),T(" ",a.verifier," "))},lOa=function(a){a&1&&(E(0,"span"),Q(1,"--"),G())},mOa=function(a){a&1&&(I(0),P(1,kOa,3,4,"b-person-hovercard",
59),U(2,"omitObfuscatedEmail"),P(3,lOa,2,0,"span",23),L());a&2&&(a=N().row,A(1),D("ngIf",V(2,2,a.verifier)),A(2),D("ngIf",!a.verifier))},nOa=function(a){a&1&&(E(0,"td",58),P(1,mOa,4,4,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},oOa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.cc)),A(2),T(" ",V(4,4,a.cc)," "))},pOa=function(a){a&1&&(E(0,"td",58),P(1,oOa,5,6,"ng-container",23),G());a&2&&(a=N(),
A(1),D("ngIf",a.isIssueRow()))},qOa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.changelist)),A(2),T(" ",V(4,4,a.changelist)," "))},rOa=function(a){a&1&&(E(0,"td",58),P(1,qOa,5,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},sOa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.postmortem)),A(2),T(" ",V(4,4,a.postmortem),
" "))},tOa=function(a){a&1&&(E(0,"td",58),P(1,sOa,5,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},uOa=function(a){a&1&&cg(0)},vOa=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},xOa=function(a,b){a&1&&(I(0),P(1,uOa,1,0,"ng-container",62),P(2,vOa,2,0,"span",23),L());if(a&2){a=b.$implicit;b=b.last;N(3);var c=O(48);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(3,wOa,a));A(1);D("ngIf",!b)}},yOa=function(a){a&1&&(I(0),P(1,xOa,3,5,"ng-container",61),L());a&2&&(a=N().row,
A(1),D("ngForOf",a.blockingIssueId))},zOa=function(a){a&1&&(E(0,"td",58),P(1,yOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},AOa=function(a){a&1&&cg(0)},BOa=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},COa=function(a,b){a&1&&(I(0),P(1,AOa,1,0,"ng-container",62),P(2,BOa,2,0,"span",23),L());if(a&2){a=b.$implicit;b=b.last;N(3);var c=O(48);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(3,wOa,a));A(1);D("ngIf",!b)}},DOa=function(a){a&1&&(I(0),P(1,COa,3,5,"ng-container",
61),L());a&2&&(a=N().row,A(1),D("ngForOf",a.blockedByIssueId))},EOa=function(a){a&1&&(E(0,"td",58),P(1,DOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},FOa=function(a){a&1&&cg(0)},GOa=function(a){a&1&&(I(0),P(1,FOa,1,0,"ng-container",62),L());if(a&2){a=N(2).row;N();var b=O(48);A(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,wOa,a.duplicateOfIssueId))}},HOa=function(a){a&1&&(I(0),P(1,GOa,2,4,"ng-container",23),L());a&2&&(a=N().row,A(1),D("ngIf",a.duplicateOfIssueId))},
IOa=function(a){a&1&&(E(0,"td",58),P(1,HOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},JOa=function(a){a&1&&(I(0),H(1,"b-formatted-date-time",64),L());a&2&&(a=N().row,A(1),D("timestamp",a.createdTime))},KOa=function(a){a&1&&(E(0,"td",63),P(1,JOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},LOa=function(a){a&1&&(I(0),H(1,"b-formatted-date-time",64),L());a&2&&(a=N().row,A(1),D("timestamp",a.modifiedTime))},MOa=function(a){a&1&&(E(0,"td",63),P(1,
LOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},NOa=function(a){a&1&&(I(0),H(1,"b-formatted-date-time",64),L());a&2&&(a=N().row,A(1),D("timestamp",a.resolvedTime))},OOa=function(a){a&1&&(E(0,"td",63),P(1,NOa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},POa=function(a){a&1&&(I(0),H(1,"b-formatted-date-time",64),L());a&2&&(a=N().row,A(1),D("timestamp",a.verifiedTime))},QOa=function(a){a&1&&(E(0,"td",63),P(1,POa,2,1,"ng-container",23),G());a&2&&
(a=N(),A(1),D("ngIf",a.isIssueRow()))},ROa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.foundInVersion)),A(2),T(" ",V(4,4,a.foundInVersion)," "))},SOa=function(a){a&1&&(E(0,"td",58),P(1,ROa,5,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},TOa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.targetedToVersion)),A(2),
T(" ",V(4,4,a.targetedToVersion)," "))},UOa=function(a){a&1&&(E(0,"td",58),P(1,TOa,5,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},VOa=function(a){a&1&&(I(0),E(1,"span"),U(2,"arrayToHuman"),Q(3),U(4,"arrayToHuman"),G(),L());a&2&&(a=N().row,A(1),Uf("title",V(2,2,a.verifiedInVersion)),A(2),T(" ",V(4,4,a.verifiedInVersion)," "))},WOa=function(a){a&1&&(E(0,"td",58),P(1,VOa,5,6,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},XOa=function(a){a&1&&(I(0),Q(1),U(2,
"yesNo"),L());a&2&&(a=N().row,A(1),T(" ",V(2,1,a.inProd)," "))},YOa=function(a){a&1&&(E(0,"td",58),P(1,XOa,3,3,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},ZOa=function(a){a&1&&(I(0),Q(1),U(2,"yesNo"),L());a&2&&(a=N().row,A(1),T(" ",V(2,1,a.archived)," "))},$Oa=function(a){a&1&&(E(0,"td",58),P(1,ZOa,3,3,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},aPa=function(a){a&1&&(I(0),E(1,"div",38)(2,"div",42)(3,"span"),U(4,"componentPath"),Q(5),U(6,"componentPath"),
G()()(),L());a&2&&(a=N().row,A(3),Uf("title",V(4,2,a.componentPath)),A(2),kg(V(6,4,a.componentPath)))},cPa=function(a){a&1&&(E(0,"td",65),P(1,aPa,7,6,"ng-container",23),G());if(a&2){a=N();var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);D("ngClass",pg(2,bPa,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));A(1);D("ngIf",a.isIssueRow())}},dPa=function(a){a&1&&(E(0,"slo-status-card",68),H(1,"b-aggregated-slo-status-indicator",69),G());a&2&&(a=N(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",
a.sloSnoozeUntil),A(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil))},ePa=function(a){a&1&&(I(0),P(1,dPa,2,5,"slo-status-card",67),L());a&2&&(a=N().row,A(1),D("ngIf",a.sloStatus))},fPa=function(a){a&1&&(E(0,"td",66),P(1,ePa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},gPa=function(a){a&1&&(E(0,"slo-status-card",71),H(1,"b-slo-time-indicator",72),G());a&2&&(a=N(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric",
"RESPONSE"),A(1),D("sloBounds",Ub(a.sloStatus,Ol,2)))},hPa=function(a){a&1&&(I(0),P(1,gPa,2,5,"slo-status-card",70),L());a&2&&(a=N().row,A(1),D("ngIf",a.sloStatus))},iPa=function(a){a&1&&(E(0,"td",66),P(1,hPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},jPa=function(a){a&1&&(E(0,"slo-status-card",71),H(1,"b-slo-time-indicator",72),G());a&2&&(a=N(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","ASSIGNMENT"),A(1),D("sloBounds",
Ub(a.sloStatus,Ol,1)))},kPa=function(a){a&1&&(I(0),P(1,jPa,2,5,"slo-status-card",70),L());a&2&&(a=N().row,A(1),D("ngIf",a.sloStatus))},lPa=function(a){a&1&&(E(0,"td",66),P(1,kPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},mPa=function(a){a&1&&(E(0,"slo-status-card",71),H(1,"b-slo-time-indicator",72),G());a&2&&(a=N(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","CLOSURE"),A(1),D("sloBounds",Ub(a.sloStatus,Ol,3)))},
nPa=function(a){a&1&&(I(0),P(1,mPa,2,5,"slo-status-card",70),L());a&2&&(a=N().row,A(1),D("ngIf",a.sloStatus))},oPa=function(a){a&1&&(E(0,"td",66),P(1,nPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},pPa=function(a,b){a&1&&H(0,"b-formatted-date-time",74);a&2&&(a=b.$implicit,N(3),D("timestamp",1E3*a.seconds))},qPa=function(a){a&1&&(I(0),P(1,pPa,1,1,"b-formatted-date-time",73),L());a&2&&(a=N().row,A(1),D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},
rPa=function(a){a&1&&(E(0,"td",58),P(1,qPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},sPa=function(a){a&1&&H(0,"div",76)},tPa=function(a){a&1&&(E(0,"div"),H(1,"b-team-display",77),G());a&2&&(a=N(2).row,A(1),D("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},uPa=function(a){a&1&&(I(0),P(1,sPa,1,0,"div",75),P(2,tPa,2,3,"div",23),L());a&2&&(a=N(2),A(1),D("ngIf",a.isLoadingTeams),A(1),D("ngIf",!a.isLoadingTeams))},vPa=function(a){a&
1&&(E(0,"td",58),P(1,uPa,3,2,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},wPa=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().row,A(1),T(" ",null==a.effort?null:Pi(a.effort,2)," "))},xPa=function(a){a&1&&(E(0,"td",58),P(1,wPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},yPa=function(a){a&1&&(I(0),Q(1),L());if(a&2){a=N().row;var b=N();A(1);T(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Jl(a.effort,4))||"":""," ")}},zPa=function(a){a&1&&(E(0,"td",
58),P(1,yPa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},APa=function(a){a&1&&(I(0),Q(1),L());if(a&2){a=N().row;var b=N();A(1);T(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Jl(a.effort,5))||"":""," ")}},BPa=function(a){a&1&&(E(0,"td",58),P(1,APa,2,1,"ng-container",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isIssueRow()))},CPa=function(a){a&1&&H(0,"b-issue-card",81,82);if(a&2){var b=O(1);a=N().id;D("onedevIsHovercardReady",b.init)("issueId",a)}},DPa=function(a,b){a&1&&(E(0,
"onedev-hovercard",null,78),P(2,CPa,2,2,"b-issue-card",79),G(),E(3,"span",80),Q(4),G());if(a&2){a=b.id;var c=O(1);A(3);D("onedevHovercardTrigger",c);A(1);kg(a)}},EPa=function(a){if(a&1){var b=v();E(0,"b-app-bar-bulk-edit-menus",10);M("onBulkEdit",function(c){w(b);var d=N();return z(d.bulkEdit(c))})("onQuickBulkEdit",function(c){w(b);var d=N();return z(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){w(b);var d=N();return z(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){w(b);
var c=N();return z(c.bulkMarkIssueRead())});G()}a&2&&(a=N(),D("readStatePrompt",BLa(a)))},FPa=function(a){if(a&1){var b=v();E(0,"b-copy-issue-id-button",11);M("onClickCopyIssueIds",function(){w(b);var c=N();return z(DLa(c.copyIssueIdService,Dq(c)))})("onClickCopyIssueShortLinks",function(){w(b);var c=N();return z(ELa(c.copyIssueIdService,Dq(c)))})("onClickCopyAsIssueSearch",function(){w(b);var c=N();return z(FLa(c.copyIssueIdService,Dq(c)))});G()}a&2&&(a=N(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",
a.activeSession.isInternalSession()))},GPa=function(a){if(a&1){var b=v();E(0,"div",12)(1,"b-hotlist-picker",13);M("onApply",function(c){w(b);var d=N();return z(d.handleHotlistPickerSave(c))})("onCreate",function(c){w(b);var d=N();return z(d.onCreateHotlist.emit(c))})("onLoad",function(c){w(b);var d=N();return z(d.onLoadHotlist.emit(c))});G()()}a&2&&(a=N(),A(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},HPa=function(a){if(a&1){var b=v();E(0,"hotlist-add-issue-btn",16);
M("issueAddedToHotlist",function(){w(b);var c=N(2);return z(c.refresh())});G()}a&2&&(a=N(2),D("hotlistId",a.currentHotlistId))},IPa=function(a){a&1&&H(0,"hotlist-archive-btn",17);a&2&&(a=N(2),D("hotlistId",a.currentHotlistId))},JPa=function(a){a&1&&(I(0),P(1,HPa,1,1,"hotlist-add-issue-btn",14),P(2,IPa,1,1,"hotlist-archive-btn",15),L());a&2&&(a=N(),A(1),D("ngIf",a.enableBulkEditUi),A(1),D("ngIf",a.isHotlistAdmin))},KPa=function(a){a&1&&(E(0,"span",21),Q(1,"Reporting"),G())},LPa=function(a){if(a&1){var b=
v();E(0,"b-button",18);M("onAction",function(){w(b);var c=N();return z(c.openInEstado())});H(1,"b-icon",19);P(2,KPa,2,0,"span",20);G()}a&2&&(a=N(),D("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),A(2),D("ngIf",!a.hasSelectedIssues()))},MPa=function(a){if(a&1){var b=v();E(0,"b-comment-box",28);M("commentChange",function(c){w(b);var d=N(2);return z(d.comment=c)})("onSubmit",function(){w(b);var c=N(2);return z(ILa(c))});G()}a&2&&(a=N(2),D("comment",a.comment)("showToolbar",
!1))},NPa=function(a,b){a&1&&(E(0,"li"),Q(1),H(2,"b-access-level-indicator",31),G());a&2&&(a=b.$implicit,A(1),T(" ",a.path," "),A(1),D("accessLevel",a.accessLevel))},OPa=function(a){a&1&&(E(0,"div",29)(1,"div")(2,"strong"),Q(3,"You are commenting on issues in components that have external viewers:"),G()(),E(4,"ul"),P(5,NPa,3,2,"li",30),G()());a&2&&(a=N(2),A(5),D("ngForOf",a.externalWarnings))},PPa=function(a){if(a&1){var b=v();E(0,"div",32)(1,"b-recaptcha",33);M("onUpdate",function(c){w(b);var d=
N(2);return z(d.recaptchaResponse=c)});G()()}},QPa=function(a){a&1&&(E(0,"h1",22),Q(1,"Add comment"),G(),E(2,"mat-dialog-content"),P(3,MPa,1,2,"b-comment-box",23),P(4,OPa,6,1,"div",24),G(),P(5,PPa,2,0,"div",25),E(6,"mat-dialog-actions")(7,"button",26),Q(8," Cancel "),G(),E(9,"button",27),Q(10," Save "),G()());a&2&&(a=N(),A(3),D("ngIf",a.comment),A(1),D("ngIf",0<a.externalWarnings.length),A(1),D("ngIf",a.enableRecaptcha),A(2),D("mat-dialog-close",!1),A(2),D("disabled",a.enableRecaptcha&&""===a.recaptchaResponse)("mat-dialog-close",
!0))},SPa=function(a,b){if(a&1){var c=v();E(0,"div",5)(1,"b-contact-chip",6);M("chipSelection",function(){var d=w(c).index,e=N();e.selectedChipIndex!==d&&Lq(e,d)&&(RPa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return z()})("chipClear",function(){w(c);var d=N();return z(RPa(d))})("chipRemove",function(){var d=w(c).index,e=N();return z(e.removeItem(d))});G()()}a&2&&(a=b.$implicit,b=N(),A(1),D("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()))},VPa=function(a){if(a&1){var b=v();E(0,"input",7,8);M("autocompleteActive",function(){w(b);var c=N();return z(c.chipifyFn())})("ngModelChange",function(c){w(b);var d=N();return z(d.typedText=c)})("focus",function(){w(b);var c=N();return z(TPa(c))})("blur",function(){w(b);var c=N();UPa(c,c.typedText.split(",")[0].trim());c.isFocused=!1;
return z()});G()}a&2&&(a=N(),D("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn)("ngModel",a.typedText)("disabled",a.isWidgetDisabled()),Uf("id",a.idForInputBox))},WPa=function(a){a&1&&(E(0,"span"),Q(1," Groups cannot be granted Restricted+ reader permission. "),E(2,"a",9),Q(3,"Learn more"),G()());a&2&&(a=N(),A(2),Uf("href",lp(a.documentationLinks)+"#components",le))},XPa=function(a){a&1&&(E(0,"span"),Q(1," Invalid user(s). "),G())},YPa=function(a){a&1&&(E(0,"span"),
Q(1,' "Public" or external users are not allowed for component designated as "internal access". '),G())},ZPa=function(a){a&1&&(E(0,"span"),Q(1,' "Public" is not allowed for components designated as "external partner access". '),G())},$Pa=function(a){a&1&&(E(0,"span"),Q(1," SLO lead can not be a group. "),G())},aQa=function(a){a&1&&(E(0,"span"),Q(1," SLO lead can only be a full-time Googler. "),G())},bQa=function(a){if(a&1){var b=v();E(0,"div",7)(1,"button",8);M("click",function(){w(b);var c=N();return z(c.onPressSave())});
Q(2," Save ");G();E(3,"button",9);M("click",function(){w(b);var c=N();return z(c.onPressRevert())});Q(4," Revert changes ");G()()}a&2&&(a=N(),A(1),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),A(2),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},cQa=function(a){if(a&
1){var b=v();E(0,"div",7)(1,"button",8);M("click",function(){w(b);var d=N();return z(d.save())});Q(2," Save ");G();E(3,"button",9);M("click",function(){w(b);var d=N();return z(d.revert())});Q(4," Revert changes ");G();H(5,"hotlist-archive-btn",10);U(6,"async");G()}if(a&2){a=N();var c;A(1);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");A(2);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":
"Go back to the last saved state");A(2);D("hotlistId",null!==(c=V(6,5,a.id$))&&void 0!==c?c:void 0)}},dQa=function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.$implicit,A(1),T(" ",a.name," "))},eQa=function(a){a&1&&(E(0,"strong",4),Q(1,"(archived)"),G())},fQa=function(a){a&1&&H(0,"b-spinner")},gQa=function(a){a&1&&(H(0,"hotlist-add-issue-btn",5),U(1,"async"));if(a&2){a=N();var b;D("hotlistId",null!==(b=V(1,1,a.id$))&&void 0!==b?b:void 0)}},hQa=function(a){a&1&&(E(0,"p",8),Q(1," This hotlist cannot be edited because you are not an administrator of it. "),
G())},iQa=function(a){a&1&&(I(0),H(1,"b-edit-hotlist-toolbar",1),E(2,"div",2),H(3,"b-edit-hotlist-header",1),E(4,"mat-tab-group",3)(5,"mat-tab",4),H(6,"b-edit-hotlist-basic",5),U(7,"async"),G(),E(8,"mat-tab",6),H(9,"b-edit-hotlist-acl",5),U(10,"async"),G()(),P(11,hQa,2,0,"p",7),U(12,"async"),G(),L());a&2&&(a=N(),A(1),D("hotlistId",a.id),A(2),D("hotlistId",a.id),A(1),D("selectedIndex",a.tabIndex),A(2),D("hotlistId",a.id)("isReadOnly",!1===V(7,8,a.isAdmin$)),A(3),D("hotlistId",a.id)("isReadOnly",!1===
V(10,10,a.isAdmin$)),A(2),D("ngIf",!1===V(12,12,a.isAdmin$)))},jQa=function(a,b){a&1&&(I(0),H(1,"empty-toolbar"),E(2,"div",9)(3,"h2"),Q(4,"Error"),G(),E(5,"p"),Q(6),G()(),L());a&2&&(a=b.$implicit,A(6),kg(a))},kQa=function(a){a&1&&(E(0,"b-callout",1)(1,"b-callout-body"),Q(2),G()());a&2&&(a=N(),A(2),kg(a.error))},lQa=function(a){a&1&&cg(0)},mQa=function(a){a&1&&(E(0,"span"),Q(1,"Details"),G())},nQa=function(a){a&1&&(E(0,"span"),Q(1,"Members"),G())},pQa=function(a){a&1&&(E(0,"div",13)(1,"a",14),P(2,
mQa,2,0,"span",15),P(3,nQa,2,0,"span",15),G()());if(a&2){a=N(2);A(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=oQa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":awa(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}D("href",b,le);A(1);D("ngIf",oQa(a.email));A(1);D("ngIf",!oQa(a.email))}},qQa=function(a){a&1&&(I(0),E(1,"span",2),P(2,lQa,1,0,"ng-container",3),
G(),E(3,"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h3"),Q(11),G()(),E(12,"div",10),H(13,"mat-icon",11),E(14,"span"),Q(15),G()()(),P(16,pQa,4,3,"div",12),G()()()(),L());if(a&2){var b=O(4);a=N();var c=O(2);A(1);D("onedevHovercardTrigger",b);A(1);D("ngTemplateOutlet",c);A(9);kg(a.getName());A(4);kg(a.email);A(1);D("ngIf",a.shouldShowLinks())}},rQa=function(a){a&1&&gg(0)},sQa=function(a,b){a&1&&H(0,"mat-icon",8);a&2&&D("svgIcon",b.ngIf)},tQa=function(a){a&1&&
(E(0,"b-person-hovercard",9),Q(1),G());a&2&&(a=N(),D("email",a.value),A(1),T(" ",a.displayText," "))},uQa=function(a){a&1&&(E(0,"b-group-email-card",9),Q(1),G());a&2&&(a=N(),D("email",a.value),A(1),T(" ",a.displayText," "))},vQa=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N(),A(1),T(" ",a.displayText," "))},wQa=function(a){if(a&1){var b=v();E(0,"div",10);M("click",function(){w(b);var c=N();return z(c.chipRemove.emit())});H(1,"mat-icon",11);G()}a&2&&(a=N(),hg("matTooltip","'Remove ",a.displayText,
"'"),Uf("aria-label","Remove "+a.displayText))},xQa=function(a,b){a&1&&(E(0,"div",19),H(1,"b-contact-chip",20),G());a&2&&(a=b.$implicit,b=N(2),A(1),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},yQa=function(a){a&1&&(E(0,"div",12)(1,"div",13)(2,"div",14),P(3,xQa,2,5,"div",15),E(4,"div",16),H(5,"div",17)(6,"div",18),G()()()());a&2&&(a=N(),A(3),D("ngForOf",a.nestedChips))},zQa=function(a){a&1&&(I(0),
Q(1,", "),L())},AQa=function(a,b){a&1&&(I(0),Q(1),P(2,zQa,2,0,"ng-container",14),L());if(a&2){a=b.$implicit;b=b.last;var c=N(2);A(1);T(" ",c.convertUserToString(a)," ");A(1);D("ngIf",!b)}},BQa=function(a,b){if(a&1){var c=v();E(0,"tr",7);M("click",function(){var e=w(c).$implicit,f=N();return z(f.editHotlist(e))})("focus",function(){var e=w(c).index,f=N();return z(f.setFocusOnIndex(e))});H(1,"td",2);E(2,"td",8)(3,"a",9);M("click",function(e){return e.stopPropagation()});Q(4);G()();E(5,"td",10);Q(6);
G();E(7,"td",11);P(8,AQa,3,2,"ng-container",12);G();E(9,"td",13);Q(10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=N();Zf("grid-focus",d.isFocused(b));Uf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));A(3);D("href",d.paths.editHotlist(a.hotlistId),le);A(1);T(" ",a.name," ");A(2);T(" ",a.description," ");A(2);D("ngForOf",a.adminUsers);A(2);T(" ",a.hotlistId," ")}},CQa=function(a){if(a&1){var b=v();E(0,"button",9);M("click",function(){w(b);var c=N(2);return z(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});
Q(1," Move to top ");G()}},DQa=function(a){if(a&1){var b=v();E(0,"button",10);M("click",function(){w(b);var c=N(2);return z(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});Q(1," Move up ");G()}},EQa=function(a){if(a&1){var b=v();E(0,"button",11);M("click",function(){w(b);var c=N(2);return z(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});Q(1," Move down ");G()}},FQa=function(a){if(a&1){var b=v();E(0,"button",12);M("click",function(){w(b);var c=N(2);return z(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});
Q(1," Move to bottom ");G()}},GQa=function(a){if(a&1){var b=v();P(0,CQa,2,0,"button",4);P(1,DQa,2,0,"button",5);P(2,EQa,2,0,"button",6);P(3,FQa,2,0,"button",7);E(4,"button",8);M("click",function(){w(b);var c=N();return z(c.removePanel())});Q(5," Remove ");G()}a&2&&(a=N(),D("ngIf",!a.first),A(1),D("ngIf",!a.first),A(1),D("ngIf",!a.last),A(1),D("ngIf",!a.last))},HQa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),Uf("title",a.getValue()),A(1),T(" ",a.getValue(),"\n"))},IQa=function(a){a&1&&H(0,
"b-custom-field-value-display",2);a&2&&(a=N(),D("customFieldValue",a.getCustomFieldValue()))},JQa=function(a){a&1&&(E(0,"button",5,6),H(2,"mat-icon",7),G());if(a&2){a=N();var b=O(2);D("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Uf("aria-label",a.buttonLabel);A(2);D("svgIcon",a.buttonIcon)}},KQa=function(a){a&1&&(E(0,"div",8),Q(1),G());a&2&&(a=N(),A(1),kg(a.header))},LQa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=N(2).$implicit,D("svgIcon",a.icon))},MQa=function(a){a&1&&(E(0,"span",14),Q(1),
G());a&2&&(a=N(2).$implicit,A(1),kg(a.hintText))},NQa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=N(2).$implicit,D("svgIcon",a.icon))},OQa=function(a){a&1&&(E(0,"span",14),Q(1),G());a&2&&(a=N(2).$implicit,A(1),kg(a.hintText))},PQa=function(a){if(a&1){var b=v();E(0,"button",17);M("click",function(d){w(b);var e=N().$implicit,f=N(3);return z(f.onAction(d,e))})("mouseup",function(d){w(b);var e=N().$implicit,f=N(3);return z(f.onAction(d,e))});P(1,NQa,1,1,"mat-icon",11);Q(2);P(3,OQa,2,1,"span",12);G()}if(a&
2){a=N().$implicit;var c=N(2).$implicit;D("disabled",a.disabled)("ngClass",c.className);Uf("title",a.title);A(1);D("ngIf",a.icon);A(1);T(" ",a.label," ");A(1);D("ngIf",a.hintText)}},QQa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(d){w(b);var e=N().$implicit,f=N(3);return z(f.onAction(d,e))})("mouseup",function(d){w(b);var e=N().$implicit,f=N(3);return z(f.onAction(d,e))});E(1,"span",19);H(2,"mat-icon",20);G();Q(3);G()}if(a&2){a=N().$implicit;var c=N(2).$implicit;Zf("b-menu-item-checked",
a.selected);D("disabled",a.disabled)("ngClass",c.className);Uf("title",a.title);A(3);T(" ",a.label," ")}},RQa=function(a,b){a&1&&(I(0),P(1,PQa,4,6,"button",15),P(2,QQa,4,6,"button",16),L());a&2&&(a=b.$implicit,A(1),D("ngIf","action"===a.type),A(1),D("ngIf","select"===a.type))},SQa=function(a){a&1&&(I(0),E(1,"button",10),P(2,LQa,1,1,"mat-icon",11),Q(3),P(4,MQa,2,1,"span",12),G(),E(5,"mat-menu",null,13),P(7,RQa,3,2,"ng-container",4),G(),L());if(a&2){var b=O(6);a=N().$implicit;var c=N();A(1);D("matMenuTriggerFor",
b);A(1);D("ngIf",a.icon);A(1);T(" ",a.label," ");A(1);D("ngIf",a.hintText);A(3);D("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},TQa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=N(3).$implicit,D("svgIcon",a.icon))},UQa=function(a){a&1&&(E(0,"span",14),Q(1),G());a&2&&(a=N(3).$implicit,A(1),kg(a.hintText))},VQa=function(a){if(a&1){var b=v();E(0,"button",17);M("click",function(c){w(b);var d=N(2).$implicit,e=N();return z(e.onAction(c,d))})("mouseup",function(c){w(b);var d=N(2).$implicit,e=N();return z(e.onAction(c,
d))});P(1,TQa,1,1,"mat-icon",11);Q(2);P(3,UQa,2,1,"span",12);G()}a&2&&(a=N(2).$implicit,D("disabled",a.disabled)("ngClass",a.className),Uf("title",a.title),A(1),D("ngIf",a.icon),A(1),T(" ",a.label," "),A(1),D("ngIf",a.hintText))},WQa=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(c){w(b);var d=N(2).$implicit,e=N();return z(e.onAction(c,d))})("mouseup",function(c){w(b);var d=N(2).$implicit,e=N();return z(e.onAction(c,d))});E(1,"span",19);H(2,"mat-icon",20);G();Q(3);G()}a&2&&(a=N(2).$implicit,
Zf("b-menu-item-checked",a.selected),D("disabled",a.disabled)("ngClass",a.className),Uf("title",a.title)("aria-label",a.label+" results per page"),A(3),T(" ",a.label," "))},XQa=function(a){a&1&&(I(0),P(1,VQa,4,6,"button",15),P(2,WQa,4,7,"button",16),L());a&2&&(a=N().$implicit,A(1),D("ngIf","action"===a.type),A(1),D("ngIf","select"===a.type))},YQa=function(a,b){a&1&&(I(0),P(1,SQa,8,6,"ng-container",9),P(2,XQa,3,2,"ng-container",9),L());a&2&&(a=b.$implicit,A(1),D("ngIf","submenu"===a.type),A(1),D("ngIf",
"submenu"!==a.type))},ZQa=function(a){a&1&&H(0,"b-actions-menu",7);a&2&&(a=N(),D("menuItems",a.menuItems))},$Qa=function(a){a&1&&(E(0,"span",8)(1,"strong"),Q(2),G(),Q(3,"\u00a0of\u00a0"),E(4,"strong"),Q(5),G()());a&2&&(a=N(),A(2),lg("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex,""),A(3),kg(a.searchResults.totalText))},aRa=function(a){a&1&&(E(0,"div"),Q(1," Hotlist not found. "),G())},bRa=function(a){a&1&&(E(0,"div"),Q(1," Loading details... "),G())},cRa=function(a){a&1&&H(0,
"b-panel-controls",11);a&2&&(a=N(2),D("panelId",a.panel.panelId))},dRa=function(a){a&1&&(E(0,"span",12),Q(1," \u00a0(changed) "),G())},eRa=function(a){a&1&&(E(0,"div"),P(1,cRa,1,1,"b-panel-controls",6),E(2,"span",7),Q(3," Hotlist: "),E(4,"a",8)(5,"span",9),Q(6),G()()(),P(7,dRa,2,0,"span",10),G());a&2&&(a=N(),A(1),D("ngIf",a.isDashboardEditable),A(3),D("href",a.paths.viewHotlist(a.hotlistId),le),A(1),ig("matTooltip",a.resource.description),A(1),kg(a.resource.name),A(1),D("ngIf",a.hasParamChanges()))},
fRa=function(a){if(a&1){var b=v();E(0,"div",13)(1,"button",14);M("click",function(){w(b);var c=N();return z(c.save())});Q(2,"Save ");G();E(3,"button",15);M("click",function(){w(b);var c=N();return z(c.discardChanges())});Q(4," Discard changes ");G()()}},gRa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(3),A(1),T(" Searching for ",a.searchParams.query," ..."))},hRa=function(a){a&1&&(E(0,"div",19),H(1,"b-spinner",20),P(2,gRa,2,1,"span",3),G());a&2&&(a=N(2),A(1),D("large",!1),A(1),D("ngIf",a.searchParams&&
(null==a.searchParams?null:a.searchParams.query)))},iRa=function(a){a&1&&(E(0,"div",21),Q(1," No issues in hotlist. "),G())},kRa=function(a){if(a&1){var b=v();E(0,"div",22)(1,"b-issues-grid",23);M("init",function(c){w(b);var d=N(2);return z(jRa(d,c))})("focusedRowIndexChange",function(c){w(b);var d=N(2);return z(d.focusedRowIndex=c)})("columnsChange",function(c){w(b);var d=N(2);return z(d.issueColumns=c)})("sortChange",function(c){w(b);var d=N(2);return z(d.setSort(c.field,c.direction))})("onRowDragDrop",
function(c){w(b);var d=N(2);return z(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){w(b);var d=N(2);return z(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){w(b);var c=N(2);return z(c.goToPage(c.page+1))})("onPrevPage",function(){w(b);var c=N(2);return z(c.goToPage(c.page-1))});G()()}a&2&&(a=N(2),A(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},
lRa=function(a){a&1&&(E(0,"div"),P(1,hRa,3,2,"div",16),P(2,iRa,2,0,"div",17),P(3,kRa,2,5,"div",18),G());a&2&&(a=N(),A(1),D("ngIf",a.isLoading),A(1),D("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),A(1),D("ngIf",!a.isLoading&&(null==a.searchResults?null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},mRa=function(a){a&1&&(E(0,"div"),Q(1," Saved search not found. "),G())},nRa=function(a){a&1&&(E(0,"div"),Q(1," Loading details... "),
G())},oRa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=N(2),D("panelId",a.panel.panelId))},pRa=function(a){a&1&&(E(0,"span",12),Q(1," \u00a0(changed) "),G())},qRa=function(a){a&1&&(E(0,"div",6),P(1,oRa,1,1,"b-panel-controls",7),E(2,"span",6),Q(3," Saved search: "),E(4,"a",8)(5,"span",9),Q(6),G()()(),P(7,pRa,2,0,"span",10),G());a&2&&(a=N(),A(1),D("ngIf",a.isDashboardEditable),A(3),D("href",a.paths.viewSavedSearch(a.savedSearchId),le),A(1),ig("matTooltip",a.resource.description),A(1),kg(a.resource.name),
A(1),D("ngIf",a.hasParamChanges()))},rRa=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.ngIf,A(1),T("Searching for ",a,"..."))},sRa=function(a){a&1&&(E(0,"div",16),H(1,"b-spinner",17),P(2,rRa,2,1,"span",3),G());a&2&&(a=N(2),A(1),D("large",!1),A(1),D("ngIf",null==a.searchParams?null:a.searchParams.query))},tRa=function(a){a&1&&(E(0,"div",18),Q(1," No issues in saved search. "),G())},uRa=function(a){if(a&1){var b=v();E(0,"div",19)(1,"b-issues-grid",20);M("init",function(c){w(b);var d=N(2);return z(jRa(d,
c))})("focusedRowIndexChange",function(c){w(b);var d=N(2);return z(d.focusedRowIndex=c)})("columnsChange",function(c){w(b);var d=N(2);return z(d.columnsChange(c))})("sortChange",function(c){w(b);var d=N(2);return z(d.setSort(c.field,c.direction))})("rowClick",function(c){w(b);var d=N(2);return z(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){w(b);var c=N(2);return z(c.goToPage(c.page+1))})("onPrevPage",function(){w(b);var c=N(2);return z(c.goToPage(c.page-1))});G()()}a&2&&(a=N(2),A(1),
D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},vRa=function(a){a&1&&(E(0,"div"),P(1,sRa,3,2,"div",13),P(2,tRa,2,0,"div",14),P(3,uRa,2,5,"div",15),G());a&2&&(a=N(),A(1),D("ngIf",a.isLoading),A(1),D("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),A(1),D("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},wRa=function(a,b){a&1&&(E(0,"span",
3)(1,"a",4),Q(2),G()());a&2&&(a=b.$implicit,A(1),hg("routerLink","/teams/",a.id,"/edit"),D("preserveFragment",!0),A(1),kg(a.name))},xRa=function(a){a&1&&(E(0,"p")(1,"span",6),Q(2,"NOTE:"),G(),Q(3),E(4,"a",7),Q(5,"Learn more"),G()());a&2&&(a=N(),A(3),T(" ",a.data.noteText," "),A(1),D("href",a.getDisablingFieldsHelpLink(),le))},yRa=function(a){a&1&&(I(0),H(1,"span",26)(2,"b-icon",27),L());a&2&&(a=N(),A(1),D("innerHTML",a.menuLabel,ke))},zRa=function(a){a&1&&(E(0,"div",28),Q(1," This includes emails about major updates and: "),
E(2,"ul",29)(3,"li"),Q(4,"All title, hotlist, and status changes."),G(),E(5,"li"),Q(6,"Blocking, Blocked By, or Duplicate changes."),G(),E(7,"li"),Q(8,"Changes to Reporter, Verifier, and CCs."),G(),E(9,"li"),Q(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),G(),E(11,"li"),Q(12,"Changes to custom fields marked as minor."),G()()())},ARa=function(a){a&1&&(E(0,"div",30),Q(1," This includes emails about: "),E(2,"ul",29)(3,"li"),Q(4,"New comments."),G(),E(5,"li"),Q(6,"Priority or Severity changes."),
G(),E(7,"li"),Q(8,"Assignee changes."),G(),E(9,"li"),Q(10,"Component changes."),G(),E(11,"li"),Q(12,"Issue closure or reopening."),G(),E(13,"li"),Q(14,"Changes to custom fields marked as major."),G()()())},BRa=function(a,b){a&1&&(E(0,"mat-option",6),Q(1),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",a.getName()," "))},CRa=function(a){a&1&&(E(0,"span",11),Q(1," (must be between 30 days and 10 years) "),G())},DRa=function(a){if(a&1){var b=v();E(0,"div",12)(1,"b-duration-picker",13);M("durationDaysChange",
function(c){w(b);var d=N();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Mq(d);return z()});G();E(2,"div",14);Q(3);G()()}a&2&&(a=N(),A(1),D("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),A(2),T(" Issues will be marked for deletion when they have not been modified for ",Nq(a.model.retentionPeriodDays),". "))},ERa=function(a){a&1&&(E(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 "),
E(3,"b"),Q(4,"one or more"),G(),Q(5," of the following is true:"),G(),E(6,"ol")(7,"li"),Q(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),G(),E(9,"li"),Q(10,"You have a process in place to manually delete this data within an approved period of time."),G(),E(11,"li"),Q(12,"Legal and Privacy have approved this non-standard retention period."),G()()())},FRa=function(a){a&1&&(E(0,"span",11),Q(1," (Issue Retention is shorter than default Restricted Retention) "),
G())},HRa=function(a){a&1&&(E(0,"span",11),Q(1),G());a&2&&(a=N(),A(1),T(" ",GRa(a)," "))},IRa=function(a){a&1&&(E(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."),G()())},KRa=function(a){if(a&1){var b=v();E(0,"div",12)(1,"div")(2,"span",
16);Q(3,"Restricted retention:");G();E(4,"b-duration-picker",17);M("durationDaysChange",function(c){w(b);var d=N();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Mq(d);return z()});G()();E(5,"div",18)(6,"p");Q(7);G()();E(8,"div")(9,"span",16);Q(10,"Restricted+ retention:");G();E(11,"b-duration-picker",19);M("durationDaysChange",function(c){w(b);var d=N();d.model.spiiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Mq(d);return z()});
G()();E(12,"div",18)(13,"p");Q(14);G()();P(15,IRa,3,0,"div",20);G()}a&2&&(a=N(),A(4),D("disabled",!Oq(a))("durationDays",a.model.piiRetentionPeriodDays),A(3),T(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",Nq(a.model.piiRetentionPeriodDays),". "),A(4),D("disabled",!Oq(a))("durationDays",a.model.spiiRetentionPeriodDays),A(3),T(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
Nq(a.model.spiiRetentionPeriodDays),". "),A(1),D("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&JRa(a)))},LRa=function(a){a&1&&(E(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."),G()())},Pq=function(a,b,c,
d){var e=MRa(a.slice(0,b),c);e=e&&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}},MRa=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},Qq=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},NRa=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},Rq=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?Zi(q,e):ia(q,e):!1});b=b.idx;for(var f=b+e.length,h=n(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},Sq=function(a,b,c,d){return{trackId:b+":"+a,name:a,id:a,label:c,completionCfg:{enableShadowPlaceholder:!0,completionValue:a,type:d}}},QRa=function(a,b){if(a&1){var c=v();E(0,"div",9)(1,"div",10);M("click",function(d){var e=w(c).$implicit,f=N();e=e.key;if(d=
void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;ORa(f);PRa(f);f.optionsChange.emit(f.options);return z()});E(2,"b-checkbox",11);M("change",function(d){var e=w(c).$implicit,f=N();e.value.value=d;ORa(f);PRa(f);f.optionsChange.emit(f.options);return z()})("click",function(d){return d.stopPropagation()});G()()()}a&2&&(a=b.$implicit,Uf("aria-checked",a.value.value),A(2),D("checked",a.value.value)("label",a.value.displayString))},RRa=function(a){a&
1&&(E(0,"div",12),Q(1),G());a&2&&(a=N(),A(1),T(" ",a.errorString," "))},TRa=function(a){if(a&1){var b=v();E(0,"span",4)(1,"input",5);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.businessDayString=c)})("ngModelChange",function(){w(b);var c=N(2);return z(SRa(c))});G();E(2,"span",8);Q(3,"days,");G()()}a&2&&(a=N(2),A(1),Zf("ng-invalid",!!a.errorString),D("ngModel",a.businessDayString))},VRa=function(a,b){a&1&&(E(0,"mat-option",9),Q(1),G());a&2&&(a=b.$implicit,b=N(2),D("value",a),A(1),T(" ",
URa(b,a)," "))},YRa=function(a){if(a&1){var b=v();E(0,"span",2);P(1,TRa,4,3,"span",3);E(2,"span",4)(3,"input",5);M("ngModelChange",function(c){w(b);var d=N();return z(d.intervalString=c)})("ngModelChange",function(){w(b);var c=N();return z(SRa(c))});G();E(4,"mat-select",6);M("ngModelChange",function(c){w(b);var d=N();return z(d.intervalUnit=c)})("selectionChange",function(){w(b);var c=N();WRa(c);XRa(c);return z()});P(5,VRa,2,2,"mat-option",7);G()()()}a&2&&(a=N(),A(1),D("ngIf",2==a.dayType),A(2),Zf("invalid",
!!a.errorString),D("ngModel",a.intervalString),A(1),D("ngModel",a.intervalUnit),A(1),D("ngForOf",2==a.dayType?[Tq,Uq]:[Tq,Uq,Vq]))},ZRa=function(a){a&1&&(E(0,"span",13),Q(1),G());a&2&&(a=N(2),A(1),lg(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},$Ra=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},aSa=function(a){a&1&&(E(0,"span"),P(1,$Ra,2,0,"span",12),E(2,"span"),Q(3),G()());a&2&&(a=N(2),A(1),D("ngIf",a.objectiveBusinessDays),A(2),lg("",a.intervalString," ",URa(a,a.intervalUnit),
""))},bSa=function(a){a&1&&(E(0,"span",10),P(1,ZRa,2,2,"span",11),P(2,aSa,4,3,"span",12),G());a&2&&(a=N(),A(1),D("ngIf",a.objectiveBusinessDays),A(1),D("ngIf",a.intervalString&&"0"!=a.intervalString))},dSa=function(a){if(a&1){var b=v();E(0,"b-icon",22);M("click",function(){w(b);var c=N(2);return z(cSa(c,0))});G()}a&2&&D("name","add")("size","small")},fSa=function(a){if(a&1){var b=v();E(0,"span",17)(1,"span",18)(2,"span",19);P(3,dSa,1,2,"b-icon",20);G();E(4,"span",19)(5,"b-icon",21);M("click",function(c){w(b);
var d=N();return z(eSa(d,c))});G()()()()}a&2&&(a=N(),A(3),D("ngIf",a.canPerformActions),A(2),D("name","delete")("size","small"))},gSa=function(a){a&1&&H(0,"td",42)},hSa=function(a){if(a&1){var b=v();E(0,"td",43)(1,"slo-element-property-picker",44);M("optionsChange",function(c){w(b);var d=N().$implicit;return z(d.typePickerValues=c)});G()()}a&2&&(a=N().$implicit,A(1),D("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},iSa=function(a){if(a&1){var b=v();E(0,
"td",45)(1,"slo-element-property-picker",46);M("optionsChange",function(c){w(b);var d=N().$implicit;return z(d.priorityPickerValues=c)});G()()}a&2&&(a=N().$implicit,A(1),D("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},jSa=function(a){if(a&1){var b=v();E(0,"td",47)(1,"slo-element-property-picker",48);M("optionsChange",function(d){w(b);var e=N().$implicit;return z(e.postmortemPickerValues=d)});G()()}if(a&2){a=N().$implicit;var c=N(2);A(1);
D("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},lSa=function(a,b){a&1&&(E(0,"mat-option",53),Q(1),G());a&2&&(a=b.$implicit,N(4),D("value",a),A(1),T(" ",0===a?" - ":kSa.get(a)," "))},mSa=function(a){if(a&1){var b=v();E(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);M("ngModelChange",function(d){w(b);var e=N().$implicit;return z(e.selectedMetric=d)});P(3,lSa,2,2,"mat-option",52);G()()()}if(a&2){a=N().$implicit;var c=
N(2);A(2);D("ngModel",a.selectedMetric)("customValidators",a.metricValidators);A(1);D("ngForOf",c.metricChoices)}},nSa=function(a){if(a&1){var b=v();E(0,"td",54)(1,"slo-objective-selector",55);M("objectiveDurationChange",function(c){w(b);var d=N().$implicit;return z(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){w(b);var d=N().$implicit;return z(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=N().$implicit,A(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",
a.selectedObjectiveBusinessDays)("validator",a.validateObjective))},pSa=function(a,b){a&1&&(E(0,"mat-option",53),Q(1),G());a&2&&(a=b.$implicit,N(4),D("value",a),A(1),T(" ",oSa.get(a||1)," "))},qSa=function(a){if(a&1){var b=v();E(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);M("ngModelChange",function(d){w(b);var e=N().$implicit;return z(e.selectedDayType=d)})("selectionChange",function(){w(b);var d=N().$implicit;2===d.selectedDayType?0===d.selectedObjectiveDuration.getSeconds()%86400&&(d.selectedObjectiveBusinessDays=
d.selectedObjectiveDuration.getSeconds()/86400,d.selectedObjectiveDuration.setSeconds(0)):(0===d.selectedObjectiveDuration.getSeconds()&&d.selectedObjectiveDuration.setSeconds(86400*d.selectedObjectiveBusinessDays),d.selectedObjectiveBusinessDays=0);return z()});P(3,pSa,2,2,"mat-option",52);G()()()}if(a&2){a=N().$implicit;var c=N(2);A(2);D("ngModel",a.selectedDayType);A(1);D("ngForOf",c.dayTypes)}},tSa=function(a){if(a&1){var b=v();E(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);M("click",function(){w(b);
var c=N(3);if(c.openRow)if(c.openRow.isValid())rSa(c.openRow.typePickerValues)&&rSa(c.openRow.priorityPickerValues)&&rSa(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Co("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}):Wq(c);else{var d=c.openRow;(2!=d.selectedDayType?
0<d.selectedObjectiveDuration.getSeconds():0<d.selectedObjectiveDuration.getSeconds()||0<d.selectedObjectiveBusinessDays)||c.confirmationDialogService.open({title:"SLO validation error",content:Co('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 z()});G()();E(4,"span",19)(5,"b-icon",61);M("click",
function(){w(b);var c=N().$implicit,d=N(2);return z(sSa(d,c))});G()()()()}a&2&&(A(3),D("name","done")("size","small"),A(2),D("name","delete")("size","small"))},uSa=function(a){a&1&&H(0,"td",62)},vSa=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N(2).$implicit,A(1),T("ERROR: ",a.parseResult.error,""))},wSa=function(a,b){a&1&&(E(0,"span",68)(1,"span",69),Q(2),G()());a&2&&(a=b.$implicit,A(2),kg(a))},ySa=function(a){a&1&&(E(0,"span",66),P(1,wSa,3,1,"span",67),G());if(a&2){a=N(2).$implicit;A(1);if(0===
a.parseResult.types.length)a=["Any"];else{for(var b=[],c=n(a.controllerReference.sloParseService.jspbTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(xSa(a.controllerReference,d));a=b}D("ngForOf",a)}},zSa=function(a){a&1&&(E(0,"td",63),P(1,vSa,2,1,"div",64),P(2,ySa,2,1,"span",65),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.parseResult.error),A(1),D("ngIf",!a.parseResult.error))},ASa=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N(2).$implicit,A(1),
T("ERROR: ",a.parseResult.error,""))},BSa=function(a,b){a&1&&(E(0,"span",68)(1,"span",69),Q(2),G()());a&2&&(a=b.$implicit,A(2),kg(a))},DSa=function(a){a&1&&(E(0,"span",66),P(1,BSa,3,1,"span",67),G());if(a&2){a=N(2).$implicit;A(1);if(0===a.parseResult.priorities.length)a=["Any"];else{for(var b=[],c=n(a.controllerReference.sloParseService.jspbPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(CSa(a.controllerReference,d));a=b}D("ngForOf",a)}},
ESa=function(a){a&1&&(E(0,"td",70),P(1,ASa,2,1,"div",64),P(2,DSa,2,1,"span",65),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.parseResult.error),A(1),D("ngIf",!a.parseResult.error))},FSa=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N(2).$implicit,A(1),T("ERROR: ",a.parseResult.error,""))},GSa=function(a,b){a&1&&(E(0,"span",68)(1,"span",69),Q(2),G()());a&2&&(a=b.$implicit,A(2),kg(a))},HSa=function(a){a&1&&(E(0,"span",66),P(1,GSa,3,1,"span",67),G());if(a&2){a=N(2).$implicit;A(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])];D("ngForOf",a)}},ISa=function(a){a&1&&(E(0,"td",71),P(1,FSa,2,1,"div",64),P(2,HSa,2,1,"span",65),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.parseResult.error),A(1),D("ngIf",!a.parseResult.error))},JSa=function(a){a&1&&(E(0,"td",72),Q(1),G());a&2&&(a=N().$implicit,N(2),A(1),a=a.sloElement.getMetric(),a=0===a?" - ":kSa.get(a),T(" ",a," "))},KSa=function(a){if(a&
1){var b=v();E(0,"td",73)(1,"slo-objective-selector",74);M("objectiveDurationChange",function(c){w(b);var d=N().$implicit;return z(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){w(b);var d=N().$implicit;return z(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=N().$implicit,A(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",!a.isEditing_))},LSa=function(a){a&1&&(E(0,
"td",75),Q(1),G());a&2&&(a=N().$implicit,N(2),A(1),a=qj(a.sloElement,4,0),a=oSa.get(a||1),T(" ",a," "))},NSa=function(a){if(a&1){var b=v();E(0,"b-icon",85);M("click",function(c){w(b);var d=N(2).$implicit,e=N(2);return z(MSa(e,d,c))});G()}a&2&&D("name","edit")("size","small")},OSa=function(a){a&1&&H(0,"b-icon",86);if(a&2){N();var b=O(8);D("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},QSa=function(a){if(a&1){var b=v();E(0,"button",87);M("click",function(){w(b);var c=N(2).$implicit,
d=N(2);return z(PSa(d,c,1))});Q(1," Move row down ");G()}},RSa=function(a){if(a&1){var b=v();E(0,"button",88);M("click",function(){w(b);var c=N(2).$implicit,d=N(2);return z(PSa(d,c,-1))});Q(1," Move row up ");G()}},TSa=function(a){if(a&1){var b=v();E(0,"td",76)(1,"span",18)(2,"span",19);P(3,NSa,1,2,"b-icon",77);G();E(4,"span",19)(5,"span");P(6,OSa,1,3,"b-icon",78);G();E(7,"mat-menu",null,79);P(9,QSa,2,0,"button",80);P(10,RSa,2,0,"button",81);E(11,"button",82);M("click",function(){w(b);var d=N().$implicit,
e=N(2);cSa(e,e.collection.indexOf(d)+1);return z()});Q(12," Add row below ");G();E(13,"button",83);M("click",function(){w(b);var d=N().$implicit,e=N(2);cSa(e,e.collection.indexOf(d));return z()});Q(14," Add row above ");G();E(15,"button",84);M("click",function(){w(b);var d=N().$implicit,e=N(2);return z(sSa(e,d))});Q(16," Remove ");G()()()()()}if(a&2){a=N().$implicit;var c=N(2);A(3);D("ngIf",a.canEdit);A(3);D("ngIf",a.canEdit);A(3);D("ngIf",SSa(c,a,1).valid);A(1);D("ngIf",SSa(c,a,-1).valid)}},USa=
function(a,b){a&1&&(E(0,"tr",25),P(1,gSa,1,0,"td",26),P(2,hSa,2,3,"td",27),P(3,iSa,2,3,"td",28),P(4,jSa,2,3,"td",29),P(5,mSa,4,3,"td",30),P(6,nSa,2,4,"td",31),P(7,qSa,4,2,"td",32),P(8,tSa,6,4,"td",33),P(9,uSa,1,0,"td",34),P(10,zSa,3,2,"td",35),P(11,ESa,3,2,"td",36),P(12,ISa,3,2,"td",37),P(13,JSa,2,1,"td",38),P(14,KSa,2,4,"td",39),P(15,LSa,2,1,"td",40),P(16,TSa,17,4,"td",41),G());a&2&&(a=b.$implicit,b=N(2),Zf("draggable",!b.isDisabled&&null==b.openRow),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),
A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_),A(1),D("ngIf",!a.isEditing_))},VSa=function(a){if(a&1){var b=v();E(0,"tbody",23);M("cdkDropListDropped",function(c){w(b);var d=N();
return z(d.onDrop(c))});P(1,USa,17,18,"tr",24);G()}a&2&&(a=N(),D("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),A(1),D("ngForOf",a.collection))},WSa=function(a){a&1&&(E(0,"div",89),Q(1," There are currently no rules for this SLO "),G())},XSa=function(a,b){if(a&1){var c=v();E(0,"tr",7);M("click",function(){var e=w(c).$implicit,f=N();return z(f.editSlo(e))})("focus",function(){var e=w(c).index,f=N();return z(f.setFocusOnIndex(e))});H(1,"td",2);E(2,"td",8)(3,"a",
9);M("click",function(e){return e.stopPropagation()});Q(4);G()();E(5,"td",10);Q(6);G()()}if(a&2){a=b.$implicit;b=b.index;var d=N();Zf("grid-focus",d.isFocused(b));Uf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));A(3);D("href",d.paths.editSlo(a.getSloId()),le);A(1);T(" ",a.getName()," ");A(2);T(" ",a.getDescription()," ")}},YSa=function(a,b){a&1&&(E(0,"mat-option",6),Q(1),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",a.label," "))},ZSa=function(a){a&1&&(I(0),E(1,"h3"),Q(2," View as: "),
E(3,"mat-form-field")(4,"mat-select",3)(5,"mat-select-trigger",4),Q(6),G(),P(7,YSa,2,2,"mat-option",5),G()()(),L());a&2&&(a=N(),A(4),D("formControl",a.currentSnoozeType),A(2),T(" ",null==a.currentSnoozeType.value?null:a.currentSnoozeType.value.label," "),A(1),D("ngForOf",a.snoozeTypeChoices))},$Sa=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Zl(a))},Xq=function(a){var b;return null!=(b=null==a?void 0:a.trim())?b:""},Yq=function(a,b,c){b=[b,c].map(function(d){return null!=d?d:""}).join(";");
a.setAttribute("pkd-ac-state",String(Bh(b)))},aTa=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Bh(b)))},bTa=function(a,b){a.setAttribute("pkd-ps-state",String(Bh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(Bh("2")))},function(){a.setAttribute("pkd-ps-state",String(Bh("3")))})},fTa=function(a){var b=Bp(cTa,{id:Zq(dTa)});a.appendChild(b);return new eTa(b)},$q=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},
br=function(a){return new ar(a)},cr=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");b.initEvent(a,!0,!0);return b},hTa=function(a,b){return new gTa(a,b)},iTa=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},er=function(a,b,c){return new dr(new jTa(void 0===a?0:a,null!=b?b:[],null!=c?c:null))},fr=function(a){if(a=a.getAttribute("pk-log")){var b=n(a.split(";"));a=b.next().value;var c=b.next().value,d=b.next().value;b=b.next().value;return{id:a,veid:Number(c),action:d.split(","),
pairs:b.split(",")}}return null},gr=function(a,b,c,d){d=void 0===d?[]:d;d=void 0===d?[]:d;b=[Zq(kTa),b,c.join(","),d.join(",")].join(";");b=Bh(b);a.setAttribute("pk-log",String(b))},mTa=function(a){var b;return Object.freeze({id:"ENOWEf",iconUrl:null==(b=lTa.get(a))?void 0:b.get("ENOWEf"),label:"Hide Suggestion",keyboardShortcut:[],veid:127674})},nTa=function(a){return a.map(function(b){if(hr)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)}})},qTa=function(a,b){var c=Zq(ir.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=nTa(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("le`"+b);}d=Bp(oTa,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&
gr(d,a.veid,["impression","pk-click"]);return new pTa(d,a)},sTa=function(a){var b=new rTa([]);return new jr(a,b)},xTa=function(a,b,c,d,e){var f=tTa(c),h=kr(a),k=lr(a);k&&h.intersection(uTa(k));vTa(h,zp(a),zp(c));a=mr(a,b);b=h.left;a&4?b+=h.width:a&2&&(b+=h.width/2);h=new nr(b,h.top+(a&1?h.height:0));h=or(h,f);a=mr(c,d);h=wTa(h,pr(c),a).rect;c=lr(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},ATa=function(a,b){qr(a,new nr(b.left,b.top));b=b.getSize();yTa(pr(a),b)||zTa(a,b)},BTa=function(a,b,c){return new rr(a,b,c)},ETa=function(a,b,c,d){var e=Bp(CTa);gr(e,28041,["impression"]);var f=new DTa(e);a.appendChild(e);return new sr(e,b,c,f,d)},FTa=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},ur=function(a,b,c,d,e,f){e=void 0===e?new tr:e;f=void 0===f?"":f;b=Bp(GTa,
{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:HTa()});e=new ITa(b,e);a.appendChild(b);return e},vr=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("le`"+a);}},wr=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";
default:throw Error("le`"+a);}},KTa=function(a,b){var c="",d=0;b=n(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 JTa(JTa(bk(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},LTa=function(a){var b=a.getDisplayName();return b?KTa(b,a.getMatchInfo().getDisplayNameMatches()):
""},MTa=function(a){var b=a.getDisplayValue();return b?KTa(b,a.getMatchInfo().getDisplayValueMatches()):""},NTa=function(a){var b=LTa(a),c=MTa(a);b=b||c;c=c||bk(a.getDescription());var d=a.getPrimaryTarget();return{hovercardId:1===d.getTargetType()||6===d.getTargetType()?a.getDisplayValue():d.getProfileId(),label:b,sublabel:c,photos:[a.getPhotoUrl()]}},xr=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},OTa=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},PTa=function(a){var b=new yr;if(a instanceof zr)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},Cr=function(a){a=void 0===a?null:a;var b=(new Ar).setExperimentFlags(new Br).setSource(3);a&&b.setError(PTa(a));return b},XTa=function(a){var b=void 0===b?new QTa:b;if(RTa)return RTa;var c=new STa(a),d=new TTa(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 Dr(a,b):new Er(a);b.clean();c=new UTa(new VTa(b,c),d);return RTa=new WTa(a,c)},ZTa=function(a,b,c,d){var e=NTa(a);a=YTa(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}},YTa=function(a,b,c,d){var e=[];oj(Fr.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:Zq($Ta),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:d,tags:e,allowSublabelTranslation:!1}},cUa=function(a,b,c){var d="",e=bk(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 t,x;(q=(q=null==(t=k.getPrimaryTarget())?void 0:null==(x=t.getName())?void 0:x.getGivenName())?KTa(q,k.getMatchInfo().getGivenNameMatches()):
"")||(q=LTa(k))}q||(q=MTa(k));return q}),b&&(d=d.reverse()),d=LTa(a)||aUa({memberNames:d}),e||c||null===a.getTotalMemberCount()||(e=bUa({memberCount:Number(a.getTotalMemberCount())}),f=!0);else if(1===h)return e=a.getMemberList()[0],f=NTa(e),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}},eUa=function(a,b,c,d,e,f){a=cUa(a,d,e);if(a.flatResult)return f=YTa(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:Zq(dUa),hovercardId:a.hovercardId,label:a.label,sublabel:c.shouldHideSublabel?"":b,type:a.type,photos:a.photos,densityClass:f,tags:[],allowSublabelTranslation:d}},Hr=function(a,b,c,d,e,f){return new Gr(a,b,c,d,e,f)},gUa=function(a,b){return new fUa(a,void 0===b?"":b)},hUa=function(a){var b=-1;(a=Ir(a))&&nj(a,2)&&(b=Ji(a,2,0));return"index:"+b},mUa=function(a,b){var c=Bp(iUa,{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("le`"+f);}}e.call(d,f);if(b.tooltipLabel){e=c.getAttribute("data-tooltip-id")||"";d={label:b.tooltipLabel,ariaLabel:b.ariaLabel};e=Bp(jUa,{label:d.label,id:e,ariaLabel:d.ariaLabel});a.appendChild(e);var h=new Jr(e,d.showDelayMs,d.hideDelayMs);kUa(h,c)}return new lUa(c,
b.icon,b.disabledIcon,h,b.disableNavigationFocus,b.onClick)},oUa=function(a,b,c,d){var e=Object.assign({},c);e.onClick=function(f){var h;null==(h=c.onClick)||h.call(c,f);f=[a.getSelection()];d.reporter.reportSecondaryAction(Kr(f))};return new nUa(a,b,e)},pUa=function(a,b){b.resultCustomization.secondaryActionButtonConfig&&(a=oUa(a,b.appearanceConfig,b.resultCustomization.secondaryActionButtonConfig,b.interactions));return a},rUa=function(){return function(a){var b=a.result;var c=a.selectionsState;
var d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomization,h=ZTa(b,d,f,wr(e.getDensity())),k=Bp(qUa,h);gr(k,25285,["impression","pk-select","pk-deselect"],[hUa(b.getPrimaryTarget().getLoggingToken())]);var q=$q(k,"d6MZcd"),t=vr(e.getDensity()),x;f=null!=(x=f.backupAvatarUrl)?x:"";e=ur(q,h.photos,t,t,e,f);b=new Lr(k,b,c,d,h.tags,e);c=new Mr(new Nr(b,c));c=pUa(c,a);oj(a.clientConfig.internal,7,!1)&&(a=a.appearanceConfig,a=void 0===a?new tr:a,c=new Or(c,a));return c}},tUa=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=Pr(k)||Qr(k)?eUa(c,d,h,b,oj(f.internal,6,!1),wr(e.getDensity())):ZTa(c,d,h,wr(e.getDensity()));b=Object;k=b.assign;a:switch(a){case 1:var q=Rr('<div class="'+Sr("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Sr(". Already selected")+'">'+Rr('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+
(Sr("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=Rr("");break a;default:q='<div class="'+Sr("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',q=Rr(q+"DISABLED</div>")}b=Bp(sUa,k.call(b,{},f,{disableReason:q}));k=$q(b,"d6MZcd");q=vr(e.getDensity());var t;h=null!=(t=h.backupAvatarUrl)?t:"";e=ur(k,f.photos,q,q,e,h);return new Tr(b,c,d,f.tags,
e)}},wUa=function(a,b,c,d,e,f,h,k){h=Bp(uUa,{header:h||""});a.appendChild(h);a=fTa($q(h,"tjneg"));return{resultList:new vUa(a,b,c,d,e,f,k),list:a}},xUa=function(a,b,c,d,e,f,h,k){h=Bp(uUa,{header:h||""});a.appendChild(h);a=fTa($q(h,"tjneg"));var q=hTa({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{});b=new vUa(a,b,c,d,e,f,k);q.attach(h,b.getNavigatable());return{resultList:b,list:a}},yUa=function(a,b,c,d,e,f,h,k){a=oj(d.internal,7,!1)?xUa(a,b,c,d,e,h,k,f):wUa(a,b,c,d,
e,h,k,f);return new Ur(a.resultList,f)},zUa=function(a,b,c,d,e,f,h,k,q){a=wUa(a,b,c,d,e,k,q,f);b=a.resultList;b=new Vr(b,a.list,h);return new Ur(b,f)},BUa=function(a,b){return new AUa(a,b)},CUa=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},Kr=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},Wr=function(a,b,c,d){var e;d=n(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;},DUa=function(a,b,c,d,e){e=n(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},EUa=function(a){var b=document.createElement("div"),c=a.action,d=a.pairs;if(b){var e="";c&&c.length&&(e="; track:"+c.join(",").trim());c="";d&&d.length&&(c="; "+d.join("; ").trim());b.setAttribute("jslog",a.veid+e+c);b.LSWHIf=void 0}return b},FUa=function(a){return Array.from(a).filter(function(b){return b instanceof Element}).flatMap(function(b){var c=
Array.from(b.querySelectorAll("[pk-log]"));b.hasAttribute("pk-log")&&c.push(b);return c})},HUa=function(a){if(GUa.has(a))return GUa.get(a);throw Error("xe`"+a);},JUa=function(a){if(IUa.has(a))return IUa.get(a);throw Error("ye`"+a);},KUa=function(a){for(var b=new Map,c=n(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(a[d].string,a[d].xid);return b},MUa=function(a){return a?a.__owner?a.__owner:a.parentNode&&11===a.parentNode.nodeType?a.parentNode.host:LUa(a):null},NUa=function(a,b){for(a=
MUa(a);a&&!b(a);)a=MUa(a)},PUa=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new Xr);return OUa(a,b,c,h,d,e,f)},OUa=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(),t=q.experimentsConfig_.getProfileId();if(t)if(k.getExperiments().getIsEnabled()){var x=Oo(Yr,'[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]');x=new Zr(x,7)}else x=new $r;
else x=new $r;k=k.getExperiments();q=x.loadExperiments(k.getApplication(),(new as).setPeopleApiEnv(q.apiEnv_),t);Fr=new bs(k,q);q=Bp(QUa);a.appendChild(q);a=e.getTheme();t=n(["peoplekitThemeLight","peoplekitThemeDark"]);for(k=t.next();!k.done;k=t.next())q.classList.remove(k.value);(a=RUa.get(a))&&q.classList.add(a);gr(q,64611,["impression"]);a=new cs;t=e.getEntryPoint();t=new SUa(d,a,t);k=f.internal.getClearcut();x=new TUa(k);x=ds(x);k=k.getInterfaceType();k=new UUa(new VUa(x,k));var y=new WUa(h.intelligence);
h=Bp(XUa);q.appendChild(h);x=Bp(YUa);gr(x,85843,["impression"]);h.appendChild(x);var F=$q(x,"tjneg");a:{var K=e.getAutocompleteHeader();switch(e.getAutocompleteGroupingType()){case 1:y=zUa(F,e,e,f,a,t,new es(e.getAutocompleteGroupingLabel()),y,K);break a;case 2:y=zUa(F,e,e,f,a,t,new fs(e.getAutocompleteGroupingLabel()),y,K);break a;case 3:var J=e.getAutocompleteCustomGrouping();y=J?zUa(F,e,e,f,a,t,J,y,K):yUa(F,e,e,f,a,t,y,K);break a;default:y=yUa(F,e,e,f,a,t,y,K)}}F=$q(F,"rymPhb");b.setAttribute("aria-owns",
F.id);b.setAttribute("aria-controls",F.id);F.setAttribute("aria-labelledby",b.id);K=e.getNoResultsMessage();F=Bp(ZUa);K?K.display?K=new $Ua(F,K):(K=Bp(aVa,K),F.appendChild(K),K=new bVa):K=new cVa;x.appendChild(F);d=new dVa(x,b,y,d,k,e,K);b=new eVa(h,b,d,a,e);bTa(b.getRoot(),c);c=f.internal.getClearcut();f=e.getEntryPoint();d=Fr.getExperiments();oj(d,2,!1)||oj(c,6,!0)?(d=new gs,h=tp(),f=(new fVa).setClientId(c.getClientId()).setApplication(c.getSocialApplication()).setEntryPoint(f).setVersionName("1.0").setBaselineCl(456799336),
f=new hs(d,1394,h,void 0,void 0,void 0,new gVa(f)),f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||!1),c=new hVa,d=Fr.getExperimentIds(),c=Bb(c,3,d),f.clearcut_.setClearExperimentIds(c),q.hasAttribute("pk-log")?(c=new iVa(new is(q),f),c=new jVa(q,c),c=new kVa(c)):c=new js):c=new js;c.start();return new lVa(q,b,a,t,c,e)},mVa=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);ks.lastIndex=0;for(var d=
ks.exec(a);d&&d.index<c;d=ks.exec(a))b.push(a.substring(Number(ks.lastIndex)));return b},qVa=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(nVa)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=n(a);for(var c=a.next();!c.done;c=a.next()){c=ls(oVa(c.value)).replace(pVa,"").toUpperCase().toLowerCase();c=n(mVa(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})},sVa=function(a){var b;return rVa(function(c){1==c.nextAddress&&(b=0);if(3!=c.nextAddress)return b<a?Re(c,b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},tVa=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Pr(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},wVa=function(a,b,c){if(Pr(a.id)||Pr(b.id)){var d=uVa.has(a.id.getType()),e=uVa.has(b.id.getType());if(d!==e)return d?-1:1;if(Pr(a.id)&&Pr(b.id))return vVa(a,b,c,!1)}d=tVa(a,c);c=
tVa(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},vVa=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?wVa(a,b,c):0},zVa=function(a,b,c){var d=ms(b.getTargetType(),b.getValue()),e=[].concat(r(b.getProfileIdList().map(ns)),r(b.getContactIdList().map(xVa)),r(b.getCustomSourceIdList().map(os)));yVa.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}},AVa=function(a){return(a||"").trim()},FVa=function(a){var b=a.resultData,c=a.targetData,d=BVa(ps(a.id).setDataSource(a.dataSource||
0),!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);b.hasResultType()&&(d.resultType_=b.getResultType());c.hasValue()&&d.setValue(AVa(c.getValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();d.setName((new qs).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&(e=c.getPhoto(),d.setPhoto((new rs).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&&CVa(d,c.getTagList().map(function(h){return DVa(h.altText_).setIconUrl(h.getIconUrl())}));c.hasExtendedData()&&EVa(d,c.getExtendedData());
return d},HVa=function(a){return a?GVa.get(a)||0:0},KVa=function(a){switch(a.getValueCase()){case 2:return ss(a.getEmail().getValue()||"");case 3:return a=a.getPhone(),IVa(a.getOriginalValue()||a.getDisplayValue()||l(a,2)||"");case 4:a=Hl(a,ts,4,us);if(a.hasProfileId())return a=a.getProfileId()||"",new vs(8,Xq(a).toLowerCase(),a);switch(ym(a,ws)){case 2:return a=a.getEmail()||"",new vs(6,Xq(a).toLowerCase(),a);case 3:return JVa(a.getPhone()||"")}}return xs},LVa=function(a){return Nb(a,ys,5).map(function(b){switch(b.getIdCase()){case 1:return ns(b.getProfileId()||
"");default:return null}}).filter(Boolean)},MVa=function(a,b){return vj(a,zs,3)&&Ub(a,zs,3).getIsPlaceholder()?3:As(b,8)?1:0},Bs=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},NVa=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},OVa=function(a){return!!a&&!!a.getPrimary()},QVa=function(a){if(!a.hasEmail()||!a.getEmail().getValue())return null;var b=void 0;Ub(a,Cs,9)&&(b=Ds(new Es,PVa,Ub(a,Cs,9)));a={id:ss(a.getEmail().getValue()),
containerIds:LVa(a),contactMethod:a,provenance:8,isMe:!1,dataSource:1,isPrimary:OVa(a.getDisplayInfo()),itemAffinity:-Infinity,fieldAffinity:Bs(a.getDisplayInfo())};b&&(a.targetExtendedData=b);return a},SVa=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"+RVa(a):
""},VVa=function(a,b,c,d){d=void 0===d?!1:d;var e=[],f=void 0,h=void 0;Ub(a,zs,3)&&(f=f?f:new Es,Ds(f,TVa,Ub(a,zs,3)));Ub(a,Fs,5)&&(f=f?f:new Es,Ds(f,UVa,Ub(a,Fs,5)));for(var k=[],q=n(Nb(a,Gs,1)),t=q.next();!t.done;t=q.next()){t=t.value;var x=KVa(t);if(x.equals(xs)){if(!c.allowEmptyTargets&&!d)continue;x=SVa(t);if(!x)continue;x=os(x)}k.push(String(x));Ub(t,Cs,9)&&(h=h?h:new Es,Ds(h,PVa,Ub(t,Cs,9)));t={id:x,containerIds:LVa(t),coalescedKeys:k,isMe:!!t.getIsSelf(),dataSource:MVa(a,t),provenance:b,isPrimary:OVa(t.getDisplayInfo()),
itemAffinity:NVa(a),fieldAffinity:Bs(t.getDisplayInfo()),contactMethod:t,person:a};vj(a,zs,3)&&Ub(a,zs,3).hasContactId()&&t.containerIds.push(xVa(String(Ub(a,zs,3).getContactId())));f&&(t.resultExtendedData=f);h&&(t.targetExtendedData=h);e.push(t)}e.length&&e.every(function(y){return!y.isPrimary})&&(e[0].isPrimary=!0);return e},WVa=function(a,b,c){var d=ms(HVa(l(a,5)),a.getGroupId()||""),e=a.getMembersList().map(function(k){return VVa(k,8,c,!0)}),f=e.filter(function(k){return k&&k.length}).map(function(k){return String(k[0].id)}),
h;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:null!=(h=l(a,3))?h:void 0,provenance:b,isPrimary:!0,itemAffinity:Bs(a.getDisplayInfo()),fieldAffinity:-Infinity,group:a}];a=n(e);for(b=a.next();!b.done;b=a.next())d.push.apply(d,r(b.value));return d},YVa=function(a,b){var c=XVa(a.getLabelId()||""),d=a.getMembersList().map(QVa).filter(Boolean),e=d.map(function(f){return String(f.id)});return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,
itemAffinity:Bs(a.getDisplayInfo()),fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(r(d))},$Va=function(a){var b=new Hs,c=a?2:1;ZVa(b.setEventType(4),c).setToken(a);return b},bWa=function(a,b){var c=new Is;c=(new Hs).setLookupInfo(c);Js(c.setEventType(6),9).setItemCount(a.length).setQueryScope(aWa.get(b)||0);return c},cWa=function(){var a=new Hs;Js(a.setEventType(6),11);return a},dWa=function(){var a=new Hs;Js(a.setEventType(6),10);return a},eWa=function(a,b){var c=new Hs;Js(c.setEventType(6),
6).setQueryLength(a.length).setQueryScope(aWa.get(b)||0);return c},fWa=function(a){var b=new Hs;Js(b.setEventType(6),5).setQueryScope(aWa.get(a)||0);return b},gWa=function(a,b){switch(a){case 8:case 3:case 17:return(new Ks).setProfileId(b);case 1:case 6:return(new Ks).setEmail(b);case 7:case 2:return(new Ks).setPhone(b);default:return null}},iWa=function(a){return((a=Nb(a,Ls,2).find(function(b){return 1===l(b,1)}))?hWa.get(l(a,2)):0)||0},lWa=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(jWa(Dba(Ms(b.getAffinity(),
1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new qs).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 rs).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(kWa.get(b.getType())||0)))},mWa=function(a,b){if(b.hasProfileId())switch(ym(b,ws)){case 2:var c=b.getEmail()||"";return Ns(ps(a.id).setValue(b.getProfileId()||
""),(new Os).setType(1).setValue(c));case 3:return c=b.getPhone()||"",Ns(ps(a.id).setValue(b.getProfileId()||""),(new Os).setType(2).setValue(c));default:return b=b.getProfileId()||"",ps(a.id).setValue(b)}switch(ym(b,ws)){case 2:return b=b.getEmail()||"",Ns(ps(a.id).setValue(b),(new Os).setType(1).setValue(b));case 3:return b=b.getPhone()||"",Ns(ps(a.id).setValue(b),(new Os).setType(2).setValue(b));default:return b=b.getProfileId()||"",ps(a.id).setValue(b)}},nWa=function(a,b){var c=BVa(ps(a.id),!!a.isMe);
a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&lWa(c,b);a.group&&((b=Nb(a.group,Ps,6).find(function(d){return null!=Qs(d,1,Rs)}))?c.setValue(Qs(b,1,Rs)||""):a.group.hasGroupId()&&c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);a.target=c},pWa=function(a){return new oWa(a)},sWa=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=qWa.get(b)))return b}return(b=rWa.get(a.getTargetType()))?b:Pr(a.getId())?8:
0},uWa=function(a,b,c){var d=new Ss,e=new Ts;Vb(d,2,e);e.setProvenance(b);b=new Us;Vb(d,1,b);m(b,9,1===c);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=8===sWa(a)?8:a.getIsPersonalResult()?4:3;m(b,8,c);c=null;8===a.getTargetType()&&(e=a.getOriginatingField())&&qWa.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Pr(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=sWa(a);m(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||
null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(3===a.getDataSource());8===l(b,7)&&b.setGroupId(a.getId().getValue());return new tWa(a,d)},wWa=function(a){a=vWa.indexOf(a.provenance);return 0>a?vWa.length:a},xWa=function(a){return a.containerIds&&a.containerIds.some(function(b){return 3===b.getType()})},yWa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new dr(new Vs(a,d))},AWa=function(a,b){b.useOriginalDisplayValue_&&
(a=new Map(Array.from(a,function(c){var d=n(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=yWa(d,new zWa(f,e))}return[c,d]})));return a},BWa=function(){return new Ws(Uc.apply(0,arguments))},DWa=function(){return new CWa(Uc.apply(0,arguments))},Xs=function(){var a=Uc.apply(0,arguments);return 1===a.length?a[0]:new EWa(a)},
FWa=function(a,b){return new Promise(function(c){0<b?setTimeout(function(){return c(a)},b):c(a)})},GWa=function(a,b,c){b=FWa(b,c);return Promise.race([a,b])},HWa=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)}}},JWa=function(a,b,c,d){b=IWa(a,b).map(function(e){var f=n(e);e=f.next().value;f=f.next().value;
return new Ys(e,f)});c=IWa(a,c).map(function(e){var f=n(e);e=f.next().value;f=f.next().value;return new Ys(e,f)});a=IWa(a,d).map(function(e){var f=n(e);e=f.next().value;f=f.next().value;return new Ys(e,f)});return new Zs(b,c,a)},KWa=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}},LWa=function(a){return a.reduce(function(b,c){var d=KWa(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},
MWa=function(a,b){b=void 0===b?new $s:b;var c=new Map;a=n(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=n(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}},NWa=function(a){return!a||a instanceof at?a:new at(a)},PWa=function(a){return OWa.get(a)||0},QWa=function(a,b){var c=bt(ct(new dt,"PeopleStore").setLogSource(qj(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(456799336).setEnableClearcut(a.getEnableClearcut()),
[].concat(r(b.getExperiments().getExperimentIdsList()),r(et?et.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=Nb(a,ft,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(l(a,4));return c},RWa=function(a){return(vj(a,gt,12)?Ub(Ub(a,gt,12),ft,2):a.getSources())||new ft},SWa=function(a){return(vj(a,gt,12)?Ub(Ub(a,gt,12),ft,3):a.getSources())||new ft},ht=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)},TWa=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return Aj(a,3,0)+":"+Aj(a,4,0)+":"+Aj(a,5,0)+":"+a.getInstanceId()},UWa=function(a){return vj(a,Ts,2)?Ir(a).getContext()||0:0},VWa=function(a){var b=new Map;a=n(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?Aj(d,3,0)+"-"+Aj(d,4,0)+"-"+Aj(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},jt=function(a,b,c,
d){d=void 0===d?!1:d;a=a.filter(function(h){return!oj(h,4,!1)});if(d){d=n(a);for(var e=d.next();!e.done;e=d.next())m(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=n(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=VWa(a);c=[];a=n(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 it;f.setSessionState(e);f.setEventType(b);Mb(f,3,d);WWa(f,e.getSources());c.push(f)}return c},
XWa=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new kt},YWa=function(a){a&1&&H(0,"div",2)},ZWa=function(a){a&1&&(I(0),gg(1),L())},$Wa=function(a){a&1&&(E(0,"a",3),Q(1),U(2,"async"),G());if(a&2){a=N();var b;D("href",a.manageComponentLink,le);A(1);kg(null==(b=V(2,2,a.component$))?null:b.name)}},aXa=function(a){a&1&&(E(0,"output"),Q(1),G());a&2&&(a=N(),A(1),kg(a.componentId))},bXa=function(a){a&1&&(E(0,"li")(1,"label"),Q(2,"Component"),
G(),H(3,"b-async-component",6),G());a&2&&(a=N(2),A(3),D("componentId",a.issueComponentId))},cXa=function(a){a&1&&(E(0,"li")(1,"label"),Q(2,"Team"),G(),H(3,"b-team-display",7),G());a&2&&(a=N(2),A(3),D("teamId",a.issueTeamId))},dXa=function(a){a&1&&(E(0,"ol",3)(1,"li")(2,"label"),Q(3,"ID"),G(),E(4,"output"),Q(5),G()(),E(6,"li")(7,"label"),Q(8,"Type"),G(),E(9,"output"),Q(10),G()(),E(11,"li")(12,"label"),Q(13,"Priority"),G(),H(14,"b-issue-priority-display",4),G(),E(15,"li")(16,"label"),Q(17,"Severity"),
G(),E(18,"output"),Q(19),G()(),E(20,"li")(21,"label"),Q(22,"Status"),G(),E(23,"output"),Q(24),G()(),E(25,"li")(26,"label"),Q(27,"Last modified"),G(),E(28,"output"),Q(29),U(30,"date"),G()(),P(31,bXa,4,1,"li",5),P(32,cXa,4,1,"li",5),G());a&2&&(a=N(),A(5),kg(a.issueId),A(5),kg(a.issueType),A(4),D("issuePriority",a.issuePriority),A(5),kg(a.issueSeverity),A(5),kg(a.issueStatus),A(5),kg(rg(30,8,a.issueLastModified,"medium")),A(2),D("ngIf",a.issueComponentId),A(1),D("ngIf",a.issueTeamId))},eXa=function(a){return a.startsWith('"')&&
a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},fXa=function(a){a.label||(a=Si(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},hXa=function(a){return{type:gXa[a.getType()],value:a.getValue()}},jXa=function(a){var b,c;return{type:iXa[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(jXa),simpleValues:(null!=(c=Nb(a,kXa,3))?c:[]).map(hXa)}},oXa=function(a){var b,c=lXa[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(jXa);
b=oj(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:mXa[e.getField()],customFieldId:Number(e.getCustomFieldId())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:nXa[qj(a,5,0)]}},tXa=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:Pi(Hl(a,pXa,2,qXa),1)},queryBuilderResponse:void 0};case 1:a=Hl(a,lt,1,qXa);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:rXa[a.getType()],expressions:(null!=(b=Nb(a,sXa,2))?b:[]).map(oXa)}};default:return{syntaxErrorResponse:void 0,
queryBuilderResponse:void 0}}},uXa=function(a){a&1&&(E(0,"span",11),Q(1," > "),G())},vXa=function(a,b){if(a&1){var c=v();E(0,"span")(1,"a",9);M("click",function(d){var e=w(c).$implicit,f=N(2);e=new mt(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();nt(f.autocompleteTrigger);return z()});Q(2);G();P(3,uXa,2,0,"span",10);G()}a&2&&(a=b.$implicit,b=b.last,A(1),D("matTooltip",a.pathNameText),A(1),kg(a.name),A(1),D("ngIf",!b))},wXa=function(a,b){a&1&&(E(0,"mat-option",
6)(1,"div"),P(2,vXa,4,3,"span",7),G(),E(3,"span",8),Q(4),U(5,"slice"),G()());if(a&2){a=b.$implicit;D("value",a);A(2);D("ngForOf",a.teamPath);A(1);D("matTooltip",a.description);A(1);a=a.description;b=v();var c=b[27];a=b[1].data[27].pure?iia(b,nd(),4,c.transform,a,0,100,c):c.transform(a,0,100);T("",a," ")}},xXa=function(a){return a.getTeamSuggestionsList().map(function(b){return new mt(b.getPathIdsList(),b.getPathNamesList(),b.getDescription())})},yXa=function(a,b){a&1&&(E(0,"mat-option",5)(1,"div",
6),Q(2),G()());a&2&&(a=b.$implicit,D("value",a),A(2),T(" ",a.name," "))},zXa=function(a,b){a&1&&(E(0,"mat-option",13),Q(1),G());a&2&&(a=b.$implicit,D("value",a.key),A(1),T(" ",a.value," "))},AXa=function(a){if(a&1){var b=v();E(0,"mat-form-field",10)(1,"mat-select",11);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.expressionType=c)});P(2,zXa,2,2,"mat-option",12);U(3,"keyvalue");G()()}a&2&&(a=N(2),A(1),D("ngModel",a.expressionType),A(1),D("ngForOf",V(3,2,a.globalTypeLabels)))},BXa=function(a,
b){a&1&&(E(0,"mat-option",13),Q(1),G());a&2&&(a=b.$implicit,D("value",a[0]),A(1),T(" ",a[1]," "))},CXa=function(a,b){a&1&&(E(0,"mat-option",13),Q(1),G());if(a&2){a=b.$implicit;b=N(2).$implicit;var c=N(2);D("value",a);A(1);T(" ",c.getTypeLabel(b,a)," ")}},DXa=function(a){if(a&1){var b=v();E(0,"mat-form-field",10)(1,"mat-select",21);M("ngModelChange",function(c){w(b);var d=N().$implicit;return z(d.type=c)});P(2,CXa,2,2,"mat-option",12);G()()}a&2&&(a=N().$implicit,A(1),D("ngModel",a.type),A(1),D("ngForOf",
a.getLegalTypes()))},EXa=function(a,b){if(a&1){var c=v();E(0,"div",28)(1,"b-checkbox",29);M("change",function(d){var e=w(c).$implicit,f=N(3).$implicit;return z(f.enumValues[e.id]=d)});G()()}a&2&&(a=b.$implicit,b=N(3).$implicit,A(1),D("checked",b.enumValues[a.id])("label",a.label||a.id))},FXa=function(a){a&1&&(E(0,"div",26),P(1,EXa,2,2,"div",27),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.getOptions()))},GXa=function(a){if(a&1){var b=v();E(0,"div")(1,"input",30);M("ngModelChange",function(c){w(b);
var d=N(3).$implicit;return z(d.csv=c)});G()()}a&2&&(a=N(3).$implicit,A(1),D("ngModel",a.csv)("bContactAutocomplete","MULTI"))},HXa=function(a){if(a&1){var b=v();E(0,"div",22)(1,"input",31);M("ngModelChange",function(c){w(b);var d=N(3).$implicit;return z(d.csv=c)});G()()}a&2&&(a=N(3).$implicit,A(1),D("ngModel",a.csv))},IXa=function(a){if(a&1){var b=v();E(0,"div",22)(1,"input",32);M("ngModelChange",function(c){w(b);var d=N(3).$implicit;return z(d.csv=c)});G()()}a&2&&(a=N(3).$implicit,A(1),D("ngModel",
a.csv))},JXa=function(a){if(a&1){var b=v();E(0,"div",22)(1,"input",33);M("ngModelChange",function(c){w(b);var d=N(3).$implicit;return z(d.csv=c)});G()()}a&2&&(a=N(3).$implicit,A(1),D("ngModel",a.csv))},KXa=function(a){a&1&&(E(0,"div"),P(1,GXa,2,2,"div",24),P(2,HXa,2,1,"div",18),P(3,IXa,2,1,"div",18),P(4,JXa,2,1,"div",18),G());a&2&&(a=N(2).$implicit,A(1),D("ngIf","user"==a.getWidgetType()),A(1),D("ngIf","csv"==a.getWidgetType()),A(1),D("ngIf","id"==a.getWidgetType()),A(1),D("ngIf","number"==a.getWidgetType()))},
LXa=function(a,b){if(a&1){var c=v();E(0,"div",37)(1,"div",38)(2,"input",33);M("ngModelChange",function(d){var e=w(c).$implicit;return z(e.value=d)});G()();E(3,"button",39);M("click",function(){var d=w(c).$implicit,e=N(3).$implicit,f=N(2);return z(ot(f,e,d))});G()()}a&2&&(a=b.$implicit,A(2),D("ngModel",a.value))},MXa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",function(){w(b);var c=N(3).$implicit,d=N(2);return z(pt(d,c))});Q(1);G()}a&2&&(a=N(3).$implicit,A(1),T(" + ","OR"==a.type||"NOR"==
a.type?"OR":"AND"," "))},NXa=function(a){a&1&&(E(0,"div",34),P(1,LXa,4,1,"div",35),P(2,MXa,2,1,"button",36),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},PXa=function(a){if(a&1){var b=v();E(0,"div",49);M("click",function(){w(b);var d=N(2).$implicit,e=N(5);return z(OXa(e,d))});U(1,"componentPath");E(2,"span",50);Q(3);U(4,"componentPath");G()()}if(a&2){a=N(2).$implicit;var c=N(5);D("title",V(1,2,c.components[a.value]));A(3);T(" ",V(4,4,c.components[a.value])," ")}},
QXa=function(a){if(a&1){var b=v();E(0,"div",38)(1,"b-team-component-picker",51);M("selectedComponentChange",function(c){w(b);var d=N(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;qt(d);return z()});G()()}a&2&&(a=N(7),A(1),D("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},RXa=
function(a){if(a&1){var b=v();E(0,"div",43);P(1,PXa,5,6,"div",44);P(2,QXa,2,3,"div",45);E(3,"button",46);M("click",function(){w(b);var d=N().$implicit;N(5);d.includeSubs=!d.includeSubs;return z()});H(4,"mat-icon",47);G();E(5,"button",48);M("click",function(){w(b);var d=N().$implicit,e=N(3).$implicit,f=N(2);return z(ot(f,e,d))});G()()}if(a&2){a=N().$implicit;var c=N(5);A(1);D("ngIf",c.chipUnderEdit!==a);A(1);D("ngIf",c.chipUnderEdit===a);A(1);D("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");
Uf("aria-checked",a.includeSubs);A(1);D("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},SXa=function(a,b){a&1&&(I(0),P(1,RXa,6,5,"div",42),L());a&2&&(a=b.$implicit,b=N(5),A(1),D("ngIf",b.chipUnderEdit===a||a.value))},TXa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",function(){w(b);var c=N(3).$implicit,d=N(2);return z(pt(d,c))});Q(1);G()}a&2&&(a=N(3).$implicit,A(1),T(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},UXa=function(a){a&1&&(E(0,"div",34),
P(1,SXa,2,1,"ng-container",41),P(2,TXa,2,1,"button",36),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},WXa=function(a){if(a&1){var b=v();E(0,"div",49);M("click",function(){w(b);var d=N(2).$implicit,e=N(5);return z(VXa(e,d))});E(1,"span",50);Q(2);G()()}if(a&2){a=N(2).$implicit;var c=N(5);D("title",null==c.trackers[a.value]?null:c.trackers[a.value].name);A(2);T(" ",null==c.trackers[a.value]?null:c.trackers[a.value].name," ")}},XXa=function(a){if(a&1){var b=v();E(0,"div",
38)(1,"b-tracker-picker",54);M("onTrackerSelect",function(c){w(b);var d=N(7);Mo(d.analytics,Aq.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;qt(d);return z()});G()()}a&2&&(a=N(7),A(1),D("selectedTracker",a.trackerUnderEdit))},YXa=function(a){if(a&1){var b=v();E(0,"div",53);P(1,WXa,3,2,"div",44);P(2,XXa,2,1,"div",45);E(3,"button",48);M("click",function(){w(b);var d=
N().$implicit,e=N(3).$implicit,f=N(2);return z(ot(f,e,d))});G()()}if(a&2){a=N().$implicit;var c=N(5);A(1);D("ngIf",c.chipUnderEdit!==a);A(1);D("ngIf",c.chipUnderEdit===a)}},ZXa=function(a,b){a&1&&(I(0),P(1,YXa,4,2,"div",52),L());a&2&&(a=b.$implicit,b=N(5),A(1),D("ngIf",b.chipUnderEdit===a||a.value))},$Xa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",function(){w(b);var c=N(3).$implicit,d=N(2);return z(pt(d,c))});Q(1);G()}a&2&&(a=N(3).$implicit,A(1),T(" + ","OR"==a.type||"NAND"==a.type?
"OR":"AND"," "))},aYa=function(a){a&1&&(E(0,"div",34),P(1,ZXa,2,1,"ng-container",41),P(2,$Xa,2,1,"button",36),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},cYa=function(a){if(a&1){var b=v();E(0,"div",49);M("click",function(){w(b);var d=N(2).$implicit,e=N(6);return z(bYa(e,d))});U(1,"teamPath");E(2,"span",50);Q(3);U(4,"teamPath");G()()}if(a&2){a=N(2).$implicit;var c=N(6);D("title",V(1,2,c.teams[a.value]));A(3);T(" ",V(4,4,c.teams[a.value])," ")}},eYa=function(a){if(a&
1){var b=v();E(0,"div",38)(1,"b-team-picker",58);M("onTeamSelect",function(c){w(b);var d=N(8);return z(dYa(d,c))});G()()}a&2&&(a=N(8),A(1),D("teamSelected",a.teamUnderEdit))},fYa=function(a){if(a&1){var b=v();E(0,"div",56);P(1,cYa,5,6,"div",44);P(2,eYa,2,1,"div",45);E(3,"button",57);M("click",function(){w(b);var d=N().$implicit;N(6);d.includeSubs=!d.includeSubs;return z()});H(4,"mat-icon",47);G();E(5,"button",48);M("click",function(){w(b);var d=N().$implicit,e=N(4).$implicit,f=N(2);return z(ot(f,
e,d))});G()()}if(a&2){a=N().$implicit;var c=N(6);A(1);D("ngIf",c.chipUnderEdit!==a);A(1);D("ngIf",c.chipUnderEdit===a);A(1);D("title",a.includeSubs?"Subteams are included":"Subteams are not included");Uf("aria-checked",a.includeSubs);A(1);D("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},gYa=function(a,b){a&1&&(I(0),P(1,fYa,6,5,"div",55),L());a&2&&(a=b.$implicit,b=N(6),A(1),D("ngIf",b.chipUnderEdit===a||a.value))},hYa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",
function(){w(b);var c=N(4).$implicit,d=N(2);return z(pt(d,c))});Q(1);G()}a&2&&(a=N(4).$implicit,A(1),T(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},iYa=function(a){a&1&&(I(0),P(1,gYa,2,1,"ng-container",41),P(2,hYa,2,1,"button",36),L());a&2&&(a=N(3).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},jYa=function(a){a&1&&(E(0,"div",34),P(1,iYa,3,2,"ng-container",24),G());a&2&&(a=N(4),A(1),D("ngIf",a.sessionIsInternal))},lYa=function(a){if(a&1){var b=v();E(0,"div")(1,"bv2-input-date-picker",
59);M("boundValueChange",function(c){w(b);N(3).$implicit.dateFrom=kYa(c);return z()});G();Q(2," and ");E(3,"bv2-input-date-picker",59);M("boundValueChange",function(c){w(b);N(3).$implicit.dateTo=kYa(c);return z()});G()()}a&2&&(a=N(3).$implicit,A(1),D("boundValue",a.dateFrom)("isRequired",!0),A(2),D("boundValue",a.dateTo)("isRequired",!0))},mYa=function(a){if(a&1){var b=v();E(0,"div");Q(1," the last ");E(2,"input",60);M("ngModelChange",function(c){w(b);var d=N(3).$implicit;return z(d.duration=c)});
G();Q(3," days. ");G()}a&2&&(a=N(3).$implicit,A(2),D("ngModel",a.duration))},nYa=function(a){if(a&1){var b=v();E(0,"div")(1,"bv2-input-date-picker",59);M("boundValueChange",function(c){w(b);N(3).$implicit.dateFrom=kYa(c);return z()});G()()}a&2&&(a=N(3).$implicit,A(1),D("boundValue",a.dateFrom)("isRequired",!0))},oYa=function(a){a&1&&(E(0,"div"),P(1,lYa,4,4,"div",24),P(2,mYa,4,1,"div",24),P(3,nYa,2,2,"div",24),G());a&2&&(a=N(2).$implicit,A(1),D("ngIf","RANGE"==a.type||"NRANGE"==a.type),A(1),D("ngIf",
"DURATION"==a.type||"NDURATION"==a.type),A(1),D("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},pYa=function(a){if(a&1){var b=v();E(0,"div",49);M("click",function(){w(b);var d=N(2).$implicit,e=N(5);return z(rt(e,d))});E(1,"span",50);Q(2);G()()}if(a&2){a=N(2).$implicit;var c=N(5);D("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);A(2);T(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},qYa=function(a,b){a&1&&(E(0,
"mat-option",13),Q(1),G());a&2&&(a=b.$implicit,D("value",a.hotlistId),A(1),T(" ",a.name," "))},rYa=function(a){if(a&1){var b=v();E(0,"mat-form-field",64)(1,"mat-select",65);M("ngModelChange",function(d){w(b);var e=N(2).$implicit;return z(e.value=d)})("selectionChange",function(){w(b);var d=N(7);return z(qt(d))});P(2,qYa,2,2,"mat-option",12);G()()}if(a&2){a=N(2).$implicit;var c=N(5);A(1);D("ngModel",a.value);A(1);D("ngForOf",c.userHotlists)}},sYa=function(a){if(a&1){var b=v();E(0,"div",62);P(1,pYa,
3,2,"div",44);P(2,rYa,3,2,"mat-form-field",63);E(3,"button",48);M("click",function(){w(b);var d=N().$implicit,e=N(3).$implicit,f=N(2);return z(ot(f,e,d))});G()()}if(a&2){a=N().$implicit;var c=N(5);A(1);D("ngIf",c.chipUnderEdit!==a);A(1);D("ngIf",c.chipUnderEdit===a)}},tYa=function(a,b){a&1&&(I(0),P(1,sYa,4,2,"div",61),L());a&2&&(a=b.$implicit,b=N(5),A(1),D("ngIf",b.chipUnderEdit===a||a.value))},uYa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",function(){w(b);var c=N(3).$implicit,d=N(2);
return z(pt(d,c))});Q(1);G()}a&2&&(a=N(3).$implicit,A(1),T(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},vYa=function(a){a&1&&(E(0,"div",34),P(1,tYa,2,1,"ng-container",41),P(2,uYa,2,1,"button",36),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},wYa=function(a){if(a&1){var b=v();E(0,"div",49);M("click",function(){w(b);var d=N(2).$implicit,e=N(5);return z(rt(e,d))});E(1,"span",50);Q(2);G()()}if(a&2){a=N(2).$implicit;var c=N(5);D("title",(null==c.savedSearches[a.value]?
null:c.savedSearches[a.value].name)||a.value);A(2);T(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},xYa=function(a,b){a&1&&(E(0,"mat-option",13),Q(1),G());a&2&&(a=b.$implicit,D("value",a.searchId),A(1),T(" ",a.name," "))},yYa=function(a){if(a&1){var b=v();E(0,"mat-form-field",64)(1,"mat-select",66);M("ngModelChange",function(d){w(b);var e=N(2).$implicit;return z(e.value=d)})("selectionChange",function(){w(b);var d=N(7);return z(qt(d))});P(2,xYa,2,2,"mat-option",
12);G()()}if(a&2){a=N(2).$implicit;var c=N(5);A(1);D("ngModel",a.value);A(1);D("ngForOf",c.userSavedSearches)}},zYa=function(a){if(a&1){var b=v();E(0,"div",62);P(1,wYa,3,2,"div",44);P(2,yYa,3,2,"mat-form-field",63);E(3,"button",48);M("click",function(){w(b);var d=N().$implicit,e=N(3).$implicit,f=N(2);return z(ot(f,e,d))});G()()}if(a&2){a=N().$implicit;var c=N(5);A(1);D("ngIf",c.chipUnderEdit!==a);A(1);D("ngIf",c.chipUnderEdit===a)}},AYa=function(a,b){a&1&&(I(0),P(1,zYa,4,2,"div",61),L());a&2&&(a=
b.$implicit,b=N(5),A(1),D("ngIf",b.chipUnderEdit===a||a.value))},BYa=function(a){if(a&1){var b=v();E(0,"button",40);M("click",function(){w(b);var c=N(3).$implicit,d=N(2);return z(pt(d,c))});Q(1);G()}a&2&&(a=N(3).$implicit,A(1),T(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND"," "))},CYa=function(a){a&1&&(E(0,"div",34),P(1,AYa,2,1,"ng-container",41),P(2,BYa,2,1,"button",36),G());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.values),A(1),D("ngIf",a.type))},DYa=function(a){a&1&&(E(0,"div",22),P(1,FXa,2,1,
"div",23),P(2,KXa,5,4,"div",24),P(3,NXa,3,2,"div",25),P(4,UXa,3,2,"div",25),P(5,aYa,3,2,"div",25),P(6,jYa,2,1,"div",25),P(7,oYa,4,3,"div",24),P(8,vYa,3,2,"div",25),P(9,CYa,3,2,"div",25),G());if(a&2){a=N().$implicit;var b=N(2);A(1);D("ngIf","enum"===a.getWidgetType());A(1);D("ngIf",a instanceof st);A(1);D("ngIf","text"==a.getWidgetType());A(1);D("ngIf","component"==a.getWidgetType());A(1);D("ngIf",b.isTrackerSearchEnabled&&"tracker"==a.getWidgetType());A(1);D("ngIf","team"==a.getWidgetType());A(1);
D("ngIf","date"===a.getWidgetType());A(1);D("ngIf","hotlist"==a.getWidgetType());A(1);D("ngIf","savedsearch"==a.getWidgetType())}},EYa=function(a){a&1&&(E(0,"div",67),Q(1),G());if(a&2){a=N().$implicit;var b=N(2);A(1);T(" ",b.getCustomFieldName(a)," ")}},HYa=function(a){if(a&1){var b=v();E(0,"div",68)(1,"b-custom-field-picker",69);M("fieldSelected",function(c){w(b);var d=N().index,e=N(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=FYa(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);
GYa(e,e.expressions[d]);return z()});G()()}},JYa=function(a,b){if(a&1){var c=v();E(0,"div",14)(1,"div",15)(2,"mat-form-field",10)(3,"mat-select",16);M("ngModelChange",function(d){var e=w(c).$implicit;return z(e.label.field=d)})("selectionChange",function(){var d=w(c).index,e=N(2);return z(IYa(e,d))});P(4,BXa,2,2,"mat-option",12);G()();P(5,DXa,3,2,"mat-form-field",3);G();E(6,"button",17);M("click",function(){var d=w(c).$implicit,e=N(2);return z(e.removeExpression(d))});G();P(7,DYa,10,9,"div",18);P(8,
EYa,2,1,"div",19);P(9,HYa,2,0,"div",20);G()}a&2&&(a=b.$implicit,b=N(2),A(3),D("ngModel",a.label.field),A(1),D("ngForOf",b.availableLabels),A(1),D("ngIf",!a.isPendingCustomField),A(2),D("ngIf",!a.isPendingCustomField),A(1),D("ngIf",a.label.customFieldId),A(1),D("ngIf",a.isPendingCustomField))},KYa=function(a,b){if(a&1){var c=v();E(0,"button",70);M("click",function(){var d=w(c).$implicit,e=N(2);e.expressions.push({label:{field:d[0]}});IYa(e,e.expressions.length-1);return z()});Q(1);G()}a&2&&(a=b.$implicit,
A(1),T(" ",a[1]," "))},LYa=function(a){a&1&&(E(0,"div",1)(1,"span",2),Q(2,"Advanced search query builder"),G(),P(3,AXa,4,4,"mat-form-field",3),P(4,JYa,10,6,"div",4),E(5,"div",5)(6,"button",6),Q(7),G(),E(8,"mat-menu",7,8),P(10,KYa,2,1,"button",9),G()()());if(a&2){var b=O(9);a=N();A(3);D("ngIf",a.expressions.length);A(1);D("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);A(2);D("matMenuTriggerFor",b);A(1);T(" ",a.expressionType," ... ");A(3);D("ngForOf",a.availableLabels)}},MYa=function(a){a&
1&&H(0,"div",3)},NYa=function(a){a&1&&H(0,"div",4)},PYa=function(a){if(a&1){var b=v();E(0,"button",2);M("click",function(){w(b);var c=N();return z(OYa(c))});H(1,"mat-icon",3);Q(2);G()}a&2&&(a=N(),D("matTooltip","Open release notes"),A(1),D("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),A(1),T(" ",a.buttonLabel," "))},QYa=function(a){if(a&1){var b=v();E(0,"button",4);M("click",function(){w(b);var c=N();return z(OYa(c))});Q(1);G()}a&2&&(a=N(),A(1),T(" ",a.buttonLabel," "))},RYa=
function(a){if(a&1){var b=v();E(0,"button",9);M("click",function(c){w(b);var d=N();return z(d.manageSlos(c))});Q(1,"Manage SLOs");G()}},SYa=function(a){a&1&&(E(0,"a",13),Q(1,"Early Access "),H(2,"b-feature-stage-label",14),G())},TYa=function(a){a&1&&(I(0),H(1,"mat-divider")(2,"b-whats-new-button",15),L());a&2&&(A(2),D("menuMode",!0))},UYa=function(a){a&1&&H(0,"b-whats-new-button",4);a&2&&(a=N(),D("alertMode",a.majorReleaseNotesUpdated))},VYa=function(a){if(a&1){var b=v();E(0,"button",5);M("click",
function(){w(b);N().userFeedback.startFeedback();return z()});H(1,"mat-icon",6);G()}},WYa=function(a,b){if(a&1){var c=v();E(0,"button",6);M("click",function(){var d=w(c).$implicit,e=N();e.currentTracker.setTrackerId(d.trackerId);e.appSearchState.searchTriggered$.next("switch-trackers");return z()});H(1,"img",7);E(2,"span",8);Q(3);G()()}a&2&&(a=b.$implicit,D("value",a.trackerId),Uf("title",a.name),A(1),D("src",null==a.branding?null:a.branding.logoUrl,le),A(2),kg(a.name))},XYa=function(a){if(a&1){var b=
v();E(0,"button",5);M("click",function(){w(b);var c=N();return z(c.clickMenu.emit())});H(1,"mat-icon",6);G()}},$Ya=function(a,b){a&1&&(E(0,"output",7),Q(1),G());a&2&&(a=b.$implicit,D("ngClass",a.color?og(2,YYa,a.color):ng(4,ZYa)),A(1),kg(a.name))},aZa=function(a){a&1&&H(0,"tracker-switcher",2);a&2&&(a=N(),D("associatedTrackers",a.associatedTrackers))},bZa=function(a){a&1&&(E(0,"span"),Q(1," Currently selected hotlist: "),E(2,"strong"),Q(3),G()());a&2&&(a=N(3),A(3),kg(a.header.hotlist.name))},cZa=
function(a){a&1&&Q(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},dZa=function(a){a&1&&(I(0),P(1,bZa,4,1,"span",5),P(2,cZa,1,0,"ng-template",null,6,Hg),L());if(a&2){var b=O(3);a=N(2);A(1);D("ngIf",a.header.hotlist)("ngIfElse",b)}},eZa=function(a){a&1&&(E(0,"span"),Q(1,"Currently selected saved search: "),E(2,"strong"),Q(3),G()());a&2&&(a=N(3),A(3),kg(a.header.savedSearch.name))},fZa=function(a){a&1&&Q(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
gZa=function(a){a&1&&(I(0),P(1,eZa,4,1,"span",5),P(2,fZa,1,0,"ng-template",null,7,Hg),L());if(a&2){var b=O(3);a=N(2);A(1);D("ngIf",a.header.savedSearch)("ngIfElse",b)}},hZa=function(a){a&1&&(E(0,"span"),Q(1," and "),E(2,"strong"),Q(3,"subcomponents"),G()())},iZa=function(a){a&1&&(E(0,"span"),Q(1," Currently selected component: "),E(2,"strong",9),Q(3),G(),H(4,"b-access-level-indicator",10)(5,"b-tracker-chip-smart",11),P(6,hZa,4,0,"span",4),G());if(a&2){a=N(3);A(3);var b=a.header.component;kg(b.componentPathInfo&&
b.componentPathInfo.componentPathName?b.componentPathInfo.componentPathName.join(" > "):b.name);A(1);D("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);A(1);D("trackerId",a.header.component.trackerId);A(1);D("ngIf",a.header.includeChildren)}},jZa=function(a){a&1&&Q(0," Start typing a component name or ID to see auto-complete suggestions. ")},kZa=function(a){a&1&&(I(0),P(1,iZa,7,4,"span",5),P(2,jZa,1,0,"ng-template",null,8,Hg),L());if(a&2){var b=O(3);
a=N(2);A(1);D("ngIf",a.header.component)("ngIfElse",b)}},lZa=function(a){a&1&&(E(0,"span"),Q(1," Currently selected tracker: "),E(2,"strong"),Q(3),G()());a&2&&(a=N(3),A(3),kg(a.header.tracker.name))},mZa=function(a){a&1&&Q(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},nZa=function(a){a&1&&(I(0),P(1,lZa,4,1,"span",5),P(2,mZa,1,0,"ng-template",null,12,Hg),L());if(a&2){var b=O(3);a=N(2);A(1);D("ngIf",a.header.tracker)("ngIfElse",b)}},oZa=function(a){a&1&&(E(0,"span"),Q(1,
" and "),E(2,"strong"),Q(3,"subteams"),G()())},pZa=function(a){a&1&&(E(0,"span"),Q(1," Currently selected team: "),E(2,"strong"),Q(3),G(),P(4,oZa,4,0,"span",4),G());a&2&&(a=N(3),A(3),kg(a.header.team.name),A(1),D("ngIf",a.header.includeChildren))},qZa=function(a){a&1&&Q(0," Start typing a team name or ID to see auto-complete suggestions. ")},rZa=function(a){a&1&&(I(0),P(1,pZa,5,2,"span",5),P(2,qZa,1,0,"ng-template",null,13,Hg),L());if(a&2){var b=O(3);a=N(2);A(1);D("ngIf",a.header.team)("ngIfElse",
b)}},sZa=function(a,b){a&1&&(E(0,"span"),Q(1," Currently selected custom field: "),E(2,"strong"),Q(3),G(),Q(4," of type "),E(5,"strong"),Q(6),U(7,"lowercase"),G(),Q(8,". "),G());a&2&&(a=b.$implicit,A(3),kg(a.name),A(3),kg(V(7,2,a.type)))},tZa=function(a){a&1&&Q(0," customfield[id]: [value] ")},uZa=function(a){a&1&&(I(0),P(1,sZa,9,4,"span",5),P(2,tZa,1,0,"ng-template",null,14,Hg),L());if(a&2){var b=O(3);a=N(2);A(1);D("ngIf",a.header.customField)("ngIfElse",b)}},vZa=function(a){a&1&&(E(0,"div",3),P(1,
dZa,4,2,"ng-container",4),P(2,gZa,4,2,"ng-container",4),P(3,kZa,4,2,"ng-container",4),P(4,nZa,4,2,"ng-container",4),P(5,rZa,4,2,"ng-container",4),P(6,uZa,4,2,"ng-container",4),G());a&2&&(a=N(),A(1),D("ngIf","hotlist"===a.header.type),A(1),D("ngIf","savedsearch"===a.header.type),A(1),D("ngIf","component"===a.header.type),A(1),D("ngIf","tracker"===a.header.type),A(1),D("ngIf","team"===a.header.type),A(1),D("ngIf","customfield"===a.header.type))},wZa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,
A(1),lg(" ",a.id,": ",a.name," "))},xZa=function(a){a&1&&(E(0,"span"),Q(1),E(2,"span"),Q(3),G()());a&2&&(a=N().$implicit,A(1),T(" Hotlist ",a.hotlistId,": "),A(2),kg(a.name))},yZa=function(a){a&1&&(E(0,"span"),Q(1),E(2,"span"),Q(3),G(),H(4,"br"),E(5,"span",16),Q(6),G()());a&2&&(a=N().$implicit,A(1),T(" Saved search ",a.searchId,": "),A(2),kg(a.name),A(3),kg(a.query))},zZa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),T(" ",a.name," "))},AZa=function(a){a&1&&(E(0,"span"),Q(1," > "),
G())},CZa=function(a,b){if(a&1){var c=v();I(0);E(1,"span",19);M("click",function(d){var e=w(c).$implicit;BZa(e);return z(d.stopPropagation())});Q(2);G();P(3,AZa,2,0,"span",4);L()}a&2&&(a=b.$implicit,b=b.last,A(1),jg("title","",a.id,": ",a.name,""),A(1),kg(a.name),A(1),D("ngIf",!b))},DZa=function(a){a&1&&(E(0,"span"),Q(1," Component "),E(2,"strong",9),Q(3),G(),H(4,"b-access-level-indicator",10)(5,"b-tracker-chip-smart",11),E(6,"span",17),P(7,CZa,4,4,"ng-container",18),G()());a&2&&(a=N().$implicit,
A(3),kg(a.componentId),A(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),A(1),D("trackerId",a.trackerId),A(2),D("ngForOf",a.componentPath))},EZa=function(a){a&1&&(E(0,"span"),Q(1),E(2,"span"),Q(3),G()());a&2&&(a=N().$implicit,A(1),T(" Tracker ",a.trackerId,": "),A(2),kg(a.name))},FZa=function(a){a&1&&(E(0,"span"),Q(1," > "),G())},GZa=function(a,b){if(a&1){var c=v();I(0);E(1,"span",19);M("click",function(d){var e=w(c).$implicit;BZa(e);return z(d.stopPropagation())});Q(2);G();
P(3,FZa,2,0,"span",4);L()}a&2&&(a=b.$implicit,b=b.last,A(1),jg("title","",a.id,": ",a.name,""),A(1),kg(a.name),A(1),D("ngIf",!b))},HZa=function(a){a&1&&(E(0,"span"),Q(1," Team "),E(2,"strong"),Q(3),G(),E(4,"span",17),P(5,GZa,4,4,"ng-container",18),G()());a&2&&(a=N().$implicit,A(3),kg(a.id),A(2),D("ngForOf",a.teamPath))},IZa=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),lg(" ",a.label,": ",a.name," "))},KZa=function(a,b){if(a&1){var c=v();E(0,"b-app-search-auto-complete-option",
15);M("optionClicked",function(e){w(c);var f=N();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&JZa(e),f.itemSelected.emit(e));return z()});P(1,wZa,2,2,"span",4);P(2,xZa,4,2,"span",4);P(3,yZa,7,3,"span",4);P(4,zZa,2,1,"span",4);P(5,DZa,8,4,"span",4);P(6,EZa,4,2,"span",4);P(7,HZa,6,2,"span",4);P(8,IZa,2,2,"span",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=N();Wf("id","b-app-search-option-",b,"");D("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);A(1);D("ngIf","issue"===
a.completionCfg.type);A(1);D("ngIf","hotlist"===a.completionCfg.type);A(1);D("ngIf","savedsearch"===a.completionCfg.type);A(1);D("ngIf","atom"===a.completionCfg.type);A(1);D("ngIf","component"===a.completionCfg.type);A(1);D("ngIf","tracker"===a.completionCfg.type);A(1);D("ngIf","team"===a.completionCfg.type);A(1);D("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},MZa=function(a){if(a&1){var b=v();E(0,"div",21)(1,"input",22,23);M("ngModelChange",function(c){w(b);var d=N();return z(d.searchName=
c)})("keydown.Tab",function(){w(b);var c=N();return z(LZa(c))})("keydown.enter",function(){w(b);var c=N();return z(c.saveSearch())});G();E(3,"button",24);M("click",function(){w(b);var c=N();return z(c.saveSearch())});H(4,"mat-icon",25);G()()}a&2&&(a=N(),A(1),D("ngModel",a.searchName),A(2),D("disabled",!a.searchName))},NZa=function(a){a&1&&(I(0),E(1,"span",10),Q(2),G(),L());a&2&&(a=N(),A(1),Zf("muted",a.disabled),A(1),kg(a.cardTitle))},OZa=function(a){a&1&&H(0,"mat-icon",11)},PZa=function(a){a&1&&
H(0,"mat-icon",12)},QZa=function(a){a&1&&(E(0,"mat-select-trigger"),H(1,"mat-icon",20),E(2,"span"),Q(3),G()());a&2&&(a=N(3),A(1),D("svgIcon",a.selectedOption.icon),A(2),kg(a.selectedOption.displayText))},RZa=function(a){a&1&&H(0,"mat-icon",20);a&2&&(a=N().$implicit,D("svgIcon",a.icon))},SZa=function(a,b){a&1&&(E(0,"mat-option",21),P(1,RZa,1,1,"mat-icon",22),Q(2),G());a&2&&(a=b.$implicit,D("value",a),A(1),D("ngIf",a.icon),A(1),T("",a.displayText," "))},TZa=function(a){if(a&1){var b=v();E(0,"mat-form-field",
16)(1,"mat-label");Q(2," Choose type... ");G();E(3,"mat-select",17);M("valueChange",function(c){w(b);var d=N(2);return z(d.selectedOption=c)})("selectionChange",function(c){w(b);N(2).dropdownSelectionChanged.emit(c.value);return z()});P(4,QZa,4,2,"mat-select-trigger",18);P(5,SZa,3,3,"mat-option",19);G()()}a&2&&(a=N(2),A(3),D("disabled",a.disabled)("value",a.selectedOption),A(1),D("ngIf",a.selectedOption&&a.selectedOption.icon),A(1),D("ngForOf",a.dropdownOptions))},UZa=function(a){if(a&1){var b=v();
E(0,"mat-form-field",13)(1,"input",14);M("ngModelChange",function(c){w(b);var d=N();return z(d.cardTitleChange.emit(c))});G()();P(2,TZa,6,4,"mat-form-field",15)}a&2&&(a=N(),A(1),Zf("muted",a.disabled||!a.selected),D("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Uf("aria-label",a.ariaLabelForCardTitle),A(1),D("ngIf",a.dropdownOptions.length))},VZa=function(a){a&1&&(E(0,"div",23),gg(1),G())},WZa=function(a){a&1&&(E(0,"button",31),H(1,"mat-icon",
32),G());a&2&&(a=N(2),D("disabled",a.disabled))},XZa=function(a){a&1&&H(0,"mat-divider",33);a&2&&D("vertical",!0)},YZa=function(a){a&1&&(E(0,"mat-slide-toggle",34),Q(1," Required "),G());a&2&&(a=N(2),D("disabled",a.disabled))},ZZa=function(a){if(a&1){var b=v();E(0,"mat-slide-toggle",35);M("change",function(c){w(b);var d=N(2);return z(d.isInheritedChange.emit(c))});Q(1," Inherited ");G()}a&2&&(a=N(2),D("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",
!a.inheritedDisabled))},$Za=function(a){if(a&1){var b=v();E(0,"div",24)(1,"button",25);M("click",function(){w(b);var c=N();return z(c.onSave())});Q(2," Save ");G();E(3,"button",26);M("click",function(){w(b);var c=N();return z(c.onCancel())});Q(4," Cancel ");G();P(5,WZa,2,1,"button",27);P(6,XZa,1,1,"mat-divider",28);P(7,YZa,2,1,"mat-slide-toggle",29);P(8,ZZa,2,4,"mat-slide-toggle",30);G()}a&2&&(a=N(),A(1),D("disabled",a.isSaveButtonDisabled),A(2),D("disabled",a.disabled),A(2),D("ngIf",a.showDeleteButton),
A(1),D("ngIf",a.showDeleteButton&&a.showRequiredToggle),A(1),D("ngIf",a.showRequiredToggle),A(1),D("ngIf",a.showInheritedToggle))},a_a=function(a){a&1&&(E(0,"h3"),Q(1),G());a&2&&(a=N(2),A(1),T(" Edit Custom Field ",a.editableField.customFieldId," "))},b_a=function(a){a&1&&(E(0,"h3"),Q(1," Create Custom Field "),G())},c_a=function(a){a&1&&(E(0,"div",40),Q(1),G());a&2&&(a=N(2),A(1),T(" ",a.serverError," "))},e_a=function(a,b){a&1&&(E(0,"button",41),Q(1),U(2,"enumToHuman"),G());if(a&2){a=b.$implicit;
N();var c=O(32);D("matMenuTriggerFor",c)("matMenuTriggerData",og(5,d_a,a));A(1);T(" ",V(2,3,a)," ")}},f_a=function(a,b){if(a&1){var c=v();E(0,"button",43);M("click",function(){var d=w(c).$implicit,e=N().type,f=N(2);return z(f.setType(e,"Multiple"===d))});Q(1);G()}a&2&&(a=b.$implicit,A(1),T(" ",a," "))},g_a=function(a){a&1&&P(0,f_a,2,1,"button",42);a&2&&(a=N(2),D("ngForOf",a.secondaryTypes))},i_a=function(a){if(a&1){var b=v();E(0,"td",7)(1,"label",44);Q(2," Allowed Values: ");G();E(3,"b-list-field",
45);M("valuesChange",function(c){w(b);var d=N(2);return z(h_a(d,c.values))});G()()}a&2&&(a=N(2),A(3),D("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},j_a=function(a){a&1&&(E(0,"label",46),Q(1," Default Value: "),G())},m_a=function(a,b){if(a&1){var c=v();E(0,"b-edit-field",47);M("valueChange",function(d){w(c);var e=N(2);k_a(e,d);return z()});G()}a&
2&&(a=b.ngIf,b=N(2),D("name","Default")("type",a)("tooltip","Set default value")("value",l_a(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},n_a=function(a){a&1&&(E(0,"label",48),Q(1," Default Values: "),G())},o_a=function(a,b){if(a&1){var c=v();E(0,"b-list-field",49);M("valuesChange",function(d){w(c);var e=N(2);k_a(e,d.values);return z()});G()}a&2&&(a=b.ngIf,b=N(2),D("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",
b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},p_a=function(a,b){if(a&1){var c=v();E(0,"button",50);M("click",function(){var d=w(c).$implicit,e=N(2);return z(e.setFieldSignificance(d))});Q(1);U(2,"enumToHuman");G()}a&2&&(a=b.$implicit,A(1),T(" ",V(2,1,a)," "))},q_a=function(a){if(a&1){var b=v();E(0,"div",4);P(1,a_a,2,1,"h3",3);P(2,b_a,2,0,"h3",3);P(3,c_a,2,1,"div",5);E(4,"form",6)(5,"div",7)(6,"label",8);Q(7,"Name:");
G();E(8,"input",9);M("ngModelChange",function(h){w(b);var k=N();return z(k.editableField.name=h)});G()();E(9,"div",7)(10,"label",10);Q(11,"Description:");G();E(12,"textarea",11);M("ngModelChange",function(h){w(b);var k=N();return z(k.editableField.description=h)});G()();E(13,"table",12)(14,"tr")(15,"td",7)(16,"div",13)(17,"label",14);Q(18," Type: ");G();E(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. ");
G()()()();E(24,"button",18);Q(25);U(26,"enumToHuman");H(27,"b-icon",19);G();E(28,"mat-menu",null,20);P(30,e_a,3,7,"button",21);G();E(31,"mat-menu",null,22);P(33,g_a,1,1,"ng-template",23);G()();P(34,i_a,4,7,"td",24);E(35,"td",7);P(36,j_a,2,0,"label",25);P(37,m_a,1,9,"b-edit-field",26);P(38,n_a,2,0,"label",27);P(39,o_a,1,8,"b-list-field",28);G();E(40,"td",7)(41,"label",29);Q(42," Required: ");G();E(43,"b-edit-field",30);M("valueChange",function(h){w(b);var k=N();return z(k.editableField.required=!!h)});
G()();E(44,"td",7)(45,"div",13)(46,"label",31);Q(47," Field Significance: ");G();E(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. ");H(53,"br");Q(54," See\u00a0 ");E(55,"a",34);Q(56,"Email Settings ");G()()()()();E(57,"button",35);Q(58);U(59,"enumToHuman");H(60,"b-icon",19);G();E(61,"mat-menu",null,36);P(63,p_a,3,3,"button",37);G()()()();E(64,"button",38);M("click",function(){w(b);var h=N();
return z(h.save())});Q(65," Save ");G();E(66,"button",39);M("click",function(){w(b);var h=N();return z(h.cancel())});Q(67," Cancel ");G()()()}if(a&2){var c=O(20),d=O(29),e=O(49),f=O(62);a=N();A(1);D("ngIf",!!a.editableField.customFieldId);A(1);D("ngIf",!a.editableField.customFieldId);A(1);D("ngIf",a.serverError);A(5);D("bFocus",a.editableField&&!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);A(4);D("ngModel",a.editableField.description)("disabled",a.isSaving);A(5);D("onedevHovercardTrigger",
c);A(7);D("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);A(1);T(" ",V(26,28,a.editableField.type)," ");A(5);D("ngForOf",a.typeChoices);A(4);D("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));A(2);D("ngIf",!a.editableField.isRepeated());A(1);D("ngIf",a.getSingleEditFieldType(a.editableField));A(1);D("ngIf",a.editableField.isRepeated());A(1);D("ngIf",a.getListFieldType(a.editableField));A(4);D("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",
a.editableField.required);A(3);D("onedevHovercardTrigger",e);A(9);D("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",le);A(2);D("matMenuTriggerFor",f);A(1);T(" ",V(59,30,a.editableField.fieldSignificance)," ");A(5);D("ngForOf",a.significanceChoices);A(1);D("disabled",!a.hasUnsavedChanges()||!a.editableField.name)}},r_a=function(a){a&1&&(E(0,"div",51),H(1,"b-spinner",52),G());a&2&&(A(1),D("large",!0))},s_a=function(a){a&1&&(E(0,"th"),Q(1,"Actions"),G())},u_a=function(a){if(a&
1){var b=v();E(0,"td",59)(1,"button",60);M("click",function(){w(b);var c=N().index,d=N(2);return z(d.editField(c))});Q(2,"Edit");G();E(3,"button",60);M("click",function(){w(b);var c=N().index,d=N(2);return z(t_a(d,c))});Q(4,"Delete");G()()}},v_a=function(a,b){a&1&&(E(0,"tr",56)(1,"td"),Q(2),G(),E(3,"td"),Q(4),G(),E(5,"td"),Q(6),U(7,"enumToHuman"),G(),E(8,"td"),Q(9),G(),E(10,"td"),Q(11),U(12,"yesNo"),G(),E(13,"td"),H(14,"b-custom-field-value-display",57),G(),E(15,"td"),Q(16),U(17,"arrayToHuman"),G(),
E(18,"td"),Q(19),U(20,"enumToHuman"),G(),P(21,u_a,5,0,"td",58),G());a&2&&(a=b.$implicit,b=N(2),D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),A(2),kg(a.name),A(2),kg(a.customFieldId),A(2),kg(V(7,10,a.type)),A(3),kg(a.description),A(2),kg(V(12,12,a.required)),A(3),D("customFieldValue",a.typedDefaultValue),A(2),kg(V(17,14,a.allowedValue)),A(3),kg(V(20,16,a.fieldSignificance)),A(2),D("ngIf",b.editMode))},w_a=function(a){a&1&&(E(0,"tr")(1,"td",61),Q(2," There are no custom fields defined on this component. "),
G()())},x_a=function(a){a&1&&(E(0,"tr")(1,"td",62)(2,"strong"),Q(3,"Fields inherited from parent components"),G()()())},y_a=function(a){a&1&&(I(0),H(1,"b-component-card",69,70),L());if(a&2){var b=O(2);a=N().$implicit;A(1);D("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},A_a=function(a){if(a&1){var b=v();E(0,"b-field-state-menu",71,72);M("fieldStateChange",function(d){w(b);var e=N(),f=e.$implicit;e=e.index;var h=N(3);return z(h.updateCustomFieldState(f,d,e))});G()}if(a&
2){a=N().$implicit;var c=N(3);D("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",z_a(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);Uf("aria-label",c.msgFieldStateTip)}},B_a=function(a,b){if(a&1){var c=v();E(0,"tr",56)(1,"td");Q(2);G();E(3,"td");Q(4);G();E(5,"td");Q(6);U(7,"enumToHuman");G();E(8,"td");Q(9);G();E(10,"td");Q(11);U(12,"yesNo");G();E(13,"td");H(14,"b-custom-field-value-display",57);G();E(15,"td");Q(16);U(17,"arrayToHuman");G();E(18,"td");
Q(19);U(20,"enumToHuman");G();E(21,"td",59)(22,"div",63)(23,"div",64);Q(24,"Inherited From");G();E(25,"a",65);M("click",function(){w(c);var e=N(3);return z(e.trackClick("parentCustomFields"))});Q(26);G();E(27,"onedev-hovercard",null,66);P(29,y_a,3,2,"ng-container",67);G()();P(30,A_a,2,6,"b-field-state-menu",68);G()()}if(a&2){a=b.$implicit;var d=O(28);b=N(3);D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");A(2);kg(a.name);A(2);kg(a.customFieldId);A(2);kg(V(7,13,a.type));A(3);kg(a.description);
A(2);kg(V(12,15,a.required));A(3);D("customFieldValue",a.typedDefaultValue);A(2);kg(V(17,17,a.allowedValue));A(3);kg(V(20,19,a.fieldSignificance));A(6);D("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId,"customFields"),le);A(1);T(" ",b.componentIdsToNames[a.componentId]," ");A(4);D("ngIf",b.editMode)}},C_a=function(a){a&1&&(I(0),P(1,B_a,31,21,"tr",54),L());a&2&&(a=N(2),A(1),D("ngForOf",a.inheritedCustomFields))},D_a=function(a){a&1&&(E(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 "),
E(4,"a",73),Q(5,"Field Ordering"),G(),Q(6," tab."),H(7,"br"),Q(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),G()()())},E_a=function(a){if(a&1){var b=v();E(0,"div",74)(1,"button",75);M("click",function(){w(b);var c=N(2);c.editableField=new vm;c.originalEditableFieldValue=Si(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return z()});Q(2," Add a Custom Field ");G()()}},F_a=function(a){a&1&&(E(0,"div")(1,"table",
53)(2,"tr")(3,"th"),Q(4,"Name"),G(),E(5,"th"),Q(6,"ID"),G(),E(7,"th"),Q(8,"Type"),G(),E(9,"th"),Q(10,"Description"),G(),E(11,"th"),Q(12,"Required?"),G(),E(13,"th"),Q(14,"Default Value"),G(),E(15,"th"),Q(16,"Allowed Values"),G(),E(17,"th"),Q(18,"Field Significance"),G(),P(19,s_a,2,0,"th",3),G(),P(20,v_a,22,18,"tr",54),P(21,w_a,3,0,"tr",3),P(22,x_a,4,0,"tr",3),P(23,C_a,2,1,"ng-container",3),P(24,D_a,9,0,"tfoot",3),G(),P(25,E_a,3,0,"div",55),G());a&2&&(a=N(),A(19),D("ngIf",a.editMode),A(1),D("ngForOf",
a.customFields),A(1),D("ngIf",!a.customFields.length),A(1),D("ngIf",a.inheritedCustomFields.length),A(1),D("ngIf",a.inheritedCustomFields.length),A(1),D("ngIf",a.customFields.length),A(1),D("ngIf",a.editMode))},G_a=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N().index,d=N();return z(d.removeAtIndex.emit(c))});H(1,"mat-icon",19);G()}a&2&&(a=N().$implicit,Uf("aria-label","Delete row "+a.label))},H_a=function(a,b){if(a&1){var c=v();E(0,"div",9)(1,"div",10);H(2,"mat-icon",
11);E(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);M("change",function(f){var h=w(c).index,k=N();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return z()});G()()();E(7,"div",1)(8,"mat-form-field",12)(9,"input",15,16);M("change",function(f){var h=w(c).index,k=N();return z(k.valueChange(f,h))});G()()();P(11,G_a,2,1,"button",17);G()()}if(a&2){a=b.$implicit;var d=O(6),e=O(10);b=N();A(4);D("appearance",d.focused||e.focused?"standard":"none");A(1);Zf("muted",b.disabled);D("value",
a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);A(3);D("appearance",d.focused||e.focused?"standard":"none");A(1);Zf("muted",b.disabled);D("value",a.value)("placeholder",null==a.value?"Average days":"")("disabled",b.disabled);A(2);D("ngIf",!b.disabled)}},I_a=function(a){if(a&1){var b=v();E(0,"button",20);M("click",function(){w(b);var c=N();return z(c.addRow.emit())});Q(1," Add row\n");G()}},J_a=function(a){a&1&&cg(0)},K_a=function(a){a&1&&(I(0),P(1,J_a,1,0,"ng-container",
5),L());if(a&2){N();var b=O(7);A(1);D("ngTemplateOutlet",b)}},L_a=function(a){if(a&1){var b=v();I(0);E(1,"b-numeric-config",6);M("valueChange",function(c){w(b);var d=N();return z(d.numericSpecMultiplier=c)});G();L()}a&2&&(a=N(),A(1),D("disabled",a.disabled)("value",a.numericSpecMultiplier))},M_a=function(a){a&1&&cg(0)},N_a=function(a){if(a&1){var b=v();E(0,"div",7)(1,"label",8);Q(2,"Aggregation Rule");G();E(3,"a",9);H(4,"mat-icon",10);G();H(5,"br");E(6,"mat-form-field",11)(7,"mat-select",12);M("valueChange",
function(c){w(b);var d=N();return z(d.selectedAggregationRule=c)});E(8,"mat-select-trigger");Q(9);U(10,"aggregationRuleText");G();E(11,"mat-option",13)(12,"div",14);Q(13);U(14,"aggregationRuleText");G();E(15,"div",15);Q(16,"All parents and children are added to the total");G()();E(17,"mat-option",13)(18,"div",14);Q(19);U(20,"aggregationRuleText");G();E(21,"div",15);Q(22,"Take the assigned estimate if larger than total of all immediate children");G()()()()()}a&2&&(a=N(),A(7),D("value",a.selectedAggregationRule)("disabled",
a.disabled),A(2),T(" ",V(10,7,a.selectedAggregationRule)," "),A(2),D("value",a.aggregationRules.SUM),A(2),kg(V(14,9,a.aggregationRules.SUM)),A(4),D("value",a.aggregationRules.MAX),A(2),kg(V(20,11,a.aggregationRules.MAX)))},O_a=function(a){if(a&1){var b=v();E(0,"b-config-grid",16);M("optionsChange",function(c){w(b);var d=N();return z(d.enumSpecOptions=c)})("addRow",function(){w(b);var c=N();return z(c.addRow())})("removeAtIndex",function(c){w(b);N().enumSpecOptions.splice(c,1);return z()});G()}a&2&&
(a=N(),D("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},P_a=function(a){return a&&"0"!==a.getTeamId()?a.getDeleted()?"DELETED":"VALID":"MISSING"},Q_a=function(a){if(a&1){var b=v();E(0,"div",6);Q(1," Select a team from the suggestions below, or edit in ");E(2,"a",7);M("click",function(){w(b);var c=N();return z(c.trackClick("viewTeamAssociationOnComponent"))});Q(3,"component settings");G();Q(4,".\n");G()}a&2&&(a=N(),A(2),D("href",a.componentSetting,le))},R_a=function(a){a&1&&(E(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 "),E(2,"a",8),Q(3,"component settings"),G(),Q(4,".\n"),G());a&2&&(a=N(),A(2),D("href",a.componentSetting,le))},S_a=function(a){if(a&1){var b=v();E(0,"mat-radio-group",9);M("ngModelChange",function(c){w(b);var d=N();return z(d.teamAction=c)});E(1,"p")(2,"mat-radio-button",10);Q(3," Don't make any changes ");G()();E(4,"p")(5,"mat-radio-button",11);Q(6," Map component to selected team ");
G()()()}a&2&&(a=N(),D("ngModel",a.teamAction))},T_a=function(a){a&1&&(I(0),E(1,"span",19),Q(2),G(),L());a&2&&(a=N().$implicit,A(2),kg(a.teamPath))},U_a=function(a){a&1&&Q(0," -- ")},V_a=function(a,b){a&1&&(P(0,T_a,3,1,"ng-container",17),P(1,U_a,1,0,"ng-template",null,18,Hg));if(a&2){a=b.$implicit;var c=O(2);D("ngIf",a)("ngIfElse",c)}},W_a=function(a){if(a&1){var b=v();E(0,"div",12)(1,"onedev-single-select",13);M("valueChange",function(d){w(b);var e=N();return z(e.selectedTeam=d)})("valueChange",function(d){w(b);
var e=N();return z(e.selectOption(d))});G();P(2,V_a,3,2,"ng-template",null,14,Hg);E(4,"a",15);M("click",function(){w(b);var d=N();return z(d.trackClick("viewTeamInMoma"))});H(5,"mat-icon",16);G()()}if(a&2){var c=O(3);a=N();A(1);D("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);A(3);Uf("href",a.getMomaTeamLink(),le)}},X_a=function(a){if(a&1){var b=v();E(0,"b-callout-actions")(1,"b-button",2);M("click",function(){w(b);var c=
N();return z(c.openDialog())});Q(2);G()()}a&2&&(a=N(),A(2),kg(a.buttonName))},Y_a=function(a){a&1&&(E(0,"div",8),H(1,"b-team-warning",9),G());a&2&&(a=N().ngIf,A(1),D("warningType",a)("messageOnly",!0))},Z_a=function(a,b){a&1&&(I(0),P(1,Y_a,2,2,"div",7),L());a&2&&(a=b.ngIf,b=N(),A(1),D("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},$_a=function(a){if(a&1){var b=v();E(0,"div",10)(1,"mat-checkbox",11);M("change",function(c){w(b);var d=N();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 z()});Q(2," Override the inherited team ");G()()}a&2&&(a=N(),A(1),D("disabled",!a.isAdmin)("checked",!a.inherit))},a0a=function(a){if(a&1){var b=v();E(0,"a",13);M("click",function(){w(b);N(2);uo(Aq.MANAGE_COMPONENT,"navigate","to-internal-team-page");return z()});H(1,"mat-icon",14);G()}a&2&&(a=N(2),D("routerLink",tt(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},
b0a=function(a){a&1&&(I(0),P(1,a0a,2,2,"a",12),L());a&2&&(a=N(),A(1),D("ngIf",tt(a)))},c0a=function(a){if(a&1){var b=v();E(0,"a",16);M("click",function(){w(b);var c=N(2);uo(Aq.MANAGE_COMPONENT,"linkout-moma","team",Number(c.model.id));return z()});H(1,"mat-icon",14);G()}a&2&&(a=N(2),Uf("href",a.getMomaTeamLink(),le))},d0a=function(a){a&1&&P(0,c0a,2,1,"a",15);a&2&&(a=N(),D("ngIf",tt(a)))},e0a=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),T("(",a.disabledReason,")"))},f0a=function(a,
b){a&1&&(E(0,"mat-radio-button",8),Q(1),P(2,e0a,2,1,"span",9),G());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),A(1),T(" ",a.displayText," "),A(1),D("ngIf",!a.enabled))},g0a=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),T("(",a.disabledReason,")"))},h0a=function(a,b){a&1&&(E(0,"mat-radio-button",8),Q(1),P(2,g0a,2,1,"span",9),G());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),A(1),T(" ",a.displayText," "),A(1),D("ngIf",!a.enabled))},i0a=function(a){return a?
"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},j0a=function(a){a&1&&H(0,"mat-icon",7);if(a&2){a:switch(N().reactionType){case "UPVOTE":a="thumb_up_24px";break a;default:a="warning"}D("svgIcon",a)}},k0a=function(a){a&1&&H(0,"b-spinner")},l0a=function(a,b){a&1&&(E(0,"div")(1,"div",9),Q(2),G()());a&2&&(a=b.$implicit,N(2),A(2),kg(Ul(a.user)))},m0a=function(a){a&1&&(I(0),P(1,l0a,3,1,"div",8),L());a&2&&(a=N(),A(1),D("ngForOf",
a.allResponders))},p0a=function(a,b){if(a&1){var c=v();E(0,"li",11);M("keydown",function(e){var f=w(c).index,h=N();return z(h.onKeyDown(e,f))})("focus",function(){var e=w(c).index,f=N();return z(f.onFocus(e))});H(1,"mat-icon",12);E(2,"span");Q(3);G();E(4,"div",13)(5,"button",14);M("click",function(){var e=w(c).index,f=N();return z(n0a(f,e))});H(6,"mat-icon",15);G();E(7,"button",16);M("click",function(){var e=w(c).index,f=N();return z(o0a(f,e))});H(8,"mat-icon",17);G()()()}if(a&2){a=b.$implicit;b=
b.index;var d=N();Uf("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);A(3);kg(a.name);A(2);Zf("invisible",0===b);A(2);Zf("invisible",b===d.fields.length-1)}},q0a=function(a){var b=function(){var c=a.apply(this,[].concat(r(Uc.apply(0,arguments))))||this;c._sticky=!1;c._hasStickyChanged=!1;return c};X(b,a);b.prototype.hasStickyChanged=function(){var c=this._hasStickyChanged;this._hasStickyChanged=!1;return c};b.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};ni.Object.defineProperties(b.prototype,
{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=rh(c);this._hasStickyChanged=d!==this._sticky}}});return b},ut=function(a,b){return a.concat(Array.from(b))},r0a=function(a){a&1&&(E(0,"th",14),Q(1," Order"),G())},s0a=function(a,b){a&1&&(E(0,"td",15),Q(1),G());a&2&&(a=b.index,A(1),T(" ",a+1," "))},t0a=function(a){a&1&&(E(0,"th",14),Q(1," Name"),G())},u0a=function(a,b){a&1&&(E(0,"td",15),Q(1),G());a&2&&(a=b.$implicit,A(1),T(" ",
a.name," "))},v0a=function(a){a&1&&(E(0,"th",14),Q(1," Type"),G())},w0a=function(a,b){a&1&&(E(0,"td",15),Q(1),U(2,"toCustomFieldTypeDisplayValue"),G());a&2&&(a=b.$implicit,A(1),T(" ",V(2,1,a.type)," "))},x0a=function(a){a&1&&(E(0,"th",14),Q(1," Required"),G())},y0a=function(a,b){a&1&&(E(0,"td",15),Q(1),G());a&2&&(a=b.$implicit,A(1),T(" ",a.required?"Yes":"No"," "))},z0a=function(a){a&1&&(E(0,"th",14),Q(1," ID"),G())},A0a=function(a,b){a&1&&(E(0,"td",15),Q(1),G());a&2&&(a=b.$implicit,A(1),T(" ",a.customFieldId,
" "))},B0a=function(a){a&1&&H(0,"tr",16)},C0a=function(a){a&1&&H(0,"tr",17)},D0a=function(a){a&1&&(E(0,"div",18),Q(1," There are no custom fields defined on this component. "),G())},G0a=function(a){if(a&1){var b=v();E(0,"div",19)(1,"div")(2,"button",20);M("click",function(){w(b);var c=N();return z(E0a(c))});Q(3," Reorder fields ");G();E(4,"button",20);M("click",function(){w(b);var c=N();return z(F0a(c))});Q(5," Reset ordering ");G()()()}a&2&&(a=N(),A(2),D("disabled",0===a.fields.length),A(2),D("disabled",
"CUSTOMIZED"!==a.fieldOrdering))},H0a=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),A(1),a=a.lineNumbers.length,T(" (",a+(1==a?" TODO":" TODOs"),") "))},J0a=function(a,b){if(a&1){var c=v();E(0,"li",5)(1,"a",6);M("click",function(){w(c);var d=N(2);return z(d.trackClick("lineNumber"))});Q(2);G()()}a&2&&(a=b.$implicit,b=N(2),A(1),D("href",I0a(b,a),le),A(1),kg(a))},K0a=function(a){a&1&&(E(0,"span"),Q(1," ("),E(2,"ul",3),P(3,J0a,3,2,"li",4),G(),Q(4,") "),G());a&2&&(a=N(),A(3),D("ngForOf",a.lineNumbers))},
L0a=function(a){a&1&&H(0,"div",2)},M0a=function(a){a&1&&(I(0),gg(1),L())},N0a=function(a){a&1&&(qd(),E(0,"svg",1),H(1,"path",2),G());a&2&&(a=N(),D("matTooltip",a.warning))},O0a=function(a){a&1&&cg(0)},R0a=function(a){if(a&1){var b=v();E(0,"div",1);M("keydown",function(c){w(b);var d=N();return z(d.processKeydown(c))});E(1,"div",2);P(2,O0a,1,0,"ng-container",3);G();E(3,"div",4)(4,"button",5);M("click",function(){w(b);var c=N();return z(P0a(c))});Q(5,"Save");G();E(6,"button",6);M("click",function(){w(b);
var c=N();return z(Q0a(c))});Q(7,"Cancel");G()()()}a&2&&(a=N(),D("cdkTrapFocusAutoCapture",!0),A(2),D("ngTemplateOutlet",a.editorTemplate))},S0a=function(a){a&1&&cg(0)},U0a=function(a){a&1&&(I(0),P(1,S0a,1,0,"ng-container",8),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,T0a,a.value)))},V0a=function(a){a&1&&Q(0);a&2&&(a=N(),kg(null!=a.value?a.value:"--"))},W0a=function(a){a&1&&(qd(),E(0,"svg",9),H(1,"path",10),G())},X0a=function(a){if(a&1){var b=v();E(0,
"input",11);M("ngModelChange",function(c){w(b);var d=N();return z(d.editingValue=c)});G()}a&2&&(a=N(),D("ngModel",a.editingValue))},Y0a=function(a){return null!=a?Number(a):void 0},Z0a=function(a){a&1&&H(0,"mat-icon",12);if(a&2){N();var b=O(5);D("onedevHovercardTrigger",b)}},$0a=function(a){if(a&1){var b=v();I(0);E(1,"onedev-numeric-field",13);M("valueChange",function(d){w(b);var e=N(2);e.selectedNumericEstimate=d;if(null==d)e.effortChange.emit(void 0);else{e=e.effortChange;var f=e.emit,h=new Fl;
d=Hb(h,2,String(d));f.call(e,d)}return z()});G();L()}if(a&2){a=N(2);var c=O(2);A(1);D("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},a1a=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().$implicit,A(1),T(" ",a.getLabel()," "))},b1a=function(a){a&1&&Q(0," -- ")},c1a=function(a,b){a&1&&(P(0,a1a,2,1,"ng-container",16),P(1,b1a,1,0,"ng-template",null,17,Hg));if(a&2){a=b.$implicit;var c=O(2);D("ngIf",a)("ngIfElse",c)}},e1a=function(a){if(a&1){var b=
v();I(0);E(1,"onedev-single-select",14);M("valueChange",function(e){w(b);var f=N(2);return z(f.selectOption(e))});G();P(2,c1a,3,2,"ng-template",null,15,Hg);L()}if(a&2){var c=O(3);a=N(2);var d;A(1);D("value",a.selectedOption)("options",null!==(d=null==(d=Ll(a.effortSpec))?null:Nb(d,Cl,1))&&void 0!==d?d:ng(6,d1a))("includeEmptyOption",!0)("optionTemplate",c)("disabled",a.disabled)("displayArrowIcon",!a.disabled)}},f1a=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N(2),A(1),T(" ",null==a.effort?null:Pi(a.effort,
2)," "))},g1a=function(a){a&1&&(E(0,"onedev-edit-field")(1,"onedev-field-label",2),Q(2),P(3,Z0a,1,1,"mat-icon",3),G(),E(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. "),E(9,"a",7),Q(10,"Learn more"),G()()()(),E(11,"onedev-field-value",8),I(12,9),P(13,$0a,2,4,"ng-container",10),P(14,e1a,4,7,"ng-container",10),P(15,f1a,2,1,"ng-container",11),L(),G()());a&2&&(a=N(),A(1),D("thinking",a.thinking)("labelTooltip",
a.fieldName),A(1),T(" ",a.fieldName," "),A(1),D("ngIf",!a.isCompatibleValue),A(8),D("thinking",a.thinking),A(1),D("ngSwitch",a.fieldType),A(1),D("ngSwitchCase","NUMERIC"),A(1),D("ngSwitchCase","DROPDOWN"))},h1a=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N(2),A(1),T(" ",null==a.effort?null:Pi(a.effort,2)," "))},i1a=function(a){a&1&&Q(0);a&2&&(a=N().$implicit,T(" ",null!=a?a:"--"," "))},j1a=function(a,b){a&1&&(P(0,h1a,2,1,"ng-container",16),P(1,i1a,1,1,"ng-template",null,18,Hg));if(a&2){a=b.$implicit;
var c=O(2);b=N();D("ngIf",b.isNaN(a))("ngIfElse",c)}},k1a=function(a){if(a&1){var b=v();E(0,"div",8)(1,"label",9);Q(2,"Issue shortlink");G();E(3,"input",22,23);M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("focus",function(){w(b);var d=O(4);return z(d.select())});G();E(5,"span",12);Q(6);G();E(7,"button",24);M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("click",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=O(4);
a=N(2);A(1);D("htmlFor",c.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK);Uf("value",a.getAppBaseUrl().replace(/^.*?:\/\//,""));A(3);kg(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK)}},l1a=function(a){if(a&1){var b=v();E(0,"div",8)(1,"label",9);Q(2,"Issue email");G();E(3,"input",25,26);M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("focus",function(){w(b);var d=O(4);return z(d.select())});G();E(5,"span",12);Q(6);G();E(7,"button",27);
M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("click",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=O(4);a=N(2);A(1);D("htmlFor",c.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS);Uf("value","buganizer-system"+(wt(a.activeSession)?"":"-qa")+("+"+a.componentId+"+"+a.issueId)+"@google.com");A(3);kg(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)}},m1a=function(a){if(a&1){var b=
v();E(0,"div",8)(1,"label",9);Q(2,"TODO comment");G();E(3,"input",28,29);M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("focus",function(){w(b);var d=O(4);return z(d.select())});G();E(5,"span",12);Q(6);G();E(7,"button",30);M("onHotkey",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))})("click",function(){w(b);var d=O(4),e=N(2);return z(vt(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=O(4);a=N(2);A(1);D("htmlFor",c.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_TODO);Uf("value","TODO("+
a.getAppBaseUrl().replace(/^.*?:\/\//,"")+"): "+a.issueTitle);A(3);kg(a.HOTKEYS.COPY_ISSUE_TODO.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_TODO)}},n1a=function(a){if(a&1){var b=v();E(0,"div",7)(1,"div",8)(2,"label",9);Q(3,"Issue ID");G();E(4,"input",10,11);M("onHotkey",function(){w(b);var f=O(5),h=N();return z(vt(h,f))})("focus",function(){w(b);var f=O(5);return z(f.select())});G();E(6,"span",12);Q(7);G();E(8,"button",13);M("onHotkey",function(){w(b);var f=O(5),h=N();return z(vt(h,f))})("click",
function(){w(b);var f=O(5),h=N();return z(vt(h,f))});H(9,"mat-icon",14);G()();P(10,k1a,9,5,"div",15);E(11,"div",8)(12,"label",9);Q(13,"Issue URL");G();E(14,"input",16,17);M("onHotkey",function(){w(b);var f=O(15),h=N();return z(vt(h,f))})("focus",function(){w(b);var f=O(15);return z(f.select())});G();E(16,"span",12);Q(17);G();E(18,"button",18);M("onHotkey",function(){w(b);var f=O(15),h=N();return z(vt(h,f))})("click",function(){w(b);var f=O(15),h=N();return z(vt(h,f))});H(19,"mat-icon",14);G()();E(20,
"div",8)(21,"label",9);Q(22,"URL and title");G();E(23,"input",19,20);M("onHotkey",function(){w(b);var f=O(24),h=N();return z(vt(h,f))})("focus",function(){w(b);var f=O(24);return z(f.select())});G();E(25,"span",12);Q(26);G();E(27,"button",21);M("onHotkey",function(){w(b);var f=O(24),h=N();return z(vt(h,f))})("click",function(){w(b);var f=O(24),h=N();return z(vt(h,f))});H(28,"mat-icon",14);G()();P(29,l1a,9,5,"div",15);P(30,m1a,9,5,"div",15);G()}if(a&2){var c=O(5),d=O(15),e=O(24);a=N();D("cdkTrapFocusAutoCapture",
!0);A(2);D("htmlFor",c.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_ID);Uf("value",a.issueId);A(3);kg(a.HOTKEYS.COPY_ISSUE_ID.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_ID);A(2);D("ngIf",a.activeSession.isInternalSession()&&!a.tracker);A(2);D("htmlFor",d.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_URL);Uf("value",a.getIssueUrl());A(3);kg(a.HOTKEYS.COPY_ISSUE_URL.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_URL);A(3);D("htmlFor",e.id);A(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE);Uf("value",a.getAppBaseUrl(a.isExternalIssue)+
" "+a.issueTitle);A(3);kg(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs);A(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE);A(2);D("ngIf",a.activeSession.isInternalSession()&&!a.tracker);A(1);D("ngIf",a.activeSession.isInternalSession()&&!a.tracker)}},o1a=function(a){a&1&&(E(0,"span"),H(1,"b-formatted-date-time",19),G());a&2&&(a=N(2),A(1),D("timestamp",a.sloSnoozeUntil))},p1a=function(a){a&1&&(E(0,"span"),H(1,"b-formatted-date-time",19),G());a&2&&(a=N(2),A(1),D("timestamp",a.issueCreationTimestamp/1E3))},q1a=function(a){if(a&
1){var b=v();E(0,"snooze-date-time-picker",20);M("closePicker",function(){w(b);var c=N(2);return z(c.isDateTimePickerOpen=!1)})("snoozeUntilCommit",function(c){w(b);N(2).onSnoozeChange.next(c);return z()});G()}a&2&&(a=N(2),D("sloStatus",a.sloStatus)("snoozeUntil",a.sloSnoozeUntil))},r1a=function(a){if(a&1){var b=v();E(0,"div",11);Q(1," SLO starts on: ");E(2,"div",13)(3,"a",14,15);M("click",function(){w(b);var d=N();return z(d.isDateTimePickerOpen=!d.isDateTimePickerOpen)});P(5,o1a,2,1,"span",16);
P(6,p1a,2,1,"span",16);G();E(7,"a",17);H(8,"b-icon",3);G();P(9,q1a,1,2,"ng-template",18);G()()}if(a&2){var c=O(4);a=N();A(5);D("ngIf",a.sloSnoozeUntil);A(1);D("ngIf",!a.sloSnoozeUntil);A(2);D("name","help-outline")("size","small");A(1);D("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",a.isDateTimePickerOpen)}},s1a=function(a,b){if(a&1){var c=v();E(0,"a",22);M("click",function(){w(c);var d=N(2);return z(d.trackOpenSlo())});Q(1);G()}a&2&&(a=b.ngIf,b=N(2),Uf("href",b.editSloLink,le),A(1),T(" ",
a.getName()," "))},t1a=function(a){a&1&&(E(0,"div",11),Q(1," SLO definition: "),P(2,s1a,2,2,"a",21),U(3,"async"),G());a&2&&(a=N(),A(2),D("ngIf",V(3,1,a.slo$)))},u1a=function(a){if(a&1){var b=v();E(0,"a",23);M("click",function(){w(b);N();uo(Aq.MANAGE_COMPONENT,"open","fromIssueSloBox");return z()});Q(1,"Select an SLO");G()}a&2&&(a=N(),Uf("href",a.componentSloLink,le))},v1a=function(a){a&1&&(E(0,"a",10),Q(1," Create Component "),G());a&2&&(a=N(),D("href",a.createComponentPath,le))},w1a=function(a){if(a&
1){var b=v();E(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);M("selectedComponentChange",function(d){w(b);var e=N();return z(e.viewComponent(null!==d&&void 0!==d?d:null,"openFromSearch"))});U(3,"async");G()()()}if(a&2){a=N();var c;A(2);D("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)}},y1a=function(a){if(a&1){var b=v();E(0,"div",13)(1,
"b-slide-toggle",14);M("modelChange",function(d){w(b);var e=N();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&&x1a(e,d,(0,W.firstValueFrom)(e.topLevelComponents$));return z()});U(2,"async");G()()}if(a&2){a=N();var c;A(1);D("model",null!==(c=V(2,2,a.includeArchived$))&&void 0!==c?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},
z1a=function(a){a&1&&(E(0,"div",15),H(1,"b-spinner",16),G())},A1a=function(a){a&1&&(E(0,"p",3),Q(1),G());a&2&&(a=N(),A(1),kg(a.packageMentionSet.packageName))},B1a=function(a,b){a&1&&(E(0,"li"),H(1,"b-file-mention",4),G());a&2&&(a=b.$implicit,b=N(),A(1),D("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},D1a=function(a){a&1&&(E(0,"span"),Q(1),E(2,"b"),Q(3),G(),Q(4," on "),E(5,"b"),Q(6),U(7,"date"),
G(),Q(8,". "),G());a&2&&(a=N(4),A(1),T(" Currently, the ",a.contentType," is scheduled for deletion in "),A(2),kg(C1a(yt(a).getTime(),!0)),A(3),kg(rg(7,3,yt(a),"longDate")))},E1a=function(a){a&1&&(E(0,"span")(1,"b"),Q(2,"Retention:"),G(),Q(3),E(4,"b"),Q(5),G(),Q(6," from the last modification of the issue. "),P(7,D1a,9,6,"span",11),G());if(a&2){a=N(3);var b=O(10);A(3);T(" This ",a.contentType," has a retention period of ");A(2);kg(a.getRetentionPeriod());A(2);D("ngIf",!(yt(a).getTime()<(new Wi).getTime()))("ngIfElse",
b)}},F1a=function(a){a&1&&(Q(0),E(1,"b"),Q(2,"overridden"),G(),Q(3," retention period set to match the issue retention period. "));a&2&&(a=N(3),T(" The ",a.contentType," has an "))},G1a=function(a){a&1&&(E(0,"p",10),P(1,E1a,8,4,"span",11),P(2,F1a,4,1,"ng-template",12),G());if(a&2){a=N(2);var b=O(8);D("ngSwitch",a.retention);A(1);D("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);A(1);D("ngSwitchCase",a.retentionModel.INDEFINITE)}},H1a=function(a){a&1&&(E(0,"div",
7)(1,"p")(2,"b"),Q(3,"Restricted Access:"),G(),Q(4),E(5,"a",8),Q(6," Learn More "),G()(),P(7,G1a,3,4,"p",9),G());a&2&&(a=N(),A(4),T(" This ",a.contentType," is only available to users with the appropriate permissions. "),A(1),D("rel",a.EXTERNAL_LINK_REL),Uf("href",a.documentationLinks.getRestrictedAccessHelpLink(),le),A(2),D("ngIf",a.retentionState))},I1a=function(a){a&1&&(E(0,"b"),Q(1,"Retention:"),G(),Q(2));a&2&&(a=N(),A(2),T(" This ",a.contentType," has an indefinite retention period. "))},J1a=
function(a){a&1&&(Q(0," The retention has "),E(1,"b"),Q(2,"expired"),G(),Q(3),E(4,"b"),Q(5),U(6,"date"),G(),Q(7,". "));a&2&&(a=N(),A(3),T(" and the ",a.contentType," was scheduled for deletion on "),A(2),kg(rg(6,2,yt(a),"longDate")))},K1a=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),A(1),T("Retain ",a.resource," as long as issue?"))},L1a=function(a){a&1&&(E(0,"span"),Q(1,"Apply component retention settings?"),G())},M1a=function(a){a&1&&(E(0,"span")(1,"p"),Q(2),G(),E(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."),
G(),H(6,"br"),Q(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),G()());a&2&&(a=N(),A(2),T("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},N1a=function(a){a&1&&(E(0,"span")(1,"p"),Q(2),G()());a&2&&(a=N(),A(2),lg("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."))},
O1a=function(a){if(a&1){var b=v();E(0,"mat-checkbox",9);M("ngModelChange",function(c){w(b);var d=N();return z(d.acknowledgeToMatchIssueRetention=c)});Q(1," I acknowledge ");G()}a&2&&(a=N(),D("ngModel",a.acknowledgeToMatchIssueRetention))},P1a=function(a){a&1&&(E(0,"span",6),Q(1," Select at least one tracker "),G())},Q1a=function(a,b){if(a&1){var c=v();E(0,"div",7)(1,"mat-checkbox",8);M("change",function(d){var e=w(c).$implicit,f=N();return z(f.trackerCheckboxValues[e.trackerId]=d.checked)});Q(2);
G()()}a&2&&(a=b.$implicit,b=N(),A(1),D("checked",b.trackerCheckboxValues[a.trackerId]||!1),A(1),T(" ",a.name," "))},R1a=function(a){a&1&&(H(0,"b-tracker-search",6),U(1,"async"),U(2,"async"));a&2&&(a=N(),D("currentTrackerId",V(1,2,a.currentTracker.trackerId$))("availableTrackers",V(2,4,a.currentTracker.availableTrackers$)))},S1a=function(a){a&1&&(E(0,"div",7),H(1,"b-spinner"),E(2,"span"),Q(3,"Initializing query builder..."),G()())},T1a=function(a){a&1&&(E(0,"div",10),H(1,"mat-icon",11),E(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. "),G()())},U1a=function(a){a&1&&(E(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. "),G())},V1a=function(a){a&1&&(E(0,"div",8),P(1,T1a,4,0,"div",9),P(2,U1a,2,0,"div",5),G());a&2&&(a=N(),A(1),D("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),
A(1),D("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},W1a=function(a){a&1&&(E(0,"div",8),Q(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),G())},X1a=function(a){a&1&&H(0,"b-tracker-account-menu-hack")},Y1a=function(a){a&1&&(E(0,"span"),Q(1),H(2,"span",16),G());a&2&&(a=N(2).$implicit,A(1),T(" ",a.diff.oldValue," "))},Z1a=function(a){a&1&&(E(0,"span")(1,"label"),Q(2),G(),P(3,Y1a,
3,1,"span",15),Q(4),G());a&2&&(a=N().$implicit,A(2),T("",a.fieldName,":"),A(1),D("ngIf",a.diff.oldValue),A(1),T(" ",a.diff.newValue," "))},$1a=function(a,b){a&1&&(E(0,"div")(1,"label"),Q(2),G(),Q(3),G());a&2&&(a=b.$implicit,b=N(3).$implicit,A(2),T("-",b.fieldName,":"),A(1),T(" ",a," "))},a2a=function(a){a&1&&(I(0),P(1,$1a,4,2,"div",17),L());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.diff.removed))},b2a=function(a,b){a&1&&(E(0,"div")(1,"label"),Q(2),G(),Q(3),G());a&2&&(a=b.$implicit,b=N(3).$implicit,
A(2),T("+",b.fieldName,":"),A(1),T(" ",a," "))},c2a=function(a){a&1&&(I(0),P(1,b2a,4,2,"div",17),L());a&2&&(a=N(2).$implicit,A(1),D("ngForOf",a.diff.added))},d2a=function(a){a&1&&(E(0,"div"),P(1,a2a,2,1,"ng-container",15),P(2,c2a,2,1,"ng-container",15),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.diff.removed),A(1),D("ngIf",a.diff.added))},e2a=function(a,b){a&1&&(E(0,"div",14),P(1,Z1a,5,3,"span",15),P(2,d2a,3,2,"div",15),G());a&2&&(a=b.$implicit,A(1),D("ngIf","SINGLE_VALUE"==a.diffType),A(1),D("ngIf",
"COLLECTION"==a.diffType))},f2a=function(a,b){a&1&&(E(0,"li",5)(1,"div",6),H(2,"b-user-image",7),G(),E(3,"div",8)(4,"h4"),H(5,"b-user-display-name",9),E(6,"span",10),H(7,"b-formatted-date-time",11),G()(),E(8,"div",12),P(9,e2a,3,2,"div",13),G()()());a&2&&(a=b.$implicit,b=N(),A(2),D("email",b.userToDisplay(a.author)),A(3),D("email",b.userToDisplay(a.author)),A(2),D("timestamp",a.timestamp),A(2),D("ngForOf",a.diffs))},g2a=function(){var a=window.homepagePreferences;if(null==a||!a.resourceId)return"/issues";
switch(a.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+a.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+a.resourceId;case "HOTLIST":return"/hotlists/"+a.resourceId;default:return"/issues"}},h2a=function(a){a&1&&(I(0),Q(1," > "),L())},i2a=function(a,b){a&1&&(I(0),E(1,"a",7),Q(2),G(),P(3,h2a,2,0,"ng-container",3),L());a&2&&(a=b.$implicit,b=b.last,A(1),Wf("aria-label","View recent issues in ",a.name,""),D("routerLinkObj",a.route),A(1),kg(a.name),A(1),D("ngIf",!b))},j2a=function(a){a&
1&&(E(0,"span"),Q(1," [Archived]"),G())},k2a=function(a){a&1&&(E(0,"div",5),P(1,i2a,4,4,"ng-container",6),U(2,"async"),P(3,j2a,2,0,"span",3),U(4,"async"),G());a&2&&(a=N(),A(1),D("ngForOf",V(2,2,a.componentPath$)),A(2),D("ngIf",V(4,4,a.isArchived$)))},l2a=function(a,b){a&1&&(I(0),E(1,"div",8),H(2,"mat-icon",9),E(3,"div",10),Q(4),G()(),E(5,"p",11),Q(6),G(),E(7,"p",10),Q(8),G(),L());a&2&&(a=b.$implicit,A(4),kg(a.name),A(2),T("Component ID: ",a.componentId,""),A(2),kg(a.description))},m2a=function(a,
b){a&1&&(E(0,"div",12)(1,"a",13),Q(2,"View recent open issues"),G(),E(3,"a",14),Q(4,"View component settings"),G(),E(5,"a",15),Q(6,"Create issue in this component"),G()());a&2&&(a=b.$implicit,A(1),D("routerLinkObj",a.recentIssues),A(2),D("routerLinkObj",a.componentSettings),A(2),D("routerLinkObj",a.createIssue))},n2a=function(a){a&1&&(E(0,"a",15),Q(1," Create Component "),G())},o2a=function(a){a&1&&(E(0,"p",19),Q(1," None found. "),E(2,"a",20),Q(3,"Learn More"),G()())},p2a=function(a){a&1&&(I(0),
H(1,"b-component-path-card",31,32),L());if(a&2){var b=O(2);a=N().$implicit;A(1);D("onedevIsHovercardReady",b.init)("componentId",a.componentId)}},q2a=function(a,b){a&1&&(E(0,"li")(1,"a",21)(2,"div",22)(3,"span",23),Q(4),H(5,"b-access-level-indicator",24)(6,"b-tracker-chip-smart",25),G(),E(7,"p",26),Q(8),G()(),E(9,"div",27)(10,"a",28),Q(11," Edit "),G(),E(12,"a",28),Q(13," Create Issue "),G()()(),E(14,"onedev-hovercard",null,29),P(16,p2a,3,2,"ng-container",30),G()());if(a&2){a=b.$implicit;var c=O(15);
b=N(2);A(1);D("routerLinkObj",b.viewIssues(a.componentId));A(1);D("onedevHovercardTrigger",c);A(2);T(" ",a.name||a.componentId," ");A(1);D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);A(1);D("trackerId",a.trackerId)("showHovercard",!1);A(2);kg(a.description);A(2);D("routerLinkObj",b.componentSettings(a.componentId));A(2);D("routerLinkObj",b.createIssue(a.componentId))}},r2a=function(a,b){a&1&&(I(0),P(1,o2a,4,0,"p",16),E(2,"ol",17),P(3,q2a,17,10,"li",18),G(),
L());a&2&&(a=b.$implicit,A(1),D("ngIf",0===a.length),A(2),D("ngForOf",a))},t2a=function(a){a&1&&(E(0,"a",25),Q(1," Learn more "),G());a&2&&(N(),D("href",s2a(),le))},u2a=function(a){var b;return(null!=(b=a.getIssueDigestsList())?b:[]).map(jsa)},w2a=function(a){var b=new Set,c=0;a=n(a.matchAll(v2a));for(var d=a.next();!d.done;d=a.next())if(d=n(d.value).next().value,!b.has(d)){c+=d.length;if(2049<c)break;b.add(d)}return[].concat(r(b))},x2a=function(a){a&1&&(E(0,"div"),H(1,"b-spinner"),E(2,"span"),Q(3,
"Loading..."),G()())},y2a=function(a){a&1&&(E(0,"div",2),P(1,x2a,4,0,"div",3),G());if(a&2){a=N();var b=O(2);A(1);D("ngIf",a.isInitiallyLoading)("ngIfElse",b)}},z2a=function(a){a&1&&(E(0,"span",17)(1,"strong"),Q(2),G(),Q(3," of "),E(4,"strong"),Q(5),G()());a&2&&(a=N(4),A(2),lg("",a.startIndex,"\u2013",a.endIndex,""),A(3),kg(a.totalText))},A2a=function(a){if(a&1){var b=v();E(0,"div",11);P(1,z2a,6,3,"span",12);E(2,"b-button",13);M("onAction",function(){w(b);var c=N(3);return z(c.fetchIssues(c.page-1))});
H(3,"b-icon",14);G();E(4,"b-button",15);M("onAction",function(){w(b);var c=N(3);return z(c.fetchIssues(c.page+1))});H(5,"b-icon",16);G()()}a&2&&(a=N(3),A(1),D("ngIf",!a.isRefreshing),A(1),D("disabled",1>=a.page),A(2),D("disabled",a.page>=a.numPages))},B2a=function(a){if(a&1){var b=v();E(0,"button",18);M("click",function(){w(b);var c=N(3);return z(c.triggerSimilarIssuesSurvey())});H(1,"mat-icon",19);G()}},C2a=function(a){a&1&&(E(0,"li")(1,"h3"),Q(2),G(),P(3,A2a,6,3,"div",9),P(4,B2a,2,0,"button",10),
G());a&2&&(a=N(2),A(2),kg(a.getHeader()),A(1),D("ngIf",!a.enableSimilarIssues),A(1),D("ngIf",a.showSuggestedDupes))},D2a=function(a){a&1&&(E(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."),G())},E2a=function(a){if(a&1){var b=v();E(0,"b-issue-card",26,27);M("init",function(){w(b);var e=N(4);return z(e.trackTitleHoverOver())});G()}if(a&2){var c=O(1);a=N().$implicit;var d=N(3);D("onedevIsHovercardReady",c.init)("issueId",
a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},F2a=function(a,b){if(a&1){var c=v();E(0,"li",22)(1,"onedev-hovercard",null,23);P(3,E2a,2,3,"b-issue-card",24);G();E(4,"a",25);M("click",function(){w(c);var e=N(3);return z(e.trackTitleClick())});Q(5);G()()}if(a&2){a=b.$implicit;var d=O(2);b=N(3);D("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");A(4);hg("href","issues/",a.id,"",le);D("onedevHovercardTrigger",d);A(1);T(" ",a.title," ")}},G2a=function(a){a&1&&(I(0),P(1,
F2a,6,4,"li",21),L());a&2&&(a=N(2),A(1),D("ngForOf",a.magicBoxIssues))},H2a=function(a){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=N(2),A(1),T(" No ",a.getHeader().toLowerCase()," found. "))},I2a=function(a){a&1&&(E(0,"li",28)(1,"a",29),Q(2," View All Issues \u2192 "),G()());a&2&&(a=N(2),A(1),ig("href",a.viewAllHref,le))},J2a=function(a){if(a&1){var b=v();E(0,"li",30)(1,"button",31);M("click",function(){w(b);var c=N(2);c.fetchIssues(c.page+1);Mo(c.analytics,Aq.MAGIC_BOX,"loadMore");return z()});H(2,"mat-icon",
32);Q(3," Load more ");G()()}},K2a=function(a){if(a&1){var b=v();E(0,"li",33)(1,"a",29)(2,"button",34);M("click",function(){w(b);var c=N(2);Mo(c.analytics,Aq.MAGIC_BOX,"viewAll");return z()});Q(3,"View all ");H(4,"mat-icon",35);G()()()}a&2&&(a=N(2),A(1),ig("href",a.viewAllHref,le))},L2a=function(a){a&1&&(E(0,"li"),H(1,"b-spinner"),E(2,"span"),Q(3,"Loading..."),G()())},M2a=function(a){a&1&&(E(0,"ul"),P(1,C2a,5,3,"li",4),P(2,D2a,2,0,"div",5),P(3,G2a,2,1,"ng-container",4),P(4,H2a,2,1,"li",4),P(5,I2a,
3,1,"li",6),P(6,J2a,4,0,"li",7),P(7,K2a,5,1,"li",8),P(8,L2a,4,0,"li",4),G());a&2&&(a=N(),A(1),D("ngIf",!a.hideHeader),A(1),D("ngIf",a.showSuggestedDupes),A(1),D("ngIf",!a.isRefreshing),A(1),D("ngIf",0==a.magicBoxIssues.length&&!a.isRefreshing),A(1),D("ngIf",!a.isRefreshing&&1<a.numPages&&!a.enableSimilarIssues&&a.viewAllHref),A(1),D("ngIf",!a.isRefreshing&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),A(1),D("ngIf",!a.isRefreshing&&1<a.numPages&&a.enableSimilarIssues&&a.viewAllHref),A(1),D("ngIf",
a.isRefreshing))},N2a=function(a){a&1&&cg(0)},P2a=function(a){a&1&&(I(0),P(1,N2a,1,0,"ng-container",8),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",og(2,O2a,a.value)))},Q2a=function(a){a&1&&Q(0);a&2&&(a=N(),kg(a.value||"--"))},R2a=function(a){a&1&&(qd(),E(0,"svg",9),H(1,"path",10),G());a&2&&(a=N(),Zf("centered",a.centerEditIcon))},S2a=function(a){if(a&1){var b=v();E(0,"textarea",14);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.editingValue=c)});
G()}a&2&&(a=N(2),D("ngModel",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},T2a=function(a){if(a&1){var b=v();E(0,"input",15);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.editingValue=c)});G()}a&2&&(a=N(2),D("ngModel",a.editingValue))},U2a=function(a){a&1&&(E(0,"div",11),P(1,S2a,1,2,"textarea",12),P(2,T2a,1,1,"ng-template",null,13,Hg),G());if(a&2){var b=O(3);a=N();A(1);D("ngIf",a.allowMultipleLines)("ngIfElse",b)}},V2a=function(){},W2a=function(a){a&1&&H(0,"span",2);a&2&&
(a=N(),D("@indicatorRotate",a._getExpandedState()))},X2a=function(a){if(a&1){var b=v();E(0,"b-hotlist-picker",25);M("onApply",function(c){w(b);var d=N();return z(d.handleHotlistPickerSave(c))})("onLoad",function(c){w(b);var d=N();return z(d.loadHotlist(c))})("onCreate",function(c){w(b);var d=N();return z(d.createHotlist(c))});G()}a&2&&(a=N(),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},$2a=function(a){a&1&&(E(0,"div",26),H(1,"b-icon",27),E(2,"span"),Q(3),G(),E(4,"a",28),Q(5,
"View access settings"),G()());a&2&&(a=N(),D("ngClass",pg(5,Y2a,zt(a),At(a))),A(1),D("name","alert")("size","small"),A(2),T("",Z2a(a),"\u00a0"),A(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",le))},c3a=function(a){a&1&&(E(0,"div",31),Q(1),G());a&2&&(a=N(2),A(1),T(" Error: The following required field(s) have not been filled: ",a3a(a).concat(b3a(a)).join(", ")," "))},d3a=function(a){a&1&&(E(0,"li"),Q(1),G());if(a&2){a=N(3);A(1);var b=[];a.isBlockedByIssueIdValid||
b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');kg(b?b.join(" & ")+" must be"+((1>=b.length?" a":"")+" comma separated list")+((1<b.length?"s":"")+" of issue IDs"):"")}},e3a=function(a){a&1&&(E(0,"li"),Q(1),G());a&2&&(a=N(3),A(1),T(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},f3a=function(a){a&1&&(E(0,"div",31),Q(1," Error: The following field(s) have invalid values: "),E(2,"ul"),P(3,d3a,2,1,"li",
21),P(4,e3a,2,1,"li",21),G()());a&2&&(a=N(2),A(3),D("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),A(1),D("ngIf",!a.isCollaboratorsValid))},g3a=function(a){a&1&&(E(0,"div",31),Q(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),G())},h3a=function(a){a&1&&(E(0,"div",29),P(1,c3a,2,1,"div",30),P(2,f3a,5,2,"div",30),P(3,g3a,2,0,"div",30),G());a&2&&(a=N(),A(1),D("ngIf",0!==a3a(a).length||0!==b3a(a).length),A(1),D("ngIf",
!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid||!a.isCollaboratorsValid),A(1),D("ngIf",Bt(a.comment)))},i3a=function(a,b){if(a&1){var c=v();E(0,"div",34)(1,"b-hotlist-chip",35);M("removeHotlist",function(){var d=w(c).$implicit,e=N(2);return z(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,A(1),D("hotlist",a))},j3a=function(a){a&1&&(E(0,"div",32),P(1,i3a,2,1,"div",33),G());a&2&&(a=N(),A(1),D("ngForOf",a.selectedHotlists))},k3a=function(a){if(a&1){var b=v();
E(0,"div",13)(1,"div",14)(2,"b-issue-access-limits-dropdown",36);M("updatedAccessLimitLevel",function(c){w(b);var d=N();return z(d.onAccessLimitLevelSelected(c))});G()()()}a&2&&(a=N(),A(2),D("defaultAccessLimitLevel",a.selectedAccessLimitLevel))},l3a=function(a,b){if(a&1){var c=v();E(0,"button",45);M("click",function(){var d=w(c).$implicit,e=N(2);e.selectedTemplate=d;e.getIssueTemplate();return z()});Q(1);G()}a&2&&(a=b.$implicit,A(1),kg(a.name))},m3a=function(a){if(a&1){var b=v();E(0,"button",45);
M("click",function(){w(b);var c=N(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return z()});Q(1);G()}a&2&&(a=N(2),A(1),kg(a.availableExistingIssueTemplate.name))},n3a=function(a){a&1&&(E(0,"div",37)(1,"div",15)(2,"label",38),Q(3,"Template"),G()(),E(4,"button",39),Q(5),H(6,"b-icon",40),G(),E(7,"mat-menu",41,42),P(9,l3a,2,1,"button",43),P(10,m3a,2,1,"button",44),G()());if(a&2){var b=O(8);a=N();var c;A(4);D("matMenuTriggerFor",b);A(1);kg(null!==(c=null==a.selectedTemplate?
null:a.selectedTemplate.name)&&void 0!==c?c:"");A(2);D("overlapTrigger",!0);A(2);D("ngForOf",a.availablePredefinedTemplates);A(1);D("ngIf",a.availableExistingIssueTemplate)}},o3a=function(a){a&1&&(E(0,"div",46)(1,"div",31),Q(2," You do not have permission to create issues in this component. "),G()())},p3a=function(a){if(a&1){var b=v();E(0,"div",67)(1,"b-magic-box",68);M("headerChange",function(c){w(b);var d=N(3);return z(d.magicBoxHeader=c)});G()()}a&2&&(a=N(3),A(1),D("componentId",a.issue.componentId)("hideHeader",
!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},r3a=function(a){if(a&1){var b=v();E(0,"div",63)(1,"div",64)(2,"a",65);M("click",function(){w(b);var c=N(2);return z(q3a(c))})("keydown.enter",function(){w(b);var c=N(2);return z(q3a(c))})("keydown.space",function(){w(b);var c=N(2);return z(q3a(c))});Q(3);G()();P(4,p3a,2,6,"div",66);G()}a&2&&(a=N(2),A(3),lg(" ",a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase(),
" "),A(1),D("ngIf",!a.showRecentIssuesInline&&a.issue.componentId))},s3a=function(a,b){if(a&1){var c=v();E(0,"button",72);M("click",function(){var d=w(c).$implicit,e=N(3);return z(e.setPriority(d.value))});Q(1);G()}a&2&&(a=b.$implicit,A(1),kg(a.displayText))},t3a=function(a){if(a&1){var b=v();E(0,"div",37)(1,"div",15)(2,"label",69);Q(3,"Priority");G()();E(4,"button",70);Q(5);H(6,"b-icon",40);G();E(7,"mat-menu",41,71)(9,"button",72);M("click",function(){w(b);var d=N(2);return z(d.setPriority())});
Q(10,"--");G();P(11,s3a,2,1,"button",73);G()()}if(a&2){var c=O(8);a=N(2);A(4);D("matMenuTriggerFor",c);Uf("aria-label","Priority, required"+(a.issue.priority?", "+a.issue.priority:""));A(1);T("",a.issue.priority?a.issue.priority:"--"," ");A(2);D("overlapTrigger",!0);A(4);D("ngForOf",a.priorityChoices)}},v3a=function(a,b){if(a&1){var c=v();E(0,"button",77);M("click",function(){var d=w(c).$implicit,e=N(3);return z(u3a(e,d.value))});Q(1);G()}a&2&&(a=b.$implicit,ig("title",a.altText||""),A(1),kg(a.displayText))},
w3a=function(a){if(a&1){var b=v();E(0,"div",37)(1,"div",15)(2,"label",74);Q(3,"Type");G()();E(4,"button",70);U(5,"enumToHuman");Q(6);U(7,"enumToHuman");H(8,"b-icon",40);G();E(9,"mat-menu",41,75)(11,"button",72);M("click",function(){w(b);var d=N(2);return z(u3a(d))});Q(12,"--");G();P(13,v3a,2,2,"button",76);G()()}if(a&2){var c=O(10);a=N(2);A(4);D("matMenuTriggerFor",c);Uf("aria-label","Type, required"+(a.issue.type?V(5,5,", "+a.issue.type):""));A(2);T("",V(7,7,a.issue.type||"--")," ");A(3);D("overlapTrigger",
!0);A(4);D("ngForOf",a.issueTypeChoices)}},x3a=function(a){if(a&1){var b=v();E(0,"div",81)(1,"div",15)(2,"label",82);Q(3,"Assignee");G()();E(4,"div",83)(5,"input",84);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.assigneeText=c)});G()()()}a&2&&(a=N(3),A(5),D("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},y3a=function(a){a&1&&(E(0,"mat-error"),Q(1," You can only add users to Collaborators. "),G())},A3a=function(a){if(a&1){var b=v();E(0,"div",85)(1,"div",15)(2,"label",86);Q(3,
"Collaborators");G();H(4,"mat-icon",87);G();E(5,"div",83)(6,"input",88);M("ngModelChange",function(c){w(b);var d=N(3);d.isValidating=!0;c=Ct(c);z3a(d,c);d.collaboratorsText=c;d.isValidating=!1;return z()});G()();P(7,y3a,2,0,"mat-error",21);G()}a&2&&(a=N(3),A(6),Zf("invalid",!a.isCollaboratorsValid&&a.submitRequested),D("ngModel",Dt(a.collaboratorsText))("bContactAutocomplete","MULTI"),A(1),D("ngIf",!a.isCollaboratorsValid&&a.submitRequested))},B3a=function(a){if(a&1){var b=v();E(0,"div",89)(1,"div",
15)(2,"label",90);Q(3,"CC");G()();E(4,"div",83)(5,"input",91);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.ccsText=Ct(c))});G()()()}a&2&&(a=N(3),A(5),D("ngModel",Dt(a.ccsText))("bContactAutocomplete","MULTI"))},C3a=function(a){a&1&&(I(0),E(1,"div",13),P(2,x3a,6,2,"div",78),P(3,A3a,8,5,"div",79),G(),E(4,"div",13),P(5,B3a,6,2,"div",80),G(),L());a&2&&(a=N(2),A(2),D("ngIf",a.canEditIssuesInComponent),A(1),D("ngIf",a.canEditIssuesInComponent),A(2),D("ngIf",a.canEditIssuesInComponent))},D3a=
function(a){if(a&1){var b=v();E(0,"div",81)(1,"div",15)(2,"label",82);Q(3,"Assignee");G()();E(4,"div",83)(5,"input",84);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.assigneeText=c)});G()()()}a&2&&(a=N(3),A(5),D("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},E3a=function(a){if(a&1){var b=v();E(0,"div",89)(1,"div",15)(2,"label",90);Q(3,"CC");G()();E(4,"div",83)(5,"input",91);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.ccsText=Ct(c))});G()()()}a&2&&(a=N(3),A(5),
D("ngModel",Dt(a.ccsText))("bContactAutocomplete","MULTI"))},F3a=function(a){a&1&&(I(0),E(1,"div",13),P(2,D3a,6,2,"div",78),P(3,E3a,6,2,"div",80),G(),L());a&2&&(a=N(2),A(2),D("ngIf",a.canEditIssuesInComponent),A(1),D("ngIf",a.canEditIssuesInComponent))},G3a=function(a,b){if(a&1){var c=v();E(0,"button",72);M("click",function(){var d=w(c).$implicit,e=N(3);return z(e.issue.severity=e.toIssueSeverity(d.value))});Q(1);G()}a&2&&(a=b.$implicit,A(1),kg(a.displayText))},H3a=function(a){a&1&&(E(0,"span"),Q(1,
"*"),G())},I3a=function(a){a&1&&(E(0,"span"),Q(1,"*"),G())},J3a=function(a){a&1&&(E(0,"span"),Q(1,"*"),G())},K3a=function(a){if(a&1){var b=v();E(0,"div",99)(1,"div",15)(2,"label",117);Q(3," Parents ");P(4,J3a,2,0,"span",21);G()();E(5,"input",118);M("ngModelChange",function(c){w(b);var d=N(3);d.parentIssueIds=Et(d,c).map(Go);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Dt(d.parentIssueIds));return z()});G()()}a&2&&(a=N(3),A(4),D("ngIf",!a.isParentIssueIdsValid),A(1),D("ngModel",Dt(a.parentIssueIds)))},
L3a=function(a){a&1&&(E(0,"span"),Q(1,"*"),G())},M3a=function(a){if(a&1){var b=v();E(0,"div",99)(1,"div",15)(2,"label",119);Q(3," Children ");P(4,L3a,2,0,"span",21);G()();E(5,"input",120);M("ngModelChange",function(c){w(b);var d=N(3);d.childrenIssueIds=Et(d,c).map(Go);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Dt(d.childrenIssueIds));return z()});G()()}a&2&&(a=N(3),A(4),D("ngIf",!a.isChildIssueIdsValid),A(1),D("ngModel",Dt(a.childrenIssueIds)))},N3a=function(a){if(a&1){var b=v();E(0,"onedev-text-field",
124);M("valueChange",function(d){w(b);var e=N(2).$implicit,f=N(3);return z(f.setCustomFieldValue(e,d))});G()}if(a&2){a=N(2).$implicit;var c=N(3);hg("id","bv2-custom-field-",a.customFieldId,"");D("value",a.textValue);Uf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},O3a=function(a){if(a&1){var b=v();E(0,"onedev-numeric-field",124);M("valueChange",function(d){w(b);var e=N(2).$implicit,f=N(3);return z(f.setCustomFieldValue(e,d))});G()}if(a&2){a=
N(2).$implicit;var c=N(3);hg("id","bv2-custom-field-",a.customFieldId,"");D("value",a.numericValue);Uf("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},P3a=function(a){if(a&1){var b=v();E(0,"div")(1,"bv2-input-date-picker",125);M("boundValueChange",function(d){w(b);var e=N(2).$implicit,f=N(3);return z(f.setCustomFieldValue(e,d))});G()()}if(a&2){a=N(2).$implicit;var c=N(3);A(1);ig("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");
D("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},Q3a=function(a){if(a&1){var b=v();E(0,"onedev-single-select",126);M("valueChange",function(d){w(b);var e=N(2).$implicit,f=N(3);return z(f.setCustomFieldValue(e,d))});G()}if(a&2){a=N(2).$implicit;var c=N(3);D("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0);Uf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},R3a=function(a,b){a&
1&&(E(0,"div"),P(1,N3a,1,4,"onedev-text-field",122),P(2,O3a,1,4,"onedev-numeric-field",122),P(3,P3a,2,4,"div",21),P(4,Q3a,1,4,"onedev-single-select",123),G());a&2&&(a=b.ngIf,b=N(4),A(1),D("ngIf",a===b.FieldType.TEXT),A(1),D("ngIf",a===b.FieldType.NUMERIC),A(1),D("ngIf",a===b.FieldType.DATE),A(1),D("ngIf",a===b.FieldType.ENUM))},S3a=function(a,b){if(a&1){var c=v();E(0,"div")(1,"b-list-field",127);M("valuesChange",function(e){w(c);var f=N().$implicit,h=N(3);return z(h.setCustomFieldValue(f,e.values))});
G()()}if(a&2){a=b.ngIf;b=N().$implicit;var d=N(3);A(1);D("defaultLineCount",2)("type",a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);Uf("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},U3a=function(a,b){a&1&&(E(0,"div",99)(1,"div",15)(2,"label",121),Q(3),G()(),P(4,R3a,5,4,"div",21),P(5,S3a,2,6,"div",21),G());if(a&2){a=b.$implicit;b=N(3);A(2);hg("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];
ig("title",(c&&c.description?c.description:"Custom Field")+" [ID: "+a.customFieldId+"]");D("ngClass",og(7,T3a,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");Uf("aria-label",d);A(1);T(" ",b.getCustomFieldName(a)," ");A(1);D("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));A(1);D("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},V3a=
function(a){if(a&1){var b=v();E(0,"mat-expansion-panel",92)(1,"mat-expansion-panel-header")(2,"mat-panel-title");Q(3," Advanced fields (Required fields marked with");E(4,"span",93);Q(5,"*");G();Q(6,") ");G()();E(7,"div",94)(8,"div",95)(9,"div",15)(10,"label",96);Q(11," Severity ");G()();E(12,"button",97);Q(13);H(14,"b-icon",40);G();E(15,"mat-menu",41,98);P(17,G3a,2,1,"button",73);G()();E(18,"div",99)(19,"div",15)(20,"label",100);Q(21," Found in ");G()();E(22,"input",101);M("ngModelChange",function(d){w(b);
var e=N(2);return z(e.issue.foundInVersion=Ct(d))});G()();E(23,"div",102)(24,"div",15)(25,"label",103);Q(26," In prod ");G()();E(27,"mat-slide-toggle",104);M("ngModelChange",function(d){w(b);var e=N(2);return z(e.issue.inProd=d)});G()();H(28,"div",55);E(29,"div",99)(30,"div",15)(31,"label",105);Q(32," Reporter ");G()();E(33,"input",106);M("ngModelChange",function(d){w(b);var e=N(2);return z(e.reporterText=d)});G()();E(34,"div",99)(35,"div",15)(36,"label",107);Q(37," Verifier ");G()();E(38,"input",
108);M("ngModelChange",function(d){w(b);var e=N(2);return z(e.verifierText=d)});G()();E(39,"div",99)(40,"div",15)(41,"label",109);Q(42," Targeted to ");G()();E(43,"input",110);M("ngModelChange",function(d){w(b);var e=N(2);return z(e.issue.targetedToVersion=Ct(d))});G()();H(44,"div",55);E(45,"div",99)(46,"div",15)(47,"label",111);Q(48," Blocked by ");P(49,H3a,2,0,"span",21);G()();E(50,"input",112);M("ngModelChange",function(d){w(b);var e=N(2);e.issue.blockedByIssueId=Et(e,d);e.isBlockedByIssueIdValid=
e.ISSUE_ID_LIST_PATTERN.test(Dt(e.issue.blockedByIssueId));return z()});G()();E(51,"div",99)(52,"div",15)(53,"label",113);Q(54," Blocking ");P(55,I3a,2,0,"span",21);G()();E(56,"input",114);M("ngModelChange",function(d){w(b);var e=N(2);e.issue.blockingIssueId=Et(e,d);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Dt(e.issue.blockingIssueId));return z()});G()();P(57,K3a,6,2,"div",115);P(58,M3a,6,2,"div",115);H(59,"div",55);P(60,U3a,6,9,"div",116);G()()}if(a&2){var c=O(16);a=N(2);A(12);D("matMenuTriggerFor",
c);Uf("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:""));A(1);kg(a.issue.severity);A(2);D("overlapTrigger",!0);A(2);D("ngForOf",a.severityChoices);A(5);D("ngModel",Dt(a.originalIssueCopy.foundInVersion));A(5);D("ngModel",a.issue.inProd);A(6);D("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");A(5);D("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");A(5);D("ngModel",Dt(a.originalIssueCopy.targetedToVersion));A(6);D("ngIf",!a.isBlockedByIssueIdValid);A(1);D("ngModel",
Dt(a.issue.blockedByIssueId));A(5);D("ngIf",!a.isBlockingIssueIdValid);A(1);D("ngModel",Dt(a.issue.blockingIssueId));A(1);D("ngIf",!a.sessionIsExternal);A(1);D("ngIf",!a.sessionIsExternal);A(2);D("ngForOf",a.issue.customField)}},W3a=function(a){a&1&&(E(0,"div",26),H(1,"b-icon",27),E(2,"span"),Q(3),G(),E(4,"a",28),Q(5,"View access settings"),G()());a&2&&(a=N(2),D("ngClass",pg(5,Y2a,zt(a),At(a))),A(1),D("name","alert")("size","small"),A(2),T("",Z2a(a),"\u00a0"),A(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,
"access"):"",le))},X3a=function(a){if(a&1){var b=v();E(0,"div",128)(1,"b-recaptcha",129);M("onUpdate",function(c){w(b);var d=N(2);return z(d.recaptchaResponse=c)});G()()}},b4a=function(a){if(a&1){var b=v();E(0,"div");P(1,r3a,5,3,"div",47);E(2,"div",13)(3,"div",14)(4,"div",15)(5,"label",48);Q(6,"Title");G()();E(7,"div",49)(8,"input",50);M("ngModelChange",function(c){w(b);var d=N();return z(d.setTitle(c))});G()()();P(9,t3a,12,5,"div",19);P(10,w3a,14,9,"div",19);G();P(11,C3a,6,3,"ng-container",21);P(12,
F3a,4,2,"ng-container",21);E(13,"div",51)(14,"div",13)(15,"div",14)(16,"div",15)(17,"label",52);Q(18,"Description");G()();E(19,"b-comment-box",53);M("commentChange",function(c){w(b);var d=N();return z(d.comment=c)})("onChange",function(){w(b);var c=N();return z(c.saveCommentDraft())})("onSubmit",function(c){w(b);var d=N();return z(Y3a(d,!c))})("onRestrict",function(){w(b);var c=N();return z(c.showNewContentJudgementDialog())});E(20,"b-markdown-toggle",54);M("change",function(c){w(b);var d=N();return z(d.comment.formattingMode=
c)});G()()()();H(21,"div",55);E(22,"div",56);P(23,V3a,61,19,"mat-expansion-panel",57);G();P(24,W3a,6,8,"div",9);P(25,X3a,2,0,"div",58);E(26,"div",59)(27,"b-button",60);M("onAction",function(){w(b);var c=N();return z(Y3a(c,!0))});Q(28," Create ");G();E(29,"b-button",61);M("onAction",function(){w(b);var c=N();return z(Y3a(c,!1))});Q(30," Create & Start Another ");G();E(31,"b-button",62);M("onAction",function(){w(b);var c=N();c.draftStore.$window.sessionStorage.removeItem(cp("0"));c.$route.reload();
return z()});Q(32," Discard ");G()()()()}a&2&&(a=N(),A(1),D("ngIf",a.selectedComponent),A(7),D("ngModel",a.issue.title)("bFocus",a.newIssueStarted),A(1),D("ngIf",a.canEditIssuesInComponent),A(1),D("ngIf",a.canEditIssuesInComponent),A(1),D("ngIf",a.enableCollaborators),A(1),D("ngIf",!a.enableCollaborators),A(7),D("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(24,Z3a,Bt(a.comment))),A(1),D("initialValue",a.comment.formattingMode),A(3),D("ngIf",a.canEditIssuesInComponent),A(1),D("ngIf",zt(a)||At(a)),A(1),D("ngIf",a.enableRecaptcha),A(2),D("disabled",a4a(a)),A(2),D("disabled",a4a(a)),A(2),D("disabled",a4a(a)))},c4a=function(a,b){a&1&&(E(0,"h2",130),Q(1,"This component has a default description"),G(),E(2,"mat-dialog-content"),
Q(3," You have already entered a description, but the component you chose has a default description: "),E(4,"div",131),Q(5),G()(),E(6,"mat-dialog-actions")(7,"button",132),Q(8,"Use component description"),G(),E(9,"button",133),Q(10,"Keep my description"),G()());a&2&&(a=b.$implicit,A(5),kg(a),A(2),D("mat-dialog-close",!0))},d4a=function(a,b){b.assigneeText=Ql(a.assigneeUser);b.reporterText=Ql(a.reporterUser);b.verifierText=Ql(a.verifierUser);b.collaboratorsText=Rl(a.collaboratorsUsers);b.ccsText=Rl(a.ccUsers)},
f4a=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=Zl(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Zl(a.reporterText));null!=a.verifierText&&(b.verifierUser=Zl(a.verifierText));a.collaboratorsText&&(c=e4a(a.collaboratorsText),c.length&&(b.collaboratorsUsers=c));a.ccsText&&(a=e4a(a.ccsText),a.length&&(b.ccUsers=a))},e4a=function(a){var b=[];a=n(a);for(var c=a.next();!c.done;c=
a.next())(c=Zl(c.value))&&b.push(c);return b},h4a=function(a,b){for(var c=n(Object.keys(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=b[d],f=g4a[d],h=a;"customField"===d||Ri(e,f)||(Array.isArray(e)?h[d]=h[d]?Wma([].concat(r(e),r(h[d]))):e:""!==e&&(h[d]=e))}},i4a=function(a){a=Object.assign({},a);return delete a.hotlistId,a},j4a=function(a){var b={};a=n(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},k4a=function(a){if(a&1){var b=v();E(0,"b-star-toggle",12);M("starClicked",function(){w(b);var c=N(2);return z(c.toggleStar())});G()}a&2&&(a=N(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},l4a=function(a){a&1&&H(0,"b-star-toggle",13);a&2&&D("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)},m4a=function(a){if(a&1){var b=v();E(0,"div")(1,"div",7);P(2,k4a,1,3,"b-star-toggle",8);P(3,l4a,1,4,"b-star-toggle",9);E(4,"span",10);Q(5);E(6,"span")(7,"button",11);M("click",function(){w(b);var c=N();return z(c.editBookmarkGroup())});G()()()()()}a&2&&(a=N(),A(2),D("ngIf",!a.isAdmin),A(1),D("ngIf",a.isAdmin),A(2),T("",a.bookmarkGroup.name," "))},p4a=function(a){if(a&1){var b=v();E(0,"b-saved-search-panel",17);M("focusedRowIndexChange",function(f){w(b);var h=N().$implicit,k=N();
return z(n4a(k,h,f))})("selectionChange",function(f){w(b);var h=N(2);return z(o4a(h,f))})("resultsLoaded",function(f){w(b);var h=N(2);return z(h.loadHotlists(f))});G()}if(a&2){var c=N();a=c.$implicit;var d=c.first;c=c.last;var e=N();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},q4a=function(a){if(a&1){var b=v();E(0,"b-hotlist-panel",18);M("focusedRowIndexChange",function(f){w(b);var h=N().$implicit,k=N();return z(n4a(k,
h,f))})("selectionChange",function(f){w(b);var h=N(2);return z(o4a(h,f))})("resultsLoaded",function(f){w(b);var h=N(2);return z(h.loadHotlists(f))});G()}if(a&2){var c=N();a=c.$implicit;var d=c.first;c=c.last;var e=N();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},r4a=function(a,b){a&1&&(E(0,"div",14),P(1,p4a,1,6,"b-saved-search-panel",15),P(2,q4a,1,6,"b-hotlist-panel",16),G());a&2&&(D("ngSwitch",b.$implicit.type),
A(1),D("ngSwitchCase","SAVED_SEARCH"),A(1),D("ngSwitchCase","HOTLIST"))},s4a=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(c.archive())});Q(1," Archive bookmark group ");G()}a&2&&(a=N(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},t4a=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(c.unarchive())});Q(1," Unarchive bookmark group ");G()}a&2&&(a=N(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},u4a=
function(a){a&1&&(E(0,"span",32),Q(1," (archived) "),G())},w4a=function(a,b){if(a&1){var c=v();E(0,"div")(1,"b-hotlist-chip-smart",48);M("removeHotlist",function(){var d=w(c).ngIf,e=N(4);return z(v4a(e,d))});G()()}a&2&&(a=b.ngIf,A(1),D("id",a))},y4a=function(a,b){if(a&1){var c=v();E(0,"div",49)(1,"a",50);Q(2);G();E(3,"span",51);M("click",function(){var e=w(c).ngIf,f=N(4);return z(x4a(f,e))})("keydown.enter",function(){var e=w(c).ngIf,f=N(4);return z(x4a(f,e))})("keydown.space",function(){var e=w(c).ngIf,
f=N(4);return z(x4a(f,e))});Q(4," \u00d7 ");G()()}if(a&2){a=b.ngIf;b=N().$implicit;var d=N(3);A(1);D("href",d.paths.viewSavedSearch(a),le)("matTooltip","Go to saved search: "+d.getDisplayName(b));A(1);T(" S: ",d.getDisplayName(b)," ");A(1);D("matTooltip","Remove item: "+d.getDisplayName(b));Uf("aria-label","Remove item: "+d.getDisplayName(b))}},z4a=function(a){a&1&&(E(0,"span",52),Q(1,"<None>"),G())},A4a=function(a,b){a&1&&(E(0,"div",45),P(1,w4a,2,1,"div",7),P(2,y4a,5,5,"div",46),P(3,z4a,2,0,"span",
47),G());if(a&2){a=b.$implicit;b=N(3);A(1);var c;var d="HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;D("ngIf",d);A(1);D("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);A(1);D("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},C4a=function(a,b){if(a&1){var c=v();E(0,"button",61);M("click",function(){var d=w(c).$implicit,e=N(5);return z(B4a(e,d))});Q(1);G()}a&2&&(a=b.$implicit,A(1),T("",a.name," "))},D4a=function(a){a&
1&&P(0,C4a,2,1,"button",60);a&2&&(a=N(4),D("ngForOf",a.savedSearchChoices))},E4a=function(a){a&1&&(E(0,"div",53)(1,"label",54),Q(2,"Add from saved searches:"),G(),E(3,"button",55)(4,"span",56),Q(5,"Select"),G(),H(6,"mat-icon",57),G(),E(7,"mat-menu",null,58),P(9,D4a,1,1,"ng-template",59),G()());if(a&2){var b=O(8);A(3);D("matMenuTriggerFor",b)}},J4a=function(a){if(a&1){var b=v();I(0);E(1,"div",30)(2,"label",33)(3,"span",18);Q(4,"Selected items");G()();E(5,"div",34,35);P(7,A4a,4,3,"div",36);G()();E(8,
"div",37)(9,"div",38)(10,"label",39);Q(11,"Add hotlist from favorites:");G();E(12,"b-hotlist-picker",40);M("onApply",function(c){w(b);var d=N(2);return z(F4a(d,c))})("onCreate",function(c){w(b);var d=N(2);return z(G4a(d,c))})("onLoad",function(c){w(b);var d=N(2);return z(H4a(d,c))});G()();E(13,"div",41)(14,"label",42);Q(15,"Add hotlist by query:");G();E(16,"b-hotlist-search",43);M("itemSelect",function(c){w(b);var d=N(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(I4a(d,c.hotlistId),
d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return z()});G()();P(17,E4a,10,1,"div",44);G();L()}a&2&&(a=N(2),A(7),D("ngForOf",a.bookmarkGroupUnderEdit.item),A(5),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),A(4),D("showGroups",!1)("allowStarring",!1),A(1),D("ngIf",0<a.savedSearchChoices.length))},L4a=function(a){a&1&&(E(0,"span"),Q(1),E(2,"a",65),Q(3),G()());if(a&2){a=N().$implicit;var b=N(3);A(1);T(" Hotlist ",
a.hotlistId,": ");A(1);D("href",K4a(b,a),le);A(1);T(" ",a.name||"(name not available)"," ")}},M4a=function(a){a&1&&(E(0,"span"),Q(1),E(2,"a",65),Q(3),G()());if(a&2){a=N().$implicit;var b=N(3);A(1);T(" Saved search ",a.savedSearchId,": ");A(1);D("href",K4a(b,a),le);A(1);T(" ",a.name||"(name not available)"," ")}},N4a=function(a,b){a&1&&(E(0,"li"),P(1,L4a,4,3,"span",7),P(2,M4a,4,3,"span",7),G());a&2&&(a=b.$implicit,A(1),D("ngIf","HOTLIST"===a.resourceType),A(1),D("ngIf","SAVED_SEARCH"===a.resourceType))},
O4a=function(a){a&1&&(E(0,"div",62)(1,"label")(2,"span",18),Q(3,"Items"),G()(),E(4,"div",63)(5,"ul"),P(6,N4a,3,2,"li",64),G()()());a&2&&(a=N(2),A(6),D("ngForOf",a.bookmarkGroup.item))},P4a=function(a){if(a&1){var b=v();E(0,"div",66)(1,"button",67);M("click",function(){w(b);var c=N(2);return z(c.saveMetadata())});Q(2," Update ");G();E(3,"button",68);M("click",function(){w(b);var c=N(2);return z(c.revertMetadataChanges())});Q(4," Revert changes ");G()()}a&2&&(a=N(2),A(1),D("disabled",!a.hasUnsavedMetadataChanges()||
a.isSaving()))},Q4a=function(a){if(a&1){var b=v();E(0,"div",66)(1,"button",67);M("click",function(){w(b);var c=N(2);return z(c.saveAccessPolicy())});Q(2," Update ");G();E(3,"button",68);M("click",function(){w(b);var c=N(2);return z(c.revertAccessPolicyChanges())});Q(4," Revert changes ");G()()}a&2&&(a=N(2),A(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},T4a=function(a){if(a&1){var b=v();I(0);E(1,"div",9)(2,"h2");Q(3);G();P(4,u4a,
2,0,"span",10);E(5,"a",11);Q(6," (View Dashboard)");G()();E(7,"mat-tab-group",12);M("selectedIndexChange",function(d){w(b);var e=N();return z(e.selectedTabIndex=d)})("selectedIndexChange",function(d){w(b);var e=N();return z(e.tabChange(d))});E(8,"mat-tab",13)(9,"div",14);H(10,"b-error-banner",15);E(11,"div",16)(12,"label",17)(13,"span",18);Q(14,"Name");G()();E(15,"input",19,20);M("ngModelChange",function(d){w(b);var e=N();return z(e.bookmarkGroupUnderEdit.name=d)});G()();E(17,"div",16)(18,"label",
21)(19,"span",18);Q(20,"Description");G()();E(21,"textarea",22);M("ngModelChange",function(d){w(b);var e=N();return z(e.bookmarkGroupUnderEdit.description=d)});G()();P(22,J4a,18,7,"ng-container",23);P(23,O4a,7,1,"ng-template",null,24,Hg);P(25,P4a,5,1,"div",25);G()();E(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);Q(31,"Admins");G();E(32,"p",27);Q(33," Edit access controls, edit name and description, reorder items, add/remove items ");G()();E(34,"b-multi-user-input",28);M("usersChange",
function(d){w(b);var e=N();return z(e.accessPolicyUnderEdit.admins=d)})("isValid",function(d){w(b);var e=N();return z(e.isAdminsFieldValid=d)});G()();E(35,"div",16)(36,"label")(37,"span",18);Q(38,"View only");G();E(39,"p",27);Q(40," View the bookmark group ");G();E(41,"b-multi-user-input",29);M("usersChange",function(d){w(b);var e=N();return z(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){w(b);var e=N();return z(e.isReaderFieldValid=d)});G()()();E(42,"div",30);Q(43," See ");E(44,"a",
31);Q(45,"access control documentation");G();Q(46," for an explanation of the settings. ");G();P(47,Q4a,5,1,"div",25);G()()();L()}if(a&2){var c=O(24);a=N();A(3);lg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," ");A(1);D("ngIf",a.isArchived());A(1);D("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),le);A(2);D("selectedIndex",a.selectedTabIndex);A(3);D("error",a.error);A(1);D("ngClass",og(28,Ft,a.isEditDisabled()));A(4);D("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",
a.isEditDisabled());A(2);D("ngClass",og(30,Ft,a.isEditDisabled()));A(4);D("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());A(1);D("ngIf",a.isAdmin)("ngIfElse",c);A(3);D("ngIf",a.isAdmin);A(3);D("ngClass",og(32,Ft,a.isEditDisabled()));A(6);Zf("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.admins);A(1);D("ngClass",og(34,Ft,a.isEditDisabled()));A(6);Zf("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",
!0)("containerChips",og(38,R4a,og(36,S4a,a.accessPolicyUnderEdit.admins)));A(3);D("href",lp(a.documentationLinks)+"#bookmark-groups",le);A(3);D("ngIf",a.isAdmin)}},U4a=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(c.delete())});Q(1," Delete saved search ");G()}a&2&&(a=N(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},V4a=function(a){a&1&&(I(0),E(1,"div",9)(2,"h2"),Q(3," Saved search not found "),G()(),L())},W4a=function(a){if(a&1){var b=v();E(0,"div",
34)(1,"button",35);M("click",function(){w(b);var c=N(2);return z(c.saveMetadata())});Q(2," Update ");G();E(3,"button",36);M("click",function(){w(b);var c=N(2);return z(c.revertMetadataChanges())});Q(4," Revert changes ");G()()}a&2&&(a=N(2),A(1),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},X4a=function(a){if(a&1){var b=v();E(0,"div",34)(1,"button",35);M("click",function(){w(b);var c=N(2);return z(c.saveAccessPolicy())});Q(2," Update ");G();E(3,"button",36);M("click",function(){w(b);
var c=N(2);return z(c.revertAccessPolicyChanges())});Q(4," Revert changes ");G()()}a&2&&(a=N(2),A(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},$4a=function(a){if(a&1){var b=v();I(0);E(1,"div",9)(2,"h2");Q(3);G();E(4,"a",10);Q(5," (View Issues)");G()();E(6,"mat-tab-group",11);M("selectedIndexChange",function(c){w(b);var d=N();return z(d.selectedTabIndex=c)})("selectedIndexChange",function(c){w(b);var d=N();return z(d.tabChange(c))});
E(7,"mat-tab",12)(8,"div",13);H(9,"b-error-banner",14);E(10,"div",15)(11,"label",16)(12,"span",17);Q(13,"Name");G()();E(14,"input",18,19);M("ngModelChange",function(c){w(b);var d=N();return z(d.savedSearchUnderEdit.name=c)});G()();E(16,"div",15)(17,"label",20)(18,"span",17);Q(19,"Description");G()();E(20,"textarea",21);M("ngModelChange",function(c){w(b);var d=N();return z(d.savedSearchUnderEdit.description=c)});Q(21,"            ");G()();E(22,"div",22)(23,"label",23)(24,"span",17);Q(25,"Query");G();
E(26,"p",24);Q(27," To modify query and display preferences, run the saved search and modify its parameters ");G();E(28,"div",25);Q(29);G()()();P(30,W4a,5,1,"div",26);G()();E(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);Q(36,"Admins");G();E(37,"p",24);Q(38," Edit access controls, edit name and description, edit query ");G()();E(39,"b-multi-user-input",29);M("usersChange",function(c){w(b);var d=N();return z(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){w(b);var d=
N();return z(d.isAdminsFieldValid=c)});G()();E(40,"div",15)(41,"label",30)(42,"span",17);Q(43,"View and execute search");G()();E(44,"b-multi-user-input",31);M("usersChange",function(c){w(b);var d=N();return z(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){w(b);var d=N();return z(d.isReaderFieldValid=c)});G()();E(45,"div",32);Q(46," See ");E(47,"a",33);Q(48,"access control documentation");G();Q(49," for an explanation of the settings. ");G();P(50,X4a,5,1,"div",26);G()()();L()}a&2&&(a=N(),
A(3),lg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),A(1),D("href",a.paths.viewSavedSearch(a.savedSearch.searchId),le),A(2),D("selectedIndex",a.selectedTabIndex),A(3),D("error",a.error),A(1),D("ngClass",og(26,Gt,a.isEditDisabled())),A(4),D("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),A(2),D("ngClass",og(28,Gt,a.isEditDisabled())),A(4),D("ngModel",a.savedSearchUnderEdit.description)("disabled",a.isEditDisabled()),A(9),T(" ",a.savedSearch.query," "),
A(1),D("ngIf",a.isAdmin),A(3),D("ngClass",og(30,Gt,a.isEditDisabled())),A(6),Zf("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.admins),A(1),D("ngClass",og(32,Gt,a.isEditDisabled())),A(4),Zf("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",og(36,Y4a,og(34,Z4a,a.accessPolicyUnderEdit.admins))),A(3),D("href",lp(a.documentationLinks)+"#saved-searches",le),A(3),D("ngIf",a.isAdmin))},a5a=function(a){a&
1&&(E(0,"div",7),H(1,"b-spinner"),G())},b5a=function(a){if(a&1){var b=v();E(0,"div",39)(1,"span",40)(2,"b-checkbox",41);M("change",function(c){w(b);var d=N(2);return z(d.alertState.setValue(c))});G()();E(3,"div")(4,"strong",42);Q(5,"SLO Notifications");G();E(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. ");G()()()}a&2&&(a=N(2),Zf("bv2-edit-resource-readonly",a.isEditDisabled()),A(2),D("checked",
a.alertState.getValue())("disabled",a.isEditDisabled()))},c5a=function(a){a&1&&(E(0,"div",44),Q(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),E(2,"a",45),Q(3," Learn more "),G()())},e5a=function(a){if(a&1){var b=v();E(0,"b-button",50);M("onAction",function(){w(b);var c=N(3);return z(d5a(c,!0))});Q(1," Archive ");G()}a&2&&(a=N(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},f5a=function(a){if(a&1){var b=v();E(0,"b-button",51);M("onAction",
function(){w(b);var c=N(3);return z(d5a(c,!1))});Q(1," Unarchive ");G()}a&2&&(a=N(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},g5a=function(a){if(a&1){var b=v();E(0,"div",26)(1,"b-button",46);M("onAction",function(){w(b);var d=N(2);return z(d.saveMetadata())});Q(2," Update ");G();E(3,"b-button",47);M("onAction",function(){w(b);var d=N(2);return z(d.revertMetadataChanges())});Q(4," Revert changes ");G();P(5,e5a,2,1,"b-button",48);P(6,f5a,2,1,"b-button",49);G()}if(a&2){N();var c=O(9);
a=N();A(1);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);A(2);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);A(2);D("ngIf",a.slo&&!a.slo.getIsArchived());A(1);D("ngIf",a.slo&&a.slo.getIsArchived())}},h5a=function(a){if(a&1){var b=v();E(0,"div",25)(1,"b-button",52);M("onAction",function(){w(b);var c=N(2);return z(c.saveAccessPolicy())});Q(2," Update ");G();E(3,"b-button",53);M("onAction",function(){w(b);
var c=N(2);return z(c.revertAccessPolicyChanges())});Q(4," Revert changes ");G()()}a&2&&(a=N(2),A(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},i5a=function(a){if(a&1){var b=v();E(0,"div")(1,"div",8)(2,"h2")(3,"span",9);Q(4);G()()();E(5,"mat-tab-group",10);M("selectedIndexChange",function(c){w(b);var d=N();return z(d.selectedTabIndex=c)})("selectedIndexChange",function(c){w(b);var d=N();return z(d.tabChange(c))});E(6,"mat-tab",11)(7,"div",12)(8,"form",13,14)(10,
"div",15)(11,"label",16)(12,"span",17);Q(13,"Name");G()();E(14,"input",18);M("ngModelChange",function(c){w(b);var d=N();return z(d.editableCopy.setName(c))});G()();E(15,"div",15)(16,"label",19)(17,"span",17);Q(18,"Description");G()();E(19,"textarea",20);M("ngModelChange",function(c){w(b);var d=N();return z(d.editableCopy.setDescription(c))});Q(20,"              ");G()();P(21,b5a,8,4,"div",21);G();P(22,c5a,4,0,"div",22);E(23,"div",15)(24,"slo-elements-picker",23);M("onCollectionUpdate",function(c){w(b);
var d=N();return z(d.updateCollection(c))})("onValidation",function(c){w(b);var d=N();return z(d.elementPickerIsValid=c)});G()();E(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);M("onAction",function(){w(b);var c=N();return z(c.showUpdateHistoryModal())});Q(29," View history ");G()()();E(30,"div",25);P(31,g5a,7,4,"div",28);G()()()();E(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);Q(38,"Admins");G();E(39,"p",33);Q(40," Edit name, description and metrics ");
G()();E(41,"b-multi-user-input",34);M("usersChange",function(c){w(b);var d=N();return z(d.editableAccessPolicy.admins=c)})("isValid",function(c){w(b);var d=N();return z(d.validity.admins=c)});G()();E(42,"div",15)(43,"label",35)(44,"span",17);Q(45,"Readers");G();E(46,"p",33);Q(47," View the SLO definition (this is not required to see an issue's SLO status) ");G()();E(48,"b-multi-user-input",36);M("usersChange",function(c){w(b);var d=N();return z(d.editableAccessPolicy.readers=c)})("isValid",function(c){w(b);
var d=N();return z(d.validity.readers=c)});G()()();E(49,"div",15);Q(50," See ");E(51,"a",37);Q(52,"access control documentation");G();Q(53," for an explanation of the settings. ");G();P(54,h5a,5,1,"div",38);G()()()()}a&2&&(a=N(),A(4),lg(" SLO ",a.slo.getSloId(),": ",a.slo.getName()," "),A(1),D("selectedIndex",a.selectedTabIndex),A(5),Zf("bv2-edit-resource-readonly",a.isEditDisabled()),A(4),D("required",!0)("ngModel",a.editableCopy.getName())("disabled",a.isEditDisabled()),A(1),Zf("bv2-edit-resource-readonly",
a.isEditDisabled()),A(4),D("ngModel",a.editableCopy.getDescription())("disabled",a.isEditDisabled()),A(2),D("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),A(1),D("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),A(1),Zf("bv2-edit-resource-readonly",a.isEditDisabled()),A(1),D("isDisabled",a.isEditDisabled())("collection",Ht(a.editableCopy)),A(7),D("ngIf",a.isAdmin()),A(4),Zf("bv2-edit-resource-readonly",a.isEditDisabled()),A(6),D("users",a.editableAccessPolicy.admins),Uf("disabled",a.isEditDisabled()?
!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isEditDisabled()),A(6),D("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),Uf("disabled",a.isEditDisabled()?!0:null),A(3),hg("href","",lp(a.documentationLinks),"#slos",le),A(3),D("ngIf",a.isAdmin()))},j5a=function(a){a&1&&(E(0,"b-person-hovercard",3),Q(1),G());a&2&&(a=N(),D("email",a.assignee),A(1),T(" ",a.assignee," "))},k5a=function(a){a&1&&Q(0,"--")},l5a=function(a){a&1&&H(0,"b-formatted-date-time",3);a&2&&(a=N(),
D("timestamp",a.createdTime))},m5a=function(a){a&1&&Q(0,"--")},n5a=function(a){a&1&&(E(0,"b-person-hovercard",3),Q(1),G());a&2&&(a=N(),D("email",a.reporter),A(1),T(" ",a.reporter," "))},o5a=function(a){a&1&&Q(0,"--")},p5a=function(a,b){a&1&&(E(0,"div",3),Q(1),G());a&2&&(a=b.$implicit,b=N(),bg("chippy status-",a,""),D("title",b.STATUS_FULL_TEXT[a]),A(1),T(" ",b.STATUS_TERSE[a]," "))},q5a=function(a){a&1&&Q(0,"--")},r5a=function(a){a&1&&H(0,"b-team-display",3);a&2&&(a=N(),D("teamId",a.teamId)("componentId",
a.componentId)("anchorLinkEnabled",!1))},s5a=function(a){a&1&&Q(0,"--")},t5a=function(a){a&1&&(I(0),Q(1),U(2,"enumToHuman"),L());a&2&&(a=N(),A(1),kg(V(2,1,a.type)))},u5a=function(a){a&1&&Q(0,"--")},v5a=function(a){if(a&1){var b=v();E(0,"div",3);M("@arrowPosition.start",function(){w(b);var c=N();return z(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){w(b);var c=N();return z(c._disableViewStateAnimation=!1)});H(1,"div",4);E(2,"div",5);H(3,"div",6)(4,"div",7)(5,"div",8);G()()}a&
2&&(a=N(),D("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),A(2),D("@indicator",a._getArrowDirectionState()),A(1),D("@leftPointer",a._getArrowDirectionState()),A(1),D("@rightPointer",a._getArrowDirectionState()))},w5a=function(a){a&1&&H(0,"th",21)},x5a=function(a){a&1&&H(0,"td",22)},y5a=function(a){a&1&&(E(0,"th",21),Q(1," Id "),G())},z5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-id-cell",24),G());a&2&&(a=b.$implicit,
A(1),D("id",a.id))},A5a=function(a){a&1&&(E(0,"th",21),Q(1," Title "),G())},B5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-title-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},C5a=function(a){a&1&&(E(0,"th",26),Q(1," Type "),G())},D5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-type-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},E5a=function(a){a&1&&(E(0,"th",27),Q(1," Assignee "),G())},F5a=function(a,b){a&1&&(E(0,"td",23),
H(1,"b-issue-assignee-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},G5a=function(a){a&1&&(E(0,"th",28),Q(1," Reporter "),G())},H5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-reporter-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},I5a=function(a){a&1&&(E(0,"th",29),Q(1," Status "),G())},J5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-status-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},K5a=
function(a){a&1&&(E(0,"th",21),Q(1," Team "),G())},L5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-team-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},M5a=function(a){a&1&&(E(0,"th",30),Q(1," Created "),G())},N5a=function(a,b){a&1&&(E(0,"td",23),H(1,"b-issue-created-time-cell",25),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},O5a=function(a){a&1&&H(0,"th",21)},P5a=function(a,b){a&1&&(E(0,"td",23)(1,"b-actions-menu",31),M("click",function(c){return c.stopPropagation()}),
G()());a&2&&(a=b.$implicit,b=N(),A(1),D("menuItems",b.getMenuItems(a.id)))},Q5a=function(a){a&1&&H(0,"tr",32)},R5a=function(a,b){if(a&1){var c=v();E(0,"tr",33);M("click",function(d){var e=w(c).$implicit,f=N();return z(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=w(c).$implicit,f=N();return z(f.navigateToIssue(d,e.id))})("focusin",function(){var d=w(c).$implicit,e=N();return z(It(e.focusManager,d))})("keydown",function(d){var e=w(c).$implicit,f=N();return z(f.onRowKeydown(e,d))});G()}a&
2&&D("row",b.$implicit)},S5a=function(a,b){return(null==a?void 0:a.id)===(null==b?void 0:b.id)},U5a=function(a){if(a&1){var b=v();E(0,"div",5);H(1,"img",6)(2,"img",7);E(3,"p",8);Q(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");G();E(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. ');E(7,"a",10);Q(8,"Learn more");G()();E(9,"button",11);M("click",function(){w(b);var c=N(2);return z(T5a(c))});
Q(10," Add ");G()()}a&2&&(a=N(2),A(1),D("src",a.TEA_LIGHT,le),A(1),D("src",a.TEA_DARK,le))},V5a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=N(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},W5a=function(a){a&1&&(I(0),P(1,V5a,1,2,"b-issues-table",17),U(2,"async"),L());a&2&&(a=N(5),A(1),D("ngIf",V(2,1,a.blockedAndOpenIds$)))},X5a=function(a){a&1&&(E(0,"p",19),Q(1,"Not blocking any open issues \ud83e\udd73"),G())},Y5a=function(a,b){a&1&&(I(0),E(1,"h4",15),Q(2),G(),P(3,W5a,3,3,
"ng-container",12),P(4,X5a,2,0,"ng-template",null,16,Hg),L());if(a&2){a=b.$implicit;var c=O(5);A(2);T("Open (",a.length,")");A(1);D("ngIf",0<a.length)("ngIfElse",c)}},Z5a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=N(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},$5a=function(a){a&1&&(I(0),E(1,"h4",15),Q(2),G(),P(3,Z5a,1,2,"b-issues-table",17),U(4,"async"),L());if(a&2){a=N().$implicit;var b=N(4);A(2);T("Closed (",a.length,")");A(1);D("ngIf",V(4,2,b.blockedAndClosedIds$))}},
a6a=function(a,b){a&1&&(I(0),P(1,$5a,5,4,"ng-container",1),L());a&2&&(a=b.$implicit,A(1),D("ngIf",0<a.length))},b6a=function(a){a&1&&(I(0),P(1,Y5a,6,3,"ng-container",1),U(2,"async"),P(3,a6a,2,1,"ng-container",1),U(4,"async"),L());a&2&&(a=N(3),A(1),D("ngIf",V(2,2,a.blockedAndOpen$)),A(2),D("ngIf",V(4,4,a.blockedAndClosed$)))},c6a=function(a,b){a&1&&(E(0,"li")(1,"a",22)(2,"span",9),Q(3),G(),E(4,"aside",23),H(5,"button",24),G()()());a&2&&(a=b.$implicit,A(1),hg("routerLink","/issues/",a,""),Wf("aria-label",
"Issue ",a,""),A(2),T("b/",a,""))},d6a=function(a){a&1&&(E(0,"h4",15),Q(1,"Loading..."),G(),E(2,"ol",20),P(3,c6a,6,3,"li",21),G());a&2&&(a=N(2).$implicit,A(3),D("ngForOf",a))},e6a=function(a,b){a&1&&(I(0),E(1,"a",25),Q(2," View as search results "),G(),L());a&2&&(a=b.ngIf,A(1),D("routerLink",a.path)("queryParams",a.params))},f6a=function(a){if(a&1){var b=v();P(0,b6a,5,6,"ng-container",12);U(1,"async");P(2,d6a,4,1,"ng-template",null,13,Hg);E(4,"aside",14)(5,"button",11);M("click",function(){w(b);var d=
N(2);return z(T5a(d))});Q(6," Add ");G();P(7,e6a,3,2,"ng-container",1);U(8,"async");G()}if(a&2){var c=O(3);a=N(2);D("ngIf",V(1,3,a.issuesBeingBlocked$))("ngIfElse",c);A(7);D("ngIf",V(8,5,a.searchUrl$))}},g6a=function(a,b){a&1&&(I(0),P(1,U5a,11,2,"div",3),P(2,f6a,9,7,"ng-template",null,4,Hg),L());if(a&2){a=b.$implicit;var c=O(3);A(1);D("ngIf",0===a.length)("ngIfElse",c)}},h6a=function(a){a&1&&(E(0,"aside",26),H(1,"b-spinner"),G())},i6a=function(a){if(a&1){var b=v();E(0,"button",4);M("click",function(c){w(b);
N().expansionChange.emit();c.stopPropagation();return z()});H(1,"b-icon",5);G()}a&2&&(a=N(),Zf("collapsed",!a.expanded),Uf("aria-label",a.expanded?"Collapse children":"Expand children"))},j6a=function(a){a&1&&H(0,"div",6)},k6a=function(a){a&1&&(E(0,"p",7),Q(1,"none"),G())},l6a=function(a){a&1&&H(0,"b-issue-card",11,12);if(a&2){var b=O(1);a=N().$implicit;var c=N(2);D("onedevIsHovercardReady",b.init)("issueId",a)("childContextId",c.issueId)}},m6a=function(a,b){a&1&&(I(0),E(1,"a",8),Q(2),G(),Q(3),E(4,
"onedev-hovercard",null,9),P(6,l6a,2,3,"b-issue-card",10),G(),L());if(a&2){a=b.$implicit;b=b.last;var c=O(5),d=N().$implicit,e=N();A(1);Wf("aria-label","Open issue ",a,"");D("routerLink","/"+e.editIssueDependencies(a))("onedevHovercardTrigger",c);A(1);kg(d[1][a]||a);A(1);T("",b?"":", "," ")}},n6a=function(a,b){a&1&&(E(0,"section",4),P(1,k6a,2,0,"p",5),P(2,m6a,7,5,"ng-container",6),G());a&2&&(a=b.$implicit,A(1),D("ngIf",0===a[0].length),A(1),D("ngForOf",a[0]))},o6a=function(a){a&1&&(E(0,"section",
13),Q(1,"loading..."),G())},p6a=function(a){var b=1<a.length,c={};a=n(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value;if(null!=e){d=e.issueId;var f=void 0;e=null==(f=e.snapshot[0])?void 0:f.title;c[d]=b?Uo(e):e}}return c},q6a=function(a,b){a&1&&(I(0),H(1,"b-issues-table",1),L());a&2&&(a=b.ngIf,b=N(),A(1),D("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("initialSort",b.initialSort))},Jt=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))},r6a=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:Ai(a)}},s6a=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=Kt(b),f=b.nextElementSibling&&Kt(b.nextElementSibling),
h=b.previousElementSibling&&Kt(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 t;if((null==(t=b.nextElementSibling)?0:t.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d=
"current";return c()},Kt=function(a){return Number(a.dataset.level)},Mt=function(a){var b;return Lt(null!=(b=a.dataset.ancestorchain)?b:"")},t6a=function(a){a&1&&H(0,"th",27)},u6a=function(a){if(a&1){var b=v();E(0,"td",28,29);M("click",function(c){w(b);O(1).focus();return z(c.stopPropagation())});G()}},v6a=function(a){a&1&&H(0,"th",27)},w6a=function(a){if(a&1){var b=v();E(0,"td",30,31);M("click",function(c){w(b);O(1).focus();return z(c.stopPropagation())})("dragstart",function(c){w(b);var d=N();return z(d.handleDragStart(c))});
H(2,"mat-icon",32);G()}},x6a=function(a){a&1&&(E(0,"th",27),Q(1," Id "),G())},y6a=function(a,b){a&1&&(E(0,"td",33),H(1,"b-issue-id-cell",34),G());a&2&&(a=b.$implicit,A(1),D("id",a.id))},z6a=function(a){a&1&&(E(0,"th",27),Q(1," Id "),G())},A6a=function(a){a&1&&(E(0,"td",33),Q(1,"--"),G())},B6a=function(a){a&1&&(E(0,"th",27),Q(1," Title "),G())},C6a=function(a,b){if(a&1){var c=v();E(0,"td",33)(1,"b-expandable-issue-title-cell",35);M("expansionChange",function(){var d=w(c).$implicit,e=N();return z(e.toggleExpansion(d))});
U(2,"async");U(3,"async");G()()}a&2&&(a=b.$implicit,A(1),D("issue",V(2,4,a.issue$))("expandable",V(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},D6a=function(a){a&1&&(E(0,"th",27),Q(1," Type "),G())},E6a=function(a,b){a&1&&(E(0,"td",33),H(1,"b-issue-type-cell",36),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},F6a=function(a){a&1&&(E(0,"th",27),Q(1," Assignee "),G())},G6a=function(a,b){a&1&&(E(0,"td",33),H(1,"b-issue-assignee-cell",36),U(2,"async"),
G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},H6a=function(a){a&1&&(E(0,"th",27),Q(1," Status "),G())},I6a=function(a,b){a&1&&(E(0,"td",33),H(1,"b-issue-status-cell",36),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},J6a=function(a){a&1&&(E(0,"th",27),Q(1," Team "),G())},K6a=function(a,b){a&1&&(E(0,"td",33),H(1,"b-issue-team-cell",36),U(2,"async"),G());a&2&&(a=b.$implicit,A(1),D("issue",V(2,1,a.issue$)))},L6a=function(a){a&1&&H(0,"th",27)},M6a=function(a,b){a&
1&&(E(0,"td",33)(1,"b-actions-menu",37),M("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=N(),A(1),D("menuItems",b.getMenuItems(a)))},N6a=function(a){a&1&&H(0,"th",27)},O6a=function(a){if(a&1){var b=v();E(0,"button",41);M("click",function(){w(b);var c=N().$implicit,d=N();return z(d.saveDraft(c))});H(1,"mat-icon",42);G()}a&2&&D("matTooltip","Save issue (Enter)")},P6a=function(a){a&1&&H(0,"b-spinner")},Q6a=function(a,b){a&1&&(E(0,"td",38),P(1,O6a,2,1,"button",39),P(2,P6a,
1,0,"ng-template",null,40,Hg),G());if(a&2){a=b.$implicit;var c=O(3);A(1);D("ngIf",!a.saving)("ngIfElse",c)}},S6a=function(a,b){if(a&1){var c=v();E(0,"td",33)(1,"b-async-data-placeholder",43);U(2,"async");E(3,"b-button",44);M("onAction",function(){var d=w(c).$implicit,e=N();return z(R6a(e,d))});E(4,"span",45);Q(5);G()()()()}a&2&&(a=b.$implicit,b=N(),Yf("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),Uf("colspan",b.tableColumns.length),A(1),D("isReady",!!V(2,5,a.parentIssue$)),A(4),T("Display ",
a.truncatedSiblingCount," more"))},T6a=function(a){a&1&&(E(0,"th",27),Q(1," Title "),G())},U6a=function(a,b){if(a&1){var c=v();E(0,"td",33)(1,"b-text-input-cell",46);M("valueChange",function(d){var e=w(c).$implicit;return z(e.title=d)})("commit",function(){var d=w(c).$implicit,e=N();return z(e.saveDraft(d))});G()()}a&2&&(a=b.$implicit,Yf("padding-left",24*(a.level+1),"px"),A(1),D("value",a.title)("readonly",a.saving))},V6a=function(a){a&1&&H(0,"tr",47)},X6a=function(a,b){if(a&1){var c=v();E(0,"tr",
48);M("click",function(d){var e=w(c).$implicit,f=N();return z(f.navigateToIssue(d,e))})("mouseup",function(d){var e=w(c).$implicit,f=N();return z(f.navigateToIssue(d,e))})("focusin",function(){var d=w(c).$implicit,e=N();return z(It(e.focusManager,d))})("keydown",function(d){var e=w(c).$implicit,f=N();return z(f.onRowKeydown(e,d))});U(1,"async");U(2,"async");G()}a&2&&(a=b.$implicit,b=N(),Zf("selected",V(1,8,W6a(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(V(2,10,a.issue$))),D("row",a),Uf("data-level",
a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},Y6a=function(a,b){if(a&1){var c=v();E(0,"tr",49);M("focusin",function(){var d=w(c).$implicit,e=N();return z(It(e.focusManager,d))})("keydown",function(d){var e=w(c).$implicit,f=N();return z(f.onRowKeydown(e,d))});G()}a&2&&(a=b.$implicit,D("row",a),Uf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},$6a=function(a,b){if(a&1){var c=v();E(0,"tr",50);M("keydown",function(d){var e=w(c).$implicit,
f=N();return z(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=w(c).$implicit,e=N();return z(Z6a(e,d))})("componentBlur",function(){var d=w(c).$implicit,e=N();return z(Z6a(e,d))})("focusin",function(){var d=w(c).$implicit,e=N();return z(It(e.focusManager,d))});G()}a&2&&(a=b.$implicit,D("row",a),Uf("data-type",a.type))},a7a=function(a,b){if(a&&a.length)return a.map(b)},b7a=function(a){return{filename:a.getFilename(),lineNumber:Li(a,2),changeNumber:Aj(a,3)}},c7a=function(a){return{packageName:Pi(a,
1),fileMentionSet:a7a(Nb(a,Nt,2),b7a)}},e7a=function(a){return{totalMentions:Ji(a,1),truncated:oj(a,2),packageMentionSet:a7a(Nb(a,d7a,3),c7a)}},Ot=function(a){var b=f7a(a.open);a=f7a(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},f7a=function(a){var b=a.count;a=a.exact;return 0===b||a?""+b:b+"+"},Pt=function(a){return"("+f7a(a)+")"},Qt=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},g7a=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";default:Ai(b)}},h7a=function(a){a&1&&H(0,"b-spinner")},i7a=function(a){a&1&&cg(0)},j7a=function(a){a&1&&(I(0),P(1,i7a,1,0,"ng-container",20),L());if(a&2){N();var b=O(43);A(1);D("ngTemplateOutlet",b)}},k7a=function(a){a&1&&(H(0,"b-blockers-table",22),U(1,"async"));if(a&2){a=N().ngIf;var b=N();D("issueId",a)("blockerIds",V(1,2,b.blockerIds$))}},l7a=function(a){a&1&&(I(0),P(1,k7a,2,4,"b-blockers-table",
21),U(2,"async"),L());if(a&2){a=N();var b=O(24);A(1);D("ngIf",V(2,2,a.blockersCount$))("ngIfElse",b)}},m7a=function(a){a&1&&cg(0)},n7a=function(a){a&1&&(E(0,"div")(1,"span",23),Q(2,"This issue is not blocked "),E(3,"span",24),Q(4,"\ud83c\udf89"),G()(),P(5,m7a,1,0,"ng-container",20),G());if(a&2){N();var b=O(43);A(5);D("ngTemplateOutlet",b)}},o7a=function(a){a&1&&cg(0)},p7a=function(a){a&1&&(I(0),P(1,o7a,1,0,"ng-container",20),L());if(a&2){N();var b=O(45);A(1);D("ngTemplateOutlet",b)}},q7a=function(a){a&
1&&(E(0,"div",25)(1,"section",26)(2,"div",27),Q(3," Progress: "),G(),E(4,"div",27),Q(5),U(6,"number"),U(7,"async"),U(8,"number"),U(9,"async"),G(),E(10,"div",28),U(11,"async"),E(12,"div",29)(13,"div",30),U(14,"async"),G(),E(15,"onedev-hovercard",null,31)(17,"div",32)(18,"div",33),Q(19),U(20,"async"),G()()()()(),H(21,"mat-icon",34),E(22,"onedev-hovercard",null,35)(24,"div",32)(25,"div",36)(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. "),
G()()()()()());if(a&2){var b=O(16),c=O(23);a=N();A(5);lg(" ",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 ");A(5);Wf("aria-label","",V(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");A(2);D("onedevHovercardTrigger",b);A(1);Yf("width",V(14,20,a.totalDaysDisplayPercent$),"%");A(6);T(" ",V(20,22,a.progressHovercardContent$)," ");A(2);D("onedevHovercardTrigger",c)}},r7a=function(a,b){a&1&&(H(0,"b-issue-relations-table",
37),U(1,"async"));if(a&2){a=b.ngIf;b=N();var c;Zf("hidden",0===((null==(c=V(1,3,null==b.table?null:b.table.rows$))?null:c.length)||0));D("rootIssueId",a)}},s7a=function(a){a&1&&cg(0)},t7a=function(a){a&1&&(I(0),E(1,"span",23),Q(2,"This issue has no children"),G(),P(3,s7a,1,0,"ng-container",20),L());if(a&2){N(2);var b=O(45);A(3);D("ngTemplateOutlet",b)}},u7a=function(a){a&1&&(I(0),P(1,t7a,4,1,"ng-container",5),U(2,"async"),U(3,"async"),L());if(a&2){a=N();var b;A(1);D("ngIf",0===V(2,1,a.unarchivedChildIssueCount$)&&
0===((null==(b=V(3,3,null==a.table?null:a.table.rows$))?null:b.length)||0))}},w7a=function(a){if(a&1){var b=v();E(0,"b-button",38);M("onAction",function(){w(b);var c=N();return z(v7a(c))});U(1,"async");Q(2," Add blocker ");G()}a&2&&(a=N(),D("disabled",!V(1,1,a.canEdit$)))},x7a=function(a){if(a&1){var b=v();E(0,"b-button",41);M("onAction",function(){w(b);var c=N(2);return z(c.createChild())});U(1,"async");Q(2," Create new child ");G()}a&2&&(a=N(2),D("disabled",!V(1,1,a.canEdit$)))},y7a=function(a){if(a&
1){var b=v();P(0,x7a,3,3,"b-button",39);E(1,"b-button",40);M("onAction",function(){w(b);var c=N();return z(c.addChild())});U(2,"async");Q(3," Add existing child ");G()}a&2&&(a=N(),D("ngIf",a.isNonPublicSession),A(1),D("disabled",!V(2,2,a.canEdit$)))},z7a=function(a,b){return(0,W.combineLatest)([a,b]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return 0===d?0:Math.round(100*c/d*100)/100}))},A7a=function(a){return 1===a?a+" day":a+" days"},B7a=function(a){a&1&&(E(0,"div",3),H(1,
"mat-icon",4),E(2,"span",5),Q(3),U(4,"async"),G()());if(a&2){a=N();var b;A(3);T("",null==(b=V(4,1,a.issues$))?null:b.length," parent issues")}},C7a=function(a){a&1&&(E(0,"div",3),H(1,"mat-icon",6),E(2,"span",5),Q(3),U(4,"async"),G()());if(a&2){a=N();var b;A(3);T("Blocked by ",null==(b=V(4,1,a.issues$))?null:b.length," issues")}},D7a=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.$implicit,b=N(4),bg("chippy status-",a," margin-s-left"),A(1),T(" ",b.STATUS_TERSE[a]," "))},E7a=function(a){a&1&&
(I(0),E(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),Q(5),G(),E(6,"div",12),Q(7),G()(),E(8,"div",10)(9,"div",13),Q(10),G(),P(11,D7a,2,4,"span",14),G()()(),L());if(a&2){var b=N();a=b.$implicit;b=b.last;var c=N(2);A(1);hg("routerLink","/issues/",a.issueId,"");A(1);Zf("border-bottom",!b);A(3);kg(a.issueId);A(2);kg(a.snapshot[0].title);A(2);D("ngClass",c.priorityClass(a.snapshot[0].priority));A(1);kg(a.snapshot[0].priority);A(1);D("ngIf",c.convertIssueStatusStrToTag(a.snapshot[0].status))}},F7a=function(a,
b){a&1&&(I(0),P(1,E7a,12,8,"ng-container",2),L());a&2&&(a=b.index,A(1),D("ngIf",5>a))},H7a=function(a){if(a&1){var b=v();I(0);E(1,"div",15)(2,"button",16);M("click",function(){w(b);var c=N(2);return z(G7a(c))});Q(3,"View all parent issues");G()();L()}},I7a=function(a){if(a&1){var b=v();I(0);E(1,"div",15)(2,"button",16);M("click",function(){w(b);var c=N(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();Rt(c.router,"/issues/"+c.currentIssueId+"/dependencies");return z()});Q(3,"View all blockers");
G()();L()}},J7a=function(a,b){a&1&&(E(0,"div"),P(1,F7a,2,1,"ng-container",7),P(2,H7a,4,0,"ng-container",2),P(3,I7a,4,0,"ng-container",2),G());a&2&&(a=b.$implicit,b=N(),A(1),D("ngForOf",a),A(1),D("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),A(1),D("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},K7a=function(a){a&1&&H(0,"mat-icon",7)},L7a=function(a){a&1&&(I(0),H(1,"b-list-issues-card",8,9),L());if(a&2){var b=O(2);N();var c=O(5);a=N();A(1);D("onedevIsHovercardReady",
b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIssueIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},M7a=function(a){a&1&&(I(0),E(1,"a",3),Q(2),G(),P(3,K7a,1,0,"mat-icon",4),E(4,"onedev-hovercard",null,5),P(6,L7a,3,5,"ng-container",6),G(),L());if(a&2){var b=O(5);a=N();A(1);hg("title","",a.multiParentIssueIds.length," parents at this position");D("onedevHovercardTrigger",b);A(1);T("",a.multiParentIssueIds.length," Parents\u2026");A(1);D("ngIf",1<a.multiParentIssueIds.length)}},
N7a=function(a,b){a&1&&(I(0),E(1,"b-issue-reference-widget",10),Q(2),G(),H(3,"mat-icon",7),L());if(a&2){a=b.$implicit;b=b.last;var c=N();A(1);D("href",c.getIssueLink(a))("issueId",a);A(1);c.issueIdToTitle.has(a)?(a=c.issueIdToTitle.get(a),a=Uo(a)):a=String(a);kg(a);A(1);Zf("last",b)}},O7a=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.random_=a;this.reset()},Tt=function(a){return new St((a instanceof St?a:new St(a)).value,!0)},P7a=function(a){if(a.oauthTokens){var b=a.oauthTokens;return(0,W.firstValueFrom)(b).then(function(c){c=
new W.BehaviorSubject(c);b.subscribe(c);return new Ut(c)})}return a.apiKey?a.appAuthTokens?Promise.resolve(new Vt(a.apiKey,a.appAuthTokens)):Promise.resolve(new Wt(a.apiKey,a.authUser)):Promise.reject(Error("Qe"))},Q7a=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}},R7a=function(a){return new W.Observable(function(b){var c=
Xt(function(){b.next({});b.complete()},a);return function(){Yt(c)}})},S7a=function(a){var b=new Zt;b.setName(a);return b},U7a=function(a){a.isPrivate?(a=new $t,um(a,2,T7a,!0)):(a=new $t,um(a,1,T7a,!0));return a},W7a=function(a){var b=new au;a=n(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new bu;if(d.value instanceof cu)d.isDecreasing?um(c,4,du,d.value.toString()):um(c,2,du,d.value.toString());else if("string"===typeof d.value)d.isDecreasing?um(c,3,du,d.value):um(c,1,du,d.value);
else if("number"===typeof d.value)d.isDecreasing?um(c,9,du,d.value):um(c,10,du,d.value);else if(d.value instanceof Uint8Array)d.isDecreasing?um(c,5,du,jb(d.value,!1)):um(c,7,du,jb(d.value,!1));else if(d.value instanceof eu)d.isDecreasing?(d=V7a(d.value),Dm(c,11,du,d)):(d=V7a(d.value),Dm(c,12,du,d));else if(d.value instanceof fu){var e=d.value.rep;"number"===typeof e?d.isDecreasing?um(c,9,du,e):um(c,10,du,e):"string"===typeof e&&(d.isDecreasing?um(c,6,du,e):um(c,8,du,e))}rq(b,1,bu,c)}return b},$7a=
function(a,b){if(a instanceof gu)return 0<Nb(b,bu,1).length?null:X7a.apply(gu,r(a.parts));a=Array.of.apply(Array,r(a.root.parts));b=n(Nb(b,bu,1));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,ym(c,du)){case 4:var d=a,e=d.push,f=hu,h=rm(c,du,4);c=l(c,h);e.call(d,Tt(f(c)));break;case 2:d=a;e=d.push;f=hu;h=rm(c,du,2);c=l(c,h);e.call(d,new St(f(c)));break;case 6:d=a;e=d.push;f=rm(c,du,6);c=l(c,f);e.call(d,Tt(new fu(c)));break;case 8:d=a;e=d.push;f=rm(c,du,8);c=l(c,f);e.call(d,new St(new fu(c)));
break;case 10:a.push(new St(new fu(iu(c,rm(c,du,10)))));break;case 9:a.push(Tt(new fu(iu(c,rm(c,du,9)))));break;case 3:a.push(Tt(Qs(c,3,du)));break;case 1:a.push(new St(c.getString()));break;case 7:d=void 0;a.push(new St(null==(d=Ms(c,rm(c,du,7)))?void 0:Y7a(d)));break;case 5:d=void 0;a.push(Tt(null==(d=Ms(c,rm(c,du,5)))?void 0:Y7a(d)));break;case 12:c=Z7a(Hl(c,Cj,12,du));if(null===c)return null;a.push(new St(c));break;case 11:c=Z7a(Hl(c,Cj,11,du));if(null===c)return null;a.push(Tt(c));break;case 0:return null;
default:return null}return X7a.apply(gu,r(a))},a8a=function(a){a&1&&H(0,"b-live-preview",11);a&2&&(a=N(),D("comment",a.newComment.text)("issueId",a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},b8a=function(a){if(a&1){var b=v();E(0,"section")(1,"div",12)(2,"b-recaptcha",13);M("onUpdate",function(c){w(b);var d=N();return z(d.recaptchaResponse=c)});G()()()}},c8a=function(a){var b=[],c=new Map;a=n(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(r(e.relations),r(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},d8a=function(a){a&1&&(I(0),Q(1,"\u2026 >"),L())},e8a=function(a){a&1&&(I(0),Q(1,"\u2026"),L())},f8a=function(a){if(a&1){var b=v();E(0,"a",16);M("click",function(){w(b);var c=N(4);return z(c.compactMode$.next(!1))});P(1,d8a,2,0,"ng-container",6);P(2,e8a,2,0,"ng-container",6);G()}a&2&&(a=N().$implicit,A(1),D("ngIf",a.isSpliced),
A(1),D("ngIf",a.isTruncated))},g8a=function(a){a&1&&(E(0,"a",17),Q(1),G());if(a&2){a=N().$implicit;var b=O(7);Zf("muted",a.name==a.id);D("routerLinkObj",a.route)("onedevHovercardTrigger",b);A(1);kg(a.name)}},h8a=function(a){a&1&&(E(0,"span",18),Q(1),G());a&2&&(a=N().$implicit,Zf("muted",a.name==a.id),A(1),kg(a.name))},i8a=function(a){a&1&&(I(0),Q(1," > "),L())},j8a=function(a){a&1&&(I(0),H(1,"b-component-path-card",19,20),L());if(a&2){var b=O(2);a=N().$implicit;A(1);D("onedevIsHovercardReady",b.init)("componentId",
a.id)}},k8a=function(a,b){a&1&&(I(0),P(1,f8a,3,2,"a",11),P(2,g8a,2,5,"a",12),P(3,h8a,2,3,"ng-template",null,13,Hg),P(5,i8a,2,0,"ng-container",6),E(6,"onedev-hovercard",null,14),P(8,j8a,3,2,"ng-container",15),G(),L());if(a&2){a=b.$implicit;b=b.last;var c=O(4),d=N(3);A(1);D("ngIf",a.isSpliced||a.isTruncated);A(1);D("ngIf",!d.viewOnly)("ngIfElse",c);A(3);D("ngIf",!b)}},l8a=function(a,b){a&1&&(E(0,"span",9),P(1,k8a,9,4,"ng-container",10),G());a&2&&(a=b.$implicit,A(1),D("ngForOf",a))},m8a=function(a){a&
1&&(E(0,"span"),Q(1,"[Archived]"),G())},n8a=function(a){if(a&1){var b=v();E(0,"button",21);M("click",function(){w(b);N(2).editing=!0;return z()});H(1,"mat-icon",22);G()}},o8a=function(a){a&1&&(E(0,"a",23),U(1,"async"),H(2,"mat-icon",24),G());if(a&2){a=N(2);var b;D("routerLinkObj",a.popoutLink(null==(b=V(1,1,a.component$))?null:b.componentId))}},p8a=function(a){a&1&&(E(0,"b-async-data-placeholder",2),U(1,"async"),E(2,"div",3),H(3,"mat-icon",4),P(4,l8a,2,1,"span",5),U(5,"async"),P(6,m8a,2,0,"span",
6),U(7,"async"),P(8,n8a,2,0,"button",7),G(),P(9,o8a,3,3,"a",8),G());a&2&&(a=N(),D("isReady",V(1,5,a.isReady$)),A(4),D("ngIf",V(5,7,a.componentPath$)),A(2),D("ngIf",V(7,9,a.isArchived$)),A(2),D("ngIf",!a.viewOnly),A(1),D("ngIf",a.popoutLink))},r8a=function(a){if(a&1){var b=v();E(0,"b-team-component-picker",25);M("selectedComponentChange",function(c){w(b);var d=N();d.editing=!1;c&&q8a(d.issueEditComponentService,d.issueId,c);return z()})("dropdownClosed",function(){w(b);N().editing=!1;return z()});
U(1,"async");G()}a&2&&(a=N(),D("selectedComponent",V(1,3,a.component$))("isRequired",!0)("shouldFocus",!0))},s8a=function(a){if(a&1){var b=v();E(0,"b-star-toggle",9);M("starClicked",function(){w(b);var c=N(2);return z(c.starClicked.emit())});U(1,"async");U(2,"async");G()}a&2&&(a=N(2),D("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!V(1,4,ju(a.isSavingStar,a.hotlist.hotlistId)))("starred",V(2,6,ju(a.starredHotlists,a.hotlist.hotlistId))))},t8a=function(a){a&
1&&(E(0,"p",10),Q(1),G());a&2&&(a=N(2),A(1),T(" ",a.hotlist.description," "))},u8a=function(a){a&1&&(E(0,"div",1)(1,"div",2)(2,"label",3),Q(3),G(),E(4,"span",4),P(5,s8a,3,8,"b-star-toggle",5),E(6,"a",6),M("click",function(b){return b.stopPropagation()})("keydown.enter",function(b){return b.stopPropagation()}),H(7,"mat-icon",7),G()()(),P(8,t8a,2,1,"p",8),G());a&2&&(a=N(),A(3),T(" ",a.hotlist.name," "),A(2),D("ngIf",a.shouldShowStar(a.hotlist)),A(1),D("routerLink",a.paths.viewHotlist(a.hotlist.hotlistId)),
A(2),D("ngIf",!a.isCompact&&a.hotlist.description))},v8a=function(a){a&1&&cg(0)},w8a=function(a){a&1&&(I(0),P(1,v8a,1,0,"ng-container",6),L());if(a&2){N();var b=O(12);A(1);D("ngTemplateOutlet",b)}},x8a=function(a){a&1&&cg(0)},y8a=function(a){a&1&&(I(0),P(1,x8a,1,0,"ng-container",6),L());if(a&2){N();var b=O(6);A(1);D("ngTemplateOutlet",b)}},B8a=function(a){if(a&1){var b=v();E(0,"button",7);M("click",function(){w(b);var c=N();return z(z8a(c))});Q(1," Create ");G()}a&2&&(a=N(),D("disabled",!(0<A8a(a).length)))},
C8a=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(ku(c))});Q(1);G()}a&2&&(a=N(),D("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),Uf("aria-label",a.saveBtnTooltip),A(1),T(" ",a.saveBtnLabel," "))},E8a=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){w(b);var c=N(2),d=Xi(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),ku(c)):D8a(c,d);return z()});Q(1);U(2,"async");E(3,"span",20);Q(4,"(add hotlist by ID)");
G()()}a&2&&(a=N(2),A(1),T(" ",V(2,1,a.query$)," "))},F8a=function(a){if(a&1){var b=v();E(0,"button",21);M("click",function(){w(b);N(2).showCreateNewPane=!0;return z()});Q(1);U(2,"async");E(3,"span",20);Q(4,"(create new)");G()()}a&2&&(a=N(2),A(1),T(" ",V(2,1,a.query$)," "))},G8a=function(a,b){if(a&1){var c=v();I(0);E(1,"div",25,26);U(3,"async");E(4,"mat-list-option",27);M("focus",function(){w(c);var f=O(2);return z(f.show())})("blur",function(){w(c);var f=O(2);return z(f.hide())});U(5,"async");E(6,
"hotlist-matlist-option",28);M("starClicked",function(){var f=w(c).$implicit,h=N(3);return z(h.toggleStar(f.hotlistId))});G()()();L()}if(a&2){a=b.$implicit;b=N(3);var d,e;A(1);D("matTooltip",!1===(null==(d=V(3,10,a.permissions$))?null:d.appender)?b.NO_ACCESS_MESSAGE:"");A(3);Yf("height","auto");D("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(e=V(5,12,a.permissions$))?null:e.appender))("value",a.hotlistId);A(2);D("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",
b.isSavingStar)}},H8a=function(a){if(a&1){var b=v();I(0);E(1,"div",29)(2,"span",20);Q(3," The number of hotlists is too large to show at once. ");G();E(4,"button",30);M("click",function(){w(b);var c=N(3);return z(c.forceShowOverflow$.next(!0))});Q(5," Show all anyway ");G()();L()}},J8a=function(a,b){if(a&1){var c=v();I(0);E(1,"mat-selection-list",22,23);M("selectionChange",function(d){w(c);var e=N(2);return z(I8a(e,d))});P(3,G8a,7,14,"ng-container",24);G();P(4,H8a,6,0,"ng-container",18);U(5,"async");
L()}a&2&&(a=b.$implicit,b=N(2),A(3),D("ngForOf",a)("ngForTrackBy",b.trackByHotlistId),A(1),D("ngIf",V(5,3,b.isOverflowMode$)))},K8a=function(a){if(a&1){var b=v();E(0,"header",9)(1,"h2");Q(2,"Search for Hotlists");G();E(3,"div",10);H(4,"mat-icon",11);E(5,"input",12,13);M("input",function(){w(b);var c=O(6);N().query$.next(c.value);return z()});G()()();E(7,"section",14,15);P(9,E8a,5,3,"button",16);U(10,"async");P(11,F8a,5,3,"button",17);U(12,"async");P(13,J8a,6,5,"ng-container",18);U(14,"async");G()}a&
2&&(a=N(),A(9),D("ngIf",V(10,3,a.showLoadById$)),A(2),D("ngIf",V(12,5,a.showCreateNew$)),A(2),D("ngIf",V(14,7,a.visibleHotlists$)))},L8a=function(a){a&1&&(E(0,"header",9)(1,"h2"),Q(2,"Create new hotlist"),G()(),E(3,"section",31)(4,"div",32)(5,"form",33)(6,"label",34),Q(7,"Name"),G(),H(8,"input",35),E(9,"label",36),Q(10,"Description"),G(),H(11,"textarea",37),E(12,"p",20),Q(13," Note: Access controls can be adjusted after the hotlist is created. "),G()()()());a&2&&(a=N(),A(5),D("formGroup",a.hotlistUnderEdit))},
M8a=function(a,b){return a.name.localeCompare(b.name)},N8a=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)},O8a=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)"]},P8a=function(a){a&1&&(qd(),rd(),I(0),Q(1),L());a&2&&(a=N(),A(1),T("Insights (",a.availablePanels.size,")"))},Q8a=function(a,b){if(a&1){var c=v();E(0,"button",19);M("click",function(){var d=w(c).$implicit;N().openSidebar.emit({panel:d.panel});return z()});Q(1);G()}a&2&&(a=b.$implicit,b=N(),D("disabled",!b.availablePanels.has(a.panel)),A(1),T(" ",a.label," "))},R8a=function(a){if(a&1){var b=v();E(0,"b-insights-graph-menu",2);M("openSidebar",function(d){w(b);var e=N(2);return z(e.openSidebar(d.panel))});
G()}if(a&2){a=N().ngIf;var c=N();D("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},S8a=function(a){a&1&&(I(0),P(1,R8a,1,3,"b-insights-graph-menu",1),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.shouldShowInsightsGraphMenu$)))},U8a=function(a,b){if(a&1){var c=v();E(0,"button",1);M("click",function(){w(c);var d=N();return z(T8a(d))});U(1,"async");Q(2);G()}a&2&&(a=b.ngIf,b=N(),D("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),A(2),T(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},V8a=function(a){a&1&&cg(0)},W8a=function(a){a&1&&(I(0),P(1,V8a,1,0,"ng-container",5),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.content))},Y8a=function(a){if(a&1){var b=v();E(0,"issue-limits-btn",3,14);M("onHotkey",function(){w(b);var d=O(1);return z(X8a(d))});G()}if(a&2){a=N().ngIf;var c=N();D("issueId",a.issueId)("hotkey",c.HOTKEYS.OPEN_ISSUE_ACCESS_LIMITS_DIALOG)}},Z8a=function(a,
b){if(a&1){var c=v();E(0,"button",15);M("click",function(e){var f=w(c).$implicit;return z(f.action(e))});H(1,"mat-icon",16);Q(2);G()}if(a&2){a=b.$implicit;var d;D("disabled",a.disabled)("title",a.title);Uf("aria-label",a.title);A(1);D("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");A(1);T(" ",a.label," ")}},$8a=function(a){if(a&1){var b=v();I(0);E(1,"button",17);M("click",function(d){w(b);var e=N(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();return z()});H(2,"mat-icon",
18);Q(3," Retention: ");H(4,"retention-text",19);Q(5," \u00a0 ");H(6,"help-hover",20);G();L()}if(a&2){a=N().ngIf;var c=O(15);A(4);D("retentionState",a.retentionState);A(2);D("content",c)}},a9a=function(a){a&1&&(I(0),H(1,"retention-help-text",21),L());a&2&&(a=N(2).ngIf,A(1),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},b9a=function(a){a&1&&P(0,a9a,2,2,"ng-container",0);a&2&&(a=N().ngIf,D("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},c9a=function(a,b){if(a&
1){var c=v();I(0);H(1,"b-app-vote-button",1)(2,"hotlist-picker-btn",2);E(3,"smart-dupe-btn",3,4);M("onHotkey",function(){w(c);var e=O(4);return z(T8a(e))});G();P(5,Y8a,2,2,"issue-limits-btn",5);E(6,"b-notification-menu",6);M("subscriptionChange",function(e){w(c);var f=N();return z(f.updateSubscription(e))})("showNotificationSettings",function(e){w(c);var f=N();return z(f.showNotificationSettings(e))});G();H(7,"insights-graph-menu-smart",7);E(8,"button",8);H(9,"mat-icon",9);G();E(10,"mat-menu",10,
11);P(12,Z8a,3,5,"button",12);P(13,$8a,7,2,"ng-container",0);G();P(14,b9a,1,1,"ng-template",null,13,Hg);L()}if(a&2){a=b.ngIf;var d=O(11);b=N();A(1);D("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted);A(1);D("issueId",a.issueId);A(1);D("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);A(2);D("ngIf",b.enableIssueAccessLimits);A(1);D("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);A(1);D("iconOnly",!0);A(1);D("matMenuTriggerFor",d);A(4);D("ngForOf",
a.menuItems);A(1);D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime)}},d9a=function(a){a&1&&(E(0,"h3",3,4),Q(2),G());a&2&&(a=N(),Uf("title",a.isLongTitle?a.titlePlain:""),A(2),T(" ",a.titleTruncated,"\n"))},g9a=function(a){if(a&1){var b=v();E(0,"mat-form-field",5)(1,"input",6,7);M("keyup",function(c){w(b);var d=N();return z(e9a(d,c))})("blur",function(){w(b);var c=N();return z(e9a(c,null))});G()()}a&2&&(a=N(),D("ngStyle",og(2,f9a,a.editModeWidth)),A(1),D("value",a.titlePlain))},
i9a=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N();return z(h9a(c))});H(1,"mat-icon",9);G()}a&2&&(a=N(),D("disabled",a.disabled))},j9a=function(){},k9a=function(a){a&1&&(E(0,"output"),Q(1),U(2,"async"),G());if(a&2){a=N().ngIf;var b=N();A(1);lg(" ",a," of ",V(2,2,b.currentSearchResults.totalText$)," ")}},o9a=function(a,b){if(a&1){var c=v();I(0);P(1,k9a,3,4,"output",0);E(2,"span",1)(3,"button",2);M("onHotkey",function(){w(c);var d=N();return z(l9a(d.currentSearchResults))})("click",
function(){w(c);var d=N();return z(l9a(d.currentSearchResults))});U(4,"async");H(5,"mat-icon",3);G();E(6,"button",4);M("onHotkey",function(){w(c);var d=N();return z(m9a(d.currentSearchResults))})("click",function(){w(c);var d=N();return z(m9a(d.currentSearchResults))});U(7,"async");H(8,"mat-icon",5);G()();L()}a&2&&(a=b.ngIf,b=N(),A(1),D("ngIf",-1!==a),A(1),D("ngClass",og(10,n9a,-1===a)),A(1),D("hotkey",b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!V(4,6,b.currentSearchResults.hasPreviousIssue$)),A(3),
D("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!V(7,8,b.currentSearchResults.hasNextIssue$)))},p9a=function(a){a&1&&H(0,"b-access-level-indicator",5);a&2&&(a=N(2).$implicit,D("accessLevel",a.accessLevel))},q9a=function(a){a&1&&H(0,"b-access-limits-chip")},r9a=function(a){a&1&&H(0,"b-retention-chip",6);a&2&&(a=N(2).$implicit,D("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},s9a=function(a){a&1&&(E(0,"div",2),P(1,p9a,1,1,"b-access-level-indicator",3),P(2,q9a,
1,0,"b-access-limits-chip",0),P(3,r9a,1,3,"b-retention-chip",4),G());a&2&&(a=N().$implicit,A(1),D("ngIf",a.isShowingPublicPartner),A(1),D("ngIf",a.isAccessLimited),A(1),D("ngIf",a.isShowingRetention))},t9a=function(a,b){a&1&&(I(0),P(1,s9a,4,3,"div",1),L());a&2&&(a=b.$implicit,A(1),D("ngIf",a.isShowingPublicPartner||a.isShowingRetention||a.isAccessLimited))},u9a=function(a){a&1&&(E(0,"div",4),H(1,"mat-icon",5),Q(2),U(3,"async"),G());if(a&2){a=N();var b=O(4);D("onedevHovercardTrigger",b);A(2);T("",
V(3,2,a.teamName$)," ")}},v9a=function(a){a&1&&cg(0)},w9a=function(a){a&1&&(I(0),P(1,v9a,1,0,"ng-container",23),L());if(a&2){N();var b=O(12);A(1);D("ngTemplateOutlet",b)}},x9a=function(a,b){a&1&&H(0,"ancestors-breadcrumbs",30);a&2&&(a=b.ngIf,b=N(3),D("ancestors",a)("issueId",b.issueId))},y9a=function(a){a&1&&(I(0),H(1,"b-component-breadcrumb-chip",26),U(2,"async"),E(3,"div",27),P(4,x9a,1,2,"ancestors-breadcrumbs",28),U(5,"async"),H(6,"b-issue-id-picker",29),U(7,"async"),U(8,"async"),U(9,"async"),
U(10,"async"),G(),L());a&2&&(a=N(2),A(1),D("componentId",V(2,9,a.componentId$))("compactMode",!0)("issueId",a.issueId),A(3),D("ngIf",V(5,11,a.ancestors$)),A(2),D("issueId",a.issueId)("tracker",V(7,13,a.currentTracker.tracker$))("componentId",V(8,15,a.componentId$))("issueTitle",V(9,17,a.issueTitle$))("isExternalIssue",!!V(10,19,a.isWithinExternalComponent$)))},z9a=function(a){if(a&1){var b=v();E(0,"b-team-chip",24);M("onTeamLoaded",function(){w(b);var c=N();return z(c.isTeamLoaded=!0)});U(1,"async");
U(2,"async");G();P(3,y9a,11,21,"ng-container",25)}a&2&&(a=N(),D("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),A(3),D("ngIf",a.isTeamLoaded))},A9a=function(a){a&1&&(I(0),H(1,"b-component-breadcrumb-chip",31),U(2,"async"),E(3,"div",32),H(4,"b-issue-id-picker",33),U(5,"async"),U(6,"async"),U(7,"async"),U(8,"async"),G(),L());a&2&&(a=N(2),A(1),D("componentId",V(2,7,a.componentId$))("issueId",a.issueId),A(3),D("issueId",a.issueId)("tracker",V(5,9,a.currentTracker.tracker$))("componentId",
V(6,11,a.componentId$))("issueTitle",V(7,13,a.issueTitle$))("isExternalIssue",!!V(8,15,a.isWithinExternalComponent$)))},B9a=function(a){if(a&1){var b=v();E(0,"b-team-chip",24);M("onTeamLoaded",function(){w(b);var c=N();return z(c.isTeamLoaded=!0)});U(1,"async");U(2,"async");G();P(3,A9a,9,17,"ng-container",25)}a&2&&(a=N(),D("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),A(3),D("ngIf",a.isTeamLoaded))},C9a=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().$implicit,A(1),T(" ",a," "))},D9a=
function(a,b){a&1&&(E(0,"div",34),H(1,"mat-icon",35),P(2,C9a,2,1,"ng-container",25),G());if(a&2){a=b.$implicit;N();var c=O(36);D("onedevHovercardTrigger",c);A(2);D("ngIf",2<=a)}},E9a=function(a){a&1&&(I(0),H(1,"b-list-issues-card",36,37),U(3,"async"),L());if(a&2){var b=O(2);a=N();var c=O(36);A(1);D("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",V(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},F9a=function(a){return 1===a?
"Blocked":"Blocked by "+a+" issues"},G9a=function(a){if(0!==a.length)return 1===a.length?lu.ISSUE(a[0]):lu.ISSUE_LIST},H9a=function(a,b){a&1&&(E(0,"div",1),H(1,"img",2),E(2,"h3"),Q(3),G(),E(4,"a",3),U(5,"async"),Q(6),G()());a&2&&(a=b.$implicit,b=N(),A(1),D("src",null==a.branding?null:a.branding.logoUrl,le),A(2),T("This issue is a part of the ",a.name," tracker."),A(1),D("href",V(5,4,b.trackerRedirectUrl$),le),A(2),T(" View in ",a.name," Tracker "))},I9a=function(a){a&1&&(E(0,"div")(1,"ol")(2,"li")(3,
"label"),Q(4,"Issue ID"),G(),E(5,"output"),Q(6),G()(),E(7,"li")(8,"label"),Q(9,"Type"),G(),E(10,"output"),Q(11),G()(),E(12,"li")(13,"label"),Q(14,"Status"),G(),E(15,"output"),Q(16),G()()()());a&2&&(a=N(2),A(6),kg(a.issueId),A(5),kg(a.issueType),A(5),kg(a.issueStatus))},J9a=function(a){a&1&&(E(0,"div",1)(1,"div",2),H(2,"img",3),U(3,"async"),H(4,"mat-icon",4)(5,"img",3),U(6,"async"),G(),E(7,"h3",5),Q(8),U(9,"async"),G(),P(10,I9a,17,3,"div",6),E(11,"div",7)(12,"a",8),U(13,"async"),Q(14,"Continue"),G()()());
a&2&&(a=N(),A(2),D("src",V(3,5,a.currentTrackerLogo$),le),A(3),D("src",V(6,7,a.trackerLogo$),le),A(3),T(" Redirecting to ",V(9,9,a.trackerName$)," "),A(2),D("ngIf",null!=a.issue),A(2),D("href",V(13,11,a.trackerRedirectUrl$),le))},K9a=function(a){if(a&1){var b=v();I(0);E(1,"b-list-field",1);M("valuesChange",function(c){w(b);var d=N();return z(d.valuesChange.emit(c))});E(2,"div",2);gg(3);G()();L()}a&2&&(a=N(),A(1),hg("collapsiblePanelTitle","",a.collaborators.length," users"),D("defaultLineCount",5)("readonly",
a.readonly)("additionAllowed",a.enableCollaborators)("title","Collaborators")("type",a.ListFieldType.USERCHIP)("isUser",!0)("values",a.collaborators)("users",a.collaboratorsUsers)("inputValidator",a.userPrincipalValidator)("listFieldDisabled",a.listFieldDisabled)("teamId",a.teamId)("isExpanded",!0)("isCollapsible",a.isCollapsible)("iconName",a.isCollapsible?"groups_24px":"")("tooltip",a.enableCollaborators?"Collaborators are people directly working on this issue.":"You cannot add collaborators under this component."))},
L9a=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))},M9a=function(a){if(a&1){var b=v();E(0,"input",3,4);M("peoplekitAutocompleteSelectionChange",function(c){w(b);var d=N();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return z()})("ngModelChange",function(c){w(b);var d=N();return z(d.inputValue=
c)});G()}a&2&&(a=N(),D("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("ngModel",a.inputValue))},N9a=function(a){a&1&&cg(0)},P9a=function(a){a&1&&(I(0),P(1,N9a,1,0,"ng-container",6),L());a&2&&(a=N(),A(1),D("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",og(2,O9a,a.email)))},Q9a=function(a){a&1&&Q(0);a&2&&(a=N(),T(" ",a.email," "))},R9a=function(a){a&1&&(qd(),E(0,"svg",7),H(1,"path",8),G())},S9a=function(a){a&1&&H(0,"b-user-membership-chip",
4);if(a&2){a=N().$implicit;var b=N(),c;D("email",a)("teamId",null!==(c=b.teamId)&&void 0!==c?c:"")("enableSmallChip",!0)}},T9a=function(a,b){a&1&&P(0,S9a,1,3,"b-user-membership-chip",3);a&2&&D("ngIf",b.$implicit)},U9a=function(a){return function(b){return Nb(b,mu,1).map(function(c){return{workspaceId:c.getWorkspaceId(),workspaceName:c.getName(),issueId:a}})}},V9a=function(a){a&1&&cg(0)},W9a=function(a){a&1&&(I(0),P(1,V9a,1,0,"ng-container",29),L());if(a&2){N();var b=O(59);A(1);D("ngTemplateOutlet",
b)}},Y9a=function(a,b){a&1&&H(0,"b-list-field",31);a&2&&(a=b.ngIf,b=N(3),D("readonly",!0)("defaultLineCount",3)("title","Team")("type",b.ListFieldType.TEAM)("values",og(5,X9a,a)))},Z9a=function(a){a&1&&(I(0),P(1,Y9a,1,7,"b-list-field",30),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.teamHovercardInputs$)))},a$a=function(a){if(a&1){var b=v();E(0,"div",33)(1,"b-team-warning",34);M("updateTeam",function(){w(b);var h=N(3);h.issueFridge.poke(h.issueId);return z()});U(2,"async");U(3,"async");G()()}if(a&
2){a=N().ngIf;var c=N().ngIf,d=N(),e,f;A(1);D("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,$9a))}},b$a=function(a){a&1&&(I(0),P(1,a$a,4,9,"div",32),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.shouldDisplayTeamSuggestions$)))},d$a=function(a){if(a&1){var b=v();I(0);E(1,"b-edit-field",35,36);M("valueChange",function(f){w(b);var h=O(2),k=
N(2);return z(c$a(k,h,null!==f&&void 0!==f?f:""))});U(3,"async");U(4,"async");U(5,"async");G();L()}if(a&2){a=N().ngIf;var c=N(),d,e;A(1);D("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:"")}},f$a=function(a){if(a&1){var b=v();E(0,"onedev-edit-field")(1,
"onedev-field-label");Q(2,"Reporter");G();E(3,"onedev-field-value",37);U(4,"async");E(5,"b-user-picker",38);M("emailChange",function(e){w(b);var f=N(2);return z(e$a(f.editIssueService,f.issueId,e))});U(6,"async");U(7,"async");G()()()}if(a&2){a=N().ngIf;var c=N(),d;A(3);D("thinking",!!V(4,4,c.isSaving$("reporter")));A(2);D("user",a.reporterUser)("teamId",null!==(d=V(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!V(7,8,c.hasAclToEdit$))}},g$a=function(a){a&1&&cg(0)},h$a=function(a){a&1&&(I(0),P(1,g$a,
1,0,"ng-container",29),L());if(a&2){N();var b=O(61);A(1);D("ngTemplateOutlet",b)}},i$a=function(a,b){if(a&1){var c=v();E(0,"div",40);H(1,"div",41);E(2,"span",42);M("click",function(){var d=w(c).ngIf,e=N(3);return z(nu(e,d))})("keydown.enter",function(d){var e=w(c).ngIf;nu(N(3),e);d.stopPropagation();return z(d.preventDefault())})("keydown.space",function(d){var e=w(c).ngIf;nu(N(3),e);d.stopPropagation();return z(d.preventDefault())});U(3,"async");U(4,"async");Q(5);G()()}a&2&&(a=b.ngIf,b=N(3),A(2),
Zf("disabled",!!V(3,6,b.isSaving$("status"))),D("matTooltip",a.description||""),Uf("aria-disabled",!!V(4,8,b.isSaving$("status")))("aria-label",a.displayText||null),A(3),T(" ",a.displayText," "))},j$a=function(a){a&1&&(I(0),P(1,i$a,6,10,"div",39),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.issueStatusQuickAction$)))},k$a=function(a){a&1&&(H(0,"b-issue-card",43,44),U(2,"async"));if(a&2){var b=O(1);a=N(2);D("onedevIsHovercardReady",b.init)("issueId",V(2,2,a.canonicalIssueId$))}},m$a=function(a){if(a&
1){var b=v();E(0,"b-estimated-effort-row",45);M("effortChange",function(e){w(b);var f=N(2);return z(l$a(f.editIssueService,f.issueId,e))});U(1,"async");U(2,"async");U(3,"async");G()}if(a&2){a=N(2);var c,d;D("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$))}},o$a=function(a){a&1&&(E(0,"div"),Q(1),E(2,"a",51),Q(3,"Learn more"),G()());if(a&2){a=N(2).ngIf;var b=N();A(1);T(" Expanded access is turned on for this component. ",
b.enableCollaborators||0<a.collaborators.length?"Assignees, verifiers and collaborators":"Assignees and verifiers"," can edit issues in this component, and CC'd users can comment on them. ");A(1);D("href",n$a(b.documentationLinks),le)}},p$a=function(a){a&1&&(E(0,"div",46)(1,"span",47),Q(2,"Expanded Access"),G(),E(3,"xap-bubble",48)(4,"xap-icon-trigger"),H(5,"mat-icon",49),G(),P(6,o$a,4,2,"ng-template",null,50,Hg),G()());if(a&2){var b=O(7);A(3);D("panelTemplate",b)}},q$a=function(a){a&1&&(E(0,"span",
57),U(1,"async"),Q(2),G());if(a&2){a=N().ngIf;var b=N(4);Zf("disabled",!!V(1,3,b.isSaving$("assignee")));A(2);T(" ",a.displayText," ")}},r$a=function(a,b){if(a&1){var c=v();E(0,"div",55);M("onHotkey",function(){var d=w(c).ngIf,e=N(4);return z(nu(e,d))})("click",function(){var d=w(c).ngIf,e=N(4);return z(nu(e,d))})("keydown.enter",function(d){var e=w(c).ngIf;nu(N(4),e);d.stopPropagation();return z(d.preventDefault())})("keydown.space",function(d){var e=w(c).ngIf;nu(N(4),e);d.stopPropagation();return z(d.preventDefault())});
U(1,"async");H(2,"div",41);P(3,q$a,3,5,"span",56);U(4,"async");G()}a&2&&(a=b.ngIf,b=N(4),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),Uf("aria-disabled",!!V(1,5,b.isSaving$("assignee")))("aria-label",a.description),A(3),D("ngIf",V(4,7,b.hasAclToEdit$)))},s$a=function(a){a&1&&(I(0),P(1,r$a,5,9,"div",54),U(2,"async"),L());a&2&&(a=N(3),A(1),D("ngIf",V(2,1,a.issueAssigneeQuickAction$)))},u$a=function(a){if(a&1){var b=v();I(0);E(1,"b-edit-field",52,53);M("onHotkey",
function(){w(b);var f=O(2);return z(Gp(f,null,!0,!1))})("valueChange",function(f){w(b);var h=O(2),k=N(2);return z(t$a(k,h,null!==f&&void 0!==f?f:""))});U(3,"async");U(4,"async");U(5,"async");G();P(6,s$a,3,3,"ng-container",0);L()}if(a&2){a=N().ngIf;var c=N(),d,e;A(1);D("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:"");A(5);D("ngIf",c.defaultAssigneeQuickActionEnabled)}},v$a=function(a){if(a&1){var b=v();E(0,"div",62);M("click",function(){w(b);var c=N(3);return z(ou(c.editIssueService,c.issueId,""))});Q(1," Un-assign ");G()}},w$a=function(a,b){if(a&1){var c=v();E(0,"div",64);M("onHotkey",function(){var d=w(c).ngIf,e=N(4);return z(nu(e,d))})("click",function(){var d=w(c).ngIf,e=N(4);return z(nu(e,d))})("keydown.enter",
function(d){var e=w(c).ngIf;nu(N(4),e);d.stopPropagation();return z(d.preventDefault())})("keydown.space",function(d){var e=w(c).ngIf;nu(N(4),e);d.stopPropagation();return z(d.preventDefault())});U(1,"async");U(2,"async");Q(3);G()}a&2&&(a=b.ngIf,b=N(4),Zf("disabled",!!V(1,7,b.isSaving$("assignee"))),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),Uf("aria-disabled",!!V(2,9,b.isSaving$("assignee")))("aria-label",a.description),A(3),T(" ",a.displayText," "))},x$a=
function(a){a&1&&(I(0),P(1,w$a,4,11,"div",63),U(2,"async"),L());a&2&&(a=N(3),A(1),D("ngIf",V(2,1,a.issueAssigneeQuickAction$)))},y$a=function(a){if(a&1){var b=v();E(0,"onedev-edit-field")(1,"onedev-field-label");Q(2,"Assignee");G();E(3,"onedev-field-value",37);U(4,"async");E(5,"b-user-picker",58,59);M("onHotkey",function(){w(b);var e=O(6);return z(e.openPopOver())})("emailChange",function(e){w(b);var f=N(2);return z(ou(f.editIssueService,f.issueId,e))});U(7,"async");U(8,"async");G();E(9,"div",60);
P(10,v$a,2,0,"div",61);U(11,"async");P(12,x$a,3,3,"ng-container",0);U(13,"async");G()()()}if(a&2){a=N().ngIf;var c=N(),d;A(3);D("thinking",!!V(4,7,c.isSaving$("assignee")));A(2);D("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$));A(5);D("ngIf",a.assigneeUser&&V(11,13,c.hasAclToEdit$));A(2);D("ngIf",c.defaultAssigneeQuickActionEnabled&&V(13,15,c.hasAclToEdit$))}},A$a=function(a){if(a&1){var b=v();I(0);
E(1,"b-edit-field",65,66);M("valueChange",function(f){w(b);var h=O(2),k=N(2);return z(z$a(k,h,null!==f&&void 0!==f?f:""))});U(3,"async");U(4,"async");U(5,"async");G();L()}if(a&2){a=N().ngIf;var c=N(),d,e;A(1);D("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:"")}},C$a=function(a){if(a&1){var b=v();E(0,"onedev-edit-field")(1,"onedev-field-label");Q(2,"Verifier");G();E(3,"onedev-field-value",37);U(4,"async");E(5,"b-user-picker",38);M("emailChange",function(e){w(b);var f=N(2);return z(B$a(f.editIssueService,f.issueId,e))});U(6,"async");U(7,"async");G()()()}if(a&2){a=N().ngIf;var c=N(),d;A(3);D("thinking",!!V(4,4,c.isSaving$("verifier")));A(2);D("user",a.verifierUser)("teamId",null!==(d=V(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!V(7,8,c.hasAclToEdit$))}},
D$a=function(a){a&1&&(E(0,"span"),Q(1," Remove me "),G())},E$a=function(a){a&1&&(E(0,"span"),Q(1," Add me "),G())},G$a=function(a){if(a&1){var b=v();E(0,"div",73);M("click",function(){w(b);var c=N(3);return z(F$a(c))})("keydown.enter",function(c){w(b);var d=N(3);F$a(d);c.stopPropagation();c.preventDefault();return z()})("keydown.space",function(c){w(b);var d=N(3);F$a(d);c.stopPropagation();c.preventDefault();return z()});U(1,"async");U(2,"async");U(3,"async");U(4,"async");P(5,D$a,2,0,"span",0);U(6,
"async");P(7,E$a,2,0,"span",0);U(8,"async");U(9,"async");G()}a&2&&(a=N(3),Zf("disabled",!!V(1,7,a.isSaving$("collaborators"))),D("matTooltip",V(4,13,a.isCurrentUserCollaborator$)?"Remove yourself from collaborators":"Add yourself to collaborators"),Uf("aria-disabled",!!V(2,9,a.isSaving$("collaborators")))("aria-label",V(3,11,a.isCurrentUserCollaborator$)?"Remove yourself from collaborators":"Add yourself to collaborators"),A(5),D("ngIf",V(6,15,a.isCurrentUserCollaborator$)),A(2),D("ngIf",!V(8,17,
a.isCurrentUserCollaborator$)&&V(9,19,a.hasAclToEdit$)))},H$a=function(a){a&1&&(E(0,"span"),Q(1," Un-CC me "),G())},I$a=function(a){a&1&&(E(0,"span"),Q(1," CC me "),G())},K$a=function(a){if(a&1){var b=v();E(0,"div",73);M("click",function(){w(b);var c=N(3);return z(J$a(c))})("keydown.enter",function(c){w(b);var d=N(3);return z(pu(d,c))})("keydown.space",function(c){w(b);var d=N(3);return z(pu(d,c))});U(1,"async");U(2,"async");U(3,"async");U(4,"async");P(5,H$a,2,0,"span",0);U(6,"async");P(7,I$a,2,0,
"span",0);U(8,"async");U(9,"async");G()}a&2&&(a=N(3),Zf("disabled",!!V(1,7,a.isSaving$("ccs"))),D("matTooltip",V(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),Uf("aria-disabled",!!V(2,9,a.isSaving$("ccs")))("aria-label",V(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),A(5),D("ngIf",V(6,15,a.isCurrentUserCCd$)),A(2),D("ngIf",!V(8,17,a.isCurrentUserCCd$)&&V(9,19,a.isAllowedToEditCC$)))},N$a=function(a){if(a&1){var b=v();I(0);E(1,"b-collaborators-field",
67,68);M("valuesChange",function(f){w(b);var h=O(2),k=N(2);return z(L$a(k,h,f.values))});U(3,"async");U(4,"async");U(5,"async");E(6,"div",69);P(7,G$a,10,21,"div",70);U(8,"async");U(9,"async");U(10,"async");G()();E(11,"b-list-field",71,72);M("valuesChange",function(f){w(b);var h=O(12),k=N(2);return z(M$a(k,h,f.values))});U(13,"async");U(14,"async");U(15,"async");E(16,"div",69);P(17,K$a,10,21,"div",70);U(18,"async");U(19,"async");U(20,"async");G()();L()}if(a&2){a=N().ngIf;var c=N(),d,e;A(1);D("readonly",
!V(3,18,c.hasAclToEdit$))("collaborators",a.collaborators)("collaboratorsUsers",a.collaboratorsUsers)("listFieldDisabled",!!V(4,20,c.isSaving$("collaborators")))("teamId",null!==(d=V(5,22,c.teamId$))&&void 0!==d?d:"")("isCollapsible",!0);A(6);D("ngIf",V(8,24,c.isCurrentUserCollaborator$)||!V(9,26,c.isCurrentUserCollaborator$)&&V(10,28,c.hasAclToEdit$));A(4);hg("collapsiblePanelTitle","",a.cc.length," users");D("defaultLineCount",5)("readonly",!V(13,30,c.isAllowedToEditCC$))("type",c.ListFieldType.USERCHIP)("isUser",
!0)("values",a.cc)("users",a.ccUsers)("listFieldDisabled",!!V(14,32,c.isSaving$("ccs")))("isCollapsible",!0)("teamId",null!==(e=V(15,34,c.teamId$))&&void 0!==e?e:"");A(6);D("ngIf",V(18,36,c.isCurrentUserCCd$)||!V(19,38,c.isCurrentUserCCd$)&&V(20,40,c.isAllowedToEditCC$))}},O$a=function(a){a&1&&(E(0,"span"),Q(1," Un-CC me "),G())},P$a=function(a){a&1&&(E(0,"span"),Q(1," CC me "),G())},Q$a=function(a){if(a&1){var b=v();E(0,"div",73);M("click",function(){w(b);var c=N(3);return z(J$a(c))})("keydown.enter",
function(c){w(b);var d=N(3);return z(pu(d,c))})("keydown.space",function(c){w(b);var d=N(3);return z(pu(d,c))});U(1,"async");U(2,"async");U(3,"async");U(4,"async");P(5,O$a,2,0,"span",0);U(6,"async");P(7,P$a,2,0,"span",0);U(8,"async");U(9,"async");G()}a&2&&(a=N(3),Zf("disabled",!!V(1,7,a.isSaving$("ccs"))),D("matTooltip",V(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),Uf("aria-disabled",!!V(2,9,a.isSaving$("ccs")))("aria-label",V(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":
"Add yourself to CC"),A(5),D("ngIf",V(6,15,a.isCurrentUserCCd$)),A(2),D("ngIf",!V(8,17,a.isCurrentUserCCd$)&&V(9,19,a.isAllowedToEditCC$)))},R$a=function(a){if(a&1){var b=v();I(0);E(1,"b-list-field",74,72);M("valuesChange",function(e){w(b);var f=O(2),h=N(2);return z(M$a(h,f,e.values))});U(3,"async");U(4,"async");U(5,"async");E(6,"div",69);P(7,Q$a,10,21,"div",70);U(8,"async");U(9,"async");U(10,"async");G()();L()}if(a&2){a=N().ngIf;var c=N(),d;A(1);D("defaultLineCount",5)("readonly",!V(3,9,c.isAllowedToEditCC$))("type",
c.ListFieldType.USERCHIP)("isUser",!0)("values",a.cc)("users",a.ccUsers)("listFieldDisabled",!!V(4,11,c.isSaving$("ccs")))("teamId",null!==(d=V(5,13,c.teamId$))&&void 0!==d?d:"");A(6);D("ngIf",V(8,15,c.isCurrentUserCCd$)||!V(9,17,c.isCurrentUserCCd$)&&V(10,19,c.isAllowedToEditCC$))}},S$a=function(a){a&1&&cg(0)},T$a=function(a){a&1&&(I(0),P(1,S$a,1,0,"ng-container",29),L());if(a&2){N();var b=O(63);A(1);D("ngTemplateOutlet",b)}},U$a=function(a){a&1&&H(0,"b-list-field",75);if(a&2){a=N().ngIf;var b=N(2);
D("readonly",!0)("defaultLineCount",3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},V$a=function(a,b){a&1&&(I(0),P(1,U$a,1,6,"b-list-field",16),U(2,"async"),L());a&2&&(a=b.ngIf,b=N(2),A(1),D("ngIf",V(2,1,b.shouldDisplayWtdmUi$)&&a.length))},W$a=function(a){a&1&&H(0,"b-list-field",75);if(a&2){a=N().ngIf;var b=N();D("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",
a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},Y$a=function(a,b){a&1&&(E(0,"div"),cg(1,76),G());if(a&2){a=b.$implicit;N();var c=O(75);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,X$a,a))}},Z$a=function(a){a&1&&cg(0)},$$a=function(a){a&1&&(I(0),P(1,Z$a,1,0,"ng-container",29),L());if(a&2){N();var b=O(73);A(1);D("ngTemplateOutlet",b)}},aab=function(a){a&1&&H(0,"hr",77)},bab=function(a){a&1&&cg(0)},cab=function(a){a&1&&(I(0),P(1,bab,1,0,"ng-container",
29),L());if(a&2){N(2);var b=O(59);A(1);D("ngTemplateOutlet",b)}},dab=function(a){a&1&&cg(0)},eab=function(a){a&1&&(I(0),P(1,dab,1,0,"ng-container",29),L());if(a&2){N(2);var b=O(61);A(1);D("ngTemplateOutlet",b)}},fab=function(a){a&1&&cg(0)},gab=function(a){a&1&&(I(0),P(1,fab,1,0,"ng-container",29),L());if(a&2){N(2);var b=O(63);A(1);D("ngTemplateOutlet",b)}},hab=function(a,b){a&1&&(E(0,"div"),cg(1,76),G());if(a&2){a=b.$implicit;N(2);var c=O(75);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",
og(2,X$a,a))}},iab=function(a){a&1&&cg(0)},jab=function(a){a&1&&(I(0),P(1,iab,1,0,"ng-container",29),L());if(a&2){N(2);var b=O(73);A(1);D("ngTemplateOutlet",b)}},kab=function(a){a&1&&(E(0,"collapsible-panel",78),U(1,"async"),P(2,cab,2,1,"ng-container",0),U(3,"async"),P(4,eab,2,1,"ng-container",0),U(5,"async"),P(6,gab,2,1,"ng-container",0),U(7,"async"),P(8,hab,2,4,"div",17),U(9,"async"),P(10,jab,2,1,"ng-container",0),U(11,"async"),G());if(a&2){a=N(2);var b;D("titleWhenCollapsed",null!==(b=V(1,8,a.showHiddenFieldsLabel$))&&
void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");A(2);D("ngIf",a.showSloStatus&&!V(3,10,a.isSloStatusPrimary$));A(2);D("ngIf",!V(5,12,a.isSeverityPrimary$));A(2);D("ngIf",a.showChangelists&&!V(7,14,a.isChangelistPrimary$));A(2);D("ngForOf",V(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);A(2);D("ngIf",!V(11,18,a.isForgottenFourPrimary$))}},mab=function(a){if(a&1){var b=v();E(0,"b-issue-slo-box",80);M("onSnoozeChange",function(h){w(b);var k=N(3);return z(lab(k.editIssueService,
k.issueId,h.date,h.snoozeType))});U(1,"async");U(2,"async");U(3,"async");U(4,"async");G()}if(a&2){a=N(2).ngIf;var c=N(),d,e,f;D("sloStatus",null!==(d=V(1,6,c.sloStatus$))&&void 0!==d?d:void 0)("sloSnoozeUntil",a.sloSnoozeUntil)("sloId",null!==(e=V(2,8,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!V(3,10,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=V(4,12,c.createdTimeMicros$))&&void 0!==f?f:0)}},nab=function(a){a&1&&P(0,mab,5,14,"ng-template",79);a&2&&(a=N(2),
D("refreshable",a.refreshMonitor.getObservable()))},pab=function(a){if(a&1){var b=v();E(0,"b-edit-field",81);M("valueChange",function(d){w(b);var e=N(2);return z(oab(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});U(1,"async");U(2,"async");G()}if(a&2){a=N().ngIf;var c=N();D("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")))}},qab=function(a){if(a&1){var b=v();E(0,"insights-graph-btn",85);M("pressed",function(){w(b);var c=N(3).issueInsightsSidebarService;Mo(c.analytics,Aq.SIDEBAR,"ingress-click");c.openSidebar("deployments");return z()});G()}},sab=function(a){if(a&1){var b=v();E(0,"b-list-field",82);M("valuesChange",function(h){w(b);var k=N(2);return z(rab(k.editIssueService,k.issueId,h.values))});U(1,"async");U(2,"async");E(3,"div",83);P(4,qab,1,
0,"insights-graph-btn",84);U(5,"async");G()();H(6,"b-list-field",75);U(7,"async");U(8,"async");U(9,"async")}if(a&2){a=N().ngIf;var c=N(),d,e,f;D("readonly",!V(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!V(2,17,c.isSaving$("changelists")));A(4);D("ngIf",V(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));A(2);Zf("bv2-issue-metadata-error",null==(d=V(7,21,c.pendingChangelists$))?
null:d.hasError);D("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,$9a))("tooltip",(null==(f=V(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},uab=function(a){if(a&1){var b=v();E(0,"b-edit-field",86);M("valueChange",function(d){w(b);var e=N(2);return z(tab(e.editIssueService,e.issueId,null!==
d&&void 0!==d?d:""))});U(1,"csv");U(2,"async");U(3,"async");G()}if(a&2){a=N().ngIf;var c=N();D("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")))}},wab=function(a){if(a&1){var b=v();E(0,"b-edit-field",87);M("valueChange",function(d){w(b);var e=N(2);return z(vab(e.editIssueService,
e.issueId,null!==d&&void 0!==d?d:""))});U(1,"csv");U(2,"async");U(3,"async");G()}if(a&2){a=N().ngIf;var c=N();D("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")))}},yab=function(a){if(a&1){var b=v();E(0,"b-edit-field",86);M("valueChange",
function(d){w(b);var e=N(2);return z(xab(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});U(1,"csv");U(2,"async");U(3,"async");G()}if(a&2){a=N().ngIf;var c=N();D("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")))}},Aab=
function(a){if(a&1){var b=v();E(0,"b-edit-field",88);M("valueChange",function(d){w(b);var e=N(2);return z(zab(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:!1))});U(1,"async");U(2,"async");G()}if(a&2){a=N().ngIf;var c=N();D("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")))}},Bab=function(a){a&1&&cg(0)},Cab=function(a){a&1&&cg(0)},Dab=
function(a){a&1&&cg(0)},Eab=function(a){a&1&&cg(0)},Fab=function(a){a&1&&(E(0,"div",4),P(1,Bab,1,0,"ng-container",29),P(2,Cab,1,0,"ng-container",29),P(3,Dab,1,0,"ng-container",29),P(4,Eab,1,0,"ng-container",29),G());if(a&2){N();var b=O(65),c=O(67),d=O(69),e=O(71);A(1);D("ngTemplateOutlet",b);A(1);D("ngTemplateOutlet",c);A(1);D("ngTemplateOutlet",d);A(1);D("ngTemplateOutlet",e)}},Hab=function(a,b){if(a&1){var c=v();E(0,"b-custom-field-editor",89);M("save",function(e){var f=w(c).$implicit,h=N(2);return z(Gab(h.editIssueService,
h.issueId,f.customFieldId,e))});U(1,"async");U(2,"async");G()}if(a&2){a=b.$implicit;b=N().ngIf;var d=N();D("issue",b)("field",a)("readonly",!V(1,4,d.hasAclToEdit$))("disabled",!!V(2,6,d.isSaving$(a.customFieldId)))}},Lab=function(a,b){if(a&1){var c=v();I(0);P(1,W9a,2,1,"ng-container",0);U(2,"async");P(3,Z9a,3,3,"ng-container",0);P(4,b$a,3,3,"ng-container",0);U(5,"async");P(6,d$a,6,16,"ng-container",1);P(7,f$a,8,10,"ng-template",null,2,Hg);E(9,"b-edit-field",3);M("valueChange",function(q){w(c);var t=
N();return z(Iab(t.editIssueService,t.issueId,null!==q&&void 0!==q?q:""))});U(10,"async");U(11,"async");G();E(12,"div",4)(13,"b-edit-field",5);M("onHotkey",function(q){w(c);var t=N();(q=qu("P"+q))&&Jab(t.editIssueService,t.issueId,q);return z()})("valueChange",function(q){w(c);var t=N();return z(Jab(t.editIssueService,t.issueId,null!==q&&void 0!==q?q:""))});U(14,"async");U(15,"async");G();P(16,h$a,2,1,"ng-container",0);U(17,"async");G();E(18,"div",6)(19,"b-edit-field",7);M("valueChange",function(q){w(c);
var t=N();return z(Kab(t,null!==q&&void 0!==q?q:""))});U(20,"async");U(21,"async");U(22,"async");U(23,"async");G();P(24,j$a,3,3,"ng-container",0);U(25,"async");G();E(26,"onedev-hovercard",null,8);P(28,k$a,3,4,"b-issue-card",9);G();P(29,m$a,4,9,"b-estimated-effort-row",10);U(30,"async");U(31,"async");E(32,"div",11);U(33,"async");P(34,p$a,8,1,"div",12);U(35,"async");E(36,"div",13);P(37,u$a,7,18,"ng-container",1);P(38,y$a,14,17,"ng-template",null,14,Hg);G();P(40,A$a,6,16,"ng-container",1);P(41,C$a,8,
10,"ng-template",null,15,Hg);P(43,N$a,21,42,"ng-container",0);P(44,R$a,11,21,"ng-container",0);G();P(45,T$a,2,1,"ng-container",0);U(46,"async");P(47,V$a,3,3,"ng-container",0);U(48,"async");P(49,W$a,1,6,"b-list-field",16);P(50,Y$a,2,4,"div",17);U(51,"async");P(52,$$a,2,1,"ng-container",0);U(53,"async");P(54,aab,1,0,"hr",18);U(55,"async");P(56,kab,12,20,"collapsible-panel",19);U(57,"async");P(58,nab,1,1,"ng-template",null,20,Hg);P(60,pab,3,12,"ng-template",null,21,Hg);P(62,sab,10,28,"ng-template",null,
22,Hg);P(64,uab,4,14,"ng-template",null,23,Hg);P(66,wab,4,14,"ng-template",null,24,Hg);P(68,yab,4,14,"ng-template",null,25,Hg);P(70,Aab,3,11,"ng-template",null,26,Hg);P(72,Fab,5,4,"ng-template",null,27,Hg);P(74,Hab,3,8,"ng-template",null,28,Hg);L()}if(a&2){a=b.ngIf;var d=O(8),e=O(27),f=O(39),h=O(42);b=N();var k;A(1);D("ngIf",b.showSloStatus&&V(2,50,b.isSloStatusPrimary$));A(2);D("ngIf",b.sessionIsInternal);A(1);D("ngIf",V(5,52,b.teamWarningType$));A(2);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);
A(3);D("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!V(10,54,b.hasAclToEdit$))("disabled",!!V(11,56,b.isSaving$("type")));A(4);D("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,58,b.hasAclToEdit$))("disabled",!!V(15,60,b.isSaving$("priority")));
A(3);D("ngIf",V(17,62,b.isSeverityPrimary$));A(3);D("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(k=V(20,64,b.statusChoices$))&&void 0!==k?k:ng(94,$9a))("readonly",!V(21,66,b.hasAclToEdit$))("disabled",!!V(22,68,b.isSaving$("status")))("onedevHovercardActive",!!V(23,70,b.canonicalIssueId$))("onedevHovercardTrigger",e);A(5);D("ngIf",V(25,72,b.hasAclToEdit$));A(5);D("ngIf",b.sessionIsInternal&&V(30,74,b.isEffortEnabled$)&&!V(31,76,b.isWithinExternalComponent$));
A(3);Zf("implicit-access-box",V(33,78,b.showImplicitAccessIndicator$));A(2);D("ngIf",V(35,80,b.showImplicitAccessIndicator$));A(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",f);A(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);A(3);D("ngIf",b.enableCollaborators||0<a.collaborators.length);A(1);D("ngIf",!b.enableCollaborators&&!a.collaborators.length);A(1);D("ngIf",b.showChangelists&&V(46,82,b.isChangelistPrimary$));A(2);D("ngIf",V(48,84,b.workspaces$));A(2);D("ngIf",!b.sessionIsExternal&&(null==a.postmortems?
null:a.postmortems.length));A(1);D("ngForOf",V(51,86,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);A(2);D("ngIf",V(53,88,b.isForgottenFourPrimary$));A(2);D("ngIf",V(55,90,b.hasHiddenFields$));A(2);D("ngIf",V(57,92,b.hasHiddenFields$))}},Mab=function(a){a&1&&H(0,"edit-issue-metadata",5);a&2&&(a=N(),D("issueId",a.issueId))},Nab=function(a,b){if(a instanceof Element){var c=$l(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)}}},Oab=function(a,b){a&1&&(E(0,"h2",5),Q(1),G());a&2&&(a=b.ngIf,A(1),T("Issue ",a,""))},Pab=function(a){a&1&&H(0,"div")},Qab=function(a){a&1&&(E(0,"a",18),Q(1,"Learn more"),G())},Rab=function(a){if(a&1){var b=v();E(0,"button",19);M("click",function(){var c=w(b).ngIf,d=N(4);return z(d.editIssueService.unarchive(c))});Q(1," Unarchive ");G()}},Sab=function(a){a&1&&(E(0,"b-callout",15)(1,"b-callout-body"),Q(2,
"This issue has been archived. "),P(3,Qab,2,0,"a",16),G(),E(4,"b-callout-actions"),P(5,Rab,2,0,"button",17),U(6,"async"),G()());a&2&&(a=N(3),D("messageType","caution")("format","app")("iconOverride","archive_24px"),A(3),D("ngIf",a.activeSession.isInternalSession()),A(2),D("ngIf",V(6,5,a.id$)))},Uab=function(a){a&1&&(E(0,"a",22),Q(1,"Learn more"),G())},Vab=function(a){a&1&&(E(0,"b-callout",20)(1,"b-callout-body"),Q(2," This issue is in an archived component. "),P(3,Uab,2,0,"a",21),G()());a&2&&(a=N(3),
D("format","app")("iconOverride","archive_24px"),A(3),D("ngIf",a.activeSession.isInternalSession()))},Wab=function(a,b){a&1&&(I(0),Q(1," Reason: "),E(2,"code"),Q(3),G(),Q(4,". "),L());a&2&&(a=b.$implicit,A(3),kg(a))},Xab=function(a){a&1&&(E(0,"a",27),Q(1,"Learn more"),G())},Zab=function(a){if(a&1){var b=v();E(0,"button",28);M("click",function(){var d=w(b).ngIf,e=N(4);return z(Yab(e.editIssueService,d))});U(1,"async");U(2,"async");Q(3," Undelete ");G()}if(a&2){a=N(4);var c;D("matTooltip",null!==(c=
V(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!V(2,4,a.permissions.canUndeleteIssue$))}},$ab=function(a){a&1&&(E(0,"b-callout",23)(1,"b-callout-body"),Q(2," This issue has been deleted. "),P(3,Wab,5,1,"ng-container",24),U(4,"async"),P(5,Xab,2,0,"a",25),G(),E(6,"b-callout-actions"),P(7,Zab,4,6,"button",26),U(8,"async"),G()());if(a&2){a=N(3);var b;A(3);D("ngIf",null==(b=V(4,3,a.snapshot$))?null:b.deletionReason);A(2);D("ngIf",a.activeSession.isInternalSession());A(2);D("ngIf",V(8,5,
a.id$))}},abb=function(a,b){a&1&&(E(0,"output",37),Q(1),G());a&2&&(a=b.$implicit,A(1),T(" ",a," "))},cbb=function(a,b){a&1&&(E(0,"a",34,35),Q(2),P(3,abb,2,1,"output",36),U(4,"async"),G());if(a&2){a=b.$implicit;var c=O(1);D("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",ng(7,bbb));A(2);T(" ",a.title," ");A(1);D("ngIf",V(4,5,a.count$))}},dbb=function(a,b){a&1&&(E(0,"header",29),H(1,"b-tracker-banner",30),U(2,"async"),U(3,"async"),H(4,"issue-header",31),E(5,"nav",32),P(6,cbb,5,8,
"a",33),G()());a&2&&(a=b.$implicit,b=N(3),A(1),D("issueId",V(2,4,b.id$))("trackerId",V(3,6,b.issueTrackerId$)),A(3),D("issueId",a),A(2),D("ngForOf",b.tabs))},ebb=function(a,b){a&1&&H(0,"issue-metadata-sidebar",31);a&2&&D("issueId",b.ngIf)},fbb=function(a){a&1&&(E(0,"div",7),U(1,"async"),P(2,Sab,7,7,"b-callout",8),U(3,"async"),P(4,Vab,4,3,"b-callout",9),U(5,"async"),P(6,$ab,9,7,"b-callout",10),U(7,"async"),P(8,dbb,7,8,"header",11),U(9,"async"),E(10,"div",12)(11,"article",13),H(12,"router-outlet"),
G(),P(13,ebb,1,1,"issue-metadata-sidebar",14),U(14,"async"),G()());a&2&&(a=N(2),Zf("issue-editor-false",!V(1,7,a.permissions.hasAclToEdit$)),A(2),D("ngIf",V(3,9,a.archived$)),A(2),D("ngIf",V(5,11,a.inArchivedComponent$)),A(2),D("ngIf",V(7,13,a.deleted$)),A(2),D("ngIf",V(9,15,a.id$)),A(5),D("ngIf",V(14,17,a.id$)))},gbb=function(a){a&1&&(P(0,fbb,15,19,"div",6),U(1,"async"));if(a&2){a=N();var b=O(7);D("ngIf",!V(1,2,a.showTrackerRedirect$))("ngIfElse",b)}},hbb=function(a){a&1&&(E(0,"div",38),H(1,"b-tracker-redirect",
39),U(2,"async"),G());a&2&&(a=N(),A(1),D("issue",V(2,1,a.issue$)))},ibb=function(a){a&1&&(E(0,"div",38),H(1,"b-access-denied-metadata",40),U(2,"async"),G());a&2&&(a=N(),A(1),D("issueMetadata",V(2,1,a.issueMetadata$)))},jbb=function(a,b){a&1&&(I(0),H(1,"b-issues-table",1),L());a&2&&(a=b.ngIf,b=N(),A(1),D("issueIds",a)("menuItemFactory",b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},lbb=function(a){if(a&1){var b=v();E(0,"div",5);H(1,"img",6);E(2,"p",7);Q(3," This issue has no duplicates ");
G();E(4,"p",8);Q(5," A duplicate is an issue with similar content. ");G();E(6,"p",8);Q(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');E(8,"a",9);Q(9,"Learn more");G()();E(10,"button",10);M("click",function(){w(b);var c=N(2);return z(kbb(c))});Q(11," Add ");G()()}a&2&&(a=N(2),A(1),D("src",a.ROBOT_SLEEPING,le))},mbb=function(a){a&1&&H(0,"b-duplicates-table",15);if(a&2){a=N(2).$implicit;var b=N();D("issueId",b.lastKnownId)("duplicateIds",a)}},
nbb=function(a,b){a&1&&(I(0),E(1,"a",16),Q(2," View as search results "),G(),L());a&2&&(a=b.ngIf,A(1),D("routerLink",a.path)("queryParams",a.params))},obb=function(a){if(a&1){var b=v();E(0,"h4",11);Q(1);E(2,"button",12);M("click",function(){w(b);var d=N(2);return z(kbb(d))});Q(3," Add ");G()();P(4,mbb,1,2,"b-duplicates-table",13);E(5,"aside",14);P(6,nbb,3,2,"ng-container",1);U(7,"async");G()}if(a&2){a=N().$implicit;var c=N();A(1);T("Duplicates (",a.length,") ");A(3);D("ngIf",c.lastKnownId);A(2);D("ngIf",
V(7,3,c.dupeUrl$))}},pbb=function(a,b){a&1&&(I(0),P(1,lbb,12,1,"div",3),P(2,obb,8,5,"ng-template",null,4,Hg),L());if(a&2){a=b.$implicit;var c=O(3);A(1);D("ngIf",0===a.length)("ngIfElse",c)}},qbb=function(a){a&1&&(E(0,"aside",17),H(1,"b-spinner"),G())},rbb=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:return Ai(a,"Unexpected retention model")}},sbb=function(a){var b=vj(a,Ml,1)?{seconds:a.getRetentionPeriod().getSeconds(),
nanos:a.getRetentionPeriod().getNanos()}:null;a=vj(a,Cj,2)?{seconds:Ub(a,Cj,2).getSeconds(),nanos:Ub(a,Cj,2).getNanos()}:null;return{retentionPeriod:b,scheduledDeletionTime:a}},tbb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(),Zf("muted",a.isGreyedOut),A(1),T(" ",a.displayName,""))},ubb=function(a){if(a&1){var b=v();E(0,"a",2);M("click",function(c){w(b);var d=N();return z(d.handleClick(c))});Q(1);G()}a&2&&(a=N(),D("href",a.linkUrl,le)("rel",a.EXTERNAL_LINK_REL),A(1),T(" ",a.displayName,""))},
vbb=function(a){a&1&&H(0,"b-restricted-chip",10);a&2&&(a=N(),D("label",a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},wbb=function(a){a&1&&(E(0,"span",11),H(1,"b-actions-menu",12),G());a&2&&(a=N(),A(1),D("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},zbb=function(a){if(a&1){var b=v();E(0,"span")(1,"b-conditional-link",13);M("customHandler",function(){w(b);var c=
N();c.isRestricted()?xbb(c,!1):c.domSafe.openInNewTab(ru(c,!1));return z()});G()()}a&2&&(a=N(),bg("bv2-issue-attachment-link ",ybb(a),""),A(1),D("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",ru(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},Abb=function(a){if(a&1){var b=v();E(0,"span")(1,"b-conditional-link",13);M("customHandler",function(){w(b);var c=N();c.isRestricted()?xbb(c,!0):c.domSafe.openInNewTab(ru(c,!0));return z()});G()()}a&2&&(a=N(),bg("bv2-issue-attachment-link ",
ybb(a),""),A(1),D("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",ru(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},Bbb=function(a){a&1&&(E(0,"span",14)(1,"a",15),H(2,"mat-icon",16),G()());a&2&&(a=N(),A(1),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),le)("disableRipple",!0),A(1),D("svgIcon","help-outline"))},Cbb=function(a){a&1&&(E(0,"div",17),Q(1," You do not have access to this restricted attachment. "),E(2,"a",18),Q(3,"Learn more"),G()());a&2&&(a=N(),A(2),
D("href",a.documentationLinks.getRestrictedAccessHelpLink(),le))},Ebb=function(a){if(a&1){var b=v();E(0,"button",20,21);M("click",function(){w(b);var c=N(2);return z(Dbb(c))});Q(2," Edit ");G()}},Fbb=function(a,b){a&1&&(I(0),Q(1," on behalf of "),H(2,"b-user-display-name",22),L());a&2&&(a=b.ngIf,A(2),D("email",a)("showEmail",!1))},Gbb=function(a){a&1&&(I(0),P(1,Fbb,3,2,"ng-container",12),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.onBehalfOfEmail$)))},Hbb=function(a,b){if(a&1){var c=v();
E(0,"a",23);M("click",function(d){var e=w(c).$implicit;N(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return z()});Q(1);G()}a&2&&(a=b.$implicit,b=N().$implicit,N(),D("routerLinkObj",tl(a,{comment:1})),Uf("aria-label","Comment number"+b.commentNumber),A(1),T(" #",b.commentNumber,""))},Jbb=function(a){a&1&&(I(0),E(1,"span",24),Q(2," \u2022 Edited"),G(),L());if(a&2){a=N().$implicit;var b=N();A(1);D("matTooltip",Ibb(b,a))}},Kbb=function(a){a&1&&(I(0),E(1,"p",25),Q(2," Description has been deleted. "),
G(),L())},Lbb=function(a){if(a&1){var b=v();E(0,"b-restricted-comment-placeholder",28);M("onConfirm",function(){w(b);var c=N().ngIf,d=N(3).$implicit,e=N();return z(e.loadRestrictedComment(c,d))});U(1,"async");G()}a&2&&(a=N(5),D("disabled",!V(1,1,a.mayReadPii$)))},Mbb=function(a){a&1&&(I(0),P(1,Lbb,2,3,"b-restricted-comment-placeholder",27),U(2,"async"),L());a&2&&(a=N(4),A(1),D("ngIf",V(2,1,a.shouldShowRestrictedPlaceholder$)))},Nbb=function(a){a&1&&(I(0),P(1,Mbb,3,3,"ng-container",12),U(2,"async"),
L());a&2&&(a=N(3),A(1),D("ngIf",V(2,1,a.id$)))},Obb=function(a,b){a&1&&(H(0,"b-note-container",31),U(1,"async"));if(a&2){a=b.$implicit;b=N().ngIf;var c=N(4);D("issueId",b)("issueAccessLevel",V(1,4,c.accessLevel$))("note",a)("formattingMode",c.formattingMode)}},Pbb=function(a){a&1&&(I(0),P(1,Obb,2,6,"b-note-container",30),U(2,"async"),L());if(a&2){a=N(3).$implicit;var b=N();A(1);D("ngIf",""!==a.unlinkifiedComment&&V(2,1,b.firstNote$))}},Qbb=function(a){a&1&&(I(0),Q(1," Add one."),L())},Rbb=function(a){a&
1&&(E(0,"p",32),Q(1," No description yet."),P(2,Qbb,2,0,"ng-container",12),G());a&2&&(a=N(4),A(2),D("ngIf",a.canEditComment()))},Sbb=function(a){a&1&&(P(0,Pbb,3,3,"ng-container",12),U(1,"async"),P(2,Rbb,3,1,"p",29));if(a&2){a=N(2).$implicit;var b=N();D("ngIf",V(1,2,b.id$));A(2);D("ngIf",""===a.unlinkifiedComment)}},Tbb=function(a){a&1&&(P(0,Nbb,3,3,"ng-container",17),U(1,"async"),P(2,Sbb,3,4,"ng-template",null,26,Hg));if(a&2){var b=O(3);a=N(2);D("ngIf",V(1,2,a.isRedacted$))("ngIfElse",b)}},Ubb=function(a,
b){a&1&&(I(0),H(1,"b-attachment-viewer",36),L());if(a&2){a=b.ngIf;b=N().$implicit;var c=N(3);A(1);D("issueId",a)("attachment",b)("attachmentUploader",c.getUserEmailIfAvailable())}},Vbb=function(a,b){a&1&&(E(0,"div",35),P(1,Ubb,2,3,"ng-container",12),U(2,"async"),G());a&2&&(a=b.$implicit,b=N(3),hg("id","attachment",a.attachmentId,""),A(1),D("ngIf",V(2,2,b.id$)))},Wbb=function(a){a&1&&(E(0,"div",33),P(1,Vbb,3,4,"div",34),G());a&2&&(a=N().$implicit,A(1),D("ngForOf",a.attachments))},Ybb=function(a,b){a&
1&&(E(0,"div",2),H(1,"mat-icon",3),E(2,"div",4)(3,"div",5)(4,"div",6)(5,"h4",7),Q(6,"Description"),G(),P(7,Ebb,3,0,"button",8),H(8,"b-user-display",9),E(9,"onedev-hovercard",null,10),H(11,"b-issue-person-card",11),G(),Q(12," created issue "),P(13,Gbb,3,3,"ng-container",12),U(14,"async"),P(15,Hbb,2,3,"a",13),U(16,"async"),P(17,Jbb,3,1,"ng-container",12),U(18,"async"),G(),E(19,"div"),H(20,"b-formatted-date-time",14)(21,"b-actions-menu",15,16),U(23,"async"),G()(),P(24,Kbb,3,0,"ng-container",17),U(25,
"async"),P(26,Tbb,4,4,"ng-template",null,18,Hg),P(28,Wbb,2,1,"div",19),G()());if(a&2){a=b.$implicit;var c=O(10),d=O(27);b=N();var e;A(7);D("ngIf",b.canEditComment());A(1);D("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);A(3);D("email",b.getUserEmailIfAvailable());A(2);D("ngIf",V(14,13,b.isAuthorNotReporter$));A(2);D("ngIf",a.commentNumber&&V(16,15,b.id$));A(2);D("ngIf",V(18,17,b.isShowCommentHistoryActionInMenu$));A(3);D("timestamp",a.modifiedDate);A(1);D("buttonLabel","Description actions")("menuItems",
null!==(e=V(23,19,b.commentActionMenuItems$))&&void 0!==e?e:ng(23,Xbb));A(3);D("ngIf",V(25,21,b.isDeleted$))("ngIfElse",d);A(4);D("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},Zbb=function(a){a&1&&H(0,"b-spinner")},$bb=function(a){return(null==a?void 0:a.emailAddress)||(null==a?void 0:a.obfuscatedEmailAddress)||""},acb=function(a){a&1&&H(0,"mat-icon",3)},bcb=function(a){a&1&&H(0,"b-spinner")},ccb=function(a,b){a&1&&(E(0,"span",11),Q(1," of "),E(2,"a",12),Q(3),G()());if(a&2){a=
b.$implicit;N(2);var c=O(12);A(2);hg("routerLink","/issues/",a,"");D("onedevHovercardTrigger",c);A(1);T(" ",a," ")}},dcb=function(a,b){a&1&&(E(0,"div")(1,"div",9),U(2,"async"),Q(3),G(),P(4,ccb,4,3,"span",10),U(5,"async"),G());a&2&&(a=b.$implicit,b=N(),A(1),bg("chippy ",V(2,6,b.statusCssClass$),""),D("title",b.STATUS_JS_FULL_TEXT[a]),A(2),T(" ",b.STATUS_JS_TERSE[a]," "),A(1),D("ngIf",V(5,8,b.canonicalId$)))},ecb=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.$implicit,b=N(),bg("b-chip squared issue-type-",
a,""),A(1),T(" ",b.ISSUE_TYPE_TEXT[a]," "))},gcb=function(a,b){if(a&1){var c=v();E(0,"b-hotlist-chip-smart",17);M("removeHotlist",function(){var d=w(c).$implicit,e=N(2);return z(fcb(e,d))});G()}a&2&&D("id",b.$implicit)},icb=function(a,b){if(a&1){var c=v();E(0,"div",13)(1,"button",14);M("onHotkey",function(){w(c);var d=N();return z(hcb(d))})("click",function(){w(c);var d=N();return z(hcb(d))});H(2,"mat-icon",15);Q(3);U(4,"async");G();P(5,gcb,1,1,"b-hotlist-chip-smart",16);G()}a&2&&(a=b.$implicit,b=
N(),A(1),D("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),A(2),T(" ",V(4,3,b.textOfHotlistBtn$)," "),A(2),D("ngForOf",a))},jcb=function(a){a&1&&(E(0,"div",18),H(1,"smart-full-history-btn"),G())},kcb=function(a){a&1&&(H(0,"b-issue-card",19,20),U(2,"async"));if(a&2){var b=O(1);a=N();D("onedevIsHovercardReady",b.init)("issueId",V(2,2,a.canonicalId$))}},lcb=function(a){return null==a?void 0:a.snapshot[0].hotlistId},ncb=function(a){a&1&&(E(0,"onedev-feature-tooltip-controller",8)(1,"onedev-feature-tooltip",9)(2,
"p",10),Q(3,"Comment Filtering and Sorting"),G(),Q(4," Filter comments based on author and sort comments based on creation time "),G()());a&2&&(a=N(),D("showTooltip$",a.showFeatureTooltip$),A(1),D("customPositions",pg(3,mcb,a.TOOLTIP_POSITIONS.TOP_CENTER_LEFT,a.TOOLTIP_POSITIONS.BOTTOM_CENTER_LEFT))("tooltipId",a.COMMENT_THREAD_ACTIONS_FEATURE_TOOLTIP_ID))},ocb=function(a,b){a&1&&(E(0,"mat-option",14)(1,"div",15),Q(2),G(),E(3,"div",16),Q(4),G()());a&2&&(a=b.$implicit,D("value",a),A(2),kg(a.name),
A(2),kg(a.description))},pcb=function(a){if(a&1){var b=v();E(0,"mat-form-field",11)(1,"mat-select",12);M("valueChange",function(c){w(b);var d=N();return z(d.selectedFilter=c)})("selectionChange",function(c){w(b);var d=N();c=c.value;d.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(Ef(d.destroyed$)).subscribe();Mo(d.analytics,Aq.EDIT_ISSUE,"click",c.commentFilterType);return z()});E(2,"mat-select-trigger");Q(3);G();P(4,ocb,5,3,"mat-option",13);G()()}a&2&&(a=N(),
A(1),D("value",a.selectedFilter),A(2),kg(null==a.selectedFilter?null:a.selectedFilter.displayName),A(1),D("ngForOf",a.filters))},qcb=function(a){a&1&&(I(0),H(1,"mat-icon",17),E(2,"span"),Q(3,"Oldest first"),G(),L())},rcb=function(a){a&1&&(I(0),H(1,"mat-icon",18),E(2,"span"),Q(3,"Newest first"),G(),L())},vcb=function(a){switch(a){case "FULL_HISTORY":return scb;case "ALL_COMMENTS":return su;case "HUMAN_ONLY":return tcb;case "TEAM_AND_ASSIGNEE":return ucb;default:return su}},xcb=function(a){su.description=
a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";return wcb},ycb=function(a){a&1&&(I(0),Q(1,", "),H(2,"br"),L())},zcb=function(a){a&1&&(I(0),Q(1," reacted"),L())},Acb=function(a,b){a&1&&(I(0),E(1,"div"),Q(2),P(3,ycb,3,0,"ng-container",3),P(4,zcb,2,0,"ng-container",3),U(5,"async"),G(),L());if(a&2){a=b.$implicit;b=b.last;var c=N();A(2);T(" ",a,"");A(1);D("ngIf",!b);A(1);D("ngIf",!V(5,3,c.isOverflowReactionCount$)&&b)}},Bcb=function(a){if(a&1){var b=v();E(0,"span");Q(1," and ");
E(2,"button",4);M("click",function(){w(b);var c=N();if(c.commentNumber&&c.issueId){var d,e,f=null!=(e=null==(d=nl(c.reactionState$))?void 0:d.type)?e:"REACTION_TYPE_UNSPECIFIED";c.matDialogService.open(tu,{width:"560px",data:{commentNumber:c.commentNumber,issueId:c.issueId,reactionType:f}})}return z()});Q(3);U(4,"async");G();Q(5," reacted ");G()}a&2&&(a=N(),A(3),T(" ",V(4,1,a.overflowReactionCount$)," more "))},Ccb=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N(2),A(1),T(" by ",Ql(a.event.lastCommentEditorUser),
""))},Dcb=function(a){a&1&&(I(0)(1),Q(2,"Message last modified"),L(),P(3,Ccb,2,1,"ng-container",0),I(4),Q(5," on "),H(6,"b-formatted-date-time",1),L()());a&2&&(a=N(),A(3),D("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),A(3),D("timestamp",a.event.commentLastModifiedAtDate))},Ecb=function(a){a&1&&H(0,"b-user-email",5);a&2&&(a=N().$implicit,D("email",a.text)("withProfile",!0))},Fcb=function(a){a&1&&(E(0,"b-issue-reference-widget",6),I(1),Q(2),L(),G());if(a&2){a=N().$implicit;var b=N();
D("href",ql(a.text))("issueId",b.getIssueId(a));A(2);kg(a.text)}},Gcb=function(a){a&1&&(I(0),Q(1),L());a&2&&(a=N().$implicit,A(1),kg(a.text))},Hcb=function(a,b){a&1&&(I(0)(1,1),P(2,Ecb,1,2,"b-user-email",2),P(3,Fcb,3,3,"b-issue-reference-widget",3),P(4,Gcb,2,1,"ng-container",4),L()());a&2&&(a=b.$implicit,A(1),D("ngSwitch",a.tag),A(1),D("ngSwitchCase","user"),A(1),D("ngSwitchCase","bug"))},Icb=function(a){a&1&&(I(0),H(1,"b-component-card",3,4),L());if(a&2){var b=O(2);a=N();A(1);D("onedevIsHovercardReady",
b.init)("componentId",a.id)}},Jcb=function(a){a&1&&(E(0,"span"),Q(1),G());if(a&2){a=N(5);var b;A(1);kg(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},Kcb=function(a){a&1&&(E(0,"label"),P(1,Jcb,2,1,"span",11),Q(2,":\u200b "),G());if(a&2){a=N(4);var b=O(5);A(1);D("ngIf",a.effortEnabled)("ngIfElse",b)}},Lcb=function(a){a&1&&(E(0,"label"),Q(1),G());a&2&&(a=N(3).$implicit,A(1),T("",a.displayName,":\u200b"))},Mcb=function(a){a&1&&(E(0,"span"),H(1,"b-user-display-name",14),G());a&2&&(a=
N().$implicit,A(1),D("email",a)("showEmail",!0))},Ncb=function(a){a&1&&(I(0),H(1,"plain-component-path",15),L());a&2&&(a=N(4).$implicit,A(1),D("id",a.oldValue))},Ocb=function(a){a&1&&H(0,"b-formatted-date-time",17);if(a&2){a=N(2).$implicit;var b=N(4);D("timestamp",1E3*b.asNumber(a))}},Pcb=function(a){a&1&&(E(0,"span"),Q(1,"[Issue creation date]"),G())},Qcb=function(a){a&1&&(E(0,"span"),P(1,Ocb,1,1,"b-formatted-date-time",16),P(2,Pcb,2,0,"span",5),G());a&2&&(a=N().$implicit,A(1),D("ngIf","<none>"!==
a),A(1),D("ngIf","<none>"===a))},Rcb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),kg(a))},Scb=function(a){a&1&&(I(0),P(1,Mcb,2,2,"span",5),P(2,Ncb,2,1,"ng-container",5),P(3,Qcb,3,2,"span",5),P(4,Rcb,2,1,"span",5),Q(5," \u00a0 "),H(6,"span",13),Q(7," \u00a0 "),L());a&2&&(a=N(3).$implicit,A(1),D("ngIf",a.isUser),A(1),D("ngIf","component"===a.name),A(1),D("ngIf","sloSnoozeUntil"==a.name),A(1),D("ngIf",!a.isUser&&"component"!==a.name&&"sloSnoozeUntil"!==a.name))},Tcb=function(a){a&
1&&H(0,"b-user-display-name",14);a&2&&(a=N().$implicit,D("email",a)("showEmail",!0))},Ucb=function(a){a&1&&(E(0,"span"),H(1,"plain-component-path",15),G());a&2&&(a=N(4).$implicit,A(1),D("id",a.newValue))},Vcb=function(a){a&1&&H(0,"b-formatted-date-time",17);if(a&2){a=N(2).$implicit;var b=N(4);D("timestamp",1E3*b.asNumber(a))}},Wcb=function(a){a&1&&(E(0,"span"),Q(1,"[Issue creation date]"),G())},Xcb=function(a){a&1&&(E(0,"span"),P(1,Vcb,1,1,"b-formatted-date-time",16),P(2,Wcb,2,0,"span",5),G());a&
2&&(a=N().$implicit,A(1),D("ngIf","<none>"!==a),A(1),D("ngIf","<none>"===a))},Zcb=function(a){a&1&&(E(0,"span",20),Q(1),G());if(a&2){a=N().$implicit;var b=N(3).$implicit;D("ngClass",og(2,Ycb,b.oldValue&&"title"==b.name));A(1);kg(a)}},$cb=function(a){a&1&&(I(0),P(1,Tcb,1,2,"b-user-display-name",18),P(2,Ucb,2,1,"span",5),P(3,Xcb,3,2,"span",5),P(4,Zcb,2,4,"span",19),L());a&2&&(a=N(3).$implicit,A(1),D("ngIf",a.isUser),A(1),D("ngIf","component"===a.name),A(1),D("ngIf","sloSnoozeUntil"===a.name),A(1),D("ngIf",
!a.isUser&&"component"!=a.name&&"sloSnoozeUntil"!=a.name))},adb=function(a){a&1&&(E(0,"div",10),P(1,Kcb,3,2,"label",11),P(2,Lcb,2,1,"ng-template",null,12,Hg),P(4,Scb,8,4,"ng-container",5),P(5,$cb,5,4,"ng-container",5),G());if(a&2){var b=O(3);a=N(2).$implicit;A(1);D("ngIf","effort"===a.name)("ngIfElse",b);A(3);D("ngIf",a.oldValue);A(1);D("ngIf",a.newValue)}},bdb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},cdb=function(a,b){a&1&&(E(0,"span"),H(1,"b-user-display-name",14),P(2,bdb,2,0,"span",5),G());
a&2&&(a=b.$implicit,b=b.last,A(1),D("email",a)("showEmail",!0),A(1),D("ngIf",!b))},ddb=function(a){a&1&&(E(0,"span"),P(1,cdb,3,3,"span",21),G());a&2&&(a=N(4).$implicit,A(1),D("ngForOf",a.added))},edb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},fdb=function(a,b){a&1&&(E(0,"span")(1,"span"),Q(2),G(),P(3,edb,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,A(2),kg(a),A(1),D("ngIf",!b))},gdb=function(a){a&1&&(E(0,"span"),P(1,fdb,4,2,"span",21),G());a&2&&(a=N(4).$implicit,A(1),D("ngForOf",a.added))},
hdb=function(a){a&1&&(E(0,"div")(1,"label"),Q(2),G(),P(3,ddb,2,1,"span",5),P(4,gdb,2,1,"span",5),G());a&2&&(a=N(3).$implicit,A(2),T("+",a.displayName,":\u200b"),A(1),D("ngIf",a.isUser),A(1),D("ngIf",!a.isUser))},idb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},jdb=function(a,b){a&1&&(E(0,"span"),H(1,"b-user-display-name",14),P(2,idb,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,A(1),D("email",a)("showEmail",!0),A(1),D("ngIf",!b))},kdb=function(a){a&1&&(E(0,"span"),P(1,jdb,3,3,"span",21),G());a&
2&&(a=N(4).$implicit,A(1),D("ngForOf",a.removed))},ldb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},mdb=function(a,b){a&1&&(E(0,"span")(1,"span"),Q(2),G(),P(3,ldb,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,A(2),kg(a),A(1),D("ngIf",!b))},ndb=function(a){a&1&&(E(0,"span"),P(1,mdb,4,2,"span",21),G());a&2&&(a=N(4).$implicit,A(1),D("ngForOf",a.removed))},odb=function(a){a&1&&(E(0,"div")(1,"label"),Q(2),G(),P(3,kdb,2,1,"span",5),P(4,ndb,2,1,"span",5),G());a&2&&(a=N(3).$implicit,A(2),T("-",a.displayName,
":\u200b"),A(1),D("ngIf",a.isUser),A(1),D("ngIf",!a.isUser))},pdb=function(a){a&1&&(E(0,"div",10),P(1,hdb,5,3,"div",5),P(2,odb,5,3,"div",5),G());if(a&2){a=N(2).$implicit;var b=N();A(1);D("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));A(1);D("ngIf",a.removed&&a.removed.length&&b.isStringArray(a.removed))}},qdb=function(a){a&1&&cg(0)},sdb=function(a,b){a&1&&(E(0,"span"),P(1,qdb,1,0,"ng-container",22),G());if(a&2){a=b.$implicit;b=b.last;var c=N(4).$implicit;N();var d=O(3);A(1);D("ngTemplateOutlet",
d)("ngTemplateOutletContext",qg(rdb,c,a,b))}},tdb=function(a){a&1&&(E(0,"div")(1,"label"),Q(2),G(),P(3,sdb,2,6,"span",21),G());a&2&&(a=N(3).$implicit,A(2),T("+",a.displayName,":\u200b"),A(1),D("ngForOf",a.added))},udb=function(a){a&1&&cg(0)},vdb=function(a,b){a&1&&(E(0,"span"),P(1,udb,1,0,"ng-container",22),G());if(a&2){a=b.$implicit;b=b.last;var c=N(4).$implicit;N();var d=O(3);A(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",qg(rdb,c,a,b))}},wdb=function(a){a&1&&(E(0,"div")(1,"label"),Q(2),
G(),P(3,vdb,2,6,"span",21),G());a&2&&(a=N(3).$implicit,A(2),T("-",a.displayName,":\u200b"),A(1),D("ngForOf",a.removed))},xdb=function(a){a&1&&(E(0,"div",10),P(1,tdb,4,2,"div",5),P(2,wdb,4,2,"div",5),G());if(a&2){a=N(2).$implicit;var b=N();A(1);D("ngIf",a.added&&a.added.length&&b.isLinkedItemArray(a.added));A(1);D("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},ydb=function(a){a&1&&H(0,"b-formatted-date-time",17);a&2&&(a=N().$implicit,D("timestamp",a))},zdb=function(a){a&1&&(E(0,
"span"),Q(1," - "),G())},Adb=function(a,b){a&1&&(E(0,"span"),H(1,"b-formatted-date-time",17),P(2,zdb,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,A(1),D("timestamp",a),A(1),D("ngIf",!b))},Bdb=function(a){a&1&&(E(0,"span"),P(1,Adb,3,2,"span",21),G());a&2&&(a=N(4).$implicit,A(1),D("ngForOf",a.oldValue.split(", ")))},Cdb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),kg(a))},Ddb=function(a){a&1&&(I(0),P(1,ydb,1,1,"b-formatted-date-time",16),P(2,Bdb,2,1,"span",5),P(3,Cdb,2,1,"span",
5),Q(4," \u00a0 "),H(5,"span",13),Q(6," \u00a0 "),L());if(a&2){a=N(3).$implicit;var b=N();A(1);D("ngIf",uu(b,a,"oldValue"));A(1);D("ngIf",vu(b,a,"oldValue"));A(1);D("ngIf",!uu(b,a,"oldValue")&&!vu(b,a,"oldValue"))}},Edb=function(a){a&1&&H(0,"b-formatted-date-time",17);a&2&&(a=N().$implicit,D("timestamp",a))},Fdb=function(a){a&1&&(E(0,"span"),Q(1," - "),G())},Gdb=function(a,b){a&1&&(E(0,"span"),H(1,"b-formatted-date-time",17),P(2,Fdb,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,A(1),D("timestamp",
a),A(1),D("ngIf",!b))},Hdb=function(a){a&1&&(E(0,"span"),P(1,Gdb,3,2,"span",21),G());a&2&&(a=N(4).$implicit,A(1),D("ngForOf",a.newValue.split(", ")))},Idb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),kg(a))},Jdb=function(a){a&1&&(I(0),P(1,Edb,1,1,"b-formatted-date-time",16),P(2,Hdb,2,1,"span",5),P(3,Idb,2,1,"span",5),L());if(a&2){a=N(3).$implicit;var b=N();A(1);D("ngIf",uu(b,a,"newValue"));A(1);D("ngIf",vu(b,a,"newValue"));A(1);D("ngIf",!uu(b,a,"newValue")&&!vu(b,a,"newValue"))}},
Kdb=function(a){a&1&&(E(0,"div",10)(1,"label"),Q(2),G(),P(3,Ddb,7,3,"ng-container",5),P(4,Jdb,4,3,"ng-container",5),G());if(a&2){a=N(2).$implicit;var b=N();A(1);Uf("title",b.customFieldName(a));A(1);T("",b.customFieldName(a),":\u200b");A(1);D("ngIf",a.oldValue);A(1);D("ngIf",a.newValue)}},Ldb=function(a){a&1&&(E(0,"span",26),Q(1,"Updated"),G())},Mdb=function(a){a&1&&(E(0,"span"),Q(1,"Deleted"),G())},Ndb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N().$implicit,A(1),T("Edited (unknown status '",
a.status,"')"))},Odb=function(a,b){a&1&&(I(0)(1,7),P(2,Ldb,2,0,"span",23),P(3,Mdb,2,0,"span",24),P(4,Ndb,2,1,"span",25),L()());a&2&&(a=b.$implicit,A(1),D("ngSwitch",a.status),A(1),D("ngSwitchCase","ACTIVE"),A(1),D("ngSwitchCase","DELETED"))},Pdb=function(a){a&1&&(E(0,"div",10)(1,"label"),Q(2),G(),P(3,Odb,5,3,"ng-container",5),G());a&2&&(a=N(2).$implicit,A(2),T("",a.displayName,":\u200b"),A(1),D("ngIf",null==a.statusUpdateDiff?null:a.statusUpdateDiff.entityStatus))},Qdb=function(a){a&1&&(E(0,"div",
10)(1,"label"),Q(2),G(),E(3,"pre",27),Q(4),U(5,"json"),G()());a&2&&(a=N(2).$implicit,A(2),T("",a.displayName,":\u200b"),A(2),kg(V(5,2,a)))},Rdb=function(a){a&1&&(I(0),H(1,"b-formatted-date-time",6),I(2,7),P(3,adb,6,4,"div",8),P(4,pdb,3,2,"div",8),P(5,xdb,3,2,"div",8),P(6,Kdb,5,4,"div",8),P(7,Pdb,4,2,"div",8),P(8,Qdb,6,4,"div",9),L()());a&2&&(a=N().$implicit,A(1),D("timestamp",a.timestamp),A(1),D("ngSwitch",!0),A(1),D("ngSwitchCase","SINGLE_VALUE"===a.type),A(1),D("ngSwitchCase","COLLECTION"===a.type||
"USER_COLLECTION"===a.type),A(1),D("ngSwitchCase","LINKED_COLLECTION"===a.type),A(1),D("ngSwitchCase","CUSTOM_FIELD"===a.type),A(1),D("ngSwitchCase","STATUS_UPDATE"===a.type))},Sdb=function(a,b){a&1&&(E(0,"div",4),P(1,Rdb,9,7,"ng-container",5),G());a&2&&(a=b.$implicit,b=N(),A(1),D("ngIf","sloSnoozeUntil"===(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},Tdb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},Udb=function(a){a&1&&(E(0,"span")(1,"b-issue-reference-widget",29),Q(2),G(),P(3,
Tdb,2,0,"span",5),G());if(a&2){a=N().$implicit;var b=N(),c=b.change;b=b.isLast;A(1);D("href",c.href)("issueId",a);A(1);kg(a);A(1);D("ngIf",!b)}},Vdb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},Wdb=function(a){a&1&&(I(0),H(1,"hotlist-link",15),P(2,Vdb,2,0,"span",5),L());if(a&2){a=N(2).$implicit;var b=N().isLast;A(1);D("id",a);A(1);D("ngIf",!b)}},Xdb=function(a){a&1&&(E(0,"span"),Q(1,", "),G())},Ydb=function(a){a&1&&(E(0,"a",31),Q(1),G(),P(2,Xdb,2,0,"span",5));if(a&2){a=N(2).$implicit;var b=N(),c=
b.isLast;D("href",b.change.href,le);A(1);kg(a);A(1);D("ngIf",!c)}},Zdb=function(a){a&1&&(P(0,Wdb,3,2,"ng-container",11),P(1,Ydb,3,3,"ng-template",null,30,Hg));if(a&2){var b=O(2);a=N(2).diff;var c=N();D("ngIf",c.isHotlistDiff(a))("ngIfElse",b)}},$db=function(a){a&1&&(I(0),P(1,Udb,4,4,"span",11),P(2,Zdb,3,2,"ng-template",null,28,Hg),L());if(a&2){var b=O(3);a=N().diff;var c=N();A(1);D("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},aeb=function(a,b){a&1&&P(0,$db,4,2,"ng-container",5);a&2&&D("ngIf",b.change.value)},
beb=function(a){a&1&&(E(0,"span"),Q(1,"Estimated Effort (disabled)"),G())},ceb=function(a,b){a&1&&(H(0,"b-user-membership-chip",29),U(1,"async"));if(a&2){a=b.ngIf;b=N(2);var c;D("user",b.event.userPerformingActionUser)("email",a)("teamId",null!==(c=V(1,3,b.teamId$))&&void 0!==c?c:"")}},deb=function(a){a&1&&H(0,"b-user-display",30);a&2&&(a=N(2),D("model",a.event.userPerformingActionUser))},eeb=function(a){a&1&&cg(0)},feb=function(a){a&1&&(I(0),E(1,"span",31),P(2,eeb,1,0,"ng-container",32),G(),E(3,
"onedev-hovercard",null,33),H(5,"b-issue-person-card",34),G(),L());if(a&2){var b=O(4);N();var c=O(11);a=N();A(1);D("onedevHovercardTrigger",b);A(1);D("ngTemplateOutlet",c);A(3);D("email",a.getUserEmailIfAvailable())}},geb=function(a){a&1&&(E(0,"span",35),Q(1),G());a&2&&(a=N(2),A(1),T(" <",Ql(a.event.userPerformingActionUser),"> "))},heb=function(a){if(a&1){var b=v();E(0,"span")(1,"a",36);M("click",function(c){w(b);var d=N(2);return z(d.scrollCommentIntoView(c,d.event.commentNumber))});Q(2);G()()}a&
2&&(a=N(2),A(1),D("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),Uf("aria-label","Comment number"+a.event.commentNumber),A(1),T(" #",a.event.commentNumber,""))},ieb=function(a){if(a&1){var b=v();E(0,"button",37);M("click",function(){w(b);var c=N(2);return z(wu(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});G()}},jeb=function(a){a&1&&H(0,"b-restricted-chip",38);if(a&2){a=N(2);var b,c;D("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)}},leb=function(a){a&1&&(H(0,"b-actions-menu",39,40),U(2,"async"));if(a&2){a=N(2);var b;D("buttonLabel","Comment actions")("menuItems",null!==(b=V(2,2,a.commentActionMenuItems$))&&void 0!==b?b:ng(4,keb))}},meb=function(a){a&1&&(E(0,"div",41),H(1,"b-tagged-text",42),G());a&2&&(a=N(2),A(1),D("texts",a.event.taggedSummary))},neb=function(a){a&1&&(H(0,"b-issue-event-details",43),U(1,"async"),U(2,"async"),
U(3,"async"));if(a&2){a=N().ngIf;var b=N(),c,d;D("diffs",null!==(c=V(1,4,b.preEventDiffs$))&&void 0!==c?c:ng(10,keb))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=V(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!V(3,8,b.isEffortEnabled$))}},oeb=function(a){a&1&&(E(0,"div",44),Q(1," Comment has been deleted. "),G())},peb=function(a){if(a&1){var b=v();E(0,"b-restricted-comment-placeholder",45);M("onConfirm",function(){w(b);var c=N(2);return z(c.loadRestrictedComment())});U(1,
"async");G()}a&2&&(a=N(2),D("disabled",!V(1,1,a.mayReadPii$)))},qeb=function(a){a&1&&H(0,"b-note-container",46);a&2&&(a=N(2),D("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},reb=function(a){if(a&1){var b=v();I(0);H(1,"b-summarized-note-container",46);E(2,"button",47);M("click",function(){w(b);var c=N(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return z()});H(3,"mat-icon",48);Q(4,"Expand details");G();L()}a&
2&&(a=N(2),A(1),D("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},seb=function(a){if(a&1){var b=v();I(0);E(1,"button",47);M("click",function(){w(b);var c=N(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return z()});H(2,"mat-icon",49);Q(3,"Collapse details");G();L()}},teb=function(a){a&1&&H(0,"b-formatted-date-time",50);a&2&&(a=N(2),D("timestamp",a.event.modifiedDate))},ueb=function(a){a&1&&H(0,"mat-icon",
57)},veb=function(a){a&1&&H(0,"mat-icon",58)},web=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.ngIf,A(1),kg(a))},Beb=function(a){if(a&1){var b=v();E(0,"div",51)(1,"button",52);M("click",function(){w(b);var d=N(2);return z(xeb(d))});U(2,"async");U(3,"async");U(4,"async");P(5,ueb,1,0,"mat-icon",53);P(6,veb,1,0,"mat-icon",54);P(7,web,2,1,"span",0);U(8,"async");G();E(9,"onedev-hovercard",null,55);H(11,"b-comment-reaction-responders-card",56);G()()}if(a&2){var c=O(10);a=N(2);A(1);D("ariaLabel",
yeb(a,a.ReactionType.UPVOTE))("ngClass",og(20,zeb,V(2,12,a.noUpvoteReactions$)))("disabled",!V(3,14,a.hasAclToUpvoteReact$)||a.commentReactionIsSaving)("onedevHovercardTrigger",c)("onedevHovercardConfig",a.commentReactionsHovercardConfig)("onedevHovercardActive",!V(4,16,a.noUpvoteReactions$));A(4);D("ngIf",!Aeb(a,a.ReactionType.UPVOTE));A(1);D("ngIf",Aeb(a,a.ReactionType.UPVOTE));A(1);D("ngIf",V(8,18,a.upvoteReactionCountDisplayString$));A(4);D("reactionState",null==a.event.commentReactions?null:
a.event.commentReactions.get(a.ReactionType.UPVOTE))("issueId",a.issueId)("commentNumber",a.event.commentNumber)}},Ceb=function(a){if(a&1){var b=v();E(0,"a",62);M("click",function(){w(b);var c=N(3);return z(c.showCommentHistoryDialog(c.event.commentNumber))});Q(1," Show History ");G()}},Deb=function(a){a&1&&(E(0,"div",59),H(1,"b-comment-edit-timestamp-message",60),P(2,Ceb,2,0,"a",61),G());a&2&&(a=N(2),A(1),D("event",a.event),A(1),D("ngIf",a.commentHistoryEnabled))},Eeb=function(a){a&1&&(H(0,"b-issue-event-details",
43),U(1,"async"),U(2,"async"),U(3,"async"));if(a&2){a=N().ngIf;var b=N(),c,d;D("diffs",null!==(c=V(1,4,b.postEventDiffs$))&&void 0!==c?c:ng(10,keb))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=V(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!V(3,8,b.isEffortEnabled$))}},Feb=function(a,b){a&1&&(E(0,"div",65),H(1,"b-attachment-viewer",66),G());a&2&&(a=b.$implicit,b=N(3),hg("id","attachment",a.attachmentId,""),A(1),D("issueId",b.issueId)("attachment",a)("attachmentUploader",
b.getUserEmailIfAvailable()))},Geb=function(a){a&1&&(E(0,"div",63),P(1,Feb,2,4,"div",64),G());a&2&&(a=N(2),A(1),D("ngForOf",a.event.attachments))},Heb=function(a){a&1&&(I(0),E(1,"div",1),H(2,"b-user-image",2),G(),E(3,"div",3)(4,"h4",4),U(5,"async"),P(6,ceb,2,5,"b-user-membership-chip",5),P(7,deb,1,1,"ng-template",null,6,Hg),P(9,feb,6,3,"ng-container",7),P(10,geb,2,1,"ng-template",null,8,Hg),P(12,heb,3,3,"span",0),P(13,ieb,1,0,"button",9),U(14,"async"),E(15,"span",10),P(16,jeb,1,3,"b-restricted-chip",
11),H(17,"b-formatted-date-time",12),P(18,leb,3,5,"b-actions-menu",13),G()(),H(19,"div",14),P(20,meb,2,1,"div",15),P(21,neb,4,11,"b-issue-event-details",16),U(22,"async"),H(23,"div",14),E(24,"div",17)(25,"div",18),P(26,oeb,2,0,"div",19),P(27,peb,2,3,"b-restricted-comment-placeholder",20),E(28,"div",21),P(29,qeb,1,4,"b-note-container",22),P(30,reb,5,4,"ng-container",0),P(31,seb,4,0,"ng-container",0),G(),E(32,"div",23)(33,"div",24),P(34,teb,1,1,"b-formatted-date-time",25),U(35,"async"),G(),P(36,Beb,
12,22,"div",26),G()(),P(37,Deb,3,2,"div",27),G(),P(38,Eeb,4,11,"b-issue-event-details",16),U(39,"async"),H(40,"div",14),P(41,Geb,2,1,"div",28),H(42,"div",14),G(),L());if(a&2){var b=O(8),c=O(11);a=N();A(2);D("email",a.getUserEmailIfAvailable());A(2);Uf("aria-label",V(5,23,a.ariaLabelHeading$));A(2);D("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);A(3);D("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",c);A(3);D("ngIf",a.isCommentEvent(a.event));A(1);
D("ngIf",V(14,25,a.canEditComment$)&&!xu(a));A(3);D("ngIf",a.isRestricted());A(1);D("timestamp",a.event.modifiedDate);A(1);D("ngIf",a.isCommentEvent(a.event));A(2);D("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);A(1);D("ngIf","FULL_HISTORY"===V(22,27,a.showFullHistoryFromFiltering$));A(5);D("ngIf",a.isDeleted());A(1);D("ngIf",xu(a)&&!a.isDeleted());A(2);D("ngIf",yu(a)&&!xu(a)&&!a.isDeleted()&&!a.isSummarized);A(1);D("ngIf",yu(a)&&!xu(a)&&!a.isDeleted()&&a.isSummarized);A(1);D("ngIf",
a.wasSummarized&&!a.isSummarized);A(3);D("ngIf",V(35,29,a.isShowingCommentTimestamp$));A(2);D("ngIf",a.commentReactionsEnabled&&yu(a)&&!a.isDeleted()&&!xu(a));A(1);D("ngIf",a.isCommentEvent(a.event)&&0<(a.event.commentVersion||0)&&!xu(a));A(1);D("ngIf","FULL_HISTORY"===V(39,31,a.showFullHistoryFromFiltering$));A(3);D("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},Ieb=function(a){a&1&&(E(0,"aside",3),H(1,"b-spinner"),G())},Jeb=function(a){a&1&&(I(0),Q(1,"s"),
L())},Keb=function(a){if(a&1){var b=v();I(0);E(1,"div",6)(2,"button",7);M("click",function(){w(b);var f=N().index,h=N(),k,q,t=null!=(q=null==(k=h.foldedCommentsCounts.get(f))?void 0:k.eventFoldedCount)?q:0;for(k=0;k<t&&((fo(h.internalEvents[f-k])||go(h.internalEvents[f-k]))&&h.eventDisplayMode.set(f-k,"full"),0!==f-k);k++);h.foldedCommentsCounts.delete(f);return z()});Q(3);P(4,Jeb,2,0,"ng-container",4);G();H(5,"div",8);G();L()}if(a&2){a=N().index;var c=N(),d,e;A(3);T(" ",null==(d=c.foldedCommentsCounts.get(a))?
null:d.commentFoldedCount," update");A(1);D("ngIf",1<(null!==(e=null==(e=c.foldedCommentsCounts.get(a))?null:e.commentFoldedCount)&&void 0!==e?e:1))}},Leb=function(a){a&1&&(E(0,"div",9),H(1,"b-history-event",10),G());if(a&2){var b=N();a=b.$implicit;b=b.index;var c=N();A(1);D("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},Neb=function(a,b){a&1&&(I(0),P(1,Keb,6,2,"ng-container",4),P(2,Leb,2,
4,"div",5),L());if(a&2){a=b.$implicit;b=b.index;var c=N(),d;A(1);D("ngIf",c.enableCommentFiltering&&c.foldedCommentsCounts.has(b)&&0<(null!==(d=null==(d=c.foldedCommentsCounts.get(b))?null:d.commentFoldedCount)&&void 0!==d?d:0));A(1);if(d=c.internalIssueId)if(c.enableCommentFiltering)d=Meb(c.eventDisplayMode.get(b));else{var e,f;d=(c.showFullHistory||a.isMajorEvent)&&(fo(a)&&!!a.unlinkifiedComment||go(a)||0<(null==(e=a.preDiffs)?void 0:e.length)||0<(null==(f=a.postDiffs)?void 0:f.length))}D("ngIf",
d)}},Oeb=function(a){a&1&&(E(0,"aside",3),H(1,"b-spinner"),G())},Peb=function(a){if(a&1){var b=v();E(0,"div",12)(1,"b-recaptcha",13);M("onUpdate",function(c){w(b);var d=N(4);return z(d.recaptchaResponse$.next(c))});G()()}},Reb=function(a){if(a&1){var b=v();E(0,"span")(1,"b-checkbox",14);M("change",function(){w(b);var c=N(4);return z(Qeb(c))});U(2,"async");U(3,"async");G()()}a&2&&(a=N(4),A(1),D("checked",!!V(2,2,a.autoCcOnComment$))("disabled",!!V(3,4,a.isCurrentUserCCd$)))},Seb=function(a){a&1&&(H(0,
"b-checkbox",17),U(1,"async"));a&2&&(a=N(5),D("checked",!0)("disabled",!0)("tooltip",V(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},Teb=function(a){a&1&&(E(0,"span",15),P(1,Seb,2,5,"b-checkbox",16),U(2,"async"),G());a&2&&(a=N(4),A(1),D("ngIf",V(2,1,a.isCurrentUserCCd$)))},Ueb=function(a){if(a&1){var b=v();E(0,"b-markdown-toggle",18);M("change",function(c){w(b);var d=N().ngIf;return z(d.formattingMode=c)});G()}a&2&&(a=N().ngIf,D("initialValue",a.formattingMode))},Web=function(a,b){if(a&
1){var c=v();I(0);E(1,"b-comment-box",3,4);M("onHotkey",function(){w(c);var k=O(2);return z(Veb(k,"editpage-hotkey"))})("onChange",function(){w(c);var k=N(3);return z(k.saveCommentDraft())})("onFocusEvent",function(){w(c);var k=N(3);return z(k.wasFocused=!0)})("onSubmit",function(){w(c);var k=N(3);return z(k.submitCommentBox())})("onRestrict",function(){w(c);var k=N(3);return z(k.showNewContentJudgementDialog())});U(3,"async");U(4,"async");U(5,"async");U(6,"async");P(7,Peb,2,0,"div",5);E(8,"div",
6)(9,"b-button",7);M("onAction",function(){w(c);var k=N(3);return z(k.submitCommentBox())})("click",function(){w(c);var k=N(3);return z(k.submitCommentBox())});U(10,"async");Q(11," Comment ");G();E(12,"div",8);P(13,Reb,4,6,"span",0);U(14,"async");U(15,"async");P(16,Teb,3,3,"span",9);U(17,"async");U(18,"async");P(19,Ueb,1,1,"b-markdown-toggle",10);U(20,"async");G();H(21,"b-access-level-indicator",11);U(22,"async");G()();L()}if(a&2){a=b.ngIf;b=N(2).ngIf;var d=N(),e,f,h;A(1);D("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",
!0)("issueId",b.issueId)("comment",a)("componentId",b.componentId)("placeholder",null!==(e=V(3,15,d.commentPlaceholderText$))&&void 0!==e?e:void 0)("judgementForNewContent",null!==(f=V(4,17,d.judgementForNewContent$))&&void 0!==f?f:void 0)("audience",null!==(h=V(5,19,d.audience$))&&void 0!==h?h:void 0)("disabled",!1===V(6,21,d.commentBoxEnabled$));A(6);D("ngIf",d.enableRecaptcha);A(2);D("disabled",!1===V(10,23,d.commentButtonEnabled$));A(4);D("ngIf",!V(14,25,d.isCurrentUserCCd$)&&V(15,27,d.hasAclToEdit$));
A(3);D("ngIf",V(17,29,d.isCurrentUserCCd$)||!V(18,31,d.hasAclToEdit$));A(3);D("ngIf",V(20,33,d.hasAclToComment$));A(2);D("accessLevel",V(22,35,d.accessLevel$))}},Yeb=function(a){a&1&&(I(0),E(1,"h3",1),Q(2,"Add comment"),G(),E(3,"div",2),U(4,"async"),P(5,Web,23,37,"ng-container",0),U(6,"async"),G(),L());a&2&&(a=N(2),A(3),D("ngClass",pg(6,Xeb,V(4,2,a.empty$),!a.wasFocused)),A(2),D("ngIf",V(6,4,a.comment$)))},Zeb=function(a,b){a&1&&(I(0),P(1,Yeb,7,9,"ng-container",0),L());a&2&&(a=b.ngIf,A(1),D("ngIf",
!a.isDeleted))},$eb=function(a,b){a&1&&(E(0,"div",16),Q(1),G());a&2&&(a=b.ngIf,b=N(2),bg("chippy status-",a,""),D("title",b.STATUS_FULL_TEXT[a]),A(1),T(" ",b.STATUS_TERSE[a]," "))},afb=function(a,b){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=b.ngIf,A(1),lg(" ",a.length," duplicate",1===a.length?"":"s"," "))},bfb=function(a,b){if(a&1){var c=v();E(0,"div",1)(1,"button",2);M("click",function(){w(c);var d=N();return z(d.dismiss())});H(2,"mat-icon",3);G();E(3,"div",4);H(4,"mat-icon",5);E(5,"span");Q(6,"Close issue as a duplicate of:");
G()();E(7,"div")(8,"a",6);Q(9);U(10,"async");G();E(11,"div",7)(12,"a",8);Q(13);G();H(14,"b-issue-priority-display",9);U(15,"async");P(16,$eb,2,5,"div",10);U(17,"async");P(18,afb,2,2,"span",11);U(19,"async");G()();E(20,"div",12)(21,"button",13);M("click",function(){w(c);var d=N();return z(d.accept())});H(22,"mat-icon",14);Q(23," Accept ");G();E(24,"button",15);M("click",function(){w(c);var d=N();return z(d.reject())});Q(25," Reject ");G()()()}a&2&&(a=b.ngIf,b=N(),A(8),D("href",b.getIssueLink(a),le),
A(1),kg(V(10,7,b.canonicalTitle$)),A(3),D("href",b.getIssueLink(a),le),A(1),kg(a),A(1),D("issuePriority",V(15,9,b.canonicalPriority$)),A(2),D("ngIf",V(17,11,b.statusForChip$)),A(2),D("ngIf",V(19,13,b.canonicalDuplicates$)))},cfb=function(a,b){a&1&&H(0,"b-issue-person-card",7);a&2&&D("email",b.ngIf)},dfb=function(a,b){a&1&&(I(0),E(1,"span",4),Q(2),U(3,"shortenEmail"),G(),E(4,"onedev-hovercard",null,5),P(6,cfb,1,1,"b-issue-person-card",6),G(),L());if(a&2){a=b.ngIf;var c=O(5);b=N(2);A(1);D("onedevHovercardTrigger",
c);A(1);T(" ",rg(3,3,b.userToString(a),30)," ");A(4);D("ngIf",a.emailAddress)}},efb=function(a,b){if(a&1){var c=v();E(0,"a",8);M("click",function(d){var e=w(c).ngIf,f=N(2);return z(f.scrollCommentIntoView(d,e))});Q(1);G()}a&2&&(a=b.ngIf,b=N(2),Wf("aria-label","Comment number ",a,""),D("routerLinkObj",b.getCommentNumberLink(a)),A(1),T(" #",a,""))},ffb=function(a){a&1&&(I(0),Q(1,","),L())},gfb=function(a,b){a&1&&(E(0,"span",1),P(1,dfb,7,6,"ng-container",2),E(2,"span"),P(3,efb,2,3,"a",3),P(4,ffb,2,0,
"ng-container",2),G()());a&2&&(a=b.$implicit,b=b.last,A(1),D("ngIf",a.userPerformingActionUser),A(2),D("ngIf",a.commentNumber),A(1),D("ngIf",!b))},hfb=function(a,b){a&1&&(E(0,"div",4)(1,"a",5),U(2,"removePngExtension"),H(3,"b-secure-image-widget",6),G(),H(4,"comments-info",7),G());a&2&&(a=b.$implicit,b=N(3),A(1),ig("href",V(2,5,a.src),le),A(2),D("showByDefault",!0)("src",a.src),A(1),D("issueId",b.issueId)("comments",a.comments))},ifb=function(a){if(a&1){var b=v();E(0,"button",10);M("click",function(){w(b);
var c=N(2).ngIf,d=N(2);c=c.length;var e=nl(d.maxImagesInOneRow$);e&&d.lastRenderedImageIndex$.next((Math.floor(c/e)+4)*e);return z()});Q(1," Load more ");G()}},jfb=function(a){if(a&1){var b=v();E(0,"button",11);M("click",function(){w(b);var c=N(4);return z(c.goToResourcesTab())});Q(1," See all screenshots ");G()}},kfb=function(a){a&1&&(I(0),P(1,ifb,2,0,"button",8),P(2,jfb,2,0,"ng-template",null,9,Hg),L());if(a&2){var b=O(3);a=N(3);A(1);D("ngIf",a.paginate)("ngIfElse",b)}},lfb=function(a,b){a&1&&(I(0),
E(1,"div",2),P(2,hfb,5,7,"div",3),U(3,"async"),G(),P(4,kfb,4,2,"ng-container",1),L());if(a&2){a=b.ngIf;b=N().ngIf;var c=N();A(1);Zf("show-all-images",c.paginate);A(1);D("ngForOf",V(3,4,c.imagesToRender$));A(2);D("ngIf",b.length!==a.length)}},mfb=function(a){a&1&&(I(0),P(1,lfb,5,6,"ng-container",1),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.imagesToRender$)))},nfb=function(a){var b=new Map;a=n(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=n(f);f=h.next().value;h=h.next().value;return{src:f,comments:h}})},ofb=function(a){a&1&&(E(0,"span",5),Q(1),U(2,"reverse"),G());a&2&&(a=N(),A(1),kg(V(2,1,a.leftText)))},pfb=function(a){a&1&&(I(0),E(1,"b-external-hyperlink-widget",6),Q(2),G(),L());a&2&&(a=N(),A(1),D("href",a.redirectedHref)("originalHref",a.originalHref),A(1),kg(a.linkText))},qfb=function(a){a&1&&(E(0,"a",7),Q(1),G());a&2&&(a=N(),ig("href",a.redirectedHref,le),A(1),
kg(a.linkText))},rfb=function(a){a&1&&(E(0,"span",8),Q(1),G());a&2&&(a=N(),A(1),kg(a.rightText))},sfb=function(a){var b=document.createElement("div");if(a=$sa(a))void 0!==b.tagName&&Uja(b),b.innerHTML=ck(a);return b},tfb=function(a){a&1&&(I(0),E(1,"td"),H(2,"b-issue-priority-display",2),G(),E(3,"td",3)(4,"span",4),Q(5),G(),H(6,"mentioned-link-with-context",5),G(),E(7,"td"),H(8,"comments-info",6),U(9,"toComments"),G(),L());if(a&2){a=N().$implicit;var b=N(3),c;A(2);D("matTooltip",a.hasViewAccess?"":
"Access is denied to this issue")("issuePriority",a.priority);A(2);D("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");A(1);T(" ",null!==(c=a.title)&&void 0!==c?c:"--"," ");A(1);D("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);A(2);D("issueId",b.issueId)("comments",V(9,8,a.sourceComments))}},ufb=function(a,b){a&1&&(E(0,"tr"),P(1,tfb,10,10,"ng-container",0),G());a&2&&(a=b.$implicit,A(1),D("ngIf",a.sourceComments&&a.relatedLinks))},vfb=function(a){if(a&
1){var b=v();E(0,"button",9);M("click",function(){w(b);var c=N(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return z()});Q(1," Load more ");G()}},wfb=function(a){if(a&1){var b=v();E(0,"button",10);M("click",function(){w(b);var c=N(4);return z(c.goToResourcesTab())});Q(1," See all mentioned issues ");G()}},xfb=function(a){a&1&&(E(0,"div"),P(1,vfb,2,0,"button",7),P(2,wfb,2,0,"ng-template",null,8,Hg),G());if(a&2){var b=O(3);a=N(3);A(1);D("ngIf",a.paginate)("ngIfElse",
b)}},yfb=function(a,b){a&1&&(I(0),E(1,"section")(2,"table"),P(3,ufb,2,1,"tr",1),G(),P(4,xfb,4,2,"div",0),G(),L());a&2&&(a=b.ngIf,b=N().ngIf,A(3),D("ngForOf",b),A(1),D("ngIf",a.length!==b.length))},zfb=function(a){a&1&&(I(0),P(1,yfb,5,2,"ng-container",0),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.allMentionedIssues$)))},Afb=function(a,b){a&1&&(E(0,"div",2),H(1,"mentioned-link-with-context",3)(2,"comments-info",4),U(3,"toComments"),G());a&2&&(a=b.$implicit,b=N(3),A(1),D("sourceComment",a[0].comment)("relatedLink",
a[0]),A(1),D("issueId",b.issueId)("comments",V(3,4,a)))},Bfb=function(a){if(a&1){var b=v();E(0,"button",7);M("click",function(){w(b);var c=N(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return z()});Q(1," Load more ");G()}},Cfb=function(a){if(a&1){var b=v();E(0,"button",8);M("click",function(){w(b);var c=N(4);return z(c.goToResourcesTab())});Q(1," See all related links ");G()}},Dfb=function(a){a&1&&(E(0,"div"),P(1,Bfb,2,0,"button",5),P(2,Cfb,2,0,"ng-template",
null,6,Hg),G());if(a&2){var b=O(3);a=N(3);A(1);D("ngIf",a.paginate)("ngIfElse",b)}},Efb=function(a,b){a&1&&(I(0),P(1,Afb,4,6,"div",1),P(2,Dfb,4,2,"div",0),L());if(a&2){a=b.ngIf;b=N().ngIf;var c=N();A(1);D("ngForOf",a)("ngForTrackBy",c.trackByHref);A(1);D("ngIf",b.length!==a.length)}},Ffb=function(a){a&1&&(I(0),P(1,Efb,3,3,"ng-container",0),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.linkGroupsToRender$)))},Hfb=function(a,b){var c=a.filter(function(d){return Vya(d[0])});a=a.filter(function(d){return!Vya(d[0])});
return Gfb([].concat(r(c),r(a)).slice(0,b),"asc")},Jfb=function(a){a&1&&(I(0),H(1,"mat-icon",10),cg(2,11),L());if(a&2){a=N().$implicit;N();var b=O(10);A(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(2,Ifb,a))}},Kfb=function(){},Lfb=function(a){a&1&&P(0,Kfb,0,0,"ng-template")},Mfb=function(a){a&1&&(I(0),P(1,Lfb,1,0,null,12),L());a&2&&(a=N(2).$implicit,A(1),D("ngTemplateOutlet",a.tabIconTemplate))},Nfb=function(a){a&1&&(P(0,Mfb,2,1,"ng-container",3),cg(1,11));if(a&2){a=N().$implicit;N();var b=
O(10);D("ngIf",a.tabIconTemplate);A(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(3,Ifb,a))}},Ofb=function(a,b){if(a&1){var c=v();E(0,"button",7);M("click",function(){var e=w(c).$implicit,f=N();e=e.key;f.internalExpandedTabs.has(e)?f.internalExpandedTabs.delete(e):f.internalExpandedTabs.add(e);f.expandedTabsChanged.emit(new Set(f.internalExpandedTabs));return z()});U(1,"async");U(2,"async");U(3,"async");P(4,Jfb,3,4,"ng-container",8);U(5,"async");P(6,Nfb,2,5,"ng-template",null,9,Hg);G()}if(a&
2){a=b.$implicit;var d=O(7);b=N();Zf("expanded",!!V(1,8,ju(b.internalExpandedTabs,a.key)));Wf("aria-controls","expandable-tabs-",a.key,"-content");Uf("aria-label",a.ariaLabel)("aria-expanded",!!V(2,10,ju(b.internalExpandedTabs,a.key)))("aria-selected",!!V(3,12,ju(b.internalExpandedTabs,a.key)));A(4);D("ngIf",V(5,14,ju(b.internalExpandedTabs,a.key)))("ngIfElse",d)}},Qfb=function(a,b){if(a&1){var c=v();I(0);E(1,"button",13);M("click",function(){w(c);var d=N();return z(Pfb(d))});Q(2);G();L()}a&2&&(a=
b.ngIf,b=N(),A(1),Zf("expandable-tabs-hide-all",a.allTabsExpanded)("expandable-tabs-show-all",!a.allTabsExpanded),Uf("aria-label",(a.allTabsExpanded?"Hide all":"Show all")+" "+b.ariaLabel),A(1),T(" ",a.allTabsExpanded?"Hide all":"Show all"," "))},Rfb=function(){},Sfb=function(a){a&1&&P(0,Rfb,0,0,"ng-template")},Tfb=function(a){a&1&&(I(0),P(1,Sfb,1,0,null,12),L());a&2&&(a=N(2).$implicit,A(1),D("ngTemplateOutlet",a.tabIconTemplate))},Ufb=function(){},Vfb=function(a){a&1&&P(0,Ufb,0,0,"ng-template")},
Wfb=function(a){a&1&&(I(0),P(1,Vfb,1,0,null,12),L());a&2&&(a=N(2).$implicit,A(1),D("ngTemplateOutlet",a.tabContentTemplate))},Xfb=function(a){a&1&&(E(0,"div",15)(1,"h4"),P(2,Tfb,2,1,"ng-container",3),cg(3,11),G(),P(4,Wfb,2,1,"ng-container",3),G());if(a&2){a=N().$implicit;N();var b=O(10);hg("id","expandable-tabs-",a.key,"-content");A(2);D("ngIf",a.tabIconTemplate);A(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",og(5,Ifb,a));A(1);D("ngIf",a.tabContentTemplate)}},Yfb=function(a,b){a&1&&(I(0),
P(1,Xfb,5,7,"div",14),U(2,"async"),L());a&2&&(a=b.$implicit,b=N(),A(1),D("ngIf",V(2,1,ju(b.internalExpandedTabs,a.key))))},Zfb=function(){},$fb=function(a){a&1&&P(0,Zfb,0,0,"ng-template")},agb=function(a){a&1&&(I(0),P(1,$fb,1,0,null,12),L());a&2&&(a=N().tab,A(1),D("ngTemplateOutlet",a.tabHeaderTemplate))},bgb=function(a){a&1&&Q(0);a&2&&(a=N().tab,kg(a.key))},cgb=function(a,b){a&1&&(P(0,agb,2,1,"ng-container",8),P(1,bgb,1,1,"ng-template",null,16,Hg));if(a&2){a=b.tab;var c=O(2);D("ngIf",a.tabHeaderTemplate)("ngIfElse",
c)}},dgb=function(a){a&1&&H(0,"mat-icon",9)},egb=function(a){a&1&&(Q(0),U(1,"async"));if(a&2){a=N(2);var b;T("Screenshots (",null!==(b=V(1,1,a.distinctImageLinksCount$))&&void 0!==b?b:0,")")}},igb=function(a,b){if(a&1){var c=v();E(0,"inline-images-summary",11);M("click",function(){w(c);var e=N(3);fgb(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return z()});U(1,"async");G()}if(a&2){a=b.ngIf;b=N(3);var d;D("issueId",a)("imageLinks",null!==(d=V(1,2,b.imageLinks$))&&void 0!==d?d:ng(4,ggb))}},jgb=
function(a){a&1&&(P(0,igb,2,5,"inline-images-summary",10),U(1,"async"));a&2&&(a=N(2),D("ngIf",V(1,1,a.issueId$)))},kgb=function(a){a&1&&H(0,"mat-icon",12)},lgb=function(a){a&1&&(Q(0),U(1,"async"));if(a&2){a=N(2);var b;T("Mentioned issues (",null!==(b=V(1,1,a.distinctIssuesCount$))&&void 0!==b?b:0,")")}},mgb=function(a,b){if(a&1){var c=v();E(0,"b-mentioned-issues",14);M("click",function(){w(c);var d=N(3);fgb(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return z()});G()}a&2&&(a=b.ngIf,
b=N(3),D("issueReferences",a)("currentIssueId",b.issueId))},ngb=function(a){a&1&&(P(0,mgb,1,2,"b-mentioned-issues",13),U(1,"async"));a&2&&(a=N(2),D("ngIf",V(1,1,a.issues$)))},ogb=function(a){a&1&&H(0,"mat-icon",15)},pgb=function(a){a&1&&(Q(0),U(1,"async"));if(a&2){a=N(2);var b;T("Links (",null!==(b=V(1,1,a.distinctOtherLinksCount$))&&void 0!==b?b:0,")")}},qgb=function(a){if(a&1){var b=v();E(0,"related-links-widget",16);M("click",function(){w(b);var d=N(2);fgb(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);
return z()});U(1,"async");G()}if(a&2){a=N(2);var c;D("links",null!==(c=V(1,2,a.otherLinks$))&&void 0!==c?c:ng(4,ggb))("issueId",a.issueId)}},sgb=function(a,b){if(a&1){var c=v();E(0,"expandable-tabs",2);M("expandedTabsChanged",function(d){var e=w(c).ngIf,f=N();return z(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){w(c);var e=N(),f=e.issueSummaryTracking;e=e.issueId;for(var h=n(rgb),k=h.next();!k.done;k=h.next())k=k.value,d.has(k)?(zu(f.issueInteractionsTracking,
e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(zu(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));0<d.size?(f.recordImpressionOnce(),zu(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(zu(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));
return z()});E(1,"expandable-tab",3);P(2,dgb,1,0,"ng-template",4);P(3,egb,2,3,"ng-template",5);P(4,jgb,2,3,"ng-template",6);G();E(5,"expandable-tab",7);P(6,kgb,1,0,"ng-template",4);P(7,lgb,2,3,"ng-template",5);P(8,ngb,2,3,"ng-template",6);G();E(9,"expandable-tab",8);P(10,ogb,1,0,"ng-template",4);P(11,pgb,2,3,"ng-template",5);P(12,qgb,2,5,"ng-template",6);G()()}a&2&&(a=b.ngIf,b=N(),D("tabKeys",a)("expandedTabs",b.initiallyExpandedTabs),A(1),D("key",b.TabKeys.IMAGES),A(4),D("key",b.TabKeys.MENTIONED_ISSUES),
A(4),D("key",b.TabKeys.LINKS))},tgb=function(a){a&1&&(E(0,"p",11),Q(1),G());a&2&&(a=N(),A(1),T(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},ugb=function(a){a&1&&(E(0,"div",12),H(1,"b-live-preview",13),G());a&2&&(a=N(),A(1),D("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},vgb=function(a,b){a&1&&(E(0,"li",6)(1,"div",7),H(2,"b-user-image",8),G(),E(3,"div",9),H(4,
"b-user-display",10)(5,"b-formatted-date-time",11),E(6,"p",12),Q(7," Formatting: "),E(8,"code",13),Q(9),G()(),H(10,"br"),E(11,"span",14)(12,"b-person-hovercard",15),U(13,"omitObfuscatedEmail"),Q(14),U(15,"appendDomain"),G()(),Q(16),G(),E(17,"pre"),Q(18),G()());a&2&&(a=b.$implicit,b=b.index+1,A(2),D("email",null==a.author?null:a.author.emailAddress),A(2),D("model",a.author),A(1),D("timestamp",a.updateTime),A(4),T(" ",a.formattingMode," "),A(3),D("email",V(13,8,null==a.author?null:a.author.emailAddress)),
A(2),T(" <",V(15,10,null==a.author?null:a.author.emailAddress),"> "),A(2),T(" #",b," "),A(2),kg(a.updateText))},xgb=function(a){if(a&1){var b=v();E(0,"button",13);M("click",function(){w(b);var c=N(3);return z(wgb(c))});Q(1," Mark as fresh ");G()}},ygb=function(a){a&1&&(I(0),P(1,xgb,2,0,"button",12),U(2,"async"),L());a&2&&(a=N(2),A(1),D("ngIf",V(2,1,a.freshnessIndicator$)===a.Freshness.STALE))},zgb=function(a){a&1&&H(0,"mat-icon",19)},Agb=function(a,b){a&1&&(I(0),P(1,zgb,1,0,"mat-icon",14),U(2,"async"),
Q(3," Updated by "),E(4,"span",15),Q(5),U(6,"shortenEmail"),G(),H(7,"b-formatted-date-time",16),E(8,"onedev-hovercard",null,17),H(10,"b-issue-person-card",18),G(),L());if(a&2){a=b.ngIf;var c=O(9);b=N(2);var d,e;A(1);D("ngIf",V(2,5,b.freshnessIndicator$)===b.Freshness.FRESH);A(3);D("onedevHovercardTrigger",c);A(1);T(" ",V(6,7,null!==(d=null==a.author?null:a.author.emailAddress)&&void 0!==d?d:"")," ");A(2);D("timestamp",a.updateTime);A(3);D("email",null!==(e=null==a.author?null:a.author.emailAddress)&&
void 0!==e?e:"")}},Bgb=function(a,b){a&1&&H(0,"b-actions-menu",20);a&2&&(a=b.ngIf,D("buttonLabel","Status Update actions")("menuItems",a))},Cgb=function(a,b){a&1&&(H(0,"b-note-container",25),U(1,"async"),U(2,"async"));if(a&2){a=b.ngIf;b=N().ngIf;var c=N(2),d;D("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)}},Dgb=function(a){if(a&1){var b=v();E(0,"button",26);M("click",function(){w(b);
var c=N(3);return z(c.isCollapsed=!1)});Q(1," Show More ");G()}},Egb=function(a){a&1&&(I(0),E(1,"div",21)(2,"div",null,22),P(4,Cgb,3,8,"b-note-container",23),U(5,"async"),G(),P(6,Dgb,2,0,"button",24),G(),L());a&2&&(a=N(2),A(2),Zf("collapsed",a.isCollapsed),A(2),D("ngIf",V(5,4,a.statusUpdateAsNote$)),A(2),D("ngIf",a.isCollapsed))},Fgb=function(a){a&1&&(E(0,"p",27),Q(1,"No status update yet."),G())},Hgb=function(a,b){if(a&1){var c=v();E(0,"div",1);U(1,"async");H(2,"mat-icon",2);E(3,"div",3)(4,"header",
4)(5,"div",5)(6,"h4",6);Q(7,"Status Update");G();E(8,"button",7);M("click",function(){w(c);var d=N();return z(Ggb(d))});Q(9," Edit ");G();P(10,ygb,3,3,"ng-container",8);U(11,"async");G();E(12,"div",9);P(13,Agb,11,9,"ng-container",8);U(14,"async");P(15,Bgb,1,2,"b-actions-menu",10);U(16,"async");G()();P(17,Egb,7,6,"ng-container",8);U(18,"async");P(19,Fgb,2,0,"p",11);U(20,"async");G()()}a&2&&(a=b.ngIf,b=N(),bg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",V(1,9,b.semanticClass$),
""),D("ngClass",a),A(10),D("ngIf",V(11,11,b.currentUserIsAuthoritative$)),A(3),D("ngIf",V(14,13,b.statusUpdate$)),A(2),D("ngIf",V(16,15,b.menuItems$)),A(2),D("ngIf",V(18,17,b.statusUpdate$)),A(2),D("ngIf",V(20,19,b.statusIsEmpty$)))},Igb=function(a){switch(a){case "display-none no-content":return"noUpdate";case "authoritative-team no-content":return"noUpdateTeamMember";case "normal":return"hasUpdate";case "display-none loading":return"";default:return""}},Jgb=function(a){a&1&&H(0,"canonical-recommendation",
8);a&2&&(a=N().$implicit,D("currentIssueId",a))},Kgb=function(a,b){a&1&&(I(0),H(1,"issue-description-area",4),P(2,Jgb,1,1,"canonical-recommendation",5),H(3,"status-update",6)(4,"b-issue-description",7),L());a&2&&(a=b.$implicit,b=N(),A(1),D("id",a),A(1),D("ngIf",b.enableIDPCanonicalRecommendation),A(1),D("issueId",a),A(1),D("id",a))},Lgb=function(a,b){a&1&&(H(0,"issue-summary-card",9,10),U(2,"async"));if(a&2){a=b.$implicit;var c=O(1);Zf("hidden",!V(2,3,c.shouldShowSummaryCard$));D("issueId",a)}},Mgb=
function(a){a&1&&H(0,"issue-event-list",13);a&2&&(a=N().$implicit,D("id",a))},Ngb=function(a){a&1&&H(0,"issue-event-list",13);a&2&&(a=N().$implicit,D("id",a))},Ogb=function(a,b){a&1&&(E(0,"div",11),H(1,"b-event-stream-header"),P(2,Mgb,1,1,"issue-event-list",12),H(3,"b-post-comment",6),P(4,Ngb,1,1,"issue-event-list",12),G());a&2&&(a=b.$implicit,b=N(),Zf("recent-first",b.showRecentEventsFirst),A(2),D("ngIf",!b.showRecentEventsFirst),A(1),D("issueId",a),A(1),D("ngIf",b.showRecentEventsFirst))},Pgb=function(a){a&
1&&(E(0,"div",4),H(1,"img",5),E(2,"p",6),Q(3,"This issue has no mentioned resources"),G(),E(4,"p",7),Q(5," If there were any links or bugs mentioned in the comments or description of the issue, they would appear here. "),E(6,"a",8),Q(7,"Learn more"),G()()());a&2&&(a=N(2),A(1),D("src",a.ROBOT_SLEEPING,le))},Qgb=function(a){a&1&&(I(0),E(1,"h2"),Q(2),G(),H(3,"b-issues-table",13),L());a&2&&(a=N(2).ngIf,A(2),T("Mentioned issues (",a.ids.length,")"),A(1),D("issueIds",a.ids))},Rgb=function(a){a&1&&(E(0,
"h2"),Q(1),G());a&2&&(a=N(2).ngIf,A(1),T("Other linked resources (",a.urls.length,")"))},Sgb=function(a,b){a&1&&(E(0,"ul")(1,"li")(2,"b-external-hyperlink-widget",14),Q(3),G()()());a&2&&(a=b.$implicit,A(2),D("href",a)("originalHref",a),A(1),kg(a))},Tgb=function(a){a&1&&(E(0,"div",9),P(1,Qgb,4,2,"ng-container",1),H(2,"br"),P(3,Rgb,2,1,"h2",1),P(4,Sgb,4,3,"ul",10),H(5,"br")(6,"hr",11),E(7,"p",7),H(8,"mat-icon",12),Q(9," This page shows links or bugs mentioned in the comments or description of the issue. "),
E(10,"a",8),Q(11,"Learn more"),G()()());a&2&&(a=N().ngIf,A(1),D("ngIf",0<a.ids.length),A(2),D("ngIf",0<a.urls.length),A(1),D("ngForOf",a.urls))},Ugb=function(a,b){a&1&&(I(0),P(1,Pgb,8,1,"div",2),P(2,Tgb,12,3,"ng-template",null,3,Hg),L());if(a&2){a=b.ngIf;var c=O(3);A(1);D("ngIf",a.hasNoResults)("ngIfElse",c)}},Vgb=function(a){a&1&&(E(0,"div",4),H(1,"img",5),E(2,"p",6),Q(3," This issue has no TODOs "),G(),E(4,"p",7),Q(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),
E(6,"a",8),Q(7,"Learn more"),G()()());a&2&&(a=N(3),A(1),D("src",a.ROBOT_SLEEPING,le))},Wgb=function(a,b){a&1&&H(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=N(3).ngIf;var c=N().ngIf,d=N();D("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},Xgb=function(a){if(a&1){var b=v();I(0);P(1,Wgb,1,3,"b-package-mentions-listing",9);E(2,"p",10)(3,"a",11);M("click",function(){w(b);var c=N(4);return z(c.trackSqueegeeClick())});Q(4,"View in Squeegee");G()();L()}a&
2&&(a=N(2).ngIf,A(1),D("ngForOf",a.mentions.packageMentionSet),A(2),D("href",a.link,le))},Ygb=function(a){a&1&&P(0,Xgb,5,2,"ng-container",1);a&2&&(a=N().ngIf,D("ngIf",a.mentions))},Zgb=function(a,b){a&1&&(I(0),P(1,Vgb,8,1,"div",2),P(2,Ygb,1,1,"ng-template",null,3,Hg),L());if(a&2){a=b.ngIf;var c=O(3);N(2);A(1);D("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},$gb=function(a){a&1&&(I(0),P(1,Zgb,4,2,"ng-container",1),U(2,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,1,a.codeMentionsState$)))},
bhb=function(a){a&1&&(H(0,"inline-images-summary",6),U(1,"async"));if(a&2){a=N().ngIf;var b=N(),c;D("issueId",a.issueId)("imageLinks",null!==(c=V(1,3,b.imageLinks$))&&void 0!==c?c:ng(5,ahb))("paginate",!0)}},chb=function(a,b){a&1&&H(0,"b-mentioned-issues",7);a&2&&(a=b.ngIf,b=N().ngIf,D("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0))},dhb=function(a,b){a&1&&(I(0),E(1,"h4"),Q(2,"Screenshots"),G(),P(3,bhb,2,6,"inline-images-summary",2),H(4,"br")(5,"hr",3),E(6,"h4"),Q(7,"Mentioned issues"),
G(),P(8,chb,1,3,"b-mentioned-issues",4),U(9,"async"),H(10,"br")(11,"hr",3),E(12,"h4"),Q(13,"Links"),G(),H(14,"related-links-widget",5),U(15,"async"),L());if(a&2){a=b.ngIf;b=N();var c;A(3);D("ngIf",b.isInternalSession);A(5);D("ngIf",V(9,5,b.issueReferences$));A(6);D("links",null!==(c=V(15,7,b.otherLinks$))&&void 0!==c?c:ng(9,ahb))("issueId",a.issueId)("paginate",!0)}},ehb=function(a){a&1&&H(0,"b-spinner",6);a&2&&D("large",!0)},fhb=function(a){a&1&&H(0,"b-hotlist-grid",7);a&2&&(a=N(),D("hotlists",a.hotlists))},
ghb=function(a){a&1&&(E(0,"div",9),H(1,"b-spinner"),E(2,"span"),Q(3),G()());a&2&&(a=N(),A(3),T(" Searching",a.query?" for "+a.query:"","..."))},ihb=function(a){a&1&&(E(0,"a",14),Q(1," Click to see all open issues"),G());a&2&&D("queryParams",ng(1,hhb))},jhb=function(a){a&1&&(E(0,"a",15),Q(1,"Learn more about searching"),G())},khb=function(a){a&1&&(E(0,"div",10),H(1,"img",11),Q(2," No issues match your search "),P(3,ihb,2,2,"a",12),U(4,"async"),P(5,jhb,2,0,"ng-template",null,13,Hg),G());if(a&2){var b=
O(6);a=N();var c;D("bFocus",!0);A(1);D("src",a.SPACE_EMPTY_STATE,le);A(2);D("ngIf",null!==(c=V(4,4,a.currentTracker.inTracker$))&&void 0!==c?c:!1)("ngIfElse",b)}},mhb=function(a){if(a&1){var b=v();E(0,"div",16)(1,"b-issues-grid",17);M("init",function(c){w(b);var d=N();return z(d.resultsGrid=c)})("columnsChange",function(c){w(b);var d=N();return z(d.issueColumns=c)})("columnsChange",function(){w(b);N();lhb();return z()})("sortChange",function(c){w(b);var d=N();return z(d.setSort(c.field,c.direction))})("rowClick",
function(c){w(b);var d=N();return z(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){w(b);var c=N();return z(Au(c,c.page,1))})("onPrevPage",function(){w(b);var c=N();return z(Au(c,c.page,-1))});G()()}a&2&&(a=N(),A(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},nhb=function(a){a&1&&(E(0,"div",9),H(1,"b-spinner"),Q(2," Loading recent issues... "),G())},ohb=function(a){a&
1&&(E(0,"div",10),Q(1," No recent issues found. "),G())},phb=function(a){if(a&1){var b=v();E(0,"div",11)(1,"b-issues-grid",12);M("init",function(c){w(b);var d=N();return z(d.resultsGrid=c)})("columnsChange",function(c){w(b);var d=N();return z(d.issueColumns=c)})("sortChange",function(c){w(b);var d=N();return z(d.setSort(c.field,c.direction))})("rowClick",function(c){w(b);var d=N();return z(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){w(b);var c=N(),d;return z(c.goToPage((null!==(d=
c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){w(b);var c=N(),d;return z(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)-1))});G()()}a&2&&(a=N(),A(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},qhb=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=n(c);c=e.next().value;e.next();d=n(d);e=d.next().value;d.next();
return c-e}).map(function(c){c=n(c);c.next();return c.next().value})},rhb=function(a){a&1&&(E(0,"div",6)(1,"h2"),Q(2,"Manage SLOs"),G(),E(3,"p",7),Q(4,"You have admin rights for all SLOs listed below."),G()())},shb=function(a){a&1&&H(0,"b-spinner",8);a&2&&D("large",!0)},thb=function(a){a&1&&(E(0,"div",11),Q(1,"You have no Active SLOs"),G())},uhb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=N(2),D("slos",a.activeSlos))},vhb=function(a){a&1&&(I(0),P(1,thb,2,0,"div",9),P(2,uhb,1,1,"b-slo-grid",10),
L());a&2&&(a=N(),A(1),D("ngIf",!a.activeSlos.length),A(1),D("ngIf",a.activeSlos.length))},whb=function(a){a&1&&(E(0,"p",19),Q(1," You have no archived SLOs. "),G())},xhb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=N(3),D("slos",a.archivedSlos))},yhb=function(a){a&1&&(E(0,"div",17),P(1,whb,2,0,"p",18),P(2,xhb,1,1,"b-slo-grid",10),G());a&2&&(a=N(2),A(1),D("ngIf",!a.archivedSlos.length),A(1),D("ngIf",a.archivedSlos.length))},zhb=function(a){if(a&1){var b=v();I(0);E(1,"button",13);M("click",function(){w(b);
var c=N();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return z()});E(2,"h4",14);H(3,"mat-icon",15);Q(4);G()();P(5,yhb,3,2,"div",16);L()}a&2&&(a=N(),A(3),Zf("rotate-180",a.areArchivedSlosExpanded),D("svgIcon","arrow-dropdown"),A(1),T(" Archived SLOs (",a.archivedSlos.length,") "),A(1),D("ngIf",a.areArchivedSlosExpanded))},Ahb=function(a){var b={};a=n(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},Dhb=function(a){return{approximateSize:Aj(a,2),
groupEmail:Pi(a,1),sizeCategory:Bhb[qj(a,3,0)],permissionCategory:Chb[qj(a,5,0)]}},Fhb=function(a){var b;return{groupMetadata:(null!=(b=Nb(a,Ehb,1))?b:[]).map(Dhb)}},Ghb=function(a){a&1&&(I(0),E(1,"p"),Q(2,"Team inheritance path:"),G(),H(3,"b-team-breadcrumb",1),L());a&2&&(a=N(),A(3),D("teamPath",a.teamPath))},Hhb=function(a){a&1&&(I(0),E(1,"p"),Q(2,"Component inheritance path:"),G(),H(3,"b-component-breadcrumb",2),L());a&2&&(a=N(),A(3),D("componentPathInfo",a.componentPath))},Jhb=function(a,b){var c=
[];if(!b||!a)return c;for(var d=n(Ihb),e=d.next();!e.done;e=d.next()){e=e.value;var f=aj(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},Lhb=function(a,b){if(!a.appenders||!b||Ri(b.appenders,a.appenders))return!1;a=n(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Khb.has(c)&&!b.appenders.includes(c))return!0;return!1},Mhb=function(a){var b=new Map;a=n(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},Nhb=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"},Ohb=function(a){if(0===a.size)return Bu;for(var b=1===a.size?Eo("P",{},"The following large group is added: "):Eo("P",{},"The following large groups are added: "),c=[],d=n(a.keys()),e=d.next();!e.done;e=
d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Eo("P",{},Fo(Eo("B",{},e)," has approximately ",Eo("B",{},f)," Googlers.")))}return Fo(b,c)},Phb=function(a){if(0===a.size)return Bu;var b=1===a.size?Eo("P",{},"The following open group is added: "):Eo("P",{},"The following open groups are added: "),c=[];a=n(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Eo("P",{},Eo("B",{},d.value)));return Fo(b,c)},Qhb=function(a){var b=new Map;a=n(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},Rhb=function(a,b){var c=b.restrictedPlusReaders;return 0<a.restrictedPlusReaders.filter(function(d){return!c.includes(d)}).filter(function(d){return d.startsWith("3:")}).length},Shb=function(a,b,c){a="2:"+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("3:")});var e=c.filter(function(f){return f.startsWith("2:")});
return d.includes(a)||0===c.length?!1:e.includes(a)?!0:b.length?!0:!1},Cu=function(a){var b=a.split(":");a=Number(b[0]);return 4===a?(b=b[1],{value:b,displayText:jna(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},Thb=function(a,b){a&1&&H(0,"b-contact-chip",6);a&2&&(a=b.$implicit,b=N(2),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},
Uhb=function(a,b){a&1&&(I(0),E(1,"tr",3)(2,"th",4),Q(3),G(),E(4,"td"),P(5,Thb,1,5,"b-contact-chip",5),G()(),L());a&2&&(a=b.$implicit,A(3),kg(a.permission),A(2),D("ngForOf",a.principals))},Xhb=function(a){var b=void 0===b?"expanded":b;a=Du(a);a=eBa(a,function(c){c=Vhb(c);return Whb(c,b)});return Du(a)},Zhb=function(a){a=Du(a);a=eBa(a,function(b){b=Yhb(b);return Vhb(b)});return Du(a)},Whb=function(a,b){var c="expanded"===b?$hb:aib;return new Set([].concat(r(a)).flatMap(function(d){return[].concat(r(c.get(d)))}))},
Yhb=function(a){return new Set(Eu.filter(function(b){return Tma(a,aib.get(b))}))},Vhb=function(a){a=Whb(a,"expanded");var b=Yhb(a);return new Set([].concat(r(b)).filter(function(c){return[].concat(r(bib.get(c))).every(function(d){return!b.has(d)})}))},Du=function(a){var b=new Map;a=n(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;d=n(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},
dib=function(){function a(f,h){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(h);var q;h=n(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=cib,c=new Map,d=[].concat(r(b.values())).flatMap(function(f){return[].concat(r(f))});d=n(new Set([].concat(r(b.keys()),r(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},eib=function(a){var b=Xhb(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(r(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")}}},fib=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return Wj([].concat(r(b?[].concat(r(b.inheritedAdmins||[]),r(b.admins||
[]),r(b.appenders||[])):[]),r(a?[].concat(r(a.admins||[]),r(a.editors||[]),r(a.appenders||[]),r(a.readers||[]),r(a.restrictedReaders||[]),r(a.restrictedPlusReaders||[])):[])),Vj).sort()},gib=function(a){if(!a)return Fu;var b=a.issueAccessPolicy;a=a.componentAccessPolicy;var c=Zhb(new Map([["issueAdmin",new Set(b.admins)],["issueEditor",new Set(b.editors)],["issueAppender",new Set(b.appenders)],["issueReader",new Set(b.readers)],["issueRestrictedReader",new Set(b.restrictedReaders)],["issueRestrictedPlusReader",
new Set(b.restrictedPlusReaders)],["componentAdmin",new Set(a.admins)],["componentAppender",new Set(a.appenders)],["componentReader",new Set(a.readers)]]));b=function(d){var e;return[].concat(r(null!=(e=c.get(d))?e:[])).sort()};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}},Gu=function(a,b){var c;(c=!b)||(c=!(!Ri([].concat(r(b.admins)).sort(),[].concat(r(a.admins)).sort())||!Ri([].concat(r(b.appenders)).sort(),[].concat(r(a.appenders)).sort())||!Ri(b.implicitAccess,a.implicitAccess)));return!c},hib=function(a,b){return b&&a?!Ri([].concat(r(a.admins)).sort(),[].concat(r(b.admins)).sort())||
!Ri([].concat(r(a.editors)).sort(),[].concat(r(b.editors)).sort())||!Ri([].concat(r(a.appenders)).sort(),[].concat(r(b.appenders)).sort())||!Ri([].concat(r(a.readers)).sort(),[].concat(r(b.readers)).sort())||!Ri([].concat(r(a.restrictedReaders)).sort(),[].concat(r(b.restrictedReaders)).sort())||!Ri([].concat(r(a.restrictedPlusReaders)).sort(),[].concat(r(b.restrictedPlusReaders)).sort()):!1},iib=function(a,b){var c=Object.keys(a);c=n(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!Rna(a[d],
b[d]))return!0;return!1},jib=function(a){if(a&1){var b=v();E(0,"input",17);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(2),D("disabled",!a.rolesEditor.isAdmin)("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},kib=function(a){if(a&1){var b=v();E(0,"input",18);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(2),D("disabled",!a.rolesEditor.isAdmin||
!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},lib=function(a){if(a&1){var b=v();E(0,"input",19);M("ngModelChange",function(c){w(b);var d=N(2);return z(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},nib=function(a){a&1&&(E(0,"div",3)(1,"div",4)(2,"span",5),Q(3,"Component visibility: "),G()(),E(4,"div",6)(5,"div",7),P(6,jib,
1,2,"input",8),E(7,"label",9),Q(8),G()(),E(9,"div",7),P(10,kib,1,2,"input",10),E(11,"label",11),Q(12),G()(),E(13,"div",12),P(14,lib,1,2,"input",13),E(15,"label",14),Q(16),G()()(),E(17,"p",15)(18,"a",16),Q(19," Learn more "),G()()());a&2&&(a=N(),A(6),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),A(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER),
" "),A(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),A(2),D("href",mib(a.documentationLinks),le))},sib=function(a,b){if(a&1){var c=v();I(0);E(1,"tr")(2,"td")(3,"div",2)(4,"div",3)(5,"label",4);Q(6);G();E(7,"button",5);H(8,"mat-icon",6);G()();E(9,"b-multi-user-input",7);M("usersChange",function(e){var f=w(c).$implicit,h=N();return z(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=
w(c).$implicit,h=N();h.aclFormValidity.set(f.roleType,e);e=[].concat(r(h.aclFormValidity.values())).every(Boolean);h.formIsValid.emit(e);return z()});G()()();E(10,"td");H(11,"b-icon",8);G();E(12,"td");H(13,"b-icon",8);G();E(14,"td");H(15,"b-icon",8);G();E(16,"td");H(17,"b-icon",8);G();E(18,"td");H(19,"b-icon",8);G();E(20,"td");H(21,"b-icon",8);G();E(22,"td");H(23,"b-icon",8);G();E(24,"td");H(25,"b-icon",8);G()();L()}if(a&2){a=b.$implicit;b=N();var d;A(3);Zf("bv2-edit-resource-readonly",b.canEdit);
A(2);D("htmlFor",a.roleType);A(1);kg(a.label);A(1);D("matTooltip",a.tooltip);A(2);D("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",null!==(d=a.customValidators)&&void 0!==d?d:ng(22,oib))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?og(26,pib,pg(23,qib,a.chips.displayText,a.chips.values)):ng(28,rib));Uf("disabled",b.canEdit?
null:!0);A(2);D("name",b.getIconName(a,"componentAdmin"));A(2);D("name",b.getIconName(a,"createIssues"));A(2);D("name",b.getIconName(a,"issueAdmin"));A(2);D("name",b.getIconName(a,"issueEditor"));A(2);D("name",b.getIconName(a,"issueCommenter"));A(2);D("name",b.getIconName(a,"issueReader"));A(2);D("name",b.getIconName(a,"restrictedReader"));A(2);D("name",b.getIconName(a,"restrictedPlusReader"))}},tib=function(a){a&1&&(E(0,"div",1)(1,"p"),Q(2," Your component is only using advanced roles. Simplify your component\u2019s role assignment by moving some users to standard roles. "),
E(3,"a",2),Q(4,"Learn more"),G()()());a&2&&(a=N(),A(3),hg("href","",lp(a.documentationLinks),"#role-based-permissions",le))},uib=function(a){a&1&&(E(0,"div",2),H(1,"b-spinner"),G())},wib=function(a){if(a&1){var b=v();E(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);M("saveRolesMap",function(c){w(b);var d=N();vib(d.rolesEditor,c);return z()});G()();E(5,"mat-tab",6);H(6,"permissions-view",7);G()()()()}a&2&&(a=N(),A(4),D("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",
a.rolesEditor.component)("rolesEditor",a.rolesEditor),A(2),D("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))},yib=function(a){if(a&1){var b=v();E(0,"b-button",14,15);M("onAction",function(){w(b);var c=N(3);return z(xib(c))});
Q(2);G()}a&2&&(a=N(3),D("disabled",a.isSaving()),A(2),T(" ",a.archiveAction," Component "))},zib=function(a){if(a&1){var b=v();E(0,"b-button",16);M("onAction",function(){w(b);var c=N(3);return z(c.createIssue())});Q(1," Create Issue ");G()}a&2&&(a=N(3),D("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},Aib=function(a){a&1&&(I(0),E(1,"a",11),Q(2," Browse Components "),G(),P(3,yib,3,2,"b-button",12),P(4,zib,2,2,"b-button",13),L());a&2&&(a=N(2),A(1),
D("routerLinkObj",a.componentListRoute(a.component.componentId)),A(2),D("ngIf",a.isAdmin()),A(1),D("ngIf",!a.isAnonymous))},Bib=function(a){a&1&&(E(0,"div",17),H(1,"b-spinner"),G())},Cib=function(a){a&1&&(E(0,"span",38),Q(1," (archived) "),G())},Dib=function(a){a&1&&cg(0)},Eib=function(a){a&1&&cg(0)},Fib=function(a){a&1&&cg(0)},Gib=function(a){a&1&&cg(0)},Hib=function(a){a&1&&cg(0)},Iib=function(a){if(a&1){var b=v();E(0,"div",77)(1,"div",48)(2,"label",78)(3,"span",45);Q(4,"Parent Component");G()();
E(5,"span",50)(6,"div",79)(7,"strong");Q(8,"Careful!");G();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. ");E(10,"div",52);H(11,"div",53)(12,"div",54);G()()()();E(13,"b-team-component-picker",80);M("selectedComponentChange",function(c){w(b);var d=N(4);return z(d.parentComponent=null!==c&&void 0!==c?
c:null)});G()()}a&2&&(a=N(4),A(2),Zf("required",a.isParentComponentRequired),A(11),D("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired))},Jib=function(a){a&1&&(E(0,"a",81),Q(1," Learn more "),G());a&2&&(N(4),D("href",s2a(),le))},Kib=function(a){if(a&1){var b=v();E(0,"div",82)(1,"label",83)(2,"span",45);Q(3,"Retention Settings");G()();E(4,"div",84)(5,"p");Q(6,"Please choose a period of time to retain the data stored in this component.");
H(7,"br");E(8,"a",85);Q(9," Learn more ");G()()();E(10,"div",86)(11,"b-retention-settings-form",87);M("modelChange",function(c){w(b);var d=N(4);return z(d.component.retentionSettings=c)})("validChange",function(c){w(b);N(4).retentionIsValid=c;return z()});G()()()}a&2&&(a=N(4),Zf("bv2-edit-resource-readonly",!a.isAdmin()),A(8),D("href",Hu(),le),A(3),D("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",a.component.retentionSettings))},Mib=function(a){if(a&
1){var b=v();E(0,"div",91)(1,"b-component-team-picker",92);M("modelChange",function(c){w(b);var d=N(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&Lib(d);return z()});G()()}a&2&&(a=N(5),A(1),ig("anchorTarget",a.hasUnsavedChanges()?"_blank":"_self"),D("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",null==a.parentComponent?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},Nib=function(a){a&1&&(E(0,"div",
88)(1,"label",89)(2,"span",45),Q(3,"Team Configuration"),G()(),P(4,Mib,2,6,"div",90),G());a&2&&(a=N(4),Zf("bv2-edit-resource-readonly",!a.isAdmin()),A(4),D("ngIf",a.component.team))},Oib=function(a){a&1&&(E(0,"a",105),Q(1),G());if(a&2){a=N().ngIf;var b=N(5),c;D("routerLinkObj",b.getSloManagementLink(a.id));A(1);T(" ",null!==(c=null==a.slo?null:a.slo.getName())&&void 0!==c?c:a.id," ")}},Pib=function(a){a&1&&Q(0," None ")},Qib=function(a,b){a&1&&(E(0,"div",102),Q(1," Inherited SLO Policy: "),P(2,Oib,
2,2,"a",103),P(3,Pib,1,0,"ng-template",null,104,Hg),G());if(a&2){a=b.ngIf;var c=O(4);A(2);D("ngIf","0"!==a.id)("ngIfElse",c)}},Rib=function(a){a&1&&(E(0,"a",110),Q(1),U(2,"titlecase"),G());a&2&&(a=N().ngIf,D("routerLinkObj",a.link),A(1),lg(" (",V(2,3,a.type),") ",a.name," "))},Sib=function(a){a&1&&Q(0," None ")},Tib=function(a){a&1&&(E(0,"div",112),H(1,"slo-inheritance-breadcrumbs",113),G());a&2&&(a=N().ngIf,A(1),D("componentPath",a.componentPath)("teamPath",a.teamPath))},Uib=function(a){a&1&&(I(0),
P(1,Tib,2,2,"div",111),L());a&2&&(a=N(6),A(1),D("ngIf",a.showSloInheritancePath))},Vib=function(a,b){if(a&1){var c=v();E(0,"div",106);Q(1," Policy Source: ");P(2,Rib,3,5,"a",107);P(3,Sib,1,0,"ng-template",null,108,Hg);E(5,"button",109);M("click",function(){w(c);var e=N(5);return z(e.showSloInheritancePath=!e.showSloInheritancePath)});Q(6);G();P(7,Uib,2,1,"ng-container",7);U(8,"async");G()}if(a&2){a=b.ngIf;var d=O(4);b=N(5);A(2);D("ngIf",a.link)("ngIfElse",d);A(3);Uf("aria-expanded",b.showSloInheritancePath);
A(1);T(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");A(1);D("ngIf",V(8,5,b.policySourcePath$))}},Wib=function(a){a&1&&(I(0),Q(1,", "),E(2,"a",115),Q(3,"Team Leads"),G(),L());a&2&&(a=N(7),A(2),D("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:"basic"}))},Xib=function(a){a&1&&(I(0),Q(1," SLO Admins: "),E(2,"a",115),Q(3,"Component Admins"),G(),P(4,Wib,4,1,"ng-container",7),L());a&2&&(a=N(6),A(2),D("routerLinkObj",a.componentPermissions(a.componentId)),A(2),D("ngIf",a.component.team&&
"0"!==a.component.team.id))},Yib=function(a){a&1&&(E(0,"div",114),P(1,Xib,5,2,"ng-container",7),G());a&2&&(a=N(5),A(1),D("ngIf",a.enableTeamLeadSloEditingUi))},Zib=function(a){a&1&&(I(0),H(1,"mat-icon",117),Q(2," on "),L())},$ib=function(a){a&1&&(H(0,"mat-icon",118),Q(1," off "))},ajb=function(a){a&1&&(I(0),Q(1," Lock: "),P(2,Zib,3,0,"ng-container",0),U(3,"async"),P(4,$ib,2,0,"ng-template",null,116,Hg),L());if(a&2){var b=O(5);a=N(5);A(2);D("ngIf",V(3,2,a.sloLocked$))("ngIfElse",b)}},cjb=function(a){if(a&
1){var b=v();E(0,"div",119)(1,"mat-checkbox",120);M("change",function(c){w(b);var d=N(5);c=c.checked;d.component.slo.inherit=!c;c||Lib(d);return z()});E(2,"span");Q(3,"Override the inherited SLO policy");G()()()}a&2&&(a=N(5),A(1),D("checked",!a.component.slo.inherit)("disabled",!bjb(a)))},djb=function(a){if(a&1){var b=v();E(0,"div",127)(1,"label",128);Q(2," Justification ");G();H(3,"mat-icon",129);E(4,"textarea",130);M("ngModelChange",function(c){w(b);var d=N(6);return z(d.component.slo.comment=c)});
G()()}a&2&&(a=N(6),A(4),D("ngModel",a.component.slo.comment)("disabled",!Iu(a)))},ejb=function(a){a&1&&(E(0,"a",131),H(1,"mat-icon",132),G());a&2&&(a=N(6),ig("target",a.hasUnsavedChanges()?"_blank":"_self"),D("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},ijb=function(a){if(a&1){var b=v();I(0);P(1,djb,5,2,"div",121);E(2,"mat-slide-toggle",122);M("ngModelChange",function(c){w(b);var d=N(5);return z(d.isEnableSloChecked=c)})("change",function(c){w(b);var d=N(5);c=c.checked;d.isEnableSloChecked=
c;c||(d.component.slo.id="0");return z()});Q(3," Enable SLO ");G();E(4,"div",123)(5,"label",124);Q(6,"SLO policy");G();E(7,"slo-picker",125);M("onSloSelect",function(c){w(b);var d=N(5);return z(d.onSloChange(c))});G();P(8,ejb,2,2,"a",126);G();L()}a&2&&(a=N(5),A(1),D("ngIf",fjb(a)),A(1),Zf("indented",gjb(a)),D("ngModel",a.isEnableSloChecked)("disabled",!hjb(a)),A(5),D("bv2Disabled",!a.isEnableSloChecked||!hjb(a))("boundId",a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&hjb(a)?"Type to search for an SLO":
"SLO disabled"),A(1),D("ngIf",a.component.slo.id&&"0"!==a.component.slo.id))},jjb=function(a){a&1&&(E(0,"div",93)(1,"div",48)(2,"label",94)(3,"span",45),Q(4,"SLO Configuration"),G()(),E(5,"span",50)(6,"div",95)(7,"strong"),Q(8,"Careful!"),G(),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. "),E(10,"div",52),H(11,"div",53)(12,"div",54),G()()()(),E(13,"div",96),P(14,Qib,5,2,"div",97),
U(15,"async"),P(16,Vib,9,7,"div",98),U(17,"async"),P(18,Yib,2,1,"div",99),E(19,"div",100),P(20,ajb,6,4,"ng-container",7),G()(),P(21,cjb,4,2,"div",101),P(22,ijb,9,9,"ng-container",7),G());if(a&2){a=N(4);Zf("bv2-edit-resource-readonly",!Iu(a));A(14);D("ngIf",V(15,8,a.inheritedSlo$));A(2);D("ngIf",V(17,10,a.sloPolicySource$));A(2);D("ngIf",a.sessionIsInternal);A(2);D("ngIf",a.enableSloLockingUi);A(1);D("ngIf",gjb(a));A(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;D("ngIf",a)}},kjb=function(a){if(a&1){var b=v();E(0,"div",73)(1,"b-button",133);M("onAction",function(){w(b);var c=N(4);return z(c.saveMetadata())});Q(2," Update ");G();E(3,"b-button",134);M("onAction",function(){w(b);var c=N(4);return z(c.revertMetadataChanges())});Q(4," Revert Changes ");G();E(5,"b-button",134);M("onAction",function(){w(b);var c=N(4);return z(c.createChild())});Q(6," Create Child Component ");G()()}a&
2&&(a=N(4),A(1),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),A(2),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),A(2),D("disabled",a.hasUnsavedMetadataChanges()))},ljb=function(a){if(a&1){var b=v();E(0,"b-button",135);M("onAction",function(){w(b);var c=N(4);return z(c.showUpdateHistoryModal())});Q(1," View History ");G()}},mjb=function(a){a&1&&H(0,"b-spinner")},njb=function(a){if(a&1){var b=v();E(0,"b-component-children-list",136);M("onVisit",function(){w(b);var c=N(4);return z(c.trackClick("openChildComponent"))});
G()}a&2&&(a=N(4),D("children",a.childComponents))},ojb=function(a){a&1&&(E(0,"span"),Q(1," No child components. "),G())},pjb=function(a){if(a&1){var b=v();E(0,"div",39)(1,"form",40,41);H(3,"b-error-banner",42);E(4,"div",43)(5,"label",44)(6,"span",45);Q(7,"Name");G()();E(8,"input",46);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.component.name=c)});G()();E(9,"div",47)(10,"div",48)(11,"label",49)(12,"span",45);Q(13,"Description");G()();E(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. ");
E(17,"div",52);H(18,"div",53)(19,"div",54);G()()()();E(20,"textarea",55);M("ngModelChange",function(c){w(b);var d=N(3);return z(d.component.description=c)});Q(21,"            ");G()();P(22,Iib,14,5,"div",56);E(23,"div",57)(24,"div",58)(25,"b-checkbox",59);M("change",function(c){w(b);var d=N(3);d.commentEditsEnabled=c;return z(d.setCommentEditState())});G()();E(26,"div")(27,"strong",60);Q(28,"Editable Comments");G();E(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. ");
H(31,"br");P(32,Jib,2,1,"a",62);G()()();P(33,Kib,12,6,"div",63);P(34,Nib,5,3,"div",64);P(35,jjb,23,12,"div",65);E(36,"div",66)(37,"div",48)(38,"label",67)(39,"span",45);Q(40,"Component Alias");G()();E(41,"span",50)(42,"div",68);Q(43," You can create a new issue in this component by sending an email to this alias. ");H(44,"br");E(45,"a",69);Q(46," Learn more ");G();E(47,"div",52);H(48,"div",53)(49,"div",54);G()()()();E(50,"div")(51,"a",70);Q(52);G()()();E(53,"div",71);P(54,kjb,7,3,"div",72);E(55,"div",
73);P(56,ljb,2,0,"b-button",74);G()();E(57,"div",75)(58,"label")(59,"span",45);Q(60,"Child Components");G()();P(61,mjb,1,0,"b-spinner",7);P(62,njb,1,1,"b-component-children-list",76);P(63,ojb,2,0,"span",7);G()()()}a&2&&(a=N(3),A(1),Zf("show-errors",a.error),A(2),D("error",a.error),A(1),Zf("bv2-edit-resource-readonly",Ju(a)),A(4),D("ngModel",a.component.name)("disabled",Ju(a)),A(1),Zf("bv2-edit-resource-readonly",Ju(a)),A(11),D("ngModel",a.component.description)("disabled",Ju(a)),A(2),D("ngIf",a.isAdmin()),
A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(2),D("checked",a.commentEditsEnabled)("disabled",Ju(a)),A(7),D("ngIf",!a.sessionIsExternal),A(1),D("ngIf",!a.sessionIsExternal),A(1),D("ngIf",a.sessionIsInternal),A(1),D("ngIf",a.component.slo&&a.sessionIsInternal),A(10),D("href",a.documentationLinks.baseDocumentationUrl+"/guides/create-issue-email",le),A(6),hg("href","mailto:",a.component.emailAlias,"",le),Uf("aria-label","Component Alias -"+a.component.emailAlias),A(1),kg(a.component.emailAlias),
A(2),D("ngIf",a.isEditorInternal||Iu(a)),A(2),D("ngIf",a.componentHistoryUiEnabled),A(5),D("ngIf",void 0===a.childComponents),A(1),D("ngIf",a.childComponents&&0<a.childComponents.length),A(1),D("ngIf",a.childComponents&&0===a.childComponents.length))},qjb=function(a){a&1&&(E(0,"div",141),Q(1," Standard Fields "),G())},sjb=function(a){if(a&1){var b=v();E(0,"b-component-standard-fields",142);M("updateComponent",function(c){w(b);var d=N(4);return z(rjb(d,c))});G()}a&2&&(a=N(4),D("effortSpec",a.component.effortSpec)("parentEffortSpec",
null==a.parentComponent?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal))},tjb=function(a){a&1&&(E(0,"div",143),Q(1," Custom Fields "),G())},ujb=function(a){a&1&&(P(0,qjb,2,0,"div",137),P(1,sjb,1,3,"b-component-standard-fields",138),P(2,tjb,2,0,"div",139),H(3,"b-component-custom-fields",140));a&2&&(a=N(3),D("ngIf",a.sessionIsInternal&&!a.isExternal()),A(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),A(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),A(1),D("editMode",a.isEditorInternal)("isSaving",
a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},wjb=function(a){a&1&&(E(0,"a",147),Q(1," Learn more "),G());a&2&&(N(4),D("href",vjb(),le))},yjb=function(a){if(a&1){var b=v();E(0,"div",39)(1,"div",144);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,wjb,2,1,"a",145);G();E(4,"b-field-reorder",146);M("onReload",function(){w(b);var c=N(3);return z(xjb(c))});G()()}a&2&&(a=N(3),A(3),
D("ngIf",a.sessionIsInternal),A(1),D("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},zjb=function(a){a&1&&H(0,"b-edit-templates",149);a&2&&(a=N(4),D("componentId",a.componentId)("supportCustomFields",!0))},Ajb=function(a){a&1&&(E(0,"div"),Q(1),G());a&2&&(a=N().$implicit,A(1),kg(a.description))},Bjb=function(a,b){a&1&&(E(0,"div",151)(1,"label"),Q(2),G(),P(3,Ajb,2,1,"div",7),E(4,"div")(5,"a",70),Q(6),G()()());a&2&&(a=
b.$implicit,A(2),kg(a.name),A(1),D("ngIf",a.description),A(2),D("href",a.url,le),Uf("aria-label","Click to open the template "+a.name),A(1),kg(a.url))},Cjb=function(a){a&1&&(I(0),P(1,Bjb,7,5,"div",150),L());a&2&&(a=N(4),A(1),D("ngForOf",a.templates))},Djb=function(a){a&1&&(E(0,"div",39),P(1,zjb,1,2,"b-edit-templates",148),P(2,Cjb,2,1,"ng-container",7),G());a&2&&(a=N(3),A(1),D("ngIf",a.isEditorInternal),A(1),D("ngIf",!a.isEditorInternal))},Ejb=function(a){a&1&&H(0,"role-based-permissions")},Fjb=function(a){if(a&
1){var b=v();E(0,"input",206);M("ngModelChange",function(c){w(b);var d=N(6);return z(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(6),D("disabled",!a.isAdmin())("ngModel",a.component.accessLimit.accessLevel))},Gjb=function(a){if(a&1){var b=v();E(0,"input",207);M("ngModelChange",function(c){w(b);var d=N(6);return z(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(6),D("disabled",!a.isAdmin()||!a.isParentPartner())("ngModel",a.component.accessLimit.accessLevel))},Hjb=function(a){if(a&
1){var b=v();E(0,"input",208);M("ngModelChange",function(c){w(b);var d=N(6);return z(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=N(6),D("disabled",!a.isAdmin()||!a.isParentPublic())("ngModel",a.component.accessLimit.accessLevel))},Ijb=function(a){a&1&&(E(0,"div",192)(1,"div",193)(2,"span",194),Q(3,"Component visibility: "),G()(),E(4,"div",195)(5,"div",196),P(6,Fjb,1,2,"input",197),E(7,"label",198),Q(8),G()(),E(9,"div",196),P(10,Gjb,1,2,"input",199),E(11,"label",200),Q(12),G()(),E(13,"div",
201),P(14,Hjb,1,2,"input",202),E(15,"label",203),Q(16),G()()(),E(17,"p",204)(18,"a",205),Q(19," Learn more "),G()()());a&2&&(a=N(5),A(6),D("ngIf",a.component&&a.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),A(2),D("ngIf",a.component&&a.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),A(2),D("ngIf",a.component&&a.component.accessLimit),A(2),T(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC),
" "),A(2),D("href",mib(a.documentationLinks),le))},Jjb=function(a){a&1&&(E(0,"a",209),Q(1," Learn more "),G());a&2&&(a=N(5),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),le))},Kjb=function(a){a&1&&(E(0,"span",50)(1,"div",51),Q(2,' Only individuals or group aliases may be granted issue edit permission for components designated as "Visible to Public". '),E(3,"div",52),H(4,"div",53)(5,"div",54),G()()())},Ljb=function(a){a&1&&(E(0,"a",210),Q(1," Learn more "),G());a&2&&(a=N(5),D("href",
a.documentationLinks.getRestrictedAccessHelpLink(),le))},Mjb=function(a){a&1&&(E(0,"a",211),Q(1," Learn more "),G());a&2&&(a=N(5),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),le))},Njb=function(a){if(a&1){var b=v();E(0,"b-button",212);M("onAction",function(){w(b);var c=N(5);return z(c.revertAccessPolicyChanges())});Q(1," Revert Changes ");G()}},Tjb=function(a){if(a&1){var b=v();E(0,"div")(1,"div",39);P(2,Ijb,20,7,"div",152);E(3,"div",144);Q(4," Access to issues is granted per component using the settings below. All settings provide access to view the component. ");
E(5,"a",153);Q(6,"Learn more");G()();E(7,"form",154)(8,"div",155)(9,"label",156)(10,"span",45);Q(11,"Component Admins");G();E(12,"p",157);Q(13," View component, edit component details and access controls, create issues (does not imply permission to view issues). ");G()();E(14,"b-multi-user-input",158);M("usersChange",function(c){w(b);var d=N(4);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{admins:c});return z()})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["component-admins"]=
c)});G()();E(15,"div",159)(16,"label",160)(17,"span",45);Q(18,"Create issues");G();E(19,"p",157);Q(20," View component, create issues (does not imply permission to view issues). ");G()();E(21,"b-multi-user-input",161);M("usersChange",function(c){w(b);var d=N(4);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{appenders:c});return z()})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["component-appenders"]=c)});G()();E(22,"div",162)(23,"label",163)(24,
"span",45);Q(25,"Issue Admins");G();E(26,"p",157);Q(27," View component, view issues, add comments and attachments, edit all issue data,");H(28,"br");Q(29," mark issues as spam, delete and undelete issues, change restriction level of content. ");P(30,Jjb,2,1,"a",164);G()();E(31,"b-multi-user-input",165);M("usersChange",function(c){w(b);var d=N(4);return z(Ku(d,{admins:c}))})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-admins"]=c)});G()();E(32,"div",166)(33,"label",167)(34,
"div")(35,"span",45);Q(36,"Edit issues");G();P(37,Kjb,6,0,"span",168);G();E(38,"p",157);Q(39," View component, view issues, add comments and attachments, edit all issue data. ");G()();E(40,"b-multi-user-input",169);M("usersChange",function(c){w(b);var d=N(4);return z(Ku(d,{editors:c}))})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-editors"]=c)});G()();E(41,"div",170)(42,"label",171)(43,"span",45);Q(44,"Comment on issues");G();E(45,"p",157);Q(46," View component, view issues, add comments and attachments. ");
G()();E(47,"b-multi-user-input",172);M("usersChange",function(c){w(b);var d=N(4);return z(Ku(d,{appenders:c}))})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-appenders"]=c)});G()();E(48,"div",173)(49,"label",174)(50,"span",45);Q(51,"View restricted+ content");G();E(52,"p",157);Q(53," View component, view issues, view restricted content, view restricted+ content. This ACL does not accept groups. ");P(54,Ljb,2,1,"a",175);G()();E(55,"b-multi-user-input",176);M("usersChange",
function(c){w(b);var d=N(4);return z(Ku(d,{restrictedPlusReaders:c}))})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-restricted-plus-readers"]=c)});G()();E(56,"div",177)(57,"label",178)(58,"span",45);Q(59,"View restricted content");G();E(60,"p",157);Q(61," View component, view issues, view restricted content. This ACL accepts groups. ");P(62,Mjb,2,1,"a",179);G()();E(63,"b-multi-user-input",180);M("usersChange",function(c){w(b);var d=N(4);return z(Ku(d,{restrictedReaders:c}))})("isValid",
function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-restricted-readers"]=c)});G()();E(64,"div",181)(65,"label",182)(66,"span",45);Q(67,"View issues");G();E(68,"p",157);Q(69," View component, view issues. ");G()();E(70,"b-multi-user-input",183);M("usersChange",function(c){w(b);var d=N(4);return z(Ku(d,{readers:c}))})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["issue-readers"]=c)});G()();E(71,"div",184)(72,"label",185)(73,"span",45);Q(74,"View Component (Auto-populated)");
G();E(75,"p",157);Q(76," View component (view all settings for this component, view custom fields for this and all parent components). ");H(77,"br");Q(78," This field is auto-populated with all users and groups listed in the above settings. ");G()();E(79,"b-multi-user-input",186);M("usersChange",function(c){w(b);var d=N(4);return z(d.componentReaders=c)})("isValid",function(c){w(b);var d=N(4);return z(d.aclFormValidity["component-readers"]=c)});G()();E(80,"div",187)(81,"span",58)(82,"b-checkbox",
188);M("change",function(c){w(b);var d=N(4);return z(d.implicitAccess.setValue(c))});G()();E(83,"div")(84,"strong",189);Q(85,"Expanded access");G();E(86,"div",61);Q(87," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. ");E(88,"a",190);Q(89,"Learn more");G()()()()();E(90,"div",71)(91,"b-button",133);M("onAction",function(){w(b);var c=N(4);return z(c.saveAccessPolicy())});Q(92," Update ");G();P(93,Njb,2,0,"b-button",191);G()()()}a&2&&(a=N(4),
A(2),D("ngIf",a.shouldShowAccessLimitChangeUi()),A(3),hg("href","",lp(a.documentationLinks),"#components",le),A(3),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("users",a.componentAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel())("containerChips",og(72,Lu,og(70,Ojb,a.componentAccessPolicyUnderEdit.inheritedAdmins))),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("users",a.componentAccessPolicyUnderEdit.appenders)("accessLevel",
a.getComponentAccessLevel())("containerChips",og(76,Lu,og(74,Pjb,a.componentAdmins)))("includeAliases",!0),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(8),D("ngIf",!a.sessionIsExternal),A(1),D("users",a.issueDefaultAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel()),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(2),Zf("field-label-with-help",a.isPublic()),
A(3),D("ngIf",a.isPublic()),A(3),D("users",a.issueDefaultAccessPolicyUnderEdit.editors)("accessLevel",a.getComponentAccessLevel())("containerChips",og(80,Lu,og(78,Qjb,a.issueDefaultAccessPolicyUnderEdit.admins)))("includeAliases",!a.isPublic()),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("users",a.issueDefaultAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",og(84,Lu,og(82,Rjb,a.issueCommenters)))("includeAliases",
!0),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("ngIf",!a.sessionIsExternal),A(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders)("accessLevel",a.getComponentAccessLevel())("customValidators",a.restrictedPlusReadersValidators),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("ngIf",!a.sessionIsExternal),A(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedReaders)("accessLevel",
a.getComponentAccessLevel())("containerChips",og(88,Lu,og(86,Sjb,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders))),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(6),D("users",a.issueDefaultAccessPolicyUnderEdit.readers)("accessLevel",a.getComponentAccessLevel())("containerChips",a.issueViewersChip)("includeAliases",!0)("includeViewAliases",!0),Uf("disabled",a.isAccessEditDisabled()?!0:null),A(9),D("users",a.componentReaders)("accessLevel",
a.getComponentAccessLevel()),Uf("disabled",!0),A(1),Zf("bv2-edit-resource-readonly",a.isAccessEditDisabled()),A(2),D("checked",a.implicitAccess.getValue())("disabled",a.isAccessEditDisabled()),A(6),D("href",lp(a.documentationLinks),le),A(3),D("disabled",!(Mu(a)||a.hasUnsavedAccessLimitChanges())||a.isSaving()||a.aclFormIsInvalid()),A(2),D("ngIf",a.isAdmin()))},Ujb=function(a){a&1&&(P(0,Ejb,1,0,"role-based-permissions",7),P(1,Tjb,94,90,"div",7));a&2&&(a=N(3),D("ngIf",a.enableRoleBasedPermissions),
A(1),D("ngIf",!a.enableRoleBasedPermissions))},Vjb=function(a){if(a&1){var b=v();E(0,"div")(1,"div",18)(2,"h2");Q(3);G();P(4,Cib,2,0,"span",19);E(5,"a",20);M("click",function(){w(b);var k=N(2);return z(k.trackClick("recentIssues"))});Q(6," (Recent Issues)");G();H(7,"b-access-level-indicator",21)(8,"b-tracker-chip-smart",22);G();E(9,"div",23);H(10,"b-component-breadcrumb",24)(11,"div",25);G();E(12,"mat-tab-group",26);M("selectedIndexChange",function(k){w(b);var q=N(2);return z(q.tabChange(k))});E(13,
"mat-tab",27);P(14,Dib,1,0,"ng-container",28);G();E(15,"mat-tab",29);P(16,Eib,1,0,"ng-container",28);G();E(17,"mat-tab",30);P(18,Fib,1,0,"ng-container",28);G();E(19,"mat-tab",31);P(20,Gib,1,0,"ng-container",28);G();E(21,"mat-tab",32);P(22,Hib,1,0,"ng-container",28);G()();P(23,pjb,64,29,"ng-template",null,33,Hg);P(25,ujb,4,7,"ng-template",null,34,Hg);P(27,yjb,5,5,"ng-template",null,35,Hg);P(29,Djb,3,2,"ng-template",null,36,Hg);P(31,Ujb,2,2,"ng-template",null,37,Hg);G()}if(a&2){var c=O(24),d=O(26),
e=O(28),f=O(30),h=O(32);a=N(2);A(3);lg(" Component ",a.component.componentId,": ",a.currentName," ");A(1);D("ngIf",a.isArchived());A(1);D("routerLinkObj",a.getRecentIssuesLink());A(2);D("accessLevel",a.getComponentAccessLevel());A(1);D("trackerId",a.component.trackerId);A(2);D("componentPathInfo",a.component.componentPathInfo)("isArchived",a.isArchived())("label","Parent Component");A(2);D("selectedIndex",a.selectedTabIndex);A(1);D("id",a.Tab.BASIC);A(1);D("ngTemplateOutlet",c);A(1);D("id",a.Tab.CUSTOM_FIELDS)("label",
a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");A(1);D("ngTemplateOutlet",d);A(1);D("id",a.Tab.FIELD_ORDERING);A(1);D("ngTemplateOutlet",e);A(1);D("id",a.Tab.TEMPLATES);A(1);D("ngTemplateOutlet",f);A(1);D("id",a.Tab.ACCESS);A(1);D("ngTemplateOutlet",h)}},Wjb=function(a){a&1&&(E(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."),H(3,"br"),E(4,"a",218),Q(5," Learn more "),G()(),E(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 "),
H(8,"br"),Q(9," so they can be scheduled for deletion. "),E(10,"a",219),Q(11," Learn more "),G()()());a&2&&(N(3),A(4),D("href","http://go/archived-components",le),A(6),D("href",Hu(),le))},Xjb=function(a){a&1&&(E(0,"span"),Q(1," : "),E(2,"b"),Q(3),G()());if(a&2){a=N().$implicit;var b=N(3),c;Zf("b-archive-warning-indef",!(null==(c=a.getRetentionSettings())?0:Ji(c,2)));A(3);kg(b.getRetentionPeriod(a))}},Yjb=function(a,b){a&1&&(E(0,"span")(1,"span"),Q(2),G(),P(3,Xjb,4,3,"span",220),H(4,"br"),G());a&2&&
(a=b.$implicit,b=N(3),A(2),kg(Pi(a,1)),A(1),D("ngIf","Archive"===b.archiveAction))},Zjb=function(a){if(a&1){var b=v();E(0,"h2",213);Q(1);G();E(2,"mat-dialog-content");P(3,Wjb,12,2,"span",7);E(4,"p");Q(5," The following components will be affected: ");G();E(6,"div",214);P(7,Yjb,5,2,"span",215);G()();E(8,"mat-dialog-actions")(9,"button",216);M("click",function(){w(b);var c=N(2);c.archive();c.isArchiving=!1;return z()});Q(10," Yes ");G();E(11,"button",217);M("click",function(){w(b);N(2).isArchiving=
!1;return z()});Q(12," No ");G()()}a&2&&(a=N(2),A(1),kg(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),A(2),D("ngIf","Archive"===a.archiveAction),A(4),D("ngForOf",a.descendants))},$jb=function(a){if(a&1){var b=v();I(0);E(1,"div",2)(2,"div",3)(3,"div",4)(4,"b-button",5);M("onAction",function(){w(b);var c=N();return z(c.back())});H(5,"b-icon",6);G();P(6,Aib,5,3,"ng-container",7);G()()();E(7,"div",8);P(8,Bib,
2,0,"div",9);P(9,Vjb,33,21,"div",7);G();P(10,Zjb,13,3,"ng-template",null,10,Hg);L()}a&2&&(a=N(),A(6),D("ngIf",a.component),A(2),D("ngIf",a.isLoading),A(1),D("ngIf",!a.isLoading&&a.component&&a.component.componentId))},akb=function(a){a&1&&(E(0,"div",221),H(1,"b-tracker-redirect",222),G());a&2&&(a=N(),A(1),D("component",a.component))},bkb=function(a){var b=null;if(a instanceof Nu)var c=a.getSourceTeamId();else c=a.sourceTeamId,b=a.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},ckb=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)}},dkb=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.getPathNamesList();a=a.getPathIdsList();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},ekb=function(a,b){a&1&&(E(0,"div",39),H(1,"b-team-breadcrumb",
40),G());a&2&&(a=b.ngIf,A(1),D("teamPath",a))},fkb=function(a,b){a&1&&(I(0),Q(1),L());a&2&&(a=b.ngIf,A(1),kg(a.trim()))},gkb=function(a){a&1&&Q(0," No description ")},hkb=function(a,b){a&1&&(I(0),H(1,"b-multi-user-input",41),L());a&2&&(a=b.ngIf,A(1),D("users",a),Uf("disabled",!0))},ikb=function(a){a&1&&(I(0),E(1,"p"),Q(2,"No child teams"),G(),L())},jkb=function(a,b){a&1&&(I(0),H(1,"br"),E(2,"a",44),Q(3),G(),L());a&2&&(a=b.$implicit,A(2),hg("routerLink","/teams/",a.getId(),"/edit"),A(1),kg(a.getName()))},
kkb=function(a){a&1&&P(0,jkb,4,2,"ng-container",43);a&2&&(a=N().ngIf,D("ngForOf",a))},lkb=function(a,b){a&1&&(I(0),P(1,ikb,3,0,"ng-container",18),P(2,kkb,1,1,"ng-template",null,42,Hg),L());if(a&2){a=b.ngIf;var c=O(3);A(1);D("ngIf",0===a.length)("ngIfElse",c)}},mkb=function(a){a&1&&(E(0,"a",48),Q(1),G());if(a&2){a=N().ngIf;var b;D("routerLinkObj",a.link);A(1);T(" ",null!==(b=null==a.slo?null:a.slo.getName())&&void 0!==b?b:a.id," ")}},nkb=function(a){a&1&&Q(0," None ")},okb=function(a,b){a&1&&(E(0,
"div",45),Q(1," Inherited SLO Policy: "),P(2,mkb,2,2,"a",46),P(3,nkb,1,0,"ng-template",null,47,Hg),G());if(a&2){a=b.ngIf;var c=O(4);A(2);D("ngIf",a.link)("ngIfElse",c)}},pkb=function(a,b){a&1&&(E(0,"a",49),Q(1),G());a&2&&(a=b.ngIf,D("routerLinkObj",a.link),A(1),T(" ",a.name," "))},qkb=function(a){a&1&&Q(0," None ")},rkb=function(a){a&1&&(I(0),H(1,"mat-icon",51),Q(2," on "),L())},skb=function(a){a&1&&(H(0,"mat-icon",52),Q(1," off "))},tkb=function(a){a&1&&(I(0),Q(1," Lock: "),P(2,rkb,3,0,"ng-container",
18),P(3,skb,2,0,"ng-template",null,50,Hg),L());if(a&2){var b=O(4);a=N(2);A(2);D("ngIf",a.originalSloLock)("ngIfElse",b)}},ukb=function(a){if(a&1){var b=v();E(0,"div",54)(1,"mat-checkbox",55);M("change",function(c){w(b);var d=N(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.getSlo().getSloId());return z()});E(2,"span");Q(3,"Override the inherited SLO");G()()()}a&2&&(a=N(3),A(1),D("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},vkb=function(a){if(a&
1){var b=v();E(0,"div",60)(1,"label",61);Q(2," Justification to override the org SLO ");G();H(3,"mat-icon",62);E(4,"textarea",63);M("ngModelChange",function(c){w(b);var d=N(4);return z(d.sloJustification$.next(c))});U(5,"async");G()()}a&2&&(a=N(4),A(3),D("matTooltip",a.justificationRequiredText),Uf("aria-label",a.justificationRequiredText),A(1),D("ngModel",V(5,4,a.sloJustification$))("disabled",!a.hasEditAccess))},wkb=function(a,b){a&1&&(E(0,"a",64),U(1,"async"),H(2,"mat-icon",9),G());a&2&&(a=b.ngIf,
b=N(4),ig("target",V(1,2,b.hasUnsavedChanges$)?"_blank":"_self"),D("routerLinkObj",a))},xkb=function(a){if(a&1){var b=v();I(0);P(1,vkb,6,6,"div",56);E(2,"div",14)(3,"mat-slide-toggle",57);M("ngModelChange",function(d){w(b);var e=N(3);return z(e.enableSloChecked=d)})("change",function(d){w(b);var e=N(3);return z(e.enableSloChecked=d.checked)});Q(4," Enable SLO ");G();E(5,"slo-picker",58);M("onSloSelect",function(d){w(b);var e=N(3);return z(e.onSloChange(d))});G();P(6,wkb,3,4,"a",59);U(7,"async");G();
L()}if(a&2){a=N().ngIf;var c=N(2);A(1);D("ngIf",!a.value);A(2);Zf("indented",!a.value);D("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);A(2);D("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");A(1);D("ngIf",V(7,9,c.sloPickerLink$))}},ykb=function(a,b){a&1&&(I(0),P(1,ukb,4,2,"div",53),P(2,xkb,8,11,"ng-container",6),L());a&2&&(a=b.ngIf,b=N(2),A(1),D("ngIf",!a.value),
A(1),D("ngIf",!b.isSloInheritEnabled))},zkb=function(a){if(a&1){var b=v();E(0,"div",14)(1,"mat-checkbox",65);M("change",function(c){w(b);var d=N(2);return z(d.sloLocked=c.checked)});E(2,"span");Q(3,"Lock for all child teams");G()()()}a&2&&(a=N(2),A(1),D("checked",a.sloLocked)("disabled",!a.canEditSloLock))},Ckb=function(a){if(a&1){var b=v();E(0,"div",14)(1,"div",20)(2,"label",21)(3,"span",16);Q(4," SLO lead ");G()();E(5,"span",22)(6,"div",23);Q(7," Single team lead receiving SLO reports of unassigned issues. ");
E(8,"div",24);H(9,"div",25)(10,"div",26);G()()()();E(11,"div");I(12);E(13,"b-multi-user-input",66);M("usersChange",function(c){w(b);var d=N(2);1<c.length||(d.sloLead=1===c.length?c[0]:"");return z()})("isValid",function(c){w(b);var d=N(2);return z(d.isSloLeadValid=c)});G();L();G()()}a&2&&(a=N(2),A(13),D("users",a.sloLead?og(5,Akb,a.sloLead):ng(7,Bkb))("customValidators",a.sloLeadUserValidators)("detailedUserValidators",a.sloLeadGooglerValidators)("maxUserAllowed",1),Uf("disabled",a.hasEditAccess?
null:!0))},Fkb=function(a){if(a&1){var b=v();E(0,"div",67)(1,"div",68)(2,"button",69);M("click",function(){w(b);var c=N().ngIf,d=N();return z(Dkb(d,c))});U(3,"async");Q(4," Update ");G();E(5,"button",70);M("click",function(){w(b);var c=N(2);return z(Ekb(c))});U(6,"async");Q(7," Revert changes ");G()()()}a&2&&(a=N(2),A(2),D("disabled",!V(3,2,a.hasUnsavedChanges$)),A(3),D("disabled",!V(6,4,a.hasUnsavedChanges$)))},Gkb=function(a){a&1&&(I(0),E(1,"p"),Q(2,"No mapped components"),G(),L())},Hkb=function(a,
b){a&1&&(E(0,"ul")(1,"li")(2,"a",44),Q(3),G()()());a&2&&(a=b.$implicit,A(2),hg("routerLink","/components/",a.componentId,"/manage"),A(1),T(" ",a.name," "))},Ikb=function(a){a&1&&(P(0,Hkb,4,2,"ul",43),U(1,"async"));a&2&&(a=N(3),D("ngForOf",V(1,1,a.associatedComponents$)))},Jkb=function(a,b){a&1&&(I(0),P(1,Gkb,3,0,"ng-container",18),P(2,Ikb,2,3,"ng-template",null,71,Hg),L());if(a&2){a=b.ngIf;var c=O(3);A(1);D("ngIf",0===a.length)("ngIfElse",c)}},Lkb=function(a,b){if(a&1){var c=v();I(0);E(1,"div",7)(2,
"h2");Q(3);E(4,"a",8);Q(5);H(6,"mat-icon",9);G()()();P(7,ekb,2,1,"div",10);U(8,"async");E(9,"mat-tab-group",11);M("selectedIndexChange",function(f){w(c);var h=N();return z(h.selectedTabIndex=f)})("selectedIndexChange",function(f){w(c);var h=N();return z(h.tabChange(f))});E(10,"mat-tab",12)(11,"div",13);Q(12," Team information on this page comes from ");E(13,"a",8);Q(14," Team Graph ");H(15,"mat-icon",9);G();Q(16," and is view only. ");E(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);Q(21,"Description");
G()();E(22,"div",17);P(23,fkb,2,1,"ng-container",18);P(24,gkb,1,0,"ng-template",null,19,Hg);G()()();E(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);Q(30," Team admins ");G();E(31,"span",22)(32,"div",23);Q(33," Team admins are either team editors or team leads from Team Graph. ");E(34,"div",24);H(35,"div",25)(36,"div",26);G()()()();P(37,hkb,2,2,"ng-container",6);U(38,"async");G()();E(39,"div",14)(40,"div",15)(41,"label")(42,"span",16);Q(43,"Child team(s)");G()();P(44,lkb,4,2,"ng-container",
6);U(45,"async");G()()()();E(46,"mat-tab",27)(47,"div",13)(48,"div",20)(49,"label",21)(50,"span",16);Q(51,"SLO configuration");G()();E(52,"span",22)(53,"div",28)(54,"strong");Q(55,"Careful!");G();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. ");E(57,"div",24);H(58,"div",25)(59,"div",26);G()()()();E(60,"div",29);P(61,okb,5,2,"div",30);U(62,"async");E(63,"div",31);Q(64," Policy Source: ");
P(65,pkb,2,2,"a",32);U(66,"async");P(67,qkb,1,0,"ng-template",null,33,Hg);G();E(69,"div",34);P(70,tkb,5,2,"ng-container",6);G()();H(71,"b-error-banner",35);P(72,ykb,3,2,"ng-container",6);U(73,"async");P(74,zkb,4,2,"div",36);P(75,Ckb,14,8,"div",36);P(76,Fkb,8,6,"div",37);G()();E(77,"mat-tab",38)(78,"div",13)(79,"div",14)(80,"div",15)(81,"label")(82,"span",16);Q(83," Component(s) that have mapped to this team ");G()()();P(84,Jkb,4,2,"ng-container",6);U(85,"async");G()()()();L()}if(a&2){a=b.ngIf;var d=
O(25),e=O(68);b=N();A(3);T(" Team ",a.getTeamId(),": ");A(1);hg("href","https://moma.corp.google.com/team/",a.getTeamId(),"",le);A(1);T(" ",a.getName()," ");A(2);D("ngIf",V(8,23,b.teamPath$));A(2);D("selectedIndex",b.selectedTabIndex);A(1);D("id",b.Tab.BASIC);A(3);hg("href","https://moma.corp.google.com/team/",a.getTeamId(),"",le);A(10);D("ngIf",a.getDescription())("ngIfElse",d);A(14);D("ngIf",V(38,25,b.adminsAndLeads$));A(7);D("ngIf",V(45,27,b.childTeams$));A(2);D("id",b.Tab.SLO);A(15);D("ngIf",
V(62,29,b.inheritedSlo$));A(4);D("ngIf",V(66,31,b.sloPolicySource$))("ngIfElse",e);A(5);D("ngIf",b.enableSloLockingUi);A(1);D("error",b.error);A(1);D("ngIf",og(37,Kkb,V(73,33,b.isRootTeam$)));A(2);D("ngIf",b.enableSloLockingUi);A(1);D("ngIf",b.enableSloLead);A(1);D("ngIf",b.hasEditAccess);A(1);D("id",b.Tab.MAPPINGS);A(7);D("ngIf",V(85,35,b.associatedComponents$))}},Okb=function(a,b){if(a&1){var c=v();E(0,"span",18);M("click",function(){w(c);var e=N().$implicit,f=N(2),h=f.selectedSignals.indexOf(e);
-1===h?f.selectedSignals.push(e):f.selectedSignals.splice(h,1);return z()});H(1,"mat-icon",19);Q(2);G()}if(a&2){a=b.$implicit;b=N().$implicit;var d=N(2);bg("chippy rounded ",a.className," margin-s-right");Zf("selected",d.selectedSignals.includes(b));D("matTooltip",Mkb(b));A(1);D("svgIcon",a.icon);A(1);lg(" ",a.text," (",Nkb(d,b),") ")}},Pkb=function(a,b){a&1&&(I(0),P(1,Okb,3,9,"span",17),L());a&2&&(a=b.$implicit,b=N(2),A(1),D("ngIf",b.SIGNAL_MAPPING[a]))},Qkb=function(a){if(a&1){var b=v();E(0,"div",
8)(1,"button",9);M("click",function(){w(b);var c=N();return z(c.fetchIssues())})("onHotkey",function(){w(b);var c=N();return z(c.fetchIssues())});H(2,"mat-icon",10);G();E(3,"h3",11);Q(4," Applied alerts ");G();E(5,"a",12);H(6,"mat-icon",13);G();E(7,"section",14)(8,"span",15);M("click",function(){w(b);var c=N();c.selectedSignals=[].concat(r(c.ALL_SIGNAL_TYPES));return z()});Q(9," All ");G();P(10,Pkb,2,1,"ng-container",16);G()()}a&2&&(a=N(),A(1),D("hotkey",a.HOTKEYS.REFRESH_ISSUE_LIST),A(7),Zf("selected",
a.selectedSignals.length===a.ALL_SIGNAL_TYPES.length),A(2),D("ngForOf",a.ALL_SIGNAL_TYPES))},Skb=function(a){if(a&1){var b=v();E(0,"div")(1,"button",20);M("click",function(){w(b);var c=N();return z(Rkb(c))});Q(2," Dismiss selected ");G()()}a&2&&(a=N(),A(1),D("disabled",a.dismissSelectedInProgress))},Tkb=function(a){a&1&&(E(0,"div",21),H(1,"b-spinner"),E(2,"span"),Q(3," Searching for issues needing attention..."),G()())},Ukb=function(a){a&1&&(E(0,"div",22),H(1,"img",23),E(2,"p",24),Q(3,"So empty"),
G(),E(4,"p",25),Q(5,"No issues currently need your attention!"),G()());a&2&&(a=N(),D("bFocus",!0),A(1),D("src",a.SPACE_EMPTY_STATE,le))},Vkb=function(a,b){a&1&&H(0,"th",42);a&2&&Uf("data-stable-column-name",b.column.name)},Xkb=function(a,b){if(a&1){var c=v();E(0,"th",43);I(1);E(2,"mat-pseudo-checkbox",44);M("click",function(d){w(c);var e=N(2);d.stopPropagation();return z(e.toggleAllIssueSelection())})("keydown.enter",function(d){w(c);var e=N(2);d.stopPropagation();return z(e.toggleAllIssueSelection())})("keydown.space",
function(d){w(c);var e=N(2);d.stopPropagation();return z(e.toggleAllIssueSelection())});G();L();G()}a&2&&(a=b.column,b=N(2),Uf("data-stable-column-name",a.name),A(2),D("state",b.getHeaderCheckboxState()),Uf("aria-checked",Wkb(b)))},Ykb=function(a,b){a&1&&H(0,"th");a&2&&Uf("data-stable-column-name",b.column.name)},Zkb=function(a,b){a&1&&H(0,"th");a&2&&Uf("data-stable-column-name",b.column.name)},$kb=function(a,b){a&1&&(E(0,"th"),I(1),H(2,"pop-grid-default-th",45),L(),G());a&2&&(a=b.column,Uf("data-stable-column-name",
a.name),A(2),D("column",a))},alb=function(a){a&1&&H(0,"td",42)},blb=function(a,b){if(a&1){var c=v();E(0,"td",43);I(1);E(2,"mat-pseudo-checkbox",46);M("click",function(d){var e=w(c),f=e.index;e=e.row;var h=N(2);d.stopPropagation();return z(h.onCheckboxClicked(d,f,e))});G();L();G()}a&2&&(a=b.row,A(2),D("state",a.selected?"checked":"unchecked"),Uf("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},clb=function(a,b){if(a&1){var c=v();E(0,"td",47);I(1);E(2,"b-star-toggle",48);M("starClicked",
function(){var d=w(c).row,e=N(2);return z(e.toggleStar(d))});G();L();G()}a&2&&(a=b.row,b=N(2),A(2),D("starred",a.starred)("disabled",b.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue"))},elb=function(a,b){if(a&1){var c=v();E(0,"td",49);I(1);E(2,"a",50);M("click",function(){var d=w(c).row,e=N(2);return z(dlb(e,d.issueId))});Q(3);G();L();G()}a&2&&(a=b.row,b=N(2),A(2),D("href",b.paths.editIssue(a.issueId),le),Uf("title",a.title),A(1),T(" ",a.issueId," "))},
glb=function(a,b){a&1&&(I(0),E(1,"span",52),H(2,"mat-icon",19),G(),L());if(a&2){a=b.$implicit;b=N().$implicit;var c=N(3);A(1);bg("chippy rounded ",a.className," margin-xs-right");Zf("selected",c.selectedSignals.includes(b.signalType));D("matTooltip",flb(c,b));A(1);D("svgIcon",a.icon)}},hlb=function(a,b){a&1&&(I(0),P(1,glb,3,7,"ng-container",3),L());a&2&&(a=b.$implicit,b=N(3),A(1),D("ngIf",b.SIGNAL_MAPPING[a.signalType]))},ilb=function(a,b){a&1&&(E(0,"td",51),P(1,hlb,2,1,"ng-container",16),G());a&
2&&(a=b.row,A(1),D("ngForOf",a.signals))},klb=function(a,b){if(a&1){var c=v();E(0,"td");I(1);E(2,"button",20);M("click",function(){var d=w(c).row,e=N(2);return z(jlb(e,d))});Q(3," Dismiss ");G();L();G()}a&2&&(a=b.row,b=N(2),A(2),D("disabled",b.dismissInProgress[a.issueId]))},llb=function(a){a&1&&H(0,"archived-issue-indicator")},mlb=function(a,b){a&1&&H(0,"b-hotlist-chip-smart",62);a&2&&D("id",b.$implicit)("removable",!1)},nlb=function(a){a&1&&(E(0,"div",60),P(1,mlb,1,2,"b-hotlist-chip-smart",61),
G());a&2&&(a=N().row,A(1),D("ngForOf",a.hotlistId))},olb=function(a,b){if(a&1){var c=v();E(0,"td",53);U(1,"async");I(2);E(3,"div",54);U(4,"async");P(5,llb,1,0,"archived-issue-indicator",3);H(6,"b-access-level-indicator",55)(7,"b-retention-chip",56);E(8,"div",57)(9,"a",58);M("click",function(){var h=w(c).row,k=N(2);return z(dlb(k,h.issueId))});Q(10);G()();P(11,nlb,2,1,"div",59);U(12,"async");G();L();G()}if(a&2){a=b.row;b=N(2);var d,e,f;Zf("bv2-grid-cell-variable-height",null==(d=V(1,15,b.listViewPrefs$))?
null:d.wrapTitles);A(3);Zf("bv2-grid-cell-flex-wrap",null==(e=V(4,17,b.listViewPrefs$))?null:e.wrapTitles);A(2);D("ngIf",a.archived);A(1);D("accessLevel",a.accessLevel)("compactMode",!0);A(1);D("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);A(2);D("href",b.paths.editIssue(a.issueId),le);Uf("title",a.title);A(1);T(" ",a.title," ");A(1);D("ngIf",null==(f=V(12,19,b.listViewPrefs$))?null:f.showHotlists)}},plb=function(a,b){a&1&&(E(0,"td",
63),I(1),E(2,"div",64),Q(3),G(),L(),G());a&2&&(a=b.row,b=N(2),A(2),Zf("low",b.isLowPriority(a))("high",b.isHighPriority(a))("p0",b.isP0Priority(a)),A(1),T(" P",a.priority," "))},qlb=function(a){a&1&&H(0,"mat-icon",70);if(a&2){a=N().$implicit;var b=N(4);D("svgIcon",b.STATUS_ICON[a])}},rlb=function(a){a&1&&(I(0),Q(1),L());if(a&2){a=N().$implicit;var b=N(4);A(1);kg(b.STATUS_TERSE[a])}},slb=function(a){a&1&&(E(0,"span"),Q(1),G());if(a&2){a=N().$implicit;var b=N(4);bg("chippy status-",a,"");A(1);T(" ",
b.STATUS_TERSE[a]," ")}},tlb=function(a,b){a&1&&(I(0),E(1,"span",66),U(2,"async"),P(3,qlb,1,1,"mat-icon",67),P(4,rlb,2,1,"ng-container",68),P(5,slb,2,4,"span",69),G(),L());if(a&2){a=b.$implicit;b=N(4);var c;A(1);D("ngSwitch",null==(c=V(2,4,b.listViewPrefs$))?null:null==c.fieldStatus?null:c.fieldStatus.mode)("title",b.STATUS_FULL_TEXT[a]===b.STATUS_TERSE[a]?"":b.STATUS_FULL_TEXT[a]);A(2);D("ngSwitchCase","icon");A(1);D("ngSwitchCase","plain")}},ulb=function(a){a&1&&(I(0),P(1,tlb,6,6,"ng-container",
3),L());if(a&2){a=N().row;var b=N(2);A(1);D("ngIf",b.convertIssueStatusStrToTag(a.status))}},vlb=function(a){a&1&&(E(0,"td",65),P(1,ulb,2,1,"ng-container",3),G());a&2&&(a=N(2),A(1),D("ngIf",a.isIssueRow()))},wlb=function(a,b){a&1&&(E(0,"b-person-hovercard",73),Q(1),G());a&2&&(a=b.ngIf,b=N().row,D("email",a),A(1),T(" ",b.assignee," "))},xlb=function(a){a&1&&(E(0,"span"),Q(1,"--"),G())},ylb=function(a,b){a&1&&(E(0,"td",71),I(1),P(2,wlb,2,2,"b-person-hovercard",72),U(3,"omitObfuscatedEmail"),P(4,xlb,
2,0,"span",3),L(),G());a&2&&(a=b.row,A(2),D("ngIf",V(3,2,a.assignee)),A(2),D("ngIf",!a.assignee))},Alb=function(a){if(a&1){var b=v();E(0,"div",26)(1,"pop-grid",27);M("focusedRowIndexChange",function(c){w(b);var d=N();return z(d.focusedRowIndex=c)})("rowClick",function(c){w(b);var d=N();return z(d.goToIssue(c.id,c.isRead,c.event))})("sortChange",function(c){w(b);var d=N();return z(d.onSortChange(c))});P(2,Vkb,1,1,"th",28);P(3,Xkb,3,3,"th",29);P(4,Ykb,1,1,"th",30);P(5,Zkb,1,1,"th",30);P(6,$kb,3,2,"th",
31);P(7,alb,1,0,"td",32);P(8,blb,3,3,"td",33);P(9,clb,3,4,"td",34);P(10,elb,4,3,"td",35);P(11,ilb,2,1,"td",36);P(12,klb,4,1,"td",37);P(13,olb,13,21,"td",38);P(14,plb,4,7,"td",39);P(15,vlb,2,1,"td",40);P(16,ylb,5,4,"td",41);G()()}a&2&&(a=N(),A(1),D("list",zlb(a))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("enableDragDropHeader",!1)("rowLabelRenderer",a.issueDescription)("sort",a.sortConfig),A(1),D("forHeaderCell","focused"),A(1),D("forHeaderCell","selected"),A(1),D("forHeaderCell","starred"),
A(1),D("forHeaderCell","dismiss"),A(2),D("forViewCell","focused"),A(1),D("forViewCell","selected"),A(1),D("forViewCell","starred"),A(1),D("forViewCell","issueId"),A(1),D("forViewCell","alerts"),A(1),D("forViewCell","dismiss"),A(1),D("forViewCell","title"),A(1),D("forViewCell","priority"),A(1),D("forViewCell","status"),A(1),D("forViewCell","assignee"))},Blb=function(a){a&1&&cg(0)},Dlb=function(a,b){a&1&&(I(0),P(1,Blb,1,0,"ng-container",7),L());if(a&2){a=b.$implicit;N(3);var c=O(5);A(1);D("ngTemplateOutlet",
c)("ngTemplateOutletContext",og(2,Clb,a))}},Elb=function(a){a&1&&(E(0,"div",4)(1,"div",5),Q(2,"TEAMFOOD"),G(),P(3,Dlb,2,4,"ng-container",6),U(4,"async"),G());a&2&&(a=N(2),A(3),D("ngForOf",V(4,1,a.beapFeaturesTF$)))},Flb=function(a){a&1&&cg(0)},Glb=function(a,b){a&1&&(I(0),P(1,Flb,1,0,"ng-container",7),L());if(a&2){a=b.$implicit;N(3);var c=O(5);A(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",og(2,Clb,a))}},Hlb=function(a){a&1&&(E(0,"div",4)(1,"div",5),Q(2,"EARLY ACCESS"),G(),P(3,Glb,2,4,"ng-container",
6),U(4,"async"),G());a&2&&(a=N(2),A(3),D("ngForOf",V(4,1,a.beapFeaturesEA$)))},Ilb=function(a){a&1&&(I(0),P(1,Elb,5,3,"div",3),U(2,"async"),P(3,Hlb,5,3,"div",3),U(4,"async"),L());a&2&&(a=N(),A(1),D("ngIf",V(2,2,a.hasFeaturesTF$)),A(2),D("ngIf",V(4,4,a.hasFeaturesEA$)))},Jlb=function(a){a&1&&(E(0,"div",8),Q(1,"No available experiments"),G())},Klb=function(a){a&1&&(E(0,"a",23),Q(1," Learn more"),G());a&2&&(a=N().feature,Uf("href",a.getLearnMoreLink(),le))},Llb=function(a){a&1&&(E(0,"b-callout",24)(1,
"b-callout-body"),Q(2," Reload page to see changes. "),G()())},Nlb=function(a,b){if(a&1){var c=v();E(0,"div",9)(1,"div",10)(2,"div",11);H(3,"mat-slide-toggle",12);U(4,"featureState");U(5,"featureState");G();E(6,"div",13)(7,"div",14);Q(8);G();E(9,"span",15);Q(10);P(11,Klb,2,1,"a",16);G();E(12,"div",17)(13,"a",18);M("click",function(){var d=w(c).feature,e=N();d=Ji(d,1);e.linkClicked[d]=!0;return z()});H(14,"mat-icon",19);Q(15);U(16,"featureState");G()();P(17,Llb,3,0,"b-callout",20);G();E(18,"div",21);
H(19,"b-app-beap-state-indicator",22);G()()()}a&2&&(a=b.feature,b=N(),A(3),D("checked",V(4,10,a.getState()))("matTooltip",V(5,12,a.getState())?"Opted in":"Opted out")("disabled",!0),A(5),T(" ",a.getTitle()," "),A(2),T("",a.getDescription()," "),A(1),D("ngIf",a.getLearnMoreLink()),A(2),Uf("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+Ji(a,1),le),A(2),T(" ",V(16,14,a.getState())?"Opt out":"Opt in"," "),A(2),D("ngIf",Mlb(b,Ji(a,1))),A(2),D("experimentId",Ji(a,1)))},Olb=function(a){a&
1&&(E(0,"mat-option",29),Q(1),G());a&2&&(a=N().$implicit,D("value",a),A(1),T(" ",a.name," "))},Plb=function(a,b){a&1&&(I(0),P(1,Olb,2,2,"mat-option",28),L());a&2&&(a=b.$implicit,A(1),D("ngIf",a.shouldDisplay()))},Qlb=function(a,b){a&1&&(E(0,"mat-option",32),Q(1),G());a&2&&(a=b.$implicit,D("value",a.id),A(1),T(" ",a.name," "))},Slb=function(a){if(a&1){var b=v();E(0,"mat-form-field",8)(1,"mat-select",30);M("ngModelChange",function(c){w(b);var d=N();return z(d.preferredHomepage.selectedOptionId=c)})("selectionChange",
function(){w(b);var c=N();return z(Rlb(c.preferredHomepage))});P(2,Qlb,2,2,"mat-option",31);G()()}a&2&&(a=N(),A(1),D("ngModel",a.preferredHomepage.selectedOptionId),A(1),D("ngForOf",a.preferredHomepage.selectedMainOption.options))},Tlb=function(a,b){a&1&&(E(0,"mat-option",33),Q(1),G());a&2&&(a=b.$implicit,D("value",a.value),A(1),T(" ",a.label," "))},Ulb=function(a,b){a&1&&(E(0,"mat-option",33),Q(1),G());a&2&&(a=b.$implicit,D("value",a.value),A(1),T(" ",a.label," "))},Vlb=function(a,b){a&1&&(E(0,"mat-option",
33),Q(1),G());a&2&&(a=b.$implicit,D("value",a.value),A(1),T(" ",a.label," "))},Wlb=function(a){if(a&1){var b=v();E(0,"div",6)(1,"label",34);Q(2," Show SnipIt images inline in comments? ");G();E(3,"b-slide-toggle",35);M("modelChange",function(c){w(b);var d=N();d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return z()});G()()}a&2&&(a=N(),A(3),D("model",a.getShowInlineImages()))},Xlb=function(a){if(a&1){var b=v();E(0,"div");H(1,"hr");E(2,"div",1)(3,"div",2);Q(4," Other ");
G();E(5,"div",5)(6,"div",6)(7,"label",36);Q(8," Enable bug screensaver? ");G();E(9,"b-slide-toggle",37);M("modelChange",function(c){w(b);var d=N();return z(d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c)})("modelChange",function(){w(b);var c=N(),d=c.userPreferences.bugScreensaverPreferences.enableBugScreensaver;return z(c.save("saveBugScreensaverPreferences",void 0===d?"undefined":d.toString()))});G()()()()()}a&2&&(a=N(),A(9),D("model",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},
Ylb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},Zlb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},$lb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},amb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),
G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},bmb=function(a){if(a&1){var b=v();E(0,"div",5)(1,"label",22);Q(2," Collaborator ");G();E(3,"mat-form-field",23)(4,"mat-select",8);M("ngModelChange",function(c){w(b);var d=N();return z(d.userPreferences.notificationPreferences.collaboratorPriority=c)})("selectionChange",function(){w(b);var c=N();return z(c.save("saveNotificationPreferences"))});P(5,amb,3,4,"mat-option",9);G()()()}a&2&&(a=N(),A(4),D("ngModel",a.userPreferences.notificationPreferences.collaboratorPriority),
A(1),D("ngForOf",a.priorities))},cmb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},dmb=function(a,b){a&1&&(E(0,"mat-option",21),Q(1),U(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),A(1),T(" ",V(2,2,a)," "))},emb=function(a){if(a&1){var b=v();E(0,"button",3);M("click",function(){w(b);var c=N();return z(c.onBack.emit())});H(1,"mat-icon",4);G()}a&2&&(a=N(),D("matTooltip",a.backLabel))},fmb=
function(a){if(a&1){var b=v();E(0,"button",3);M("click",function(){w(b);var c=N();return z(c.onRefresh.emit())});H(1,"mat-icon",5);G()}a&2&&(a=N(),D("matTooltip",a.refreshLabel))},gmb=function(a){a&1&&(E(0,"h2"),Q(1),G());a&2&&(a=N(),A(1),kg(a.title))},hmb=function(a){a&1&&(E(0,"mat-tab",6)(1,"div",3),H(2,"b-beap-settings"),G()())},imb=function(a){if(a&1){var b=v();E(0,"b-star-toggle",13);M("starClicked",function(){w(b);var c=N(2);return z(c.toggleStar())});G()}a&2&&(a=N(2),D("starMessage","Star this bookmark group")("unStarMessage",
"Un-star this bookmark group")("starred",a.isStarred))},jmb=function(a){a&1&&H(0,"b-star-toggle",14);a&2&&D("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)},kmb=function(a,b){a&1&&(E(0,"li")(1,"a",15),Q(2),G()());a&2&&(a=b.$implicit,b=N(2),A(1),D("href",b.getUrl(a),le)("title",a.description),A(1),T(" ",b.getDisplayName(a)," "))},lmb=function(a){if(a&
1){var b=v();E(0,"div")(1,"div",4)(2,"div",5);P(3,imb,1,3,"b-star-toggle",6);P(4,jmb,1,4,"b-star-toggle",7);E(5,"span",8);Q(6);G();E(7,"button",9);M("click",function(){w(b);var c=N();return z(c.openEditBookmarkGroup())});G()();E(8,"div",10);Q(9);G()();E(10,"ul",11);P(11,kmb,3,3,"li",12);G()()}a&2&&(a=N(),A(3),D("ngIf",!a.userIsAdmin),A(1),D("ngIf",a.userIsAdmin),A(2),T("Bookmark Group: ",a.bookmarkGroup.name," "),A(3),kg(a.bookmarkGroup.description),A(2),D("ngForOf",a.bookmarkGroup.item))},mmb=function(a){if(a&
1){var b=v();E(0,"b-star-toggle",16);M("starClicked",function(){w(b);var c=N(2);return z(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});G()}a&2&&(a=N(2),D("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},nmb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&D("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)},omb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&D("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},pmb=function(a){a&1&&(E(0,"div",18),Q(1," Hotlist not found. "),G());a&2&&D("bFocus",!0)},qmb=function(a){a&1&&(E(0,"div"),Q(1," Loading details... "),G())},rmb=function(a){a&1&&(E(0,"span",25),Q(1," (archived) "),G())},smb=function(a){a&1&&(E(0,"span",26),Q(1," \u00a0(changed) "),G())},tmb=function(a){if(a&1){var b=v();E(0,"div")(1,"span",19);Q(2," Hotlist: ");
E(3,"span",20);Q(4);G()();P(5,rmb,2,0,"span",21);E(6,"div",22)(7,"button",23);M("click",function(){w(b);var c=N(2);return z(c.openEditHotlist())});G()();P(8,smb,2,0,"span",24);G()}a&2&&(a=N(2),A(3),D("matTooltip",a.hotlist.description),A(1),T(" ",a.hotlist.name," "),A(1),D("ngIf",a.hotlist.archived),A(3),D("ngIf",a.hasParamChanges()))},umb=function(a){if(a&1){var b=v();E(0,"div",27)(1,"button",28);M("click",function(){w(b);var c=N(2);return z(c.save())});Q(2,"Save ");G();E(3,"button",29);M("click",
function(){w(b);var c=N(2);return z(c.discardChanges())});Q(4,"Discard changes ");G()()}},vmb=function(a){a&1&&(E(0,"div",9),P(1,mmb,1,3,"b-star-toggle",10),P(2,nmb,1,4,"b-star-toggle",11),P(3,omb,1,4,"b-star-toggle",11),E(4,"div",12),P(5,pmb,2,1,"div",13),P(6,qmb,2,0,"div",14),P(7,tmb,9,4,"div",14),G(),P(8,umb,5,0,"div",15),G());a&2&&(a=N(),A(1),D("ngIf",!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),A(1),D("ngIf",a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),A(1),D("ngIf",!a.hotlist),
A(2),D("ngIf",!a.hotlist&&!a.hotlistLoading),A(1),D("ngIf",a.hotlistLoading),A(1),D("ngIf",a.hotlist&&!a.hotlistLoading),A(1),D("ngIf",a.hasParamChanges()))},wmb=function(a){a&1&&(E(0,"div",30),H(1,"b-spinner"),E(2,"span"),Q(3),G()());a&2&&(a=N(),A(3),T(" Loading hotlist: ",a.hotlistId,""))},xmb=function(a){a&1&&(E(0,"div",31),Q(1),G());a&2&&(a=N(),D("bFocus",!0),A(1),T(" No issues in hotlist ",a.hotlistId,". "))},ymb=function(a){if(a&1){var b=v();E(0,"div",32)(1,"b-issues-grid",33);M("init",function(c){w(b);
var d=N();return z(d.resultsGrid=c)})("focusedRowIndexChange",function(c){w(b);var d=N();return z(d.focusedRowIndex=c)})("columnsChange",function(c){w(b);var d=N();return z(d.issueColumns=c)})("sortChange",function(c){w(b);var d=N();return z(d.setSort(c.field,c.direction))})("rowClick",function(c){w(b);var d=N();return z(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){w(b);var d=N();return z(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){w(b);var c=N();return z(Au(c,
c.page,1))})("onPrevPage",function(){w(b);var c=N();return z(Au(c,c.page,-1))});G()()}a&2&&(a=N(),A(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},zmb=function(a){a&1&&(E(0,"div"),Q(1," Loading details... "),G())},Amb=function(a){a&1&&(E(0,"div"),Q(1," Saved search not found. "),G())},Bmb=function(a){a&1&&(E(0,"span",15),Q(1," \u00a0(changed) "),G())},Cmb=function(a){if(a&1){var b=
v();E(0,"div",11);Q(1," Saved search: ");E(2,"span",12);Q(3);G();E(4,"button",13);M("click",function(){w(b);var c=N(2);return z(c.openEditSavedSearch())});G();P(5,Bmb,2,0,"span",14);G()}a&2&&(a=N(2),A(2),D("matTooltip",a.savedSearch.description),A(1),T(" ",a.savedSearch.name," "),A(2),D("ngIf",a.hasParamChanges()))},Dmb=function(a){a&1&&(E(0,"div",9),P(1,zmb,2,0,"div",8),P(2,Amb,2,0,"div",8),P(3,Cmb,6,3,"div",10),G());a&2&&(a=N(),A(1),D("ngIf",!a.savedSearch&&a.isLoading),A(1),D("ngIf",!a.savedSearch&&
!a.isLoading),A(1),D("ngIf",a.savedSearch))},Emb=function(a){if(a&1){var b=v();E(0,"div",16)(1,"button",17);M("click",function(){w(b);var c=N();return z(c.save())});Q(2,"Save ");G();E(3,"button",18);M("click",function(){w(b);var c=N();return z(c.discardChanges())});Q(4,"Discard changes ");G();E(5,"span",19)(6,"a",20);M("click",function(){w(b);var c=N();Mo(c.analytics,c.ANALYTICS_CATEGORY,"backToNormalSearch");return z()});Q(7," Back to normal search");G()()()}a&2&&(a=N(),A(6),D("href",a.exitLink,
le))},Fmb=function(a){a&1&&(E(0,"span"),Q(1),G());a&2&&(a=N(3),A(1),T(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},Gmb=function(a){a&1&&(E(0,"div",24),H(1,"b-spinner"),P(2,Fmb,2,1,"span",8),G());a&2&&(a=N(2),A(2),D("ngIf",a.searchParams))},Hmb=function(a){a&1&&(E(0,"div",25),Q(1," No issues in saved search. "),G());a&2&&D("bFocus",!0)},Imb=function(a){if(a&1){var b=v();E(0,"div",26)(1,"b-issues-grid",27);M("init",function(c){w(b);var d=N(2);return z(d.resultsGrid=c)})("focusedRowIndexChange",
function(c){w(b);var d=N(2);return z(d.focusedRowIndex=c)})("columnsChange",function(c){w(b);var d=N(2);return z(d.issueColumns=c)})("sortChange",function(c){w(b);var d=N(2);return z(d.setSort(c.field,c.direction))})("rowClick",function(c){w(b);var d=N(2);return z(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){w(b);var c=N(2);return z(Au(c,c.page,1))})("onPrevPage",function(){w(b);var c=N(2);return z(Au(c,c.page,-1))});G()()}a&2&&(a=N(2),A(1),D("searchResults",a.searchResults)("focusedRowIndex",
a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},Jmb=function(a){a&1&&(E(0,"div"),P(1,Gmb,3,1,"div",21),P(2,Hmb,2,1,"div",22),P(3,Imb,2,5,"div",23),G());a&2&&(a=N(),A(1),D("ngIf",a.isLoading),A(1),D("ngIf",!a.isLoading&&!a.hasResults()),A(1),D("ngIf",!a.isLoading&&a.hasResults()))},Kmb=function(){return new Ou(new Pu("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s"))},Lmb=function(a){var b=0;return function(){return b<
a.length?{done:!1,value:a[b++]}:{done:!0}}},Qu="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},Mmb=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");},ni=Mmb(this),Ru=function(a,b){if(b)a:{var c=ni;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&&Qu(c,a,{configurable:!0,writable:!0,value:b})}};
Ru("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Qu(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});
Ru("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=ni[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&Qu(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Nmb(Lmb(this))}})}return a});Ru("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var Nmb=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Su=function(a){return a.raw=a},n=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Lmb(a)}},gf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},r=function(a){return a instanceof Array?a:gf(n(a))},Tu=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Omb="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)Tu(d,e)&&(a[e]=d[e])}return a};Ru("Object.assign",function(a){return a||Omb});var Pmb="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Qmb;
if("function"==typeof Object.setPrototypeOf)Qmb=Object.setPrototypeOf;else{var Rmb;a:{var Smb={a:!0},Tmb={};try{Tmb.__proto__=Smb;Rmb=Tmb.a;break a}catch(a){}Rmb=!1}Qmb=Rmb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var Uu=Qmb,X=function(a,b){a.prototype=Pmb(b.prototype);a.prototype.constructor=a;if(Uu)Uu(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},Vu=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
Vu.prototype.start_=function(){if(this.isRunning_)throw new TypeError("g");this.isRunning_=!0};Vu.prototype.next_=function(a){this.yieldResult=a};Vu.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Vu.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var Re=function(a,b,c){a.nextAddress=c;return{value:b}};Vu.prototype.jumpTo=function(a){this.nextAddress=a};
var Ve=function(a){a.nextAddress=0},Qe=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},Wu=function(a,b){a.nextAddress=b;a.catchAddress_=0},Ue=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Se=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},Te=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},Xu=function(a){this.context_=new Vu;this.program_=a};Xu.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Umb(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Yu(this)};
var Vmb=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Umb(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Yu(a)};Xu.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Umb(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Yu(this)};
var Umb=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("f`"+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),Yu(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Yu(a)},Yu=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}},Wmb=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Vmb(a,b)};this[Symbol.iterator]=function(){return this}},rVa=function(a){var b=sVa;a=new Wmb(new Xu(a));Uu&&b.prototype&&Uu(a,
b.prototype);return a},Xmb=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())})},Pe=function(a){return Xmb(new Wmb(new Xu(a)))},Pfa=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))})},Uc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Ru("Reflect.setPrototypeOf",function(a){return a?a:Uu?function(b,c){try{return Uu(b,c),!0}catch(d){return!1}}:null});
Ru("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=ni.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(t){this.asyncThrow_(t)}}}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(t){return function(x){q||(q=!0,t.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("h"));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("i`"+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=ni.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=ni.CustomEvent,k=ni.Event,q=ni.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=ni.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(t){q.reject(t)}};e.prototype.then=function(h,k){function q(F,K){return"function"==typeof F?function(J){try{t(F(J))}catch(R){x(R)}}:
K}var t,x,y=new e(function(F,K){t=F;x=K});this.callWhenSettled_(q(h,t),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(t.state_){case 1:h(t.result_);break;case 2:k(t.result_);break;default:throw Error("j`"+t.state_);}}var t=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 t=n(h),x=t.next();!x.done;x=t.next())c(x.value).callWhenSettled_(k,q)})};e.all=function(h){var k=n(h),q=k.next();return q.done?c([]):new e(function(t,x){function y(J){return function(R){F[J]=R;K--;0==K&&t(F)}}var F=[],K=0;do F.push(void 0),K++,c(q.value).callWhenSettled_(y(F.length-1),x),q=k.next();while(!q.done)})};return e});var Zu=function(a,b,c){if(null==a)throw new TypeError("k`"+c);if(b instanceof RegExp)throw new TypeError("l`"+c);return a+""};
Ru("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Zu(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}});var Ymb=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}};Ru("Array.prototype.find",function(a){return a?a:function(b,c){return Ymb(this,b,c).v}});
Ru("WeakMap",function(a){function b(){}function c(q){var t=typeof q;return"object"===t&&null!==q||"function"===t}function d(q){if(!Tu(q,f)){var t=new b;Qu(q,f,{value:t})}}function e(q){var t=Object[q];t&&(Object[q]=function(x){if(x instanceof b)return x;Object.isExtensible(x)&&d(x);return t(x)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),t=Object.seal({}),x=new a([[q,2],[t,3]]);if(2!=x.get(q)||3!=x.get(t))return!1;x.delete(q);x.set(t,4);return!x.has(q)&&4==x.get(t)}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=n(q);for(var t;!(t=q.next()).done;)t=t.value,this.set(t[0],t[1])}};k.prototype.set=function(q,t){if(!c(q))throw Error("m");d(q);if(!Tu(q,f))throw Error("n`"+q);q[f][this.id_]=t;return this};k.prototype.get=function(q){return c(q)&&Tu(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&Tu(q,f)&&Tu(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&Tu(q,f)&&Tu(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Ru("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(n([[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 t=q.entries(),x=t.next();if(x.done||x.value[0]!=k||"s"!=x.value[1])return!1;x=t.next();return x.done||4!=x.value[0].x||"t"!=x.value[1]||!t.next().done?!1:!0}catch(y){return!1}}())return a;var b=new WeakMap,c=function(k){this.data_={};this.head_=
f();this.size=0;if(k){k=n(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 t=d(this,k);t.list||(t.list=this.data_[t.id]=[]);t.entry?t.entry.value=q:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:k,value:q},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.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.data_[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.data_={};this.head_=this.head_.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 t=this.entries(),x;!(x=t.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 t=q&&typeof q;"object"==t||"function"==t?b.has(q)?t=b.get(q):(t=""+ ++h,b.set(q,t)):t="p_"+q;var x=k.data_[t];if(x&&Tu(k.data_,t))for(k=0;k<x.length;k++){var y=x[k];if(q!==q&&y.key!==y.key||q===y.key)return{id:t,list:x,index:k,entry:y}}return{id:t,list:x,index:-1,
entry:void 0}},e=function(k,q){var t=k.head_;return Nmb(function(){if(t){for(;t.head!=k.head_;)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:q(t)};t=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Ru("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Ru("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});Ru("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});var Zmb=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};
Ru("Array.prototype.entries",function(a){return a?a:function(){return Zmb(this,function(b,c){return[b,c]})}});Ru("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}});
Ru("Array.prototype.keys",function(a){return a?a:function(){return Zmb(this,function(b){return b})}});Ru("Array.prototype.values",function(a){return a?a:function(){return Zmb(this,function(b,c){return c})}});Ru("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 $u=function(a){return a?a:Array.prototype.fill};
Ru("Int8Array.prototype.fill",$u);Ru("Uint8Array.prototype.fill",$u);Ru("Uint8ClampedArray.prototype.fill",$u);Ru("Int16Array.prototype.fill",$u);Ru("Uint16Array.prototype.fill",$u);Ru("Int32Array.prototype.fill",$u);Ru("Uint32Array.prototype.fill",$u);Ru("Float32Array.prototype.fill",$u);Ru("Float64Array.prototype.fill",$u);Ru("Object.setPrototypeOf",function(a){return a||Uu});
Ru("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(n([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=
n(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});Ru("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Tu(b,d)&&c.push([d,b[d]]);return c}});
Ru("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Zu(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}});Ru("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});Ru("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ymb(this,b,c).i}});
Ru("Array.prototype.flatMap",function(a){return a?a:function(b,c){for(var d=[],e=0;e<this.length;e++){var f=b.call(c,this[e],e,this);Array.isArray(f)?d.push.apply(d,f):d.push(f)}return d}});Ru("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});Ru("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}});
Ru("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Zu(this,b,"includes").indexOf(b,c||0)}});Ru("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("p`"+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("q");c[d[0]]=d[1]}return c}});Ru("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Tu(b,d)&&c.push(b[d]);return c}});
Ru("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;})})}});Ru("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});
Ru("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)}});
Ru("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("r");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
Ru("String.prototype.codePointAt",function(a){return a?a:function(b){var c=Zu(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}}});
Ru("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("s");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}});Ru("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});
var av=av||{},ea=this||self,sp=function(a,b){a=a.split(".");b=b||ea;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Sa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Ha=function(a){var b=Sa(a);return"array"==b||"object"==b&&"number"==typeof a.length},La=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ma=function(a){return Object.prototype.hasOwnProperty.call(a,$mb)&&a[$mb]||(a[$mb]=++anb)},$mb="closure_uid_"+(1E9*Math.random()>>>
0),anb=0,bnb=function(a,b,c){return a.call.apply(a.bind,arguments)},cnb=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)}},bv=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?bv=bnb:bv=cnb;return bv.apply(null,arguments)},cv=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)}},dnb=function(a){(0,eval)(a)},dv=function(a,b){a=a.split(".");var c=ea;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},ev=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)}},enb=function(a){return a};
var fnb={};
ev(ca,Error);ca.prototype.name="CustomError";
var gnb;
ev(da,ca);da.prototype.name="AssertionError";
var Zi=function(a,b){return 0==a.lastIndexOf(b,0)},fv=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},oQa=function(a){return 0==gv("@ldap.google.com",a.slice(a.length-16))},lj=function(a){return/^[\s\xa0]*$/.test(a)},bj=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},gv=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},onb=function(a){if(!hnb.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(inb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(jnb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(knb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(lnb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(mnb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(nnb,"&#0;"));return a},inb=/&/g,jnb=/</g,knb=/>/g,lnb=/"/g,mnb=/'/g,nnb=/\x00/g,hnb=/[\x00&<>"']/,ia=function(a,b){return-1!=a.indexOf(b)},ra=function(a,b){return ia(a.toLowerCase(),b.toLowerCase())},sa=function(a,b){var c=0;a=bj(String(a)).split(".");
b=bj(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=pnb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||pnb(0==f[2].length,0==h[2].length)||pnb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},pnb=function(a,b){return a<b?-1:a>b?1:0};
var va=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},ua=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)},qnb=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},Kb=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},rnb=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 snb=function(a){snb[" "](a);return a};snb[" "]=function(){};var tnb=function(a,b){try{return snb(a[b]),!0}catch(c){}return!1};
var unb=ja("Opera"),hv=aaa(),iv=ja("Edge"),ak=iv||hv,jv=ja("Gecko")&&!(ra(ha(),"WebKit")&&!ja("Edge"))&&!(ja("Trident")||ja("MSIE"))&&!ja("Edge"),kv=ra(ha(),"WebKit")&&!ja("Edge"),vnb=kv&&ja("Mobile"),hr=ja("Macintosh"),wnb=ja("Windows"),xnb=ja("Linux")||ja("CrOS"),ynb=ea.navigator||null;ynb&&ia(ynb.appVersion||"","X11");var znb=ja("Android"),Anb=oa(),Bnb=ja("iPad"),Cnb=ja("iPod"),Dnb=qa();ra(ha(),"KaiOS");var Enb=function(){var a=ea.document;return a?a.documentMode:void 0},Fnb;
a:{var Gnb="",Hnb=function(){var a=ha();if(jv)return/rv:([^\);]+)(\)|;)/.exec(a);if(iv)return/Edge\/([\d\.]+)/.exec(a);if(hv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(kv)return/WebKit\/(\S+)/.exec(a);if(unb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Hnb&&(Gnb=Hnb?Hnb[1]:"");if(hv){var Inb=Enb();if(null!=Inb&&Inb>parseFloat(Gnb)){Fnb=String(Inb);break a}}Fnb=Gnb}var Jnb=Fnb,Knb;if(ea.document&&hv){var Lnb=Enb();Knb=Lnb?Lnb:parseInt(Jnb,10)||void 0}else Knb=void 0;var lv=Knb;
var Mnb=la(),Nnb=oa()||ja("iPod"),Onb=ja("iPad"),Pnb=caa(),Qnb=ma(),Rnb=baa()&&!qa();
var Snb={},mv=null,Tnb=jv||kv||!Rnb&&!hv&&"function"==typeof ea.atob,rb=function(a,b){void 0===b&&(b=0);Unb();b=Snb[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],t=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=t+h+k+q}t=0;q=d;switch(a.length-e){case 2:t=a[e+1],q=b[(t&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|t>>4]+q+d}return c.join("")},jWa=function(a){if(Tnb)return ea.atob(a);var b="";Vnb(a,function(c){b+=String.fromCharCode(c)});
return b},Wnb=function(a){var b=[];Vnb(a,function(c){b.push(c)});return b},oaa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):ia("=.",a[b-1])&&(c=ia("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Vnb(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},Vnb=function(a,b){function c(q){for(;d<a.length;){var t=a.charAt(d++),x=mv[t];if(null!=x)return x;if(!lj(t))throw Error("v`"+t);}return q}Unb();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))}},Unb=function(){if(!mv){mv={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Snb[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===mv[f]&&(mv[f]=e)}}}};
var qaa="undefined"!==typeof Uint8Array,raa,Ta={};
var Xnb,hb=function(a,b){taa(b);this.value_=a;if(null!=a&&0===a.length)throw Error("x");},ib=function(){return Xnb||(Xnb=new hb(null,Ta))},sb=function(a){var b=a.value_;return null==b?"":"string"===typeof b?b:a.value_=rb(b)},Y7a=function(a){return(a=gba(a))?new Uint8Array(a):saa()};hb.prototype.isEmpty=function(){return null==this.value_};hb.prototype.sizeBytes=function(){var a=gba(this);return a?a.length:0};var gba=function(a){taa(Ta);var b=paa(a.value_);return null==b?b:a.value_=b};
var Va="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;
var nb={},Ynb,yb,Znb=[];ab(Znb,23);yb=Object.freeze(Znb);var Eb=function(a){if(cb(a.internalArray_))throw Error("y");},nv=function(a){this.idx_=0;this.arr_=a};nv.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};nv.prototype[Symbol.iterator]=function(){return this};
var pb=function(a,b,c,d){d=void 0===d?Gaa:d;c=Ya(a);c|=32;ab(a,c);this.arrayState=c;this.toApi=(this.valueCtor=b)?Eaa:Faa;this.toRuntime=d;this.map_=b=new Map;for(d=0;d<a.length;d++)c=a[d],b.set(c[0],c[1]);this.size=b.size},$nb=function(a){if(a.arrayState&2)throw Error("E");},Naa=function(a,b){return new pb(b,a.valueCtor,a.toApi,a.toRuntime)},Qaa=function(a,b){b=void 0===b?Haa:b;for(var c=ov(a),d=0;d<c.length;d++){var e=c[d],f=a.map_.get(c[d]);c[d]=[b(e),b(f)]}return c},Xaa=function(a,b){b=void 0===
b?Haa:b;var c=[];a=a.map_.entries();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=pb.prototype;g.getLength=function(){return this.size};g.clear=function(){$nb(this);this.map_.clear();this.size=0};g.delete=function(a){$nb(this);return this.map_.delete(a)?(this.size=this.map_.size,!0):!1};g.entries=function(){for(var a=ov(this),b=0;b<a.length;b++){var c=a[b];a[b]=[c,this.get(c)]}return new nv(a)};g.keys=function(){var a=ov(this);return new nv(a)};
g.values=function(){for(var a=ov(this),b=0;b<a.length;b++)a[b]=this.get(a[b]);return new nv(a)};g.forEach=function(a,b){for(var c=ov(this),d=0;d<c.length;d++){var e=c[d];a.call(b,this.get(e),e,this)}};g.set=function(a,b){$nb(this);var c=this.map_;if(null==b)return c.delete(a),this;c.set(a,this.toApi(b,this.valueCtor,!1,this.callToMutableOnAccess));this.size=c.size;return this};
g.get=function(a){var b=this.map_;if(b.has(a)){var c=b.get(a),d=this.arrayState,e=this.valueCtor;e&&Array.isArray(c)&&d&16&&eb(c);d=this.toApi(c,e,!!(d&2),this.callToMutableOnAccess);d!==c&&b.set(a,d);return d}};g.has=function(a){return this.map_.has(a)};var ov=function(a){return Array.from(a.map_.keys()).sort(Daa)};pb.prototype[Symbol.iterator]=function(){return this.entries()};
var qb;
var Yaa=function(a){return a.internalSparseObject_||(a.internalSparseObject_=a.internalArray_[a.pivot_+a.arrayIndexOffset]={})},l=function(a,b,c){return-1===b?null:b>=a.pivot_?a.internalSparseObject_?a.internalSparseObject_[b]:void 0:c&&a.internalSparseObject_&&(c=a.internalSparseObject_[b],null!=c)?c:a.internalArray_[b+a.arrayIndexOffset]},m=function(a,b,c,d){Eb(a);return wb(a,b,c,d)},nj=function(a,b){return null!=l(a,b,!1)},vj=function(a,b,c){return void 0!==aob(a,b,c,!1)},un=function(a,b,c,d){return void 0!==
aob(a,b,rm(a,d,c))},Li=function(a,b){return zb(a,b,0,!1,cb(a.internalArray_))},iu=function(a,b){a=l(a,b);return null==a?a:+a},As=function(a,b){a=l(a,b);return null==a?a:!!a},Ms=function(a,b){var c=l(a,b),d=jb(c,!0);null!=d&&d!==c&&wb(a,b,d);return d},qj=function(a,b,c){a=l(a,b);return null==a?c:a},Nsa=function(a,b){a=Ms(a,b);return null==a?ib():a},pv,rj=function(a,b,c){var d=l(a,b),e=cb(a.internalArray_);b:{var f=d;d=!1;if(null==f){if(e){a=pv||(pv=new pb(db([])));break b}f=[]}else if(f.constructor===
pb){if(0==(f.arrayState&2)||e){a=f;break b}f=Xaa(f)}else Array.isArray(f)?d=cb(f):f=[];if(e){if(!f.length){a=pv||(pv=new pb(db([])));break b}d||(d=!0,db(f))}else if(d){d=!1;f=Array.prototype.slice.call(f);for(var h=0;h<f.length;h++){var k=f[h]=Array.prototype.slice.call(f[h]);Array.isArray(k[1])&&(k[1]=db(k[1]))}}d||(Ya(f)&32?Xa(f,16):Ya(a.internalArray_)&16&&eb(f));d=new pb(f,c);wb(a,b,d,!1);a=d}null==a?c=a:(!e&&c&&(a.callToMutableOnAccess=!0),c=a);return c},Bb=function(a,b,c,d){if(null==c)c=yb;
else{var e=Ya(c);1!==(e&1)&&(Object.isFrozen(c)&&(c=Array.prototype.slice.call(c)),ab(c,e|1))}return m(a,b,c,d)},Zm=function(a,b,c){return Db(a,b,c,kb)},Xl=function(a,b,c){return Db(a,b,c,Aaa)},qv=function(a,b){return m(a,b,void 0,!1)},um=function(a,b,c,d){Eb(a);(c=ym(a,c))&&c!==b&&null!=d&&wb(a,c,void 0,!1);return wb(a,b,d)},rm=function(a,b,c){return ym(a,b)===c?c:-1},ym=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=l(a,e)&&(0!==c&&wb(a,c,void 0,!1),c=e)}return c},rv=function(a,
b,c){Eb(a);var d=l(a,c);b=ob(Caa(d,b,!0));d!==b&&wb(a,c,b);return b},aob=function(a,b,c,d){var e=l(a,c,d);b=Caa(e,b);b!==e&&null!=b&&(wb(a,c,b,d),Wa(b.internalArray_,Ya(a.internalArray_)&-33));return b},Ub=function(a,b,c,d){d=void 0===d?!1:d;b=aob(a,b,c,d);if(null==b)return b;if(!cb(a.internalArray_)){var e=ob(b);e!==b&&(b=e,wb(a,c,b,d))}return b},Nb=function(a,b,c,d){var e=cb(a.internalArray_);b=$aa(a,b,c,d,e,e);a=zb(a,c,3,d,e);if(!(e||Ya(a)&8)){for(e=0;e<b.length;e++)c=b[e],d=ob(c),c!==d&&(b[e]=
d,a[e]=b[e].internalArray_);Wa(a,8)}return b},Vb=function(a,b,c,d){Eb(a);null==c&&(c=void 0);return wb(a,b,c,d)},Dm=function(a,b,c,d){Eb(a);null==d&&(d=void 0);return um(a,b,c,d)},Mb=function(a,b,c,d){Eb(a);if(null!=c){var e=bb([]);for(var f=!1,h=0;h<c.length;h++)e[h]=c[h].internalArray_,f=f||cb(e[h]);a.internalWrappers_||(a.internalWrappers_={});a.internalWrappers_[b]=c;c=e;f?Xa(c,8):Wa(c,8)}else a.internalWrappers_&&(a.internalWrappers_[b]=void 0),e=yb;return wb(a,b,e,d)},bob=function(a,b,c,d,e){Eb(a);
var f=$aa(a,c,b,void 0,!1,!1);c=null!=d?d:new c;a=zb(a,b,2,void 0,!1);void 0!=e?(f.splice(e,0,c),a.splice(e,0,c.internalArray_)):(f.push(c),a.push(c.internalArray_));c.isImmutable()&&Xa(a,8);return c},rq=function(a,b,c,d,e){bob(a,b,c,d,e);return a},Aj=function(a,b,c){c=void 0===c?0:c;return Ib(l(a,b),c)},sv=function(a,b){a=l(a,b);return null==a?void 0:a},uj=function(a,b,c){c=void 0===c?"0":c;return Ib(l(a,b),c)},cob=function(a){var b=void 0===b?0:b;return Ib(l(a,23),b)},Hwa=function(a,b){var c=Jo;
var d=void 0===d?"0":d;return uj(a,rm(a,c,b),d)},Mi=function(a,b){return Cb(a,b,zaa)},tv=function(a,b){return l(a,b)},Ki=function(a,b){return Cb(a,b,Baa,!1)},Pi=function(a,b,c){c=void 0===c?"":c;return Ib(l(a,b),c)},oj=function(a,b,c){c=void 0===c?!1:c;return Ib(As(a,b),c)},Jl=function(a,b,c){c=void 0===c?0:c;return Ib(iu(a,b),c)},Ji=function(a,b,c){c=void 0===c?0:c;return Ib(l(a,b),c)},dob=function(a,b){var c=void 0===c?0:c;return Ib(l(a,b),c)},Qs=function(a,b,c){return tv(a,rm(a,c,b))},Hl=function(a,
b,c,d){return Ub(a,b,rm(a,d,c))},uv=function(a,b){a=l(a,b);return null==a?void 0:a},vv=function(a,b){a=l(a,b);return null==a?void 0:a},Qo=function(a,b,c){return Fb(a,b,c,!1)},Dl=function(a,b,c){return Fb(a,b,c,0)},Oi=function(a,b){return null!=l(a,b)},zj=function(a,b){return null!=l(a,b)},tj=function(a,b){return null!=l(a,b)};
var Y=function(a,b,c){null==a&&(a=qb);qb=void 0;var d=this.constructor.internalGroupNumberDoNotUse||0,e=0<d,f=this.constructor.messageId,h=!1;if(null==a){a=f?[f]:[];var k=!0;ab(a,48)}else{if(!Array.isArray(a))throw Error();if(f&&f!==a[0])throw Error();var q=Wa(a,0),t=q;if(k=0!==(16&t))(h=0!==(32&t))||(t|=32);if(e)if(128&t)d=0;else{if(0<a.length){var x=a[a.length-1];if(gb(x)&&"g"in x){d=0;t|=128;delete x.g;var y=!0,F;for(F in x){y=!1;break}y&&a.pop()}}}else if(128&t)throw Error();q!==t&&ab(a,t)}this.arrayIndexOffset=
(f?0:-1)-d;this.internalWrappers_=void 0;this.internalArray_=a;a:{f=this.internalArray_.length;d=f-1;if(f&&(f=this.internalArray_[d],gb(f))){this.internalSparseObject_=f;this.pivot_=d-this.arrayIndexOffset;break a}void 0!==b&&-1<b?(this.pivot_=Math.max(b,d+1-this.arrayIndexOffset),this.internalSparseObject_=void 0):this.pivot_=Number.MAX_VALUE}if(!e&&this.internalSparseObject_&&"g"in this.internalSparseObject_)throw Error("G");if(c){b=k&&!h&&!0;e=this.pivot_;var K;for(k=0;k<c.length;k++)h=c[k],h<
e?(h+=this.arrayIndexOffset,(d=a[h])?dba(d,b):a[h]=yb):(K||(K=Yaa(this)),(d=K[h])?dba(d,b):K[h]=yb)}};Y.prototype.toArray=function(){return this.toJSON()};Y.prototype.toJSON=function(){var a=this.internalArray_;return Ynb?a:tb(a,Saa,Taa)};Y.prototype.serialize=function(){Ynb=!0;try{return JSON.stringify(this.toJSON(),eba)}finally{Ynb=!1}};var Oo=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);return Paa(a,eb(b))};g=Y.prototype;g.getExtension=function(a){return a.getExtensionFn(this)};
g.hasExtension=function(a){return nj(this,a.fieldIndex)};g.clone=function(){var a=tb(this.internalArray_,Vaa,uaa);eb(a);qb=a;a=new this.constructor(a);qb=void 0;fba(a,this);return a};g.isMutable=function(){return!cb(this.internalArray_)};g.isImmutable=function(){return cb(this.internalArray_)};var ob=function(a){if(cb(a.internalArray_)){var b=cba(a,!1);b.internalCachedImmutable_=a;a=b}return a},Ds=function(a,b,c){return b.setExtensionFn(a,c)};Y.prototype.messagePrototypeMarker=nb;
Y.prototype.toString=function(){return this.internalArray_.toString()};
var eob="function"===typeof Uint8Array.prototype.slice,jba="function"===typeof BigInt;
var wv=function(a){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,void 0,void 0,void 0)};g=wv.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=hba(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>xv.length&&xv.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){yv(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;yv(this,f);if(128>h)return a(b>>>0,c>>>0);throw Error("N");};var yv=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("O`"+b+"`"+a.end_);};g=wv.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("N");yv(this,b);return d};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.readUint64String=function(){var a=this.readUint32(),b=this.readUint32();return lba(a,b)};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 iba(a,b)};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 yv(this,b),!!(a&127)}throw Error("N");};
g.readByteString=function(a){if(0==a)return ib();if(0>a)throw Error("P`"+a);var b=this.cursor_,c=b+a;if(c>this.end_)throw Error("O`"+(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?saa():eob?c.slice(b,a):new Uint8Array(c.subarray(b,a)));return 0==b.length?ib():new hb(b,Ta)};var xv=[];
var fob=function(a){if(xv.length){var b=xv.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new wv(a);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions()};g=fob.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>zv.length&&zv.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 yba=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("J`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("K`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},Rb=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?Rb(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)Rb(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(!yba(a))throw Error("L");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("M");break}Rb(a)}while(1);break;default:throw Error("J`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=fob.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(iba)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64String=function(){return this.decoder_.readSplitVarint64(lba)};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 zv=[];
var Pb=Symbol(),sba=Symbol(),Qb=Symbol(),gob=Sb(function(a,b,c){if(0!==a.nextWireType_)return!1;m(b,c,a.readInt64());return!0},function(a,b,c){a.writeInt64(c,l(b,c))}),Av=Sb(function(a,b,c){if(0!==a.nextWireType_)return!1;m(b,c,a.readInt32());return!0},function(a,b,c){a.writeInt32(c,l(b,c))}),hob=Sb(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=Li(b,c);if(2==a.nextWireType_){c=wv.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){a.writeRepeatedInt32(c,Li(b,c))}),iob=Sb(function(a,b,c){if(1!==a.nextWireType_)return!1;m(b,c,a.decoder_.readUint64String());return!0},function(a,b,c){a.writeFixed64(c,l(b,c))}),job=Sb(function(a,b,c){if(5!==a.nextWireType_)return!1;m(b,c,a.decoder_.readUint32());return!0},function(a,b,c){a.writeFixed32(c,l(b,c))}),kob=Sb(function(a,b,c){if(0!==a.nextWireType_)return!1;m(b,c,a.readBool());
return!0},function(a,b,c){a.writeBool(c,As(b,c))}),lob=Sb(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;b=rv(b,d,c);c=a.decoder_.getEnd();d=a.decoder_.readSignedVarint32()>>>0;var f=a.decoder_.getCursor()+d,h=f-c;0>=h&&(a.decoder_.setEnd(f),e(b,a,void 0,void 0,void 0),h=f-a.decoder_.getCursor());if(h)throw Error("I`"+d+"`"+(d-h));a.decoder_.cursor_=f;a.decoder_.setEnd(c);return!0},function(a,b,c,d,e){a.writeMessage(c,Ub(b,d,c),e)});
var zba=function(a,b,c,d){var e=Aba,f=Bba;this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=0;this.getExtensionFn=e;this.setExtensionFn=f};
var mob=function(a){Y.call(this,a)};X(mob,Y);mob.prototype.getCustomerId=function(){return l(this,1)};
var nob=function(a){Y.call(this,a)};X(nob,Y);var oob=function(a){Y.call(this,a)};X(oob,Y);var pob=function(a){Y.call(this,a)};X(pob,Y);pob.prototype.getCustomerId=function(){return Ub(this,mob,1)};var qob=[1,2];
var Bv=function(a){Y.call(this,a)};X(Bv,Y);Bv.prototype.getId=function(){return Pi(this,1)};Bv.prototype.setId=function(a){return Hb(this,1,a)};Bv.prototype.getSourceId=function(){return qj(this,2,0)};Bv.prototype.setSourceId=function(a){return Dl(this,2,a)};
var Cv=function(a){Y.call(this,a)};X(Cv,Y);g=Cv.prototype;g.getUrl=function(){return Pi(this,1)};g.setUrl=function(a){return Hb(this,1,a)};g.getHeight=function(){return Ji(this,2)};g.setHeight=function(a){return Fb(this,2,a,0)};g.getWidth=function(){return Ji(this,3)};g.setWidth=function(a){return Fb(this,3,a,0)};
var Ml=function(a){Y.call(this,a)};X(Ml,Y);Ml.prototype.getSeconds=function(){return Aj(this,1)};Ml.prototype.setSeconds=function(a){return Fb(this,1,a,0)};Ml.prototype.getNanos=function(){return Ji(this,2)};Ml.prototype.setNanos=function(a){Fb(this,2,a,0)};
var rob=function(a){Y.call(this,a)};X(rob,Y);
var tob=function(a){Y.call(this,a,-1,sob)};X(tob,Y);var sob=[1,2];
var Dv=function(a){Y.call(this,a)};X(Dv,Y);Dv.prototype.getCategory=function(){return qj(this,1,0)};Dv.prototype.setCategory=function(a){Dl(this,1,a)};
var Cj=function(a){Y.call(this,a)};X(Cj,Y);g=Cj.prototype;g.getSeconds=function(){return Aj(this,1)};g.setSeconds=function(a){return Fb(this,1,a,0)};g.getNanos=function(){return Ji(this,2)};g.setNanos=function(a){Fb(this,2,a,0)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};
var uob=function(a){Y.call(this,a)};X(uob,Y);uob.prototype.getPhotoId=function(){return Pi(this,1)};
var vob=function(a){Y.call(this,a)};X(vob,Y);
var wob=function(a){Y.call(this,a)};X(wob,Y);
var Ev=function(a){Y.call(this,a)};X(Ev,Y);Ev.prototype.getAgentId=function(){return qj(this,3,0)};var xob=[2,4,5];
var Fv=function(a){Y.call(this,a)};X(Fv,Y);Fv.prototype.getWidth=function(){return dob(this,1)};Fv.prototype.setWidth=function(a){return Fb(this,1,a,0)};Fv.prototype.getHeight=function(){return dob(this,2)};Fv.prototype.setHeight=function(a){return Fb(this,2,a,0)};
var yob=function(a){Y.call(this,a)};X(yob,Y);
var Gv=function(a){Y.call(this,a)};X(Gv,Y);Gv.prototype.getShared=function(){return oj(this,1)};var Hv=function(a){Y.call(this,a,-1,zob)};X(Hv,Y);g=Hv.prototype;g.getId=function(){return Ub(this,Bv,1)};g.setId=function(a){return Vb(this,1,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return Hb(this,2,a)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return Hb(this,3,a)};g.getParentId=function(){return Pi(this,4)};
g.setParentId=function(a){Hb(this,4,a)};g.getType=function(){return qj(this,6,0)};g.setType=function(a){return Dl(this,6,a)};g.getMimeType=function(){return Pi(this,7)};g.setMimeType=function(a){Hb(this,7,a)};g.getUrl=function(){return Pi(this,8)};g.setUrl=function(a){return Hb(this,8,a)};g.getIconUrl=function(){return Pi(this,11)};g.setIconUrl=function(a){return Hb(this,11,a)};var Iv=function(a){return Nb(a,Cv,10)},zob=[5,10,22];
var Jv=function(a){Y.call(this,a)};X(Jv,Y);Jv.prototype.setGmailDelegatorId=function(a){return Hb(this,1,a)};
var Aob=function(a){Y.call(this,a)};X(Aob,Y);g=Aob.prototype;g.getOrigin=function(){return Pi(this,1)};g.setOrigin=function(a){return Hb(this,1,a)};g.getInstanceId=function(){return Pi(this,2)};g.setInstanceId=function(a){return Hb(this,2,a)};g.getWidgetType=function(){return qj(this,3,0)};g.getContainerType=function(){return qj(this,4,0)};
var Kv=function(a){Y.call(this,a)};X(Kv,Y);Kv.prototype.setAuthUser=function(a){return Fb(this,1,a,0)};Kv.prototype.getEmail=function(){return Pi(this,2)};Kv.prototype.setEmail=function(a){return Hb(this,2,a)};
var Bob=function(a){Y.call(this,a)};X(Bob,Y);
var Lv=function(a){Y.call(this,a)};X(Lv,Y);Lv.prototype.getWidth=function(){return Aj(this,1)};Lv.prototype.setWidth=function(a){return Fb(this,1,a,0)};Lv.prototype.getHeight=function(){return Aj(this,2)};Lv.prototype.setHeight=function(a){return Fb(this,2,a,0)};
var Mv=function(a){Y.call(this,a)};X(Mv,Y);Mv.prototype.getMessage=function(){return Pi(this,1)};Mv.prototype.setMessage=function(a){return Hb(this,1,a)};Mv.prototype.getLearnMoreLink=function(){return Ub(this,Bob,3)};Mv.prototype.setLearnMoreLink=function(a){Vb(this,3,a)};
var Nv=function(a){Y.call(this,a,-1,Cob)};X(Nv,Y);var Ov=function(a,b){return Gb(a,1,b)};Nv.prototype.getMaxSize=function(){return Ub(this,Fv,5)};Nv.prototype.setMaxSize=function(a){Vb(this,5,a)};Nv.prototype.setMaxSizeBytes=function(a){Fb(this,6,a,0)};var Cob=[1,2,3,4];
var Pv=function(a){Y.call(this,a)};X(Pv,Y);Pv.prototype.setRestrictedDownloadErrorMessage=function(a){return Hb(this,5,a)};
var Dob=function(a){Y.call(this,a)};X(Dob,Y);
var Qv=function(a){Y.call(this,a)};X(Qv,Y);Qv.prototype.getId=function(){return qj(this,1,0)};Qv.prototype.setId=function(a){return Dl(this,1,a)};var Eob=[2,3,4];
var Fob=function(a){Y.call(this,a)};X(Fob,Y);
var Rv=function(a){Y.call(this,a,-1,Gob)};X(Rv,Y);g=Rv.prototype;g.setAuthUser=function(a){return Vb(this,6,a)};g.getBaseUrl=function(){return Pi(this,8)};g.getTitle=function(){return Pi(this,9)};g.setTitle=function(a){return Hb(this,9,a)};g.getLocale=function(){return Pi(this,10)};g.setLocale=function(a){return Hb(this,10,a)};g.setSecretToken=function(a){return Hb(this,12,a)};g.setSelectButtonLabel=function(a){Hb(this,19,a)};var Hob=function(a,b){Vb(a,22,b)};g=Rv.prototype;
g.addPostProcessor=function(a){rq(this,28,Qv,a)};g.setBuildLabel=function(a){Hb(this,31,a)};g.setMinSize=function(a){Vb(this,32,a)};g.getMaxSize=function(){return Ub(this,Lv,33)};g.setMaxSize=function(a){Vb(this,33,a)};g.setInitialView=function(a){Dl(this,35,a)};var Gob=[18,28];
var Job=function(a){Y.call(this,a,-1,Iob)};X(Job,Y);g=Job.prototype;g.getStatus=function(){return qj(this,1,0)};g.setStatus=function(a){return Dl(this,1,a)};g.getItemList=function(){return Nb(this,Hv,2)};g.setItemList=function(a){Mb(this,2,a)};g.addItem=function(a,b){return rq(this,2,Hv,a,b)};g.getErrorCode=function(){return qj(this,4,0)};var Iob=[2];
var Sv=function(a){Y.call(this,a,-1,Kob)};X(Sv,Y);Sv.prototype.getUploadUrl=function(){return Pi(this,1)};Sv.prototype.getAgentId=function(){return qj(this,3,0)};Sv.prototype.setFileExtensionsList=function(a){return Xl(this,11,a)};var Kob=[11];
var Lob=function(a){Y.call(this,a)};X(Lob,Y);Lob.prototype.setUploadSourceOptions=function(a){return Vb(this,2,a)};
var Nob=function(a){Y.call(this,a,-1,Mob)};X(Nob,Y);Nob.prototype.setFileExtensionsList=function(a){return Xl(this,3,a)};var Mob=[1,3];
var Pob=function(a){Y.call(this,a,-1,Oob)};X(Pob,Y);var Oob=[3];
var bq=function(a){Y.call(this,a)};X(bq,Y);bq.prototype.getType=function(){return qj(this,1,0)};bq.prototype.setType=function(a){return Dl(this,1,a)};bq.prototype.getDirection=function(){return qj(this,2,0)};bq.prototype.setDirection=function(a){return Dl(this,2,a)};
var Zp=function(a){Y.call(this,a)};X(Zp,Y);Zp.prototype.getParentId=function(){return Pi(this,1)};Zp.prototype.setParentId=function(a){Hb(this,1,a)};Zp.prototype.getQuery=function(){return Pi(this,2)};Zp.prototype.setQuery=function(a){return Hb(this,2,a)};var $p=function(a,b){return Vb(a,3,b)},aq=function(a,b){return Dl(a,4,b)};Zp.prototype.getStarred=function(){return oj(this,7)};Zp.prototype.setStarred=function(a){Qo(this,7,a)};Zp.prototype.setViewMode=function(a){Dl(this,8,a)};
Zp.prototype.getLastModified=function(){return Ub(this,Cj,9)};var Qob=function(a,b){Vb(a,19,b)};
var Tv=function(a){Y.call(this,a)};X(Tv,Y);Tv.prototype.getCategory=function(){return qj(this,2,0)};Tv.prototype.setCategory=function(a){Dl(this,2,a)};
var eq=function(a){Y.call(this,a,-1,Rob)};X(eq,Y);eq.prototype.setViewMode=function(a){Dl(this,3,a)};var Rob=[8];
var fq=function(a){Y.call(this,a)};X(fq,Y);fq.prototype.setViewMode=function(a){Dl(this,1,a)};fq.prototype.getQuery=function(){return Pi(this,2)};fq.prototype.setQuery=function(a){return Hb(this,2,a)};
var Yp=function(a){Y.call(this,a,-1,Sob)};X(Yp,Y);g=Yp.prototype;g.getSourceId=function(){return qj(this,1,0)};g.setSourceId=function(a){return Dl(this,1,a)};g.getName=function(){return Pi(this,8)};g.setName=function(a){return Hb(this,8,a)};g.setUploadSourceOptions=function(a){return Vb(this,10,a)};var Sob=[14];
var dq=function(a){Y.call(this,a,-1,Tob)};X(dq,Y);dq.prototype.getSourceList=function(){return Nb(this,Yp,1)};dq.prototype.setSourceList=function(a){return Mb(this,1,a)};dq.prototype.addSource=function(a){rq(this,1,Yp,a)};var Tob=[1];
var Uv=function(a){Y.call(this,a,-1,Uob)};X(Uv,Y);g=Uv.prototype;g.getCommand=function(){return qj(this,1,0)};g.setCommand=function(a){return Dl(this,1,a)};g.getSource=function(){return Ub(this,Yp,2)};g.setSource=function(a){return Vb(this,2,a)};g.hasSource=function(){return vj(this,Yp,2)};g.setVisible=function(a){return Qo(this,5,a)};g.getItemList=function(){return Nb(this,Hv,7)};g.setItemList=function(a){Mb(this,7,a)};g.addItem=function(a,b){return rq(this,7,Hv,a,b)};var Uob=[3,7];
var Wob=function(a){Y.call(this,a,-1,Vob)};X(Wob,Y);g=Wob.prototype;g.getCommand=function(){return qj(this,1,0)};g.setCommand=function(a){return Dl(this,1,a)};g.getItemList=function(){return Nb(this,Hv,4)};g.setItemList=function(a){Mb(this,4,a)};g.addItem=function(a,b){return rq(this,4,Hv,a,b)};var Vob=[4];
var Vv=function(a){Y.call(this,a,-1,Xob)};X(Vv,Y);g=Vv.prototype;g.getConfig=function(){return Ub(this,Rv,1)};g.setConfig=function(a){return Vb(this,1,a)};g.hasConfig=function(){return vj(this,Rv,1)};g.getSourceList=function(){return Nb(this,Yp,2)};g.setSourceList=function(a){return Mb(this,2,a)};g.addSource=function(a){rq(this,2,Yp,a)};var Xob=[2];Vv.messageId="ireq";
var nm=function(a){Y.call(this,a)};X(nm,Y);g=nm.prototype;g.getYear=function(){return Ji(this,1)};g.setYear=function(a){return Fb(this,1,a,0)};g.getMonth=function(){return Ji(this,2)};g.setMonth=function(a){return Fb(this,2,a,0)};g.getDay=function(){return Ji(this,3)};
var Mba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
var Wv=function(a){return function(){return a}},Xv=function(){},Yob=function(a){return a},LDa=function(){var a=KDa;return function(){return!a.apply(this,arguments)}},Yv=function(a,b){var c=0;return function(d){ea.clearTimeout(c);var e=arguments;c=ea.setTimeout(function(){a.apply(void 0,e)},b)}},Zob=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,h())},h=function(){c=ea.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};return function(k){e=arguments;c?d=!0:h()}};
var $ob={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 Zv,apb=function(){if(void 0===Zv){var a=null,b=ea.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:enb,createScript:enb,createScriptURL:enb})}catch(c){ea.console&&ea.console.error(c.message)}Zv=a}else Zv=a}return Zv};
var gc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===bpb&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=cpb};gc.prototype.implementsGoogStringTypedString=!0;gc.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var hc=function(a){return a instanceof gc&&a.constructor===gc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===cpb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ip=function(a){return new gc(bpb,a)},cpb={},bpb={};
var $v=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===dpb?a:""};$v.prototype.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""};$v.prototype.implementsGoogStringTypedString=!0;$v.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};
var Fi=function(a){if(a instanceof $v&&a.constructor===$v)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;Sa(a);return"type_error:TrustedResourceUrl"},hp=function(a){return Ch(hc(a))},dpb={},Ch=function(a){var b=apb();a=b?b.createScriptURL(a):a;return new $v(a,dpb)};
var ec=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===epb?a:""};ec.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};ec.prototype.implementsGoogStringTypedString=!0;ec.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};
var fc=function(a){if(a instanceof ec&&a.constructor===ec)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;Sa(a);return"type_error:SafeUrl"},fpb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,gpb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Vba=function(a){if(a instanceof ec)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);gpb.test(a)?a=Fh(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(fpb)?Fh(a):null);return a},foa=function(a){if(a instanceof
ec)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);gpb.test(a)||(a="about:invalid#zClosurez");return Fh(a)},epb={},Fh=function(a){return new ec(a,epb)},ic=Fh("about:invalid#zClosurez");
var hpb={},aw=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===hpb?a:"";this.implementsGoogStringTypedString=!0};aw.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};aw.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var ipb=function(a){if(a instanceof aw&&a.constructor===aw)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;Sa(a);return"type_error:SafeStyle"},jpb=new aw("",hpb),Qba=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Pba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Oba=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"),Rba=/\/\*/;
var kpb={},bw=function(a,b){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=b===kpb?a:"";this.implementsGoogStringTypedString=!0};bw.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};bw.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};var lpb=function(a){if(a instanceof bw&&a.constructor===bw)return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;Sa(a);return"type_error:SafeStyleSheet"};
var mpb={},cw=function(a,b){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=b===mpb?a:"";this.implementsGoogStringTypedString=!0};cw.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};cw.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var ck=function(a){if(a instanceof cw&&a.constructor===cw)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;Sa(a);return"type_error:SafeHtml"},Co=function(a){return a instanceof cw?a:Ah(onb("object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)))},dw=function(a){if(a instanceof cw)return a;a=Co(a);a=ck(a).toString().replace(/(\r\n|\r|\n)/g,"<br>");return Ah(a)},Eo=function(a,b,c){var d=String(a);if(!npb.test(d))throw Error("X");if(d.toUpperCase()in opb)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(!npb.test(f))throw Error("X");var h=b[f];if(null!=h){var k=f;var q=h;if(q instanceof gc)q=hc(q);else if("style"==k.toLowerCase()){h=void 0;if(!La(q))throw Error("X");if(!(q instanceof aw)){var t="";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(Uba).join(" "):Uba(x),t+=h+":"+x+";")}q=t?new aw(t,
hpb):jpb}q=ipb(q)}else{if(/^on/i.test(k))throw Error("X");if(k.toLowerCase()in ppb)if(q instanceof $v)q=Fi(q).toString();else if(q instanceof ec)q=fc(q);else if("string"===typeof q)q=(Vba(q)||ic).getTypedStringValue();else throw Error("X");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+onb(String(q))+'"';e+=" "+k}}b=d+e;null==c?c=[]:Array.isArray(c)||(c=[c]);!0===$ob[a.toLowerCase()]?b+=">":(f=Fo(c),b+=">"+ck(f).toString()+"</"+a+">");return Ah(b)},qpb=function(a){var b=
Co(Bu),c=[],d=function(e){Array.isArray(e)?e.forEach(d):(e=Co(e),c.push(ck(e).toString()))};a.forEach(d);return Ah(c.join(ck(b).toString()))},Fo=function(a){return qpb(Array.prototype.slice.call(arguments))},Ah=function(a){var b=apb();a=b?b.createHTML(a):a;return new cw(a,mpb)},npb=/^[a-zA-Z0-9-]+$/,ppb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},opb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Bu=
new cw(ea.trustedTypes&&ea.trustedTypes.emptyHTML||"",mpb);
var rpb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=ck(Bu);return!b.parentElement}),Ap=function(a,b){if(rpb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=ck(b)},spb=function(a,b){b=b instanceof ec?b:foa(b);a.action=fc(b)},upb=function(a,b){var c=tpb(a.ownerDocument&&a.ownerDocument.defaultView);
c&&a.setAttribute("nonce",c);a.src=Fi(b)},goa=function(a,b,c,d){a=a instanceof ec?a:foa(a);b=b||ea;c=c instanceof gc?hc(c):c||"";return void 0!==d?b.open(fc(a),c,d):b.open(fc(a),c)},vpb=/^[\w+/_-]+[=]{0,2}$/,tpb=function(a){a=(a||ea).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&vpb.test(a)?a:"":""};
var wpb=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")},ew=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},bk=function(a){return a=onb(a)},xpb=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},JTa=function(a,b,c){return a.replace(new RegExp(Do(b),"g"),c.replace(/\$/g,
"$$$$"))},Do=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},fw=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},gw=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+fw("0",Math.max(0,b-c))+a},kj=function(a){return null==a?"":String(a)},hw=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)},iw=function(a){var b=Number(a);return 0==b&&lj(a)?NaN:b},fj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Xi=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},ypb=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(pa){q&&q.mark&&q.mark(pa)}function c(pa,xa){q&&q.measure&&q.measure(pa,xa)}function d(pa){return t+pa}function e(pa){wa||a[S]&&(wa=a[S].resolve(0));if(wa){var xa=wa[aa];xa||(xa=wa.then);xa.call(wa,pa)}else a[R](pa,0)}function f(pa){0===fb&&0===ba.length&&e(h);pa&&ba.push(pa)}function h(){if(!ka){for(ka=!0;ba.length;){var pa=ba;ba=[];for(var xa=0;xa<pa.length;xa++){var Ca=pa[xa];try{Ca.zone.runTask(Ca,null,null)}catch(Za){Ja.onUnhandledError(Za)}}}Ja.microtaskDrainDone();ka=
!1}}function k(){}var q=a.performance;b("Zone");var t=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(pa,xa){this._parent=pa;this._name=xa?xa.name||"unnamed":"<root>";this._properties=xa&&xa.properties||{};this._zoneDelegate=new K(this,this._parent&&this._parent._zoneDelegate,xa)};y.assertZonePatched=function(){if(a.Promise!==Ka.ZoneAwarePromise)throw Error("Z");};
y.__load_patch=function(pa,xa,Ca){Ca=void 0===Ca?!1:Ca;if(Ka.hasOwnProperty(pa)){if(!Ca&&x)throw Error("$`"+pa);}else a["__Zone_disable_"+pa]||(Ca="Zone:"+pa,b(Ca),Ka[pa]=xa(a,y,Ja),c(Ca,Ca))};y.prototype.get=function(pa){var xa=this.getZoneWith(pa);if(xa)return xa._properties[pa]};y.prototype.getZoneWith=function(pa){for(var xa=this;xa;){if(xa._properties.hasOwnProperty(pa))return xa;xa=xa._parent}return null};y.prototype.fork=function(pa){if(!pa)throw Error("aa");return this._zoneDelegate.fork(this,
pa)};y.prototype.wrap=function(pa,xa){if("function"!==typeof pa)throw Error("ba`"+pa);var Ca=this._zoneDelegate.intercept(this,pa,xa),Za=this;return function(){return Za.runGuarded(Ca,this,arguments,xa)}};y.prototype.run=function(pa,xa,Ca,Za){Jb={parent:Jb,zone:this};try{return this._zoneDelegate.invoke(this,pa,xa,Ca,Za)}finally{Jb=Jb.parent}};y.prototype.runGuarded=function(pa,xa,Ca,Za){Jb={parent:Jb,zone:this};try{try{return this._zoneDelegate.invoke(this,pa,void 0===xa?null:xa,Ca,Za)}catch(Da){if(this._zoneDelegate.handleError(this,
Da))throw Da;}}finally{Jb=Jb.parent}};y.prototype.runTask=function(pa,xa,Ca){if(pa.zone!=this)throw Error("ca`"+(pa.zone||Aa).name+"`"+this.name);if("notScheduled"!==pa.state||"eventTask"!==pa.type&&"macroTask"!==pa.type){var Za="running"!=pa.state;Za&&pa._transitionTo("running","scheduled");pa.runCount++;var Da=ub;ub=pa;Jb={parent:Jb,zone:this};try{"macroTask"==pa.type&&pa.data&&!pa.data.isPeriodic&&(pa.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,pa,xa,Ca)}catch(Ab){if(this._zoneDelegate.handleError(this,
Ab))throw Ab;}}finally{"notScheduled"!==pa.state&&"unknown"!==pa.state&&("eventTask"==pa.type||pa.data&&pa.data.isPeriodic?Za&&pa._transitionTo("scheduled","running"):(pa.runCount=0,this._updateTaskCount(pa,-1),Za&&pa._transitionTo("notScheduled","running","notScheduled"))),Jb=Jb.parent,ub=Da}}};y.prototype.scheduleTask=function(pa){if(pa.zone&&pa.zone!==this)for(var xa=this;xa;){if(xa===pa.zone)throw Error("da`"+this.name+"`"+pa.zone.name);xa=xa.parent}pa._transitionTo("scheduling","notScheduled");
xa=[];pa._zoneDelegates=xa;pa._zone=this;try{pa=this._zoneDelegate.scheduleTask(this,pa)}catch(Ca){throw pa._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ca),Ca;}pa._zoneDelegates===xa&&this._updateTaskCount(pa,1);"scheduling"==pa.state&&pa._transitionTo("scheduled","scheduling");return pa};y.prototype.scheduleMicroTask=function(pa,xa,Ca,Za){return this.scheduleTask(new J("microTask",pa,xa,Ca,Za,void 0))};y.prototype.scheduleMacroTask=function(pa,xa,Ca,Za,
Da){return this.scheduleTask(new J("macroTask",pa,xa,Ca,Za,Da))};y.prototype.scheduleEventTask=function(pa,xa,Ca,Za,Da){return this.scheduleTask(new J("eventTask",pa,xa,Ca,Za,Da))};y.prototype.cancelTask=function(pa){if(pa.zone!=this)throw Error("ea`"+(pa.zone||Aa).name+"`"+this.name);if("scheduled"===pa.state||"running"===pa.state){pa._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,pa)}catch(xa){throw pa._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
xa),xa;}this._updateTaskCount(pa,-1);pa._transitionTo("notScheduled","canceling");pa.runCount=0;return pa}};y.prototype._updateTaskCount=function(pa,xa){var Ca=pa._zoneDelegates;-1==xa&&(pa._zoneDelegates=null);for(var Za=0;Za<Ca.length;Za++)Ca[Za]._updateTaskCount(pa.type,xa)};ni.Object.defineProperties(y.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});ni.Object.defineProperties(y,{root:{configurable:!0,
enumerable:!0,get:function(){for(var pa=y.current;pa.parent;)pa=pa.parent;return pa}},current:{configurable:!0,enumerable:!0,get:function(){return Jb.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return ub}}});y.__symbol__=d;var F={name:"",onHasTask:function(pa,xa,Ca,Za){return pa.hasTask(Ca,Za)},onScheduleTask:function(pa,xa,Ca,Za){return pa.scheduleTask(Ca,Za)},onInvokeTask:function(pa,xa,Ca,Za,Da,Ab){return pa.invokeTask(Ca,Za,Da,Ab)},onCancelTask:function(pa,xa,Ca,Za){return pa.cancelTask(Ca,
Za)}},K=function(pa,xa,Ca){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=pa;this._parentDelegate=xa;this._forkZS=Ca&&(Ca&&Ca.onFork?Ca:xa._forkZS);this._forkDlgt=Ca&&(Ca.onFork?xa:xa._forkDlgt);this._forkCurrZone=Ca&&(Ca.onFork?this.zone:xa._forkCurrZone);this._interceptZS=Ca&&(Ca.onIntercept?Ca:xa._interceptZS);this._interceptDlgt=Ca&&(Ca.onIntercept?xa:xa._interceptDlgt);this._interceptCurrZone=Ca&&(Ca.onIntercept?this.zone:xa._interceptCurrZone);this._invokeZS=Ca&&(Ca.onInvoke?
Ca:xa._invokeZS);this._invokeDlgt=Ca&&(Ca.onInvoke?xa:xa._invokeDlgt);this._invokeCurrZone=Ca&&(Ca.onInvoke?this.zone:xa._invokeCurrZone);this._handleErrorZS=Ca&&(Ca.onHandleError?Ca:xa._handleErrorZS);this._handleErrorDlgt=Ca&&(Ca.onHandleError?xa:xa._handleErrorDlgt);this._handleErrorCurrZone=Ca&&(Ca.onHandleError?this.zone:xa._handleErrorCurrZone);this._scheduleTaskZS=Ca&&(Ca.onScheduleTask?Ca:xa._scheduleTaskZS);this._scheduleTaskDlgt=Ca&&(Ca.onScheduleTask?xa:xa._scheduleTaskDlgt);this._scheduleTaskCurrZone=
Ca&&(Ca.onScheduleTask?this.zone:xa._scheduleTaskCurrZone);this._invokeTaskZS=Ca&&(Ca.onInvokeTask?Ca:xa._invokeTaskZS);this._invokeTaskDlgt=Ca&&(Ca.onInvokeTask?xa:xa._invokeTaskDlgt);this._invokeTaskCurrZone=Ca&&(Ca.onInvokeTask?this.zone:xa._invokeTaskCurrZone);this._cancelTaskZS=Ca&&(Ca.onCancelTask?Ca:xa._cancelTaskZS);this._cancelTaskDlgt=Ca&&(Ca.onCancelTask?xa:xa._cancelTaskDlgt);this._cancelTaskCurrZone=Ca&&(Ca.onCancelTask?this.zone:xa._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;var Za=Ca&&Ca.onHasTask,Da=xa&&xa._hasTaskZS;if(Za||Da)this._hasTaskZS=Za?Ca:F,this._hasTaskDlgt=xa,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=pa,Ca.onScheduleTask||(this._scheduleTaskZS=F,this._scheduleTaskDlgt=xa,this._scheduleTaskCurrZone=this.zone),Ca.onInvokeTask||(this._invokeTaskZS=F,this._invokeTaskDlgt=xa,this._invokeTaskCurrZone=this.zone),Ca.onCancelTask||(this._cancelTaskZS=F,this._cancelTaskDlgt=xa,this._cancelTaskCurrZone=this.zone)};K.prototype.fork=
function(pa,xa){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,pa,xa):new y(pa,xa)};K.prototype.intercept=function(pa,xa,Ca){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,pa,xa,Ca):xa};K.prototype.invoke=function(pa,xa,Ca,Za,Da){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,pa,xa,Ca,Za,Da):xa.apply(Ca,Za)};K.prototype.handleError=function(pa,xa){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,pa,xa):!0};K.prototype.scheduleTask=function(pa,xa){var Ca=xa;if(this._scheduleTaskZS)this._hasTaskZS&&Ca._zoneDelegates.push(this._hasTaskDlgtOwner),(Ca=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,pa,xa))||(Ca=xa);else if(xa.scheduleFn)xa.scheduleFn(xa);else if("microTask"==xa.type)f(xa);else throw Error("fa");return Ca};K.prototype.invokeTask=function(pa,xa,Ca,Za){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,pa,xa,Ca,Za):xa.callback.apply(Ca,Za)};K.prototype.cancelTask=function(pa,xa){if(this._cancelTaskZS)pa=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,pa,xa);else{if(!xa.cancelFn)throw Error("ga");pa=xa.cancelFn(xa)}return pa};K.prototype.hasTask=function(pa,xa){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,pa,xa)}catch(Ca){this.handleError(pa,Ca)}};K.prototype._updateTaskCount=function(pa,xa){var Ca=this._taskCounts,
Za=Ca[pa];xa=Ca[pa]=Za+xa;if(0>xa)throw Error("ha");0!=Za&&0!=xa||this.hasTask(this.zone,{microTask:0<Ca.microTask,macroTask:0<Ca.macroTask,eventTask:0<Ca.eventTask,change:pa})};var J=function(pa,xa,Ca,Za,Da,Ab){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=pa;this.source=xa;this.data=Za;this.scheduleFn=Da;this.cancelFn=Ab;if(!Ca)throw Error("ia");this.callback=Ca;var Qa=this;"eventTask"===pa&&Za&&Za.useG?this.invoke=J.invokeTask:this.invoke=function(){return J.invokeTask.call(a,
Qa,this,arguments)}};J.invokeTask=function(pa,xa,Ca){pa||(pa=this);fb++;try{return pa.runCount++,pa.zone.runTask(pa,xa,Ca)}finally{1==fb&&h(),fb--}};J.prototype._transitionTo=function(pa,xa,Ca){if(this._state===xa||this._state===Ca)this._state=pa,"notScheduled"==pa&&(this._zoneDelegates=null);else throw Error("ja`"+this.type+"`"+this.source+"`"+pa+"`"+xa+"`"+(Ca?" or '"+Ca+"'":"")+"`"+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}};ni.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 R=d("setTimeout"),S=d("Promise"),aa=d("then"),ba=[],ka=!1,wa,Aa={name:"NO ZONE"},Ka={},Ja={symbol:d,currentZoneFrame:function(){return Jb},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},Jb={parent:null,zone:new y(null,null)},ub=null,fb=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(ba){for(var ka={zoneName:ba.zone.name},wa=ka;ba.parent;){ba=ba.parent;var Aa={zoneName:ba.zone.name};ka=ka.parent=Aa}return wa}function e(ba,ka,wa){wa=void 0===wa?!0:wa;ba=ba.split("\n");for(var Aa=0;ba[Aa]!==t&&ba[Aa]!==x&&ba[Aa]!==y&&ba[Aa]!==F&&ba[Aa]!==K&&Aa<ba.length;)Aa++;for(;Aa<ba.length&&ka;Aa++){var Ka=ba[Aa];if(Ka.trim())switch(q[Ka]){case 0:ba.splice(Aa,1);Aa--;break;case 1:ka.parent?ka=ka.parent:ka=null;ba.splice(Aa,1);Aa--;break;default:ba[Aa]+=
wa?" ["+ka.zone.name+"]":" ["+ka.zoneName+"]"}}return ba.join("\n")}function f(){var ba=this,ka=k.apply(this,arguments),wa=ka.originalStack=ka.stack;if(f.stackRewrite&&wa){var Aa=c.currentZoneFrame();if("lazy"===J)ka[c.symbol("zoneFrameNames")]=d(Aa);else if("default"===J)try{ka.stack=ka.zoneAwareStack=e(wa,Aa)}catch(Ka){}}return this instanceof k&&this.constructor!=k?(Object.keys(ka).concat("stack","message").forEach(function(Ka){var Ja=ka[Ka];if(void 0!==Ja)try{ba[Ka]=Ja}catch(Jb){}}),this):ka}
var h=c.symbol("zoneJsInternalStackFrames"),k=a[c.symbol("Error")]=a.Error,q={},t,x,y,F,K;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 R=c.symbol("zoneAwareStack");"lazy"===J&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[R]||(this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[R]},set:function(ba){this.originalStack=
ba;this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var S=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(k))&&a.forEach(function(ba){0===S.filter(function(ka){return ka===ba}).length&&Object.defineProperty(f,ba,{get:function(){return k[ba]},set:function(ka){k[ba]=ka}})});k.hasOwnProperty("stackTraceLimit")&&(k.stackTraceLimit=Math.max(k.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return k.stackTraceLimit},set:function(ba){return k.stackTraceLimit=
ba}}));k.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(ba,ka){k.captureStackTrace(ba,ka)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(ba){return ba&&"function"===typeof ba?k.prepareStackTrace=function(ka,wa){if(wa)for(var Aa=0;Aa<wa.length;Aa++)if("zoneCaptureStackTrace"===wa[Aa].getFunctionName()){wa.splice(Aa,1);break}return ba.call(this,ka,wa)}:k.prepareStackTrace=ba}});if("disable"!==
J){var aa=b.current.fork({name:"detect",onHandleError:function(ba,ka,wa,Aa){if(Aa.originalStack&&Error===f)for(ba=Aa.originalStack.split(/\n/),Aa=wa=ka=!1;ba.length;){var Ka=ba.shift();if(/:\d+:\d+/.test(Ka)||"ZoneAwareError"===Ka){var Ja=Ka.split("(")[0].split("@")[0],Jb=1;-1!==Ja.indexOf("ZoneAwareError")&&(-1!==Ja.indexOf("new ZoneAwareError")?(t=Ka,x=Ka.replace("new ZoneAwareError","new Error.ZoneAwareError")):(y=Ka,F=Ka.replace("Error.",""),-1===Ka.indexOf("Error.ZoneAwareError")&&(K=Ka.replace("ZoneAwareError",
"Error.ZoneAwareError"))),q[x]=0);-1!==Ja.indexOf("runGuarded")?wa=!0:-1!==Ja.indexOf("runTask")?Aa=!0:-1!==Ja.indexOf("run")?ka=!0:Jb=0;q[Ka]=Jb;if(ka&&wa&&Aa){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(ba,ka,wa,Aa){return ba.scheduleTask(wa,Aa)},onInvokeTask:function(ba,ka,wa,Aa,Ka,Ja){return ba.invokeTask(wa,Aa,Ka,Ja)},onCancelTask:function(ba,ka,wa,Aa){return ba.cancelTask(wa,Aa)},onInvoke:function(ba,ka,wa,Aa,Ka,Ja,Jb){return ba.invoke(wa,Aa,Ka,Ja,Jb)}});
b=Error.stackTraceLimit;Error.stackTraceLimit=100;aa.run(function(){aa.runGuarded(function(){var ba=function(){};aa.scheduleEventTask(h,function(){aa.scheduleMacroTask(h,function(){aa.scheduleMicroTask(h,function(){throw Error();},void 0,function(ka){ka._transitionTo=ba;ka.invoke()});aa.scheduleMicroTask(h,function(){throw Error();},void 0,function(ka){ka._transitionTo=ba;ka.invoke()})},void 0,function(ka){ka._transitionTo=ba;ka.invoke()},function(){})},void 0,function(ka){ka._transitionTo=ba;ka.invoke()},
function(){})})});Error.stackTraceLimit=b}});
var jc=Object.getOwnPropertyDescriptor,aca=Object.defineProperty,dca=Object.getPrototypeOf,zpb=Object.create,Apb=Array.prototype.slice,Bpb=Zone.__symbol__("addEventListener"),Cpb=Zone.__symbol__("removeEventListener"),tc=Zone.__symbol__(""),mc=Zone.__symbol__,jw="undefined"!==typeof window,sc=jw?window:void 0,oc=jw&&sc||"object"===typeof self&&self||global,Dpb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,vc=!("nw"in oc)&&"undefined"!==typeof oc.process&&"[object process]"===
{}.toString.call(oc.process),Epb=!vc&&!Dpb&&!(!jw||!sc.HTMLElement),Fpb="undefined"!==typeof oc.process&&"[object process]"==={}.toString.call(oc.process)&&!Dpb&&!(!jw||!sc.HTMLElement),nc={},$ba=function(a){if(a=a||oc.event){var b=nc[a.type];b||(b=nc[a.type]=mc("ON_PROPERTY"+a.type));var c=this||a.target||oc;b=c[b];Epb&&c===sc&&"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}},pc=mc("originalInstance"),fca=!1,gca=!1;
var wc=!1;if("undefined"!==typeof window)try{var kw=Object.defineProperty({},"passive",{get:function(){wc=!0}});window.addEventListener("test",kw,kw);window.removeEventListener("test",kw,kw)}catch(a){wc=!1}var lca={useG:!0},uc={},kca={},nca=new RegExp("^"+tc+"(\\w+)(true|false)$"),jca=mc("propagationStopped");
Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Qa){if(Qa&&Qa.toString===Object.prototype.toString){var $a=Qa.constructor&&Qa.constructor.name;return($a?$a:"")+": "+JSON.stringify(Qa)}return Qa?Qa.toString():Object.prototype.toString.call(Qa)}function e(Qa){c.onUnhandledError(Qa);try{var $a=b[wa];"function"===typeof $a&&$a.call(this,Qa)}catch(Oa){}}function f(Qa){return Qa}function h(Qa){return Da.reject(Qa)}function k(Qa,$a){return function(Oa){try{q(Qa,$a,Oa)}catch(mb){q(Qa,!1,mb)}}}
function q(Qa,$a,Oa){var mb=fb();if(Qa===Oa)throw new TypeError("la");if(null===Qa[Aa]){var Ua=null;try{if("object"===typeof Oa||"function"===typeof Oa)Ua=Oa&&Oa.then}catch(xb){return mb(function(){q(Qa,!1,xb)})(),Qa}if(!1!==$a&&Oa instanceof Da&&Oa.hasOwnProperty(Aa)&&Oa.hasOwnProperty(Ka)&&null!==Oa[Aa])t(Oa),q(Qa,Oa[Aa],Oa[Ka]);else if(!1!==$a&&"function"===typeof Ua)try{Ua.call(Oa,mb(k(Qa,$a)),mb(k(Qa,!1)))}catch(xb){mb(function(){q(Qa,!1,xb)})()}else{Qa[Aa]=$a;mb=Qa[Ka];Qa[Ka]=Oa;Qa[Ja]===Ja&&
!0===$a&&(Qa[Aa]=Qa[ub],Qa[Ka]=Qa[Jb]);!1===$a&&Oa instanceof Error&&(Ua=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&J(Oa,pa,{configurable:!0,enumerable:!1,writable:!0,value:Ua});for(Ua=0;Ua<mb.length;)x(Qa,mb[Ua++],mb[Ua++],mb[Ua++],mb[Ua++]);if(0==mb.length&&0==$a){Qa[Aa]=0;$a=Oa;try{throw Error("ma`"+d(Oa)+"`"+(Oa&&Oa.stack?"\n"+Oa.stack:""));}catch(xb){$a=xb}aa&&($a.throwOriginal=!0);$a.rejection=Oa;$a.promise=Qa;$a.zone=b.current;$a.task=b.currentTask;S.push($a);
c.scheduleMicroTask()}}}return Qa}function t(Qa){if(0===Qa[Aa]){try{var $a=b[xa];$a&&"function"===typeof $a&&$a.call(this,{rejection:Qa[Ka],promise:Qa})}catch(Oa){}Qa[Aa]=!1;for($a=0;$a<S.length;$a++)Qa===S[$a].promise&&S.splice($a,1)}}function x(Qa,$a,Oa,mb,Ua){t(Qa);var xb=Qa[Aa],Ob=xb?"function"===typeof mb?mb:f:"function"===typeof Ua?Ua:h;$a.scheduleMicroTask("Promise.then",function(){try{var kc=Qa[Ka],Cc=!!Oa&&Ja===Oa[Ja];Cc&&(Oa[Jb]=kc,Oa[ub]=xb);var De=$a.run(Ob,void 0,Cc&&Ob!==h&&Ob!==f?[]:
[kc]);q(Oa,!0,De)}catch(hd){q(Oa,!1,hd)}},Oa)}function y(Qa){var $a=Qa.prototype,Oa=K($a,"then");if(!Oa||!1!==Oa.writable&&Oa.configurable){var mb=$a.then;$a[ka]=mb;Qa.prototype.then=function(Ua,xb){var Ob=this;return(new Da(function(kc,Cc){mb.call(Ob,kc,Cc)})).then(Ua,xb)};Qa[Ab]=!0}}function F(Qa){return function($a,Oa){$a=Qa.apply($a,Oa);if($a instanceof Da)return $a;Oa=$a.constructor;Oa[Ab]||y(Oa);return $a}}var K=Object.getOwnPropertyDescriptor,J=Object.defineProperty,R=c.symbol,S=[],aa=!0===
a[R("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ba=R("Promise"),ka=R("then");c.onUnhandledError=function(Qa){if(c.showUncaughtError()){var $a=Qa&&Qa.rejection;$a?console.error("Unhandled Promise rejection:",$a instanceof Error?$a.message:$a,"; Zone:",Qa.zone.name,"; Task:",Qa.task&&Qa.task.source,"; Value:",$a,$a instanceof Error?$a.stack:void 0):console.error(Qa)}};c.microtaskDrainDone=function(){for(var Qa={};S.length;){Qa.$jscomp$loop$prop$uncaughtPromiseError$1888=S.shift();try{Qa.$jscomp$loop$prop$uncaughtPromiseError$1888.zone.runGuarded(function($a){return function(){if($a.$jscomp$loop$prop$uncaughtPromiseError$1888.throwOriginal)throw $a.$jscomp$loop$prop$uncaughtPromiseError$1888.rejection;
throw $a.$jscomp$loop$prop$uncaughtPromiseError$1888;}}(Qa))}catch($a){e($a)}Qa={$jscomp$loop$prop$uncaughtPromiseError$1888:Qa.$jscomp$loop$prop$uncaughtPromiseError$1888}}};var wa=R("unhandledPromiseRejectionHandler"),Aa=R("state"),Ka=R("value"),Ja=R("finally"),Jb=R("parentPromiseValue"),ub=R("parentPromiseState"),fb=function(){var Qa=!1;return function($a){return function(){Qa||(Qa=!0,$a.apply(null,arguments))}}},pa=R("currentTaskTrace"),xa=R("rejectionHandledHandler"),Ca=function(){},Za=a.AggregateError,
Da=function(Qa){if(!(this instanceof Da))throw Error("na");this[Aa]=null;this[Ka]=[];try{var $a=fb();Qa&&Qa($a(k(this,!0)),$a(k(this,!1)))}catch(Oa){q(this,!1,Oa)}};Da.toString=function(){return"function ZoneAwarePromise() { [native code] }"};Da.resolve=function(Qa){return q(new this(null),!0,Qa)};Da.reject=function(Qa){return q(new this(null),!1,Qa)};Da.any=function(Qa){if(!Qa||"function"!==typeof Qa[Symbol.iterator])return Promise.reject(new Za([],"All promises were rejected"));var $a=[],Oa=0;try{for(var mb=
n(Qa),Ua=mb.next();!Ua.done;Ua=mb.next()){var xb=Ua.value;Oa++;$a.push(Da.resolve(xb))}}catch(Cc){return Promise.reject(new Za([],"All promises were rejected"))}if(0===Oa)return Promise.reject(new Za([],"All promises were rejected"));var Ob=!1,kc=[];return new Da(function(Cc,De){for(var hd=0;hd<$a.length;hd++)$a[hd].then(function(Qd){Ob||(Ob=!0,Cc(Qd))},function(Qd){kc.push(Qd);Oa--;0===Oa&&(Ob=!0,De(new Za(kc,"All promises were rejected")))})})};Da.race=function(Qa){function $a(kc){mb(kc)}function Oa(kc){Ua(kc)}
var mb,Ua,xb=new this(function(kc,Cc){mb=kc;Ua=Cc});Qa=n(Qa);for(var Ob=Qa.next();!Ob.done;Ob=Qa.next())(Ob=Ob.value)&&Ob.then||(Ob=this.resolve(Ob)),Ob.then($a,Oa);return xb};Da.all=function(Qa){return Da.allWithCallback(Qa)};Da.allSettled=function(Qa){return(this&&this.prototype instanceof Da?this:Da).allWithCallback(Qa,{thenCallback:function($a){return{status:"fulfilled",value:$a}},errorCallback:function($a){return{status:"rejected",reason:$a}}})};Da.allWithCallback=function(Qa,$a){var Oa,mb,Ua=
new this(function(hd,Qd){Oa=hd;mb=Qd}),xb=2,Ob=0,kc=[],Cc={};Qa=n(Qa);for(var De=Qa.next();!De.done;Cc={$jscomp$loop$prop$curValueIndex$1891:Cc.$jscomp$loop$prop$curValueIndex$1891},De=Qa.next()){(De=De.value)&&De.then||(De=this.resolve(De));Cc.$jscomp$loop$prop$curValueIndex$1891=Ob;try{De.then(function(hd){return function(Qd){kc[hd.$jscomp$loop$prop$curValueIndex$1891]=$a?$a.thenCallback(Qd):Qd;xb--;0===xb&&Oa(kc)}}(Cc),function(hd){return function(Qd){$a?(kc[hd.$jscomp$loop$prop$curValueIndex$1891]=
$a.errorCallback(Qd),xb--,0===xb&&Oa(kc)):mb(Qd)}}(Cc))}catch(hd){mb(hd)}xb++;Ob++}xb-=2;0===xb&&Oa(kc);return Ua};ni.Object.defineProperty(Da.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});ni.Object.defineProperty(Da.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return Da}});Da.prototype.then=function(Qa,$a){var Oa,mb=null==(Oa=this.constructor)?void 0:Oa[Symbol.species];mb&&"function"===typeof mb||(mb=this.constructor||Da);
Oa=new mb(Ca);mb=b.current;null==this[Aa]?this[Ka].push(mb,Oa,Qa,$a):x(this,mb,Oa,Qa,$a);return Oa};Da.prototype.catch=function(Qa){return this.then(null,Qa)};Da.prototype.finally=function(Qa){var $a,Oa=null==($a=this.constructor)?void 0:$a[Symbol.species];Oa&&"function"===typeof Oa||(Oa=Da);$a=new Oa(Ca);$a[Ja]=Ja;Oa=b.current;null==this[Aa]?this[Ka].push(Oa,$a,Qa,Qa):x(this,Oa,$a,Qa,Qa);return $a};Da.resolve=Da.resolve;Da.reject=Da.reject;Da.race=Da.race;Da.all=Da.all;ba=a[ba]=a.Promise;a.Promise=
Da;var Ab=R("thenPatched");c.patchThen=y;ba&&(y(ba),rc(a,"fetch",function(Qa){return F(Qa)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=S;return Da});
var xc=mc("zoneTask");
Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=mc("OriginalDelegate"),d=mc("Promise"),e=mc("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=sca(a);c.patchOnProperties=cca;c.patchMethod=rc;c.bindArguments=Xba;c.patchMacroTask=eca;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=pca;c.patchEventTarget=oca;c.isIEOrEdge=hca;c.ObjectDefineProperty=aca;c.ObjectGetOwnPropertyDescriptor=jc;c.ObjectCreate=zpb;c.ArraySlice=Apb;c.patchClass=qc;c.wrapWithCurrentZone=Wba;c.filterProperties=rca;c.attachOriginToPatched=
lc;c._redefineProperty=Object.defineProperty;c.patchCallbacks=qca;c.getGlobalObjects=function(){return{globalSources:kca,zoneSymbolEventNames:uc,eventNames:d,isBrowser:Epb,isMix:Fpb,isNode:vc,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:tc,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});
var zc,Ac,tca,uca,Bc;
var Cca=[].concat(r("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(" ")),
r(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),r(["autocomplete","autocompleteerror"]),r(["toggle"]),r("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),r("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(" ")),
r("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),r("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=yca;xca()});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){zca(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||Bca(e,c)||(d="undefined"!==typeof WebSocket,Dca(e),e.patchClass("XMLHttpRequest"),d&&Aca(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("queueMicrotask",function(a,b,c){c.patchMethod(a,"queueMicrotask",function(){return function(d,e){b.current.scheduleMicroTask("queueMicrotask",e[0])}})});Zone.__load_patch("timers",function(a){yc(a,"set","clear","Timeout");yc(a,"set","clear","Interval");yc(a,"set","clear","Immediate")});
Zone.__load_patch("requestAnimationFrame",function(a){yc(a,"request","cancel","AnimationFrame");yc(a,"mozRequest","mozCancel","AnimationFrame");yc(a,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",function(a,b){for(var c=["alert","prompt","confirm"],d=0;d<c.length;d++)rc(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],t=d+(q+h),x=d+(q+f);e[q]={};e[q][h]=t;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(){qc("MutationObserver");qc("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",function(){qc("IntersectionObserver")});Zone.__load_patch("FileReader",function(){qc("FileReader")});
Zone.__load_patch("on_property",function(a,b,c){if((!vc||Fpb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(Epb){var d=window;c=c.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var e=sc.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=sca(d);var h=b?b.concat(e):b;e=dca(d);d&&(f=rca(d,f,h),cca(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=sca(e.prototype),f&&(e=rca(f,e,b),cca(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 t(wa){var Aa=wa.data,Ka=Aa.target;Ka[f]=!1;Ka[k]=!1;var Ja=Ka[e];K||(K=Ka[Bpb],J=Ka[Cpb]);Ja&&J.call(Ka,"readystatechange",Ja);Ja=Ka[e]=function(){if(Ka.readyState===Ka.DONE)if(!Aa.aborted&&Ka[f]&&"scheduled"===wa.state){var Jb=Ka[b.__symbol__("loadfalse")];if(0!==Ka.status&&Jb&&0<Jb.length){var ub=wa.invoke;wa.invoke=function(){for(var fb=Ka[b.__symbol__("loadfalse")],pa=0;pa<fb.length;pa++)fb[pa]===wa&&fb.splice(pa,1);Aa.aborted||"scheduled"!==
wa.state||ub.call(wa)};Jb.push(wa)}else wa.invoke()}else Aa.aborted||!1!==Ka[f]||(Ka[k]=!0)};K.call(Ka,"readystatechange",Ja);Ka[c]||(Ka[c]=wa);ba.apply(Ka,Aa.args);Ka[f]=!0;return wa}function x(){}function y(wa){wa=wa.data;wa.aborted=!0;return ka.apply(wa.target,wa.args)}var F=q.XMLHttpRequest;if(F){F=F.prototype;var K=F[Bpb],J=F[Cpb];!K&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,K=q[Bpb],J=q[Cpb]);var R=rc(F,"open",function(){return function(wa,Aa){wa[d]=0==Aa[2];wa[h]=Aa[1];return R.apply(wa,
Aa)}}),S=mc("fetchTaskAborting"),aa=mc("fetchTaskScheduling"),ba=rc(F,"send",function(){return function(wa,Aa){if(!0===b.current[aa]||wa[d])return ba.apply(wa,Aa);Aa={target:wa,url:wa[h],isPeriodic:!1,args:Aa,aborted:!1};var Ka=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Aa,t,y);wa&&!0===wa[k]&&!Aa.aborted&&"scheduled"===Ka.state&&Ka.invoke()}}),ka=rc(F,"abort",function(){return function(wa,Aa){var Ka=wa[c];if(Ka&&"string"==typeof Ka.type)null==Ka.cancelFn||Ka.data&&Ka.data.aborted||Ka.zone.cancelTask(Ka);
else if(!0===b.current[S])return ka.apply(wa,Aa)}})}})(a);var c=mc("xhrTask"),d=mc("xhrSync"),e=mc("xhrListener"),f=mc("xhrScheduled"),h=mc("xhrURL"),k=mc("xhrErrorBeforeScheduled")});Zone.__load_patch("geolocation",function(a){a.navigator&&a.navigator.geolocation&&Zba(a.navigator.geolocation)});
Zone.__load_patch("PromiseRejectionEvent",function(a,b){function c(d){return function(e){mca(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[mc("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[mc("rejectionHandledHandler")]=c("rejectionhandled"))});
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 Hca=Dc({__forward_ref__:Dc});
var Ica=Dc({"\u0275prov":Dc}),Lca=Dc({"\u0275inj":Dc}),Jca=Dc({ngInjectableDef:Dc}),Mca=Dc({ngInjectorDef:Dc});
var Md=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=Hc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};Md.prototype.toString=function(){return"InjectionToken "+this._desc};ni.Object.defineProperties(Md.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});
var Lda=new Md("ENVIRONMENT_INITIALIZER");
var Xd="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof global&&global||"undefined"!==typeof window&&window||"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
var Lc=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b.trim():""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};X(Lc,Error);
var Oca;
var lw={},Gpb=/\n/gm,Oc=void 0;
var Hpb=Sc(Vc(function(a){return{token:a}}),-1),mw=Sc(Vc(),8);Sc(Vc(),2);var nw=Sc(Vc(),4);Sc(Vc(),1);
var Xc=Dc({"\u0275cmp":Dc}),Zca=Dc({"\u0275dir":Dc}),$ca=Dc({"\u0275pipe":Dc}),Ipb=Dc({"\u0275mod":Dc}),cd=Dc({"\u0275fac":Dc}),yd=Dc({__NG_ELEMENT_ID__:Dc});
var Zc={},Wc=[];
var Tca=0;
var dda=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};dda.prototype.isFirstChange=function(){return this.firstChange};
ed.ngInherit=!0;
var kd=jda(null);
var Ed=function(a,b){var c=B;this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};
var pda=!0,qda=0,Bd={},Fd=function(a,b){this._tNode=a;this._lView=b};Fd.prototype.get=function(a,b,c){return yda(this._tNode,this._lView,a,Qc(c),b)};
Dc({provide:String,useValue:Dc});
var Kda=new Md("INJECTOR_DEF_TYPES");
var Mda=Dc({provide:String,useValue:Dc});
var Jpb=new Md("INJECTOR",-1);
var Pda=function(){};Pda.prototype.get=function(a,b){b=void 0===b?lw:b;if(b===lw)throw a=Error("sa`"+Ec(a)),a.name="NullInjectorError",a;return b};
var wha=new Md("Set Injector scope.");
var Od={},Kpb={},Oda=void 0,ow=function(){},Pd=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;Uda(a,function(f){return Lpb(e,f)});this.records.set(Jpb,Nd(void 0,this));d.has("environment")&&this.records.set(ow,Nd(void 0,this));a=this.records.get(wha);null!=a&&"string"===typeof a.value&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(Kda.multi,Wc,2))};X(Pd,ow);
Pd.prototype.destroy=function(){Mpb(this);this._destroyed=!0;try{for(var a=n(this._ngOnDestroyHooks),b=a.next();!b.done;b=a.next())b.value.ngOnDestroy();for(var c=n(this._onDestroyHooks),d=c.next();!d.done;d=c.next()){var e=d.value;e()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}};Pd.prototype.onDestroy=function(a){this._onDestroyHooks.push(a)};var wi=function(a,b){Mpb(a);a=Pc(a);var c=Nc();try{return b()}finally{Pc(a),Nc(c)}};
Pd.prototype.get=function(a,b,c){b=void 0===b?lw:b;c=void 0===c?0:c;Mpb(this);c=Qc(c);var d=Pc(this),e=Nc();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof Md)&&Jc(a),k;if(k=h)if(h.providedIn){var q=Gc(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=Nd(Rda(a),Od):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===Od&&(b.value=Kpb,b.value=b.factory());var t;if(t=
"object"===typeof b.value&&b.value){var x=b.value;t=null!==x&&"object"===typeof x&&"function"===typeof x.ngOnDestroy}t&&this._ngOnDestroyHooks.add(b.value);return b.value}}var y=c&2?Ld():this.parent;b=c&8&&b===lw?null:b;return y.get(a,b)}catch(ka){if("NullInjectorError"===ka.name){(ka.ngTempTokenPath=ka.ngTempTokenPath||[]).unshift(Ec(a));if(d)throw ka;t=ka;var F=this.source,K=t.ngTempTokenPath;a.__source&&K.unshift(a.__source);var J="\n"+t.message;a=F;a=void 0===a?null:a;J=J&&"\n"===J.charAt(0)&&
"\u0275"==J.charAt(1)?J.slice(2):J;var R=Ec(K);if(Array.isArray(K))R=K.map(Ec).join(" -> ");else if("object"===typeof K){F=[];for(var S in K)if(K.hasOwnProperty(S)){var aa=K[S];F.push(S+":"+("string"===typeof aa?JSON.stringify(aa):Ec(aa)))}R="{"+F.join(", ")+"}"}var ba="R3InjectorError"+(a?"("+a+")":"")+"["+R+"]: "+J.replace(Gpb,"\n  ");t.message=ba;t.ngTokenPath=K;t.ngTempTokenPath=null;throw t;}throw ka;}finally{Nc(e),Pc(d)}};
var Wda=function(a){var b=Pc(a),c=Nc();try{for(var d=a.get(Lda.multi,Wc,2),e=n(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{Pc(b),Nc(c)}};Pd.prototype.toString=function(){for(var a=[],b=n(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Ec(c.value));return"R3Injector["+a.join(", ")+"]"};
var Mpb=function(a){if(a._destroyed)throw new Lc(205,!1);},Lpb=function(a,b){b=Gc(b);var c=Kd(b)?b:Gc(b&&b.provide),d=Tda(b);if(Kd(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=Nd(void 0,Od,!0),e.factory=function(){return Rca(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};ni.Object.defineProperties(Pd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
var dl=function(){},Jf=function(a){if(Array.isArray(a))return Xda({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return Xda({name:c},a.parent,a.providers,c)},Npb=new Pda;dl.\u0275prov=Hc({token:dl,providedIn:"any",factory:function(){return p(Jpb)}});dl.__NG_ELEMENT_ID__=-1;
var pw=function(a,b){this.token=a;this.id=b;if(!a)throw new Lc(208,!1);this.displayName=Ec(this.token)};ni.Object.defineProperties(pw,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Opb.numberOfKeys}}});var Ppb=function(){this._allKeys=new Map};Ppb.prototype.get=function(a){if(a instanceof pw)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new pw(a,pw.numberOfKeys);this._allKeys.set(a,b);return b};
ni.Object.defineProperties(Ppb.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});var Opb=new Ppb;
Opb.get(Gc(dl));
var qw=function(){};
var rw=function(){},Qpb=function(){};
var Rpb=function(){},Spb=function(){};
var Rd=function(a){this.nativeElement=a};Rd.__NG_ELEMENT_ID__=function(){return Sd(ld(),v())};
var sw=function(){},tw=function(){};tw.__NG_ELEMENT_ID__=function(){var a=v(),b=id(ld().index,a);return(ad(b)?b:a)[11]};
var Zda=new Map,Kea=0;
var te=function(){this._console=console};te.prototype.handleError=function(a){var b=this._findOriginalError(a);this._console.error("ERROR",a);b&&this._console.error("ORIGINAL ERROR",b)};te.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};
var Wd;
var qe={};
var Hea=void 0;
var de=function(a){this.changingThisBreaksApplicationSecurity=a};de.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var Tpb=function(){de.apply(this,arguments)};X(Tpb,de);Tpb.prototype.getTypeName=function(){return"HTML"};var Upb=function(){de.apply(this,arguments)};X(Upb,de);Upb.prototype.getTypeName=function(){return"URL"};var Vpb=function(){de.apply(this,arguments)};X(Vpb,de);
Vpb.prototype.getTypeName=function(){return"ResourceURL"};
var vea=function(a){this.inertDocumentHelper=a};vea.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Yd(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};
var uea=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");if(null==this.inertDocument.body){a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);var b=this.inertDocument.createElement("body");a.appendChild(b)}};
uea.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=Yd(a),b;b=this.inertDocument.createElement("body");b.innerHTML=Yd(a);this.defaultDoc.documentMode&&Wpb(this,b);return b};var Wpb=function(a,b){for(var c=b.attributes,d=c.length-1;0<d;d--){var e=c.item(d).name;"xmlns:ns1"!==e&&0!==e.indexOf("ns1:")||b.removeAttribute(e)}for(b=b.firstChild;b;)b.nodeType===Node.ELEMENT_NODE&&Wpb(a,b),b=b.nextSibling};
var pea=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
var Xpb=ge("area,br,col,hr,img,wbr"),Ypb=ge("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Zpb=ge("rp,rt"),$pb=he(Zpb,Ypb),aqb=he(Ypb,ge("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")),bqb=he(Zpb,ge("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")),
xea=he(Xpb,aqb,bqb,$pb),zea=ge("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cqb=ge("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"),
dqb=ge("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"),
yea=he(zea,cqb,dqb),Aea=ge("script,style,template"),wea=function(){this.buf=[]};wea.prototype.endElement=function(a){a=a.nodeName.toLowerCase();xea.hasOwnProperty(a)&&!Xpb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var Bea=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},rea=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sea=/([^#-~ |!])/g,ie;
var eqb={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 je;
var Ig=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=Ig.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(bd(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(eea(a,c),Hd(b,c))}this._attachedToViewContainer=!1}gea(this._lView[1],this._lView)};g.onDestroy=function(a){Vea(this._lView[1],this._lView,null,a)};
g.markForCheck=function(){bfa(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-65};g.detectChanges=function(){dfa(this._lView[1],this._lView,this.context)};
ni.Object.defineProperties(Ig.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return ve(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 128===(this._lView[2]&128)}}});var uw=function(a){Ig.call(this,a);this._view=a};X(uw,Ig);uw.prototype.detectChanges=function(){var a=this._view;dfa(a[1],a,a[8],!1)};
ni.Object.defineProperties(uw.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});
var vw=function(){};vw.\u0275prov=Hc({token:vw,providedIn:"root",factory:function(){return null}});
var fqb=new function(a){this.full=a;this.major=a.split(".")[0];this.minor=a.split(".")[1];this.patch=a.split(".").slice(2).join(".")}("0.0.0-PLACEHOLDER");
var gqb={};
var ww=function(a){this.ngModule=a};X(ww,qw);ww.prototype.resolveComponentFactory=function(a){return new xw(a[Xc]||null,this.ngModule)};var hqb=function(a,b){this.injector=a;this.parentInjector=b};hqb.prototype.get=function(a,b,c){c=Qc(c);var d=this.injector.get(a,gqb,c);return d!==gqb||b===gqb?d:this.parentInjector.get(a,b,c)};
var xw=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(oea).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};X(xw,Spb);
xw.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e;(d=d instanceof ow?d:null==(e=d)?void 0:e.injector)&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);d=d?new hqb(a,d):a;var f=d.get(sw,null);if(null===f)throw new Lc(407,!1);var h=d.get(vw,null);e=f.createRenderer(null,this.componentDef);a=this.componentDef.selectors[0][0]||"div";if(c)a=e.selectRootElement(c,3===this.componentDef.encapsulation);else{var k=a.toLowerCase();a=e.createElement(a,
"svg"===k?"svg":"math"===k?"math":null)}k=a;var q=this.componentDef.onPush?288:272;a=Uea(0,null,null,1,0,null,null,null,null,null);d=me(null,a,null,q,null,null,f,e,h,d,null);ida(d);try{var t=this.componentDef;h=null;if(t.findHostDirectiveDefs){var x=[];h=new Map;t.findHostDirectiveDefs(t,x,h);x.push(t)}else x=[t];var y=d[1];d[22]=k;var F=ne(y,22,2,"#host",null);y=x;for(var K=d[1],J=n(y),R=J.next();!R.done;R=J.next())F.mergedAttrs=vd(F.mergedAttrs,R.value.hostAttrs);null!==F.mergedAttrs&&(ue(F,F.mergedAttrs,
!0),null!==k&&kea(e,k,F));var S=f.createRenderer(k,t),aa=me(d,Qea(t),null,t.onPush?32:16,d[F.index],F,f,S,null,null,null);K.firstCreatePass&&Zea(K,F,y.length-1);pe(d,aa);var ba=d[F.index]=aa;var ka=a.data[22];if(k)if(c)nda(e,k,["ng-version",fqb.full]);else{var wa=t.selectors[0];c=[];F=[];K=1;for(J=2;K<wa.length;){var Aa=wa[K];if("string"===typeof Aa)2===J?""!==Aa&&c.push(Aa,wa[++K]):8===J&&F.push(Aa);else{if(0!==(J&1))break;J=Aa}K++}c&&nda(e,k,c);if(F&&0<F.length){var Ka=F.join(" ");""===Ka?e.removeAttribute(k,
"class"):e.setAttribute(k,"class",Ka)}}if(void 0!==b){var Ja=this.ngContentSelectors,Jb=ka.projection=[];for(wa=0;wa<Ja.length;wa++){var ub=b[wa];Jb.push(null!=ub?Array.from(ub):null)}}b=x;Ja=h;x=[gfa];var fb=ld(),pa=d[1],xa=gd(fb,d);$ea(pa,d,fb,b,null,Ja);for(Ja=0;Ja<b.length;Ja++){var Ca=Dd(d,pa,fb.directiveStart+Ja,fb);Td(Ca,d)}Rea(pa,d,fb);xa&&Td(xa,d);var Za=Dd(d,pa,fb.directiveStart+fb.componentOffset,fb);ba[8]=d[8]=Za;if(null!==x)for(var Da=n(x),Ab=Da.next();!Ab.done;Ab=Da.next()){var Qa=Ab.value;
Qa(Za,t)}Pea(pa,fb,ba);var $a=Za;Nea(a,d,null)}finally{lda()}return new yw(this.componentType,$a,Sd(ka,d),d,ka)};ni.Object.defineProperties(xw.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){return ffa(this.componentDef.inputs)}},outputs:{configurable:!0,enumerable:!0,get:function(){return ffa(this.componentDef.outputs)}}});var yw=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.instance=b;this.hostView=this.changeDetectorRef=new uw(d);this.componentType=a};
X(yw,Rpb);yw.prototype.setInput=function(a,b){var c=this._tNode.inputs,d;null!==c&&(d=c[a])&&(c=this._rootLView,Xea(c[1],c,d,a,b),Yea(c,this._tNode.index))};yw.prototype.destroy=function(){this.hostView.destroy()};yw.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};ni.Object.defineProperties(yw.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Fd(this._tNode,this._rootLView)}}});
var zw=function(a,b){this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new ww(this);var c=(a[Ipb]||null).bootstrap;this._bootstrapComponents=c instanceof Function?c():c;this._r3Injector=Vda(a,b,[{provide:rw,useValue:this},{provide:qw,useValue:this.componentFactoryResolver}],Ec(a),new Set(["environment"]));Wda(this._r3Injector);this.instance=this._r3Injector.get(a)};X(zw,rw);
zw.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};zw.prototype.onDestroy=function(a){this.destroyCbs.push(a)};ni.Object.defineProperties(zw.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});var Aw=function(a){this.moduleType=a};X(Aw,Qpb);Aw.prototype.create=function(a){return new zw(this.moduleType,a)};
var we=function(a,b,c){this.componentFactoryResolver=new ww(this);this.instance=null;this.injector=a=new Pd([].concat(r(a),[{provide:rw,useValue:this},{provide:qw,useValue:this.componentFactoryResolver}]),b||Ld(),c,new Set(["environment"]));Wda(a)};X(we,rw);we.prototype.destroy=function(){this.injector.destroy()};we.prototype.onDestroy=function(a){this.injector.onDestroy(a)};
var Bw=new Md("Application Initializer"),Cw=function(a){var b=this;this.appInits=a;this.reject=this.resolve=jfa;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){b.resolve=c;b.reject=d})},iqb=function(a){if(!a.initialized){var b=[];if(a.appInits)for(var c={},d=0;d<a.appInits.length;c={$jscomp$loop$prop$initResult$1898:c.$jscomp$loop$prop$initResult$1898},d++)if(c.$jscomp$loop$prop$initResult$1898=a.appInits[d](),xe(c.$jscomp$loop$prop$initResult$1898))b.push(c.$jscomp$loop$prop$initResult$1898);
else if(ifa(c.$jscomp$loop$prop$initResult$1898)){var e=new Promise(function(f){return function(h,k){f.$jscomp$loop$prop$initResult$1898.subscribe({complete:h,error:k})}}(c));b.push(e)}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}};Cw.\u0275fac=function(a){return new (a||Cw)(p(Bw,8))};Cw.\u0275prov=Hc({token:Cw,factory:Cw.\u0275fac,providedIn:"root"});
var jqb=new Md("AppId",{providedIn:"root",factory:lfa}),qha=new Md("Platform Initializer"),Dw=new Md("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),kqb=new Md("appBootstrapListener");new Md("Application Packages Root URL");var Ew=new Md("AnimationModuleType");
var Fw=function(){};Fw.prototype.log=function(a){console.log(a)};Fw.prototype.warn=function(a){console.warn(a)};Fw.\u0275fac=function(a){return new (a||Fw)};Fw.\u0275prov=Hc({token:Fw,factory:Fw.\u0275fac,providedIn:"platform"});
var nfa=["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 ofa={};
var ti=new Md("LocaleId",{providedIn:"root",factory:function(){return Rc(ti,12)||("undefined"!==typeof av?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new Md("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new Md("Translations");new Md("TranslationsFormat");
var el=function(){};el.prototype.getModuleId=function(){};el.\u0275fac=function(a){return new (a||el)};el.\u0275prov=Hc({token:el,factory:el.\u0275fac,providedIn:"root"});new Md("compilerOptions");
var pfa=Promise.resolve(0);
var lqb=!1,He={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):lqb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");lqb=a},get useDeprecatedSynchronousErrorHandling(){return lqb}};
var Ze="function"===typeof Symbol&&Symbol.observable||"@@observable";
var Gw={closed:!0,next:function(){},error:function(a){if(He.useDeprecatedSynchronousErrorHandling)throw a;ze(a)},complete:function(){}};
var Ee=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 Ne=Array.isArray||function(a){return a&&"number"===typeof a.length};
var Ce=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
Ce.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 Ce)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 Ee?sfa(q.errors):[q]}}if(Ne(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if(Be(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof Ee?f=f.concat(sfa(q.errors)):f.push(q)}}}if(f)throw new Ee(f);}};
Ce.prototype.add=function(a){var b=a;if(!a)return Ce.EMPTY;switch(typeof a){case "function":b=new Ce(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof Ce||(a=b,b=new Ce,b._subscriptions=[a]);break;default:throw Error("xa`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof Ce){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};Ce.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var mqb=new Ce;mqb.closed=!0;Ce.EMPTY=mqb;
var Fe=function(a,b,c){Ce.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=Gw;break;case 1:if(!a){this.destination=Gw;break}if("object"===typeof a){a instanceof Fe?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new Hw(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new Hw(this,a,b,c)}};X(Fe,Ce);Fe.EMPTY=Ce.EMPTY;
Fe.create=function(a,b,c){a=new Fe(a,b,c);a.syncErrorThrowable=!1;return a};g=Fe.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,Ce.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 Hw=function(a,b,c,d){Fe.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!==Gw&&(e=Object.create(b),rfa(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};X(Hw,Fe);Hw.EMPTY=Fe.EMPTY;Hw.create=Fe.create;g=Hw.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;He.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=He.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)};He.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(He.useDeprecatedSynchronousErrorHandling)throw c;ze(c)}};
g.__tryOrSetError=function(a,b,c){if(!He.useDeprecatedSynchronousErrorHandling)throw Error("ya");try{b.call(this._context,c)}catch(d){return He.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 Iw=function(a){Fe.call(this);this.destination=a};X(Iw,Fe);Iw.EMPTY=Fe.EMPTY;Iw.create=Fe.create;
var Ie=function(a){a&&(this._subscribe=a)};g=Ie.prototype;g.lift=function(a){var b=new Ie;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof Fe||vfa(a)&&rfa(a))break a;if(vfa(a)){a=new Iw(a);break a}}a=a||b||c?new Fe(a,b,c):new Fe(Gw)}d?a.add(d.call(a,this.source)):a.add(this.source||He.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(He.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){He.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),tfa(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=wfa(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)};Ie.prototype[Ze]=function(){return this};
Ie.prototype.pipe=function(){var a=Uc.apply(0,arguments);return 0===a.length?this:ufa(a)(this)};var nqb=function(a){var b=wfa(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)})})};Ie.create=function(a){return new Ie(a)};
var Jw=function(a,b){Ce.call(this);this.subject=a;this.subscriber=b;this.closed=!1};X(Jw,Ce);Jw.EMPTY=Ce.EMPTY;Jw.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 Kw=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();
var yf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};X(yf,Ie);g=yf.prototype;g.lift=function(a){var b=new Lw(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new Kw;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 Kw;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 Kw;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 Kw;return Ie.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new Kw;if(this.hasError)return a.error(this.thrownError),Ce.EMPTY;if(this.isStopped)return a.complete(),Ce.EMPTY;this.observers.push(a);return new Jw(this,a)};var Mw=function(a){var b=new Ie;b.source=a;return b};
ni.Object.defineProperties(yf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});yf.create=function(a,b){return new Lw(a,b)};var Lw=function(a,b){yf.call(this);this.destination=a;this.source=b};X(Lw,yf);Lw.create=yf.create;Lw.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};Lw.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
Lw.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};Lw.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):Ce.EMPTY};
var Oe=function(){yf.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};X(Oe,yf);Oe.create=yf.create;Oe.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),Ce.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),Ce.EMPTY):yf.prototype._subscribe.call(this,a)};Oe.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};Oe.prototype.error=function(a){this.hasCompleted||yf.prototype.error.call(this,a)};
Oe.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&yf.prototype.next.call(this,this.value);yf.prototype.complete.call(this)};
var Nw=function(a){yf.call(this);this._value=a};X(Nw,yf);Nw.create=yf.create;Nw.prototype._subscribe=function(a){var b=yf.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};Nw.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Kw;return this._value};Nw.prototype.next=function(a){yf.prototype.next.call(this,this._value=a)};ni.Object.defineProperties(Nw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});
var ff=new Ie(function(a){return a.complete()});
var zfa=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};
var oqb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};oqb.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)}};
oqb.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 Ow={now:function(){return(Ow.delegate||Date).now()},delegate:void 0};
var xf=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?Ow:c;yf.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};X(xf,yf);xf.create=yf.create;g=xf.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();yf.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();yf.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 Kw;if(this.isStopped||this.hasError)var e=Ce.EMPTY;else this.observers.push(a),e=new Jw(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():Ow.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 Pw=function(a,b){b=void 0===b?pqb:b;this.SchedulerAction=a;this.now=b};Pw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var pqb=Ow.now;
var tf=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Dfa=function(){};Dfa.prototype.call=function(a,b){b._refCount++;a=new Qw(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var Qw=function(a,b){Fe.call(this,a);this.connectable=b;this.connection=null};X(Qw,Fe);Qw.EMPTY=Fe.EMPTY;Qw.create=Fe.create;
Qw.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 Rw=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};X(Rw,Ie);Rw.create=Ie.create;Rw.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};Rw.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
Rw.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new Ce,a.add(this.source.subscribe(new Sw(this.getSubject(),this))),a.closed&&(this._connection=null,a=Ce.EMPTY));return a};Rw.prototype.refCount=function(){return Me()(this)};var $ga,Tw=Rw.prototype;
$ga={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Tw._subscribe},_isComplete:{value:Tw._isComplete,writable:!0},getSubject:{value:Tw.getSubject},connect:{value:Tw.connect},refCount:{value:Tw.refCount}};var Sw=function(a,b){Fe.call(this);this.destination=a;this.connectable=b};X(Sw,Fe);Sw.EMPTY=Fe.EMPTY;Sw.create=Fe.create;
Sw.prototype._error=function(a){this._unsubscribe();Fe.prototype._error.call(this,a)};Sw.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();Fe.prototype._complete.call(this)};Sw.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 Efa=function(a){this.project=a;this.thisArg=void 0};Efa.prototype.call=function(a,b){return b.subscribe(new Uw(a,this.project,this.thisArg))};var Uw=function(a,b,c){Fe.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};X(Uw,Fe);Uw.EMPTY=Fe.EMPTY;Uw.create=Fe.create;Uw.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 Ye="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
var Ufa=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};
var qqb=function(a){return function(b){var c=a[Ye]();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 rqb=function(a){return function(b){var c=a[Ze]();if("function"!==typeof c.subscribe)throw new TypeError("Ca");return c.subscribe(b)}};
var sqb=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 We=function(a){if(a&&"function"===typeof a[Ze])return rqb(a);if(Ufa(a))return zfa(a);if(Mfa(a))return sqb(a);if(a&&"function"===typeof a[Ye])return qqb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return Ofa(a);throw new TypeError("Da`"+(Be(a)?"an invalid object":"'"+a+"'"));};
var Vw=function(a){Fe.call(this);this.parent=a};X(Vw,Fe);Vw.EMPTY=Fe.EMPTY;Vw.create=Fe.create;Vw.prototype._next=function(a){this.parent.notifyNext(a)};Vw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};Vw.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var Ww=function(a,b,c){Fe.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};X(Ww,Fe);Ww.EMPTY=Fe.EMPTY;Ww.create=Fe.create;
Ww.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};Ww.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};Ww.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var Xw=function(){Fe.apply(this,arguments)};X(Xw,Fe);Xw.EMPTY=Fe.EMPTY;Xw.create=Fe.create;Xw.prototype.notifyNext=function(a){this.destination.next(a)};Xw.prototype.notifyError=function(a){this.destination.error(a)};
Xw.prototype.notifyComplete=function(){this.destination.complete()};var Yw=function(){Fe.apply(this,arguments)};X(Yw,Fe);Yw.EMPTY=Fe.EMPTY;Yw.create=Fe.create;Yw.prototype.notifyNext=function(a,b){this.destination.next(b)};Yw.prototype.notifyError=function(a){this.destination.error(a)};Yw.prototype.notifyComplete=function(){this.destination.complete()};
var tqb={},uqb=function(a,b){this.resultSelector=a;this.keys=b};uqb.prototype.call=function(a,b){return b.subscribe(new Zw(a,this.resultSelector,this.keys))};var Zw=function(a,b,c){Yw.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};X(Zw,Yw);Zw.EMPTY=Yw.EMPTY;Zw.create=Yw.create;g=Zw.prototype;g._next=function(a){this.values.push(tqb);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(Xe(a[c],new Ww(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===tqb?--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 Wfa=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};Wfa.prototype.call=function(a,b){return b.subscribe(new $w(a,this.project,this.concurrent))};var $w=function(a,b,c){c=void 0===c?Infinity:c;Xw.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};X($w,Xw);$w.EMPTY=Xw.EMPTY;$w.create=Xw.create;
$w.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 Vw(this);this.destination.add(a);Xe(c,a)}else this.buffer.push(a)};$w.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};$w.prototype.notifyNext=function(a){this.destination.next(a)};
$w.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 Zfa=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;ax&&(b=ax.requestAnimationFrame,c=ax.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new Ce(function(){var e;return null==(e=c)?void 0:e(d)})},vqb=function(){return((null==ax?void 0:ax.requestAnimationFrame)||requestAnimationFrame).apply(null,r(Uc.apply(0,arguments)))},wqb=function(){((null==ax?void 0:ax.cancelAnimationFrame)||cancelAnimationFrame).apply(null,r(Uc.apply(0,arguments)))},ax=void 0;
var Yfa={now:function(){return(Yfa.delegate||performance).now()},delegate:void 0};
var xqb=$fa();
var bx=function(){Ce.call(this)};X(bx,Ce);bx.EMPTY=Ce.EMPTY;bx.prototype.schedule=function(){return this};
var yqb=function(a,b){var c=Uc.apply(2,arguments);return(null==cx?0:cx.setInterval)?cx.setInterval.apply(cx,[a,b].concat(r(c))):setInterval.apply(null,[a,b].concat(r(c)))},cx=void 0;
var dx=function(a,b){Ce.call(this);this.scheduler=a;this.work=b;this.pending=!1};X(dx,bx);dx.EMPTY=bx.EMPTY;g=dx.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 yqb(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==cx?void 0:cx.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 ex=function(a,b){b=void 0===b?pqb:b;Pw.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};X(ex,Pw);ex.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 jf=new ex(dx);
var zqb=new Ie(ef);
var iga=function(a,b){this.predicate=a;this.thisArg=b};iga.prototype.call=function(a,b){return b.subscribe(new fx(a,this.predicate,this.thisArg))};var fx=function(a,b,c){Fe.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};X(fx,Fe);fx.EMPTY=Fe.EMPTY;fx.create=Fe.create;fx.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 kga=function(){};kga.prototype.call=function(a,b){return b.subscribe(new gx(a))};var gx=function(a){Yw.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};X(gx,Yw);gx.EMPTY=Yw.EMPTY;gx.create=Yw.create;g=gx.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=Xe(a[c],new Ww(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;Yw.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;Yw.prototype.notifyError.call(this,a)};
var Aqb=function(a){this.resultSelector=a};Aqb.prototype.call=function(a,b){return b.subscribe(new hx(a,this.resultSelector))};var hx=function(a,b,c){void 0===c&&Object.create(null);Fe.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};X(hx,Fe);hx.EMPTY=Fe.EMPTY;hx.create=Fe.create;hx.prototype._next=function(a){var b=this.iterators;Ne(a)?b.push(new ix(a)):"function"===typeof a[Ye]?b.push(new jx(a[Ye]())):b.push(new kx(this.destination,this,a))};
hx.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--}}};hx.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var jx=function(a){this.iterator=a;this.nextResult=a.next()};jx.prototype.hasValue=function(){return!0};
jx.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};jx.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var ix=function(a){this.array=a;this.length=this.index=0;this.length=a.length};ix.prototype[Ye]=function(){return this};ix.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};ix.prototype.hasValue=function(){return this.array.length>this.index};
ix.prototype.hasCompleted=function(){return this.array.length===this.index};var kx=function(a,b,c){Xw.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};X(kx,Xw);kx.EMPTY=Xw.EMPTY;kx.create=Xw.create;kx.prototype[Ye]=function(){return this};g=kx.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 Xe(this.observable,new Vw(this))};
var lx=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};X(lx,Ie);lx.create=Ie.create;lx.prototype._subscribe=function(a){var b=new Ce,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new mx(c));b.add(d.subscribe(a));return b};var mx=function(a){Ce.call(this);this.parent=a;a.count++};X(mx,Ce);mx.EMPTY=Ce.EMPTY;
mx.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(Ce.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};
var rga=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 Bqb=function(a,b){a=void 0===a?nx:a;b=void 0===b?Infinity:b;ex.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};X(Bqb,ex);Bqb.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 nx=function(a,b,c){c=void 0===c?a.index+=1:c;dx.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};X(nx,dx);nx.EMPTY=dx.EMPTY;nx.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return dx.prototype.schedule.call(this,a,b);this.active=!1;var c=new nx(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return Ce.EMPTY};
nx.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(Cqb);return!0};nx.prototype.recycleAsyncId=function(){};nx.prototype._execute=function(a,b){if(!0===this.active)return dx.prototype._execute.call(this,a,b)};var Cqb=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 ox=function(a,b){dx.call(this,a,b);this.scheduler=a;this.work=b};X(ox,dx);ox.EMPTY=dx.EMPTY;ox.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return dx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=vqb(function(){return a.flush(void 0)}))};
ox.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return dx.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(wqb(b),a.scheduled=void 0)};
var Dqb=function(){ex.apply(this,arguments)};X(Dqb,ex);Dqb.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 Eqb=new Dqb(ox);
var Fqb=1,Gqb,sga={},Hqb=function(a){var b=Fqb++;sga[b]=!0;Gqb||(Gqb=Promise.resolve());Gqb.then(function(){return tga(b)&&a()});return b},Iqb=function(a){tga(a)};
var Jqb=function(){return((null==px?void 0:px.setImmediate)||Hqb).apply(null,r(Uc.apply(0,arguments)))},px=void 0;
var qx=function(a,b){dx.call(this,a,b);this.scheduler=a;this.work=b};X(qx,dx);qx.EMPTY=dx.EMPTY;qx.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return dx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=Jqb(a.flush.bind(a,void 0)))};
qx.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return dx.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(((null==px?void 0:px.clearImmediate)||Iqb)(b),a.scheduled=void 0)};
var Kqb=function(){ex.apply(this,arguments)};X(Kqb,ex);Kqb.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 Lqb=new Kqb(qx);
var rx=function(a,b){dx.call(this,a,b);this.scheduler=a;this.work=b};X(rx,dx);rx.EMPTY=dx.EMPTY;rx.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return dx.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};rx.prototype.execute=function(a,b){return 0<b||this.closed?dx.prototype.execute.call(this,a,b):this._execute(a,b)};
rx.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?dx.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};
var Mqb=function(){ex.apply(this,arguments)};X(Mqb,ex);
var Nqb=new Mqb(rx);
var Oqb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Pqb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Qqb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();
var W={};W.Observable=Ie;W.ConnectableObservable=Rw;W.GroupedObservable=lx;W.observable=Ze;W.animationFrames=function(a){return a?$fa(a):xqb};W.Subject=yf;W.BehaviorSubject=Nw;W.ReplaySubject=xf;W.AsyncSubject=Oe;W.asap=Lqb;W.asapScheduler=Lqb;W.async=jf;W.asyncScheduler=jf;W.queue=Nqb;W.queueScheduler=Nqb;W.animationFrame=Eqb;W.animationFrameScheduler=Eqb;W.VirtualTimeScheduler=Bqb;W.VirtualAction=nx;W.Scheduler=Pw;W.Subscription=Ce;W.Subscriber=Fe;W.Notification=oqb;
W.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};W.pipe=function(){return ufa(Uc.apply(0,arguments))};W.noop=ef;W.identity=Ge;W.isObservable=function(a){return!!a&&(a instanceof Ie||"function"===typeof a.lift&&"function"===typeof a.subscribe)};W.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 tf)}})})};
W.firstValueFrom=function(a){return new Promise(function(b,c){var d=new Ce;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new tf)}}))})};W.ArgumentOutOfRangeError=Oqb;W.EmptyError=tf;W.NotFoundError=Pqb;W.ObjectUnsubscribedError=Kw;W.SequenceError=Qqb;W.TimeoutError=rga;W.UnsubscriptionError=Ee;W.bindCallback=Ffa;W.bindNodeCallback=Ifa;
W.combineLatest=function(){var a=Uc.apply(0,arguments),b=void 0,c=void 0,d=void 0;Ke(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];Ne(e)&&(a=e);Be(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return Le(Je(a,c),new uqb(b,d))};W.concat=cf;W.defer=Xfa;W.empty=function(a){return a?xfa(a):ff};
W.forkJoin=function(){var a=Uc.apply(0,arguments);if(1===a.length){var b=a[0];if(Ne(b))return df(b,null);if(Be(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),df(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&Ne(a[0])?a[0]:a;return df(a,null).pipe(C(function(d){return c.apply(null,r(d))}))}return df(a,null)};W.from=$e;W.fromEvent=aga;W.fromEventPattern=cga;
W.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||Ge;e=a.scheduler}else void 0===d||Ke(d)?(f=a,h=Ge,e=d):(f=a,h=d);return new Ie(function(k){var q=f;if(e)return e.schedule(dga,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var t=void 0;try{t=b(q)}catch(x){k.error(x);break}if(!t){k.complete();break}}t=void 0;try{t=h(q)}catch(x){k.error(x);break}k.next(t);if(k.closed)break;try{q=c(q)}catch(x){k.error(x);
break}}while(1)})};W.iif=function(a,b,c){b=void 0===b?ff:b;c=void 0===c?ff:c;return Xfa(function(){return a()?b:c})};W.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?jf:b;if(!ega(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=jf);return new Ie(function(c){c.add(b.schedule(fga,a,{subscriber:c,counter:0,period:a}));return c})};
W.merge=function(){var a=Uc.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];Ke(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 Ie?a[0]:bf(b)(Je(a,c))};W.never=function(){return zqb};W.of=Afa;W.onErrorResumeNext=gga;
W.pairs=function(a,b){return b?new Ie(function(c){var d=Object.keys(a),e=new Ce;e.add(b.schedule(hga,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new Ie(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()})};W.partition=function(a,b,c){return[hf(b,c)(new Ie(We(a))),hf(jga(b,c))(new Ie(We(a)))]};W.race=lga;
W.range=function(a,b,c){a=void 0===a?0:a;return new Ie(function(d){void 0===b&&(b=a,a=0);var e=0,f=a;if(c)return c.schedule(mga,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)})};W.throwError=function(a,b){return b?new Ie(function(c){return b.schedule(Bfa,0,{error:a,subscriber:c})}):new Ie(function(c){return c.error(a)})};W.timer=pga;
W.using=function(a,b){return new Ie(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?$e(e):ff).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};W.zip=function(){var a=Uc.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return Le(Je(a),new Aqb(b))};W.scheduled=Vfa;W.EMPTY=ff;W.NEVER=zqb;W.config=He;
var sx=function(a){a=void 0===a?!1:a;W.Subject.call(this);this.__isAsync=a};X(sx,W.Subject);sx.create=W.Subject.create;sx.prototype.emit=function(a){W.Subject.prototype.next.call(this,a)};
sx.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=uga(b),d&&(d=uga(d)),c&&(c=uga(c)));d=W.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof W.Subscription&&a.add(d);return d};
var Mf=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 sx(!1);this.onMicrotaskEmpty=new sx(!1);this.onStable=new sx(!1);this.onError=new sx(!1);if("undefined"==typeof Zone)throw new Lc(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;b=Xd.requestAnimationFrame;c=Xd.cancelAnimationFrame;"undefined"!==typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));
this.nativeRequestAnimationFrame=b;yga(this)},tx=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")},Rqb=function(){if(tx())throw new Lc(909,!1);};Mf.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Mf.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,Sqb,jfa,jfa);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};Mf.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};
Mf.prototype.runOutsideAngular=function(a){return this._outer.run(a)};var Sqb={},Lf=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new sx;this.onMicrotaskEmpty=new sx;this.onStable=new sx;this.onError=new sx};Lf.prototype.run=function(a,b,c){return a.apply(b,c)};Lf.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};Lf.prototype.runOutsideAngular=function(a){return a()};Lf.prototype.runTask=function(a,b,c){return a.apply(b,c)};
var Tqb=new Md(""),ux=new Md(""),vx=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;Uqb||(Uqb=c,Vqb(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
vx.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(){Rqb();qfa(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};vx.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
vx.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())qfa(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=Wqb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var Wqb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=vx.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,Wqb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("Ja");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[]};vx.\u0275fac=function(a){return new (a||vx)(p(Mf),p(wx),p(ux))};vx.\u0275prov=Hc({token:vx,factory:vx.\u0275fac});var wx=function(){this._applications=new Map};
wx.prototype.registerApplication=function(a,b){this._applications.set(a,b)};wx.prototype.unregisterApplication=function(a){this._applications.delete(a)};wx.prototype.findTestabilityInTree=function(a,b){var c,d;return null!=(d=null==(c=Uqb)?void 0:c.findTestabilityInTree(this,a,void 0===b?!0:b))?d:null};wx.\u0275fac=function(a){return new (a||wx)};wx.\u0275prov=Hc({token:wx,factory:wx.\u0275fac,providedIn:"platform"});var Uqb;
var zga=function(a){this.durationSelector=a};zga.prototype.call=function(a,b){return b.subscribe(new xx(a,this.durationSelector))};var xx=function(a,b){Xw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};X(xx,Xw);xx.EMPTY=Xw.EMPTY;xx.create=Xw.create;
xx.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=Xe(c,new Vw(this));!a||a.closed?Xqb(this):this.add(this.throttled=a)}};var Xqb=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))};xx.prototype.notifyNext=function(){Xqb(this)};xx.prototype.notifyComplete=function(){Xqb(this)};
var Bga=function(a){this.closingNotifier=a};Bga.prototype.call=function(a,b){return b.subscribe(new yx(a,this.closingNotifier))};var yx=function(a,b){Xw.call(this,a);this.buffer=[];this.add(Xe(b,new Vw(this)))};X(yx,Xw);yx.EMPTY=Xw.EMPTY;yx.create=Xw.create;yx.prototype._next=function(a){this.buffer.push(a)};yx.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};
var Fga=function(a){this.durationSelector=a};Fga.prototype.call=function(a,b){return b.subscribe(new zx(a,this.durationSelector))};var zx=function(a,b){Xw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};X(zx,Xw);zx.EMPTY=Xw.EMPTY;zx.create=Xw.create;g=zx.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(){Yqb(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=Xe(b,new Vw(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){Yqb(this)};g.notifyComplete=function(){Yqb(this)};var Yqb=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;Xw.prototype._next.call(a,b)}};
var Hga=function(a,b){this.dueTime=a;this.scheduler=b};Hga.prototype.call=function(a,b){return b.subscribe(new Ax(a,this.dueTime,this.scheduler))};var Ax=function(a,b,c){Fe.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};X(Ax,Fe);Ax.EMPTY=Fe.EMPTY;Ax.create=Fe.create;Ax.prototype._next=function(a){Zqb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(Jga,this.dueTime,this))};
Ax.prototype._complete=function(){Iga(this);this.destination.complete()};var Iga=function(a){Zqb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},Zqb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};
var Kga=function(a){this.defaultValue=a};Kga.prototype.call=function(a,b){return b.subscribe(new Bx(a,this.defaultValue))};var Bx=function(a,b){Fe.call(this,a);this.defaultValue=b;this.isEmpty=!0};X(Bx,Fe);Bx.EMPTY=Fe.EMPTY;Bx.create=Fe.create;Bx.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};Bx.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};
var Lga=function(a,b){this.delay=a;this.scheduler=b};Lga.prototype.call=function(a,b){return b.subscribe(new Cx(a,this.delay,this.scheduler))};var Cx=function(a,b,c){Fe.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};X(Cx,Fe);Cx.EMPTY=Fe.EMPTY;Cx.create=Fe.create;
var $qb=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)};Cx.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule($qb,this.delay,{source:this,destination:b,scheduler:a}))};
Cx.prototype._next=function(a){var b=this.scheduler;a=new arb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};Cx.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};Cx.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var arb=function(a,b){this.time=a;this.value=b};
var Mga=function(a){this.compare=a;this.keySelector=void 0};Mga.prototype.call=function(a,b){return b.subscribe(new Dx(a,this.compare,this.keySelector))};var Dx=function(a,b,c){Fe.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};X(Dx,Fe);Dx.EMPTY=Fe.EMPTY;Dx.create=Fe.create;Dx.prototype.compare=function(a,b){return a===b};
Dx.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 Nga=function(){this.count=1};Nga.prototype.call=function(a,b){return b.subscribe(new Ex(a,this.count))};var Ex=function(a,b){Fe.call(this,a);this.count=b;this._valueCount=0};X(Ex,Fe);Ex.EMPTY=Fe.EMPTY;Ex.create=Fe.create;Ex.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 Pga=function(a){this.errorFactory=a};Pga.prototype.call=function(a,b){return b.subscribe(new Fx(a,this.errorFactory))};var Fx=function(a,b){Fe.call(this,a);this.errorFactory=b;this.hasValue=!1};X(Fx,Fe);Fx.EMPTY=Fe.EMPTY;Fx.create=Fe.create;Fx.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};Fx.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
var Rga=function(a){this.callback=a};Rga.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};
var Sga=function(){};Sga.prototype.call=function(a,b){return b.subscribe(new Gx(a))};var Gx=function(){Fe.apply(this,arguments)};X(Gx,Fe);Gx.EMPTY=Fe.EMPTY;Gx.create=Fe.create;Gx.prototype._next=function(){};
var Uga=function(){this.total=1};Uga.prototype.call=function(a,b){return b.subscribe(new Hx(a,this.total))};var Hx=function(a,b){Fe.call(this,a);this.total=b;this.ring=[];this.count=0};X(Hx,Fe);Hx.EMPTY=Fe.EMPTY;Hx.create=Fe.create;Hx.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
Hx.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 Xga=function(a){this.value=a};Xga.prototype.call=function(a,b){return b.subscribe(new Ix(a,this.value))};var Ix=function(a,b){Fe.call(this,a);this.value=b};X(Ix,Fe);Ix.EMPTY=Fe.EMPTY;Ix.create=Fe.create;Ix.prototype._next=function(){this.destination.next(this.value)};
var Yga=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};Yga.prototype.call=function(a,b){return b.subscribe(new Jx(a,this.accumulator,this.seed,this.hasSeed))};var Jx=function(a,b,c,d){Fe.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};X(Jx,Fe);Jx.EMPTY=Fe.EMPTY;Jx.create=Fe.create;
Jx.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 fha=function(a){this.total=a};fha.prototype.call=function(a,b){return b.subscribe(new Kx(a,this.total))};var Kx=function(a,b){Fe.call(this,a);this.total=b;this.count=0};X(Kx,Fe);Kx.EMPTY=Fe.EMPTY;Kx.create=Fe.create;Kx.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};
var gha=function(a){this.project=a};gha.prototype.call=function(a,b){return b.subscribe(new Lx(a,this.project))};var Lx=function(a,b){Xw.call(this,a);this.destination=a;this.project=b;this.index=0};X(Lx,Xw);Lx.EMPTY=Xw.EMPTY;Lx.create=Xw.create;g=Lx.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 Vw(this);this.destination.add(a);this.innerSubscription=a;Xe(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||Xw.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&Xw.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};
var iha=function(a){this.notifier=a};iha.prototype.call=function(a,b){a=new Mx(a);var c=Xe(this.notifier,new Vw(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var Mx=function(a){Xw.call(this,a);this.notifierHasNotified=!1};X(Mx,Xw);Mx.EMPTY=Xw.EMPTY;Mx.create=Xw.create;Mx.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};Mx.prototype.notifyComplete=function(){};
var jha=function(a,b){this.predicate=a;this.inclusive=b};jha.prototype.call=function(a,b){return b.subscribe(new Nx(a,this.predicate,this.inclusive))};var Nx=function(a,b,c){Fe.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};X(Nx,Fe);Nx.EMPTY=Fe.EMPTY;Nx.create=Fe.create;Nx.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 lha=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};lha.prototype.call=function(a,b){return b.subscribe(new Ox(a,this.nextOrObserver,this.error,this.complete))};var Ox=function(a,b,c,d){Fe.call(this,a);this._tapComplete=this._tapError=this._tapNext=ef;this._tapError=c||ef;this._tapComplete=d||ef;Ae(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||ef,this._tapError=b.error||ef,this._tapComplete=b.complete||ef)};X(Ox,Fe);Ox.EMPTY=Fe.EMPTY;
Ox.create=Fe.create;Ox.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};Ox.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};Ox.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};
var mha={leading:!0,trailing:!1},nha=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};nha.prototype.call=function(a,b){return b.subscribe(new Px(a,this.durationSelector,this.leading,this.trailing))};var Px=function(a,b,c,d){Xw.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};X(Px,Xw);Px.EMPTY=Xw.EMPTY;Px.create=Xw.create;
Px.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():brb(this,a))};Px.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),brb(this,a));this._hasValue=!1;this._sendValue=null};var brb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=Xe(c,new Vw(a)))},crb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
Px.prototype.notifyNext=function(){crb(this)};Px.prototype.notifyComplete=function(){crb(this)};
var pha=function(a,b){this.observables=a;this.project=b};pha.prototype.call=function(a,b){return b.subscribe(new Qx(a,this.observables,this.project))};var Qx=function(a,b,c){Yw.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(Xe(b[c],new Ww(this,void 0,c)))};X(Qx,Yw);Qx.EMPTY=Yw.EMPTY;Qx.create=Yw.create;
Qx.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))};Qx.prototype.notifyComplete=function(){};Qx.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(r(this.values)),this.project?this._tryProject(a):this.destination.next(a))};Qx.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var Hf=null,tha=new Md("AllowMultipleToken"),xha=new Md("PlatformDestroyListeners"),drb=function(a,b){this.name=a;this.token=b},If=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},erb=function(a,b,c){var d=yha(null==c?void 0:c.ngZone,{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}),e=[{provide:Mf,useValue:d}];return d.run(function(){var f=Jf({providers:e,
parent:a.injector,name:b.moduleType.name}),h=b.create(f),k=h.injector.get(te,null);if(!k)throw new Lc(402,!1);d.runOutsideAngular(function(){var q=d.onError.subscribe({next:function(t){k.handleError(t)}});h.onDestroy(function(){Nf(a._modules,h);q.unsubscribe()})});return zha(k,d,function(){var q=h.injector.get(Cw);iqb(q);return q.donePromise.then(function(){var t=h.injector.get(ti,"en-US")||"en-US";if(null==t)throw Error("qa`Expected localeId to be defined` [Expected=> null != "+(t+" <=Actual]"));
a._moduleDoBootstrap(h);return h})})})},grb=function(){var a=frb(),b=Rx;var c=void 0===c?[]:c;var d=Aha({},c);Promise.resolve(new Aw(b)).then(function(e){return erb(a,e,d)})};If.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(Sx);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 Lc(403,!1);this._modules.push(a)};If.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
If.prototype.destroy=function(){if(this._destroyed)throw new Lc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(xha,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};ni.Object.defineProperties(If.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
If.\u0275fac=function(a){return new (a||If)(p(dl))};If.\u0275prov=Hc({token:If,factory:If.\u0275fac,providedIn:"platform"});
var Sx=function(a,b,c){var d=this;this._zone=a;this._injector=b;this._exceptionHandler=c;this._bootstrapListeners=[];this._views=[];this._runningTick=!1;this._stable=!0;this._destroyed=!1;this._destroyListeners=[];this.componentTypes=[];this.components=[];this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){d._zone.run(function(){hrb(d)})}});this.isStable=(0,W.merge)(new W.Observable(function(e){d._stable=d._zone.isStable&&!d._zone.hasPendingMacrotasks&&!d._zone.hasPendingMicrotasks;
d._zone.runOutsideAngular(function(){e.next(d._stable);e.complete()})}),(new W.Observable(function(e){var f;d._zone.runOutsideAngular(function(){f=d._zone.onStable.subscribe(function(){Rqb();qfa(function(){d._stable||d._zone.hasPendingMacrotasks||d._zone.hasPendingMicrotasks||(d._stable=!0,e.next(!0))})})});var h=d._zone.onUnstable.subscribe(function(){if(!tx())throw new Lc(909,!1);d._stable&&(d._stable=!1,d._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){f.unsubscribe();h.unsubscribe()}})).pipe(zf()))};
Sx.prototype.bootstrap=function(a,b){var c=this,d=a instanceof Spb;if(!this._injector.get(Cw).done)throw new Lc(405,!1);var e;d?e=a:e=this._injector.get(qw).resolveComponentFactory(a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(rw);var f=e.create(Npb,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get(Tqb,null);null==k||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);Nf(c.components,f);null==k||k.unregisterApplication(h)});
this._loadComponent(f);return f};var hrb=function(a){if(a._runningTick)throw new Lc(101,!1);try{a._runningTick=!0;for(var b=n(a._views),c=b.next();!c.done;c=b.next())c.value.detectChanges()}catch(d){a._zone.runOutsideAngular(function(){return a._exceptionHandler.handleError(d)})}finally{a._runningTick=!1}},irb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Lc(902,!1);b._appRef=a};g=Sx.prototype;
g.detachView=function(a){Nf(this._views,a);a._appRef=null;var b=a._lView;ae(b[11],2,a._lView[1].firstChild,b,null,null,!1)};g._loadComponent=function(a){irb(this,a.hostView);hrb(this);this.components.push(a);this._injector.get(kqb,[]).concat(this._bootstrapListeners).forEach(function(b){return b(a)})};
g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}};g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return Nf(b._destroyListeners,a)}};
g.destroy=function(){if(this._destroyed)throw new Lc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};ni.Object.defineProperties(Sx.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}}});Sx.\u0275fac=function(a){return new (a||Sx)(p(Mf),p(ow),p(te))};
Sx.\u0275prov=Hc({token:Sx,factory:Sx.\u0275fac,providedIn:"root"});
new Md("AnalyzeForEntryComponents");
var Pf=null;
var Mha=0,Nha=0,Oha=0;
var Tx=function(a){this._injector=a;this.cachedInjectors=new Map};Tx.prototype.ngOnDestroy=function(){try{for(var a=n(this.cachedInjectors.values()),b=a.next();!b.done;b=a.next()){var c=b.value;null!==c&&c.destroy()}}finally{this.cachedInjectors.clear()}};Tx.\u0275prov=Hc({token:Tx,providedIn:"environment",factory:function(){return new Tx(p(ow))}});
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=Qf(),c=Cg.prototype;c[b]||(c[b]=mia)};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=Bda(a);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()};ni.Object.defineProperties(Cg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new sx)}}});Symbol.iterator;
var vg=function(){};vg.__NG_ELEMENT_ID__=nia;var tg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};X(tg,vg);tg.__NG_ELEMENT_ID__=vg.__NG_ELEMENT_ID__;
tg.prototype.createEmbeddedView=function(a,b){var c=this._declarationTContainer.tViews;b=me(this._declarationLView,c,a,16,null,c.declTNode,null,null,null,null,b||null);b[17]=this._declarationLView[this._declarationTContainer.index];var d=this._declarationLView[19];null!==d&&(b[19]=d.createEmbeddedView(c));Nea(c,b,a);return new Ig(b)};
var wg=function(){};wg.__NG_ELEMENT_ID__=pia;var ug=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};X(ug,wg);ug.__NG_ELEMENT_ID__=wg.__NG_ELEMENT_ID__;g=ug.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=a.createEmbeddedView(b||{},e);this.insert(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 xw(a[Xc]||null);c=c||this.parentInjector;f||null!=a.ngModule||(e=(e?c:this.parentInjector).get(ow,null))&&(f=e);d=a.create(c,d,void 0,f);this.insert(d.hostView,b);return d};
g.insert=function(a,b){var c=a._lView,d=c[1];if(bd(c[3])){var e=this.indexOf(a);-1!==e?this.detach(e):(e=c[3],e=new ug(e,e[6],e[3]),e.detach(e.indexOf(a)))}b=this._adjustIndex(b);e=this._lContainer;var f=10+b,h=e.length;0<b&&(e[f-1][4]=c);b<h-10?(c[4]=e[f],f=10+b,f>=e.length?e.push(c):e.splice(f,0,c)):(e.push(c),c[4]=null);c[3]=e;f=c[17];null!==f&&e!==f&&(h=f[9],c[16]!==c[3][3][16]&&(f[2]=!0),null===h?f[9]=[c]:h.push(c));f=c[19];null!==f&&jrb(f,d);c[2]|=64;f=iea(b,e);h=c[11];var k=h.parentNode(e[7]);
if(null!==k){var q=e[6];c[0]=k;c[6]=q;ae(h,1,d.firstChild,c,k,f,!1)}if(a._appRef)throw new Lc(902,!1);a._attachedToViewContainer=!0;c=qia(e);b>=c.length?c.push(a):c.splice(b,0,a);return a};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=eea(this._lContainer,a);b&&(Hd(qia(this._lContainer),a),gea(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=eea(this._lContainer,a);return b&&null!=Hd(qia(this._lContainer),a)?new Ig(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
ni.Object.defineProperties(ug.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return Sd(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Fd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=uda(this._hostTNode,this._hostLView);if(-1!==a){var b=wd(a,this._hostLView);return new Fd(b[1].data[(a&32767)+8],b)}return new Fd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});
var Eg=function(a){this.queryList=a;this.matches=null};Eg.prototype.clone=function(){return new Eg(this.queryList)};Eg.prototype.setDirty=function(){this.queryList.setDirty()};var Dg=function(a){this.queries=a=void 0===a?[]:a};Dg.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 Dg(c)}return null};
Dg.prototype.detachView=function(a){jrb(this,a)};var jrb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},uia=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},Fg=function(a){this.queries=a=void 0===a?[]:a};g=Fg.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 Fg(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)};ni.Object.defineProperties(Fg.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var Gg=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};
Gg.prototype.elementStart=function(a,b){if(krb(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}Ux(this,a,b,f);Ux(this,a,b,Cd(b,a,e,!1,!1))}else c===vg?b.type&4&&Ux(this,a,b,-1):Ux(this,a,b,Cd(b,a,c,!1,!1))}};Gg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
Gg.prototype.template=function(a,b){this.elementStart(a,b)};Gg.prototype.embeddedTView=function(a,b){return krb(this,a)?(this.crossesNgTemplate=!0,Vx(this,-a.index,b),new Gg(this.metadata)):null};
var krb=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},Ux=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===Rd||e===wg||e===vg&&c.type&4?Vx(a,c.index,-2):(b=Cd(c,b,e,!1,!1),null!==b&&Vx(a,c.index,b)):Vx(a,c.index,d)}},Vx=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};
var Wx=function(){};Wx.\u0275fac=function(a){return new (a||Wx)(p(Sx))};Wx.\u0275mod=Yc({type:Wx});Wx.\u0275inj=Ic({});
var Xx=function(){};Xx.__NG_ELEMENT_ID__=wia;
var lrb=function(){};lrb.prototype.supports=function(a){return Gha(a)};lrb.prototype.create=function(a){return new Yx(a)};var mrb=function(a,b){return b},Yx=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||mrb};
Yx.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var nrb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<xia(a,d,e)?c:a,h=xia(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,t=k-d;if(q!=t){for(var x=0;x<q;x++){var y=x<e.length?e[x]:e[x]=0,F=y+x;t<=F&&F<q&&(e[x]=y+1)}e[f.previousIndex]=t-q}}h!==k&&b(f,h,k)}};
Yx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};Yx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var orb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=Yx.prototype;g.diff=function(a){null==a&&(a=[]);if(!Gha(a))throw new Lc(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;Hha(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 prb(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 Zx);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 Zx);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};ni.Object.defineProperties(Yx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var prb=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},ay=function(){this._tail=this._head=null};ay.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)};
ay.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};ay.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 Zx=function(){this.map=new Map};Zx.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new ay,this.map.set(b,c));c.add(a)};
Zx.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};Zx.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};Zx.prototype.clear=function(){this.map.clear()};ni.Object.defineProperties(Zx.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});
var qrb=function(){};qrb.prototype.supports=function(a){return a instanceof Map||Fha(a)};qrb.prototype.create=function(){return new by};var by=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};by.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var rrb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=by.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||Fha(a)))throw new Lc(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 srb(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)})};ni.Object.defineProperties(by.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var srb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};
var cy=function(a){this.factories=a};cy.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new Lc(901,!1);};cy.\u0275prov=Hc({token:cy,providedIn:"root",factory:function(){return new cy([new lrb])}});
var dy=function(a){this.factories=a};dy.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Lc(901,!1);};dy.\u0275prov=Hc({token:dy,providedIn:"root",factory:function(){return new dy([new qrb])}});
var Wpa=function(){};
var trb=vha(null,"core",[]);
var ey=function(a,b,c,d){this._iterableDiffers=a;this._keyValueDiffers=b;this._ngEl=c;this._renderer=d;this._keyValueDiffer=this._iterableDiffer=null;this._initialClasses=[];this._rawClass=null};g=ey.prototype;g.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else this._keyValueDiffer&&(a=this._keyValueDiffer.diff(this._rawClass))&&this._applyKeyValueChanges(a)};
g._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(c){return b._toggleClass(c.key,c.currentValue)});rrb(a,function(c){return b._toggleClass(c.key,c.currentValue)});a.forEachRemovedItem(function(c){c.previousValue&&b._toggleClass(c.key,!1)})};g._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(c){if("string"===typeof c.item)b._toggleClass(c.item,!0);else throw Error("La`"+Ec(c.item));});a.forEachRemovedItem(function(c){return b._toggleClass(c.item,!1)})};
g._applyClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!0)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!!a[c])}))};g._removeClasses=function(a){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(c){return b._toggleClass(c,!1)}):Object.keys(a).forEach(function(c){return b._toggleClass(c,!1)}))};
g._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};
ni.Object.defineProperties(ey.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._initialClasses);this._initialClasses="string"===typeof a?a.split(/\s+/):[];this._applyClasses(this._initialClasses);this._applyClasses(this._rawClass)}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this._removeClasses(this._rawClass);this._applyClasses(this._initialClasses);this._keyValueDiffer=this._iterableDiffer=null;if(this._rawClass="string"===typeof a?a.split(/\s+/):
a)Gha(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create()}}});ey.\u0275fac=function(a){return new (a||ey)(B(cy),B(dy),B(Rd),B(tw))};ey.\u0275dir=u({type:ey,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});
var urb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};ni.Object.defineProperties(urb.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 fy=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};fy.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)};
fy.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;nrb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new urb(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}orb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
ni.Object.defineProperties(fy.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)}}});fy.\u0275fac=function(a){return new (a||fy)(B(wg),B(vg),B(cy))};
fy.\u0275dir=u({type:fy,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});
var gy=function(a,b){this._viewContainer=a;this._context=new vrb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
gy.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)))};
ni.Object.defineProperties(gy.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){yia("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){yia("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});gy.\u0275fac=function(a){return new (a||gy)(B(wg),B(vg))};
gy.\u0275dir=u({type:gy,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var vrb=function(){this.ngIf=this.$implicit=null};
var hy=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};hy.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};hy.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var iy=function(){this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};iy.prototype._addCase=function(){return this._caseCount++};
iy.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]);this._defaultViews.push(a)};iy.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};
iy.prototype._updateDefaultCases=function(a){if(this._defaultViews&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=0;b<this._defaultViews.length;b++){var c=this._defaultViews[b],d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};ni.Object.defineProperties(iy.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});iy.\u0275fac=function(a){return new (a||iy)};
iy.\u0275dir=u({type:iy,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var jy=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new hy(a,b)};jy.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};jy.\u0275fac=function(a){return new (a||jy)(B(wg),B(vg),B(iy,9))};jy.\u0275dir=u({type:jy,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});
var ky=function(a,b,c){c._addDefault(new hy(a,b))};ky.\u0275fac=function(a){return new (a||ky)(B(wg),B(vg),B(iy,9))};ky.\u0275dir=u({type:ky,selectors:[["","ngSwitchDefault",""]],standalone:!0});
var ly=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};ly.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};ly.prototype._setStyle=function(a,b){var c=n(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)};
ly.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)});rrb(a,function(c){return b._setStyle(c.key,c.currentValue)})};ni.Object.defineProperties(ly.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});ly.\u0275fac=function(a){return new (a||ly)(B(Rd),B(dy),B(tw))};
ly.\u0275dir=u({type:ly,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});
var my=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
my.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)};
my.\u0275fac=function(a){return new (a||my)(B(wg))};my.\u0275dir=u({type:my,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ed]});
var wrb=function(){};wrb.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(c){throw c;}})};wrb.prototype.dispose=function(a){a.unsubscribe()};var xrb=function(){};xrb.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};xrb.prototype.dispose=function(){};var yrb=new xrb,zrb=new wrb,ny=function(a){this._strategy=this._obj=this._subscription=this._latestValue=null;this._ref=a};g=ny.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 yrb;if(ifa(a))return zrb;throw Pg();};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())};ny.\u0275fac=function(a){return new (a||ny)(B(Xx,16))};ny.\u0275pipe=$c({name:"async",type:ny,pure:!1,standalone:!0});
var oy=function(){};oy.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw Pg();return a.toLowerCase()};oy.\u0275fac=function(a){return new (a||oy)};oy.\u0275pipe=$c({name:"lowercase",type:oy,pure:!0,standalone:!0});
var Arb=/(?:[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,py=
function(){};py.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw Pg();return a.replace(Arb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};py.\u0275fac=function(a){return new (a||py)};py.\u0275pipe=$c({name:"titlecase",type:py,pure:!0,standalone:!0});
var Ria=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wg={},Iia=/((?:[^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]*)/,Lia={};
var Brb=new Md("DATE_PIPE_DEFAULT_TIMEZONE"),Crb=new Md("DATE_PIPE_DEFAULT_OPTIONS"),qy=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};
qy.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,t,x=null!=(t=null!=(q=null!=c?c:null==(k=this.defaultOptions)?void 0:k.timezone)?q:this.defaultTimezone)?t:void 0;return Nia(a,h,d||this.locale,x)}catch(y){throw Pg();}};qy.\u0275fac=function(a){return new (a||qy)(B(ti,16),B(Brb,24),B(Crb,24))};qy.\u0275pipe=$c({name:"date",type:qy,pure:!0,standalone:!0});
var ry=function(){};ry.prototype.transform=function(a){return JSON.stringify(a,null,2)};ry.\u0275fac=function(a){return new (a||ry)};ry.\u0275pipe=$c({name:"json",type:ry,pure:!1,standalone:!0});
var sy=function(a){this.differs=a;this.keyValues=[];this.compareFn=Tia};sy.prototype.transform=function(a,b){var c=this;b=void 0===b?Tia: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};
sy.\u0275fac=function(a){return new (a||sy)(B(dy,16))};sy.\u0275pipe=$c({name:"keyvalue",type:sy,pure:!1,standalone:!0});
var Wia=/^(\d+)?\.((\d+)(-(\d+))?)?$/;
var ty=function(a){this._locale=a};
ty.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("Wa`"+a);var d=a}else d=Number(a);a=d;var e=ye(c)[14][0],f=Og(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],t=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],x=t[0],y=t[1]||"";d.posPre=x.substring(0,x.indexOf("#"));for(e=0;e<y.length;e++){var F=y.charAt(e);"0"===F?d.minFrac=d.maxFrac=e+1:"#"===F?d.maxFrac=e+1:d.posSuf+=F}var K=x.split(",");d.gSize=K[1]?K[1].length:0;d.lgSize=K[2]||K[1]?(K[2]||K[1]).length:0;if(q){var J=k.length-d.posPre.length-d.posSuf.length,R=q.indexOf("#");d.negPre=q.substring(0,R).replace(/'/g,"");d.negSuf=q.slice(R+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return Zia(a,d,c,b)}catch(S){throw Pg();}};
ty.\u0275fac=function(a){return new (a||ty)(B(ti,16))};ty.\u0275pipe=$c({name:"number",type:ty,pure:!0,standalone:!0});
var uy=function(){};uy.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw Pg();return a.slice(b,c)};uy.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};uy.\u0275fac=function(a){return new (a||uy)};uy.\u0275pipe=$c({name:"slice",type:uy,pure:!1,standalone:!0});
var vy=function(){};vy.\u0275fac=function(a){return new (a||vy)};vy.\u0275mod=Yc({type:vy});vy.\u0275inj=Ic({});
var wy=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};wy.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};wy.prototype.registerOnTouched=function(a){this.onTouched=a};wy.prototype.registerOnChange=function(a){this.onChange=a};wy.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};wy.\u0275fac=function(a){return new (a||wy)(B(tw),B(Rd))};wy.\u0275dir=u({type:wy});
var gh=function(){wy.apply(this,arguments)};X(gh,wy);gh.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(gh)))(b||gh)}}();gh.\u0275dir=u({type:gh,features:[Of]});var xy=new Md("NgValueAccessor");
var Drb=function(a){return a.src};new Md("ImageLoader",{providedIn:"root",factory:function(){return Drb}});
var li=new Md("DocumentToken");
new Md("PRECONNECT_CHECK_BLOCKLIST");
new Md("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}});
var Erb={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]};new Md("ImageConfig",{providedIn:"root",factory:function(){return Erb}});
var yh=null,Frb=function(){};
var yy=function(){};yy.prototype.historyGo=function(){throw Error("Xa");};yy.\u0275fac=function(a){return new (a||yy)};yy.\u0275prov=Hc({token:yy,factory:function(){return p(zy)},providedIn:"platform"});var Grb=new Md("Location Initialized"),zy=function(a){this._doc=a;this._init()};X(zy,yy);zy.prototype._init=function(){this.location=window.location;this._history=window.history};
zy.prototype.onPopState=function(a){var b=Hrb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var Irb=function(a,b){var c=Hrb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=zy.prototype;g.pushState=function(a,b,c){window.history.pushState?this._history.pushState(a,b,c):this.location.hash=c};
g.replaceState=function(a,b,c){window.history.pushState?this._history.replaceState(a,b,c):this.location.hash=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};
ni.Object.defineProperties(zy.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}}});zy.\u0275fac=function(a){return new (a||zy)(p(li))};zy.\u0275prov=Hc({token:zy,factory:function(){return new zy(p(li))},providedIn:"platform"});
var Ay=function(){};Ay.prototype.historyGo=function(){throw Error("Xa");};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275prov=Hc({token:Ay,factory:function(){return Rc(By)},providedIn:"root"});var Jrb=new Md("appBaseHref"),By=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=null!=(e=null!=(d=null!=b?b:yh.getBaseHref())?d:null==(c=Rc(li).location)?void 0:c.origin)?e:""};X(By,Ay);g=By.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Irb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return $ia(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+Zg(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+Zg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+Zg(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)};By.\u0275fac=function(a){return new (a||By)(p(yy),p(Jrb,8))};By.\u0275prov=Hc({token:By,factory:By.\u0275fac,providedIn:"root"});
var Cy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};X(Cy,Ay);g=Cy.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Irb(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=$ia(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+Zg(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+Zg(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)};Cy.\u0275fac=function(a){return new (a||Cy)(p(yy),p(Jrb,8))};
Cy.\u0275prov=Hc({token:Cy,factory:Cy.\u0275fac});
var cl=function(a){var b=this;this._subject=new sx;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._baseHref=aja(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=cl.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._baseHref;a=a.replace(/\/index.html$/,"");return aja(b&&a.startsWith(b)?a.substring(b.length):a)};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+Zg(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+Zg(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})};cl.\u0275fac=function(a){return new (a||cl)(p(Ay))};cl.\u0275prov=Hc({token:cl,factory:function(){return new cl(p(Ay))},providedIn:"root"});
var Krb=function(){};Krb.\u0275prov=Hc({token:Krb,providedIn:"root",factory:function(){return new Lrb}});var Lrb=function(){var a=p(li),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};Lrb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};Lrb.prototype.getScrollPosition=function(){return Dy(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var Mrb=function(a,b){Dy(a)&&a.window.scrollTo(b[0],b[1])},Dy=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};
var Nrb=function(){};
var Orb={provide:xy,useExisting:Fc(function(){return fh}),multi:!0},Prb=new Md("CompositionEventMode"),fh=function(a,b,c){wy.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((yh?window.navigator.userAgent:"").toLowerCase()))};X(fh,wy);fh.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};fh.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
fh.prototype._compositionStart=function(){this._composing=!0};fh.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};fh.\u0275fac=function(a){return new (a||fh)(B(tw),B(Rd),B(Prb,8))};
fh.\u0275dir=u({type:fh,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&&M("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:[mg([Orb]),Of]});
var Ey=new Md("NgValidators"),Fy=new Md("NgAsyncValidators"),Gy=function(a){return cja(a)};
var Hy=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=Hy.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=mja(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=oja(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};
ni.Object.defineProperties(Hy.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 Iy=function(){Hy.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};X(Iy,Hy);
var Jy=function(){Hy.apply(this,arguments)};X(Jy,Hy);ni.Object.defineProperties(Jy.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});
var Qrb=function(a){this._cd=a};
ni.Object.defineProperties(Qrb.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 Ky=function(a){this._cd=a};X(Ky,Qrb);Ky.\u0275fac=function(a){return new (a||Ky)(B(Iy,2))};
Ky.\u0275dir=u({type:Ky,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&Zf("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:[Of]});var Ly=function(a){this._cd=a};X(Ly,Qrb);Ly.\u0275fac=function(a){return new (a||Ly)(B(Jy,10))};
Ly.\u0275dir=u({type:Ly,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&Zf("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:[Of]});
var My=new Md("CallSetDisabledState",{providedIn:"root",factory:function(){return"whenDisabledForLegacyCode"}});
var Ny=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)},wja=function(a,b){a._assignValidators(b)},xja=function(a,b){a._assignAsyncValidators(b)},Rrb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(Gy):a===Gy},zja=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&
!b.onlySelf&&zja(a._parent,b)},Srb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){Srb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},Aja=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&Aja(a._parent,b)},Trb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=!1;a._forEachChild(function(c){Trb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=Ny.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}))});eh(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&&(eh(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 eh=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&&eh(a._parent,b)};g=Ny.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});eh(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=hja(this.asyncValidator(this)).subscribe(function(c){b._hasOwnPendingAsyncValidator=!1;var d={emitEvent:a};d=void 0===d?{}:d;b.errors=c;b._updateControlsErrors(!1!==d.emitEvent)}))};g._cancelExistingSubscription=function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)};
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 sx;this.statusChanges=new sx};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){hh(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)?mja(a):a||null};
g._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?oja(a):a||null};
ni.Object.defineProperties(Ny.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 Oy=function(a,b,c){var d=Ny.call,e=Eja(b);c=(hh(b)?b.asyncValidators:c)||null;d.call(Ny,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();eh(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};X(Oy,Ny);var Urb=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=Oy.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;Urb(this,a);eh(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];eh(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;Fja(this,a);Object.keys(a).forEach(function(d){var e=c.controls;if(!Object.keys(e).length)throw new Lc(1E3,"");if(!e[d])throw new Lc(1001,"");c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});eh(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);eh(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&&eh(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=n(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=n(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=n(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 Vrb={provide:Jy,useExisting:Fc(function(){return Py})},Wrb=Promise.resolve(),Py=function(a,b,c){Jy.call(this);this.callSetDisabledState=c;this.submitted=!1;this._directives=new Set;this.ngSubmit=new sx;this.form=new Oy({},mja(a),oja(b))};X(Py,Jy);g=Py.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};
g.addControl=function(a){var b=this;Wrb.then(function(){var c=b._findContainer(a.path);a.control=Urb(c,a.name,a.control);ah(a.control,a,b.callSetDisabledState);eh(a.control,{emitEvent:!1});b._directives.add(a)})};g.removeControl=function(a){var b=this;Wrb.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;Wrb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};
g.onSubmit=function(a){this.submitted=!0;Cja(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};
ni.Object.defineProperties(Py.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}}});Py.\u0275fac=function(a){return new (a||Py)(B(Ey,10),B(Fy,10),B(My,8))};
Py.\u0275dir=u({type:Py,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&M("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mg([Vrb]),Of]});
var Qy=function(a,b,c){a=void 0===a?null:a;var d=Ny.call,e=Eja(b);c=(hh(b)?b.asyncValidators:c)||null;d.call(Ny,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();eh(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});hh(b)&&(b.nonNullable||b.initialValueIsDefault)&&(Gja(a)?this.defaultValue=a.value:this.defaultValue=a)};X(Qy,Ny);g=Qy.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)});eh(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);Trb(this,b);Srb(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&&Aja(this),this._pendingTouched&&zja(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){Gja(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 Xrb={provide:Iy,useExisting:Fc(function(){return Ry})},Yrb=Promise.resolve(),Ry=function(a,b,c,d,e,f){Iy.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new Qy;this._registered=!1;this.update=new sx;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Dja(d)};X(Ry,Iy);g=Ry.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);Bja(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(){ah(this.control,this,this.callSetDisabledState);eh(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._isStandalone()||this._checkParentType();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;Yrb.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&&Jg(a);Yrb.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?qja(a,this._parent):[a]};
ni.Object.defineProperties(Ry.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}}});Ry.\u0275fac=function(a){return new (a||Ry)(B(Jy,9),B(Ey,10),B(Fy,10),B(xy,10),B(Xx,8),B(My,8))};
Ry.\u0275dir=u({type:Ry,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[mg([Xrb]),Of,ed]});
var Sy=function(){};Sy.\u0275fac=function(a){return new (a||Sy)};Sy.\u0275dir=u({type:Sy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});
var Zrb={provide:xy,useExisting:Fc(function(){return Ty}),multi:!0},Ty=function(){gh.apply(this,arguments)};X(Ty,gh);Ty.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Ty.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};Ty.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(Ty)))(b||Ty)}}();
Ty.\u0275dir=u({type:Ty,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&M("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[mg([Zrb]),Of]});
var $rb={provide:xy,useExisting:Fc(function(){return Uy}),multi:!0},Vy=function(){};Vy.\u0275fac=function(a){return new (a||Vy)};Vy.\u0275mod=Yc({type:Vy});Vy.\u0275inj=Ic({});var Wy=function(){this._accessors=[]};Wy.prototype.add=function(a,b){this._accessors.push([a,b])};Wy.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}};
Wy.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};Wy.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};Wy.\u0275fac=function(a){return new (a||Wy)};Wy.\u0275prov=Hc({token:Wy,factory:Wy.\u0275fac,providedIn:Vy});var Uy=function(a,b,c,d){gh.call(this,a,b);this._registry=c;this._injector=d;this.onChange=function(){}};X(Uy,gh);g=Uy.prototype;
g.ngOnInit=function(){this._control=this._injector.get(Iy);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._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};
Uy.\u0275fac=function(a){return new (a||Uy)(B(tw),B(Rd),B(Wy),B(dl))};Uy.\u0275dir=u({type:Uy,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&M("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[mg([$rb]),Of]});
var asb=new Md("NgModelWithFormControlWarning"),bsb={provide:Iy,useExisting:Fc(function(){return Xy})},Xy=function(a,b,c,d,e){Iy.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new sx;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=Dja(c)};X(Xy,Iy);
Xy.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&ch(b,this);ah(this.form,this,this.callSetDisabledState);eh(this.form,{emitEvent:!1})}Bja(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};Xy.prototype.ngOnDestroy=function(){this.form&&ch(this.form,this)};Xy.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};Xy.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
ni.Object.defineProperties(Xy.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}}});Xy.\u0275fac=function(a){return new (a||Xy)(B(Ey,10),B(Fy,10),B(xy,10),B(asb,8),B(My,8))};
Xy.\u0275dir=u({type:Xy,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[mg([bsb]),Of,ed]});
var csb={provide:Jy,useExisting:Fc(function(){return Yy})},Yy=function(a,b,c){Jy.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 sx;this._setValidators(a);this._setAsyncValidators(b)};X(Yy,Jy);g=Yy.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(bh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);ah(b,a,this.callSetDisabledState);eh(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){ch(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;Cja(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&&(ch(c||null,b),d instanceof Qy&&(ah(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);rja(b,a);eh(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&bh(b,a)&&eh(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){rja(this.form,this);this._oldForm&&bh(this._oldForm,this)};g._checkFormPresent=function(){};
ni.Object.defineProperties(Yy.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[]}}});Yy.\u0275fac=function(a){return new (a||Yy)(B(Ey,10),B(Fy,10),B(My,8))};
Yy.\u0275dir=u({type:Yy,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&M("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mg([csb]),Of,ed]});
var dsb={provide:Iy,useExisting:Fc(function(){return Zy})},Zy=function(a,b,c,d,e){Iy.call(this);this._ngModelWarningConfig=e;this._added=!1;this.update=new sx;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Dja(d)};X(Zy,Iy);g=Zy.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();Bja(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._checkParentType();this.control=this.formDirective.addControl(this);this._added=!0};
ni.Object.defineProperties(Zy.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return qja(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});Zy.\u0275fac=function(a){return new (a||Zy)(B(Jy,13),B(Ey,10),B(Fy,10),B(xy,10),B(asb,8))};
Zy.\u0275dir=u({type:Zy,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[mg([dsb]),Of,ed]});
var $y=function(){this._validator=eja};$y.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):eja,this._onChange&&this._onChange())};$y.prototype.validate=function(a){return this._validator(a)};$y.prototype.registerOnValidatorChange=function(a){this._onChange=a};$y.prototype.enabled=function(a){return null!=a};$y.\u0275fac=function(a){return new (a||$y)};
$y.\u0275dir=u({type:$y,features:[ed]});var esb={provide:Ey,useExisting:Fc(function(){return az}),multi:!0},az=function(){$y.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return bja(a)}};X(az,$y);az.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(az)))(b||az)}}();
az.\u0275dir=u({type:az,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&&Uf("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[mg([esb]),Of]});var fsb={provide:Ey,useExisting:Fc(function(){return bz}),multi:!0},bz=function(){$y.apply(this,arguments);this.inputName="required";this.normalizeInput=Jg;this.createValidator=function(){return cja}};
X(bz,$y);bz.prototype.enabled=function(a){return a};bz.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(bz)))(b||bz)}}();bz.\u0275dir=u({type:bz,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&Uf("required",b._enabled?"":null)},inputs:{required:"required"},features:[mg([fsb]),Of]});
var gsb={provide:Ey,useExisting:Fc(function(){return cz}),multi:!0},cz=function(){$y.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return dja(a)}};X(cz,$y);cz.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(cz)))(b||cz)}}();
cz.\u0275dir=u({type:cz,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Uf("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[mg([gsb]),Of]});var hsb={provide:Ey,useExisting:Fc(function(){return dz}),multi:!0},dz=function(){$y.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return fja(a)}};
X(dz,$y);dz.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(dz)))(b||dz)}}();dz.\u0275dir=u({type:dz,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Uf("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[mg([hsb]),Of]});
var ez=function(){};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275mod=Yc({type:ez});ez.\u0275inj=Ic({imports:[Vy]});
var fz=function(){};fz.\u0275fac=function(a){return new (a||fz)};fz.\u0275mod=Yc({type:fz});fz.\u0275inj=Ic({imports:[ez]});var gz=function(){};gz.\u0275fac=function(a){return new (a||gz)};gz.\u0275mod=Yc({type:gz});gz.\u0275inj=Ic({imports:[ez]});
var ih,Hja="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 jh;
var mh,lh;
var Mja;
var isb;try{isb="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){isb=!1}
var hz=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&&!isb)&&"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};hz.\u0275fac=function(a){return new (a||hz)(p(Dw))};hz.\u0275prov=Hc({token:hz,factory:hz.\u0275fac,providedIn:"root"});
var iz=function(a){this._platform=a};iz.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};iz.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var jsb=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===Pja(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=Pja(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};iz.prototype.isFocusable=function(a){if("input"==a.nodeName.toLowerCase()&&"hidden"==a.type)var b=!1;else b=a.nodeName.toLowerCase(),b="input"===b||"select"===b||"button"===b||"textarea"===b||"a"==a.nodeName.toLowerCase()&&a.hasAttribute("href")||a.hasAttribute("contenteditable")||Oja(a);return b&&!this.isDisabled(a)&&this.isVisible(a)};
iz.\u0275fac=function(a){return new (a||iz)(p(hz))};iz.\u0275prov=Hc({token:iz,factory:iz.\u0275fac,providedIn:"root"});
var lz=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 ksb(f)};this.endAnchorListener=function(){return jz(f)};this._enabled=!0;(void 0===e?0:e)||kz(this)};
lz.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 kz=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))},mz=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})};
lz.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)};
lz.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 jz(this)};var jz=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},ksb=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=lz.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&jsb(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)&&jsb(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 lsb=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
lz.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(sf()).subscribe(a)};ni.Object.defineProperties(lz.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 nz=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
nz.prototype.create=function(a,b){return new lz(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};nz.\u0275fac=function(a){return new (a||nz)(p(iz),p(Mf),p(li))};nz.\u0275prov=Hc({token:nz,factory:nz.\u0275fac,providedIn:"root"});var oz=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=oz.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){kz(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||kz(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=oh();mz(this.focusTrap)};ni.Object.defineProperties(oz.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=rh(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=rh(a)}}});oz.\u0275fac=function(a){return new (a||oz)(B(Rd),B(nz),B(li))};
oz.\u0275dir=u({type:oz,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[ed]});
var msb=new Md("cdk-input-modality-detector-options"),nsb={ignoreKeys:[18,17,224,91,16]},pz=kh({passive:!0,capture:!0}),qz=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new W.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=ph(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(vh(f)?"keyboard":"mouse"),e._mostRecentTarget=ph(f))};this._onTouchstart=function(f){wh(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=ph(f))};this._options=Object.assign({},nsb,d);this.modalityDetected=this._modality.pipe(Bf(1));this.modalityDetected.pipe(rf());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,pz);c.addEventListener("mousedown",e._onMousedown,pz);c.addEventListener("touchstart",
e._onTouchstart,pz)})};qz.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,pz),document.removeEventListener("mousedown",this._onMousedown,pz),document.removeEventListener("touchstart",this._onTouchstart,pz))};ni.Object.defineProperties(qz.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});
qz.\u0275fac=function(a){return new (a||qz)(p(hz),p(Mf),p(li),p(msb,8))};qz.\u0275prov=Hc({token:qz,factory:qz.\u0275fac,providedIn:"root"});
var osb=new Md("cdk-focus-monitor-default-options"),rz=kh({passive:!0,capture:!0}),sz=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 W.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=ph(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};
sz.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=th(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,W.of)(null);var c=nh(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new W.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
sz.prototype.stopMonitoring=function(a){a=th(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var tz=function(a,b,c,d){b=th(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=n(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=sz.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=ph(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,rz);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,rz)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(Ef(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,rz),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rz),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};sz.\u0275fac=function(a){return new (a||sz)(p(Mf),p(hz),p(qz),p(li,8),p(osb,8))};sz.\u0275prov=Hc({token:sz,factory:sz.\u0275fac,providedIn:"root"});
var uz=function(a,b){this._elementRef=a;this._focusMonitor=b;this._focusOrigin=null;this.cdkFocusChange=new sx};uz.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)})};uz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
ni.Object.defineProperties(uz.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});uz.\u0275fac=function(a){return new (a||uz)(B(Rd),B(sz))};uz.\u0275dir=u({type:uz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});
var vz=function(){};vz.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};vz.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};ni.Object.defineProperties(vz.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var wz=function(a,b,c,d,e){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d;this.projectableNodes=e};X(wz,vz);
var xz=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};X(xz,vz);xz.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return vz.prototype.attach.call(this,a)};xz.prototype.detach=function(){this.context=void 0;return vz.prototype.detach.call(this)};ni.Object.defineProperties(xz.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var yz=function(){this._isDisposed=!1};g=yz.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof wz)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof xz)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 zz=function(a,b,c,d,e){this._isDisposed=!1;this.outletElement=a;this._componentFactoryResolver=b;this._appRef=c;this._defaultInjector=d;this._document=e};X(zz,yz);
zz.prototype.attachComponentPortal=function(a){var b=this,c=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(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||Npb),irb(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};zz.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};
zz.prototype.dispose=function(){yz.prototype.dispose.call(this);this.outletElement.remove()};zz.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};
var Az=function(a,b){xz.call(this,a,b)};X(Az,xz);Az.\u0275fac=function(a){return new (a||Az)(B(vg),B(wg))};Az.\u0275dir=u({type:Az,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Of]});var Bz=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new sx;this._document=c};X(Bz,yz);g=Bz.prototype;g.ngOnInit=function(){this._isInitialized=!0};
g.ngOnDestroy=function(){yz.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=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(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]);yz.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});yz.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};
ni.Object.defineProperties(Bz.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&yz.prototype.detach.call(this),a&&yz.prototype.attach.call(this,a),this._attachedPortal=a||null}}});Bz.\u0275fac=function(a){return new (a||Bz)(B(qw),B(wg),B(li))};
Bz.\u0275dir=u({type:Bz,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Of]});var Cz=function(){};Cz.\u0275fac=function(a){return new (a||Cz)};Cz.\u0275mod=Yc({type:Cz});Cz.\u0275inj=Ic({});
var psb=function(){};X(psb,Frb);
var Dz=function(){};X(Dz,psb);var qsb=function(a,b,c){a.addEventListener(b,c,!1);return function(){a.removeEventListener(b,c,!1)}};Dz.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Dz.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};Dz.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var Hrb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
Dz.prototype.getBaseHref=function(){var a=(rsb=rsb||document.querySelector("base"))?rsb.getAttribute("href"):null;null==a?a=null:(Ez=Ez||document.createElement("a"),Ez.setAttribute("href",a),a=Ez.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var rsb=null,Ez;
new Md("TRANSITION_ID");
var ssb=function(){},Vqb=function(a){Xd.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw Error("Ya");return b};Xd.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};Xd.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};Xd.frameworkStabilizers||(Xd.frameworkStabilizers=[]);Xd.frameworkStabilizers.push(function(b){var c=Xd.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||h;d--;
0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};ssb.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 Fz=function(){};Fz.prototype.build=function(){return new XMLHttpRequest};Fz.\u0275fac=function(a){return new (a||Fz)};Fz.\u0275prov=Hc({token:Fz,factory:Fz.\u0275fac});
var Gz=new Md("EventManagerPlugins"),Hz=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){return d.manager=c});this._plugins=a.slice().reverse()};Hz.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};Hz.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)};
Hz.prototype._findPluginFor=function(a){var b=this._eventNameToPlugin.get(a);if(b)return b;b=this._plugins;for(var c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return this._eventNameToPlugin.set(a,d),d}throw Error("Za`"+a);};Hz.\u0275fac=function(a){return new (a||Hz)(p(Gz),p(Mf))};Hz.\u0275prov=Hc({token:Hz,factory:Hz.\u0275fac});var tsb=function(a){this._doc=a};
tsb.prototype.addGlobalEventListener=function(a,b,c){a=Hrb(this._doc,a);if(!a)throw Error("$a`"+a+"`"+b);return this.addEventListener(a,b,c)};
var Iz=function(){this._stylesSet=new Set},usb=function(a,b){var c=new Set;b.forEach(function(d){a._stylesSet.has(d)||(a._stylesSet.add(d),c.add(d))});a.onStylesAdded(c)};Iz.prototype.onStylesAdded=function(){};Iz.\u0275fac=function(a){return new (a||Iz)};Iz.\u0275prov=Hc({token:Iz,factory:Iz.\u0275fac});var Jz=function(a){this._stylesSet=new Set;this._doc=a;this._hostNodes=new Map;this._hostNodes.set(a.head,[])};X(Jz,Iz);
Jz.prototype._addStylesToHost=function(a,b,c){var d=this;a.forEach(function(e){var f=d._doc.createElement("style");f.textContent=e;c.push(b.appendChild(f))})};Jz.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c,d){b._addStylesToHost(a,d,c)})};Jz.prototype.ngOnDestroy=function(){this._hostNodes.forEach(function(a){return a.forEach(Rja)})};Jz.\u0275fac=function(a){return new (a||Jz)(p(li))};Jz.\u0275prov=Hc({token:Jz,factory:Jz.\u0275fac});
var vsb={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/"},Sja=/%COMP%/g,Lz=function(a,b,c){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.rendererByCompId=new Map;this.defaultRenderer=new Kz(a)};
Lz.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;switch(b.encapsulation){case 0:var c=this.rendererByCompId.get(b.id);c||(c=new wsb(this.eventManager,this.sharedStylesHost,b,this.appId),this.rendererByCompId.set(b.id,c));Kz.prototype.setAttribute.call(c,a,c.hostAttr,"");return c;case 3:return new xsb(this.eventManager,this.sharedStylesHost,a,b);default:return this.rendererByCompId.has(b.id)||(a=zh(b.id,b.styles,[]),usb(this.sharedStylesHost,a),this.rendererByCompId.set(b.id,
this.defaultRenderer)),this.defaultRenderer}};Lz.prototype.begin=function(){};Lz.prototype.end=function(){};Lz.\u0275fac=function(a){return new (a||Lz)(p(Hz),p(Jz),p(jqb))};Lz.\u0275prov=Hc({token:Lz,factory:Lz.\u0275fac});var Kz=function(a){this.eventManager=a;this.data=Object.create(null);this.destroyNode=null};g=Kz.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?document.createElementNS(vsb[b]||b,a):document.createElement(a)};g.createComment=function(a){return document.createComment(a)};
g.createText=function(a){return document.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){var c="string"===typeof a?document.querySelector(a):a;if(!c)throw Error("ab`"+a);b||(c.textContent="");return c};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=vsb[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=vsb[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){return"string"===typeof a?this.eventManager.addGlobalEventListener(a,b,Tja(c)):this.eventManager.addEventListener(a,b,Tja(c))};
var wsb=function(a,b,c,d){Kz.call(this,a);this.component=c;a=zh(d+"-"+c.id,c.styles,[]);usb(b,a);this.contentAttr="_ngcontent-%COMP%".replace(Sja,d+"-"+c.id);this.hostAttr="_nghost-%COMP%".replace(Sja,d+"-"+c.id)};X(wsb,Kz);wsb.prototype.createElement=function(a,b){a=Kz.prototype.createElement.call(this,a,b);Kz.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};
var xsb=function(a,b,c,d){Kz.call(this,a);this.sharedStylesHost=b;this.hostEl=c;this.shadowRoot=c.attachShadow({mode:"open"});a=this.sharedStylesHost;b=this.shadowRoot;c=[];a._addStylesToHost(a._stylesSet,b,c);a._hostNodes.set(b,c);d=zh(d.id,d.styles,[]);for(a=0;a<d.length;a++)b=document.createElement("style"),b.textContent=d[a],this.shadowRoot.appendChild(b)};X(xsb,Kz);var Mz=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=xsb.prototype;
g.destroy=function(){var a=this.sharedStylesHost,b=this.shadowRoot,c=a._hostNodes.get(b);c&&c.forEach(Rja);a._hostNodes.delete(b)};g.appendChild=function(a,b){return Kz.prototype.appendChild.call(this,Mz(this,a),b)};g.insertBefore=function(a,b,c){return Kz.prototype.insertBefore.call(this,Mz(this,a),b,c)};g.removeChild=function(a,b){return Kz.prototype.removeChild.call(this,Mz(this,a),b)};g.parentNode=function(a){return Mz(this,Kz.prototype.parentNode.call(this,Mz(this,a)))};
var Nz=function(a){this._doc=a};X(Nz,tsb);Nz.prototype.supports=function(){return!0};Nz.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};Nz.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};Nz.\u0275fac=function(a){return new (a||Nz)(p(li))};Nz.\u0275prov=Hc({token:Nz,factory:Nz.\u0275fac});
var ysb=["alt","control","meta","shift"],zsb={"\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"},Asb={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},Oz=function(a){this._doc=a};X(Oz,tsb);Oz.prototype.supports=function(a){return null!=Bsb(a)};
Oz.prototype.addEventListener=function(a,b,c){var d=Bsb(b),e=Csb(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return qsb(a,d.domEventName,e)})};
var Bsb=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=Dsb(b.pop()),d="",e=b.indexOf("code");-1<e&&(b.splice(e,1),d="code.");ysb.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},Esb=function(a,b){var c=zsb[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");ysb.forEach(function(e){e!==c&&(0,Asb[e])(a)&&(d+=e+".")});d+=c;return d===b},Csb=function(a,b,c){return function(d){Esb(d,a)&&c.runGuarded(function(){return b(d)})}},Dsb=function(a){switch(a){case "esc":return"escape";default:return a}};Oz.\u0275fac=function(a){return new (a||Oz)(p(li))};Oz.\u0275prov=Hc({token:Oz,factory:Oz.\u0275fac});
var frb=vha(trb,"browser",[{provide:Dw,useValue:"browser"},{provide:qha,useValue:function(){var a=new Dz;yh||(yh=a)},multi:!0},{provide:li,useFactory:function(){return Hea=document},deps:[]}]),Fsb=new Md(""),Gsb=[{provide:ux,useClass:ssb,deps:[]},{provide:Tqb,useClass:vx,deps:[Mf,wx,ux]},{provide:vx,useClass:vx,deps:[Mf,wx,ux]}],Hsb=[{provide:wha,useValue:"root"},{provide:te,useFactory:function(){return new te},deps:[]},{provide:Gz,useClass:Nz,multi:!0,deps:[li,Mf,Dw]},{provide:Gz,useClass:Oz,multi:!0,
deps:[li]},{provide:Lz,useClass:Lz,deps:[Hz,Jz,jqb]},{provide:sw,useExisting:Lz},{provide:Iz,useExisting:Jz},{provide:Jz,useClass:Jz,deps:[li]},{provide:Hz,useClass:Hz,deps:[Gz,Mf]},{provide:Nrb,useClass:Fz,deps:[]},[]],Pz=function(){};Pz.\u0275fac=function(a){return new (a||Pz)(p(Fsb,12))};Pz.\u0275mod=Yc({type:Pz});Pz.\u0275inj=Ic({providers:[].concat(r(Hsb),r(Gsb)),imports:[vy,Wx]});
var Qz=function(a){this._doc=a};Qz.prototype.getTitle=function(){return this._doc.title};Qz.prototype.setTitle=function(a){this._doc.title=a||""};Qz.\u0275fac=function(a){return new (a||Qz)(p(li))};Qz.\u0275prov=Hc({token:Qz,factory:function(a){var b=null;a?b=new a:b=new Qz(p(li));return b},providedIn:"root"});
new Md("HammerGestureConfig");new Md("HammerLoader");new mw;
var Rz=function(){};Rz.\u0275fac=function(a){return new (a||Rz)};Rz.\u0275prov=Hc({token:Rz,factory:function(a){return a?new (a||Rz):p(Sz)},providedIn:"root"});var Sz=function(a){this._doc=a};X(Sz,Rz);
Sz.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return fe(b,"HTML")?ee(b):Cea(this._doc,String(b)).toString();case 2:return fe(b,"Style")?ee(b):b;case 3:if(fe(b,"Script"))return ee(b);throw Error("bb");case 4:return fe(b,"URL")?ee(b):qea(String(b));case 5:if(fe(b,"ResourceURL"))return ee(b);throw Error("cb");default:throw Error("db`"+a);}};Sz.prototype.bypassSecurityTrustHtml=function(a){return new Tpb(a)};Sz.prototype.bypassSecurityTrustUrl=function(a){return new Upb(a)};
Sz.prototype.bypassSecurityTrustResourceUrl=function(a){return new Vpb(a)};Sz.\u0275fac=function(a){return new (a||Sz)(p(li))};Sz.\u0275prov=Hc({token:Sz,factory:function(a){a?a=new a:(a=p(dl),a=new Sz(a.get(li)));return a},providedIn:"root"});
var Jsb=function(a){var b=sp("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||ea.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Isb(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,Tz[c])c=Tz[c];else{c=String(c);if(!Tz[c]){var f=/function\s+([^\(]+)/m.exec(c);Tz[c]=f?f[1]:"[Anonymous]"}c=Tz[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}},Isb=function(a,b){b||(b={});b[Ksb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Ksb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Isb(a,b));return c},Ksb=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack},Tz={};
var Lsb;try{new URL("s://g"),Lsb=!0}catch(a){Lsb=!1}var Vja=Lsb;
var Xja=function(a){this.isValid=a},Yja=[Eh("data"),Eh("http"),Eh("https"),Eh("mailto"),Eh("ftp"),new Xja(function(a){return/^[^:]*([/?#]|$)/.test(a)})];
var Uz=function(a){this.decorated=new Sz(a)};X(Uz,Rz);Uz.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof $v||b instanceof ec||b instanceof cw){if(Msb(b,a))return this.decorated.sanitize(a,Nsb(this,b));throw Error("gb`"+eqb[a]+"`"+b);}return this.decorated.sanitize(a,b)};Uz.prototype.bypassSecurityTrustHtml=function(){throw Error("hb");};Uz.prototype.bypassSecurityTrustUrl=function(){throw Error("hb");};
Uz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("hb");};var Nsb=function(a,b){if(null!=b){if(b instanceof cw)return a.decorated.bypassSecurityTrustHtml(String(b));if(b instanceof ec)return a.decorated.bypassSecurityTrustUrl(fc(b));if(b instanceof $v)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},Msb=function(a,b){switch(b){case 1:return a instanceof cw;case 4:return a instanceof ec||a instanceof $v;case 5:return a instanceof $v;case 3:return!1;default:return!1}};
Uz.\u0275fac=function(a){return new (a||Uz)(p(li))};Uz.\u0275prov=Hc({token:Uz,factory:Uz.\u0275fac});
var Vz=function(){};Vz.\u0275fac=function(a){return new (a||Vz)};Vz.\u0275mod=Yc({type:Vz});Vz.\u0275inj=Ic({providers:[{provide:vw,useExisting:Rz},{provide:Rz,useClass:Uz}],imports:[Pz]});
var Hh=new Set(["true","1"]),Ih=new Set(["false","0"]);
var Osb=function(){},Psb=function(){};
/*

 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 {function(): ?} cb
 @return {void}
*/
var Qh=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=Qh.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(),Qsb(this));this._started=!0};var Qsb=function(a){Promise.resolve().then(function(){return a._onFinish()})};g=Qh.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 cka=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?Promise.resolve().then(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=cka.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 Wz=function(){return!1},Rsb=function(){return[]},jka=null;if(bka()||"undefined"!==typeof Element)"undefined"!==typeof window&&"undefined"!==typeof window.document?(jka=document.documentElement,Wz=function(a,b){for(;b;){if(b===a)return!0;b=kka(b)}return!1}):Wz=function(a,b){return a.contains(b)},Rsb=function(a,b,c){return c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[]};
var rka=RegExp("{{\\s*(.+?)\\s*}}","g"),ska=/-+([a-z0-9])/g;
var uka=RegExp("s*:selfs*,?","g"),Ssb=function(a){this._driver=a};g=Ssb.prototype;g.build=function(a,b){b=new Tsb(b);this._resetContextStyleTimingState(b);return ci(this,$h(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 Lc(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(t){k.name=t;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 Lc(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){pka(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&(bi(e.values()),b.errors.push(new Lc(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=ci(this,$h(a.animation),b);return{type:1,matchers:aka(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:di(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return ci(c,d,b)}),options:di(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=ci(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:di(a.options)}};
g.visitAnimate=function(a,b){var c=xka(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Lh({});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=Lh(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=n(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 Lc(3002,!1)):c.push(mka(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=n(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),t=q.get(k),x=!0;t&&(e!=d&&e>=t.startTime&&d<=t.endTime&&(b.errors.push(new Lc(3010,!1)),x=!1),e=t.startTime);x&&q.set(k,{startTime:e,endTime:d});b.options&&qka(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 Lc(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,t=a.steps.map(function(R){R=c._makeStyleAst(R,b);var S=null!=R.offset?R.offset:wka(R.styles),aa=0;null!=S&&(e++,aa=R.offset=S);k=k||0>aa||1<aa;h=h||aa<q;q=aa;f.push(aa);return R});k&&b.errors.push(new Lc(3012,!1));h&&b.errors.push(new Lc(3200,!1));a=a.steps.length;var x=0;0<e&&e<a?b.errors.push(new Lc(3202,!1)):0==e&&(x=1/(a-1));
var y=a-1,F=b.currentTime,K=b.currentAnimateTimings,J=K.duration;t.forEach(function(R,S){S=0<x?S==y?1:x*S:f[S];var aa=S*J;b.currentTime=F+K.delay+aa;K.duration=aa;c._validateStyleAst(R,b);R.offset=S;d.styles.push(R)});return d};g.visitReference=function(a,b){return{type:8,animation:ci(this,$h(a.animation),b),options:di(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:di(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:di(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=n(vka(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Th(b.collectedStyles,b.currentQuerySelector,new Map);var h=ci(this,$h(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:di(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Lc(3013,!1));var c="full"===a.timings?{duration:0,delay:0,easing:"full"}:Vh(a.timings,b.errors,!0);return{type:12,animation:ci(this,$h(a.animation),b),timings:c,options:null}};var Tsb=function(a){this.errors=a;this.depCount=this.queryCount=0;this.currentAnimateTimings=this.currentQuerySelector=this.currentQuery=null;this.currentTime=0;this.collectedStyles=new Map;this.options=null};
var Xz=function(){this._map=new Map};Xz.prototype.get=function(a){return this._map.get(a)||[]};Xz.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,r(b))};Xz.prototype.has=function(a){return this._map.has(a)};Xz.prototype.clear=function(){this._map.clear()};
var Usb=RegExp(":enter","g"),Vsb=RegExp(":leave","g"),zka=function(){};g=zka.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,t){t=void 0===t?[]:t;q=q||new Xz;a=new Yz(a,b,q,d,e,t,[]);a.options=k;d=k.delay?Uh(k.delay):0;a.currentTimeline.delayNextStep(d);Zz(a.currentTimeline,[f],null,a.errors,k);ci(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&&Zz(x,[h],null,a.errors,k)}return c.length?c.map(function(y){return y.buildKeyframes()}):
[yka(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=$z(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&aA(b,c)}b.previousNode=a};
g.visitAnimateRef=function(a,b){var c=$z(b,a.options);aA(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);aA(b,c.currentTimeline.currentTime);b.previousNode=a};g._applyAnimationRefDelays=function(a,b,c){a=n(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:Uh(ai(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?Uh(c.duration):null,f=null!=c.delay?Uh(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 bA(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){Wsb(b,a.options,!0);ci(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=$z(b,f),aA(e),null!=f.delay&&(6==e.previousNode.type&&(cA(e.currentTimeline),e.previousNode=dA),e.delayNextStep(Uh(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return ci(c,h,e)}),eA(e.currentTimeline),e.subContextCount>d&&aA(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Uh(a.options.delay):0;a.steps.forEach(function(h){var k=$z(b,a.options);f&&k.delayNextStep(f);ci(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return Xsb(b.currentTimeline,h)});aA(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?ai(a,b.params,b.errors):a,Vh(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&&(fA(b.currentTimeline,b.currentTimeline.duration+c.delay),cA(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(fA(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),eA(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=n(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else Zz(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=$z(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){fA(f,(h.offset||0)*e);Zz(f,h.styles,h.easing,b.errors,b.options);eA(f)});Xsb(b.currentTimeline,f);aA(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Uh(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(cA(b.currentTimeline),b.previousNode=dA);var h=d;d=Ysb(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,t){b.currentQueryIndex=t;t=$z(b,a.options,q);f&&t.delayNextStep(f);q===b.element&&(k=t.currentTimeline);ci(c,a.animation,t);eA(t.currentTimeline);
h=Math.max(h,t.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;aA(b,h);k&&(Xsb(b.currentTimeline,k),cA(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;ci(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var dA={},Yz=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=dA;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new gA(this._driver,b,0);h.push(this.currentTimeline)},Wsb=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Uh(b.duration));null!=b.delay&&(d.delay=Uh(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]=ai(e[h],f,a.errors))})}}};Yz.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 $z=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new Yz(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();Wsb(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},aA=function(a,b){a.previousNode=dA;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};Yz.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var Ysb=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(Usb,"."+a._enterClassName),b=b.replace(Vsb,"."+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,r(a)));e||0!=h.length||f.push(new Lc(3014,!1));return h};
ni.Object.defineProperties(Yz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var gA=function(a,b,c,d){this._driver=a;this.element=b;this.startTime=c;this._elementTimelineStylesLookup=d;this.duration=0;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()};gA.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};gA.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(fA(this,this.currentTime+a),b&&cA(this)):this.startTime+=a};
gA.prototype.fork=function(a,b){eA(this);return new gA(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};gA.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 fA=function(a,b){eA(a);a.duration=b;a._loadKeyframe()};
gA.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 Zz=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=Cka(b,a._globalTimelineStyles);b=n(b);for(e=b.next();!e.done;e=b.next()){var f=n(e.value);e=f.next().value;f=f.next().value;f=ai(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)}},eA=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)}))},cA=function(a){for(var b=n(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=n(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},Xsb=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)})};
gA.prototype.buildKeyframes=function(){var a=this;eA(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(t,x){t=Xh(t,new Map,a._backFill);t.forEach(function(y,F){"!"===y?b.add(F):"*"===y&&c.add(F)});d||t.set("offset",x/a.duration);e.push(t)});var f=b.size?bi(b.values()):[],h=c.size?bi(c.values()):[];if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return yka(this.element,e,f,h,this.duration,this.startTime,this.easing,
!1)};ni.Object.defineProperties(gA.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 bA=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;gA.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}};
X(bA,gA);bA.prototype.containsAnimation=function(){return 1<this.keyframes.length};
bA.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=Xh(a[0]);h.set("offset",0);b.push(h);h=Xh(a[0]);h.set("offset",Bka(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Xh(a[h]),q=k.get("offset");k.set("offset",Bka((c+q*d)/e));b.push(k)}d=e;c=0;e="";a=b}return yka(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};
var Zsb=function(){};
var $sb=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(" ")),atb=function(){};X(atb,Zsb);
var dka=function(a,b,c){var d="",e=b.toString().trim();$sb.has(a)&&0!==b&&"0"!==b&&("number"===typeof b?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&0==a[1].length&&c.push(new Lc(3005,!1)));return e+d};
var hA=function(){};g=hA.prototype;g.containsElement=function(a,b){return Wz(a,b)};g.getParentElement=function(a){return kka(a)};g.query=function(a,b,c){return Rsb(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new Qh(c,d)};hA.\u0275fac=function(a){return new (a||hA)};hA.\u0275prov=Hc({token:hA,factory:hA.\u0275fac});var btb=function(){};
var ctb={},ei=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};ei.prototype.match=function(a,b,c,d){return Eka(this.ast.matchers,a,b,c,d)};ei.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};
ei.prototype.build=function(a,b,c,d,e,f,h,k,q,t){var x=[],y=this.ast.options&&this.ast.options.params||ctb;h=this.buildStyles(c,h&&h.params||ctb,x);var F=k&&k.params||ctb;k=this.buildStyles(d,F,x);var K=new Set,J=new Map,R=new Map,S="void"===d,aa;y={params:Fka(F,y),delay:null==(aa=this.ast.options)?void 0:aa.delay};a=t?[]:Aka(a,b,this.ast.animation,e,f,h,k,y,q,x);var ba=0;a.forEach(function(ka){ba=Math.max(ka.duration+ka.delay,ba)});if(x.length)return Dka(b,this._triggerName,c,d,S,h,k,[],[],J,R,ba,
x);a.forEach(function(ka){var wa=ka.element,Aa=Th(J,wa,new Set);ka.preStyleProps.forEach(function(Ja){return Aa.add(Ja)});var Ka=Th(R,wa,new Set);ka.postStyleProps.forEach(function(Ja){return Ka.add(Ja)});wa!==b&&K.add(wa)});x=bi(K.values());return Dka(b,this._triggerName,c,d,S,h,k,a,x,J,R,ba)};var dtb=function(a,b){this.styles=a;this.defaultParams=b};
dtb.prototype.buildStyles=function(a,b){var c=new Map,d=Wh(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=ai(f,d,b));h=Sh(h);f=dka(h,f,b);c.set(h,f)})});return c};
var etb=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 dtb(e.style,e.options&&e.options.params||{}))});Hka(this.states,"true","1");Hka(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new ei(a,e,d.states))});this.fallbackTransition=Gka(a,this.states)},ftb=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};
var gtb=new Xz,htb=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=htb.prototype;g.register=function(a,b){var c=[];b=(new Ssb(this._driver)).build(b,c,[]);if(c.length)throw new Lc(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=eka(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=Aka(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,gtb,e),b.forEach(function(k){var q=Th(h,k.element,new Map);k.postStyleProps.forEach(function(t){return q.set(t,null)})})):(e.push(new Lc(3300,!1)),b=[]);if(e.length)throw new Lc(3504,!1);h.forEach(function(k,q){k.forEach(function(t,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=Rh(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 Lc(3301,!1);return a};g.listen=function(a,b,c,d){b=hka(b,"","","");gka(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 itb=[],jtb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Jka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},iA=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=Wh(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},ktb=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])})}};ni.Object.defineProperties(iA.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var ltb=new iA("void"),jA=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;gi(b,this._hostClassName)};g=jA.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Lc(3302,!1);if(null==c||0==c.length)throw new Lc(3303,!1);if("start"!=c&&"done"!=c)throw new Lc(3400,!1);var f=Th(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=Th(this._engine.statesByElement,a,new Map);k.has(b)||(gi(a,"ng-trigger"),gi(a,"ng-trigger-"+b),k.set(b,ltb));return function(){kA(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 Lc(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 lA(this.id,b,a),k=this._engine.statesByElement.get(a);k||(gi(a,"ng-trigger"),gi(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),t=new iA(c,this.id);c&&c.hasOwnProperty("value")||!q||ktb(t,q.options);k.set(b,t);q||(q=ltb);if("void"!==t.value&&q.value===t.value){if(!Pka(q.params,t.params)){d=[];var x=f.fallbackTransition.buildStyles(q.value,q.params,d),y=f.fallbackTransition.buildStyles(t.value,
t.params,d);d.length?this._engine.reportError(d):kA(this._engine,function(){Zh(a,x);Yh(a,y)})}}else{c=Th(this._engine.playersByElement,a,[]);c.forEach(function(K){K.namespaceId==e.id&&K.triggerName==b&&K.queued&&K.destroy()});k=ftb(f,q.value,t.value,a,t.params);var F=!1;if(!k){if(!d)return;k=f.fallbackTransition;F=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:t,player:h,isFallbackTransition:F});F||(gi(a,"ng-animate-queued"),h.onStart(function(){hi(a,
"ng-animate-queued")}));h.onDone(function(){var K=e.players.indexOf(h);0<=K&&e.players.splice(K,1);if(K=e._engine.playersByElement.get(a)){var J=K.indexOf(h);0<=J&&K.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 mA=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))};
jA.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=mtb(c._engine,e);f.size?f.forEach(function(h){return ntb(h,e,b,!1,!0)}):mA(c,e)}});otb(this._engine,function(){return d.forEach(function(e){return mA(c,e)})})};
var ntb=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,t){h.set(t,q.value);a._triggers.has(t)&&(q=a.trigger(b,t,"void",e))&&k.push(q)});if(k.length){ptb(a._engine,a.id,b,!0,c,h);if(d)Rh(k).onDone(function(){return ii(a._engine,b)});return!0}}return!1},qtb=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)||ltb,q=new iA("void"),t=new lA(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:t,isFallbackTransition:!0})}})}};
jA.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!ntb(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}}qtb(this,a);e?ptb(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==jtb||(kA(d,function(){return mA(c,a)}),rtb(d,a),d._onRemovalComplete(a,b)))}};
jA.prototype.insertNode=function(a){gi(a,this._hostClassName)};
var stb=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=hka(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;gka(d.player,k.phase,q,k.callback)}});e.markedForDestroy?kA(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})};jA.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var nA=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=nA.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 jA(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;if(a){var d=this._fetchNamespace(a);kA(this,function(){c.namespacesByHostElement.delete(d.hostElement);delete c._namespaceLookup[a];var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1)});otb(this,function(){return d.destroy(b)})}};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var mtb=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=n(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};nA.prototype.trigger=function(a,b,c,d){return fi(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
nA.prototype.insertNode=function(a,b,c,d){if(fi(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 ttb=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),gi(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),hi(b,"ng-animate-disabled"))};
nA.prototype.removeNode=function(a,b,c,d){if(fi(b)){var e=a?this._fetchNamespace(a):null;e?e.removeNode(b,d):ptb(this,a,b,!1,d);c&&(c=this.namespacesByHostElement.get(b))&&c.id!==a&&c.removeNode(b,d)}else this._onRemovalComplete(b,d)};var ptb=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};
nA.prototype.listen=function(a,b,c,d,e){return fi(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};nA.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 rtb=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return utb(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return vtb(a,d)}))},utb=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},vtb=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},ii=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
jtb;if(c.namespaceId){rtb(a,b);var d=a._fetchNamespace(c.namespaceId);d&&mA(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&ttb(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){ttb(a,f,!1)})};
nA.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++)gi(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++)ii(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)Rh(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
nA.prototype.reportError=function(){throw new Lc(3402,!1);};
nA.prototype._flushAnimations=function(a,b){var c=this,d=new Xz,e=[],f=new Map,h=[],k=new Map,q=new Map,t=new Map,x=new Set;this.disabledNodes.forEach(function(Oa){x.add(Oa);Oa=c.driver.query(Oa,".ng-animate-queued",!0);for(var mb=0;mb<Oa.length;mb++)x.add(Oa[mb])});var y=this.bodyNode,F=Array.from(this.statesByElement.keys()),K=Lka(F,this.collectedEnterElements),J=new Map,R=0;K.forEach(function(Oa,mb){var Ua="ng-enter"+R++;J.set(mb,Ua);Oa.forEach(function(xb){return gi(xb,Ua)})});for(var S=[],aa=
new Set,ba=new Set,ka=0;ka<this.collectedLeaveElements.length;ka++){var wa=this.collectedLeaveElements[ka],Aa=wa.__ng_removed;Aa&&Aa.setForRemoval&&(S.push(wa),aa.add(wa),Aa.hasAnimation?this.driver.query(wa,".ng-star-inserted",!0).forEach(function(Oa){return aa.add(Oa)}):ba.add(wa))}var Ka=new Map,Ja=Lka(F,Array.from(aa));Ja.forEach(function(Oa,mb){var Ua="ng-leave"+R++;Ka.set(mb,Ua);Oa.forEach(function(xb){return gi(xb,Ua)})});a.push(function(){K.forEach(function(Oa,mb){var Ua=J.get(mb);Oa.forEach(function(xb){return hi(xb,
Ua)})});Ja.forEach(function(Oa,mb){var Ua=Ka.get(mb);Oa.forEach(function(xb){return hi(xb,Ua)})});S.forEach(function(Oa){ii(c,Oa)})});var Jb=[],ub=[];for(a=this._namespaceList.length-1;0<=a;a--)stb(this._namespaceList[a],b).forEach(function(Oa){var mb=Oa.player,Ua=Oa.element;Jb.push(mb);if(c.collectedEnterElements.length){var xb=Ua.__ng_removed;if(xb&&xb.setForMove){if(xb.previousTriggersValues&&xb.previousTriggersValues.has(Oa.triggerName)){xb=xb.previousTriggersValues.get(Oa.triggerName);var Ob=
c.statesByElement.get(Oa.element);if(Ob&&Ob.has(Oa.triggerName)){var kc=Ob.get(Oa.triggerName);kc.value=xb;Ob.set(Oa.triggerName,kc)}}mb.destroy();return}}xb=!y||!c.driver.containsElement(y,Ua);Ob=Ka.get(Ua);kc=J.get(Ua);var Cc=c._buildInstruction(Oa,d,kc,Ob,xb);if(Cc.errors&&Cc.errors.length)ub.push(Cc);else if(xb)mb.onStart(function(){return Zh(Ua,Cc.fromStyles)}),mb.onDestroy(function(){return Yh(Ua,Cc.toStyles)}),e.push(mb);else if(Oa.isFallbackTransition)mb.onStart(function(){return Zh(Ua,Cc.fromStyles)}),
mb.onDestroy(function(){return Yh(Ua,Cc.toStyles)}),e.push(mb);else{var De=[];Cc.timelines.forEach(function(hd){hd.stretchStartingKeyframe=!0;c.disabledNodes.has(hd.element)||De.push(hd)});Cc.timelines=De;d.append(Ua,Cc.timelines);h.push({instruction:Cc,player:mb,element:Ua});Cc.queriedElements.forEach(function(hd){return Th(k,hd,[]).push(mb)});Cc.preStyleProps.forEach(function(hd,Qd){if(hd.size){var ri=q.get(Qd);ri||q.set(Qd,ri=new Set);hd.forEach(function(j4,mq){return ri.add(mq)})}});Cc.postStyleProps.forEach(function(hd,
Qd){var ri=t.get(Qd);ri||t.set(Qd,ri=new Set);hd.forEach(function(j4,mq){return ri.add(mq)})})}});if(ub.length){var fb=[];ub.forEach(function(){fb.push(new Lc(3505,!1))});Jb.forEach(function(Oa){return Oa.destroy()});this.reportError(fb)}var pa=new Map,xa=new Map;h.forEach(function(Oa){var mb=Oa.element;d.has(mb)&&(xa.set(mb,mb),c._beforeAnimationBuild(Oa.player.namespaceId,Oa.instruction,pa))});e.forEach(function(Oa){var mb=Oa.element;c._getPreviousPlayers(mb,!1,Oa.namespaceId,Oa.triggerName,null).forEach(function(Ua){Th(pa,
mb,[]).push(Ua);Ua.destroy()})});var Ca=S.filter(function(Oa){return Qka(Oa,q,t)}),Za=new Map;Kka(Za,this.driver,ba,t,"*").forEach(function(Oa){Qka(Oa,q,t)&&Ca.push(Oa)});var Da=new Map;K.forEach(function(Oa){Kka(Da,c.driver,new Set(Oa),q,"!")});Ca.forEach(function(Oa){var mb=Za.get(Oa),Ua=Da.get(Oa),xb,Ob;Za.set(Oa,new Map([].concat(r(Array.from(null!=(xb=null==mb?void 0:mb.entries())?xb:[])),r(Array.from(null!=(Ob=null==Ua?void 0:Ua.entries())?Ob:[])))))});var Ab=[],Qa=[],$a={};h.forEach(function(Oa){var mb=
Oa.element,Ua=Oa.player,xb=Oa.instruction;if(d.has(mb))if(x.has(mb))Ua.onDestroy(function(){return Yh(mb,xb.toStyles)}),Ua.disabled=!0,Ua.totalTime=xb.totalTime,e.push(Ua);else{var Ob=$a;if(1<xa.size){Oa=mb;for(var kc=[];Oa=Oa.parentNode;){var Cc=xa.get(Oa);if(Cc){Ob=Cc;break}kc.push(Oa)}kc.forEach(function(De){return xa.set(De,Ob)})}Oa=c._buildAnimation(Ua.namespaceId,xb,pa,f,Da,Za);wtb(Ua,Oa);Ob===$a?Ab.push(Ua):((Oa=c.playersByElement.get(Ob))&&Oa.length&&(Ua.parentPlayer=Rh(Oa)),e.push(Ua))}else Zh(mb,
xb.fromStyles),Ua.onDestroy(function(){return Yh(mb,xb.toStyles)}),Qa.push(Ua),x.has(mb)&&e.push(Ua)});Qa.forEach(function(Oa){var mb=f.get(Oa.element);mb&&mb.length&&(mb=Rh(mb),wtb(Oa,mb))});e.forEach(function(Oa){Oa.parentPlayer?xtb(Oa,Oa.parentPlayer):Oa.destroy()});for(b=0;b<S.length;b++)if(ba=S[b],a=ba.__ng_removed,hi(ba,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((F=k.get(ba))&&F.length&&a.push.apply(a,r(F)),F=this.driver.query(ba,".ng-animating",!0),ka=0;ka<F.length;ka++)(wa=k.get(F[ka]))&&
wa.length&&a.push.apply(a,r(wa));a=a.filter(function(Oa){return!Oa.destroyed});a.length?Mka(this,ba,a):ii(this,ba)}S.length=0;Ab.forEach(function(Oa){c.players.push(Oa);Oa.onDone(function(){Oa.destroy();var mb=c.players.indexOf(Oa);c.players.splice(mb,1)});Oa.play()});return Ab};var kA=function(a,b){a._flushFns.push(b)},otb=function(a,b){a._whenQuietFns.push(b)};
nA.prototype._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};
nA.prototype._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={},h=n(b.timelines),k=h.next();!k.done;f={$jscomp$loop$prop$players$1909:f.$jscomp$loop$prop$players$1909},k=h.next()){k=k.value.element;var q=k!==e;f.$jscomp$loop$prop$players$1909=Th(c,k,[]);this._getPreviousPlayers(k,q,a,d,b.toState).forEach(function(t){return function(x){var y=x._player;y.beforeDestroy&&y.beforeDestroy();x.destroy();t.$jscomp$loop$prop$players$1909.push(x)}}(f))}Zh(e,
b.fromStyles)};
nA.prototype._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,t=[],x=new Set,y=new Set,F=b.timelines.map(function(J){var R=J.element;x.add(R);var S=R.__ng_removed;if(S&&S.removedBeforeQueried)return new Qh(J.duration,J.delay);S=R!==q;var aa=Oka((c.get(R)||itb).map(function(wa){return wa._player})).filter(function(wa){return wa.element?wa.element===R:!1}),ba=e.get(R),ka=f.get(R);ba=eka(J.keyframes,ba,ka);aa=h._buildPlayer(J,ba,aa);J.subTimeline&&d&&y.add(R);S&&(J=new lA(a,
k,R),wtb(J,aa),t.push(J));return aa});t.forEach(function(J){Th(h.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var R=h.playersByQueriedElement,S=J.element,aa=R.get(S);if(aa){if(aa.length){var ba=aa.indexOf(J);aa.splice(ba,1)}0==aa.length&&R.delete(S)}return aa})});x.forEach(function(J){return gi(J,"ng-animating")});var K=Rh(F);K.onDestroy(function(){x.forEach(function(J){return hi(J,"ng-animating")});Yh(q,b.toStyles)});y.forEach(function(J){Th(d,J,[]).push(K)});return K};
nA.prototype._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Qh(a.duration,a.delay)};
var lA=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Qh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.disabled=this.markedForDestroy=this.destroyed=!1;this.queued=!0;this.totalTime=0},wtb=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return gka(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},xtb=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=lA.prototype;g._queueEvent=function(a,b){Th(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 oA=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new nA(a,b,c);this._timelineEngine=new htb(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=oA.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new Ssb(this._driver)).build(e,c,[]);if(c.length)throw new Lc(3404,!1);c=new etb(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.disableAnimations=function(a,b){ttb(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){"@"==c.charAt(0)?(c=n(ika(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=n(ika(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)};ni.Object.defineProperties(oA.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}});
var ji=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=ytb.get(a);d||ytb.set(a,d=new Map);this._initialStyles=d};ji.prototype.start=function(){1>this._state&&(this._startStyles&&Yh(this._element,this._startStyles,this._initialStyles),this._state=1)};ji.prototype.finish=function(){this.start();2>this._state&&(Yh(this._element,this._initialStyles),this._endStyles&&(Yh(this._element,this._endStyles),this._endStyles=null),this._state=1)};
ji.prototype.destroy=function(){this.finish();3>this._state&&(ytb.delete(this._element),this._startStyles&&(Zh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zh(this._element,this._endStyles),this._endStyles=null),Yh(this._element,this._initialStyles),this._state=3)};var ytb=new WeakMap;
var pA=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=pA.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(){return this.domPlayer.currentTime/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};ni.Object.defineProperties(pA.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});
var ztb=function(){};g=ztb.prototype;g.containsElement=function(a,b){return Wz(a,b)};g.getParentElement=function(a){return kka(a)};g.query=function(a,b,c){return Rsb(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(t){return t instanceof pA});0!==c&&0!==d||e.forEach(function(t){t.currentSnapshot.forEach(function(x,y){return k.set(y,x)})});var q=nka(b).map(function(t){return Xh(t)});q=tka(a,q,k);b=Ska(a,q);return new pA(a,q,h,b)};
var qA=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};X(qA,Osb);qA.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 Atb(b,this._renderer)};qA.\u0275fac=function(a){return new (a||qA)(p(sw),p(li))};qA.\u0275prov=Hc({token:qA,factory:qA.\u0275fac});
var Atb=function(a,b){this._id=a;this._renderer=b};X(Atb,Psb);Atb.prototype.create=function(a,b){return new Btb(this._id,a,b||{},this._renderer)};var Btb=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=Btb.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,Uc.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 rA=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;this.promise=Promise.resolve(0);b.onRemovalComplete=function(d,e){var f=null==e?void 0:e.parentNode(d);f&&e.removeChild(f,d)}};
rA.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 sA("",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 tA(this,f,d,this.engine)};
rA.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};rA.prototype._scheduleCountTask=function(){var a=this;this.promise.then(function(){a._microtaskId++})};
var Ctb=function(a,b,c,d){0<=b&&b<a._microtaskId?a._zone.run(function(){return c(d)}):(0==a._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(e){var f=n(e);e=f.next().value;f=f.next().value;e(f)});a._animationCallbacksBuffer=[]})}),a._animationCallbacksBuffer.push([c,d]))};
rA.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()};rA.\u0275fac=function(a){return new (a||rA)(p(sw),p(oA),p(Mf))};rA.\u0275prov=Hc({token:rA,factory:rA.\u0275fac});
var sA=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d;this.destroyNode=this.delegate.destroyNode?function(e){return b.destroyNode(e)}:null};g=sA.prototype;g.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate);this.delegate.destroy();var a;null==(a=this._onDestroy)||a.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,c){this.engine._transitionEngine.removeNode(this.namespaceId,b,c||!1,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)};ni.Object.defineProperties(sA.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var tA=function(a,b,c,d,e){sA.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};X(tA,sA);tA.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)};
tA.prototype.listen=function(a,b,c){var d=this;if("@"==b.charAt(0)){a=Tka(a);b=b.slice(1);var e="";"@"!=b.charAt(0)&&(e=n(Uka(b)),b=e.next().value,e=e.next().value);return this.engine.listen(this.namespaceId,a,b,e,function(f){Ctb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};
var uA=function(a,b,c){oA.call(this,a.body,b,c)};X(uA,oA);uA.prototype.ngOnDestroy=function(){this.flush()};uA.\u0275fac=function(a){return new (a||uA)(p(li),p(btb),p(Zsb),p(Sx))};uA.\u0275prov=Hc({token:uA,factory:uA.\u0275fac});var Dtb=[{provide:Osb,useClass:qA},{provide:Zsb,useFactory:function(){return new atb}},{provide:oA,useClass:uA},{provide:sw,useFactory:function(a,b,c){return new rA(a,b,c)},deps:[Lz,oA,Mf]}],Etb=[{provide:btb,useFactory:function(){return new ztb}},{provide:Ew,useValue:"BrowserAnimations"}].concat(r(Dtb));
[{provide:btb,useClass:hA},{provide:Ew,useValue:"NoopAnimations"}].concat(r(Dtb));
var vA=function(){};vA.\u0275fac=function(a){return new (a||vA)};vA.\u0275mod=Yc({type:vA});vA.\u0275inj=Ic({providers:Etb,imports:[Vz]});
var Ftb=new Set,wA,xA=function(a){this._platform=a;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Vka};xA.prototype.matchMedia=function(a){if((this._platform.WEBKIT||this._platform.BLINK)&&!Ftb.has(a))try{wA||(wA=document.createElement("style"),wA.setAttribute("type","text/css"),document.head.appendChild(wA)),wA.sheet&&(wA.sheet.insertRule("@media "+a+" {body{ }}",0),Ftb.add(a))}catch(b){console.error(b)}return this._matchMedia(a)};
xA.\u0275fac=function(a){return new (a||xA)(p(hz))};xA.\u0275prov=Hc({token:xA,factory:xA.\u0275fac,providedIn:"root"});
var yA=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new W.Subject};yA.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
yA.prototype.observe=function(a){var b=this;a=Wka(qh(a)).map(function(c){return b._registerQuery(c).observable});a=(0,W.combineLatest)(a);a=(0,W.concat)(a.pipe(sf()),a.pipe(Bf(1),of(0)));return a.pipe(C(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}))};
yA.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 W.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(Cf(c),C(function(e){return{query:a,matches:e.matches}}),Ef(this._destroySubject)),mql:c};this._queries.set(a,d);return d};yA.\u0275fac=function(a){return new (a||yA)(p(xA),p(Mf))};
yA.\u0275prov=Hc({token:yA,factory:yA.\u0275fac,providedIn:"root"});
var zA=function(a,b){var c=this;this._platform=a;this._document=b;this._breakpointSubscription=Rc(yA).observe("(forced-colors: active)").subscribe(function(){c._hasCheckedHighContrastMode&&(c._hasCheckedHighContrastMode=!1,c._applyBodyHighContrastModeCssClasses())})},Gtb=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};zA.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
zA.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=Gtb(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")}};
zA.\u0275fac=function(a){return new (a||zA)(p(hz),p(li))};zA.\u0275prov=Hc({token:zA,factory:zA.\u0275fac,providedIn:"root"});
var Htb=new Md("liveAnnouncerElement",{providedIn:"root",factory:Xka}),Itb=new Md("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
var AA=function(){};AA.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};AA.\u0275fac=function(a){return new (a||AA)};AA.\u0275prov=Hc({token:AA,factory:AA.\u0275fac,providedIn:"root"});var BA=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=BA.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=th(a);return new W.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 W.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)}};BA.\u0275fac=function(a){return new (a||BA)(p(AA))};BA.\u0275prov=Hc({token:BA,factory:BA.\u0275fac,providedIn:"root"});
var CA=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new sx;this._disabled=!1;this._currentSubscription=null};CA.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};CA.prototype.ngOnDestroy=function(){this._unsubscribe()};
CA.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(of(a.debounce)):b).subscribe(a.event)})};CA.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
ni.Object.defineProperties(CA.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=rh(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=uh(a);this._subscribe()}}});CA.\u0275fac=function(a){return new (a||CA)(B(BA),B(Rd),B(Mf))};
CA.\u0275dir=u({type:CA,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var DA=function(){};DA.\u0275fac=function(a){return new (a||DA)};DA.\u0275mod=Yc({type:DA});DA.\u0275inj=Ic({providers:[AA]});
var Jtb=0,EA=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};g=EA.prototype;
g.announce=function(a){var b=Uc.apply(1,arguments),c=this,d=this._defaultOptions;if(1===b.length&&"number"===typeof b[0])var e=b[0];else{b=n(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-"+Jtb++;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)}};EA.\u0275fac=function(a){return new (a||EA)(p(Htb,8),p(Mf),p(li),p(Itb,8))};EA.\u0275prov=Hc({token:EA,factory:EA.\u0275fac,providedIn:"root"});
var FA=function(a){a._applyBodyHighContrastModeCssClasses()};FA.\u0275fac=function(a){return new (a||FA)(p(zA))};FA.\u0275mod=Yc({type:FA});FA.\u0275inj=Ic({imports:[DA]});
var ala=0,GA=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+ala++;this._document=a;this._id=Rc(jqb)+"-"+ala++},HA=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=$ka(c,d);"string"!==typeof c?(bla(c,a._id),a._messageRegistry.set(e,{messageElement:c,referenceCount:0})):a._messageRegistry.has(e)||a._createMessageElement(c,d);a._isElementDescribedByMessage(b,e)||a._addMessageReference(b,e)}},IA=function(a,b,c,d){if(c&&a._isElementNode(b)){d=$ka(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=GA.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");bla(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set($ka(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=ki(a).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);Yka(a,b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Zka(a,b.messageElement.id);a.removeAttribute("cdk-describedby-host")};
g._isElementDescribedByMessage=function(a,b){a=ki(a);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};GA.\u0275fac=function(a){return new (a||GA)(p(li),p(hz))};
GA.\u0275prov=Hc({token:GA,factory:GA.\u0275fac,providedIn:"root"});
var JA=function(a,b,c,d,e,f,h){lz.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};X(JA,lz);JA.prototype.destroy=function(){this._focusTrapManager.deregister(this);lz.prototype.destroy.call(this)};JA.prototype._enable=function(){this._inertStrategy.preventFocus(this);lsb(this,!0)};JA.prototype._disable=function(){this._inertStrategy.allowFocus(this);lsb(this,!1)};
ni.Object.defineProperties(JA.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 KA=function(){this._listener=null};KA.prototype.preventFocus=function(a){var b=this;this._listener&&a._document.removeEventListener("focus",this._listener,!0);this._listener=function(c){return b._trapFocus(a,c)};a._ngZone.runOutsideAngular(function(){a._document.addEventListener("focus",b._listener,!0)})};KA.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
KA.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)&&jz(a)})};
var Ktb=new Md("FOCUS_TRAP_INERT_STRATEGY");
var LA=function(){this._focusTrapStack=[]};LA.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()};LA.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())};LA.\u0275fac=function(a){return new (a||LA)};LA.\u0275prov=Hc({token:LA,factory:LA.\u0275fac,providedIn:"root"});
var MA=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new KA};MA.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new JA(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};MA.\u0275fac=function(a){return new (a||MA)(p(iz),p(Mf),p(LA),p(li),p(Ktb,8))};MA.\u0275prov=Hc({token:MA,factory:MA.\u0275fac,providedIn:"root"});
var NA=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new W.Subject;this._typeaheadSubscription=W.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 W.Subject;this.change=new W.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))}))},Ltb=function(a,b){a._skipPredicateFn=b;return a},OA=function(a){a._wrap=!0;return a},Mtb=function(a){a._vertical=!0;return a},PA=function(a,b){a._horizontal=b;return a},Ntb=function(a){a._allowedModifierKeys=["shiftKey"];return a},QA=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(Ff(function(c){return a._pressedLetters.push(c)}),
of(b),hf(function(){return 0<a._pressedLetters.length}),C(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},RA=function(a){a._homeAndEnd=!0;return a},Otb=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};
NA.prototype.setActiveItem=function(a){var b=this._activeItem;SA(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
NA.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){TA(this);break}else return;case 35:if(this._homeAndEnd&&d){UA(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||xh(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 TA=function(a){a._setActiveItemByIndex(0,1)},UA=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};NA.prototype.setNextItemActive=function(){0>this._activeItemIndex?TA(this):this._setActiveItemByDelta(1)};
NA.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?UA(this):this._setActiveItemByDelta(-1)};var SA=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=NA.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};ni.Object.defineProperties(NA.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});
var VA=function(){NA.apply(this,arguments)};X(VA,NA);VA.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();NA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};
var WA=function(){NA.apply(this,arguments);this._origin="program"};X(WA,NA);WA.prototype.setActiveItem=function(a){NA.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};
var Ptb=new Md("cdk-dir-doc",{providedIn:"root",factory:cla});
var Qtb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,XA=function(a){this.value="ltr";this.change=new sx;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)?Qtb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};XA.prototype.ngOnDestroy=function(){this.change.complete()};
XA.\u0275fac=function(a){return new (a||XA)(p(Ptb,8))};XA.\u0275prov=Hc({token:XA,factory:XA.\u0275fac,providedIn:"root"});
var YA=function(){};YA.\u0275fac=function(a){return new (a||YA)};YA.\u0275mod=Yc({type:YA});YA.\u0275inj=Ic({});
var ZA=function(a){this._attachedOverlays=[];this._document=a};ZA.prototype.ngOnDestroy=function(){this.detach()};ZA.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};ZA.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};ZA.\u0275fac=function(a){return new (a||ZA)(p(li))};ZA.\u0275prov=Hc({token:ZA,factory:ZA.\u0275fac,providedIn:"root"});
var $A=function(a,b){ZA.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={$jscomp$loop$prop$keydownEvents$1911:f.$jscomp$loop$prop$keydownEvents$1911},h--)if(0<e[h]._keydownEvents.observers.length){f.$jscomp$loop$prop$keydownEvents$1911=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.$jscomp$loop$prop$keydownEvents$1911.next(d)}}(f)):f.$jscomp$loop$prop$keydownEvents$1911.next(d);break}}};
X($A,ZA);$A.prototype.add=function(a){var b=this;ZA.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)};$A.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
$A.\u0275fac=function(a){return new (a||$A)(p(li),p(Mf,8))};$A.\u0275prov=Hc({token:$A,factory:$A.\u0275fac,providedIn:"root"});
var aB=function(a,b,c){ZA.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=ph(e)};this._clickListener=function(e){var f=ph(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},t=k.length-1;-1<t;q={$jscomp$loop$prop$outsidePointerEvents$1913:q.$jscomp$loop$prop$outsidePointerEvents$1913},t--){var x=k[t];if(!(1>
x._outsidePointerEvents.observers.length)&&x.hasAttached()){if(x.overlayElement.contains(f)||x.overlayElement.contains(h))break;q.$jscomp$loop$prop$outsidePointerEvents$1913=x._outsidePointerEvents;d._ngZone?d._ngZone.run(function(y){return function(){return y.$jscomp$loop$prop$outsidePointerEvents$1913.next(e)}}(q)):q.$jscomp$loop$prop$outsidePointerEvents$1913.next(e)}}}};X(aB,ZA);
aB.prototype.add=function(a){var b=this;ZA.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}};
aB.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}};
aB.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)};aB.\u0275fac=function(a){return new (a||aB)(p(li),p(hz),p(Mf,8))};aB.\u0275prov=Hc({token:aB,factory:aB.\u0275fac,providedIn:"root"});
var bB=function(a,b){this._platform=b;this._document=a};bB.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var cB=function(a){a._containerElement||a._createContainer();return a._containerElement};
bB.prototype._createContainer=function(){if(this._platform.isBrowser||Nja())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");Nja()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
bB.\u0275fac=function(a){return new (a||bB)(p(li),p(hz))};bB.\u0275prov=Hc({token:bB,factory:bB.\u0275fac,providedIn:"root"});
var Rtb=Kja(),dB=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};dB.prototype.attach=function(){};
dB.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=sh(-this._previousScrollPosition.left);a.style.top=sh(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
dB.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");Rtb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);Rtb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
dB.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 eB=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()})}};eB.prototype.attach=function(a){this._overlayRef=a};
eB.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0);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)}};
eB.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};eB.prototype.detach=function(){this.disable();this._overlayRef=null};
var fB=function(){};fB.prototype.enable=function(){};fB.prototype.disable=function(){};fB.prototype.attach=function(){};
var gB=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};gB.prototype.attach=function(a){this._overlayRef=a};
gB.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;dla(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
gB.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};gB.prototype.detach=function(){this.disable();this._overlayRef=null};
var Stb=new Md("VIRTUAL_SCROLL_STRATEGY");
var hB=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new W.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};hB.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};hB.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
hB.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new W.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(mf(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,W.of)()};
hB.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var Ttb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};hB.prototype._getWindow=function(){return this._document.defaultView||window};
hB.prototype._scrollableContainsElement=function(a,b){b=th(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};hB.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,W.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
hB.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};hB.\u0275fac=function(a){return new (a||hB)(p(Mf),p(hz),p(li,8))};hB.\u0275prov=Hc({token:hB,factory:hB.\u0275fac,providedIn:"root"});
var iB=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new W.Subject;this._elementScrolled=new W.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,W.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(Ef(e._destroyed)).subscribe(f)})})};iB.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};iB.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
iB.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!=Lja()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==Lja()?a.left=a.right:1==Lja()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
iB.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;Kja()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};iB.\u0275fac=function(a){return new (a||iB)(B(Rd),B(hB),B(Mf),B(XA,8))};iB.\u0275dir=u({type:iB,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});
var Utb=function(){},Vtb=function(a,b,c,d){nrb(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})}})};Utb.prototype.detach=function(){};
var jB=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 W.Subject;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=jB.prototype;
g.select=function(){var a=this;Uc.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.deselect=function(){var a=this;Uc.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){if(this.compareWith){for(var b=n(this._selection),c=b.next();!c.done;c=b.next())if(this.compareWith(c.value,a))return!0;return!1}return this._selection.has(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){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(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)};
ni.Object.defineProperties(jB.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});
var kB=function(){this._listeners=[]};kB.prototype.notify=function(a,b){for(var c=n(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};kB.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};kB.prototype.ngOnDestroy=function(){this._listeners=[]};kB.\u0275fac=function(a){return new (a||kB)};kB.\u0275prov=Hc({token:kB,factory:kB.\u0275fac,providedIn:"root"});
var Wtb=new Md("_ViewRepeater");
var lB=function(a,b,c){var d=this;this._platform=a;this._change=new W.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=lB.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(mf(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}};lB.\u0275fac=function(a){return new (a||lB)(p(hz),p(Mf),p(li,8))};lB.\u0275prov=Hc({token:lB,factory:lB.\u0275fac,providedIn:"root"});
var Xtb=new Md("VIRTUAL_SCROLLABLE"),mB=function(a,b,c,d){iB.call(this,a,b,c,d)};X(mB,iB);mB.\u0275fac=function(a){return new (a||mB)(B(Rd),B(hB),B(Mf),B(XA,8))};mB.\u0275dir=u({type:mB,features:[Of]});
var Ytb=["contentWrapper"],Ztb="undefined"!==typeof requestAnimationFrame?W.animationFrameScheduler:W.asapScheduler,nB=function(a,b,c,d,e,f,h,k){iB.call(this,a,f,c,e);var q=this;this.elementRef=a;this._changeDetectorRef=b;this._scrollStrategy=d;this.scrollable=k;this._platform=Rc(hz);this._detachedSubject=new W.Subject;this._renderedRangeSubject=new W.Subject;this._orientation="vertical";this._appendOnly=!1;this.scrolledIndexChange=new W.Observable(function(t){return q._scrollStrategy.scrolledIndexChange.subscribe(function(x){return Promise.resolve().then(function(){return q.ngZone.run(function(){return t.next(x)})})})});
this._totalContentSize=0;this._totalContentHeight=this._totalContentWidth="";this._renderedRange={start:0,end:0};this._renderedContentOffset=this._viewportSize=this._dataLength=0;this._isChangeDetectionPending=this._renderedContentOffsetNeedsRewrite=!1;this._runAfterChangeDetection=[];this._viewportChanges=W.Subscription.EMPTY;this._viewportChanges=h.change().subscribe(function(){q._measureViewportSize();q._scrollStrategy.onDataLengthChanged()});this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),
this.scrollable=this)};X(nB,mB);nB.\u0275dir=mB.\u0275dir;g=nB.prototype;g.ngOnInit=function(){var a=this;this._platform.isBrowser&&(this.scrollable===this&&mB.prototype.ngOnInit.call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){a._measureViewportSize();a._scrollStrategy.attach(a);a.scrollable._elementScrolled.pipe(Cf(null),mf(0,Ztb)).subscribe(function(){return a._scrollStrategy.onContentScrolled()});a._markChangeDetectionNeeded()})}))};
g.ngOnDestroy=function(){this.detach();this._scrollStrategy.detach();this._renderedRangeSubject.complete();this._detachedSubject.complete();this._viewportChanges.unsubscribe();mB.prototype.ngOnDestroy.call(this)};g.attach=function(a){var b=this;this.ngZone.runOutsideAngular(function(){b._forOf=a;b._forOf.dataStream.pipe(Ef(b._detachedSubject)).subscribe(function(c){c=c.length;c!==b._dataLength&&(b._dataLength=c,b._scrollStrategy.onDataLengthChanged());b._doChangeDetection()})})};
g.detach=function(){this._forOf=null;this._detachedSubject.next()};g.getViewportSize=function(){return this._viewportSize};g._measureViewportSize=function(){var a=this.scrollable.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?a.clientWidth:a.clientHeight};g._markChangeDetectionNeeded=function(a){var b=this;a&&this._runAfterChangeDetection.push(a);this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){b._doChangeDetection()})}))};
g._doChangeDetection=function(){var a=this;this._isChangeDetectionPending=!1;this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform;this.ngZone.run(function(){return a._changeDetectorRef.markForCheck()});var b=this._runAfterChangeDetection;this._runAfterChangeDetection=[];b=n(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c()};
g._calculateSpacerSize=function(){this._totalContentHeight="horizontal"===this.orientation?"":"0px";this._totalContentWidth="horizontal"===this.orientation?"0px":""};ni.Object.defineProperties(nB.prototype,{orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation!==a&&(this._orientation=a,this._calculateSpacerSize())}},appendOnly:{configurable:!0,enumerable:!0,get:function(){return this._appendOnly},set:function(a){this._appendOnly=rh(a)}}});
nB.\u0275fac=function(a){return new (a||nB)(B(Rd),B(Xx),B(Mf),B(Stb,8),B(XA,8),B(hB),B(lB),B(Xtb,8))};
nB.\u0275cmp=u({type:nB,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(a,b){a&1&&zg(Ytb,7);if(a&2){var c;yg(c=Bg())&&(b._contentWrapper=c.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(a,b){a&2&&Zf("cdk-virtual-scroll-orientation-horizontal","horizontal"===b.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==b.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},
features:[mg([{provide:iB,useFactory:function(a,b){return a||b},deps:[[new mw,new Hpb(Xtb)],nB]}]),Of],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(a,b){a&1&&(fg(),E(0,"div",0,1),gg(2),G(),H(3,"div",2));a&2&&(A(3),Yf("width",b._totalContentWidth)("height",b._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"],
encapsulation:2,changeDetection:0});
var oB=function(){};oB.\u0275fac=function(a){return new (a||oB)};oB.\u0275mod=Yc({type:oB});oB.\u0275inj=Ic({});var pB=function(){};pB.\u0275fac=function(a){return new (a||pB)};pB.\u0275mod=Yc({type:pB});pB.\u0275inj=Ic({imports:[YA,oB,YA,oB]});
var qB=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new fB};this.close=function(f){return new eB(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new dB(e._viewportRuler,e._document)};this.reposition=function(f){return new gB(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};qB.\u0275fac=function(a){return new (a||qB)(p(hB),p(lB),p(Mf),p(li))};
qB.\u0275prov=Hc({token:qB,factory:qB.\u0275fac,providedIn:"root"});
var rB=function(a){this.scrollStrategy=new fB;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=n(b);for(var c=b.next();!c.done;c=b.next())c=c.value,void 0!==a[c]&&(this[c]=a[c])}};
var sB=function(a,b,c,d,e,f,h,k,q,t){var x=this;t=void 0===t?!1:t;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=t;this._backdropElement=null;this._backdropClick=new W.Subject;this._attachments=new W.Subject;this._detachments=new W.Subject;this._locationChanges=W.Subscription.EMPTY;this._backdropClickHandler=function(y){return x._backdropClick.next(y)};
this._backdropTransitionendHandler=function(y){x._disposeBackdrop(y.target)};this._keydownEvents=new W.Subject;this._outsidePointerEvents=new W.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=sB.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(sf()).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()){$tb(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()};
var aub=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};g=sB.prototype;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=sh(this._config.width);a.height=sh(this._config.height);a.minWidth=sh(this._config.minWidth);a.minHeight=sh(this._config.minHeight);a.maxWidth=sh(this._config.maxWidth);a.maxHeight=sh(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 $tb=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)})))};
sB.prototype._toggleClasses=function(a,b,c){b=qh(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,r(b)):a.classList.remove.apply(a.classList,r(b)))};
sB.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(Ef((0,W.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())})})};
sB.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};sB.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)};
ni.Object.defineProperties(sB.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});
var bub=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};
var gla=/([A-Za-z%]+)$/,tB=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 W.Subject;this._resizeSubscription=W.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};tB.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()})};
tB.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)cub(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=cB(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=n(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),t=this._getOverlayPoint(q,b,k),x=this._getOverlayFit(t,b,c,k);if(x.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(x,t,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:t,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=n(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)}};tB.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
tB.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&mi(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 cub=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=cB(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},dub=function(a,b){a._scrollables=b;return a},uB=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},vB=function(a,b){a._viewportMargin=b;return a},wB=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},eub=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},xB=function(a,b){a._canPush=void 0===b?!0:b;return a},yB=function(a,b){a._positionLocked=void 0===b?!0:b;return a};tB.prototype.setOrigin=function(a){this._origin=a;return this};var fub=function(a,b){a._transformOriginSelector=b;return a};g=tB.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=ila(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=hla(this._overlayRef.getConfig().minHeight);var e=hla(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=ila(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 bub(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 t=a.x;b=c.right-a.x}else t=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*t,t=a.x-t,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(t=a.x-c/2);return{top:e,left:t,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=sh(a.height);c.top=sh(a.top);c.bottom=sh(a.bottom);
c.width=sh(a.width);c.left=sh(a.left);c.right=sh(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=sh(d));e&&(c.maxWidth=sh(e))}this._lastBoundingBoxSize=a;mi(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){mi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){mi(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();mi(c,this._getExactOverlayY(b,a,h));mi(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=sh(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=sh(f.maxWidth):e&&(c.maxWidth=""));mi(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=sh(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=sh(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:ela(a,c),isOriginOutsideView:dla(a,c),isOverlayClipped:ela(b,c),isOverlayOutsideView:dla(b,c)}};g._subtractOverflows=function(a){return Uc.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&&qh(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 Rd)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}};
ni.Object.defineProperties(tB.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});
var zB=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=zB.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 AB=function(a){a.left("");a._xPosition="center";return a},gub=function(a){a.top("");a._alignItems="center";return a};
zB.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="",t="";if(d)t="flex-start";else if("center"===
f)t="center",h?q=c:k=c;else if(h)if("left"===f||"end"===f)t="flex-end",k=c;else{if("right"===f||"start"===f)t="flex-start",q=c}else if("left"===f||"start"===f)t="flex-start",k=c;else if("right"===f||"end"===f)t="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=t;b.alignItems=e?"flex-start":this._alignItems}};
zB.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 BB=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};BB.prototype.global=function(){return new zB};var CB=function(a,b){return new tB(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};BB.\u0275fac=function(a){return new (a||BB)(p(lB),p(li),p(hz),p(bB))};BB.\u0275prov=Hc({token:BB,factory:BB.\u0275fac,providedIn:"root"});
var hub=0,DB=function(a,b,c,d,e,f,h,k,q,t,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=t;this._outsideClickDispatcher=x;this._animationsModuleType=y};g=DB.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new rB(a);a.direction=a.direction||this._directionality.value;return new sB(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-"+hub++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");cB(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(Sx));return new zz(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
DB.\u0275fac=function(a){return new (a||DB)(p(qB),p(bB),p(qw),p(BB),p($A),p(dl),p(Mf),p(li),p(XA),p(cl),p(aB),p(Ew,8))};DB.\u0275prov=Hc({token:DB,factory:DB.\u0275fac,providedIn:"root"});
var iub=[{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"}],jub=new Md("cdk-connected-overlay-scroll-strategy"),EB=function(a){this.elementRef=a};EB.\u0275fac=function(a){return new (a||EB)(B(Rd))};
EB.\u0275dir=u({type:EB,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var FB=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=W.Subscription.EMPTY;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new sx;this.positionChange=new sx;this.attach=new sx;this.detach=new sx;this.overlayKeydown=new sx;this.overlayOutsideClick=new sx;this._templatePortal=new xz(b,
c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=FB.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=iub);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||xh(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 rB({direction:this._dir,positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});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 fub(yB(vB(eub(xB(wB(uB(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=CB(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof EB?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(kha(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()};
ni.Object.defineProperties(FB.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=
rh(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=rh(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=rh(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=rh(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
rh(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"}}});FB.\u0275fac=function(a){return new (a||FB)(B(DB),B(vg),B(wg),B(jub),B(XA,8))};
FB.\u0275dir=u({type:FB,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"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],
features:[ed]});var kub={provide:jub,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};
var GB=function(){};GB.\u0275fac=function(a){return new (a||GB)};GB.\u0275mod=Yc({type:GB});GB.\u0275inj=Ic({providers:[DB,kub],imports:[YA,Cz,pB,pB]});
var lub=new Md("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),HB=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};HB.prototype._checkIsEnabled=function(a){return Nja()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};HB.\u0275fac=function(a){return new (a||HB)(p(zA),p(lub,8),p(li))};HB.\u0275mod=Yc({type:HB});
HB.\u0275inj=Ic({imports:[YA,YA]});
new Md("MAT_DATE_LOCALE",{providedIn:"root",factory:lla});var IB=function(){this.localeChanges=this._localeChanges=new W.Subject},KB=function(a,b){return JB(b)&&a.isValid(b)?b:null},LB=function(a,b){return null==b||JB(b)&&a.isValid(b)?b:a.invalid()};IB.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var MB=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
IB.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!MB(this,a,b):c==d}return a==b};var NB=function(a,b,c,d){return c&&0>MB(a,b,c)?c:d&&0<MB(a,b,d)?d:b};
var OB=new Md("mat-date-formats");
var PB=function(){};PB.\u0275fac=function(a){return new (a||PB)};PB.\u0275prov=Hc({token:PB,factory:PB.\u0275fac,providedIn:"root"});
new Md("MAT_HAMMER_OPTIONS");
var QB=function(){};QB.\u0275fac=function(a){return new (a||QB)};QB.\u0275dir=u({type:QB,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var RB=function(){};RB.\u0275fac=function(a){return new (a||RB)};RB.\u0275mod=Yc({type:RB});RB.\u0275inj=Ic({imports:[HB,HB]});
var mub=new Md("MAT_OPTION_PARENT_COMPONENT");
qi(function(){});var nub=new Md("MatOptgroup");
var oub=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 pub={enterDuration:225,exitDuration:150},qub=kh({passive:!0}),rub=["mousedown","touchstart"],sub=["mouseup","mouseleave","touchend","touchcancel"],SB=function(a,b,c,d){this._target=a;this._ngZone=b;this._isPointerDown=!1;this._activeRipples=new Map;this._pointerUpEventsRegistered=!1;d.isBrowser&&(this._containerElement=th(c))},TB=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},pub,d.animation);d.centered&&
(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||nla(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 t=new oub(a,q,d,e);q.style.transform="scale3d(1, 1, 1)";t.state=0;d.persistent||(a._mostRecentTransientRipple=t);var x=null;e||!c&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var y=function(){return a._finishRippleTransition(t)},F=function(){return a._destroyRipple(t)};q.addEventListener("transitionend",y);q.addEventListener("transitioncancel",F);x={onTransitionEnd:y,onTransitionCancel:F}});a._activeRipples.set(t,x);!e&&c||a._finishRippleTransition(t);return t},
tub=function(a,b){if(2!==b.state&&3!==b.state){var c=b.element,d=Object.assign({},pub,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};SB.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||tub(a._renderer,a)})};
var uub=function(a,b){(b=th(b))&&b!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=b,a._registerEvents(rub))};g=SB.prototype;g.handleEvent=function(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._registerEvents(sub),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||tub(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=vh(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,TB(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!wh(a)){this._lastTouchStartEvent=Date.now();this._isPointerDown=!0;a=a.changedTouches;for(var b=0;b<a.length;b++)TB(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&&tub(a._renderer,a)}))};g._registerEvents=function(a){var b=this;this._ngZone.runOutsideAngular(function(){a.forEach(function(c){b._triggerElement.addEventListener(c,b,qub)})})};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this;this._triggerElement&&(rub.forEach(function(b){a._triggerElement.removeEventListener(b,a,qub)}),this._pointerUpEventsRegistered&&sub.forEach(function(b){a._triggerElement.removeEventListener(b,a,qub)}))};
var vub=new Md("mat-ripple-global-options"),UB=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 SB(this,b,a,c)};g=UB.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&&uub(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?TB(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):TB(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
ni.Object.defineProperties(UB.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}}});UB.\u0275fac=function(a){return new (a||UB)(B(Rd),B(Mf),B(hz),B(vub,8),B(Ew,8))};
UB.\u0275dir=u({type:UB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&Zf("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 VB=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1};VB.\u0275fac=function(a){return new (a||VB)(B(Ew,8))};
VB.\u0275cmp=u({type:VB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(a,b){a&2&&Zf("mat-pseudo-checkbox-indeterminate","indeterminate"===b.state)("mat-pseudo-checkbox-checked","checked"===b.state)("mat-pseudo-checkbox-disabled",b.disabled)("_mat-animation-noopable","NoopAnimations"===b._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(){},styles:['.mat-pseudo-checkbox{border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}\n'],
encapsulation:2,changeDetection:0});
var wub=0,xub=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},WB=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-"+wub++;this.onSelectionChange=new sx;this._stateChanges=new W.Subject};g=WB.prototype;g.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())};
g.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),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||xh(a)||(this._selectViaInteraction(),a.preventDefault())};g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getAriaSelected=function(){return this.selected||(this.multiple?!1:null)};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 xub(this,void 0===a?!1:a))};
ni.Object.defineProperties(WB.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=rh(a)}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return!(!this._parent||!this._parent.disableRipple)}},active:{configurable:!0,
enumerable:!0,get:function(){return this._active}},viewValue:{configurable:!0,enumerable:!0,get:function(){return(this._getHostElement().textContent||"").trim()}}});WB.\u0275fac=function(){Vd()};WB.\u0275dir=u({type:WB,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});
var XB=function(){};XB.\u0275fac=function(a){return new (a||XB)};XB.\u0275mod=Yc({type:XB});XB.\u0275inj=Ic({imports:[HB,HB]});
var YB=function(){};YB.\u0275fac=function(a){return new (a||YB)};YB.\u0275mod=Yc({type:YB});YB.\u0275inj=Ic({imports:[HB]});
var yub=[{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"]}],zub=oi(qi(pi(function(a){this._elementRef=a}))),ZB=function(a,b,c,d){var e=zub.call(this,a)||this;e._platform=b;e._ngZone=c;e._animationMode=d;e._focusMonitor=Rc(sz);e._isFab=!1;var f=a.nativeElement.classList;a=n(yub);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};X(ZB,zub);g=ZB.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)?tz(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};g._hasHostAttributes=function(){var a=this;return Uc.apply(0,arguments).some(function(b){return a._elementRef.nativeElement.hasAttribute(b)})};
g._isRippleDisabled=function(){return this.disableRipple||this.disabled};ZB.\u0275fac=function(){Vd()};ZB.\u0275dir=u({type:ZB,viewQuery:function(a,b){a&1&&zg(UB,5);if(a&2){var c;yg(c=Bg())&&(b.ripple=c.first)}},features:[Of]});
var Aub=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],$B=function(a,b,c,d){return ZB.call(this,a,b,c,d)||this};X($B,ZB);$B.\u0275dir=ZB.\u0275dir;$B.\u0275fac=function(a){return new (a||$B)(B(Rd),B(hz),B(Mf),B(Ew,8))};
$B.\u0275cmp=u({type:$B,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(a,b){a&2&&(Uf("disabled",b.disabled||null),Zf("_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:[Of],attrs:["mat-button",""],ngContentSelectors:[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])",
"*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(fg(Aub),H(0,"span",0),gg(1),E(2,"span",1),gg(3,1),G(),gg(4,2),H(5,"span",2)(6,"span",3)(7,"span",4));a&2&&(Zf("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",
b._isFab),A(6),D("matRippleDisabled",b._isRippleDisabled())("matRippleTrigger",b._elementRef.nativeElement))},dependencies:[UB],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-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 aC=function(a,b,c,d){return ZB.call(this,a,b,c,d)||this};X(aC,ZB);aC.\u0275dir=ZB.\u0275dir;aC.\u0275fac=function(a){return new (a||aC)(B(Rd),B(hz),B(Mf),B(Ew,8))};
aC.\u0275cmp=u({type:aC,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(a,b){a&2&&(Uf("disabled",b.disabled||null),Zf("_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:[Of],attrs:["mat-icon-button",""],ngContentSelectors:["*"],decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],
[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(a,b){a&1&&(fg(),H(0,"span",0),gg(1),H(2,"span",1)(3,"span",2)(4,"span",3));a&2&&(A(3),D("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",b._elementRef.nativeElement))},dependencies:[UB],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.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, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.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-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 bC=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new W.Subject;this.selection=a};bC.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};bC.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};bC.prototype._isValidDateInstance=function(a){return JB(a)&&this._adapter.isValid(a)};bC.\u0275fac=function(){Vd()};bC.\u0275prov=Hc({token:bC,factory:bC.\u0275fac});
var cC=function(a){bC.call(this,null,a)};X(cC,bC);cC.prototype.add=function(a){bC.prototype.updateSelection.call(this,a,this)};cC.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};cC.prototype.isComplete=function(){return null!=this.selection};cC.prototype.clone=function(){var a=new cC(this._adapter);a.updateSelection(this.selection,this);return a};cC.\u0275fac=function(a){return new (a||cC)(p(IB))};cC.\u0275prov=Hc({token:cC,factory:cC.\u0275fac});
var Bub={provide:bC,deps:[[new mw,new nw,bC],IB],useFactory:function(a,b){return a||new cC(b)}};new mw;new nw;
var dC=function(){this.changes=new W.Subject};dC.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};dC.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};dC.\u0275fac=function(a){return new (a||dC)};dC.\u0275prov=Hc({token:dC,factory:dC.\u0275fac,providedIn:"root"});
var Cub=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},Dub=1,eC=function(a,b){var c=this;this._elementRef=a;this._ngZone=b;this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new sx;this.previewChange=new sx;this.activeDateChange=new sx;this.dragStarted=
new sx;this.dragEnded=new sx;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=zla(d),f=e?c._getCellFromElement(e):null;e!==d.target&&(c._didDragSinceMouseDown=!0);vla(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=vla(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=zla(d))&&c._mouseupHandler({target:d})};this._id="mat-calendar-body-"+Dub++;this._startDateLabelId=this._id+"-start-date";
this._endDateLabelId=this._id+"-end-date";b.runOutsideAngular(function(){var d=a.nativeElement;d.addEventListener("mouseenter",c._enterHandler,!0);d.addEventListener("touchmove",c._touchmoveHandler,!0);d.addEventListener("focus",c._enterHandler,!0);d.addEventListener("mouseleave",c._leaveHandler,!0);d.addEventListener("blur",c._leaveHandler,!0);d.addEventListener("mousedown",c._mousedownHandler);d.addEventListener("touchstart",c._mousedownHandler);window.addEventListener("mouseup",c._mouseupHandler);
window.addEventListener("touchend",c._touchendHandler)})};g=eC.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("mouseenter",this._enterHandler,!0);a.removeEventListener("touchmove",this._touchmoveHandler,!0);a.removeEventListener("focus",this._enterHandler,!0);a.removeEventListener("mouseleave",this._leaveHandler,!0);a.removeEventListener("blur",this._leaveHandler,!0);a.removeEventListener("mousedown",this._mousedownHandler);a.removeEventListener("touchstart",this._mousedownHandler);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(sf()).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 wla(a,this.startValue,this.endValue)};g._isRangeEnd=function(a){return xla(a,this.startValue,this.endValue)};g._isInRange=function(a){return yla(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return wla(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 xla(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return yla(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};g._isPreviewStart=function(a){return wla(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return xla(a,this.previewStart,this.previewEnd)};
g._isInPreview=function(a){return yla(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=vla(a);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};
eC.\u0275fac=function(a){return new (a||eC)(B(Rd),B(Mf))};
eC.\u0275cmp=u({type:eC,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:[ed],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,qla,3,6,"tr",0),P(1,tla,3,2,"tr",1),E(2,"label",
2),Q(3),G(),E(4,"label",2),Q(5),G());a&2&&(D("ngIf",b._firstRowOffset<b.labelMinRequiredCells),A(1),D("ngForOf",b.rows),A(1),D("id",b._startDateLabelId),A(1),T(" ",b.startDateAccessibleName,"\n"),A(1),D("id",b._endDateLabelId),A(1),T(" ",b.endDateAccessibleName,"\n"))},dependencies:[ey,fy,gy],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.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;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 .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}.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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.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 Eub=new Md("MAT_DATE_RANGE_SELECTION_STRATEGY");new mw;new nw;
var fC=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=W.Subscription.EMPTY;this.activeDrag=null;this.selectedChange=new sx;this._userSelection=new sx;this.dragStarted=new sx;this.dragEnded=new sx;this.activeDateChange=new sx;this._activeDate=new Xo};g=fC.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Cf(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);MB(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=gC(this._activeDate,c?1:-1);break;case 39:this.activeDate=gC(this._activeDate,c?-1:1);break;case 38:this.activeDate=gC(this._activeDate,-7);break;case 40:this.activeDate=gC(this._activeDate,7);break;case 36:this.activeDate=gC(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=gC(this._activeDate,hC(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?iC(this._activeDate,-1):jC(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?iC(this._activeDate,1):jC(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:null==this._previewEnd||xh(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}MB(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 Xo);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+kC(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 kC(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=Fub(this._dateAdapter,"narrow"),c=Fub(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=hC(this.activeDate),b=Gub;this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){7==d&&(this._weeks.push([]),d=0);var e=kC(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 Cub(c+1,b[c],h,f,k,this._getCellCompareValue(e),
e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=MB(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=MB(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};
ni.Object.defineProperties(fC.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=KB(this._dateAdapter,LB(this._dateAdapter,a))||new Xo;this._activeDate=NB(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=KB(this._dateAdapter,LB(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}}});fC.\u0275fac=function(a){return new (a||fC)(B(Xx),B(OB,8),B(IB,8),B(XA,8),B(Eub,8))};
fC.\u0275cmp=u({type:fC,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&zg(eC,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:[ed],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&&(E(0,"table",0)(1,"thead",1)(2,"tr"),P(3,Ala,5,2,"th",2),G(),E(4,"tr"),H(5,"th",3),G()(),E(6,"tbody",4),M("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)}),G()());a&2&&(A(3),D("ngForOf",b._weekdays),A(3),D("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:[fy,eC],encapsulation:2,changeDetection:0});
var lC=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=W.Subscription.EMPTY;this.selectedChange=new sx;this.yearSelected=new sx;this.activeDateChange=new sx;this._activeDate=new Xo};g=lC.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Cf(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(new Xo);var b=this._dateAdapter.getYear(this._activeDate)-ui(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=kC(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);MB(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=iC(this._activeDate,c?1:-1);break;case 39:this.activeDate=iC(this._activeDate,c?-1:1);break;case 38:this.activeDate=iC(this._activeDate,-4);break;case 40:this.activeDate=iC(this._activeDate,4);break;case 36:this.activeDate=iC(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=iC(this._activeDate,24-ui(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=iC(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=iC(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}MB(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 ui(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=kC(a,b,1);c=hC(c);return kC(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};g._createCellForYear=function(a){var b=kC(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Cub(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=kC(a,0,1);this._dateAdapter.getYear(b)==a;b=gC(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))};
ni.Object.defineProperties(lC.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=KB(this._dateAdapter,LB(this._dateAdapter,a))||new Xo;this._activeDate=NB(this._dateAdapter,a,this.minDate,this.maxDate);Cla(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=KB(this._dateAdapter,LB(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}}});lC.\u0275fac=function(a){return new (a||lC)(B(Xx),B(IB,8),B(XA,8))};
lC.\u0275cmp=u({type:lC,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&zg(eC,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&&(E(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),E(4,"tbody",3),M("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)}),G()());a&2&&(A(4),D("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[eC],encapsulation:2,changeDetection:0});
var mC=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=W.Subscription.EMPTY;this.selectedChange=new sx;this.monthSelected=new sx;this.activeDateChange=new sx;this._activeDate=new Xo};g=mC.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Cf(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=kC(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);MB(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=jC(this._activeDate,c?1:-1);break;case 39:this.activeDate=jC(this._activeDate,c?-1:1);break;case 38:this.activeDate=jC(this._activeDate,-4);break;case 40:this.activeDate=jC(this._activeDate,4);break;case 36:this.activeDate=jC(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=jC(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=iC(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=iC(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}MB(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 Xo);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=kC(this._dateAdapter.getYear(this.activeDate),a,1);b=hC(b);return kC(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=kC(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 Cub(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=kC(b,a,1);this._dateAdapter.getMonth(b)==a;b=gC(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)};
ni.Object.defineProperties(mC.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=KB(this._dateAdapter,LB(this._dateAdapter,a))||new Xo;this._activeDate=NB(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=KB(this._dateAdapter,
LB(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}}});mC.\u0275fac=function(a){return new (a||mC)(B(Xx),B(OB,8),B(IB,8),B(XA,8))};
mC.\u0275cmp=u({type:mC,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&zg(eC,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&&(E(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),E(4,"tbody",3),M("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)}),G()());a&2&&(A(4),D("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:[eC],encapsulation:2,changeDetection:0});
var Hub=1,nC=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._id="mat-calendar-header-"+Hub++;this._periodButtonLabelId=this._id+"-period-label";this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
nC.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):Cla(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
nC.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+kC(a,0,1).getFullYear();b=""+kC(b,0,1).getFullYear();return[a,b]};
ni.Object.defineProperties(nC.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,r(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,r(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]}}});nC.\u0275fac=function(a){return new (a||nC)(B(dC),B(Fc(function(){return oC})),B(IB,8),B(OB,8),B(Xx))};
nC.\u0275cmp=u({type:nC,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&&(fg(),E(0,"div",0)(1,"div",1)(2,"button",2),M("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),E(3,"span",3),Q(4),G(),qd(),E(5,"svg",4),H(6,"polygon",5),G()(),rd(),H(7,"div",6),gg(8),E(9,"button",7),M("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?
jC(b.calendar.activeDate,-1):iC(b.calendar.activeDate,"year"==b.calendar.currentView?-1:-24)}),G(),E(10,"button",8),M("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?jC(b.calendar.activeDate,1):iC(b.calendar.activeDate,"year"==b.calendar.currentView?1:24)}),G()()(),E(11,"label",9),Q(12),G());a&2&&(A(2),Uf("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),A(2),kg(b.periodButtonText),A(1),Zf("mat-calendar-invert","month"!==b.calendar.currentView),
A(4),D("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),Uf("aria-label",b.prevButtonLabel),A(1),D("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),Uf("aria-label",b.nextButtonLabel),A(1),D("id",b._periodButtonLabelId),A(1),kg(b.periodButtonDescription))},dependencies:[$B,aC],encapsulation:2,changeDetection:0});
var oC=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 sx;this.yearSelected=new sx;this.monthSelected=new sx;this.viewChanged=new sx(!0);this._userSelection=new sx;this._userDragDrop=new sx;this._activeDrag=null;this.stateChanges=new W.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=oC.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new wz(this.headerComponent||nC);this.activeDate=this.startAt||new Xo;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};
ni.Object.defineProperties(oC.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=KB(this._dateAdapter,LB(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=KB(this._dateAdapter,LB(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=KB(this._dateAdapter,LB(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=NB(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)}}});oC.\u0275fac=function(a){return new (a||oC)(B(dC),B(IB,8),B(OB,8),B(Xx))};
oC.\u0275cmp=u({type:oC,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(zg(fC,5),zg(mC,5),zg(lC,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:[mg([Bub]),ed],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,Dla,
0,0,"ng-template",0),E(1,"div",1),P(2,Ela,1,11,"mat-month-view",2),P(3,Fla,1,6,"mat-year-view",3),P(4,Gla,1,6,"mat-multi-year-view",4),G());a&2&&(D("cdkPortalOutlet",b._calendarHeaderPortal),A(1),D("ngSwitch",b.currentView),A(1),D("ngSwitchCase","month"),A(1),D("ngSwitchCase","year"),A(1),D("ngSwitchCase","multi-year"))},dependencies:[iy,jy,uz,Bz,fC,mC,lC],styles:['.mat-calendar{display:block}.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}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.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-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}.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}.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 Iub=["mat-button",""],Jub=["*"],Kub=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"},
Lub="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),Mub=oi(qi(pi(function(a){this._elementRef=a}))),pC=function(a,b,c){var d=Mub.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=n(Lub),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};X(pC,Mub);g=pC.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?tz(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 Uc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};pC.\u0275fac=function(a){return new (a||pC)(B(Rd),B(sz),B(Ew,8))};
pC.\u0275cmp=u({type:pC,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(UB,5);if(a&2){var c;yg(c=Bg())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(a,b){a&2&&(Uf("disabled",b.disabled||null),Zf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Of],attrs:Iub,ngContentSelectors:Jub,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&&(fg(),E(0,"span",0),gg(1),G(),H(2,"span",1)(3,"span",2));a&2&&(A(2),Zf("mat-button-ripple-round",b.isRoundButton||b.isIconButton),D("matRippleDisabled",
b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[UB],styles:[Kub()],encapsulation:2,changeDetection:0});var qC=function(a,b,c,d){var e=pC.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};X(qC,pC);
qC.prototype.ngAfterViewInit=function(){var a=this;pC.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};qC.prototype.ngOnDestroy=function(){pC.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
qC.\u0275fac=function(a){return new (a||qC)(B(sz),B(Rd),B(Ew,8),B(Mf,8))};
qC.\u0275cmp=u({type:qC,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:7,hostBindings:function(a,b){a&2&&(Uf("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString()),Zf("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Of],attrs:Iub,ngContentSelectors:Jub,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&&(fg(),E(0,"span",0),gg(1),G(),H(2,"span",1)(3,"span",2));a&2&&(A(2),Zf("mat-button-ripple-round",b.isRoundButton||b.isIconButton),
D("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[UB],styles:[Kub()],encapsulation:2,changeDetection:0});
var rC=function(a,b,c,d){return WB.call(this,a,b,c,d)||this};X(rC,WB);rC.\u0275fac=function(a){return new (a||rC)(B(Rd),B(Xx),B(mub,8),B(nub,8))};
rC.\u0275cmp=u({type:rC,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(a,b){a&1&&M("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(dg("id",b.id),Uf("tabindex",b._getTabIndex())("aria-selected",b._getAriaSelected())("aria-disabled",b.disabled.toString()),Zf("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[Of],ngContentSelectors:["*"],decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-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&&(fg(),P(0,Hla,1,2,"mat-pseudo-checkbox",0),E(1,"span",1),gg(2),G(),P(3,Ila,2,1,"span",
2),H(4,"div",3));a&2&&(D("ngIf",b.multiple),A(3),D("ngIf",b.group&&b.group._inert),A(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[UB,gy,VB],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 sC=function(){};sC.\u0275fac=function(a){return new (a||sC)};sC.\u0275mod=Yc({type:sC});sC.\u0275inj=Ic({imports:[XB,vy,HB,YB]});
var tC={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Nub=Jh("dialogContainer",[Mh("void, exit",Lh({opacity:0,transform:"scale(0.7)"})),Mh("enter",Lh({transform:"none"})),Nh("* => enter",{type:3,steps:[Kh("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Lh({transform:"none",opacity:1})),Ph("@*",Oh())],options:null},tC),Nh("* => void, * => exit",{type:3,steps:[Kh("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Lh({opacity:0})),Ph("@*",Oh())],options:null},
tC)]);
var uC=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 vC=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.closeOnDestroy=this.closeOnNavigation=this.restoreFocus=!0};
var wC=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._ariaLabelledBy=this._config.ariaLabelledBy||null;this._document=c};X(wC,yz);g=wC.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":mz(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=oh();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(tz(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=oh();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=oh())};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};wC.\u0275fac=function(a){return new (a||wC)(B(Rd),B(nz),B(li,8),B(vC),B(iz),B(Mf),B(sB),B(sz))};
wC.\u0275cmp=u({type:wC,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&zg(Bz,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&&Uf("id",b._config.id||null)("role",b._config.role)("aria-modal",b._config.ariaModal)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||null)},features:[Of],decls:1,
vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&P(0,Jla,0,0,"ng-template",0)},dependencies:[Bz],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});
var Oub=new Md("DialogScrollStrategy"),Pub=new Md("DialogData"),Qub=new Md("DefaultDialogConfig"),Rub={provide:Oub,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}};
var xC=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new W.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||xh(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})})};
g=xC.prototype;g.close=function(a,b){if(this.containerInstance){var c=this.closed;this.containerInstance._closeInteractionType=(null==b?void 0:b.focusOrigin)||"program";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 Sub=0,yC=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 W.Subject;this._afterOpenedAtThisLevel=new W.Subject;this._ariaHiddenElements=new Map;(0,W.defer)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Cf(void 0))});this._scrollStrategy=f};g=yC.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new vC,b);b.id=b.id||"cdk-dialog-"+Sub++;b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new xC(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.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};g.ngOnDestroy=function(){var a=this;Kla(this._openDialogsAtThisLevel,function(b){!1===b.config.closeOnDestroy&&a._removeOpenDialog(b,!1)});Kla(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new rB({positionStrategy:a.positionStrategy||gub(AB(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:vC,useValue:c},{provide:xC,useValue:b},{provide:sB,useValue:a}];c.container?"function"===typeof c.container?d=c.container:(d=c.container.type,b.push.apply(b,r(c.container.providers(c)))):d=wC;c=new wz(d,c.viewContainerRef,Jf({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 xz(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new wz(a,d.viewContainerRef,e,d.componentFactoryResolver)),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:Pub,useValue:a.data},{provide:xC,useValue:b}];a.providers&&("function"===typeof a.providers?e.push.apply(e,r(a.providers(b,a,c))):e.push.apply(e,r(a.providers)));!a.direction||f&&f.get(XA,null,{optional:!0})||e.push({provide:XA,useValue:{value:a.direction,change:(0,W.of)()}});return Jf({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=cB(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};
ni.Object.defineProperties(yC.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}}});yC.\u0275fac=function(a){return new (a||yC)(p(DB),p(dl),p(Qub,8),p(yC,12),p(bB),p(Oub))};yC.\u0275prov=Hc({token:yC,factory:yC.\u0275fac});
var zC=function(){};zC.\u0275fac=function(a){return new (a||zC)};zC.\u0275mod=Yc({type:zC});zC.\u0275inj=Ic({providers:[yC,Rub],imports:[GB,Cz,FA,Cz]});
var AC=function(a,b,c,d,e,f,h,k){wC.call(this,a,b,c,d,e,f,h,k);this._animationStateChanged=new sx};X(AC,wC);AC.prototype._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};AC.prototype._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};AC.\u0275fac=function(a){return new (a||AC)(B(Rd),B(nz),B(li,8),B(uC),B(iz),B(Mf),B(sB),B(sz))};
AC.\u0275cmp=u({type:AC,selectors:[["ng-component"]],features:[Of],decls:0,vars:0,template:function(){},encapsulation:2});
var BC=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new W.Subject;this._beforeClosed=new W.Subject;this._state=0;this.disableClose=b.disableClose;this.id=a.id;c._animationStateChanged.pipe(hf(function(e){return"opened"===e.state}),sf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(hf(function(e){return"closed"===e.state}),sf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});
a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});(0,W.merge)(this.backdropClick(),this.keydownEvents().pipe(hf(function(e){return 27===e.keyCode&&!d.disableClose&&!xh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType="keydown"===e.type?"keyboard":"mouse",d.close(void 0))})};
BC.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(hf(function(c){return"closing"===c.state}),sf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();$tb(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};BC.prototype.afterOpened=function(){return this._afterOpened};var CC=function(a){return a._ref.closed};
g=BC.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):AB(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):gub(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 Md("MatMdcDialogData");new Md("mat-mdc-dialog-default-options");new Md("mat-mdc-dialog-scroll-strategy");
var Tub=0,DC=function(a,b,c,d,e,f,h,k,q){var t=this;this._overlay=a;this._defaultOptions=c;this._parentDialog=d;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new W.Subject;this._afterOpenedAtThisLevel=new W.Subject;this._idPrefix="mat-dialog-";this.dialogConfigClass=uC;(0,W.defer)(function(){return t.openDialogs.length?t._getAfterAllClosed():t._getAfterAllClosed().pipe(Cf(void 0))});this._scrollStrategy=
f;this._dialog=b.get(yC)};g=DC.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 uC,b);b.id=b.id||"mat-dialog-"+Tub++;b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();a=this._dialog.open(a,Object.assign({},b,{positionStrategy:gub(AB(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:c.dialogConfigClass,useValue:b},{provide:vC,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.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);CC(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.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()};
ni.Object.defineProperties(DC.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}}});DC.\u0275fac=function(){Vd()};DC.\u0275prov=Hc({token:DC,factory:DC.\u0275fac});
var EC=function(){BC.apply(this,arguments)};X(EC,BC);
var FC=function(){uC.apply(this,arguments);this.enterAnimationDuration=tC.params.enterAnimationDuration;this.exitAnimationDuration=tC.params.exitAnimationDuration};X(FC,uC);
var GC=function(a,b,c,d,e,f,h,k,q){AC.call(this,a,b,c,d,e,f,h,q);this._changeDetectorRef=k;this._state="enter"};X(GC,AC);GC.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})};
GC.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})};GC.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
GC.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||"150ms",exitAnimationDuration:this._config.exitAnimationDuration||"75ms"}}};GC.\u0275fac=function(a){return new (a||GC)(B(Rd),B(nz),B(li,8),B(FC),B(iz),B(Mf),B(sB),B(Xx),B(sz))};
GC.\u0275cmp=u({type:GC,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(a,b){a&1&&Xha("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(dg("id",b._config.id),Uf("aria-modal",b._config.ariaModal)("role",b._config.role)("aria-labelledby",b._config.ariaLabel?null:b._ariaLabelledBy)("aria-label",b._config.ariaLabel)("aria-describedby",b._config.ariaDescribedBy||
null),eg("@dialogContainer",b._getAnimationState()))},features:[Of],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&P(0,Lla,0,0,"ng-template",0)},dependencies:[Bz],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:[Nub]}});
var HC=new Md("MatDialogData"),Uub=new Md("mat-dialog-default-options"),Vub=new Md("mat-dialog-scroll-strategy"),Wub={provide:Vub,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},IC=function(a,b,c,d,e,f,h,k){DC.call(this,a,b,d,f,h,e,EC,GC,HC,k);this.dialogConfigClass=FC};X(IC,DC);IC.\u0275fac=function(a){return new (a||IC)(p(DB),p(dl),p(cl,8),p(Uub,8),p(Vub),p(IC,12),p(bB),p(Ew,8))};IC.\u0275prov=Hc({token:IC,factory:IC.\u0275fac});
var Xub=0,JC=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};JC.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Mla(this._elementRef,this._dialog.openDialogs))};JC.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};JC.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=0===a.screenX&&0===a.screenY?"keyboard":"mouse";b.close(c)};
JC.\u0275fac=function(a){return new (a||JC)(B(EC,8),B(Rd),B(IC))};JC.\u0275dir=u({type:JC,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&M("click",function(c){return b._onButtonClick(c)});a&2&&Uf("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:[ed]});
var KC=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+Xub++};KC.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=Mla(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){var b=a._dialogRef._containerInstance;b&&!b._ariaLabelledBy&&(b._ariaLabelledBy=a.id)})};KC.\u0275fac=function(a){return new (a||KC)(B(EC,8),B(Rd),B(IC))};
KC.\u0275dir=u({type:KC,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&dg("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var LC=function(){};LC.\u0275fac=function(a){return new (a||LC)};LC.\u0275dir=u({type:LC,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var MC=function(){this.align="start"};
MC.\u0275fac=function(a){return new (a||MC)};MC.\u0275dir=u({type:MC,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&Zf("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});
var NC=function(){};NC.\u0275fac=function(a){return new (a||NC)};NC.\u0275mod=Yc({type:NC});NC.\u0275inj=Ic({providers:[IC,Wub],imports:[zC,GB,Cz,HB,HB]});
var Yub=kh({passive:!0}),OC=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
OC.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return W.EMPTY;var c=th(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new W.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,Yub);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,Yub)}});return d};
OC.prototype.stopMonitoring=function(a){a=th(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))};OC.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};OC.\u0275fac=function(a){return new (a||OC)(p(hz),p(Mf))};OC.\u0275prov=Hc({token:OC,factory:OC.\u0275fac,providedIn:"root"});
var PC=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new W.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=PC.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,QC(this),this._ngZone.runOutsideAngular(function(){(0,W.fromEvent)(a._getWindow(),"resize").pipe(mf(16),Ef(a._destroyed)).subscribe(function(){return QC(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,QC(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&&QC(this)};
var QC=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=PC.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)};
ni.Object.defineProperties(PC.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=uh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=uh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=rh(a);this._enabled!==a&&((this._enabled=a)?QC(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()}}});PC.\u0275fac=function(a){return new (a||PC)(B(Rd),B(hz),B(Mf),B(li,8))};
PC.\u0275dir=u({type:PC,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&M("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});
var RC=function(){};RC.\u0275fac=function(a){return new (a||RC)};RC.\u0275mod=Yc({type:RC});RC.\u0275inj=Ic({});
var Zub=new Md("MatError");
var $ub=new Md("MatPrefix");
var avb=new Md("MatSuffix");
var bvb=Jh("transitionMessages",[Mh("enter",Lh({opacity:1,transform:"translateY(0%)"})),Nh("void => enter",[Lh({opacity:0,transform:"translateY(-5px)"}),Kh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var SC=function(){};SC.\u0275fac=function(a){return new (a||SC)};SC.\u0275dir=u({type:SC});
var TC=new Md("MatFormField");new Md("MAT_FORM_FIELD_DEFAULT_OPTIONS");
var cvb=0,UC=function(a,b){this.id="mat-error-"+cvb++;a||b.nativeElement.setAttribute("aria-live","polite")};UC.\u0275fac=function(a){return new (a||UC)(Ad("aria-live"),B(Rd))};UC.\u0275dir=u({type:UC,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&Uf("id",b.id)},inputs:{id:"id"},features:[mg([{provide:Zub,useExisting:UC}])]});
var dvb=new Md("MatHint");
var VC=function(){};VC.\u0275fac=function(a){return new (a||VC)};VC.\u0275dir=u({type:VC,selectors:[["mat-label"]]});
var WC=function(){};WC.\u0275fac=function(a){return new (a||WC)};WC.\u0275dir=u({type:WC,selectors:[["mat-placeholder"]]});
var evb=["connectionContainer"],fvb=["inputContainer"],gvb=["label"],hvb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ivb=0,jvb=oi(function(a){this._elementRef=a},"primary"),kvb=new Md("MAT_FORM_FIELD_DEFAULT_OPTIONS"),XC=function(a,b,c,d,e,f,h){a=jvb.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 W.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+ivb++;a._labelId="mat-form-field-label-"+ivb++;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};X(XC,jvb);g=XC.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(Cf(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(Ef(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(Ef(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
vi(a)})});(0,W.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(Cf(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(Cf(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(Ef(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return vi(a)})}):vi(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&vi(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,W.fromEvent)(this._label.nativeElement,"transitionend").pipe(sf()).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,r(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,r(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};g._validateControlChild=function(){};
var vi=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"};XC.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};XC.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
ni.Object.defineProperties(XC.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=rh(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}}});XC.\u0275fac=function(a){return new (a||XC)(B(Rd),B(Xx),B(XA,8),B(kvb,8),B(hz),B(Mf),B(Ew,8))};
XC.\u0275cmp=u({type:XC,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(Ag(c,SC,5),Ag(c,SC,7),Ag(c,VC,5),Ag(c,VC,7),Ag(c,WC,5),Ag(c,Zub,5),Ag(c,dvb,5),Ag(c,$ub,5),Ag(c,avb,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(evb,7),zg(fvb,5),zg(gvb,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:[1,"mat-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&Zf("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:[mg([{provide:TC,useExisting:XC}]),Of],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&&(fg(hvb),E(0,"div",0)(1,"div",
1,2),M("click",function(c){return b._control.onContainerClick&&b._control.onContainerClick(c)}),P(3,Nla,9,0,"ng-container",3),P(4,Ola,2,1,"div",4),E(5,"div",5,6),gg(7),E(8,"span",7),P(9,Sla,5,16,"label",8),G()(),P(10,Tla,2,0,"div",9),G(),P(11,Ula,2,4,"div",10),E(12,"div",11),P(13,Vla,2,1,"div",12),P(14,Xla,5,2,"div",13),G()());a&2&&(A(3),D("ngIf","outline"==b.appearance),A(1),D("ngIf",b._prefixChildren.length),A(5),D("ngIf",b._hasFloatingLabel()),A(1),D("ngIf",b._suffixChildren.length),A(1),D("ngIf",
"outline"!=b.appearance),A(1),D("ngSwitch",b._getDisplayedMessages()),A(1),D("ngSwitchCase","error"),A(1),D("ngSwitchCase","hint"))},dependencies:[gy,iy,jy,CA],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:[bvb]},changeDetection:0});
var YC=function(){};YC.\u0275fac=function(a){return new (a||YC)};YC.\u0275mod=Yc({type:YC});YC.\u0275inj=Ic({imports:[vy,HB,DA,HB]});
var lvb=new Md("MAT_INPUT_VALUE_ACCESSOR");
var mvb="button checkbox file hidden image radio range reset submit".split(" "),nvb=0,ovb=jla(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new W.Subject}),ZC=function(a,b,c,d,e,f,h,k,q,t){var x=ovb.call(this,f,d,e,c)||this;x._elementRef=a;x._platform=b;x._autofillMonitor=k;x._formField=t;x._uid="mat-input-"+nvb++;x.focused=!1;x.stateChanges=new W.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(F){return Ija().has(F)});x._iOSKeyupListener=function(F){F=F.target;F.value||0!==F.selectionStart||0!==F.selectionEnd||(F.setSelectionRange(1,1),F.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=!!t;x._isNativeSelect&&(x.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return x};X(ZC,ovb);g=ZC.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(){mvb.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)};
ni.Object.defineProperties(ZC.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=rh(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:Rrb(b))?d:!1},
set:function(a){this._required=rh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&Ija().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=rh(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}}});
ZC.\u0275fac=function(a){return new (a||ZC)(B(Rd),B(hz),B(Iy,10),B(Py,8),B(Yy,8),B(PB),B(lvb,10),B(OC),B(Mf),B(TC,8))};
ZC.\u0275dir=u({type:ZC,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&&M("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(dg("id",b.id)("disabled",b.disabled)("required",b.required),Uf("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),Zf("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:[mg([{provide:SC,useExisting:ZC}]),Of,ed]});
var $C=function(){var a=ZC.apply(this,arguments)||this;a._legacyFormField=Rc(TC,{optional:!0});return a};X($C,ZC);$C.prototype._getPlaceholder=function(){var a=this._legacyFormField,b;return!a||"legacy"!==a.appearance||(null==(b=a._hasLabel)?0:b.call(a))?this.placeholder:null};$C.\u0275fac=function(){var a;return function(b){return(a||(a=Gd($C)))(b||$C)}}();
$C.\u0275dir=u({type:$C,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&&(Uf("data-placeholder",b.placeholder),Zf("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:[mg([{provide:SC,useExisting:$C}]),Of]});
var aD=function(){};aD.\u0275fac=function(a){return new (a||aD)};aD.\u0275mod=Yc({type:aD});aD.\u0275inj=Ic({providers:[PB],imports:[RC,YC,HB,RC,YC]});
var pvb={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 a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},bD=pvb;bD=pvb;
var qvb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),rvb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,svb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,tvb=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},uvb=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)},cD=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=cD.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 cD(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.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 Wi=function(a,b,c){"number"===typeof a?(this.date=vvb(a,b||0,c||1),dD(this,c||1)):La(a)?(this.date=vvb(a.getFullYear(),a.getMonth(),a.getDate()),dD(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),dD(this,a))},vvb=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};g=Wi.prototype;g.firstDayOfWeek_=bD.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=bD.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new Wi(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 hC=function(a){return tvb(a.getFullYear(),a.getMonth())};g=Wi.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(tvb(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()),dD(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+gw(Math.abs(b),c?6:4),gw(this.getMonth()+1,2),gw(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 dD=function(a,b){a.getDate()!=b&&(b=a.getDate()<b?1:-1,a.date.setUTCHours(a.date.getUTCHours()+b))};Wi.prototype.valueOf=function(){return this.date.valueOf()};
var Xo=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())};ev(Xo,Wi);g=Xo.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){Wi.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=Wi.prototype.toIsoString.call(this,a);return a?b+"T"+gw(this.getHours(),2)+":"+gw(this.getMinutes(),2)+":"+gw(this.getSeconds(),2):b+"T"+gw(this.getHours(),2)+gw(this.getMinutes(),2)+gw(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new Xo(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
var wvb=function(){},Ii=function(a){if("number"==typeof a){var b=new wvb;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(":",gw(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=xvb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new wvb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},xvb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(gw(Math.floor(a/60)%100,2),":",gw(a%60,2));return b.join("")},fD=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]};
wvb.prototype.getOffset=function(a){a=this.standardOffset_-fD(this,a);return-1440===a?0:a};
var gD=function(a){this.patternParts_=[];this.dateTimeSymbols_=bD;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},yvb=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],hD=function(a){return a.getHours?a.getHours():0};
gD.prototype.applyPattern_=function(a){for(zvb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<yvb.length;++c){var d=a.match(yvb[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("ib`"+a);}};
gD.prototype.format=function(a,b){if(!a)throw Error("jb");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(Avb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
gD.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{this.applyStandardPattern_(10);return}this.applyPattern_(b)};
var jD=function(a,b){return iD(b,a.dateTimeSymbols_)},zvb=!1,iD=function(a,b){a=String(a);b=b||bD;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("")},kD=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("kb");},Bvb=function(a,b){kD(b);b=hD(b);return a.dateTimeSymbols_.AMPMS[12<=b&&24>b?1:0]},Avb=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),jD(a,gw(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=uvb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),jD(a,gw(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=jD(a,gw(c+1,h))}return h;case "k":return kD(e),jD(a,gw(hD(e)||24,h));case "S":return jD(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?gw(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return Bvb(a,e);case "b":return Bvb(a,e);case "B":return Bvb(a,e);case "h":return kD(e),jD(a,gw(hD(e)%12||12,h));case "K":return kD(e),jD(a,gw(hD(e)%12,h));
case "H":return kD(e),jD(a,gw(hD(e),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=jD(a,gw(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=jD(a,gw(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 jD(a,gw(d.getDate(),h));case "m":return kD(e),jD(a,gw(e.getMinutes?e.getMinutes():0,h));case "s":return kD(e),jD(a,gw(e.getSeconds(),h));case "v":return(f||Ii(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Ii(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<fD(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=uvb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),jD(a,gw(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||Ii(c.getTimezoneOffset()),4>h?a.tzNames_[0<fD(a,c)?2:0]:a.tzNames_[0<fD(a,c)?3:1];case "Z":return d=
f||Ii(c.getTimezoneOffset()),4>h?(h=-d.getOffset(c),a=[0>h?"-":"+"],h=Math.abs(h),a.push(gw(Math.floor(h/60)%100,2),gw(h%60,2)),h=a.join("")):h=jD(a,xvb(d.getOffset(c))),h;default:return""}};
var Cvb={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3,LEFT_TOP:4,LEFT_BOTTOM:5,RIGHT_TOP:6,RIGHT_BOTTOM:7,0:"TOP_LEFT",1:"TOP_RIGHT",2:"BOTTOM_LEFT",3:"BOTTOM_RIGHT",4:"LEFT_TOP",5:"LEFT_BOTTOM",6:"RIGHT_TOP",7:"RIGHT_BOTTOM"};
var Dvb=function(){},Evb=function(){};
var lD=function(a){var b=this;this.normalizedNames=new Map;this.lazyUpdate=null;a?this.lazyInit="string"===typeof a?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();Fvb(b,e,f);b.headers.has(f)?b.headers.get(f).push(c):b.headers.set(f,[c])}})}:function(){b.headers=new Map;Object.keys(a).forEach(function(c){var d=a[c],e=c.toLowerCase();"string"===typeof d&&(d=[d]);0<d.length&&(b.headers.set(e,d),Fvb(b,
c,e))})}:this.headers=new Map};g=lD.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 Fvb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};lD.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof lD?Gvb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return Hvb(a,b)}),this.lazyUpdate=null))};
var Gvb=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))})};lD.prototype.clone=function(a){var b=new lD;b.lazyInit=this.lazyInit&&this.lazyInit instanceof lD?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var Hvb=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;Fvb(a,b.name,c);b=("a"===b.op?a.headers.get(c):void 0)||[];b.push.apply(b,r(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)}};
lD.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 Ivb=function(){},Zla=/%(\d[a-f0-9])/gi,$la={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},mD=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new Ivb;if(a.fromString){if(a.fromObject)throw Error("lb");this.map=Yla(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(bma):[""+d];b.map.set(c,d)})):this.map=null};g=mD.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=ama(b);return a.map.get(b).map(function(d){return c+"="+ama(d)}).join("&")}).filter(function(b){return""!==b}).join("&")};g.clone=function(a){var b=new mD({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 Jvb=function(){this.map=new Map};g=Jvb.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 nD=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 lD);this.context||(this.context=new Jvb);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 mD,this.urlWithParams=b)},Kvb=function(a){return null===a.body?null:cma(a.body)||dma(a.body)||ema(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
mD?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
nD.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,t,x=null!=(t=a.context)?t:this.context;void 0!==a.setHeaders&&(k=Object.keys(a.setHeaders).reduce(function(y,F){return y.set(F,a.setHeaders[F])},k));a.setParams&&
(q=Object.keys(a.setParams).reduce(function(y,F){return y.set(F,a.setParams[F])},q));return new nD(b,c,e,{params:q,headers:k,context:x,reportProgress:h,responseType:d,withCredentials:f})};
var oD=function(a,b,c){this.headers=a.headers||new lD;this.status=void 0!==a.status?a.status:void 0===b?200:b;this.statusText=a.statusText||(void 0===c?"OK":c);this.url=a.url||null;this.ok=200<=this.status&&300>this.status},pD=function(a){a=void 0===a?{}:a;oD.call(this,a);this.type=2};X(pD,oD);pD.prototype.clone=function(a){a=void 0===a?{}:a;return new pD({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 qD=function(a){a=void 0===a?{}:a;oD.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};X(qD,oD);qD.prototype.clone=function(a){a=void 0===a?{}:a;return new qD({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 Lvb=function(a){oD.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};X(Lvb,oD);
var rD=function(a){this.handler=a};g=rD.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof nD)b=a;else{var e=void 0;e=c.headers instanceof lD?c.headers:new lD(c.headers);var f=void 0;c.params&&(f=c.params instanceof mD?c.params:new mD({fromObject:c.params}));b=new nD(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,W.of)(b).pipe(af(function(h){return d.handler.handle(h)},1));if(a instanceof
nD||"events"===c.observe)return e;a=e.pipe(hf(function(h){return h instanceof qD}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(C(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("mb");return h.body}));case "blob":return a.pipe(C(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("nb");return h.body}));case "text":return a.pipe(C(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("ob");return h.body}));
default:return a.pipe(C(function(h){return h.body}))}case "response":return a;default:throw Error("pb`"+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 mD).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,fma(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,fma(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,fma(c,b))};rD.\u0275fac=function(a){return new (a||rD)(p(Dvb))};rD.\u0275prov=Hc({token:rD,factory:rD.\u0275fac});
var sD=new Md("HTTP_INTERCEPTORS"),Mvb=new Md("HTTP_INTERCEPTOR_FNS"),tD=function(a,b){this.backend=a;this.injector=b;this.chain=null};X(tD,Dvb);tD.prototype.handle=function(a){var b=this;null===this.chain&&(this.chain=Array.from(new Set(this.injector.get(Mvb))).reduceRight(function(c,d){return ima(c,d,b.injector)},gma));return this.chain(a,function(c){return b.backend.handle(c)})};tD.\u0275fac=function(a){return new (a||tD)(p(Evb),p(ow))};tD.\u0275prov=Hc({token:tD,factory:tD.\u0275fac});
var Nvb=/^\)\]\}',?\n/,uD=function(a){this.xhrFactory=a};
uD.prototype.handle=function(a){var b=this;if("JSONP"===a.method)throw Error("qb");return new W.Observable(function(c){var d=b.xhrFactory.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(K,J){return d.setRequestHeader(K,J.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=null===a.body||ema(a.body)?null:dma(a.body)?a.body.type||null:cma(a.body)?
null:"string"===typeof a.body?"text/plain":a.body instanceof mD?"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=Kvb(a),h=null,k=function(){if(null!==h)return h;var K=d.statusText||"OK",J=new lD(d.getAllResponseHeaders()),R=("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 pD({headers:J,status:d.status,statusText:K,url:R})},q=function(){var K=k(),J=K.headers,R=K.status,S=K.statusText;K=K.url;var aa=null;204!==R&&(aa="undefined"===typeof d.response?d.responseText:d.response);0===R&&(R=aa?200:0);var ba=200<=R&&300>R;if("json"===a.responseType&&"string"===typeof aa){var ka=aa;aa=aa.replace(Nvb,"");try{aa=""!==aa?JSON.parse(aa):null}catch(wa){aa=ka,ba&&(ba=
!1,aa={error:wa,text:aa})}}ba?(c.next(new qD({body:aa,headers:J,status:R,statusText:S,url:K||void 0})),c.complete()):c.error(new Lvb({error:aa,headers:J,status:R,statusText:S,url:K||void 0}))},t=function(K){var J=k().url;c.error(new Lvb({error:K,status:d.status||0,statusText:d.statusText||"Unknown Error",url:J||void 0}))},x=!1,y=function(K){x||(c.next(k()),x=!0);var J={type:3,loaded:K.loaded};K.lengthComputable&&(J.total=K.total);"text"===a.responseType&&d.responseText&&(J.partialText=d.responseText);
c.next(J)},F=function(K){var J={type:1,loaded:K.loaded};K.lengthComputable&&(J.total=K.total);c.next(J)};d.addEventListener("load",q);d.addEventListener("error",t);d.addEventListener("timeout",t);d.addEventListener("abort",t);a.reportProgress&&(d.addEventListener("progress",y),null!==f&&d.upload&&d.upload.addEventListener("progress",F));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",t);d.removeEventListener("abort",t);d.removeEventListener("load",q);d.removeEventListener("timeout",
t);a.reportProgress&&(d.removeEventListener("progress",y),null!==f&&d.upload&&d.upload.removeEventListener("progress",F));d.readyState!==d.DONE&&d.abort()}})};uD.\u0275fac=function(a){return new (a||uD)(p(Nrb))};uD.\u0275prov=Hc({token:uD,factory:uD.\u0275fac});
var jma=new Md("XSRF_ENABLED"),oma=new Md("XSRF_COOKIE_NAME",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),lma=new Md("XSRF_HEADER_NAME",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),kma=function(){},vD=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
vD.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=n(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=n(-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};
vD.\u0275fac=function(a){return new (a||vD)(p(li),p(Dw),p(oma))};vD.\u0275prov=Hc({token:vD,factory:vD.\u0275fac});
var Ovb=new Md("LEGACY_INTERCEPTOR_FN");
pma();var wD=function(){};wD.\u0275fac=function(a){return new (a||wD)};wD.\u0275mod=Yc({type:wD});
wD.\u0275inj=Ic({providers:[function(){for(var a=[rD,uD,tD,{provide:Dvb,useExisting:tD},{provide:Evb,useExisting:uD},{provide:Mvb,useValue:mma,multi:!0},{provide:jma,useValue:!0},{provide:kma,useClass:vD}],b=n(Uc.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,r(c.value.\u0275providers));return{"\u0275providers":a}}(nma(1,[{provide:Ovb,useFactory:function(){var a=null;return function(b,c){if(null===a){var d;a=(null!=(d=Rc(sD,{optional:!0}))?d:[]).reduceRight(hma,gma)}return a(b,c)}}},
{provide:Mvb,useExisting:Ovb,multi:!0}]),pma())]});
var xi;
var Pvb=function(a,b){this.url=a;this.svgText=null;this.options=b},xD=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},Qvb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},Rvb=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,W.throwError)(Error("rb`"+d))};g=xD.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};
g._getSvgFromConfig=function(a){return a.svgText?(0,W.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(C(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,W.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(nf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,W.of)(null)}))});return(0,W.forkJoin)(d).pipe(C(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("rb`"+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(Ff(function(c){return a.svgText=c}),C(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,W.of)(null):this._fetchIcon(a).pipe(Ff(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(rma("<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("ub");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(rma("<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("sb");if(null==c)throw Error("vb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("tb`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(C(function(h){return rma(h)}),uf(function(){return b._inProgressUrlFetches.delete(f)}),zf());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 Pvb(d.url,d.options):new Pvb(d)}};xD.\u0275fac=function(a){return new (a||xD)(p(rD,8),p(Rz),p(li,8),p(te))};xD.\u0275prov=Hc({token:xD,factory:xD.\u0275fac,providedIn:"root"});new mw;new nw;new mw;new mw;
var Svb=oi(function(a){this._elementRef=a}),Tvb=new Md("MAT_ICON_DEFAULT_OPTIONS"),Uvb=new Md("mat-icon-location",{providedIn:"root",factory:sma}),Vvb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),Wvb=Vvb.map(function(a){return"["+a+"]"}).join(", "),Xvb=/^url\(['"]?#(.*?)['"]?\)$/,yD=function(a,b,c,d,e,f){var h=Svb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
W.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};X(yD,Svb);g=yD.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("wb`"+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?Qvb(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(Wvb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={$jscomp$loop$prop$i$1915:0};a.$jscomp$loop$prop$i$1915<b.length;a={$jscomp$loop$prop$i$1915:a.$jscomp$loop$prop$i$1915},a.$jscomp$loop$prop$i$1915++)Vvb.forEach(function(d){return function(e){var f=b[d.$jscomp$loop$prop$i$1915],h=f.getAttribute(e);if(h=h?h.match(Xvb):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=n(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=Rvb(this._iconRegistry,d,c).pipe(sf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("xb`"+c+"`"+d+"`"+e.message))})}};
ni.Object.defineProperties(yD.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=rh(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())}}});yD.\u0275fac=function(a){return new (a||yD)(B(Rd),B(xD),Ad("aria-hidden"),B(Uvb),B(te),B(Tvb,8))};
yD.\u0275cmp=u({type:yD,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(a,b){a&2&&(Uf("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),Zf("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:[Of],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},styles:[".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 zD=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new sx;this.action=new sx;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=Cvb;this.width=272;this.previouslyFocusedElement=null;this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement,{defer:!0});this.dismissIfEscape=function(e){"Escape"===e.key&&d.dismissTooltip()};this.setPreviouslyFocusedElement=function(){var e=d.document.activeElement;
null!=e&&e.closest("onedev-feature-tooltip-body")||(d.previouslyFocusedElement=d.document.activeElement)};this.document.addEventListener("keydown",this.dismissIfEscape);this.document.addEventListener("focusin",this.setPreviouslyFocusedElement)};zD.prototype.ngAfterContentInit=function(){kz(this.focusTrap);this.setPreviouslyFocusedElement();mz(this.focusTrap)};
zD.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
zD.prototype.dismissTooltip=function(){this.dismiss.next();this.previouslyFocusedElement&&"focus"in this.previouslyFocusedElement&&this.previouslyFocusedElement.focus({preventScroll:!0});this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement)};ni.Object.defineProperties(zD.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+64*a}}});
zD.\u0275fac=function(a){return new (a||zD)(B(li),B(MA),B(Rd))};
zD.\u0275cmp=u({type:zD,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&Zf("pointer-top-left",b.pointerPosition===b.Position.TOP_LEFT)("pointer-top-right",b.pointerPosition===b.Position.TOP_RIGHT)("pointer-bottom-left",b.pointerPosition===b.Position.BOTTOM_LEFT)("pointer-bottom-right",b.pointerPosition===b.Position.BOTTOM_RIGHT)("pointer-left-top",b.pointerPosition===b.Position.LEFT_TOP)("pointer-left-bottom",b.pointerPosition===b.Position.LEFT_BOTTOM)("pointer-right-top",
b.pointerPosition===b.Position.RIGHT_TOP)("pointer-right-bottom",b.pointerPosition===b.Position.RIGHT_BOTTOM)},inputs:{pointerPosition:"pointerPosition",widthOffset:"widthOffset",color:"color",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",action:"action"},features:[mg([{provide:Ktb,useValue:{preventFocus:function(){},allowFocus:function(){}}},MA])],ngContentSelectors:["*"],decls:8,vars:5,consts:[["cdkTrapFocus","","role","dialog","aria-modal","true","aria-label",
"Feature Tooltip",1,"tooltip-body","gmat-body-2",3,"ngClass"],[1,"pointer-container"],[1,"pointer"],[1,"button-row"],["class","action-button","mat-button","",3,"click",4,"ngIf"],["cdkFocusInitial","","mat-flat-button","",1,"close-button",3,"color","click"],["mat-button","",1,"action-button",3,"click"],[1,"action-button-wrapper"],["class","action-button-icon",4,"ngIf"],[1,"action-button-icon"]],template:function(a,b){a&1&&(fg(),E(0,"div",0)(1,"div",1),H(2,"div",2),G(),gg(3),E(4,"div",3),P(5,uma,4,
2,"button",4),E(6,"button",5),M("click",function(){return b.dismissTooltip()}),Q(7," Got it "),G()()());a&2&&(Yf("width",b.width,"px"),D("ngClass",b.color),A(5),D("ngIf",b.actionBtnText),A(1),D("color","white"===b.color?"primary":""))},dependencies:[oz,ey,gy,pC,yD],styles:[".overlay-container{overflow:hidden}.dark-mode,:root{--tooltip-white-bg:var(--surface-default,#fff);--tooltip-blue-bg:var(--blue-700,#1967d2);--tooltip-white-text:var(--grey-800,#3c4043);--tooltip-blue-text:var(--text-inverse,#fff);--tooltip-shadow-color:rgba(0,0,0,.2)}.dark-mode{--tooltip-white-bg:var(--surface-default,#28292c);--tooltip-blue-bg:var(--blue-300,#8ab4f8);--tooltip-white-text:var(--grey-300,#dadce0);--tooltip-blue-text:var(--text-inverse,#000);--tooltip-shadow-color:rgba(0,0,0,.5)}.tooltip-body{padding:24px;border-radius:8px;color:var(--tooltip-text);background-color:var(--tooltip-bg);position:relative;--pointer-edge-offset:24px;--pointer-width:18px;--pointer-height:12px;--pointer-container-height:30px;--pointer-container-width:calc(var(--pointer-edge-offset)*2 + var(--pointer-width));--pointer-adjustment:-9px;box-shadow:0 1px 3px 0 var(--tooltip-shadow-color),0 4px 8px 3px var(--tooltip-shadow-color)}.tooltip-body.blue{--tooltip-text:var(--tooltip-blue-text);--tooltip-bg:var(--tooltip-blue-bg)}.tooltip-body.white{--tooltip-text:var(--tooltip-white-text);--tooltip-bg:var(--tooltip-white-bg)}.tooltip-body .button-row{margin-top:16px;text-align:right}.tooltip-body .button-row>button{height:36px}.tooltip-body .button-row .close-button{color:var(--tooltip-bg);margin-left:16px;width:88px}.tooltip-body .button-row .action-button{padding-left:8px;padding-right:8px}.tooltip-body .button-row .action-button .action-button-wrapper{-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;-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;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.tooltip-body .button-row .action-button .action-button-wrapper .action-button-icon{font-size:18px;height:18px;padding-left:8px;width:18px}.tooltip-body .pointer-container{position:absolute;overflow:hidden;pointer-events:none}.tooltip-body .pointer-container .pointer{width:16px;height:16px;position:absolute;background-color:var(--tooltip-bg)}.tooltip-body .tooltip-title{margin:0 4px 0 0}.pointer-bottom-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-left .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-left .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-left .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-left .pointer-container{left:0}.pointer-bottom-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-bottom-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-bottom-right .tooltip-body{margin-bottom:var(--pointer-height)}.pointer-bottom-right .pointer{box-shadow:2px 2px 8px 3px var(--tooltip-shadow-color);top:var(--pointer-adjustment)}.pointer-bottom-right .pointer-container{bottom:calc(var(--pointer-container-height)*-1)}.pointer-bottom-right .pointer-container{right:0}.pointer-top-left .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-left .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-left .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-left .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-left .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-left .pointer-container{left:0}.pointer-top-right .pointer-container{height:var(--pointer-container-height);width:var(--pointer-container-width)}.pointer-top-right .pointer{left:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(45deg) skew(8deg,8deg);transform:rotate(45deg) skew(8deg,8deg)}.pointer-top-right .tooltip-body{margin-top:var(--pointer-height)}.pointer-top-right .pointer{box-shadow:-1px -1px 3px 0 var(--tooltip-shadow-color);bottom:var(--pointer-adjustment)}.pointer-top-right .pointer-container{top:calc(var(--pointer-container-height)*-1)}.pointer-top-right .pointer-container{right:0}.pointer-left-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-top .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-top .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-top .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-top .pointer-container{top:0}.pointer-left-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-left-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-left-bottom .tooltip-body{margin-left:var(--pointer-height)}.pointer-left-bottom .pointer{box-shadow:2px 2px 5px 0 var(--tooltip-shadow-color);right:var(--pointer-adjustment)}.pointer-left-bottom .pointer-container{left:calc(var(--pointer-container-height)*-1)}.pointer-left-bottom .pointer-container{bottom:0}.pointer-right-top .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-top .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-top .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-top .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-top .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-top .pointer-container{top:0}.pointer-right-bottom .pointer-container{height:var(--pointer-container-width);width:var(--pointer-container-height)}.pointer-right-bottom .pointer{top:calc(var(--pointer-edge-offset) + 1px);-webkit-transform:rotate(135deg) skew(8deg,8deg);transform:rotate(135deg) skew(8deg,8deg)}.pointer-right-bottom .tooltip-body{margin-right:var(--pointer-height)}.pointer-right-bottom .pointer{left:var(--pointer-adjustment);box-shadow:1px -1px 8px 3px var(--tooltip-shadow-color)}.pointer-right-bottom .pointer-container{right:calc(var(--pointer-container-height)*-1)}.pointer-right-bottom .pointer-container{bottom:0}"],
encapsulation:2,changeDetection:0});
var AD=function(){};AD.\u0275fac=function(a){return new (a||AD)};AD.\u0275mod=Yc({type:AD});AD.\u0275inj=Ic({});
var BD=function(){this.anchorMap=new Map},CD=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new W.ReplaySubject(1),destroyed$:new W.Subject,dismissTooltip$:new W.Subject};a.anchorMap.set(b,c);return c},Yvb=function(a,b,c){CD(a,b).created$.next(c)},Zvb=function(a,b){CD(a,b).destroyed$.next();CD(a,b).created$.next(void 0)};BD.prototype.dismissTooltip=function(){CD(this).dismissTooltip$.next()};BD.\u0275fac=function(a){return new (a||BD)};
BD.\u0275prov=Hc({token:BD,factory:BD.\u0275fac,providedIn:AD});
var DD={TOP_LEFT:{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},TOP_CENTER_RIGHT:{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},TOP_CENTER_LEFT:{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},TOP_RIGHT:{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",
offsetX:12}},RIGHT_TOP:{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},RIGHT_CENTER_BOTTOM:{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},RIGHT_CENTER_TOP:{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}},RIGHT_BOTTOM:{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",
overlayY:"bottom",offsetY:12}},LEFT_BOTTOM:{pointerPosition:7,connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},LEFT_CENTER_BOTTOM:{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"top",offsetY:-33}},LEFT_CENTER_TOP:{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},LEFT_TOP:{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",
overlayX:"end",overlayY:"top",offsetY:-12}},BOTTOM_LEFT:{pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},BOTTOM_CENTER_RIGHT:{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},BOTTOM_CENTER_LEFT:{pointerPosition:1,connectedPosition:{originX:"center",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}},BOTTOM_RIGHT:{pointerPosition:1,connectedPosition:{originX:"end",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}},$vb=[DD.TOP_CENTER_RIGHT,DD.TOP_CENTER_LEFT,DD.BOTTOM_CENTER_RIGHT,DD.BOTTOM_CENTER_LEFT],awb=[DD.TOP_LEFT,DD.TOP_RIGHT,DD.BOTTOM_LEFT,DD.BOTTOM_RIGHT],bwb=[DD.LEFT_CENTER_BOTTOM,DD.LEFT_CENTER_TOP,DD.RIGHT_CENTER_BOTTOM,DD.RIGHT_CENTER_TOP],cwb=[DD.LEFT_TOP,DD.LEFT_BOTTOM,DD.RIGHT_TOP,DD.RIGHT_BOTTOM];
var ED=function(){};ED.\u0275fac=function(a){return new (a||ED)};ED.\u0275mod=Yc({type:ED});ED.\u0275inj=Ic({});
var FD=function(){},ewb=function(a,b){return dwb(a,b).map(function(c){return c.connectedPosition})},fwb=function(a,b,c){a=dwb(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("yb`"+JSON.stringify(c));return a.pointerPosition},dwb=function(a,b){b=gwb(b).filter(function(c){return!a.includes(c)});return a.concat(b)},gwb=function(a){var b,c=null==a?void 0:null==(b=a.nativeElement)?void 0:b.clientWidth,d;a=null==a?void 0:null==(d=a.nativeElement)?void 0:d.clientHeight;return(void 0!==
c&&60>c?$vb:awb).concat(void 0!==a&&60>a?bwb:cwb)};FD.\u0275fac=function(a){return new (a||FD)};FD.\u0275prov=Hc({token:FD,factory:FD.\u0275fac,providedIn:ED});
var GD={};GD.AssertionError=da;GD.ENABLE_ASSERTS=!1;GD.assert=function(a){return a};GD.assertArray=function(a){return a};GD.assertBoolean=function(a){return a};GD.assertElement=function(a){return a};GD.assertExists=function(a){return a};GD.assertFinite=function(a){return a};GD.assertFunction=function(a){return a};GD.assertInstanceof=function(a){return a};GD.assertNumber=function(a){return a};GD.assertObject=function(a){return a};GD.assertString=function(a){return a};GD.fail=function(){};
var hwb=["template"],HD=function(a,b,c,d,e){var f=this;this.anchorService=a;this.overlay=b;this.containerRef=c;this.ngZone=d;this.changeDetectorRef=e;this.open$=new W.Subject;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new sx;this.beforeShown=new sx;this.action=new sx;this.pointerPosition=0;this.destroyed$=new W.ReplaySubject;this.init$=new W.ReplaySubject;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=
function(){f.overlayRef&&f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var h;null==(h=f.overlayRef)||h.dispose();f.overlayRef=void 0}};HD.prototype.ngOnChanges=function(a){if(a.customPositions){var b;null==(b=this.overlayRef)||aub(b,iwb(this))}};
HD.prototype.ngOnInit=function(){var a=CD(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;jwb(this,a.created$);b.pipe(Ef(this.destroyed$)).subscribe(this.hideFeatureTooltip);kwb(this,c)};HD.prototype.ngAfterViewInit=function(){this.init$.next()};HD.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var jwb=function(a,b){a.open$.pipe(hha(a.init$),Ff(function(){a.beforeShown.emit()}),Df(function(){return b.pipe(Ef(a.dismiss))}),Ef(a.destroyed$),hf(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.anchor=c;c=c.nativeElement;if(a.hasBackdrop){var d=c.style,e=d.position;a.savedAnchorStyles={zIndex:d.zIndex,position:e};if("static"===e||""===e)c.style.position="relative";c.style.zIndex="1001"}a.overlayRef=a.overlay.create({positionStrategy:iwb(a),scrollStrategy:a.getScrollStrategy(),
minWidth:"fit-content",hasBackdrop:a.hasBackdrop});var f;null==(f=a.overlayRef)||f.attach(new xz(a.templateRef,a.containerRef))})},kwb=function(a,b){b.pipe(Ef(a.destroyed$),hf(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};HD.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};
HD.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("zb");return uB(CB(this.overlay.position(),this.anchor),ewb(this.customPositions,this.anchor))};var iwb=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=fwb(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};HD.prototype.isVisible=function(){return!!this.overlayRef};
HD.\u0275fac=function(a){return new (a||HD)(B(BD),B(DB),B(wg),B(Mf),B(Xx),B(FD))};
HD.\u0275cmp=u({type:HD,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&zg(hwb,5);if(a&2){var c;yg(c=Bg())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText",actionBtnIcon:"actionBtnIcon"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},features:[ed],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset","action","dismiss"]],template:function(a){a&1&&(fg(),P(0,vma,2,5,"ng-template",null,0,Hg))},dependencies:[zD],encapsulation:2,changeDetection:0});
var ID=function(){};ID.\u0275fac=function(a){return new (a||ID)};ID.\u0275mod=Yc({type:ID});ID.\u0275inj=Ic({});
var JD=function(){};JD.\u0275fac=function(a){return new (a||JD)};JD.\u0275mod=Yc({type:JD});JD.\u0275inj=Ic({imports:[ID]});
var KD=function(){};KD.prototype.getValue=function(a){a=window.localStorage.getItem(a);return(0,W.of)(a?JSON.parse(a):null)};KD.prototype.getValues=function(a){return(0,W.of)(a.reduce(function(b,c){var d=b.set;var e=(e=window.localStorage.getItem(c))?JSON.parse(e):null;return d.call(b,c,e)},new Map))};KD.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return(0,W.of)(void 0)};KD.\u0275fac=function(a){return new (a||KD)};
KD.\u0275prov=Hc({token:KD,factory:KD.\u0275fac,providedIn:ID});
var lwb=function(a){this.cellValue_=a};
var LD=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=LD.prototype;g.addCell=function(a){var b=Uc.apply(1,arguments),c=this.getCells(b);c?c.push(new lwb(a)):this.setCell(a,b)};g.setCell=function(a){this.cellMap_.set(this.getKey_(Uc.apply(1,arguments)),[new lwb(a)])};g.getCells=function(){var a=this.getKey_(Uc.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(Uc.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=Uc.apply(0,arguments);return a?a.join(","):"key"};
var MD=function(a,b){LD.call(this,a,3,b)};X(MD,LD);MD.prototype.incrementCounter=function(){this.incrementCounterBy(1,Uc.apply(0,arguments))};MD.prototype.incrementCounterBy=function(a){var b=Uc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};
var ND=function(a,b){LD.call(this,a,2,b)};X(ND,LD);ND.prototype.record=function(a){this.addCell(a,Uc.apply(1,arguments))};
var OD=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};OD.prototype.disposed_=!1;OD.prototype.isDisposed=function(){return this.disposed_};OD.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var PD=function(a,b){b=cv(yi,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};OD.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var QD=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};QD.prototype.stopPropagation=function(){this.propagationStopped_=!0};QD.prototype.preventDefault=function(){this.defaultPrevented=!0};
var RD=[],SD=[],mwb=!1,TD=function(a){RD[RD.length]=a;if(mwb)for(var b=0;b<SD.length;b++)a(bv(SD[b].wrap,SD[b]))};
var nwb=function(){if(!ea.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{ea.addEventListener("test",function(){},b),ea.removeEventListener("test",function(){},b)}catch(c){}return a}();
var UD=function(a,b){QD.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)};ev(UD,QD);var owb={2:"touch",3:"pen",4:"mouse"};
UD.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)?jv&&(tnb(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=kv||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=kv||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=hr?a.metaKey:a.ctrlKey;this.pointerId=
a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:owb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&UD.superClass_.preventDefault.call(this)};UD.prototype.stopPropagation=function(){UD.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
UD.prototype.preventDefault=function(){UD.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};
var pwb="closure_listenable_"+(1E6*Math.random()|0),VD=function(a){return!(!a||!a[pwb])};
var qwb=0;
var rwb=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=++qwb;this.removed=this.callOnce=!1},WD=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};
var XD=function(a){this.src=a;this.listeners={};this.typeCount_=0};XD.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=swb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new rwb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
XD.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=swb(e,b,c,d);return-1<b?(WD(e[b]),Ba(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var twb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=Ea(a.listeners[c],b);d&&(WD(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
XD.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,WD(d[e]);delete this.listeners[c];this.typeCount_--}return b};XD.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=swb(a,b,c,d));return-1<e?a[e]:null};
XD.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return Gba(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 swb=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 uwb="closure_lm_"+(1E6*Math.random()|0),vwb={},wwb=0,xp=function(a,b,c,d,e){if(d&&d.once)return YD(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)xp(a,b[f],c,d,e);return null}c=ZD(c);return VD(a)?a.listen(b,c,La(d)?!!d.capture:!!d,e):xwb(a,b,c,!1,d,e)},xwb=function(a,b,c,d,e,f){if(!b)throw Error("Ab");var h=La(e)?!!e.capture:!!e,k=$D(a);k||(a[uwb]=k=new XD(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=ywb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)nwb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(zwb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("Bb");wwb++;return c},ywb=function(){var a=Awb,b=function(c){return a.call(b.src,b.listener,c)};return b},YD=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)YD(a,b[f],c,d,e);return null}c=ZD(c);return VD(a)?a.listenOnce(b,c,La(d)?!!d.capture:!!d,e):xwb(a,b,c,!0,d,e)},aE=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)aE(a,b[f],c,d,e);else d=La(d)?!!d.capture:!!d,c=ZD(c),VD(a)?a.unlisten(b,c,d,e):a&&(a=$D(a))&&(b=a.getListener(b,c,d,e))&&bE(b)},bE=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(VD(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(zwb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);wwb--;(c=$D(b))?(twb(c,a),0==c.typeCount_&&(c.src=null,b[uwb]=null)):WD(a);
return!0},zwb=function(a){return a in vwb?vwb[a]:vwb[a]="on"+a},Awb=function(a,b){if(a.removed)a=!0;else{b=new UD(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&bE(a);a=c.call(d,b)}return a},$D=function(a){a=a[uwb];return a instanceof XD?a:null},Bwb="__closure_events_fn_"+(1E9*Math.random()>>>0),ZD=function(a){if("function"===typeof a)return a;a[Bwb]||(a[Bwb]=function(b){return a.handleEvent(b)});return a[Bwb]};TD(function(a){Awb=a(Awb)});
var wp=function(){OD.call(this);this.eventTargetListeners_=new XD(this);this.actualEventTarget_=this;this.parentEventTarget_=null};ev(wp,OD);wp.prototype[pwb]=!0;g=wp.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){xp(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){aE(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 QD(a,c);else if(a instanceof QD)a.target=a.target||c;else{var e=a;a=new QD(d,c);dc(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(){wp.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 twb(this.eventTargetListeners_,a)};g.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 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 cE=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};cE.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};cE.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 Cwb=hv||kv;
var Dwb=function(a,b){return a+Math.random()*(b-a)};
var nr=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};nr.prototype.clone=function(){return new nr(this.x,this.y)};nr.prototype.equals=function(a){return a instanceof nr&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var or=function(a,b){return new nr(a.x-b.x,a.y-b.y)};g=nr.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 nr?(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 dE=function(a,b){this.width=a;this.height=b},yTa=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=dE.prototype;g.clone=function(){return new dE(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 zp=function(a){return a?new eE(fE(a)):gnb||(gnb=new eE)},gE=function(a,b){return"string"===typeof b?a.getElementById(b):b},hE=function(a,b){return(b||document).getElementsByTagName(String(a))},Fwb=function(a,b){Yb(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:Ewb.hasOwnProperty(d)?a.setAttribute(Ewb[d],c):Zi(d,"aria-")||Zi(d,"data-")?a.setAttribute(d,c):a[d]=c})},
Ewb={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"},jE=function(a){a=(a||window).document;a=iE(a)?a.documentElement:a.body;return new dE(a.clientWidth,a.clientHeight)},lE=function(a){var b=kE(a);a=a.parentWindow||a.defaultView;return hv&&a.pageYOffset!=b.scrollTop?new nr(b.scrollLeft,b.scrollTop):new nr(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},kE=function(a){return a.scrollingElement?a.scrollingElement:!kv&&iE(a)?a.documentElement:a.body||a.documentElement},mE=function(a){return a?a.parentWindow||a.defaultView:window},Hwb=function(a,b,c){return Gwb(document,arguments)},Gwb=function(a,b){var c=b[1],d=Zj(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):Fwb(d,c));2<b.length&&Iwb(a,d,b,2);return d},Iwb=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(!Ha(f)||La(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(La(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}ua(h?Ga(f):f,e)}}},Zj=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},iE=function(a){return"CSS1Compat"==a.compatMode},Jwb=function(a,b){Iwb(fE(a),a,arguments,
1)},nE=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},oE=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},pE=function(a){return La(a)&&1==a.nodeType},LUa=function(a){var b;if(Cwb&&(b=a.parentElement))return b;b=a.parentNode;return pE(b)?b:null},KIa=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},fE=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},qE=function(a){return a.contentDocument||a.contentWindow.document},rE=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 nE(a),a.appendChild(fE(a).createTextNode(String(b)))},Kwb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Lwb={IMG:" ",BR:"\n"},Mwb=function(a){a=
a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},Nwb=function(a,b,c){if(!(a.nodeName in Kwb))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 Lwb)b.push(Lwb[a.nodeName]);else for(a=a.firstChild;a;)Nwb(a,b,c),a=a.nextSibling},HTa=function(){var a=mE();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?sE(3)||sE(2)||sE(1.5)||sE(1)||.75:1},sE=function(a){return mE().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+
a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},eE=function(a){this.document_=a||ea.document||document};g=eE.prototype;g.getDomHelper=zp;g.getElement=function(a){return gE(this.document_,a)};g.$=eE.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&&ya(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=eE.prototype.getElementsByTagNameAndClass;g.setProperties=Fwb;g.getViewportSize=function(){return jE(this.getWindow())};g.createDom=function(a,b,c){return Gwb(this.document_,arguments)};g.createElement=function(a){return Zj(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=Jwb;
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=nE;g.removeNode=oE;
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=pE;g.getParentElement=LUa;g.contains=KIa;
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")||Mwb(a)):b=a.hasAttribute("tabindex")&&Mwb(a);if(b&&hv){var c;"function"!==typeof a.getBoundingClientRect||hv&&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 Owb,Pwb=function(){var a=ea.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ja("Presto")&&(a=function(){var e=Zj(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=bv(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&&!aaa()){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){ea.setTimeout(e,0)}},Qwb=Yob;TD(function(a){Qwb=a});
var Rwb=function(){this.workTail_=this.workHead_=null};Rwb.prototype.add=function(a,b){var c=Swb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};Rwb.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 Swb=new cE(function(){return new Twb},function(a){return a.reset()}),Twb=function(){this.next=this.scope=this.fn=null};
Twb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};Twb.prototype.reset=function(){this.next=this.scope=this.fn=null};
var tE,Uwb=!1,Vwb=new Rwb,uE=function(a,b){tE||Wwb();Uwb||(tE(),Uwb=!0);Vwb.add(a,b)},Wwb=function(){if(ea.Promise&&ea.Promise.resolve){var a=ea.Promise.resolve(void 0);tE=function(){a.then(Xwb)}}else tE=function(){var b=Xwb;b=Qwb(b);"function"!==typeof ea.setImmediate||ea.Window&&ea.Window.prototype&&!ja("Edge")&&ea.Window.prototype.setImmediate==ea.setImmediate?(Owb||(Owb=Pwb()),Owb(b)):ea.setImmediate(b)}},Xwb=function(){for(var a;a=Vwb.remove();){try{a.fn.call(a.scope)}catch(b){fa(b)}Swb.put(a)}Uwb=
!1};
var Ywb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var wE=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=Xv)try{var b=this;a.call(void 0,function(c){vE(b,2,c)},function(c){vE(b,3,c)})}catch(c){vE(this,3,c)}},Zwb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};Zwb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var $wb=new cE(function(){return new Zwb},function(a){a.reset()}),axb=function(a,b,c){var d=$wb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},xE=function(a){if(a instanceof wE)return a;var b=new wE(Xv);vE(b,2,a);return b},bxb=function(a){return new wE(function(b,c){c(a)})},dxb=function(a,b,c){cxb(a,b,c,null)||uE(cv(b,a))},exb=function(a){return new wE(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],dxb(e,b,c)})},fxb=function(a){return new wE(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(t,x){d--;e[t]=x;0==d&&b(e)},h=function(t){c(t)},k=0,q;k<a.length;k++)q=a[k],dxb(q,cv(f,k),h);else b(e)})},gxb=function(a){return new wE(function(b,c){var d=a.length,e=[];if(d)for(var f=function(t){b(t)},h=function(t,x){d--;e[t]=x;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],dxb(q,f,cv(h,k));else b(void 0)})},ixb=function(){var a,b,c=new wE(function(d,e){a=d;b=e});return new hxb(c,a,b)};
wE.prototype.then=function(a,b,c){return jxb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};wE.prototype.$goog_Thenable=!0;var lxb=function(a,b){b=axb(b,b);b.always=!0;kxb(a,b);return a};wE.prototype.thenCatch=function(a,b){return jxb(this,null,a,b)};wE.prototype.catch=wE.prototype.thenCatch;wE.prototype.cancel=function(a){if(0==this.state_){var b=new yE(a);uE(function(){mxb(this,b)},this)}};
var mxb=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?mxb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):nxb(c),oxb(c,e,3,b)))}a.parent_=null}else vE(a,3,b)},kxb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||pxb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},jxb=function(a,b,c,d){var e=axb(null,null,null);e.child=new wE(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(t){h(t)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof yE?h(k):f(q)}catch(t){h(t)}}:h});e.child.parent_=a;kxb(a,e);return e.child};wE.prototype.unblockAndFulfill_=function(a){this.state_=0;vE(this,2,a)};wE.prototype.unblockAndReject_=function(a){this.state_=0;vE(this,3,a)};
var vE=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("Cb")),a.state_=1,cxb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,pxb(a),3!=b||c instanceof yE||qxb(a,c)))},cxb=function(a,b,c,d){if(a instanceof wE)return kxb(a,axb(b||Xv,c||null,d)),!0;if(Ywb(a))return a.then(b,c,d),!0;if(La(a))try{var e=a.then;if("function"===typeof e)return rxb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},rxb=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)}},pxb=function(a){a.executing_||(a.executing_=!0,uE(a.executeCallbacks_,a))},nxb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};wE.prototype.executeCallbacks_=function(){for(var a;a=nxb(this);)oxb(this,a,this.state_,this.result_);this.executing_=!1};
var oxb=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,sxb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):sxb(b,c,d)}catch(e){txb.call(null,e)}$wb.put(b)},sxb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},qxb=function(a,b){a.hadUnhandledRejection_=!0;uE(function(){a.hadUnhandledRejection_&&txb.call(null,b)})},txb=fa,yE=function(a){ca.call(this,
a);this.reportErrorToServer=!1};ev(yE,ca);yE.prototype.name="cancel";var hxb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
var zE=function(a,b){wp.call(this);this.interval_=a||1;this.timerObject_=b||ea;this.boundTick_=bv(this.tick_,this);this.last_=Date.now()};ev(zE,wp);g=zE.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(){zE.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Xt=function(a,b,c){if("function"===typeof a)c&&(a=bv(a,c));else if(a&&"function"==typeof a.handleEvent)a=bv(a.handleEvent,a);else throw Error("Db");return 2147483647<Number(b)?-1:ea.setTimeout(a,b||0)},Yt=function(a){ea.clearTimeout(a)},uxb=function(a,b){var c=null;return(new wE(function(d,e){c=Xt(function(){d(b)},a);-1==c&&e(Error("Eb"))})).thenCatch(function(d){Yt(c);throw d;})};
var vxb=function(a){this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new zE(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)},wxb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=vxb.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(r(a)).filter(function(b){return b.cellMap_.size});a.length&&this.streamzLogger_.flush(a,!1);xxb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=Uc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new MD(a,b))};g.addNewEventMetric=function(a){var b=Uc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new ND(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(r(Uc.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=Uc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof MD&&(d.incrementCounterBy(b,c),wxb(this))};g.record=function(a,b){var c=Uc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof ND&&(d.record(b,c),wxb(this))};var xxb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
var yxb=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"})};yxb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};yxb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var zxb=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"})};zxb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};zxb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Axb=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"})};Axb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};Axb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Bxb=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"})};Bxb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Bxb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Dxb=function(a){Y.call(this,a,-1,Cxb)};X(Dxb,Y);var Fxb=function(a){Y.call(this,a,-1,Exb)};X(Fxb,Y);var Gxb=function(a){Y.call(this,a)};X(Gxb,Y);Gxb.prototype.getValueCase=function(){return ym(this,AE)};var Hxb=function(a){Y.call(this,a)};X(Hxb,Y);Hxb.prototype.getValueCase=function(){return ym(this,Ixb)};var Cxb=[3,6,4],Exb=[1],AE=[1,2,3],Ixb=[1,2,3];
var Kxb=function(a){Y.call(this,a,-1,Jxb)};X(Kxb,Y);var Jxb=[1];
var Lxb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";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("Fb`"+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("Gb`"+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 Nxb=function(a,b,c){var d=String(ea.location.href);return d&&a&&b?[b,Mxb(Lxb(d),a,c||null)].join(" "):null},Mxb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],ua(d,function(k){e.push(k)}),Oxb(e.join(" "));var f=[],h=[];ua(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];ua(d,function(k){e.push(k)});a=Oxb(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},Oxb=function(a){var b=
xma();b.update(a);return b.digestString().toLowerCase()};
var Pxb={};
var BE=function(){this.document_=document||{cookie:""}};g=BE.prototype;g.isEnabled=function(){if(!ea.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("Hb`"+a);if(/[;\r\n]/.test(b))throw Error("Ib`"+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=bj(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 CE(this).keys};g.getValues=function(){return CE(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=CE(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=CE(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var CE=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=bj(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 Qxb=function(a){return!!Pxb.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},Rxb=function(a,b,c,d){(a=ea[a])||(a=(new BE).get(b));return a?Nxb(a,c,d):null},up=function(a,b){b=void 0===b?!1:b;var c=Lxb(String(ea.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=ea.__SAPISID||ea.__APISID||ea.__3PSAPISID||ea.__OVERRIDE_SID;Qxb(e)&&(f=f||ea.__1PSAPISID);if(f)e=!0;else{var h=new BE;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");Qxb(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:"))?ea.__SAPISID:ea.__APISID,e||(e=new BE,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?Nxb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&Qxb(b)&&((b=Rxb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Rxb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
var DE=function(a){Y.call(this,a,-1,Sxb)};X(DE,Y);var Sxb=[2];
var EE=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};EE.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};EE.prototype.getValue=function(){return this.currValue_};
var Txb=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,""))},Uxb=function(a){try{return ea.JSON.parse(a)}catch(b){}a=String(a);if(Txb(a))try{return eval("("+a+")")}catch(b){}throw Error("Jb`"+a);},FE=function(a,b){return(new Vxb(b)).serialize(a)},Vxb=function(a){this.replacer_=
a};Vxb.prototype.serialize=function(a){var b=[];Wxb(this,a,b);return b.join("")};
var Wxb=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],Wxb(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),Xxb(d,c),c.push(":"),Wxb(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Xxb(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("Kb`"+typeof b);}}},Yxb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Zxb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Xxb=function(a,b){b.push('"',a.replace(Zxb,
function(c){var d=Yxb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Yxb[c]=d);return d}),'"')};
var $xb=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 GE=function(){};GE.prototype.cachedOptions_=null;GE.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};
var ayb,HE=function(){};ev(HE,GE);HE.prototype.createInstance=function(){var a=byb(this);return a?new ActiveXObject(a):new XMLHttpRequest};HE.prototype.internalGetOptions=function(){var a={};byb(this)&&(a[0]=!0,a[1]=!0);return a};
var byb=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("Lb");}return a.ieProgId_};ayb=new HE;
var cyb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),dyb=function(a){var b=a.match(cyb);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e},eyb=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,
" ")):"")}}},fyb=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]},gyb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)gyb(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},hyb=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)gyb(a[b],a[b+1],c);return c.join("&")},
iyb=function(a){var b=[],c;for(c in a)gyb(c,a[c],b);return b.join("&")},IE=function(a,b){var c=2==arguments.length?hyb(arguments[1],0):hyb(arguments,1);return fyb(a,c)},tqa=function(a,b){b=iyb(b);return fyb(a,b)},JE=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return fyb(a,b+c)},jyb=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},kyb=/#|$/,lyb=function(a,
b){var c=a.search(kyb),d=jyb(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," "))},myb=/[?&]($|#)/;
var KE=function(a){wp.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.trustToken_=null};ev(KE,wp);
var nyb=/^https?$/i,oyb=["POST","PUT"],pyb=[],zi=function(a,b,c,d,e,f,h){var k=new KE;pyb.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};KE.prototype.cleanupSend_=function(){this.dispose();Ea(pyb,this)};KE.prototype.setTrustToken=function(a){this.trustToken_=a};
KE.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Mb`"+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():ayb.getOptions();this.xhr_.onreadystatechange=bv(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=n(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Nb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=ea.FormData&&a instanceof ea.FormData;!ya(oyb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=n(c);for(d=
b.next();!d.done;d=b.next())c=n(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){}try{qyb(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=ryb(this.xhr_))?(this.xhr_.timeout=
this.timeoutInterval_,this.xhr_.ontimeout=bv(this.timeout_,this)):this.timeoutId_=Xt(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var ryb=function(a){return hv&&"number"===typeof a.timeout&&void 0!==a.ontimeout};KE.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():ayb.createInstance()};
KE.prototype.timeout_=function(){"undefined"!=typeof av&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};KE.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;syb(this);LE(this)};var syb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
KE.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"),LE(this))};KE.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),LE(this,!0));KE.superClass_.disposeInternal.call(this)};
KE.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)tyb(this);else this.onReadyStateChangeEntryPoint_()};KE.prototype.onReadyStateChangeEntryPoint_=function(){tyb(this)};
var tyb=function(a){if(a.active_&&"undefined"!=typeof av&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())Xt(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()+"]";syb(a)}}finally{LE(a)}}},LE=function(a,b){if(a.xhr_){qyb(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){}}},qyb=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(Yt(a.timeoutId_),a.timeoutId_=null)};g=KE.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(cyb)[1]||null,!a&&ea.self&&ea.self.location&&(a=ea.self.location.protocol.slice(0,-1)),a=!nyb.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(ea.JSON)try{var c=ea.JSON.parse(a);break a}catch(d){}c=Uxb(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(!lj(b[c])){var d=ypb(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 Fba(a,function(h){return h.join(", ")})};var Bi=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};KE.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
KE.prototype.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};TD(function(a){KE.prototype.onReadyStateChangeEntryPoint_=a(KE.prototype.onReadyStateChangeEntryPoint_)});
var ME=function(a){Y.call(this,a)};X(ME,Y);ME.prototype.getLocale=function(){return l(this,5)};ME.prototype.setLocale=function(a){return m(this,5,a)};ME.prototype.setBuildLabel=function(a){m(this,7,a)};var vyb=function(a){Y.call(this,a,-1,uyb)};X(vyb,Y);var uyb=[1];
var wyb=["platform","platformVersion","architecture","model","uaFullVersion"];new vyb;
var NE=function(a){Y.call(this,a)};X(NE,Y);NE.prototype.getMutableJsClientInfo=function(){return rv(this,ME,11)};
var xyb=function(a){Y.call(this,a)};X(xyb,Y);g=xyb.prototype;g.getKey=function(){return l(this,1)};g.hasKey=function(){return Oi(this,1)};g.getValue=function(){return l(this,2)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return Oi(this,2)};
var OE=function(a){Y.call(this,a,31,yyb)};X(OE,Y);g=OE.prototype;g.getTag=function(){return l(this,2)};g.getComponentId=function(){return l(this,26)};g.setComponentId=function(a){return m(this,26,a)};g.hasComponentId=function(){return Oi(this,26)};g.addValue=function(){return rq(this,3,xyb)};var PE=function(a,b){return m(a,8,b)};OE.prototype.getExperimentIds=function(){return Ub(this,DE,16)};var QE=function(a,b){m(a,24,b)},yyb=[3,20,27];
var RE=function(a){Y.call(this,a,17,zyb)};X(RE,Y);RE.prototype.getClientInfo=function(){return Ub(this,NE,1)};RE.prototype.getMutableClientInfo=function(){return rv(this,NE,1)};RE.prototype.setClientInfo=function(a){Vb(this,1,a)};RE.prototype.setLogSource=function(a){return m(this,2,a)};var zyb=[3,5];
var Byb=function(a){Y.call(this,a,-1,Ayb)};X(Byb,Y);var Ayb=[1];
var SE=function(a){Y.call(this,a,6,Cyb)};X(SE,Y);SE.prototype.getExperiments=function(){return Ub(this,Byb,2)};SE.prototype.setExperiments=function(a){Vb(this,2,a)};SE.prototype.hasExperiments=function(){return vj(this,Byb,2)};var Cyb=[5];
var Dyb=function(a){Y.call(this,a)};X(Dyb,Y);
var Eyb=Tb(175237375,{jsExtension:0},Dyb,function(a,b){if(null!=b){var c={suggestedFlushIntervalMillis:Ji(b,1,-1)};a&&(c.$jspbMessageInstance=b);return c}});
var UE=function(a,b,c,d,e,f,h,k,q,t,x){wp.call(this);var y=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.numLogsDroppedSinceLastFlush=0;this.sequencePosition_=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=
!1;wp.call(this);this.logSource_=a;this.getAuthHeaderValue=b||function(){};this.logRequestBuilder=new TE(a,f);this.networkIOSend_=d;this.network_=x;this.bufferSize=1E3;this.uniformRandomFunction=cv(Dwb,0,1);this.clearcutUrl_=e||null;this.sessionIndex_=c||null;this.disableAutomaticFlush=h||!1;this.pageId=q||null;this.logger=null;this.withCredentials=!k;this.isServiceWorkerScope=f||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&(65<=na("Chromium")||45<=na("Firefox")||12<=na("Safari")||qa()&&
faa())&&!!mE()&&!!mE().navigator&&!!mE().navigator.sendBeacon;a=m(new NE,1,1);this.logRequestBuilder.setClientInfo(a);this.flushBackoff=new EE(1E4);this.flushTimer=new zE(this.flushBackoff.getValue());PD(this,this.flushTimer);t=Fyb(this,t);xp(this.flushTimer,"tick",t,!1,this);this.backupTimer=new zE(6E5);PD(this,this.backupTimer);xp(this.backupTimer,"tick",t,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(xp(document,"visibilitychange",function(){"hidden"===
document.visibilityState&&y.finalFlush()}),xp(document,"pagehide",this.finalFlush,!1,this))};X(UE,wp);var Fyb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};UE.prototype.disposeInternal=function(){this.finalFlush();wp.prototype.disposeInternal.call(this)};UE.prototype.setClearcutUrl=function(a){this.clearcutUrl_=a};UE.prototype.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
var Gyb=function(a){a.clearcutUrl_||(a.clearcutUrl_=.01>a.uniformRandomFunction()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.clearcutUrl_},VE=function(a,b){b instanceof OE?a.log(b):(b=PE(new OE,b.serialize()),a.log(b))};g=UE.prototype;g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId_=a};
g.setOpaqueExperimentIds=function(a){this.experimentIds_||(this.experimentIds_=new DE);Bb(this.experimentIds_,2,a)};g.setClearExperimentIds=function(a){a?(this.experimentIds_||(this.experimentIds_=new DE),a=a.serialize(),m(this.experimentIds_,4,a)):this.experimentIds_&&qv(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;Hyb(this,a)};var Hyb=function(a,b){a.flushBackoff=new EE(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
UE.prototype.log=function(a){a=a.clone();var b=this.sequencePosition_++;m(a,21,b);this.componentId_&&a.setComponentId(this.componentId_);if(!l(a,1)){b=a;var c=Date.now().toString();m(b,1,c)}zj(a,15)||m(a,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds_&&(b=this.experimentIds_.clone(),Vb(a,16,b));for(;this.pendingEvents_.length>=this.bufferSize;)this.pendingEvents_.shift(),++this.numLogsDroppedSinceLastFlush;this.pendingEvents_.push(a);this.dispatchEvent(new Iyb(a));
this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
UE.prototype.flush=function(a,b){var c=this;if(0===this.pendingEvents_.length)a&&a();else if(this.sendBeaconApiEnabled)Jyb(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{var e=this.logRequestBuilder.build(this.pendingEvents_,this.numLogsDroppedSinceLastFlush);d={};var f=this.getAuthHeaderValue();f&&(d.Authorization=f);var h=Gyb(this);this.sessionIndex_&&(d["X-Goog-AuthUser"]=this.sessionIndex_,h=JE(h,"authuser",this.sessionIndex_));this.pageId&&
(d["X-Goog-PageId"]=this.pageId,h=JE(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 t={url:h,body:k,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,
timeoutMillis:this.timeoutMillis},x=function(K){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(K){var J=null;try{var R=JSON.parse(K.replace(")]}'\n",""));J=new SE(R)}catch(S){}J&&(K=Number(uj(J,1,"-1")),0<K&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+K),J=J.getExtension(Eyb))&&(J=Ji(J,1,-1),-1!=J&&(c.clientSpecifiedFlushInterval||Hyb(c,J)))}a&&a()},y=function(K,J){var R=Nb(e,OE,3),S=c.flushBackoff;S.currBaseValue_=Math.min(3E5,2*S.currBaseValue_);
S.currValue_=Math.min(3E5,S.currBaseValue_+Math.round(.2*(Math.random()-.5)*S.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());401===K&&f&&(c.lastFailedAuth_=f);void 0===J&&(J=500<=K&&600>K||401===K||0===K);J&&(c.pendingEvents_=R.concat(c.pendingEvents_),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",K)},F=function(){c.network_?c.network_.send(t,x,y):c.networkIOSend_(t,x,y)};q?q.then(function(K){t.requestHeaders["Content-Encoding"]=
"gzip";t.requestHeaders["Content-Type"]="application/binary";t.body=K;t.bodyType=2;F()},function(){F()}):F()}}}};UE.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment_||(this.useSendBeaconForFinalFlush&&Jyb(this),this.useGetRequestForFinalFlush&&Kyb(this),this.flush())};
var Jyb=function(a){Lyb(a,32,10,function(b,c){b=JE(b,"format","json");b=mE().navigator.sendBeacon(b,c.serialize());a.sendBeaconApiEnabled&&!b&&(a.sendBeaconApiEnabled=!1);return b})},Kyb=function(a){Lyb(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=rb(d,3);b=IE(b,"format","base64json","p",c);if(15360<b.length)return!1;(new Image).src=b;return!0})},Lyb=function(a,b,c,d){if(0!==a.pendingEvents_.length){var e=Gyb(a);
for(var f=e.search(kyb),h=0,k,q=[];0<=(k=jyb(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(myb,"$1");e=IE(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);if(!d(e,k))break;a.numLogsDroppedSinceLastFlush=0;a.pendingEvents_=a.pendingEvents_.slice(h.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},
Iyb=function(){QD.call(this,"event-logged",void 0)};X(Iyb,QD);var TE=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new RE;this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new NE)};TE.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
TE.prototype.setClientInfo=function(a){this.logRequest.setClientInfo(a);l(a,1)||m(a,1,1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),Ub(a,vyb,9)||Vb(a,9,this.uach))};TE.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};TE.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var Myb=function(a,b){var c=void 0===c?wyb:c;b(mE(),c).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();Vb(d,9,a.uach);return!0}).catch(function(){return!1})};TE.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=Ub(a,ME,11);b||(b=new ME,Vb(a,11,b));return b};TE.prototype.build=function(a,b){b=void 0===b?0:b;var c=this.logRequest.clone();var d=Date.now().toString();c=m(c,4,d);a=Mb(c,3,a);b&&m(a,14,b);return a};
g=zma.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.setClearExperimentIds=function(a){this.clearExperimentIds_=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds_=a};g.setClearcutClientInfo=function(a){this.clearcutClientInfo_=a};g.useSendBeaconForFinalFlush=function(){this.useSendBeaconForFinalFlush_=!0;return this};
g.useGetRequestForFinalFlush=function(){this.useGetRequestForFinalFlush_=!0;return this};g.setFlushIntervalMs=function(a){this.flushIntervalMs_=Math.max(a,5E3)};g.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
g.build=function(){var a=new UE(this.logSource_,this.getAuthHeaderValue_?this.getAuthHeaderValue_:up,this.sessionIndex_,this.networkIOSend_,this.destinationUrl_,this.enableServiceWorkerScope_,!1,this.disableWithCredentials_,void 0,void 0,this.network_?this.network_:void 0);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.clearExperimentIds_&&a.setClearExperimentIds(this.clearExperimentIds_);this.opaqueExperimentIds_&&a.setOpaqueExperimentIds(this.opaqueExperimentIds_);this.useSendBeaconForFinalFlush_&&(a.useSendBeaconForFinalFlush=this.useSendBeaconForFinalFlush_&&a.isSendBeaconSupported);this.useGetRequestForFinalFlush_&&(a.useGetRequestForFinalFlush=this.useGetRequestForFinalFlush_);this.flushIntervalMs_&&a.setFlushIntervalMs(this.flushIntervalMs_);this.enableSendBeaconApi_&&(a.sendBeaconApiEnabled=a.isSendBeaconSupported);
this.userAgentClientHintsProvider_&&Myb(a.logRequestBuilder,this.userAgentClientHintsProvider_);this.useConsistentTimezoneOffset&&a.setUseConsistentTimezoneOffset(!0);return a};
var WE=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;f?c=f:(f=(new zma(a)).setComponentId(b),""!=c&&(f.destinationUrl_=c),d&&(f.enableServiceWorkerScope_=!0),e&&f.setBuildLabel(e),c=f.build());this.logSource_=a;this.componentId_=b;this.transport_=c};WE.prototype.getComponentId=function(){return this.componentId_};
WE.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Kxb,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new Dxb;h=m(h,1,f.metricName_);for(var k=f,q=[],t=0;t<k.fields_.length;t++)q.push(k.fields_[t].field_name);h=Xl(h,3,q);k=[];q=[];t=n(f.cellMap_.keys());for(var x=t.next();!x.done;x=t.next())q.push(x.value.split(","));for(t=0;t<q.length;t++){x=q[t];var y=f.cellType_;for(var F=f.getCells(x)||[],K=[],J=0;J<F.length;J++){var R=F[J];R=R&&R.cellValue_;var S=new Hxb;switch(y){case 3:um(S,1,
Ixb,Number(R));break;case 2:um(S,2,Ixb,Number(R))}K.push(S)}y=K;for(F=0;F<y.length;F++){K=y[F];J=new Fxb;K=Vb(J,2,K);J=x;R=[];S=f;for(var aa=[],ba=0;ba<S.fields_.length;ba++)aa.push(S.fields_[ba].field_type);S=aa;for(aa=0;aa<S.length;aa++){ba=S[aa];var ka=J[aa],wa=new Gxb;switch(ba){case 3:um(wa,1,AE,String(ka));break;case 2:um(wa,2,AE,Number(ka));break;case 1:um(wa,3,AE,"true"==ka)}R.push(wa)}Mb(K,1,R);k.push(K)}}Mb(h,4,k);c.push(h);e.clear()}Mb(b,1,c);VE(this.transport_,b);this.transport_.flush()}};
var Nyb=new Md("PRODUCTION_WHITELIST",{factory:function(){return"g3g-sidebar mdkmkbpoljeogkhbjlehikpbpdmfaopg dcdkpimnclfoiknojhlfjhinjmiclmeo devfuse.corp.google.com g3c.corp.google.com taskflow.corp.google.com partnerdash.google.com fusion2.corp.google.com b.corp.google.com critique-ng.corp.google.com critique.corp.google.com source.corp.google.com coreiq.corp.google.com perfgate.googleplex.com bugobserver.corp.google.com launch.corp.google.com prod.google.com analog-ng.corp.google.com pprofng.corp.google.com".split(" ")}}),
Oyb=new Md("STREAMZ_PRODUCT_IDENTIFIER"),Pyb=new Md("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return Rc(Mf).runOutsideAngular(function(){var a=new WE(1503);a=new vxb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);return a})}}),XE=function(a,b,c,d){this.streamzService=a;this.zone=b;this.productionWhitelist=c;this.oneDeveloperWorkflowUsageMetrics=new yxb(this.streamzService);new zxb(this.streamzService);new Axb(this.streamzService);new Bxb(this.streamzService);
this.productIdentifier=d||window.location.hostname},YE=function(a,b,c){a.zone.runOutsideAngular(function(){Qyb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,c)})},Qyb=function(a){return a.productionWhitelist.some(function(b){return a.productIdentifier.includes(b)})};XE.\u0275fac=function(a){return new (a||XE)(p(Pyb),p(Mf),p(Nyb),p(Oyb,8))};XE.\u0275prov=Hc({token:XE,factory:XE.\u0275fac,providedIn:"root"});
var Ryb=new Md("Feature Tooltip Controller Config"),ZE=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(XE):void 0;this.lastTooltipKey="onedev.lastTooltipTime."+this.config.productName;var d;this.config.shownMetricName=null!=(d=this.config.shownMetricName)?d:"tooltipShown";var e;this.config.hiddenMetricName=null!=(e=this.config.hiddenMetricName)?e:"tooltipHidden"},Syb=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(C(function(b){return null===
b?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};ZE.prototype.hideTooltip=function(a){var b;null==(b=this.clientStreamzService)||YE(b,this.config.hiddenMetricName,!0);(0,W.forkJoin)([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue($E(this,a),"HIDDEN")]).pipe(wf())};
var Tyb=function(a,b){a.keyValueStore.getValue($E(a,b)).pipe(hf(function(c){return"SHOWING"!==c})).subscribe(function(){a.keyValueStore.setValue($E(a,b),"HIDDEN")})},aF=function(a,b,c){var d=c.map(function(e){return $E(a,e)});return a.keyValueStore.getValues(d).pipe(C(function(e){return Uyb(a,b,c,e)}))};
ZE.prototype.showTooltip=function(a){var b;null==(b=this.clientStreamzService)||YE(b,this.config.shownMetricName,!0);(0,W.forkJoin)([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue($E(this,a),"SHOWING")]).pipe(wf())};var Uyb=function(a,b,c,d){return c.filter(function(e){e=d.get($E(a,e));return e===b||"UNSEEN"===b&&null===e})},$E=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
ZE.\u0275fac=function(a){return new (a||ZE)(p(Ryb),p(KD),p(dl))};ZE.\u0275prov=Hc({token:ZE,factory:ZE.\u0275fac,providedIn:JD});
var bF=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=(0,W.of)(void 0);this.destroyed$=new W.ReplaySubject;this.getCurrentlyShowingTooltips=function(){return aF(b.featureTooltipService,"SHOWING",Vyb(b))}};
bF.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(Df(this.getCurrentlyShowingTooltips),Df(function(c){return 0<c.length?(0,W.of)(c[0]):(0,W.of)(void 0).pipe(Wyb(a),Xyb(a))}),C(function(c){return Yyb(a,c)}),hf(function(c){return!!c}),C(function(c){return c}),Af({bufferSize:1,refCount:!0}));Zyb(this,b);b.pipe(Ef(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};bF.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var Wyb=function(a){return(0,W.pipe)(Df(function(){return Syb(a.featureTooltipService)}),hf(W.identity))},Xyb=function(a){return(0,W.pipe)(Df(function(){return aF(a.featureTooltipService,"UNSEEN",Vyb(a))}),hf(function(b){return 0<b.length}),C(function(b){return b[0]}))},Zyb=function(a,b){b.pipe(Df(function(c){return c.dismiss.pipe(wf(c.tooltipId))}),Ef(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},Vyb=function(a){return a.tooltips.map(function(b){return b.tooltipId})},
Yyb=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===b})};bF.\u0275fac=function(a){return new (a||bF)(B(ZE))};bF.\u0275cmp=u({type:bF,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&Ag(c,HD,4);if(a&2){var d;yg(d=Bg())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var cF=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};cF.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){n(b).next().value.isIntersecting?Yvb(a.anchorService,a.tooltipId,a.element):Zvb(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):Yvb(this.anchorService,this.tooltipId,this.element)};
cF.prototype.ngOnDestroy=function(){Zvb(this.anchorService,this.tooltipId);var a;null==(a=this.intersectionObserver)||a.disconnect()};cF.\u0275fac=function(a){return new (a||cF)(B(BD),B(Rd))};cF.\u0275dir=u({type:cF,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:["onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"}});
var dF=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){Tyb(d.featureTooltipService,d.tooltipId)}};dF.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};dF.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};
ni.Object.defineProperties(dF.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b;null==(b=this.unsubscribeFromEvent)||b.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,this.preventTooltipFromShowing)}}});dF.\u0275fac=function(a){return new (a||dF)(B(ZE),B(tw),B(Rd))};dF.\u0275dir=u({type:dF,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:["onedevTooltipPreventer","tooltipId"],event:["onedevPreventTooltipOn","event"]}});
var $yb=new Md("TooltipAnchor"),azb=new Md("TooltipPeventer"),eF=function(a,b,c,d,e,f){this.featureTooltipService=a;this.anchorService=b;this.elementRef=c;this.renderer=d;this.anchorClass=e;this.preventerClass=f;this.tooltipPreventer=new this.preventerClass(this.featureTooltipService,this.renderer,this.elementRef);this.tooltipAnchor=new this.anchorClass(this.anchorService,this.elementRef)};eF.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
eF.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};ni.Object.defineProperties(eF.prototype,{tooltipId:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.tooltipId=a;this.tooltipAnchor.tooltipId=a}},hideTooltipWhenAnchorNotVisible:{configurable:!0,enumerable:!0,set:function(a){this.tooltipAnchor.hideTooltipWhenAnchorNotVisible=a}},event:{configurable:!0,enumerable:!0,set:function(a){this.tooltipPreventer.event=a}}});
eF.\u0275fac=function(a){return new (a||eF)(B(ZE),B(BD),B(Rd),B(tw),B($yb),B(azb))};eF.\u0275dir=u({type:eF,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:["onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:["onedevPreventTooltipOn","event"]},features:[mg([{provide:$yb,useValue:cF},{provide:azb,useValue:dF}])]});
var fF=function(){this.className="gmat-subtitle-1 tooltip-title"};fF.\u0275fac=function(a){return new (a||fF)};fF.\u0275dir=u({type:fF,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&$f(b.className)}});
var bzb=Jh("transformMenu",[Mh("void",Lh({opacity:0,transform:"scale(0.8)"})),Nh("void => enter",Kh("120ms cubic-bezier(0, 0, 0.2, 1)",Lh({opacity:1,transform:"scale(1)"}))),Nh("* => void",Kh("100ms 25ms linear",Lh({opacity:0})))]),czb=Jh("fadeInItems",[Mh("showing",Lh({opacity:1})),Nh("void => *",[Lh({opacity:0}),Kh("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var dzb=new Md("MatMenuContent"),gF=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 W.Subject};
gF.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new xz(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new zz(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()};
gF.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};gF.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};gF.\u0275fac=function(a){return new (a||gF)(B(vg),B(qw),B(Sx),B(dl),B(wg),B(li),B(Xx))};gF.\u0275dir=u({type:gF});
var ezb=new Md("MAT_MENU_PANEL");
var fzb=[[["mat-icon"]],"*"],gzb=pi(qi(function(){})),hF=function(a,b,c,d,e){var f=gzb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new W.Subject;f._focused=new W.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};X(hF,gzb);g=hF.prototype;
g.focus=function(a,b){this._focusMonitor&&a?tz(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()};hF.\u0275fac=function(a){return new (a||hF)(B(Rd),B(li),B(sz),B(ezb,8),B(Xx))};
hF.\u0275cmp=u({type:hF,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(a,b){a&1&&M("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(Uf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),Zf("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:[Of],attrs:["mat-menu-item",""],ngContentSelectors:["mat-icon","*"],decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,
b){a&1&&(fg(fzb),gg(0),E(1,"span",0),gg(2,1),G(),H(3,"div",1),P(4,Ama,2,0,"svg",2));a&2&&(A(3),D("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),A(1),D("ngIf",b._triggersSubmenu))},dependencies:[gy,UB],encapsulation:2,changeDetection:0});
var hzb=0,izb=new Md("mat-menu-default-options",{providedIn:"root",factory:Bma}),iF=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._defaultOptions=c;this._changeDetectorRef=d;this._xPosition=this._defaultOptions.xPosition;this._yPosition=this._defaultOptions.yPosition;this._directDescendantItems=new Cg;this._classList={};this._panelAnimationState="void";this._animationDone=new W.Subject;this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"";this.backdropClass=this._defaultOptions.backdropClass;
this._overlapTrigger=this._defaultOptions.overlapTrigger;this._hasBackdrop=this._defaultOptions.hasBackdrop;this.close=this.closed=new sx;this.panelId="mat-menu-panel-"+hzb++};g=iF.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=RA(QA(OA(new WA(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(Cf(this._directDescendantItems),Df(function(b){return W.merge.apply(null,r(b.map(function(c){return c._focused})))})).subscribe(function(b){return SA(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(Cf(this._directDescendantItems),Df(function(a){return W.merge.apply(null,r(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:xh(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:if(38===b||40===b)c._origin="keyboard";c.onKeydown(a);return}a.stopPropagation()};
var jzb=function(a,b){b=void 0===b?"program":b;var c;null==(c=a._firstItemFocusSubscription)||c.unsubscribe();a._firstItemFocusSubscription=a._ngZone.onStable.pipe(sf()).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;e._origin=b;TA(e);!e.activeItem&&d&&d.focus()}})};g=iF.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(Cf(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));xg(a._directDescendantItems)})};
ni.Object.defineProperties(iF.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=rh(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=rh(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}}});
iF.\u0275fac=function(a){return new (a||iF)(B(Rd),B(Mf),B(izb),B(Xx))};
iF.\u0275dir=u({type:iF,contentQueries:function(a,b,c){a&1&&(Ag(c,dzb,5),Ag(c,hF,5),Ag(c,hF,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 kzb=new Md("mat-menu-scroll-strategy"),lzb={provide:kzb,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},mzb=kh({passive:!0}),jF=function(a,b,c,d,e,f,h,k,q){var t=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=W.Subscription.EMPTY;this._handleTouchStart=
function(x){wh(x)||(t._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new sx;this.onMenuClose=this.menuClosed=new sx;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof iF?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,mzb)};jF.prototype.ngAfterContentInit=function(){this._handleHover()};
jF.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mzb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};
var kF=function(a){return!!(a._menuItemInstance&&a._parentMaterialMenu&&a.menu)},Kq=function(a){var b=a.menu;if(!a._menuOpen&&b){var c=a._createOverlay(b),d=c.getConfig(),e=d.positionStrategy;a._setPosition(b,e);d.hasBackdrop=null==b.hasBackdrop?!kF(a):b.hasBackdrop;c.attach(a._getPortal(b));b.lazyContent&&b.lazyContent.attach(a.menuData);a._closingActionsSubscription=a._menuClosingActions().subscribe(function(){return a.closeMenu()});a._initMenu(b);b instanceof iF&&(b._startAnimation(),b._directDescendantItems.changes.pipe(Ef(b.close)).subscribe(function(){cub(yB(e,
!1));yB(e,!0)}))}};g=jF.prototype;g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?tz(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&&kF(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof iF)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(hf(function(e){return"void"===e.toState}),sf(),Ef(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=kF(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);jzb(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){(this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit();kF(this)&&this._menuItemInstance._setHighlighted(a)};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 rB({positionStrategy:fub(eub(yB(CB(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=n("before"===a.xPosition?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=n("above"===a.yPosition?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=n([f,e]),k=h.next().value;h=h.next().value;var q=n([d,c]),t=q.next().value;q=q.next().value;var x=0;kF(this)?(q=d="before"===a.xPosition?"start":"end",c=t="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");uB(b,[{originX:d,originY:k,overlayX:t,overlayY:f,offsetY:x},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:x},{originX:d,originY:h,overlayX:t,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,W.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(hf(function(f){return f!==a._menuItemInstance}),hf(function(){return a._menuOpen})):(0,W.of)();return(0,W.merge)(b,d,e,c)};g._handleMousedown=function(a){vh(a)||(this._openedBy=0===a.button?"mouse":void 0,kF(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";kF(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",Kq(this))};g._handleClick=function(a){kF(this)?(a.stopPropagation(),Kq(this)):this._menuOpen?this.closeMenu():Kq(this)};
g._handleHover=function(){var a=this;kF(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(hf(function(b){return b===a._menuItemInstance&&!b.disabled}),qf(0,W.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof iF&&a.menu._isAnimating?a.menu._animationDone.pipe(sf(),qf(0,W.asapScheduler),Ef(a._parentMaterialMenu._hovered())).subscribe(function(){return Kq(a)}):Kq(a)}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new xz(a.templateRef,this._viewContainerRef));return this._portal};
ni.Object.defineProperties(jF.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(kF(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"}}});jF.\u0275fac=function(a){return new (a||jF)(B(DB),B(Rd),B(wg),B(kzb),B(ezb,8),B(hF,10),B(XA,8),B(sz),B(Mf))};
jF.\u0275dir=u({type:jF,hostVars:3,hostBindings:function(a,b){a&1&&M("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&Uf("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 lF=function(){gF.apply(this,arguments)};X(lF,gF);lF.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(lF)))(b||lF)}}();lF.\u0275dir=u({type:lF,selectors:[["ng-template","matMenuContent",""]],features:[mg([{provide:dzb,useExisting:lF}]),Of]});
var mF=function(){return hF.apply(this,arguments)||this};X(mF,hF);mF.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(mF)))(b||mF)}}();
mF.\u0275cmp=u({type:mF,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(a,b){a&2&&(Uf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null),Zf("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:[mg([{provide:hF,useExisting:mF}]),Of],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",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(a,b){a&1&&(fg(),
gg(0),H(1,"div",0),P(2,Cma,2,0,"svg",1));a&2&&(A(1),D("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),A(1),D("ngIf",b._triggersSubmenu))},dependencies:[gy,UB],encapsulation:2,changeDetection:0});
var nF=function(){jF.apply(this,arguments)};X(nF,jF);nF.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(nF)))(b||nF)}}();nF.\u0275dir=u({type:nF,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Of]});
var oF=function(a,b,c,d){iF.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};X(oF,iF);oF.\u0275dir=iF.\u0275dir;oF.\u0275fac=function(a){return new (a||oF)(B(Rd),B(Mf),B(izb),B(Xx))};
oF.\u0275cmp=u({type:oF,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(a){a&2&&Uf("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[mg([{provide:ezb,useExisting:oF}]),Of],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&&(fg(),P(0,Dma,3,6,"ng-template"))},dependencies:[ey],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:[bzb,czb]},changeDetection:0});
var pF=function(){};pF.\u0275fac=function(a){return new (a||pF)};pF.\u0275mod=Yc({type:pF});pF.\u0275inj=Ic({providers:[lzb],imports:[vy,HB,XB,GB,oB,HB]});
var nzb=new Md("mat-tooltip-scroll-strategy"),ozb={provide:nzb,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},pzb=new Md("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),qzb=kh({passive:!0}),qF=function(a,b,c,d,e,f,h,k,q,t,x,y){var F=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=t;this._defaultOptions=x;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._viewportMargin=8;this._cssClassPrefix="mat";this._showDelay=this._defaultOptions.showDelay;this._hideDelay=this._defaultOptions.hideDelay;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new W.Subject;this._scrollStrategy=q;this._document=y;x&&(x.position&&(this.position=x.position),
x.positionAtOrigin&&(this.positionAtOrigin=x.positionAtOrigin),x.touchGestures&&(this.touchGestures=x.touchGestures));t.change.pipe(Ef(this._destroyed)).subscribe(function(){F._overlayRef&&F._updatePosition(F._overlayRef)})};g=qF.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Ef(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=n(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,qzb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();IA(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 wz(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b._onHide.pipe(Ef(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 Rd)return this._overlayRef;this._detach()}c=Ttb(this._scrollDispatcher,this._elementRef);a=dub(vB(wB(fub(CB(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),".mat-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(Ef(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(Ef(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(Ef(this._destroyed)).subscribe(function(){var e;
return null==(e=b._tooltipInstance)?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Ef(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&27===e.keyCode&&!xh(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();uB(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(sf(),Ef(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,r(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=n(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,qzb)})};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"}};
ni.Object.defineProperties(qF.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=rh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=rh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=uh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=uh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;IA(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(){HA(b._ariaDescriber,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)}}});qF.\u0275fac=function(){Vd()};
qF.\u0275dir=u({type:qF,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 rF=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new W.Subject;this._animationsDisabled="NoopAnimations"===b};g=rF.prototype;g.show=function(a){var b=this;clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};g.hide=function(a){var b=this;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(){clearTimeout(this._showTimeoutId);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))};
rF.\u0275fac=function(a){return new (a||rF)(B(Xx),B(Ew,8))};rF.\u0275dir=u({type:rF});
/*

 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 rzb=["tooltip"],tF=function(a,b,c,d,e,f,h,k,q,t,x,y){qF.call(this,a,b,c,d,e,f,h,k,q,t,x,y);this._tooltipComponent=sF};X(tF,qF);tF.\u0275fac=function(a){return new (a||tF)(B(DB),B(Rd),B(hB),B(wg),B(Mf),B(hz),B(GA),B(sz),B(nzb),B(XA,8),B(pzb,8),B(li))};tF.\u0275dir=u({type:tF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Of]});
var sF=function(a,b,c){rF.call(this,a,c);this._breakpointObserver=b;this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)");this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide"};X(sF,rF);sF.\u0275dir=rF.\u0275dir;sF.\u0275fac=function(a){return new (a||sF)(B(Xx),B(yA),B(Ew,8))};
sF.\u0275cmp=u({type:sF,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&zg(rzb,7);if(a&2){var c;yg(c=Bg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,b){a&1&&M("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&Yf("zoom",b.isVisible()?1:null)},features:[Of],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(E(0,"div",0,1),M("animationend",function(d){return b._handleAnimationEnd(d)}),
U(2,"async"),Q(3),G());if(a&2){var c;Zf("mat-tooltip-handset",null==(c=V(2,4,b._isHandset))?null:c.matches);D("ngClass",b.tooltipClass);A(3);kg(b.message)}},dependencies:[ey,ny],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 uF=function(){};uF.\u0275fac=function(a){return new (a||uF)};uF.\u0275mod=Yc({type:uF});uF.\u0275inj=Ic({imports:[HB,HB]});
var szb=new Md("g3cWidgetTaskManagementServicePromiseClient"),tzb=new Md("g3cWidgetUserPrefsServicePromiseClient"),vF=new Md("g3cWidgetServiceConfig");
var wF=function(a){Y.call(this,a)};X(wF,Y);wF.prototype.getTypeName=function(){return Pi(this,1).split("/").pop()};wF.prototype.getValue=function(){if(Array.isArray(l(this,2)))throw Error("S");return Nsa(this,2)};wF.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=m(this,2,tb(a,Vaa,uaa));else if("string"===typeof a||a instanceof hb||Ra(a))Eb(this),a=jb(a,!1),null==a||a.isEmpty()?wb(this,2,void 0,!1):wb(this,2,a),a=this;else throw Error("T`"+a);return a};
var uzb=function(a){Y.call(this,a)};X(uzb,Y);
var vzb=function(a){Y.call(this,a)};X(vzb,Y);var wzb=[2];
var xF=function(a){Y.call(this,a)};X(xF,Y);xF.prototype.getId=function(){return Pi(this,1)};xF.prototype.setId=function(a){return Hb(this,1,a)};xF.prototype.getVersion=function(){return Pi(this,2)};xF.prototype.setVersion=function(a){return Hb(this,2,a)};
var yF=function(a){Y.call(this,a)};X(yF,Y);yF.prototype.getName=function(){return Pi(this,1)};yF.prototype.setName=function(a){return Hb(this,1,a)};
var zF=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.config=c;(0,W.defer)(function(){var e=(new yF).setName("keys/2");return(0,W.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,d.getHeaders()))}).pipe(C(function(e){return(e=Hl(e.getUserPrefs()||new vzb,uzb,2,wzb))?12096E5>=Date.now()-Aj(e,21):!1}),Af(1))};
zF.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:up([])||"","X-Goog-AuthUser":"0"}};zF.\u0275fac=function(a){return new (a||zF)(p(tzb),p(szb),p(vF,8))};zF.\u0275prov=Hc({token:zF,factory:zF.\u0275fac,providedIn:"root"});
var AF=function(){};AF.\u0275fac=function(a){return new (a||AF)};AF.\u0275mod=Yc({type:AF});AF.\u0275inj=Ic({imports:[XB,HB,HB]});
var BF=function(){};BF.\u0275fac=function(a){return new (a||BF)};BF.\u0275mod=Yc({type:BF});BF.\u0275inj=Ic({imports:[FA,AD,vy,JD,AF,uF,GB,ED]});
var xzb=function(a){Y.call(this,a)};X(xzb,Y);
var yzb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};yzb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};yzb.prototype.getMetadata=function(){return this.metadata_};
var CF=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};CF.prototype.getMetadata=function(){return this.metadata_};CF.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};CF.prototype.getStatus=function(){return this.status_};
var DF=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},zzb=function(a,b,c){c=void 0===c?{}:c;return new yzb(b,a,c)};DF.prototype.getName=function(){return this.name};DF.prototype.getName=DF.prototype.getName;
var Azb=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}};
var EF=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};X(EF,Error);EF.prototype.name="RpcError";
var Bzb=Promise;
var FF=function(a){Y.call(this,a,-1,Czb)};X(FF,Y);FF.prototype.getCode=function(){return Ji(this,1)};FF.prototype.setCode=function(a){return Fb(this,1,a,0)};FF.prototype.getMessage=function(){return Pi(this,2)};FF.prototype.setMessage=function(a){return Hb(this,2,a)};var Czb=[3];
var GF=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_&&Dzb(this)},Gzb=function(a,b){xp(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("Ob");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_;var e=d(c,fnb)}catch(f){HF(a,new EF(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}d=Azb(a.xhr_.getStatus());IF(a,JF(a));0==d?Ezb(a,e):HF(a,new EF(d,"Xhr succeeded but the status code is not 200"))}else e=a.xhr_.getResponseText(),c={},e?(c=Fzb(a,e),e=c.code,d=c.details,c=c.metadata):(e=2,d="Rpc failed due to xhr error. error code: "+a.xhr_.getLastErrorCode()+", error: "+a.xhr_.getLastError()),IF(a,JF(a)),HF(a,new EF(e,d,c))})},Dzb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_;var e=d(c,fnb)}catch(f){HF(a,new EF(13,"Error when deserializing response data; error: "+f+(", response: "+c)))}e&&Ezb(a,e)}if("2"in b)for(b=Fzb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){IF(a,JF(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=Azb(c);break;default:d=14}IF(a,JF(a));b=$xb(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);HF(a,new EF(d,b))}})},JF=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},Fzb=function(a,b){var c=2,d={};try{var e=Oo(FF,b);c=e.getCode();var f=e.getMessage();Nb(e,
wF,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}};GF.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 KF=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};GF.prototype.removeListener=function(a,b){"data"==a?KF(this.onDataCallbacks_,b):"metadata"==a?KF(this.onMetadataCallbacks_,b):"status"==a?KF(this.onStatusCallbacks_,b):"end"==a?KF(this.onEndCallbacks_,b):"error"==a&&KF(this.onErrorCallbacks_,b);return this};GF.prototype.cancel=function(){this.xhr_.abort()};
var Ezb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},IF=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},HF=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};GF.prototype.cancel=GF.prototype.cancel;GF.prototype.removeListener=GF.prototype.removeListener;GF.prototype.on=GF.prototype.on;
var LF=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};ev(LF,GE);LF.prototype.createInstance=function(){var a=new MF(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};LF.prototype.internalGetOptions=Wv({});LF.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
LF.prototype.setCacheMode=function(a){this.cacheMode_=a};var MF=function(a,b){wp.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};
ev(MF,wp);MF.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Pb");this.method_=a;this.url_=b;this.readyState=1;NF(this)};MF.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Qb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||ea).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
MF.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,OF(this));this.readyState=0};
MF.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,NF(this)),this.inProgress_&&(this.readyState=3,NF(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof ea.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Rb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;Hzb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var Hzb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
MF.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?OF(this):NF(this);3==this.readyState&&Hzb(this)}};MF.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,OF(this))};
MF.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,OF(this))};MF.prototype.handleSendFailure_=function(){this.inProgress_&&OF(this)};var OF=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;NF(a)};g=MF.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 NF=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(MF.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});
var Izb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Ha(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},PF=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(Ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Hba(a)},Jzb=
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(Ha(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}}},QF=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Ha(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=Jzb(a),e=PF(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},Kzb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Ha(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=Jzb(a),e=PF(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};
var Ep=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Ep?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,RF(this,a.scheme_),this.setUserInfo(a.getUserInfo()),SF(this,a.getDomain()),TF(this,a.port_),this.setPath(a.getPath()),UF(this,a.queryData_.clone()),VF(this,a.fragment_)):a&&(c=String(a).match(cyb))?(this.ignoreCase_=!!b,RF(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),SF(this,c[3]||"",!0),TF(this,c[4]),
this.setPath(c[5]||"",!0),UF(this,c[6]||"",!0),VF(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new WF(null,this.ignoreCase_))};
Ep.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(XF(b,Lzb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(XF(b,Lzb,!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(XF(c,"/"==c.charAt(0)?Mzb:Nzb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",XF(c,Ozb));return a.join("")};
Ep.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?RF(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?SF(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)TF(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(ia(e,"./")||ia(e,"/.")){d=Zi(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?UF(b,a.queryData_.clone()):c=!!a.fragment_;c&&VF(b,a.fragment_);return b};Ep.prototype.clone=function(){return new Ep(this)};var RF=function(a,b,c){a.scheme_=c?YF(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Ep.prototype.getUserInfo=function(){return this.userInfo_};
Ep.prototype.setUserInfo=function(a,b){this.userInfo_=b?YF(a):a;return this};Ep.prototype.hasUserInfo=function(){return!!this.userInfo_};Ep.prototype.getDomain=function(){return this.domain_};var SF=function(a,b,c){a.domain_=c?YF(b,!0):b;return a},TF=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Sb`"+b);a.port_=b}else a.port_=null;return a};Ep.prototype.getPath=function(){return this.path_};Ep.prototype.setPath=function(a,b){this.path_=b?YF(a,!0):a;return this};
Ep.prototype.hasPath=function(){return!!this.path_};Ep.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var UF=function(a,b,c){b instanceof WF?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=XF(b,Pzb)),a.queryData_=new WF(b,a.ignoreCase_));return a};Ep.prototype.setQuery=function(a){return UF(this,a)};Ep.prototype.getQuery=function(){return this.queryData_.toString()};
var ZF=function(a,b,c){a.queryData_.set(b,c);return a},$F=function(a,b){return a.queryData_.get(b)},VF=function(a,b,c){a.fragment_=c?YF(b):b;return a},aG=function(a){ZF(a,"zx",hw());return a};Ep.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Ep.prototype.isReadOnly=function(){return!1};Ep.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var bG=function(a,b){return a instanceof Ep?a.clone():new Ep(a,b)},Qzb=function(a,b,c,d,e){var f=new Ep(null);a&&RF(f,a);b&&f.setUserInfo(b);c&&SF(f,c);d&&TF(f,d);e&&f.setPath(e);return f},YF=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},XF=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Rzb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Rzb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Lzb=
/[#\/\?@]/g,Nzb=/[#\?:]/g,Mzb=/[#\?]/g,Pzb=/[#\?@]/g,Ozb=/#/g,WF=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},cG=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&eyb(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=WF.prototype;g.getCount=function(){cG(this);return this.count_};
g.add=function(a,b){cG(this);this.encodedQuery_=null;a=dG(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){cG(this);a=dG(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(){cG(this);return 0==this.count_};g.containsKey=function(a){cG(this);a=dG(this,a);return this.keyMap_.has(a)};
g.containsValue=function(a){var b=this.getValues();return ya(b,a)};g.forEach=function(a,b){cG(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){cG(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){cG(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get(dG(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){cG(this);this.encodedQuery_=null;a=dG(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(dG(this,a),Ga(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 WF;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var dG=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};WF.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(cG(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};
WF.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)QF(arguments[b],function(c,d){this.add(d,c)},this)};
var Szb=function(a){var b="";Yb(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},eG=function(a,b,c){if($b(c))return a;c=Szb(c);if("string"===typeof a)return JE(a,encodeURIComponent(String(b)),c);ZF(a,b,c);return a};
var ar=function(a){OD.call(this);this.handler_=a;this.keys_={}};ev(ar,OD);var Tzb=[];ar.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Tzb[0]=b.toString()),b=Tzb);for(var e=0;e<b.length;e++){var f=xp(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};ar.prototype.listenOnce=function(a,b,c,d){return Uzb(this,a,b,c,d)};
var Uzb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Uzb(a,b,c[h],d,e,f);else{b=YD(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
ar.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=La(d)?!!d.capture:!!d,e=e||this.handler_||this,c=ZD(c),d=!!d,b=VD(a)?a.getListener(b,c,d,e):a?(a=$D(a))?a.getListener(b,c,d,e):null:null,b&&(bE(b),delete this.keys_[b.key]);return this};ar.prototype.removeAll=function(){Yb(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&bE(a)},this);this.keys_={}};
ar.prototype.disposeInternal=function(){ar.superClass_.disposeInternal.call(this);this.removeAll()};ar.prototype.handleEvent=function(){throw Error("Ub");};
var Vzb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};Vzb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("Vb`"+this.streamPos_+"`"+b+"`"+a);};
Vzb.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=Wnb(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 Di=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};Di.prototype.getErrorMessage=function(){return this.errorMessage_};Di.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_);};Di.prototype.acceptsBinaryInput=function(){return!0};
Di.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("Wb`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return 0<a.length?a:null};
var Ei=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new Vzb;this.pbParser_=new Di};Ei.prototype.getErrorMessage=function(){return this.errorMessage_};Ei.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Ei.prototype.acceptsBinaryInput=function(){return!1};
Ei.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 fG=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
var Ema=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)},Wzb={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=Ema.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(;F<a.length;)if(fG(a[F]))F++,f.pos_++;else break;return F<t}function c(){for(var J;;){J=a[F++];if(!J)break;f.pos_++;switch(f.state_){case q.INIT:"{"===J?f.state_=q.OBJECT_OPEN:"["===J?f.state_=q.ARRAY_OPEN:fG(J)||f.error_(a,F);continue;case q.KEY_START:case q.OBJECT_OPEN:if(fG(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,F);continue;case q.KEY_END:case q.OBJECT_END:if(fG(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,F);continue;case q.ARRAY_OPEN:case q.VALUE:if(fG(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,F));continue;case q.ARRAY_END:if(","===J)h.push(q.ARRAY_END),f.state_=q.VALUE,1===f.depth_&&(y=F);else if("]"===J){f.depth_--;if(0===f.depth_)return;e();f.state_=d()}else if(fG(J))continue;else f.error_(a,F);continue;case q.STRING:var R=F;a:for(;;){for(;0<f.unicodeCount_;)if(J=a[F++],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[F++],!J))break;if(f.slashed_)if(f.slashed_=!1,"u"===J&&(f.unicodeCount_=1),J=a[F++])continue;else break;k.lastIndex=F;J=k.exec(a);if(!J){F=a.length+1;break}F=J.index+1;J=a[J.index];if(!J)break}f.pos_+=F-R;continue;case q.TRUE1:if(!J)continue;"r"===J?f.state_=q.TRUE2:f.error_(a,F);continue;case q.TRUE2:if(!J)continue;"u"===J?f.state_=q.TRUE3:f.error_(a,F);continue;case q.TRUE3:if(!J)continue;"e"===J?
f.state_=d():f.error_(a,F);continue;case q.FALSE1:if(!J)continue;"a"===J?f.state_=q.FALSE2:f.error_(a,F);continue;case q.FALSE2:if(!J)continue;"l"===J?f.state_=q.FALSE3:f.error_(a,F);continue;case q.FALSE3:if(!J)continue;"s"===J?f.state_=q.FALSE4:f.error_(a,F);continue;case q.FALSE4:if(!J)continue;"e"===J?f.state_=d():f.error_(a,F);continue;case q.NULL1:if(!J)continue;"u"===J?f.state_=q.NULL2:f.error_(a,F);continue;case q.NULL2:if(!J)continue;"l"===J?f.state_=q.NULL3:f.error_(a,F);continue;case q.NULL3:if(!J)continue;
"l"===J?f.state_=d():f.error_(a,F);continue;case q.NUM_DECIMAL_POINT:"."===J?f.state_=q.NUM_DIGIT:f.error_(a,F);continue;case q.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(J))continue;else F--,f.pos_--,f.state_=d();continue;default:f.error_(a,F)}}}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,F):a.substring(y,F)),f.deliverMessageAsRawString_?f.result_.push(J):f.result_.push(JSON.parse(J)),y=F)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=Wzb,t=a.length,x=0,y=-1,F=0;F<t;)switch(f.streamState_){case 3:return f.error_(a,F),null;case 2:return b()&&f.error_(a,F),null;case 0:if(b()){var K=a[F++];f.pos_++;if("["===K){f.streamState_=1;x=F;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,F)}return null;case 1:return c(),0===f.depth_&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(F)):f.buffer_=-1===y?f.buffer_+a.substring(x):a.substring(y),0<f.result_.length?(K=f.result_,f.result_=[],K):null}return null};
var Ci=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Ci.prototype.getErrorMessage=function(){return this.errorMessage_};Ci.prototype.acceptsBinaryInput=function(){return!1};
Ci.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 Ema({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var t=0;t<q.length;t++){var x={};x[1]=q[t];f.result_.push(x)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var t={};t[2]=q[0];f.result_.push(t)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!fG(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 gG=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 ar(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};gG.prototype.getXhr=function(){return this.xhr_};
var hG=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},iG=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};gG.prototype.getStatus=function(){return this.status_};
gG.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?hG(this,7):7==c?hG(this,8):d||hG(this,3)),this.parser_||(this.parser_=Fma(this.xhr_),
null==this.parser_&&hG(this,5)),2<this.status_)iG(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("Xb");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){hG(this,5);
iG(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var t=this.parser_.parse(k);null!=t&&this.dataHandler_&&this.dataHandler_(t)}catch(x){hG(this,5);iG(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?hG(this,2):hG(this,4),iG(this)):hG(this,1)}}}catch(x){hG(this,6),iG(this)}};
var jG=function(a){this.xhrReader_=a;a=bv(this.onData_,this);this.xhrReader_.dataHandler_=a;a=bv(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=jG.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&&Ea(c,b);(a=this.callbackOnceMap_[a])&&Ea(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&&Xzb(this,a,b);(b=this.callbackOnceMap_.data)&&Xzb(this,a,b);this.callbackOnceMap_.data=[]};
var Xzb=function(a,b,c){for(var d={},e=0;e<b.length;d={$jscomp$loop$prop$message$1917:d.$jscomp$loop$prop$message$1917},e++)d.$jscomp$loop$prop$message$1917=b[e],c.forEach(function(f){return function(h){try{h(f.$jscomp$loop$prop$message$1917)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};
jG.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:kG(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kG(this,"error");break;case 8:kG(this,"close");break;case 2:kG(this,"end")}};var kG=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]=[]};jG.prototype.handleError_=function(){};
var lG=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||sp("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||sp("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},$zb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Yzb(function(h){return new Bzb(function(k,q){var t=
{},x=Zzb(a,h,f);x.on("error",function(y){return q(y)});x.on("metadata",function(y){t=y});x.on("data",function(y){var F=t;F=void 0===F?{}:F;k(new CF(y,h.getMethodDescriptor(),F))})})},a.unaryInterceptors_).call(a,zzb(e,c,d)).then(function(h){return h.responseMessage_})},mG=function(a,b,c,d,e){return $zb(a,b,c,d,e)};
lG.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Yzb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),t=aAb(e,!1);q=bAb(e,q,t,f+k.getName());var x=cAb(t,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);t.send(q,"POST",h);return x},this.streamInterceptors_).call(this,zzb(d,b,c))};
var Zzb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=aAb(a,!0);a=bAb(a,e,f,c+d.getName());c=cAb(f,d.responseDeserializeFn,!1);Gzb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},aAb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new KE(new LF({worker:a.workerScope_,streamBinaryChunks:b})):new KE},bAb=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=eG(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d},cAb=function(a,b,c){if(c)if(!hv||10<=Number(lv)){c=new gG(a);var d=new jG(c)}else d=null;return new GF({xhr:a,nodeReadableStream:d},b)},Yzb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,
e)}});return c};
var dAb=function(a){this.client_=new lG({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};
var nG=function(a){Y.call(this,a)};X(nG,Y);nG.prototype.getUserPrefs=function(){return Ub(this,vzb,1)};
var eAb=new DF("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",yF,nG,function(a){return a.serialize()},function(a){return Oo(nG,a)});
var oG=function(a){Y.call(this,a,-1,fAb)};X(oG,Y);var fAb=[1];
var gAb=function(a){this.client_=new lG({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};gAb.prototype.getUserPrefs=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},eAb)};
var pG=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},qG=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new sx;this.dateInput=new sx;this.stateChanges=new W.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=W.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=KB(d._dateAdapter,LB(d._dateAdapter,e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=KB(d._dateAdapter,LB(d._dateAdapter,e.value));var f=d._rangeInput.min;return!f||!e||0>=MB(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=KB(d._dateAdapter,LB(d._dateAdapter,e.value));var f=d._rangeInput.max;return!f||!e||0<=MB(d._dateAdapter,f,e)?null:{matDatepickerMax:{max:f,
actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=qG.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 pG(b,b._elementRef.nativeElement)),b.dateChange.emit(new pG(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=n(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(JB(d)&&JB(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){a.altKey&&40===a.keyCode&&!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=KB(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 pG(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new pG(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=LB(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=KB(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
ni.Object.defineProperties(qG.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=rh(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
qG.\u0275fac=function(a){return new (a||qG)(B(Rd),B(IB,8),B(OB,8))};qG.\u0275dir=u({type:qG,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ed]});
var hAb=new Md("MAT_DATE_RANGE_INPUT_PARENT"),rG=function(a,b,c,d,e,f,h,k){qG.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=Rc(XA,{optional:!0})};X(rG,qG);g=rG.prototype;g.ngOnInit=function(){var a=this._injector.get(Iy,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){qG.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){qG.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 Gma(this._elementRef.nativeElement,!0)};
rG.\u0275fac=function(a){return new (a||rG)(B(hAb),B(Rd),B(PB),B(dl),B(Py,8),B(Yy,8),B(IB,8),B(OB,8))};rG.\u0275dir=u({type:rG,features:[Of]});jla(rG);
var iAb={provide:new Md("mat-datepicker-scroll-strategy"),deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};oi(function(a){this._elementRef=a});
new Md("mat-mdc-fab-default-options",{providedIn:"root",factory:Hma});[].concat(r(["disabled","disableRipple","color","tabIndex"]),["extended"]);
var sG=function(){};sG.\u0275fac=function(a){return new (a||sG)};sG.\u0275mod=Yc({type:sG});sG.\u0275inj=Ic({imports:[HB,XB,HB]});
var tG=function(){};tG.\u0275fac=function(a){return new (a||tG)};tG.\u0275mod=Yc({type:tG});tG.\u0275inj=Ic({providers:[dC,iAb],imports:[vy,sG,GB,FA,Cz,HB,oB]});
var uG=function(){};uG.\u0275fac=function(a){return new (a||uG)};uG.\u0275mod=Yc({type:uG});uG.\u0275inj=Ic({providers:[ozb],imports:[FA,vy,GB,HB,HB,oB]});
var vG=function(){};vG.\u0275fac=function(a){return new (a||vG)};vG.\u0275mod=Yc({type:vG});vG.\u0275inj=Ic({providers:[{provide:tzb,useFactory:function(a){return new gAb(Ima(a))},deps:[vF]},{provide:szb,useFactory:function(a){return new dAb(Ima(a))},deps:[vF]},zF],imports:[vy,BF,AF,tG,NC,uF,aD,pF,uG]});
var jAb=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"})};jAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};jAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var kAb=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"})};kAb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};kAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var lAb=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"})};lAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};lAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var mAb="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
var nAb=function(a){this.servicePromise_=a;a.then(bv(function(){},this),function(){},this)},oAb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("Zb`"+b);return e.apply(d,c)})},qAb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=pAb(a,b).then(function(f){return f.apply(null,d)});return new nAb(e)},rAb={},pAb=function(a,b){var c=rAb[b];if(c)return c;c=(c=sp(b))?xE(c):(new wE(function(d,e){var f=(new eE(document)).createElement("SCRIPT");
f.async=!0;Gi(f,hp(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=sp(b);if(!d)throw Error("$b`"+b+"`"+a);return d});return rAb[b]=c};
var wG=function(a){this.loader_=a};wG.prototype.startFeedback=function(a){oAb(this.loader_,"startFeedback",arguments)};wG.prototype.requestSurvey=function(a){oAb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};wG.prototype.presentSurvey=function(a){oAb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var sAb=ip("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");pAb(sAb,"help.service.Lazy.create").thenCatch(function(){});
var xG=function(){this.roundCorners=this.showDividers=!1};xG.\u0275fac=function(a){return new (a||xG)};
xG.\u0275cmp=u({type:xG,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&Zf("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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}\n/*# sourceMappingURL=button-group.css.map */"],changeDetection:0});
var tAb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Vqa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Xqa={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},Tra={0:"ACCESS_LEVEL_UNSPECIFIED",1:"LIMIT_NONE",2:"LIMIT_VIEW",3:"LIMIT_APPEND",4:"LIMIT_VIEW_TRUSTED"},bsa={ACCESS_LEVEL_UNSPECIFIED:0,LIMIT_NONE:1,LIMIT_VIEW:2,LIMIT_APPEND:3,LIMIT_VIEW_TRUSTED:4},
lsa={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},kra={0:"UNKNOWN",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},qra={UNKNOWN:0,TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},Ora={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},$ra={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,ABUSE:2,PII:3,RETENTION:4},qna={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Fna=
{COMFORTABLE:1,COZY:2,COMPACT:3},Vsa={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD",6:"STATUS_UPDATE"},mra={0:"UNKNOWN",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},rra={UNKNOWN:0,SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},pj={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},Fj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},pna={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},Ena=
{DEFAULT:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},mXa={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"},Fsa={0:"FIELD_ORDERING_UNSPECIFIED",
1:"INHERITED",2:"CUSTOMIZED"},uAb={FIELD_ORDERING_UNSPECIFIED:0,INHERITED:1,CUSTOMIZED:2},lra={0:"UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},vAb={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},ysa={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},$m={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},wra={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},wAb={IMPLICIT_ACCESS_UNSPECIFIED:0,ALLOW:1,
DENY:2},vra={0:"INHERITANCE_UNSPECIFIED",1:"INHERIT_ALL",2:"INHERIT_ADMINS",3:"INHERIT_NOTHING"},xAb={INHERITANCE_UNSPECIFIED:0,INHERIT_ALL:1,INHERIT_ADMINS:2,INHERIT_NOTHING:3},Kj={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"},zna={1:Kj.ISSUE_ID,2:Kj.COMPONENT_PATH,3:Kj.TYPE,4:Kj.STATUS,5:Kj.PRIORITY,6:Kj.SEVERITY,7:Kj.REPORTER,8:Kj.ASSIGNEE,9:Kj.VERIFIER,10:Kj.CC,43:Kj.COLLABORATOR,11:Kj.CHANGELIST,32:Kj.POSTMORTEM,12:Kj.BLOCKING_ISSUE_ID,
13:Kj.BLOCKED_BY_ISSUE_ID,14:Kj.CREATED_TIME,15:Kj.MODIFIED_TIME,16:Kj.RESOLVED_TIME,17:Kj.VERIFIED_TIME,38:Kj.DELETION_TIME,18:Kj.TITLE,19:Kj.FOUND_IN_VERSION,20:Kj.TARGETED_TO_VERSION,21:Kj.VERIFIED_IN_VERSION,22:Kj.IN_PROD,23:Kj.CANONICAL_ISSUE_ID,24:Kj.CUSTOM_FIELD,25:Kj.POSITION,26:Kj.VOTE_COUNT,27:Kj.DUPLICATE_COUNT,28:Kj.CC_COUNT,44:Kj.COLLABORATOR_COUNT,29:Kj.MODIFIED_BY,30:Kj.LAST_MODIFIER,31:Kj.ARCHIVED,33:Kj.MIN_SLO,35:Kj.ASSIGNMENT_SLO,36:Kj.RESPONSE_SLO,37:Kj.CLOSURE_SLO,39:Kj.TEAM,40:Kj.ESTIMATE,
41:Kj.ESTIMATE_TOTAL_OPEN,42:Kj.ESTIMATE_TOTAL_COMPLETE},Mna={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},tsa={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},Pra={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"},
Vra={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},lXa={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},yAb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},ata={0:"UNKNOWN_SUBSCRIPTION",
1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},psa={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},nXa={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},Chb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},Gra={0:"PII_SEVERITY_UNSPECIFIED",1:"NONE_DETECTED",2:"PII",3:"SPII"},Yra={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3},Qra={0:"PRIORITY_UNSPECIFIED",1:"P0",
2:"P1",3:"P2",4:"P3",5:"P4"},Wra={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},zAb={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},tta={0:"REACTION_TYPE_UNSPECIFIED",1:"UPVOTE"},AAb={REACTION_TYPE_UNSPECIFIED:0,UPVOTE:1},Tsa={0:"UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},uua={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},BAb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},CAb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",
INDEFINITE:"INDEFINITE"},Vm={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Zra={RETENTION_UNSPECIFIED:0,COMPONENT_DEFAULT:1,INDEFINITE:2},DAb={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},Dsa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},Era={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},
Rra={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Xra={SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5},EAb={UNKNOWN:"UNKNOWN",NEAR_SLO:"NEAR_SLO",MENTIONED:"MENTIONED",UNBLOCKED:"UNBLOCKED",NEEDS_REPORTER_INPUT:"NEEDS_REPORTER_INPUT"},Ata={0:"UNKNOWN",1:"NEAR_SLO",2:"MENTIONED",3:"UNBLOCKED",4:"NEEDS_REPORTER_INPUT"},gXa={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"},Bhb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},Sra={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},asa={SLO_SNOOZE_TYPE_UNSPECIFIED:0,STARTS_ON:1,ASSIGNMENT_ETA:2,RESPONSE_ETA:3,CLOSURE_ETA:4},Esa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Jra={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},dra={0:"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"},fra={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},Wm={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"},Ym={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},Usa={0:"ACTIVE",1:"DELETED",2:"PURGED"},Mma={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Mqa={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"},Oqa={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},rXa={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Kqa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Lqa={UNSPECIFIED:0,ACTIVE:1,DELETED:2,UNAVAILABLE:3},iXa={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",
5:"SIMPLE"};
var qu=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},FAb=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}},GAb=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},
HAb=function(a){switch(a){case "NEW":case "ASSIGNED":case "ACCEPTED":case "FIXED":case "VERIFIED":case "NOT_REPRODUCIBLE":case "INTENDED_BEHAVIOR":case "OBSOLETE":case "INFEASIBLE":case "DUPLICATE":return a;default:return null}},yG=function(a){return fj(a.replace(/_/g," ").toLowerCase())};
var En=function(a){Y.call(this,a)};X(En,Y);
var mta=function(a){Y.call(this,a)};X(mta,Y);mta.prototype.getHref=function(){return Pi(this,1)};
var On=function(a){Y.call(this,a)};X(On,Y);On.prototype.getIssueId=function(){return Aj(this,1)};On.prototype.setIssueId=function(a){return m(this,1,a)};On.prototype.getCommentNumber=function(){return Ji(this,2)};On.prototype.setCommentNumber=function(a){return m(this,2,a)};
var bta=function(a){Y.call(this,a)};X(bta,Y);var lta=[1,2];
var Fl=function(a){Y.call(this,a)};X(Fl,Y);var jn=function(a){Y.call(this,a,-1,IAb)};X(jn,Y);jn.prototype.getSourceIssueIdsList=function(){return Cb(this,1,lb)};jn.prototype.setSourceIssueIdsList=function(a){return Db(this,1,a,kb)};var IAb=[1];
var zG=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,""]]),AG=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 BG={},CG=(BG[0]=AG.get(0),BG[1]=AG.get(1),BG[2]=AG.get(2),BG[3]=AG.get(3),BG[4]=AG.get(4),BG[5]=AG.get(5),BG[10]=AG.get(10),BG[9]=AG.get(9),BG[6]=AG.get(6),BG[8]=AG.get(8),BG[7]=AG.get(7),BG),JAb=Hi(CG,Wm),DG={},jua=(DG[0]=0,DG[1]=10,DG[2]=20,DG[3]=30,DG[4]=40,DG[5]=50,DG[10]=60,DG[9]=70,DG[6]=80,DG[8]=90,DG[7]=100,DG),EG={},KAb=(EG.ASSIGNED=!0,EG.ACCEPTED=!0,EG.FIXED=!0,EG.VERIFIED=!0,EG.DUPLICATE=!0,EG.INFEASIBLE=!0,EG.NOT_REPRODUCIBLE=!0,EG.OBSOLETE=!0,EG.INTENDED_BEHAVIOR=!0,EG),FG={},GG=
(FG[0]=zG.get(0),FG[1]=zG.get(1),FG[2]=zG.get(2),FG[3]=zG.get(3),FG[4]=zG.get(4),FG[5]=zG.get(5),FG[10]=zG.get(10),FG[9]=zG.get(9),FG[6]=zG.get(6),FG[8]=zG.get(8),FG[7]=zG.get(7),FG),xl=Hi(GG,Wm),HG={},LAb=(HG[1]="P0",HG[2]="P1",HG[3]="P2",HG[4]="P3",HG[5]="P4",HG[0]="--",HG),MAb=Hi(LAb,Qra),IG={},NAb=(IG[1]="S0",IG[2]="S1",IG[3]="S2",IG[4]="S3",IG[5]="S4",IG[0]="--",IG),OAb=Hi(NAb,Rra),JG={},PAb=(JG[0]="",JG[1]="Bug",JG[2]="Feature Request",JG[3]="Customer Issue",JG[4]="Internal Cleanup",JG[5]="Process",
JG[6]="Vulnerability",JG[7]="Privacy Issue",JG[8]="Project",JG[9]="Feature",JG[10]="Milestone",JG[11]="Epic",JG[12]="Story",JG[13]="Task",JG),QAb=Hi(PAb,Pra),KG={},RAb=(KG[0]="issue-status-wont-fix",KG[1]="issue-status-new",KG[2]="issue-status-assigned",KG[3]="issue-status-accepted",KG[4]="issue-status-fixed",KG[5]="issue-status-verified",KG[10]="issue-status-duplicate",KG[9]="issue-status-wont-fix",KG[6]="issue-status-wont-fix",KG[8]="issue-status-wont-fix",KG[7]="issue-status-wont-fix",KG),SAb=
Hi(RAb,Wm);
var Ni=function(a){Y.call(this,a)};X(Ni,Y);Ni.prototype.getLogoUrl=function(){return Pi(this,1)};Ni.prototype.getTheme=function(){return qj(this,2,0)};Ni.prototype.setTheme=function(a){return m(this,2,a)};Ni.messageId="b.Branding";
var Tj=function(a){Y.call(this,a,-1,TAb)};X(Tj,Y);g=Tj.prototype;g.getTrackerId=function(){return uj(this,1)};g.setTrackerId=function(a){m(this,1,a)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};var TAb=[4];Tj.messageId="b.Tracker";
var Vma=Object.prototype.hasOwnProperty,UAb=function(){var a=void 0===a?window:a;var b=void 0===b?5E3:b;var c=100;return new Promise(function(d,e){function f(){var h=Uma(a);null!=h?d(h):(setTimeout(f,c),c*=2)}f();setTimeout(function(){var h=Uma(a);null!=h?d(h):e("timeout: "+b)},b)})};
var Khb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"4:"+a.alias}));
var gj={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"},LG={},VAb=(LG[3]="LITERAL_FORMATTING_MODE",LG[1]="PLAIN_FORMATTING_MODE",LG[2]="MARKDOWN_FORMATTING_MODE",LG),WAb=VAb[2],XAb=VAb[1],MG={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};
var ij=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};ij.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};ij.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};ij.prototype.toString=function(){return this.toApiUrlParam()};
var mj=function(a,b){this.fieldId=a;this.direction=b};mj.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};mj.prototype.toString=function(){return this.toApiUrlParam()};
var xj=function(a){Y.call(this,a)};X(xj,Y);
var Dj=function(a){Y.call(this,a)};X(Dj,Y);
var Jj=function(a){Y.call(this,a)};X(Jj,Y);g=Jj.prototype;g.getType=function(){return qj(this,1,1)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getCustomFieldId=function(){return Aj(this,2)};g.setCustomFieldId=function(a){return m(this,2,a)};g.hasCustomFieldId=function(){return zj(this,2)};
var Gj=function(a){Y.call(this,a)};X(Gj,Y);Gj.prototype.getTimeZone=function(){return Pi(this,5)};Gj.prototype.setTimeZone=function(a){return m(this,5,a)};Gj.prototype.hasTimeZone=function(){return Oi(this,5)};
var Ij=function(a){Y.call(this,a,-1,YAb)};X(Ij,Y);Ij.prototype.getColumnList=function(){return Nb(this,Jj,1)};Ij.prototype.setColumnList=function(a){return Mb(this,1,a)};var YAb=[1];
var Dna=function(a){Y.call(this,a)};X(Dna,Y);
var ona=function(a){Y.call(this,a)};X(ona,Y);
var Mj=function(a){Y.call(this,a)};X(Mj,Y);Mj.prototype.getColumn=function(){return Ub(this,Jj,1)};Mj.prototype.setColumn=function(a){return Vb(this,1,a)};
var Lj=function(a){Y.call(this,a,-1,ZAb)};X(Lj,Y);Lj.prototype.getColumnList=function(){return Nb(this,Mj,1)};Lj.prototype.setColumnList=function(a){return Mb(this,1,a)};var ZAb=[1];
var sj=function(a){Y.call(this,a)};X(sj,Y);sj.prototype.getDensity=function(){return qj(this,1,1)};sj.prototype.setDensity=function(a){return m(this,1,a)};
var yj=function(a){Y.call(this,a)};X(yj,Y);
var Hj=function(a){Y.call(this,a)};X(Hj,Y);g=Hj.prototype;g.getResourceType=function(){return qj(this,1,1)};g.setResourceType=function(a){m(this,1,a)};g.hasResourceType=function(){return nj(this,1)};g.getResourceId=function(){return uj(this,2)};g.setResourceId=function(a){m(this,2,a)};g.hasResourceId=function(){return tj(this,2)};
var sna=function(a){Y.call(this,a)};X(sna,Y);
var nna=function(a){Y.call(this,a)};X(nna,Y);
var Bj=function(a){Y.call(this,a)};X(Bj,Y);Bj.prototype.getComponentId=function(){return Aj(this,1)};Bj.prototype.setComponentId=function(a){return m(this,1,a)};Bj.prototype.hasComponentId=function(){return zj(this,1)};
var una=function(a){Y.call(this,a,-1,$Ab)};X(una,Y);var Nna=function(a,b){Mb(a,1,b)},$Ab=[1];
var wj=function(a){Y.call(this,a)};X(wj,Y);wj.prototype.getCommentDisplayOverride=function(){return qj(this,2,0)};wj.prototype.setCommentDisplayOverride=function(a){m(this,2,a)};
var Ej=function(a){Y.call(this,a)};X(Ej,Y);g=Ej.prototype;g.getDisplayColumns=function(){return Ub(this,Ij,4)};g.getSortColumns=function(){return Ub(this,Lj,6)};g.getLayoutPreferences=function(){return Ub(this,Dna,10)};g.getDateTimePreferences=function(){return Ub(this,Gj,11)};g.getHomepagePreferences=function(){return Ub(this,Hj,13)};g.clearHomepagePreferences=function(){return qv(this,13)};g.getShowInlineImages=function(){return oj(this,29)};
var Oj=function(a){Y.call(this,a,-1,aBb)};X(Oj,Y);g=Oj.prototype;g.getAnalyticsId=function(){return Pi(this,1)};g.getAppName=function(){return Pi(this,2)};g.getDocumentationBaseUrl=function(){return Pi(this,3)};g.getEnvironmentType=function(){return Pi(this,5)};g.getMaxAccurateSearchResults=function(){return Ji(this,6)};g.getOnePickUrl=function(){return Pi(this,7)};g.getOnePickSecretToken=function(){return Pi(this,12)};g.getCommentNumberLimit=function(){return Ji(this,8)};
g.getCreateComponentRedirectDelay=function(){return Jl(this,9)};var aBb=[10,13,17];
var Qj=function(a){Y.call(this,a)};X(Qj,Y);g=Qj.prototype;g.getEmail=function(){return Pi(this,1)};g.setEmail=function(a){return m(this,1,a)};g.hasEmail=function(){return Oi(this,1)};g.getSessionIdentifier=function(){return Pi(this,3)};g.getUserTypeLabel=function(){return Pi(this,5)};
var Rj=function(a){Y.call(this,a,-1,bBb)};X(Rj,Y);Rj.prototype.getId=function(){return Pi(this,1)};Rj.prototype.setId=function(a){return m(this,1,a)};var bBb=[2,4];Rj.messageId="b.TimeZoneData";
var Sj=function(a){Y.call(this,a,-1,cBb)};X(Sj,Y);Sj.prototype.getMessage=function(){return Pi(this,1)};Sj.prototype.setMessage=function(a){return m(this,1,a)};var cBb=[4];Sj.messageId="b.Announcement";
var Pj=function(a){Y.call(this,a,-1,dBb)};X(Pj,Y);Pj.prototype.getAnnouncement=function(){return Ub(this,Sj,2)};var dBb=[1];
var Ona=function(a){Y.call(this,a)};X(Ona,Y);g=Ona.prototype;g.getUser=function(){return Ub(this,Qj,1)};g.setUser=function(a){Vb(this,1,a)};g.hasUser=function(){return vj(this,Qj,1)};g.getConfig=function(){return Ub(this,Oj,2)};g.setConfig=function(a){return Vb(this,2,a)};g.hasConfig=function(){return vj(this,Oj,2)};g.getXsrfToken=function(){return Pi(this,3)};g.getCspNonce=function(){return Pi(this,8)};g.getFrontendAccessMode=function(){return Pi(this,4)};
g.getMustAcknowledgeTerms=function(){return oj(this,5)};g.getShowNewFeaturesDialog=function(){return oj(this,6)};g.getUserPreferences=function(){return Ub(this,Ej,7)};g.getAppBaseHref=function(){return Pi(this,10)};g.getTracker=function(){return Ub(this,Tj,11)};
var Pna=window,Nj;
var NG=function(){this.session=Uj();this.tracker=this.session.tracker||void 0};NG.prototype.getAppBaseHref=function(){return this.session.appBaseHref};NG.prototype.getFrontendAccessMode=function(){return this.session.frontendAccessMode||"INTERNAL"};NG.prototype.isExternalSession=function(){return"INTERNAL"!==this.getFrontendAccessMode()};NG.prototype.isInternalSession=function(){return"INTERNAL"===this.getFrontendAccessMode()};
var OG=function(a){return"PARTNER"===a.getFrontendAccessMode()},PG=function(a){return"PUBLIC"===a.getFrontendAccessMode()};NG.prototype.isNonPublicSession=function(){return"PUBLIC"!==this.getFrontendAccessMode()};var Cq=function(a,b){return!!a.session.config.enabledFlags.get(b)};g=NG.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.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};g.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};g.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};var wt=function(a){a=a.getEnvironmentType();switch(a){case "QA":case "DEV":return!1;case "NIGHTLY":case "PROD":return!0;default:Ai(a,"Unknown environment type.")}};g=NG.prototype;
g.getAppBaseUrl=function(a){return(void 0===a?0:a)||!this.isInternalSession()?wt(this)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":wt(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.getCspNonce=function(){return this.session.cspNonce};
g.getAnnouncement=function(){return this.session.preload.announcement};g.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};NG.\u0275fac=function(a){return new (a||NG)};NG.\u0275prov=Hc({token:NG,factory:NG.\u0275fac,providedIn:"root"});
var eBb=function(a,b){return[a,b]},QG=function(){this.size=this.name=""};QG.prototype.ngOnInit=function(){};QG.\u0275fac=function(a){return new (a||QG)};
QG.\u0275cmp=u({type:QG,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:5,consts:[[3,"svgIcon","ngClass"]],template:function(a,b){a&1&&H(0,"mat-icon",0);a&2&&D("svgIcon",b.name)("ngClass",pg(2,eBb,b.name,b.size))},dependencies:[ey,yD],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 fBb=function(a){return function(b){return Wj(b,a)}};
var gBb="TYPE_UNSPECIFIED BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),hBb=Yj({PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5}),iBb=Yj({SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5}),jBb=Yj({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}),kBb=Yj({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}),lBb="PRIORITY_UNSPECIFIED P0 P1 P2 P3 P4".split(" ").slice(1),mBb="SEVERITY_UNSPECIFIED S0 S1 S2 S3 S4".split(" ").slice(1),nBb="STATUS_UNSPECIFIED NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" ").slice(1),RG=gBb.slice(1),oBb=gBb.slice(1,8),SG={},pBb=(SG.PRIORITY_UNSPECIFIED="(Unspecified Priority)",SG.P0="P0",SG.P1=
"P1",SG.P2="P2",SG.P3="P3",SG.P4="P4",SG),TG={},qBb=(TG.SEVERITY_UNSPECIFIED="(Unspecified Severity)",TG.S0="S0",TG.S1="S1",TG.S2="S2",TG.S3="S3",TG.S4="S4",TG),UG={},rBb=(UG.TYPE_UNSPECIFIED="(Unspecified Issue Type)",UG.BUG="Bug",UG.FEATURE_REQUEST="Feature Request",UG.CUSTOMER_ISSUE="Customer Issue",UG.INTERNAL_CLEANUP="Internal Cleanup",UG.PROCESS="Process",UG.VULNERABILITY="Vulnerability",UG.PRIVACY_ISSUE="Privacy Issue",UG.PROJECT="Project",UG.FEATURE="Feature",UG.MILESTONE="Milestone",UG.EPIC=
"Epic",UG.STORY="Story",UG.TASK="Task",UG),sBb=lBb.map(function(a){return pBb[a]}),tBb=mBb.map(function(a){return qBb[a]}),uBb=RG.map(function(a){return rBb[a]}),vBb=new Map([[1,"Unintended behavior"],[2,"Request for new functionality"],[3,"Issue affecting a 3rd party"],[4,"Maintenance work"],[5,"Miscellaneous non-feature work"],[6,"A security concern"],[7,"A privacy concern"],[8,"Goal-driven effort"],[9,"A collection of work"],[10,"An important achievement"],[11,"A large collection of work"],[12,
"A small collection of work"],[13,"A small unit of work"]]),wBb=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"]]);
var xBb=new Map(Xj(hBb,sBb)),yBb=new Map(Xj(iBb,tBb)),zBb=new Map(Xj(kBb,uBb)),ABb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),BBb=RG.map(function(a){return{value:a,displayText:yG(a),altText:wBb.get(a)}}),VG=function(){this.protoPriorities=hBb;this.protoSeverities=iBb;this.protoStatuses=jBb;this.protoIssueTypes=kBb;this.protoIssuePrioritiesEnumStrings=new Map(Xj(hBb,lBb));this.protoIssueSeveritiesEnumStrings=new Map(Xj(iBb,mBb));this.protoIssueTypesEnumStrings=new Map(Xj(kBb,RG));
this.protoIssueStatusesEnumStrings=new Map(Xj(jBb,nBb));this.priorities=lBb;this.severities=mBb;this.issueTypes=oBb;this.editIssueTypes=RG;this.editIssueTypeChoices=BBb;Xj(RG,uBb);this.protoIssuePrioritiesDisplayNames=xBb;this.protoIssueSeveritiesDisplayNames=yBb;this.protoIssueTypesDisplayNames=zBb;this.protoIssueTypesShortDescriptions=vBb;this.issueTypesShortDescriptions=wBb;this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};
VG.\u0275fac=function(a){return new (a||VG)};VG.\u0275prov=Hc({token:VG,factory:VG.\u0275fac,providedIn:"root"});
var WG=function(){this._inset=this._vertical=!1};ni.Object.defineProperties(WG.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=rh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=rh(a)}}});WG.\u0275fac=function(a){return new (a||WG)};
WG.\u0275cmp=u({type:WG,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Uf("aria-orientation",b.vertical?"vertical":"horizontal"),Zf("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{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.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 XG=function(a,b){this.constants=a;this.activeSession=b;this.STATUS_FULL_TEXT=GG;this.onBulkEdit=new sx;this.onQuickBulkEdit=new sx;this.onBulkEditIssueRelation=new sx;this.onBulkMarkIssueRead=new sx;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=Cq(this.activeSession,"enableBulkEditUi")};XG.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};XG.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};
XG.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};XG.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};XG.\u0275fac=function(a){return new (a||XG)(B(VG),B(NG))};
XG.\u0275cmp=u({type:XG,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:89,vars:15,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"],["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&&(E(0,"b-button-group"),P(1,Una,4,2,"button",0),E(2,"button",1),M("click",function(){return b.bulkMarkIssueRead()}),Q(3),G(),P(4,Vna,4,2,"button",0),P(5,Wna,4,2,"button",0),G(),E(6,"mat-menu",null,2)(8,"button",3),M("click",function(){return b.bulkEdit("ASSIGNEE")}),Q(9,"Assignee"),G(),E(10,"button",3),M("click",function(){return b.bulkEdit("COMPONENT")}),Q(11,"Component"),G(),E(12,"button",4),Q(13,"Priority"),G(),E(14,"button",4),Q(15,"Severity"),
G(),E(16,"button",4),Q(17,"Status"),G(),E(18,"button",4),Q(19,"Type"),G(),E(20,"button",3),M("click",function(){return b.bulkEdit("VERIFIER")}),Q(21,"Verifier"),G(),E(22,"button",3),M("click",function(){return b.bulkEdit("REPORTER")}),Q(23,"Reporter"),G(),E(24,"button",3),M("click",function(){return b.bulkEdit("CHANGELIST")}),Q(25,"Changelist"),G(),E(26,"button",3),M("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),Q(27,"Custom Fields"),G(),E(28,"button",4),Q(29," Archival state "),G(),E(30,
"button",3),M("click",function(){return b.bulkEdit("FOUND_IN")}),Q(31,"Found In"),G(),E(32,"button",3),M("click",function(){return b.bulkEdit("VERIFIED_IN")}),Q(33,"Verified In"),G(),E(34,"button",3),M("click",function(){return b.bulkEdit("TARGETED_TO")}),Q(35,"Targeted To"),G(),E(36,"button",4),Q(37,"In Prod"),G(),H(38,"mat-divider"),E(39,"button",3),M("click",function(){return b.bulkEdit("COMMENT")}),Q(40,"Add Comment"),G()(),E(41,"mat-menu",null,5),P(43,Xna,2,1,"button",6),G(),E(44,"mat-menu",
null,7),P(46,Yna,2,1,"button",6),G(),E(47,"mat-menu",null,8),P(49,Zna,2,1,"button",6),G(),E(50,"mat-menu",null,9),P(52,$na,2,2,"button",10),G(),E(53,"mat-menu",null,11)(55,"button",3),M("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),Q(56,"Archive"),G(),E(57,"button",3),M("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!1)}),Q(58,"Unarchive"),G()(),E(59,"mat-menu",null,12)(61,"button",3),M("click",function(){return b.quickBulkEdit("IN_PROD",!0)}),Q(62,"In Prod"),G(),E(63,"button",
3),M("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),Q(64,"Not in Prod"),G()(),E(65,"mat-menu",null,13)(67,"button",3),M("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),Q(68,"Mark as Blocked By"),G(),E(69,"button",3),M("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),Q(70,"Mark as Blocking"),G(),E(71,"button",3),M("click",function(){return b.bulkEditIssueRelation("PARENT",!0)}),Q(72,"Add Parent"),G(),E(73,"button",3),M("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),
Q(74,"Duplicate"),G(),E(75,"button",3),M("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),Q(76,"Unmark as Blocked By"),G(),E(77,"button",3),M("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),Q(78,"Unmark as Blocking"),G(),E(79,"button",3),M("click",function(){return b.bulkEditIssueRelation("PARENT",!1)}),Q(80,"Remove Parent"),G()(),E(81,"mat-menu",null,14)(83,"button",3),M("click",function(){return b.quickBulkEdit("CC",!0)}),Q(84,"CC me"),G(),E(85,"button",3),
M("click",function(){return b.quickBulkEdit("CC",!1)}),Q(86,"Un-CC me"),G(),E(87,"button",3),M("click",function(){return b.bulkEdit("CC")}),Q(88,"Edit CC"),G()());if(a&2){var c=O(42),d=O(45),e=O(48),f=O(51),h=O(54),k=O(60);A(1);D("ngIf",b.enableBulkEditUi);A(1);D("disabled",b.isAnonymous);A(1);T(" ",b.readStatePrompt," ");A(1);D("ngIf",b.enableBulkEditUi);A(1);D("ngIf",b.enableBulkEditUi);A(7);D("matMenuTriggerFor",c);A(2);D("matMenuTriggerFor",d);A(2);D("matMenuTriggerFor",e);A(2);D("matMenuTriggerFor",
f);A(10);D("matMenuTriggerFor",h);A(8);D("matMenuTriggerFor",k);A(7);D("ngForOf",b.constants.protoPriorities);A(3);D("ngForOf",b.constants.protoSeverities);A(3);D("ngForOf",b.constants.protoStatuses);A(3);D("ngForOf",b.constants.protoIssueTypes)}},dependencies:[oF,mF,nF,fy,gy,QG,xG,pC,WG,tF],encapsulation:2,changeDetection:0});
var YG=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new sx;this.flagAsSpamClicked=new sx;this.isAnonymous=this.activeSession.isAnonymous()};YG.\u0275fac=function(a){return new (a||YG)(B(NG))};
YG.\u0275cmp=u({type:YG,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,coa,9,4,"ng-container",0);a&2&&D("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[oF,mF,nF,gy,QG,pC],encapsulation:2,changeDetection:0});
var ZG=function(){};ZG.\u0275fac=function(a){return new (a||ZG)};ZG.\u0275mod=Yc({type:ZG});ZG.\u0275inj=Ic({imports:[vy]});
var $G=function(){};$G.\u0275fac=function(a){return new (a||$G)};$G.\u0275mod=Yc({type:$G});$G.\u0275inj=Ic({imports:[vy,uF]});
var aH=function(){};aH.\u0275fac=function(a){return new (a||aH)};aH.\u0275mod=Yc({type:aH});aH.\u0275inj=Ic({imports:[HB,HB]});
var bH=function(){};bH.\u0275fac=function(a){return new (a||bH)};bH.\u0275mod=Yc({type:bH});bH.\u0275inj=Ic({imports:[pF,vy,$G,ZG,AF,aH,uG]});
var cH=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new W.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e),h=new W.ReplaySubject(1);d.watchForRestoredConnection$.pipe(Ef(h)).subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){h.next();f.unsubscribe()}});this.watchForRestoredConnection$=(0,W.fromEvent)(window,
"focus").pipe(Df(function(){return d.connectionChecker.ok$}),hf(function(e){return e}),sf(),C(function(){}),zf())};cH.prototype.intercept=function(a,b){return Cq(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?CBb(this,b,a):b.handle(a)};
var CBb=function(a,b,c){return new W.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){DBb(a,b,c,h).pipe(Ef(f)).subscribe(d)}}),f=new W.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},DBb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,W.throwError)(d):a.connectionChecker.ok$.pipe(Df(function(e){return e?(0,W.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(Df(function(){return b.handle(c)}))}))};
cH.\u0275fac=function(a){return new (a||cH)(p(NG),p(dH),p(eH))};cH.\u0275prov=Hc({token:cH,factory:cH.\u0275fac,providedIn:"root"});var eH=function(){this.showRefreshSso$=new W.BehaviorSubject(!1)};eH.\u0275fac=function(a){return new (a||eH)};eH.\u0275prov=Hc({token:eH,factory:eH.\u0275fac,providedIn:"root"});
var dH=function(a){var b=this;this.ngZone=a;this.ok$=new W.Observable(function(c){var d=zi("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};dH.\u0275fac=function(a){return new (a||dH)(p(Mf))};dH.\u0275prov=Hc({token:dH,factory:dH.\u0275fac,providedIn:"root"});var EBb={provide:sD,useClass:cH,multi:!0};
var FBb=function(a,b){return[a,b]},GBb=[[["b-callout-body"]],[["b-callout-actions"]]],fH=function(){this.messageType="info";this.format="default"};fH.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"}};fH.\u0275fac=function(a){return new (a||fH)};
fH.\u0275cmp=u({type:fH,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&$f(pg(2,FBb,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&&(fg(GBb),E(0,"div",0),H(1,"mat-icon",1),E(2,"div",2),gg(3),G(),E(4,"div",3),gg(5,1),G()());a&2&&(A(1),
D("svgIcon",b.getIconName()))},dependencies:[yD],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)}\n/*# sourceMappingURL=callout.css.map */"]});
var gH=function(){};gH.\u0275fac=function(a){return new (a||gH)};gH.\u0275dir=u({type:gH,selectors:[["b-callout-body"],["b-callout-actions"]]});
var hH=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};hH.\u0275fac=function(a){return new (a||hH)(B(NG),B(eH))};
hH.\u0275cmp=u({type:hH,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,ioa,7,4,"b-callout",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.showRefreshSsoMessage$))},dependencies:[gy,fH,gH,pC,ny],encapsulation:2,changeDetection:0});
var joa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var HBb=Symbol("cc"),IBb=Symbol("dc"),iH=Symbol("ec"),jH=function(){};jH.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=dk(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[iH]=!0;return}c.resolve(e);d[iH]=!0},b);d[HBb]=b;d[IBb]=c.reject;d[iH]=!1;return c.promise};jH.prototype.cancel=function(a){var b=a[HBb];if(null==b||a[iH])return!1;clearTimeout(b);var c;null==(c=a[IBb])||c.call(a,Error("fc"));return a[iH]=!0};jH.\u0275fac=function(a){return new (a||jH)};
jH.\u0275prov=Hc({token:jH,factory:jH.\u0275fac,providedIn:"root"});
var kH=function(a){this.timeout=a};kH.prototype.adapt=function(a){return new JBb(this.timeout,a)};kH.\u0275fac=function(a){return new (a||kH)(p(jH))};kH.\u0275prov=Hc({token:kH,factory:kH.\u0275fac,providedIn:"root"});var JBb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
JBb.prototype.get=function(a){var b=dk(),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||KBb(this);return b.promise};
var KBb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={$jscomp$loop$prop$batchedDeferred$1920:b.$jscomp$loop$prop$batchedDeferred$1920},c++){var d=a.batchedInputs[c];b.$jscomp$loop$prop$batchedDeferred$1920=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.$jscomp$loop$prop$batchedDeferred$1920.length;h++)e.$jscomp$loop$prop$batchedDeferred$1920[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=
n(e.$jscomp$loop$prop$batchedDeferred$1920),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];a.isBatchScheduled=!1})};
var ek=function(a){Y.call(this,a)};X(ek,Y);
var lH=function(a){this.http=a};g=lH.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,{enable_jspb:"true"})};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(C(noa(b.responseConstructor)))};lH.\u0275fac=function(a){return new (a||lH)(p(rD))};lH.\u0275prov=Hc({token:lH,factory:lH.\u0275fac,providedIn:"root"});var mH=function(a){this.jspbExecutor=a};mH.prototype.get=function(a){return(0,W.firstValueFrom)(this.jspbExecutor.get(a))};
mH.prototype.delete=function(a){return(0,W.firstValueFrom)(this.jspbExecutor.delete(a))};mH.prototype.post=function(a){return(0,W.firstValueFrom)(this.jspbExecutor.post(a))};mH.prototype.put=function(a){return(0,W.firstValueFrom)(this.jspbExecutor.put(a))};mH.\u0275fac=function(a){return new (a||mH)(p(lH))};mH.\u0275prov=Hc({token:mH,factory:mH.\u0275fac,providedIn:"root"});
var LBb=function(a){return"action/issues/"+a+"/statusUpdate"},lu={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"},MBb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"};
var NBb=function(a){Y.call(this,a)};X(NBb,Y);NBb.messageId="b.PrincipalTypeInfoBatchResponse";
var nH=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(OBb(this,!1));this.principalTypeWithDetailGetter=b.adapt(OBb(this,!0))},OBb=function(a,b){return function(c){return PBb(a.principalResources,c,b).then(function(d){return loa(c,d)})}};nH.prototype.get=function(a){return oH(this,a,!1)};var oH=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(moa)};nH.\u0275fac=function(a){return new (a||nH)(p(pH),p(kH))};
nH.\u0275prov=Hc({token:nH,factory:nH.\u0275fac,providedIn:"root"});var pH=function(a){this.executor=a},PBb=function(a,b,c){var d={};d.email=Wj(b,Vj);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:NBb}).then(koa).then(function(e){for(var f={},h=n(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=e[k];if(q){var t=new ek;t=m(t,1,q.principalType);q=m(t,2,q.detailedUserType)}else q=null;f[k]=q}return f})};
pH.\u0275fac=function(a){return new (a||pH)(p(mH))};pH.\u0275prov=Hc({token:pH,factory:pH.\u0275fac,providedIn:"root"});
var qH=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};qH.prototype.ngOnDestroy=function(){this.destroyed=!0};qH.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};qH.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};qH.\u0275fac=function(a){return new (a||qH)(p(Xx),p(Mf))};qH.\u0275prov=Hc({token:qH,factory:qH.\u0275fac});
var rH=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;Cq(this.session,"weAreHiring")&&oH(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner=1===qj(e,2,0);d.cdr.detectChanges()}).catch(function(){})};rH.\u0275fac=function(a){return new (a||rH)(B(NG),B(nH),B(qH,2))};
rH.\u0275cmp=u({type:rH,selectors:[["b-hiring-banner"]],features:[mg([qH])],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,ooa,2,0,"a",0);a&2&&D("ngIf",b.showHiringBanner)},dependencies:[gy],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 sH=function(){};sH.\u0275fac=function(a){return new (a||sH)};sH.\u0275mod=Yc({type:sH});sH.\u0275inj=Ic({imports:[vy]});
var fk=function(a,b){this.char=a;this.modifiers=b};
var QBb={category:"Edit Issue Page",keys:[gk("r")],displayAs:"Shift + r",description:"Refresh"},RBb={category:"Issue List",keys:["u",gk("r")],displayAs:"u / Shift+r",description:"Refresh search results"},tH={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[gk("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:[hk("p","0"),hk("p","1"),hk("p","2"),hk("p","3"),hk("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:QBb,REFRESH_ISSUE_LIST:RBb,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,R,S){J.addEventListener?J.addEventListener(R,S,!1):J.attachEvent("on"+R,S)}function e(J){if("keypress"==J.type){var R=String.fromCharCode(J.which);J.shiftKey||(R=R.toLowerCase());return R}return t[J.which]?t[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,R){var S,aa=[];"+"===J?J=["+"]:(J=J.replace(/\+{2}/g,"+plus"),J=J.split("+"));for(S=0;S<J.length;++S){var ba=J[S];
F[ba]&&(ba=F[ba]);R&&"keypress"!=R&&y[ba]&&(ba=y[ba],aa.push("shift"));f(ba)&&aa.push(ba)}J=ba;S=R;if(!S){if(!K){K={};for(var ka in t)95<ka&&112>ka||t.hasOwnProperty(ka)&&(K[t[ka]]=ka)}S=K[J]?"keydown":"keypress"}"keypress"==S&&aa.length&&(S="keydown");return{key:ba,modifiers:aa,action:S}}function k(J,R){return null===J||J===b?!1:J===R?!0:k(J.parentNode,R)}function q(J){function R(pa){pa=pa||{};var xa=!1,Ca;for(Ca in Ka)pa[Ca]?xa=!0:Ka[Ca]=0;xa||(fb=!1)}function S(pa,xa,Ca,Za,Da,Ab){var Qa,$a,Oa=
[],mb=Ca.type;if(!Aa._callbacks[pa])return[];"keyup"==mb&&f(pa)&&(xa=[pa]);for(Qa=0;Qa<Aa._callbacks[pa].length;++Qa)if($a=Aa._callbacks[pa][Qa],(Za||!$a.seq||Ka[$a.seq]==$a.level)&&mb==$a.action){var Ua;(Ua="keypress"==mb&&!Ca.metaKey&&!Ca.ctrlKey)||(Ua=$a.modifiers,Ua=xa.sort().join(",")===Ua.sort().join(","));Ua&&(Ua=Za&&$a.seq==Za&&$a.level==Ab,(!Za&&$a.combo==Da||Ua)&&Aa._callbacks[pa].splice(Qa,1),Oa.push($a))}return Oa}function aa(pa,xa,Ca,Za){Aa.stopCallback(xa,xa.target||xa.srcElement,Ca,
Za)||!1!==pa(xa,Ca)||(xa.preventDefault?xa.preventDefault():xa.returnValue=!1,xa.stopPropagation?xa.stopPropagation():xa.cancelBubble=!0)}function ba(pa){"number"!==typeof pa.which&&(pa.which=pa.keyCode);var xa=e(pa);if(xa)if("keyup"==pa.type&&Jb===xa)Jb=!1;else{var Ca=Aa,Za=Ca.handleKey,Da=[];pa.shiftKey&&Da.push("shift");pa.altKey&&Da.push("alt");pa.ctrlKey&&Da.push("ctrl");pa.metaKey&&Da.push("meta");Za.call(Ca,xa,Da,pa)}}function ka(pa,xa,Ca,Za){function Da(Oa){return function(){fb=Oa;++Ka[pa];
clearTimeout(Ja);Ja=setTimeout(R,1E3)}}function Ab(Oa){aa(Ca,Oa,pa);"keyup"!==Za&&(Jb=e(Oa));setTimeout(R,10)}for(var Qa=Ka[pa]=0;Qa<xa.length;++Qa){var $a=Qa+1===xa.length?Ab:Da(Za||h(xa[Qa+1]).action);wa(xa[Qa],$a,Za,pa,Qa)}}function wa(pa,xa,Ca,Za,Da){Aa._directMap[pa+":"+Ca]=xa;pa=pa.replace(/\s+/g," ");var Ab=pa.split(" ");1<Ab.length?ka(pa,Ab,xa,Ca):(Ca=h(pa,Ca),Aa._callbacks[Ca.key]=Aa._callbacks[Ca.key]||[],S(Ca.key,Ca.modifiers,{type:Ca.action},Za,pa,Da),Aa._callbacks[Ca.key][Za?"unshift":
"push"]({callback:xa,modifiers:Ca.modifiers,action:Ca.action,seq:Za,level:Da,combo:pa}))}var Aa=this;J=J||b;if(!(Aa instanceof q))return new q(J);Aa.target=J;Aa._callbacks={};Aa._directMap={};var Ka={},Ja,Jb=!1,ub=!1,fb=!1;Aa._handleKey=function(pa,xa,Ca){var Za=S(pa,xa,Ca),Da;xa={};var Ab=0,Qa=!1;for(Da=0;Da<Za.length;++Da)Za[Da].seq&&(Ab=Math.max(Ab,Za[Da].level));for(Da=0;Da<Za.length;++Da)Za[Da].seq?Za[Da].level==Ab&&(Qa=!0,xa[Za[Da].seq]=1,aa(Za[Da].callback,Ca,Za[Da].combo,Za[Da].seq)):Qa||
aa(Za[Da].callback,Ca,Za[Da].combo);Za="keypress"==Ca.type&&ub;Ca.type!=fb||f(pa)||Za||R(xa);ub=Qa&&"keydown"==Ca.type};Aa._bindMultiple=function(pa,xa,Ca){for(var Za=0;Za<pa.length;++Za)wa(pa[Za],xa,Ca)};d(J,"keypress",ba);d(J,"keydown",ba);d(J,"keyup",ba)}if(a){var t={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",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},F={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},K;for(c=1;20>c;++c)t[111+c]="f"+c;for(c=0;9>=c;++c)t[c+96]=c;q.prototype.bind=
function(J,R,S){J=J instanceof Array?J:[J];this._bindMultiple.call(this,J,R,S);return this};q.prototype.unbind=function(J,R){return this.bind.call(this,J,function(){},R)};q.prototype.trigger=function(J,R){if(this._directMap[J+":"+R])this._directMap[J+":"+R]({},J);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(J,R){return-1<(" "+R.className+" ").indexOf(" mousetrap ")||k(R,this.target)?!1:"INPUT"==R.tagName||"SELECT"==
R.tagName||"TEXTAREA"==R.tagName||R.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(J){for(var R in J)J.hasOwnProperty(R)&&(t[R]=J[R]);K=null};q.init=function(){var J=q(b),R;for(R in J)"_"!==R.charAt(0)&&(q[R]=function(S){return function(){return J[S].apply(J,arguments)}}(R))};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 ik={},voa=function(a,b){return a+b},SBb={logInfo:function(){console.log(woa());console.log("\nDuplicate Requests:");console.table(uoa())},getCounts:function(){return ik},getDupes:uoa,getAggregates:woa};
var $k=Symbol("hc"),uH=function(a){this.params=a||{}};uH.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};uH.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};uH.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};ni.Object.defineProperties(uH.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});
var zoa={exact:Doa,subset:Goa},Aoa={exact:Coa,subset:Eoa,ignored:function(){return!0}},vk=function(a,b,c){a=void 0===a?new tk([],{}):a;b=void 0===b?{}:b;this.root=a;this.queryParams=b;this.fragment=void 0===c?null:c};vk.prototype.toString=function(){return TBb.serialize(this)};ni.Object.defineProperties(vk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new uH(this.queryParams));return this._queryParamMap}}});
var tk=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;kk(b,function(d){return d.parent=c})};tk.prototype.hasChildren=function(){return 0<this.numberOfChildren};tk.prototype.toString=function(){return pk(this)};ni.Object.defineProperties(tk.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Ak=function(a,b){this.path=a;this.parameters=b};Ak.prototype.toString=function(){return ok(this.path)+Joa(this.parameters)};
var al=function(){};al.\u0275fac=function(a){return new (a||al)};al.\u0275prov=Hc({token:al,factory:function(){return new vH},providedIn:"root"});var vH=function(){};vH.prototype.parse=function(a){a=new UBb(a);wH(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new tk([],{}):new tk([],VBb(a));return new vk(b,a.parseQueryParams(),wH(a,"#")?decodeURIComponent(a.remaining):null)};
vH.prototype.serialize=function(a){var b="/"+qk(a.root,!0),c=Loa(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};var TBb=new vH,Moa=/^[^\/()?;=#]+/,WBb=/^[^=?&#]+/,XBb=/^[^&#]+/,UBb=function(a){this.remaining=this.url=a};
UBb.prototype.parseQueryParams=function(){var a={};if(wH(this,"?")){do{var b,c=this.remaining.match(WBb);if(b=c?c[0]:""){this.capture(b);c="";if(wH(this,"=")){var d;if(d=(d=this.remaining.match(XBb))?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(wH(this,"&"))}return a};
var VBb=function(a){if(""===a.remaining)return{};wH(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(YBb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(YBb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=ZBb(a,!0));var d={};a.remaining.startsWith("(")&&(d=ZBb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new tk(b,c);return d},YBb=function(a){var b=sk(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw new Lc(4009,
!1);a.capture(b);b=decodeURIComponent(b);for(var c={};wH(a,";");){var d=a,e=sk(d.remaining);if(e){d.capture(e);var f="";if(wH(d,"=")){var h=sk(d.remaining);h&&(f=h,d.capture(f))}c[decodeURIComponent(e)]=decodeURIComponent(f)}}return new Ak(b,c)},ZBb=function(a,b){var c={};for(a.capture("(");!wH(a,")")&&0<a.remaining.length;){var d=sk(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw new Lc(4010,!1);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):
b&&(e="primary");d=VBb(a);c[e]=1===Object.keys(d).length?d.primary:new tk([],d);wH(a,"//")}return c},wH=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};UBb.prototype.capture=function(a){if(!wH(this,a))throw new Lc(4011,!1);};
var Qoa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&xk(c[0]))throw new Lc(4003,!1);if((a=c.find(yk))&&a!==(0<c.length?c[c.length-1]:null))throw new Lc(4004,!1);},$Bb=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};
var xH=function(a,b){this.id=a;this.url=b},il=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;xH.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};X(il,xH);il.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var gl=function(a,b,c){xH.call(this,a,b);this.urlAfterRedirects=c;this.type=1};X(gl,xH);
gl.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var yH=function(a,b,c,d){xH.call(this,a,b);this.reason=c;this.code=d;this.type=2};X(yH,xH);yH.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var aCb=function(a,b,c,d){xH.call(this,a,b);this.reason=c;this.code=d;this.type=16};X(aCb,xH);
var zH=function(a,b,c,d){xH.call(this,a,b);this.error=c;this.target=d;this.type=3};X(zH,xH);zH.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var AH=function(a,b,c,d){xH.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};X(AH,xH);AH.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var bCb=function(a,b,c,d){xH.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};X(bCb,xH);bCb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var cCb=function(a,b,c,d,e){xH.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};X(cCb,xH);
cCb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var dCb=function(a,b,c,d){xH.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};X(dCb,xH);dCb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var eCb=function(a,b,c,d){xH.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};X(eCb,xH);eCb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var fCb=function(a){this.route=a;this.type=9};fCb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var gCb=function(a){this.route=a;this.type=10};
gCb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var tpa=function(a){this.snapshot=a;this.type=11};tpa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var hCb=function(a){this.snapshot=a;this.type=12};hCb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Tk=function(a){this.snapshot=a;this.type=13};Tk.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var iCb=function(a){this.snapshot=a;this.type=14};iCb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var jCb=function(a,b){this.position=a;this.anchor=b;this.type=15};
jCb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};
var BH=function(a){this._root=a};BH.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};BH.prototype.children=function(a){return(a=Xoa(a,this._root))?a.children.map(function(b){return b.value}):[]};BH.prototype.firstChild=function(a){return(a=Xoa(a,this._root))&&0<a.children.length?a.children[0].value:null};BH.prototype.pathFromRoot=function(a){return Yoa(a,this._root).map(function(b){return b.value})};
ni.Object.defineProperties(BH.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var Dk=function(a,b){this.value=a;this.children=b};Dk.prototype.toString=function(){return"TreeNode("+this.value+")"};
var Gk=function(a,b){this._root=a;this.snapshot=b;bpa(this,a)};X(Gk,BH);Gk.prototype.toString=function(){return this.snapshot.toString()};var Fk=function(a,b,c,d,e,f,h,k){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;var q,t;this.title=null!=(t=null==(q=this.data)?void 0:q.pipe(C(function(x){return x[$k]})))?t:(0,W.of)(void 0);this._futureSnapshot=k};
Fk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
ni.Object.defineProperties(Fk.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(C(function(a){return new uH(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(C(function(a){return new uH(a)})));return this._queryParamMap}}});
var Ek=function(a,b,c,d,e,f,h,k,q,t,x){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._urlSegment=q;this._lastPathIndex=t;this._resolve=x};Ek.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
ni.Object.defineProperties(Ek.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.data)?void 0:a[$k]}},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 uH(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new uH(this.queryParams));return this._queryParamMap}}});var Ck=function(a,b){this._root=b;this.url=a;bpa(this,b)};X(Ck,BH);Ck.prototype.toString=function(){return cpa(this._root)};
var kCb=function(){this.injector=this.resolver=this.route=this.outlet=null;this.children=new bl;this.attachRef=null},bl=function(){this.contexts=new Map},lCb=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},mCb=function(a){var b=a.contexts;a.contexts=new Map;return b},CH=function(a,b){var c=a.getContext(b);c||(c=new kCb,a.contexts.set(b,c));return c};bl.prototype.getContext=function(a){return this.contexts.get(a)||null};bl.\u0275fac=function(a){return new (a||bl)};
bl.\u0275prov=Hc({token:bl,factory:bl.\u0275fac,providedIn:"root"});
var DH=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new sx;this.deactivateEvents=new sx;this.attachEvents=new sx;this.detachEvents=new sx;this.parentContexts=Rc(bl);this.location=Rc(wg);this.changeDetector=Rc(Xx);this.environmentInjector=Rc(ow)};DH.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(nCb(this,b)&&(this.deactivate(),lCb(this.parentContexts,b)),oCb(this))}};
DH.prototype.ngOnDestroy=function(){nCb(this,this.name)&&lCb(this.parentContexts,this.name)};var nCb=function(a,b){var c;return(null==(c=a.parentContexts.getContext(b))?void 0:c.outlet)===a};DH.prototype.ngOnInit=function(){oCb(this)};var oCb=function(a){var b=a.parentContexts,c=a.name,d=CH(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):pCb(a,b.route,b.injector))};
DH.prototype.detach=function(){if(!this.activated)throw new Lc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};DH.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);this.attachEvents.emit(a.instance)};DH.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var pCb=function(a,b,c){if(a.isActivated)throw new Lc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=CH(a.parentContexts,a.name).children;b=new qCb(b,f,d.injector);c&&c.resolveComponentFactory?(c=c.resolveComponentFactory(e),a.activated=d.createComponent(c,d.length,b)):a.activated=d.createComponent(e,{index:d.length,injector:b,environmentInjector:null!=c?c:a.environmentInjector});a.changeDetector.markForCheck();a.activateEvents.emit(a.activated.instance)};
ni.Object.defineProperties(DH.prototype,{isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Lc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Lc(4012,!1);return this._activatedRoute}}});DH.\u0275fac=function(a){return new (a||DH)};
DH.\u0275dir=u({type:DH,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ed]});var qCb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};qCb.prototype.get=function(a,b){return a===Fk?this.route:a===bl?this.childContexts:this.parent.get(a,b)};
var Jk=function(){};Jk.\u0275fac=function(a){return new (a||Jk)};
Jk.\u0275cmp=u({type:Jk,selectors:[["ng-component"]],standalone:!0,features:[function(a){a.getStandaloneInjector=function(b){b=b.get(Tx);if(a.standalone){if(!b.cachedInjectors.has(a.id)){var c=Fda(!1,a.type);c=0<c.length?hfa([c],b._injector,"Standalone["+a.type.name+"]"):null;b.cachedInjectors.set(a.id,c)}b=b.cachedInjectors.get(a.id)}else b=null;return b}}],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[DH],encapsulation:2});
var sCb=function(a,b,c){return C(function(d){(new rCb(b,d.targetRouterState,d.currentRouterState,c)).activate(a);return d})},rCb=function(a,b,c,d){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d};rCb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;tCb(this,b,c,a);dpa(this.futureState.root);EH(this,b,c,a)};
var tCb=function(a,b,c,d){var e=Bk(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,t=k?k.value:null;q===t?q.component?(q=d.getContext(q.outlet))&&tCb(a,f,k,q.children):tCb(a,f,k,d):t&&FH(a,k,d);delete e[h]});kk(e,function(f){FH(a,f,d)})},FH=function(a,b,c){if(b.value.component&&a.routeReuseStrategy.shouldDetach()){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;for(var e=Bk(b),f=n(Object.keys(e)),h=f.next();!h.done;h=f.next())FH(a,e[h.value],c);d&&d.outlet&&
(c=d.outlet.detach(),d=mCb(d.children),a.routeReuseStrategy.store(b.value.snapshot,{componentRef:c,route:b,contexts:d}))}else{c=(d=c.getContext(b.value.outlet))&&b.value.component?d.children:c;b=Bk(b);e=n(Object.keys(b));for(f=e.next();!f.done;f=e.next())FH(a,b[f.value],c);d&&d.outlet&&(d.outlet.deactivate(),mCb(d.children),d.attachRef=null,d.resolver=null,d.route=null)}},EH=function(a,b,c,d){var e=Bk(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;dpa(k);if(k===
q)k.component?(k=CH(d,k.outlet),EH(a,f,h,k.children)):EH(a,f,h,d);else if(k.component){h=CH(d,k.outlet);if(a.routeReuseStrategy.shouldAttach()){var t=a.routeReuseStrategy.retrieve();a.routeReuseStrategy.store(k.snapshot,null);h.children.contexts=t.contexts;h.attachRef=t.componentRef;h.route=t.route.value;h.outlet&&h.outlet.attach(t.componentRef,t.route.value);dpa(t.route.value)}else{q=Lk(k.snapshot);var x=null!=(t=null==q?void 0:q.get(qw))?t:null;h.attachRef=null;h.route=k;h.resolver=x;h.injector=
q;h.outlet&&pCb(h.outlet,k,h.injector)}EH(a,f,null,h.children)}else EH(a,f,null,d);a.forwardEvent(new iCb(f.value.snapshot))});b.children.length&&a.forwardEvent(new hCb(b.value.snapshot))};
var Mk=Symbol("jc");
var npa=function(a){this.path=a;this.route=this.path[this.path.length-1]},Qk=function(a,b){this.component=a;this.route=b};
var Apa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
var Xk=function(a){this.segmentGroup=a||null},uCb=function(a){this.urlTree=a},Zk=function(a,b,c,d,e){this.injector=a;this.configLoader=b;this.urlSerializer=c;this.urlTree=d;this.config=e;this.allowRedirects=!0};
Zk.prototype.apply=function(){var a=this,b=Vk(this.urlTree.root,[],[],this.config).segmentGroup;b=new tk(b.segments,b.children);return vCb(this,this.injector,this.config,b,"primary").pipe(C(function(c){return a.createUrlTree(uk(c),a.urlTree.queryParams,a.urlTree.fragment)})).pipe(nf(function(c){if(c instanceof uCb)return a.allowRedirects=!1,a.match(c.urlTree);if(c instanceof Xk)throw new Lc(4002,!1);throw c;}))};
Zk.prototype.match=function(a){var b=this;return vCb(this,this.injector,this.config,a.root,"primary").pipe(C(function(c){return b.createUrlTree(uk(c),a.queryParams,a.fragment)})).pipe(nf(function(c){if(c instanceof Xk)throw new Lc(4002,!1);throw c;}))};Zk.prototype.createUrlTree=function(a,b,c){a=Noa(a);return new vk(a,b,c)};
var vCb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?wCb(a,b,c,d).pipe(C(function(f){return new tk([],f)})):GH(a,b,d,c,d.segments,e,!0)},wCb=function(a,b,c,d){for(var e=[],f=n(Object.keys(d.children)),h=f.next();!h.done;h=f.next())h=h.value,"primary"===h?e.unshift(h):e.push(h);return(0,W.from)(e).pipe(af(function(k){var q=d.children[k],t=lpa(c,k);return vCb(a,b,t,q,k).pipe(C(function(x){return{segment:x,outlet:k}}))},1),Zga(function(k,q){k[q.outlet]=q.segment;return k},{}),Wga())},
GH=function(a,b,c,d,e,f,h){return(0,W.from)(d).pipe(af(function(k){return xCb(a,b,c,d,k,e,f,h).pipe(nf(function(q){if(q instanceof Xk)return(0,W.of)(null);throw q;}))},1),vf(function(k){return!!k}),nf(function(k){if(opa(k))return 0!==e.length||c.children[f]?Yk(c):(0,W.of)(new tk([],{}));throw k;}))},xCb=function(a,b,c,d,e,f,h,k){if(Epa(e,c,f,h))if(void 0===e.redirectTo)a=yCb(a,b,c,e,f,h);else{var q;k&&a.allowRedirects?q="**"===e.path?zCb(a,b,d,e,h):ACb(a,b,c,d,e,f,h):q=Yk(c);a=q}else a=Yk(c);return a},
zCb=function(a,b,c,d,e){var f=BCb(a,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,W.throwError)(new uCb(f)):CCb(f).pipe(af(function(h){var k=new tk(h,{});return GH(a,b,k,c,h,e,!1)}))},ACb=function(a,b,c,d,e,f,h){f=zpa(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,t=f.positionalParamSegments;if(!f.matched)return Yk(c);f=BCb(a,k,e.redirectTo,t);return e.redirectTo.startsWith("/")?(0,W.throwError)(new uCb(f)):CCb(f).pipe(af(function(x){return GH(a,b,c,d,x.concat(q),h,!1)}))},yCb=
function(a,b,c,d,e,f){return"**"===d.path?(b=kpa(d,b),d.loadChildren?(d._loadedRoutes?(0,W.of)({routes:d._loadedRoutes,injector:d._loadedInjector}):a.configLoader.loadChildren(b,d)).pipe(C(function(h){d._loadedRoutes=h.routes;d._loadedInjector=h.injector;return new tk(e,{})})):(0,W.of)(new tk(e,{}))):Bpa(c,d,e,b).pipe(Df(function(h){var k=h.consumedSegments,q=h.remainingSegments;if(!h.matched)return Yk(c);var t;b=null!=(t=d._injector)?t:b;return DCb(a,b,d,e).pipe(af(function(x){var y,F=null!=(y=x.injector)?
y:b;x=x.routes;var K=Vk(c,k,q,x);y=K.segmentGroup;K=K.slicedSegments;y=new tk(y.segments,y.children);return 0===K.length&&y.hasChildren()?wCb(a,F,x,y).pipe(C(function(J){return new tk(k,J)})):0===x.length&&0===K.length?(0,W.of)(new tk(k,{})):GH(a,F,y,x,K,Kk(d)===f?"primary":f,!0).pipe(C(function(J){return new tk(k.concat(J.segments),J.children)}))}))}))},DCb=function(a,b,c,d){return c.children?(0,W.of)({routes:c.children,injector:b}):c.loadChildren?void 0!==c._loadedRoutes?(0,W.of)({routes:c._loadedRoutes,
injector:c._loadedInjector}):xpa(b,c,d).pipe(af(function(e){return e?a.configLoader.loadChildren(b,c).pipe(Ff(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):(0,W.throwError)(hpa(3))})):(0,W.of)({routes:[],injector:b})},CCb=function(a){var b=[];for(a=a.root;;){b=b.concat(a.segments);if(0===a.numberOfChildren)return(0,W.of)(b);if(1<a.numberOfChildren||!a.children.primary)return(0,W.throwError)(new Lc(4E3,!1));a=a.children.primary}},BCb=function(a,b,c,d){var e=a.urlSerializer.parse(c);
b=ECb(a,c,e.root,b,d);return new vk(b,FCb(e.queryParams,a.urlTree.queryParams),e.fragment)},FCb=function(a,b){var c={};kk(a,function(d,e){c[e]="string"===typeof d&&d.startsWith(":")?b[d.substring(1)]:d});return c},ECb=function(a,b,c,d,e){var f=GCb(c.segments,d,e),h={};kk(c.children,function(k,q){h[q]=ECb(a,b,k,d,e)});return new tk(f,h)},GCb=function(a,b,c){return a.map(function(d){if(d.path.startsWith(":")){if(d=c[d.path.substring(1)],!d)throw new Lc(4001,!1);}else a:for(var e=0,f=n(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 Gpa=function(){},Ipa=function(a,b,c,d,e,f,h){this.injector=a;this.rootComponentType=b;this.config=c;this.urlTree=d;this.url=e;this.paramsInheritanceStrategy=f;this.urlSerializer=h};
Ipa.prototype.recognize=function(){var a=this,b=Vk(this.urlTree.root,[],[],this.config.filter(function(c){return void 0===c.redirectTo})).segmentGroup;return HCb(this,this.injector,this.config,b,"primary").pipe(C(function(c){if(null===c)return null;var d=new Ek([],Object.freeze({}),Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,{},"primary",a.rootComponentType,null,a.urlTree.root,-1,{});c=new Ck(a.url,new Dk(d,c));ICb(a,c._root);return c}))};
var ICb=function(a,b){var c=b.value,d=apa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return ICb(a,e)})},HCb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?a.processChildren(b,c,d):JCb(a,b,c,d,d.segments,e)};
Ipa.prototype.processChildren=function(a,b,c){var d=this;return(0,W.from)(Object.keys(c.children)).pipe(af(function(e){var f=c.children[e],h=lpa(b,e);return HCb(d,a,h,f,e)},1),Zga(function(e,f){if(!e||!f)return null;e.push.apply(e,r(f));return e}),kha(function(e){return null!==e}),pf(null),Wga(),C(function(e){if(null===e)return null;e=Mpa(e);Kpa(e);return e}))};
var JCb=function(a,b,c,d,e,f){return(0,W.from)(c).pipe(af(function(h){var k;return KCb(a,null!=(k=h._injector)?k:b,h,d,e,f)},1),vf(function(h){return!!h}),nf(function(h){if(opa(h))return 0!==e.length||d.children[f]?(0,W.of)(null):(0,W.of)([]);throw h;}))},KCb=function(a,b,c,d,e,f){if(c.redirectTo||!Epa(c,d,e,f))return(0,W.of)(null);if("**"===c.path){var h=Opa(d)+e.length;var k,q;e=new Ek(e,0<e.length?(0<e.length?e[e.length-1]:null).parameters:{},Object.freeze(Object.assign({},a.urlTree.queryParams)),
a.urlTree.fragment,c.data||{},Kk(c),null!=(q=null!=(k=c.component)?k:c._loadedComponent)?q:null,c,Npa(d),h,c.resolve||{});h=(0,W.of)({snapshot:e,consumedSegments:[],remainingSegments:[]})}else h=Bpa(d,c,e,b).pipe(C(function(t){var x=t.consumedSegments,y=t.remainingSegments;if(!t.matched)return null;var F=Opa(d)+x.length,K,J;return{snapshot:new Ek(x,t.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,c.data||{},Kk(c),null!=(J=null!=(K=c.component)?K:c._loadedComponent)?
J:null,c,Npa(d),F,c.resolve||{}),consumedSegments:x,remainingSegments:y}}));return h.pipe(Df(function(t){if(null===t)return(0,W.of)(null);var x=t.snapshot,y=t.consumedSegments;t=t.remainingSegments;var F;b=null!=(F=c._injector)?F:b;var K;F=null!=(K=c._loadedInjector)?K:b;K=c.children?c.children:c.loadChildren?c._loadedRoutes:[];t=Vk(d,y,t,K.filter(function(J){return void 0===J.redirectTo}));y=t.segmentGroup;t=t.slicedSegments;return 0===t.length&&y.hasChildren()?a.processChildren(F,K,y).pipe(C(function(J){return null===
J?null:[new Dk(x,J)]})):0===K.length&&0===t.length?(0,W.of)([new Dk(x,[])]):JCb(a,F,K,y,t,Kk(c)===f?"primary":f).pipe(C(function(J){return null===J?null:[new Dk(x,J)]}))}))};
var LCb=function(a){this.router=a;this.lastSuccessfulNavigation=this.currentNavigation=null},QCb=function(a,b){var c=a.router.events;return b.pipe(hf(function(d){return 0!==d.id}),C(function(d){return Object.assign({},d,{extractedUrl:a.router.urlHandlingStrategy.extract(d.rawUrl)})}),Df(function(d){var e=!1,f=!1;return(0,W.of)(d).pipe(Ff(function(h){a.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:a.lastSuccessfulNavigation?
Object.assign({},a.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Df(function(h){var k=a.router.browserUrlTree.toString();k=!a.router.navigated||h.extractedUrl.toString()!==k||k!==a.router.currentUrlTree.toString();var q,t=null!=(q=h.extras.onSameUrlNavigation)?q:a.router.onSameUrlNavigation;if(!k&&"reload"!==t)return HH(a.router,new aCb(h.id,IH(a.router,d.rawUrl),"",0)),a.router.rawUrlTree=h.rawUrl,h.resolve(null),W.EMPTY;"imperative"!==h.source&&(a.router.browserUrlTree=h.extractedUrl);
return(0,W.of)(h).pipe(Df(function(x){var y=a.router.transitions.getValue();c.next(new il(x.id,IH(a.router,x.extractedUrl),x.source,x.restoredState));return y!==a.router.transitions.getValue()?W.EMPTY:Promise.resolve(x)}),Fpa(a.router.ngModule.injector,a.router.configLoader,a.router.urlSerializer,a.router.config),Ff(function(x){a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:x.urlAfterRedirects});d.urlAfterRedirects=x.urlAfterRedirects}),Ppa(a.router.ngModule.injector,a.router.rootComponentType,
a.router.config,a.router.urlSerializer,a.router.paramsInheritanceStrategy),Ff(function(x){d.targetSnapshot=x.targetSnapshot;if("eager"===a.router.urlUpdateStrategy){if(!x.extras.skipLocationChange){var y=a.router.urlHandlingStrategy.merge(x.urlAfterRedirects,x.rawUrl);MCb(a.router,y,x)}a.router.browserUrlTree=x.urlAfterRedirects}x=new AH(x.id,IH(a.router,x.extractedUrl),IH(a.router,x.urlAfterRedirects),x.targetSnapshot);c.next(x)}))}),Ff(function(h){h=new bCb(h.id,IH(a.router,h.extractedUrl),IH(a.router,
h.urlAfterRedirects),h.targetSnapshot);HH(a.router,h)}),C(function(h){var k=Object,q=k.assign;var t=h.currentSnapshot;var x=h.targetSnapshot._root;t=Pk(x,t?t._root:null,a.router.rootContexts,[x.value]);return d=q.call(k,{},h,{guards:t})}),rpa(a.router.ngModule.injector,function(h){return HH(a.router,h)}),Ff(function(h){d.guardsResult=h.guardsResult;if(wk(h.guardsResult))throw ipa(h.guardsResult);h=new cCb(h.id,IH(a.router,h.extractedUrl),IH(a.router,h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);
HH(a.router,h)}),hf(function(h){return h.guardsResult?!0:(NCb(a.router,h),OCb(a.router,h,3),!1)}),Vpa(function(h){if(h.guards.canActivateChecks.length)return(0,W.of)(h).pipe(Ff(function(k){k=new dCb(k.id,IH(a.router,k.extractedUrl),IH(a.router,k.urlAfterRedirects),k.targetSnapshot);HH(a.router,k)}),Df(function(k){var q=!1;return(0,W.of)(k).pipe(Rpa(a.router.paramsInheritanceStrategy,a.router.ngModule.injector),Ff({next:function(){return q=!0},complete:function(){q||(NCb(a.router,k),OCb(a.router,k,
2))}}))}),Ff(function(k){k=new eCb(k.id,IH(a.router,k.extractedUrl),IH(a.router,k.urlAfterRedirects),k.targetSnapshot);HH(a.router,k)}))}),Vpa(function(h){var k=function(q){var t=[],x;(null==(x=q.routeConfig)?0:x.loadComponent)&&!q.routeConfig._loadedComponent&&t.push(a.router.configLoader.loadComponent(q.routeConfig).pipe(Ff(function(F){q.component=F}),C(function(){})));x=n(q.children);for(var y=x.next();!y.done;y=x.next())t.push.apply(t,r(k(y.value)));return t};return(0,W.combineLatest)(k(h.targetSnapshot.root)).pipe(pf(),
sf())}),Vpa(function(){return a.router.afterPreactivation()}),C(function(h){var k=h.targetSnapshot;var q=h.currentRouterState;q=Hk(a.router.routeReuseStrategy,k._root,q?q._root:void 0);k=new Gk(q,k);return d=Object.assign({},h,{targetRouterState:k})}),Ff(function(h){a.router.currentUrlTree=h.urlAfterRedirects;a.router.rawUrlTree=a.router.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);a.router.routerState=h.targetRouterState;"deferred"===a.router.urlUpdateStrategy&&(h.extras.skipLocationChange||
MCb(a.router,a.router.rawUrlTree,h),a.router.browserUrlTree=h.urlAfterRedirects)}),sCb(a.router.rootContexts,a.router.routeReuseStrategy,function(h){return HH(a.router,h)}),Ff({next:function(){e=!0;a.lastSuccessfulNavigation=a.currentNavigation},complete:function(){e=!0}}),uf(function(){e||f||OCb(a.router,d,1);var h;(null==(h=a.currentNavigation)?void 0:h.id)===d.id&&(a.currentNavigation=null)}),nf(function(h){f=!0;if(jpa(h)){jpa(h)&&wk(h.url)||(a.router.navigated=!0,NCb(a.router,d,!0));var k=new yH(d.id,
IH(a.router,d.extractedUrl),h.message,h.cancellationCode);c.next(k);jpa(h)&&wk(h.url)?(h=a.router.urlHandlingStrategy.merge(h.url,a.router.rawUrlTree),PCb(a.router,h,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===a.router.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})):d.resolve(!1)}else{NCb(a.router,d,!0);var q=new zH(d.id,IH(a.router,d.extractedUrl),h,null!=(k=d.targetSnapshot)?k:void 0);c.next(q);try{d.resolve(a.router.errorHandler(h))}catch(t){d.reject(t)}}return W.EMPTY}))}))};
var JH=function(){},RCb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[$k])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c};JH.\u0275fac=function(a){return new (a||JH)};JH.\u0275prov=Hc({token:JH,factory:function(){return Rc(KH)},providedIn:"root"});var KH=function(a){this.title=a};X(KH,JH);KH.prototype.updateTitle=function(a){a=RCb(a);void 0!==a&&this.title.setTitle(a)};KH.\u0275fac=function(a){return new (a||KH)(p(Qz))};
KH.\u0275prov=Hc({token:KH,factory:KH.\u0275fac,providedIn:"root"});
var LH=function(){};LH.\u0275fac=function(a){return new (a||LH)};LH.\u0275prov=Hc({token:LH,factory:function(){return Rc(MH)},providedIn:"root"});var SCb=function(){};g=SCb.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var MH=function(){};X(MH,SCb);MH.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(MH)))(b||MH)}}();
MH.\u0275prov=Hc({token:MH,factory:MH.\u0275fac,providedIn:"root"});
var bqa=new Md("",{providedIn:"root",factory:function(){return{}}});
var aqa=new Md("ROUTES"),NH=function(a){this.injector=a;this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap};
NH.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,W.of)(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=lk(a.loadComponent()).pipe(C(Ypa),Ff(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),uf(function(){b.componentLoaders.delete(a)}));c=(new W.ConnectableObservable(c,function(){return new W.Subject})).pipe(Me());this.componentLoaders.set(a,
c);return c};
NH.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return(0,W.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=TCb(this,b.loadChildren).pipe(C(function(e){if(c.onLoadEndListener)c.onLoadEndListener(b);if(!Array.isArray(e)){var f=e.create(a).injector;e=Array.prototype.concat.apply([],f.get(aqa,[],10))}return{routes:e.map(Ik),injector:f}}),uf(function(){c.childrenLoaders.delete(b)}));
d=(new W.ConnectableObservable(d,function(){return new W.Subject})).pipe(Me());this.childrenLoaders.set(b,d);return d};var TCb=function(a,b){return(a=Xpa(a.injector,b))?a:lk(b()).pipe(C(Ypa),af(function(c){return c instanceof Qpb||Array.isArray(c)?(0,W.of)(c):(0,W.from)(Promise.resolve(new Aw(c)))}))};NH.\u0275fac=function(a){return new (a||NH)(p(dl),p(el))};NH.\u0275prov=Hc({token:NH,factory:NH.\u0275fac,providedIn:"root"});
var OH=function(){};OH.\u0275fac=function(a){return new (a||OH)};OH.\u0275prov=Hc({token:OH,factory:function(){return Rc(PH)},providedIn:"root"});var PH=function(){};PH.prototype.extract=function(a){return a};PH.prototype.merge=function(a){return a};PH.\u0275fac=function(a){return new (a||PH)};PH.\u0275prov=Hc({token:PH,factory:PH.\u0275fac,providedIn:"root"});
var UCb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},VCb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},fl=function(a,b,c,d,e,f,h){var k=this;this.rootComponentType=a;this.urlSerializer=b;this.rootContexts=c;this.location=d;this.config=h;this.disposed=!1;this.currentPageId=this.navigationId=0;this.events=new W.Subject;this.errorHandler=Zpa;this.malformedUriErrorHandler=$pa;this.navigated=!1;this.lastSuccessfulId=-1;this.afterPreactivation=
function(){return(0,W.of)(void 0)};this.urlHandlingStrategy=Rc(OH);this.routeReuseStrategy=Rc(LH);this.titleStrategy=Rc(JH);this.onSameUrlNavigation="ignore";this.paramsInheritanceStrategy="emptyOnly";this.urlUpdateStrategy="deferred";this.canceledNavigationResolution="replace";this.navigationTransitions=new LCb(this);this.configLoader=e.get(NH);this.configLoader.onLoadEndListener=function(q){return HH(k,new gCb(q))};this.configLoader.onLoadStartListener=function(q){return HH(k,new fCb(q))};this.ngModule=
e.get(rw);this.console=e.get(Fw);e.get(Mf)instanceof Mf&&tx();this.config=h.map(Ik);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new vk;this.routerState=Zoa(this.currentUrlTree,this.rootComponentType);this.transitions=new W.BehaviorSubject({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,
extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null});this.navigations=QCb(this.navigationTransitions,this.transitions);WCb(this)};fl.prototype.setTransition=function(a){this.transitions.next(Object.assign({},this.transitions.value,a))};
fl.prototype.initialNavigation=function(){XCb(this);0===this.navigationId&&Rt(this,this.location.path(!0),{replaceUrl:!0})};
var XCb=function(a){a.locationSubscription||(a.locationSubscription=a.location.subscribe(function(b){var c="popstate"===b.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){var d={replaceUrl:!0},e,f=(null==(e=b.state)?0:e.navigationId)?b.state:null;b.state&&(e=Object.assign({},b.state),delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(d.state=e));e=YCb(a,b.url);PCb(a,e,c,f,d)},0)}))},HH=function(a,b){a.events.next(b)};fl.prototype.ngOnDestroy=function(){this.dispose()};
fl.prototype.dispose=function(){this.transitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0};
fl.prototype.createUrlTree=function(a,b){b=void 0===b?{}:b;var c=b.queryParams,d=b.fragment,e=b.relativeTo||this.routerState.root;d=b.preserveFragment?this.currentUrlTree.fragment:d;switch(b.queryParamsHandling){case "merge":c=Object.assign({},this.currentUrlTree.queryParams,c);break;case "preserve":c=this.currentUrlTree.queryParams;break;default:c=c||null}null!==c&&(c=ZCb(c));b=this.currentUrlTree;d=null!=d?d:null;if(0===a.length)b=Poa(b.root,b.root,b.root,c,d);else if(a=Roa(a),a.isAbsolute&&1===
a.commands.length&&"/"==a.commands[0])b=Poa(b.root,b.root,new tk([],{}),c,d);else{var f,h=null==(f=e.snapshot)?void 0:f._lastPathIndex,k;f=null==(k=e.snapshot)?void 0:k._urlSegment;if(a.isAbsolute)k=new $Bb(b.root,!0,0);else if(-1===h)k=new $Bb(f,f===b.root,0);else{k=f;f=h+(xk(a.commands[0])?0:1);for(e=a.numberOfDoubleDots;e>f;){e-=f;k=k.parent;if(!k)throw new Lc(4005,!1);f=k.segments.length}k=new $Bb(k,!1,f-e)}a=k.processChildren?zk(k.segmentGroup,k.index,a.commands):Uoa(k.segmentGroup,k.index,a.commands);
b=Poa(b.root,k.segmentGroup,a,c,d)}return b};var Rt=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=wk(b)?b:YCb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return PCb(a,b,"imperative",null,c)};fl.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 Lc(4008,!1);return Rt(this,this.createUrlTree(a,b),b)};
var IH=function(a,b){return a.urlSerializer.serialize(b)},YCb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};fl.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},UCb):!1===b?c=Object.assign({},VCb):c=b;if(wk(a))return Boa(this.currentUrlTree,a,c);a=YCb(this,a);return Boa(this.currentUrlTree,a,c)};
var ZCb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},WCb=function(a){a.navigations.subscribe(function(b){a.navigated=!0;a.lastSuccessfulId=b.id;a.currentPageId=b.targetPageId;a.events.next(new gl(b.id,IH(a,b.extractedUrl),IH(a,a.currentUrlTree)));var c;null==(c=a.titleStrategy)||c.updateTitle(a.routerState.snapshot);b.resolve(!0)},function(b){a.console.warn("Unhandled Navigation Error: "+b)})},PCb=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(F,K){h=F;k=K});var q=++a.navigationId;if("computed"===a.canceledNavigationResolution)if(0===a.currentPageId&&(d=a.location.getState()),d&&d.\u0275routerPageId)var t=d.\u0275routerPageId;else if(e.replaceUrl||e.skipLocationChange){var x;t=null!=(x=a.browserPageId)?x:0}else{var y;t=(null!=(y=a.browserPageId)?y:0)+1}else t=0;a.setTransition({id:q,targetPageId:t,source:c,restoredState:d,currentUrlTree:a.currentUrlTree,rawUrl:b,
extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(F){return Promise.reject(F)})},MCb=function(a,b,c){b=a.urlSerializer.serialize(b);var d=Object.assign({},c.extras.state,$Cb(a,c.id,c.targetPageId)),e=a.location;var f=void 0===f?"":f;e.path()==e.normalize(b+Zg(f))||c.extras.replaceUrl?a.location.replaceState(b,"",d):a.location.go(b,"",d)},NCb=function(a,b,c){c=void 0===c?!1:c;if("computed"===a.canceledNavigationResolution){c=
a.currentPageId-b.targetPageId;var d;if("popstate"!==b.source&&"eager"!==a.urlUpdateStrategy&&a.currentUrlTree!==(null==(d=a.navigationTransitions.currentNavigation)?void 0:d.finalUrl)||0===c){var e;a.currentUrlTree===(null==(e=a.navigationTransitions.currentNavigation)?void 0:e.finalUrl)&&0===c&&(a.resetState(b),a.browserUrlTree=b.currentUrlTree,aDb(a))}else a.location.historyGo(c)}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),aDb(a))};
fl.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};
var aDb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",$Cb(a,a.lastSuccessfulId,a.currentPageId))},OCb=function(a,b,c){c=new yH(b.id,IH(a,b.extractedUrl),"",c);HH(a,c);b.resolve(!1)},$Cb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
ni.Object.defineProperties(fl.prototype,{browserPageId:{configurable:!0,enumerable:!0,get:function(){var a;return null==(a=this.location.getState())?void 0:a.\u0275routerPageId}},url:{configurable:!0,enumerable:!0,get:function(){return IH(this,this.currentUrlTree)}}});fl.\u0275fac=function(){Vd()};fl.\u0275prov=Hc({token:fl,factory:function(){return cqa()},providedIn:"root"});
var QH=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._replaceUrl=this._skipLocationChange=this._preserveFragment=!1;this.commands=this.href=null;this.onChanges=new W.Subject;b=e.nativeElement.tagName;(this.isAnchorElement="A"===b||"AREA"===b)?this.subscription=a.events.subscribe(function(k){k instanceof gl&&bDb(h)}):cDb(this,"0")},cDb=function(a,b){null!=a.tabIndexAttribute||a.isAnchorElement||dDb(a,"tabindex",
b)};QH.prototype.ngOnChanges=function(){this.isAnchorElement&&bDb(this);this.onChanges.next(this)};QH.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;Rt(this.router,this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state});return!this.isAnchorElement};QH.prototype.ngOnDestroy=function(){var a;null==(a=this.subscription)||a.unsubscribe()};
var bDb=function(a){var b;a.href=null!==a.urlTree&&a.locationStrategy?null==(b=a.locationStrategy)?void 0:b.prepareExternalUrl(IH(a.router,a.urlTree)):null;null===a.href?b=null:(b=a.el.nativeElement.tagName.toLowerCase(),b=("base"===b||"link"===b?Iea:le)(a.href));dDb(a,"href",b)},dDb=function(a,b,c){var d=a.renderer;a=a.el.nativeElement;null!==c?d.setAttribute(a,b,c):d.removeAttribute(a,b)};
ni.Object.defineProperties(QH.prototype,{preserveFragment:{configurable:!0,enumerable:!0,set:function(a){this._preserveFragment=Jg(a)},get:function(){return this._preserveFragment}},skipLocationChange:{configurable:!0,enumerable:!0,set:function(a){this._skipLocationChange=Jg(a)},get:function(){return this._skipLocationChange}},replaceUrl:{configurable:!0,enumerable:!0,set:function(a){this._replaceUrl=Jg(a)},get:function(){return this._replaceUrl}},routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=
a?(this.commands=Array.isArray(a)?a:[a],cDb(this,"0")):(this.commands=null,cDb(this,null))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}});
QH.\u0275fac=function(a){return new (a||QH)(B(fl),B(Fk),Ad("tabindex"),B(tw),B(Rd),B(Ay))};
QH.\u0275dir=u({type:QH,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&Uf("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,
features:[ed]});
var RH=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 sx;this.routerEventsSubscription=a.events.subscribe(function(h){h instanceof gl&&f.update()})};RH.prototype.ngAfterContentInit=function(){var a=this;(0,W.of)(this.links.changes,(0,W.of)(null)).pipe(bf()).subscribe(function(){a.update();eDb(a)})};
var eDb=function(a){var b;null==(b=a.linkInputChangesSubscription)||b.unsubscribe();b=[].concat(r(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=(0,W.from)(b).pipe(bf()).subscribe(function(c){a.isActive!==fDb(a,a.router)(c)&&a.update()})};RH.prototype.ngOnChanges=function(){this.update()};
RH.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};
RH.prototype.update=function(){var a=this;this.links&&this.router.navigated&&Promise.resolve().then(function(){var b=gDb(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 fDb=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}},gDb=function(a){var b=fDb(a,a.router);return a.link&&b(a.link)||a.links.some(b)};ni.Object.defineProperties(RH.prototype,{routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});
RH.\u0275fac=function(a){return new (a||RH)(B(fl),B(Rd),B(tw),B(Xx),B(QH,8))};RH.\u0275dir=u({type:RH,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&Ag(c,QH,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:[ed]});
var hDb=function(){},SH=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},iDb=function(a){a.subscription=a.router.events.pipe(hf(function(b){return b instanceof gl}),af(function(){return a.preload()},1)).subscribe(function(){})};SH.prototype.preload=function(){return jDb(this,this.injector,this.router.config)};SH.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var jDb=function(a,b,c){var d=[];c=n(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=hfa(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;if(e.loadChildren&&!e._loadedRoutes&&void 0===e.canLoad||e.loadComponent&&!e._loadedComponent)d.push(kDb(a,h,e));else if(e.children||e._loadedRoutes)h=void 0,d.push(jDb(a,f,null!=(h=e.children)?h:e._loadedRoutes))}return(0,W.from)(d).pipe(bf())},kDb=function(a,
b,c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&void 0===c.canLoad?a.loader.loadChildren(b,c):(0,W.of)(null)).pipe(af(function(f){if(null===f)return(0,W.of)(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return jDb(a,null!=(h=f.injector)?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return(0,W.from)([d,e]).pipe(bf())}return d})};SH.\u0275fac=function(a){return new (a||SH)(p(fl),p(el),p(ow),p(hDb),p(NH))};
SH.\u0275prov=Hc({token:SH,factory:SH.\u0275fac,providedIn:"root"});
var lDb=new Md(""),TH=function(a,b,c,d){d=void 0===d?{}:d;this.router=a;this.viewportScroller=b;this.zone=c;this.options=d;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};d.scrollPositionRestoration=d.scrollPositionRestoration||"disabled";d.anchorScrolling=d.anchorScrolling||"disabled"};
TH.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;try{if(Dy(a)){var b=Object.getOwnPropertyDescriptor(a.window.history,"scrollRestoration")||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a.window.history),"scrollRestoration");var c=!!b&&!(!b.writable&&!b.set)}else c=!1}catch(d){c=!1}c&&(a=a.window.history)&&a.scrollRestoration&&(a.scrollRestoration="manual")}this.routerEventsSubscription=mDb(this);this.scrollEventsSubscription=
nDb(this)};
var mDb=function(a){return a.router.events.subscribe(function(b){b instanceof il?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof gl&&(a.lastId=b.id,oDb(a,YCb(a.router,b.urlAfterRedirects).fragment))})},nDb=function(a){return a.router.events.subscribe(function(b){if(b instanceof jCb)if(b.position)"top"===a.options.scrollPositionRestoration?Mrb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&
Mrb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(Dy(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&&(d.body.createShadowRoot||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&&Mrb(a.viewportScroller,[0,0])})},oDb=function(a,b){a.zone.runOutsideAngular(function(){setTimeout(function(){a.zone.run(function(){HH(a.router,new jCb("popstate"===a.lastSource?a.store[a.restoredId]:null,b))})},0)})};
TH.prototype.ngOnDestroy=function(){var a;null==(a=this.routerEventsSubscription)||a.unsubscribe();var b;null==(b=this.scrollEventsSubscription)||b.unsubscribe()};TH.\u0275fac=function(){Vd()};TH.\u0275prov=Hc({token:TH,factory:TH.\u0275fac});
new Md("",{providedIn:"root",factory:function(){return!1}});var pDb=new Md("",{factory:function(){return new W.Subject}}),qDb=new Md("",{providedIn:"root",factory:function(){return 1}}),rDb=new Md("");
var sDb=new Md("ROUTER_FORROOT_GUARD"),tDb=[cl,{provide:al,useClass:vH},{provide:fl,useFactory:cqa},bl,{provide:Fk,useFactory:function(a){return a.routerState.root},deps:[fl]},NH,[]],UH=function(){};UH.\u0275fac=function(a){return new (a||UH)(p(sDb,8))};UH.\u0275mod=Yc({type:UH});UH.\u0275inj=Ic({imports:[Jk]});var uDb=new Md("");
var vDb={attributes:!1,childList:!0,subtree:!0},VH=function(a,b,c){var d=this;this.ngZone=a;this.router=b;this.activatedRoute=c;this.dom$=new W.Subject;this.cdr$=this.ngZone.onStable;this.xhr$=new W.Subject;this.render$=(0,W.merge)(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(of(200));this.navigatedTo$=this.router.events.pipe(hf(hl),C(function(){return eqa(d.activatedRoute.snapshot)}));this.navigatedTo$.pipe(Df(function(e){return d.renderSettled$.pipe(sf(),C(function(){return e}))}),
Af(1));this.domObserver=new MutationObserver(function(){return void d.dom$.next()})},wDb=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,vDb)};VH.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;ik[c]=~~ik[c]+1;this.xhr$.next(c);return b.handle(a)};VH.\u0275fac=function(a){return new (a||VH)(p(Mf),p(fl),p(Fk))};VH.\u0275prov=Hc({token:VH,factory:VH.\u0275fac,providedIn:"root"});var xDb={provide:sD,useExisting:VH,multi:!0};
var Z=function(){this.destroyed$=new W.ReplaySubject(1);this.subscriptions=new W.Subscription};Z.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Z.\u0275fac=function(a){return new (a||Z)};Z.\u0275dir=u({type:Z});
var WH=function(){};g=WH.prototype;g.debug=function(){kl.apply(null,r(Uc.apply(0,arguments)))};g.error=function(){iqa.apply(null,r(Uc.apply(0,arguments)))};g.info=function(){gqa.apply(null,r(Uc.apply(0,arguments)))};g.log=function(){hqa.apply(null,r(Uc.apply(0,arguments)))};g.warn=function(){ll.apply(null,r(Uc.apply(0,arguments)))};WH.\u0275fac=function(a){return new (a||WH)};WH.\u0275prov=Hc({token:WH,factory:WH.\u0275fac,providedIn:"root"});
var XH=function(a){Z.call(this);var b=this;this.ngZone=a;this.activeSubject$=new W.BehaviorSubject(!1);this.active$=this.activeSubject$.pipe(rf(),Ef(this.destroyed$),jqa(this.ngZone));this.onUserEvent=Zob(function(){b.activeSubject$.next(!0);yDb(b)},200);this.onVisibilityChange=function(){"hidden"===document.visibilityState?(b.activeSubject$.next(!1),clearTimeout(b.activeTimeoutId)):(b.activeSubject$.next(!0),yDb(b))}};X(XH,Z);XH.\u0275dir=Z.\u0275dir;
XH.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)};
XH.prototype.ngOnDestroy=function(){Z.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 yDb=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},3E3)};XH.\u0275fac=function(a){return new (a||XH)(p(Mf))};XH.\u0275prov=Hc({token:XH,factory:XH.\u0275fac,providedIn:"root"});
var zDb=[gl,zH,yH],ZH=function(a,b){Z.call(this);var c=this;this.router=a;this.activatedRoute=b;this.routeChangeStart=new W.Subject;this.routeChangeSuccess=new W.Subject;this.locationChangeStart=new W.Subject;this.locationChangeSuccess=new W.Subject;this.routeUpdate=new W.Subject;this.viewContentLoaded=new W.Subject;this.navigationEnd$=this.router.events.pipe(hf(hl));this.navigationOver$=this.router.events.pipe(hf(function(d){return zDb.some(function(e){return d instanceof e})}));YH(this,Tk).subscribe(function(d){c.routeChangeStart.next({params:Object.assign({},
d.snapshot.queryParams,d.snapshot.params)})});a=YH(this,iCb);(0,W.merge)(this.navigationOver$.pipe(wf(W.NEVER)),this.routeChangeStart.pipe(wf(a))).pipe(Df(Ge),Ef(this.destroyed$),hf(function(d){return d.snapshot.routeConfig.isRootRoute}),C(function(d){return{params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});YH(this,il).pipe(C(function(d){return d.url}),rf()).subscribe(function(){c.locationChangeStart.next()});YH(this,gl).pipe(C(function(d){return d.url}),
rf()).subscribe(function(){c.locationChangeSuccess.next()});a=this.activatedRoute.queryParams.pipe(Gf(YH(this,AH)));(0,W.merge)(this.routeChangeStart.pipe(wf(W.NEVER)),this.navigationOver$.pipe(wf(a))).pipe(Df(Ge),Ef(this.destroyed$)).subscribe(function(d){d=n(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params})});YH(this,gl).subscribe(function(){c.viewContentLoaded.next()})};X(ZH,Z);ZH.\u0275dir=Z.\u0275dir;
var YH=function(a,b){return a.router.events.pipe(hf(function(c){return c instanceof b}),C(function(c){return c}),Ef(a.destroyed$))};ZH.\u0275fac=function(a){return new (a||ZH)(p(fl),p(Fk))};ZH.\u0275prov=Hc({token:ZH,factory:ZH.\u0275fac,providedIn:"root"});
var $H=function(a){this.executor=a},ADb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:Ej,body:Kna(b)}).pipe(C(function(c){return yna(c)}))};$H.\u0275fac=function(a){return new (a||$H)(p(lH))};$H.\u0275prov=Hc({token:$H,factory:$H.\u0275fac,providedIn:"root"});
var aI=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new W.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(C(Si));this.textDisplayPreferences$=this.preferences$.pipe(C(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=ml(this.textDisplayPreferences$.pipe(Ef(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(C(function(b){return b.lastPublishMode}),
rf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(C(hj));this.themePreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.themePreferences)?c:Si(MG.themePreferences)}),ol());this.listViewPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.listViewPreferences)?c:Si(MG.listViewPreferences)}),ol());this.layoutPreferences$=this.preferences$.pipe(C(this.getLayoutPreferences),ol());this.dateTimePreferences$=this.preferences$.pipe(C(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:Si(MG.dateTimePreferences)}),ol());this.homepagePreferences$=this.preferences$.pipe(C(this.getHomepagePreferences),ol());this.keyboardPrefs$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.keyboardPreferences)?c:Si(MG.keyboardPreferences)}),ol());this.displayColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),ol());this.sortColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),ol());this.bugScreensaverPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:Si(MG.bugScreensaverPreferences)}),ol());this.bugScreensaverSubject$=ml(this.bugScreensaverPreferences$.pipe(Ef(this.destroyed$)),MG.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.g3nPreferences)?c:Si(MG.g3nPreferences)}),ol());ml(this.g3nPreferences$.pipe(Ef(this.destroyed$)),
MG.g3nPreferences);this.teamWarningPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.teamWarningPreferences)?c:Si(MG.teamWarningPreferences)}),ol());this.teamWarningPreferencesSubject$=ml(this.teamWarningPreferences$.pipe(Ef(this.destroyed$)),MG.teamWarningPreferences);this.commentFilterPreferences$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.commentFilterPreferences)?c:Si(MG.commentFilterPreferences)}),ol());ml(this.commentFilterPreferences$.pipe(Ef(this.destroyed$)),
MG.commentFilterPreferences);this.codeFont$=this.preferences$.pipe(C(function(b){return!!b.useCodefont}),rf());this.autoCcOnComment$=this.preferences$.pipe(C(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),rf());this.showFullHistory$=this.preferences$.pipe(C(function(b){return!!b.showFullHistory}),rf());this.showRecentEventsFirst$=this.preferences$.pipe(C(function(b){return!!b.showRecentEventsFirst}),rf());this.showInlineImages$=this.preferences$.pipe(C(function(b){var c;return null!=
(c=b.showInlineImages)?c:MG.showInlineImages}),rf())};aI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};aI.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};var BDb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(C(a.getLayoutPreferences))},CDb=function(a,b){return a.save({homepagePreferences:b}).pipe(C(a.getHomepagePreferences))};
aI.prototype.getDateTimePreferences=function(){var a;return null!=(a=(void 0).dateTimePreferences)?a:Si(MG.dateTimePreferences)};var DDb=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},EDb=function(a,b){var c;return null==(c=a.preferencesSubject$.value.collapsed)?void 0:c[b]};aI.prototype.clearHomepagePreferences=function(){return CDb(this,{})};
var FDb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(C(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};aI.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(C(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var GDb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(C(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:Si(MG.teamWarningPreferences)}))};
aI.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:Si(MG.layoutPreferences)};aI.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:Si(MG.homepagePreferences)};var bI=function(a){return Si(a.preferencesSubject$.getValue())};aI.\u0275fac=function(a){return new (a||aI)(p(cI))};aI.\u0275prov=Hc({token:aI,factory:aI.\u0275fac,providedIn:"root"});
var cI=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new W.BehaviorSubject(Si(MG));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),HDb(a);this.preferences$.next(a)};cI.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,W.of)(IDb(this,a)):ADb(this.userPreferencesResources,a).pipe(C(function(){return IDb(b,a)}))};
var IDb=function(a,b){var c=Si(a.preferences$.value);c=Object.assign({},c,b);HDb(c);a.preferences$.next(c);return c},HDb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=MG.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=MG.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=MG.dateTimePreferences.sloEtaViewAs))};
cI.\u0275fac=function(a){return new (a||cI)(p(NG),p($H))};cI.\u0275prov=Hc({token:cI,factory:cI.\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 JDb=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||""};
ni.Object.defineProperties(JDb.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++){for(var c=b,d={command:"\u2318",shift:"\u21e7",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193","return":"\u23ce",backspace:"\u232b"},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];a[c]=e.join(" + ")}this._formatted=
a}return this._formatted}}});
var KDb=new Md("HotkeyOptions");
var dI=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new W.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 JDb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new JDb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=dI.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=n(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 t=h.target,x=t.nodeName.toUpperCase();-1<(" "+t.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=n(this.hotkeys);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}if(Array.isArray(a)){c=n(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=n(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=n(a);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=n(a);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()};dI.\u0275fac=function(a){return new (a||dI)(p(KDb))};dI.\u0275prov=Hc({token:dI,factory:dI.\u0275fac});
var eI=function(){};eI.\u0275fac=function(a){return new (a||eI)};eI.\u0275mod=Yc({type:eI});eI.\u0275inj=Ic({imports:[vy]});
var LDb;
Nba("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var MDb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),fI=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},gI=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(LDb||(c={},LDb=(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=LDb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},NDb=function(a,b){a=a.getAttribute("aria-"+b);return null==a||void 0==a?"":String(a)},hI=function(a,b){var c="";b&&(c=b.id);gI(a,"activedescendant",c)};
var iI=function(a,b,c,d){Z.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=ya(MDb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||ODb(h)?!0:!1}return h};
b.keyboardPrefs$.pipe(Ef(this.destroyed$)).subscribe(function(f){f&&(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(Ef(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){PDb(e)})};X(iI,Z);iI.\u0275dir=Z.\u0275dir;iI.prototype.isEnabled=function(){return this.enabled};iI.prototype.isPaused=function(){return this.paused};
var jI=function(a,b){var c=b.title,d=b.hotkeys,e;b=null!=(e=a.hotkeyGroups.get(c))?e:[];a.hotkeyGroups.set(c,[].concat(r(b),r(d)));QDb(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);QDb(a)}},PDb=function(a){var b=[].concat(r(a.rawHotkeysService.hotkeys));b=n(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},QDb=function(a){PDb(a);for(var b=n(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){var d=RDb(a,c.value);c={};d=n(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$binding$1924:c.$jscomp$loop$prop$binding$1924},e=d.next())c.$jscomp$loop$prop$binding$1924=e.value,e=new JDb(toa(c.$jscomp$loop$prop$binding$1924.key),function(f){return function(h){a.ngZone.run(function(){f.$jscomp$loop$prop$binding$1924.command()});h.stopPropagation();return!1}}(c),c.$jscomp$loop$prop$binding$1924.allowIn),
a.rawHotkeysService.add(e)}},ODb=function(a){return[].concat(r(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return"static"===b.style.position}).some(function(b){return b.contains(a)})},RDb=function(a,b){var c=[],d={};b=n(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$hotkeySpec$1926:d.$jscomp$loop$prop$hotkeySpec$1926},e=b.next()){d.$jscomp$loop$prop$hotkeySpec$1926=e.value;e={};for(var f=n(d.$jscomp$loop$prop$hotkeySpec$1926.keys.entries()),h=f.next();!h.done;e={$jscomp$loop$prop$index$1928:e.$jscomp$loop$prop$index$1928},
h=f.next()){var k=n(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$index$1928=h;c.push(new SDb(k,function(q,t){return function(){a.ngZone.run(function(){q.$jscomp$loop$prop$hotkeySpec$1926.onPress(t.$jscomp$loop$prop$index$1928)})}}(d,e),d.$jscomp$loop$prop$hotkeySpec$1926.allowIn))}}laa(c,function(q,t){return q.strokeLength>t.strokeLength?-1:q.strokeLength<t.strokeLength?1:0});return c};iI.prototype.pause=function(){this.paused=!0};iI.prototype.unpause=function(){this.paused=!1};
var TDb=function(a){return[].concat(r(a.hotkeyGroups.entries())).map(function(b){var c=n(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Wj(c,lqa)}})};iI.\u0275fac=function(a){return new (a||iI)(p(ZH),p(aI),p(dI),p(Mf))};iI.\u0275prov=Hc({token:iI,factory:iI.\u0275fac,providedIn:"root"});var SDb=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 kI=function(a,b){Z.call(this);this.hotkeys=a;this.tooltip=b;this.onHotkey=new sx;this.hasHotkey=!0};X(kI,Z);kI.prototype.ngOnChanges=function(a){if("matTooltip"in a&&this.tooltip){var b;a=null!=(b=this.hotkey.displayAs)?b:this.hotkey.keys.join("+");this.tooltip.message=this.matTooltip+" (Shortcut: "+a+")"}};kI.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(jI(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};
kI.\u0275fac=function(a){return new (a||kI)(B(iI),B(tF,8))};kI.\u0275dir=u({type:kI,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("has-hotkey",b.hasHotkey)},inputs:{hotkey:"hotkey",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[Of,ed]});
var lI=function(){};lI.\u0275fac=function(a){return new (a||lI)};lI.\u0275mod=Yc({type:lI});lI.\u0275inj=Ic({});
var mI=function(a){this.hotkeys=a};mI.prototype.ngOnInit=function(){this.hotkeys.pause()};mI.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};mI.\u0275fac=function(a){return new (a||mI)(B(iI))};
mI.\u0275cmp=u({type:mI,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&&(E(0,"h1",0),Q(1,"Keyboard shortcuts"),G(),E(2,"mat-dialog-content")(3,"table"),P(4,nqa,6,2,"thead",1),G()(),E(5,"mat-dialog-actions")(6,"button",2),Q(7,"Close"),G()());
a&2&&(A(4),D("ngForOf",TDb(b.hotkeys)))},dependencies:[fy,pC,JC,KC,LC,MC],encapsulation:2});var nI=function(){};nI.\u0275fac=function(a){return new (a||nI)};nI.\u0275mod=Yc({type:nI});nI.\u0275inj=Ic({imports:[vy,AF,NC]});
var UDb=function(a){this.allowExecution=a;this.queue=[]};UDb.prototype.addTask=function(a){this.queue.push(a);VDb(this)};var VDb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=n(a.queue),c=b.next().value;a.queue=gf(b);c();VDb(a)}else setTimeout(function(){VDb(a)},0)};
var oI=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new UDb(function(){return!e.router.navigationTransitions.currentNavigation})};g=oI.prototype;g.absUrl=function(){return this.platformLocation.href};g.hash=function(a,b){return"undefined"===typeof a?this.getHash():this.setHash(null!=a?a:"",b)};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})});return this};g.path=function(a,b){return"undefined"===typeof a?this.getPath():this.setPath(a,b)};var WDb=function(a,b){a.path(b,!0)};g=oI.prototype;g.getPath=function(){var a=n(this.location.path().split("?")).next().value;return n(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){if("undefined"===typeof a)return this.getSearch();this.setSearch(a,b,c);return this};g.getSearch=function(){return wqa(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(){Rt(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)};oI.\u0275fac=function(a){return new (a||oI)(p(cl),p(yy),p(Fk),p(fl))};oI.\u0275prov=Hc({token:oI,factory:oI.\u0275fac,providedIn:"root"});
var pI=function(a){this.bLocation=a};pI.prototype.createIssue=function(a){return rl("issues/new",{params:a})};pI.prototype.editIssue=function(a,b){return ql(a,b)};pI.prototype.listIssues=function(a){return sl(a)};pI.prototype.viewSavedSearch=function(a){return pl("savedsearches/:savedSearchId",{id:a,params:void 0})};
var XDb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;return a.bLocation.path()===b},YDb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new Ep(a);b=new Ep(b);return a.getPath()===b.getPath()&&YF(a.queryData_.toString())===YF(b.queryData_.toString())};g=pI.prototype;g.viewHotlist=function(a){return pl("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return rl("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 pl("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return rl("bookmark-groups/:groupId/edit",{id:a})};g.editSavedSearch=function(a){return rl("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return rl("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d,e){c=pqa(c);d=qqa(d);return IE("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=pqa(c);(d=qqa(d))&&(d="position,"+d);return IE(a,"trackerIds",b,"s",c,"c",d,"h",e)};g.toApiSortParamValue=function(a){return pqa(a)};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return rl("components",{params:void 0})};g.viewComponent=function(a,b){return pl("components/:componentId",{id:a,tab:b})};
g.manageComponent=function(a,b){return rqa(a,b)};g.createComponent=function(a){return rl("components/new",{params:a})};g.editComponent=function(a,b){return rl("components/:componentId/edit",{id:a,tab:b})};g.createSlo=function(){return rl("slos/new",{params:void 0})};g.editSlo=function(a){return wl(a).path};g.listSlos=function(){return rl("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"};pI.\u0275fac=function(a){return new (a||pI)(p(oI))};pI.\u0275prov=Hc({token:pI,factory:pI.\u0275fac,providedIn:"root"});
var xqa=function(a,b,c,d,e){this.status=a;this.displayValue=b;this.open=c;this.assigneeRequirement=d;this.sortOrder=e},qI={},io=(qI.NEW=yl("NEW",!0,"FORBIDDEN",10),qI.ASSIGNED=yl("ASSIGNED",!0,"REQUIRED",20),qI.ACCEPTED=yl("ACCEPTED",!0,"REQUIRED",30),qI.FIXED=yl("FIXED",!1,"REQUIRED",40),qI.VERIFIED=yl("VERIFIED",!1,"REQUIRED",50),qI.DUPLICATE=yl("DUPLICATE",!1,"ALLOWED",60),qI.INFEASIBLE=yl("INFEASIBLE",!1,"ALLOWED",70),qI.NOT_REPRODUCIBLE=yl("NOT_REPRODUCIBLE",!1,"ALLOWED",80),qI.OBSOLETE=yl("OBSOLETE",
!1,"ALLOWED",90),qI.INTENDED_BEHAVIOR=yl("INTENDED_BEHAVIOR",!1,"ALLOWED",100),qI),ZDb=[io.NEW,io.ASSIGNED,io.ACCEPTED,io.FIXED,io.VERIFIED,io.NOT_REPRODUCIBLE,io.INTENDED_BEHAVIOR,io.OBSOLETE,io.INFEASIBLE,io.DUPLICATE],$Db=ZDb.map(function(a){return{value:a.status,displayText:a.displayValue}}),aEb=new Set(Object.values(Zb(io,function(a){return"REQUIRED"===a.assigneeRequirement})));
var bEb={AGGREGATION_TYPE_UNSPECIFIED:0,SUM:1,MAX:2};
var zl=function(a){Y.call(this,a)};X(zl,Y);g=zl.prototype;g.getInherit=function(){return oj(this,1)};g.setInherit=function(a){return Qo(this,1,a)};g.getId=function(){return Aj(this,2)};g.setId=function(a){return Fb(this,2,a,0)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return Hb(this,3,a)};var yqa=function(a,b){Dm(a,4,Il,b)},Gl=function(a){return un(a,Al,4,Il)},Ll=function(a){return Hl(a,Bl,5,Il)},Aqa=function(a,b){Dm(a,5,Il,b)},Kl=function(a){return un(a,Bl,5,Il)};
zl.prototype.getCustomFieldId=function(){return Aj(this,100)};zl.prototype.setCustomFieldId=function(a){return Fb(this,100,a,0)};var Al=function(a){Y.call(this,a)};X(Al,Y);var zqa=function(a,b){return Fb(a,1,b,0)},Bl=function(a){Y.call(this,a,-1,cEb)};X(Bl,Y);var Bqa=function(a,b){return Mb(a,1,b)},Cl=function(a){Y.call(this,a)};X(Cl,Y);Cl.prototype.getLabel=function(){return Pi(this,1)};Cl.prototype.setLabel=function(a){return Hb(this,1,a)};Cl.prototype.getValue=function(){return Jl(this,2)};
Cl.prototype.setValue=function(a){return Fb(this,2,a,0)};var Il=[4,5],cEb=[1];
var Ol=function(a){Y.call(this,a)};X(Ol,Y);Ol.prototype.getStartTime=function(){return Ub(this,Cj,1)};
var Pl=function(a){Y.call(this,a)};X(Pl,Y);
var Wl=function(a){Y.call(this,a,-1,dEb)};X(Wl,Y);Wl.prototype.getEmailAddress=function(){return Pi(this,1)};Wl.prototype.getUserGaiaStatus=function(){return qj(this,3,0)};var dEb=[4];
var eEb=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.hotlists=
[];this.lastModifier=this.ccCount=this.collaboratorCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.sloSnoozeUntil=this.sloStatus=this.position=this.effort=null;this.signals=[]},fEb=function(a){if(!a.aggregatedData)return 0;a=a.aggregatedData;var b=Date.now()-a.modifiedTimeMicros/1E3;return Math.pow(.5,b/6048E5)+1-Math.pow(.5,a.voteCount/50)},hEb=function(a,b){var c=new eEb;gEb(c,a,b);return c},gEb=function(a,b,c){var d=ta(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);a.componentPath=c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?c.componentPathInfo.componentPathName.map(function(k){return String(k)}):[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var h;a.isClosed=!(null==(h=io[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);
a.severity=d.severity.substr(1);a.reporter=Ql(d.reporterUser);a.assignee=Ql(d.assigneeUser);a.assigneeEmail=Ul(d.assigneeUser);a.verifier=Ql(d.verifierUser);a.verifierEmail=Ul(d.verifierUser);a.cc=Rl(d.ccUsers);a.collaborator=Rl(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.magic=fEb(b);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=Ql(d.authorUser);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap=
{};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(b=n(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=n(d.customField),c=b.next();!c.done;c=b.next())c=c.value,a.customFieldValueMap[String(c.customFieldId)]=c;a.hotlists=[];a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?Gqa(e.sloStatus)||null:
null;a.sloSnoozeUntil=d.sloSnoozeUntil;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort instanceof Fl?d.effort:Cqa(d.effort))};
var rI=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 W.BehaviorSubject(this)},iEb=function(a,b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=hEb(e,b.componentMap[ta(e.snapshot).componentId||0]);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new rI(d,a,b.numTotalResults)},jEb=function(a,b){var c=b.issuesWithSignals.map(function(d){var e,f=hEb(d.issue,null!=(e=b.components[ta(d.issue.snapshot).componentId||0])?e:null);f.signals=d.signals;return f});return new rI(c,
a,b.numTotalResults)};rI.prototype.hasPreviousPage=function(){return 1<this.params.page};rI.prototype.hasNextPage=function(){return this.params.page<this.numPages};var sI=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};rI.prototype.getIssueIdFromIndex=function(a){if(a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length))return this.issues[a].issueId};
var kEb=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=sI(a,c.issueId);-1!==e&&(e-=a.startIndex,gEb(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},lEb=function(a,b,c,d){b=sI(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)};rI.prototype.clone=function(){var a=new rI(this.internalIssues,this.params,this.numTotalResults);a.changed$.next(a);return a};rI.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};ni.Object.defineProperties(rI.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});
var mEb=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};
mEb.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);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?jEb(a.params,e):iEb(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})};
var nEb=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};
var oEb=function(a,b){this.childIterator_=a[ea.Symbol.iterator]();this.mapFn_=b};oEb.prototype[Symbol.iterator]=function(){return this};oEb.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 pEb=function(a,b){return new oEb(a,b)};
var tI=function(){};tI.prototype.next=function(){return qEb};var qEb={done:!0,value:void 0};tI.prototype.__iterator__=function(){return this};
var rEb=function(a){if(a instanceof uI||a instanceof vI||a instanceof wI)return a;if("function"==typeof a.next)return new uI(function(){return a});if("function"==typeof a[Symbol.iterator])return new uI(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new uI(function(){return a.__iterator__()});throw Error("kc");},uI=function(a){this.func_=a};uI.prototype.__iterator__=function(){return new vI(this.func_())};uI.prototype[Symbol.iterator]=function(){return new wI(this.func_())};
uI.prototype.toEs6=function(){return new wI(this.func_())};var vI=function(a){this.iter_=a};X(vI,tI);vI.prototype.next=function(){return this.iter_.next()};vI.prototype[Symbol.iterator]=function(){return new wI(this.iter_)};vI.prototype.toEs6=function(){return new wI(this.iter_)};var wI=function(a){uI.call(this,function(){return a});this.iter_=a};X(wI,uI);wI.prototype.next=function(){return this.iter_.next()};
var xI=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=xI.prototype;g.getCount=function(){return this.size};g.getValues=function(){yI(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){yI(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return zI(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(zI(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||sEb;yI(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var sEb=function(a,b){return a===b};xI.prototype.isEmpty=function(){return 0==this.size};
xI.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};xI.prototype.remove=function(a){return this.delete(a)};xI.prototype.delete=function(a){return zI(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&yI(this),!0):!1};
var yI=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];zI(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],zI(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=xI.prototype;g.get=function(a,b){return zI(this.map_,a)?this.map_[a]:b};g.set=function(a,b){zI(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 xI)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 xI(this)};g.keys=function(){return rEb(this.__iterator__(!0)).toEs6()};g.values=function(){return rEb(this.__iterator__(!1)).toEs6()};g.entries=function(){var a=this;return pEb(this.keys(),function(b){return[b,a.get(b)]})};
g.__iterator__=function(a){yI(this);var b=0,c=this.version_,d=this,e=new tI;e.next=function(){if(c!=d.version_)throw Error("lc");if(b>=d.keys_.length)return qEb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var zI=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var AI=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new xI;this.head_=new tEb("");this.head_.next=this.head_.prev=this.head_},vEb=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),uEb(a,b));return b};AI.prototype.get=function(a,b){return(a=vEb(this,a))?a.value:b};var wEb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=AI.prototype;g.set=function(a,b){var c=vEb(this,a);c?c.value=b:(c=new tEb(a,b),this.map_.set(a,c),uEb(this,c))};
g.shift=function(){return xEb(this,this.head_.next)};g.pop=function(){return xEb(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(){yEb(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 uEb=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_&&yEb(a,a.maxCount_)},yEb=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)}},xEb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},tEb=function(a,b){this.key=a;this.value=b};
tEb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var BI=function(){this.caches=new Map};BI.prototype.create=function(a,b){if(this.caches.has(a))throw Error("mc`"+a);b=new CI(null==b?void 0:b.capacity);this.caches.set(a,b);return b};BI.prototype.get=function(a){return this.caches.get(a)};BI.\u0275fac=function(a){return new (a||BI)};BI.\u0275prov=Hc({token:BI,factory:BI.\u0275fac,providedIn:"root"});var CI=function(a){this.lruCache=new AI(a,!0)};CI.prototype.get=function(a){return this.lruCache.get(a)};
CI.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};CI.prototype.remove=function(a){this.lruCache.remove(a)};CI.prototype.removeAll=function(){this.lruCache.clear()};
var gm=function(a){Y.call(this,a)};X(gm,Y);g=gm.prototype;g.getType=function(){return qj(this,1,0)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getCustomFieldId=function(){return uj(this,2)};g.setCustomFieldId=function(a){return m(this,2,a)};g.hasCustomFieldId=function(){return tj(this,2)};g.getCustomFieldName=function(){return Pi(this,3)};
var hm=function(a){Y.call(this,a)};X(hm,Y);hm.prototype.getField=function(){return Ub(this,gm,1)};hm.prototype.setField=function(a){Vb(this,1,a)};hm.prototype.getDirection=function(){return qj(this,2,0)};hm.prototype.setDirection=function(a){return m(this,2,a)};
var im=function(a){Y.call(this,a,-1,zEb)};X(im,Y);g=im.prototype;g.getHotlistId=function(){return uj(this,1)};g.setHotlistId=function(a){m(this,1,a)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};g.hasDescription=function(){return Oi(this,4)};
g.getArchived=function(){return oj(this,6)};g.setArchived=function(a){m(this,6,a)};g.getDisplayColumnList=function(){return Nb(this,gm,8)};g.setDisplayColumnList=function(a){Mb(this,8,a)};g.getSortOrderList=function(){return Nb(this,hm,9)};g.setSortOrderList=function(a){Mb(this,9,a)};g.getCreatedTimeMicros=function(){return Aj(this,10)};g.setCreatedTimeMicros=function(a){m(this,10,a)};g.getModifiedTimeMicros=function(){return Aj(this,11)};g.setModifiedTimeMicros=function(a){m(this,11,a)};
g.getAdminUsersList=function(){return Nb(this,Wl,14)};g.setAdminUsersList=function(a){Mb(this,14,a)};g.getEtag=function(){return Pi(this,15)};g.setEtag=function(a){m(this,15,a)};g.hasEtag=function(){return Oi(this,15)};var zEb=[8,9,14];im.messageId="b.Hotlist";
var km=function(a){Y.call(this,a)};X(km,Y);km.prototype.getAccessLevel=function(){return qj(this,1,0)};km.prototype.setAccessLevel=function(a){return m(this,1,a)};km.messageId="b.AccessLimit";
var wm=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};
wm.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};wm.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 AEb=function(a){return a?mm(Yi(a)):null},BEb=function(a){return a?(a=iw(a),isNaN(a)?null:a):null};
var tm=function(a){Y.call(this,a)};X(tm,Y);tm.prototype.getCustomFieldId=function(){var a=sm;var b=void 0===b?0:b;return Aj(this,rm(this,a,1),b)};tm.prototype.setCustomFieldId=function(a){return um(this,1,sm,a)};tm.prototype.hasCustomFieldId=function(){var a=rm(this,sm,1);return null!=l(this,a)};var sm=[1,2];tm.messageId="b.FieldId";
var ira={UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3};
var DI=function(a){Y.call(this,a)};X(DI,Y);DI.prototype.getStateOnIssues=function(){return qj(this,2,0)};DI.prototype.setStateOnIssues=function(a){m(this,2,a)};DI.prototype.getEnabledOnIssues=function(){return oj(this,3)};DI.prototype.setEnabledOnIssues=function(a){m(this,3,a)};DI.messageId="b.FieldConfig";
var vm=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues=1;this.type="TEXT";this.fieldSignificance="MINOR"};vm.prototype.isDate=function(){return"DATE"===this.type};vm.prototype.isText=function(){return"TEXT"===this.type};vm.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var xm=function(a){Y.call(this,a,-1,CEb)};X(xm,Y);xm.prototype.getCustomFieldId=function(){return uj(this,1)};xm.prototype.setCustomFieldId=function(a){return m(this,1,a)};xm.prototype.hasCustomFieldId=function(){return tj(this,1)};xm.prototype.getDateValue=function(){return Hl(this,nm,5,zm)};var Am=function(a){Y.call(this,a,-1,DEb)};X(Am,Y);Am.prototype.getValuesList=function(){return Ki(this,1)};Am.prototype.setValuesList=function(a){Xl(this,1,a)};var Cm=function(a){Y.call(this,a,-1,EEb)};
X(Cm,Y);Cm.prototype.getValuesList=function(){return Nb(this,nm,1)};Cm.prototype.setValuesList=function(a){Mb(this,1,a)};var Bm=function(a){Y.call(this,a,-1,FEb)};X(Bm,Y);Bm.prototype.getValuesList=function(){return Cb(this,1,Number)};Bm.prototype.setValuesList=function(a){Bb(this,1,a)};var CEb=[12],zm=[4,5,6,7,8,9,10,11],DEb=[1],EEb=[1],FEb=[1];
var Em=function(a){Y.call(this,a,-1,GEb)};X(Em,Y);g=Em.prototype;g.getCustomFieldId=function(){return uj(this,1)};g.setCustomFieldId=function(a){return m(this,1,a)};g.hasCustomFieldId=function(){return tj(this,1)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};g.getType=function(){return qj(this,3,0)};g.setType=function(a){return m(this,3,a)};g.hasType=function(){return nj(this,3)};
g.getName=function(){return Pi(this,5)};g.setName=function(a){return m(this,5,a)};g.hasName=function(){return Oi(this,5)};g.getNameOrUndefined=function(){return vv(this,5)};g.getDescription=function(){return Pi(this,6)};g.setDescription=function(a){return m(this,6,a)};g.hasDescription=function(){return Oi(this,6)};g.setFieldSignificance=function(a){return m(this,9,a)};g.getStateOnIssues=function(){return qj(this,11,0)};g.setStateOnIssues=function(a){m(this,11,a)};
g.getEnabledOnIssues=function(){return oj(this,12)};g.setEnabledOnIssues=function(a){m(this,12,a)};g.getShared=function(){return oj(this,13)};var GEb=[8];
var Gm=function(a){Y.call(this,a)};X(Gm,Y);g=Gm.prototype;g.getUser=function(){return Hl(this,Wl,1,Fm)};g.setUser=function(a){Dm(this,1,Fm,a)};g.hasUser=function(){return un(this,Wl,1,Fm)};g.getGroup=function(){return Hl(this,Wl,2,Fm)};g.setGroup=function(a){Dm(this,2,Fm,a)};var Fm=[1,2,3];
var EI=function(a){Y.call(this,a,-1,HEb)};X(EI,Y);EI.prototype.setImplicitAccess=function(a){return m(this,10,a)};var HEb=[2,3,4,5,6,7,8,9,11,12];EI.messageId="b.AccessPolicy";
var Om=function(a){Y.call(this,a)};X(Om,Y);g=Om.prototype;g.getResourcePath=function(){return Pi(this,2)};g.setResourcePath=function(a){return m(this,2,a)};g.hasResourcePath=function(){return Oi(this,2)};g.getSeverity=function(){return qj(this,3,0)};g.setSeverity=function(a){return m(this,3,a)};g.hasSeverity=function(){return nj(this,3)};g.getJudgementReason=function(){return Pi(this,4)};g.setJudgementReason=function(a){return m(this,4,a)};Om.messageId="b.ContentJudgement";
var IEb={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3};
var Rm=function(a){Y.call(this,a)};X(Rm,Y);Rm.prototype.getSeverity=function(){return qj(this,1,0)};Rm.prototype.setSeverity=function(a){return m(this,1,a)};Rm.prototype.hasSeverity=function(){return nj(this,1)};
var an=function(a){Y.call(this,a)};X(an,Y);
var Pm=function(a){Y.call(this,a)};X(Pm,Y);Pm.prototype.hasRetentionSelection=function(){return nj(this,1)};
var hn=function(a){Y.call(this,a)};X(hn,Y);hn.prototype.getRetentionPeriod=function(){return Ub(this,Ml,1)};hn.messageId="b.RetentionState";
var FI=function(a){Y.call(this,a)};X(FI,Y);FI.prototype.getTeamId=function(){return Aj(this,1)};FI.prototype.setTeamId=function(a){return Fb(this,1,a,0)};FI.prototype.getEffectiveSloEditPolicy=function(){return qj(this,3,0)};
var Tm=function(a){Y.call(this,a)};X(Tm,Y);g=Tm.prototype;g.getInherit=function(){return oj(this,1)};g.setInherit=function(a){return m(this,1,a)};g.getSource=function(){return qj(this,2,0)};g.setSource=function(a){return m(this,2,a)};g.hasSource=function(){return nj(this,2)};g.getId=function(){return uj(this,3)};g.setId=function(a){return m(this,3,a)};g.getSourceTeamId=function(){return uj(this,5)};g.setSourceTeamId=function(a){m(this,5,a)};g.getComment=function(){return Pi(this,4)};
g.setComment=function(a){m(this,4,a)};
var GI=function(a){Y.call(this,a)};X(GI,Y);GI.prototype.getIssueId=function(){return uj(this,1)};GI.prototype.setIssueId=function(a){return m(this,1,a)};GI.prototype.getReason=function(){return qj(this,2,0)};GI.prototype.setReason=function(a){m(this,2,a)};GI.messageId="b.DeleteIssueRequest";
var ksa=function(a){Y.call(this,a)};X(ksa,Y);g=ksa.prototype;g.getFieldName=function(){return Pi(this,1)};g.getValue=function(){return Pi(this,2)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return Oi(this,2)};g.setActionType=function(a){m(this,3,a)};g.getCustomFieldValue=function(){return Ub(this,xm,5)};g.setCustomFieldValue=function(a){return Vb(this,5,a)};g.clearCustomFieldValue=function(){return qv(this,5)};g.hasCustomFieldValue=function(){return vj(this,xm,5)};
var gn=function(a){Y.call(this,a)};X(gn,Y);g=gn.prototype;g.getCreatedTimeMicros=function(){return Aj(this,2)};g.setCreatedTimeMicros=function(a){m(this,2,a)};g.getModifiedTimeMicros=function(){return Aj(this,3)};g.setModifiedTimeMicros=function(a){m(this,3,a)};g.getSloStatus=function(){return Ub(this,Pl,6)};g.setSloStatus=function(a){Vb(this,6,a)};g.getSloId=function(){return uj(this,7)};g.setSloId=function(a){return m(this,7,a)};g.getTeamId=function(){return uj(this,9)};
g.setTeamId=function(a){return m(this,9,a)};g.getRetentionState=function(){return Ub(this,hn,8)};g.setRetentionState=function(a){Vb(this,8,a)};
var Xm=function(a){Y.call(this,a,-1,JEb)};X(Xm,Y);g=Xm.prototype;g.getCreatedTimeMicros=function(){return Aj(this,2)};g.setCreatedTimeMicros=function(a){m(this,2,a)};g.getComponentId=function(){return uj(this,3)};g.setComponentId=function(a){return m(this,3,a)};g.hasComponentId=function(){return tj(this,3)};g.getVersion=function(){return Aj(this,4)};g.setVersion=function(a){return m(this,4,a)};g.getVersionOrUndefined=function(){return sv(this,4)};g.getType=function(){return qj(this,5,0)};
g.setType=function(a){return m(this,5,a)};g.hasType=function(){return nj(this,5)};g.getStatus=function(){return qj(this,6,0)};g.setStatus=function(a){return m(this,6,a)};g.hasStatus=function(){return nj(this,6)};g.getPriority=function(){return qj(this,7,0)};g.setPriority=function(a){return m(this,7,a)};g.hasPriority=function(){return nj(this,7)};g.getSeverity=function(){return qj(this,8,0)};g.setSeverity=function(a){return m(this,8,a)};g.hasSeverity=function(){return nj(this,8)};
g.getTitle=function(){return Pi(this,9)};g.setTitle=function(a){return m(this,9,a)};g.getInProd=function(){return oj(this,22)};g.setInProd=function(a){m(this,22,a)};g.getHotlistIdList=function(){return Mi(this,23)};g.setHotlistIdList=function(a){Zm(this,23,a)};g.getRetention=function(){return qj(this,42,0)};g.setRetention=function(a){m(this,42,a)};g.setIsDeleted=function(a){m(this,27,a)};g.setDeletionReason=function(a){m(this,28,a)};g.getSignificanceOverride=function(){return qj(this,29,0)};
g.setSignificanceOverride=function(a){m(this,29,a)};g.getIsArchived=function(){return oj(this,31)};g.setIsArchived=function(a){m(this,31,a)};g.getComment=function(){return Pi(this,25)};g.setComment=function(a){m(this,25,a)};g.getFormattingMode=function(){return qj(this,45,0)};g.setFormattingMode=function(a){m(this,45,a)};g.getCommentContentVerdict=function(){return Ub(this,an,46)};g.setCommentContentVerdict=function(a){Vb(this,46,a)};g.hasCommentContentVerdict=function(){return vj(this,an,46)};
g.getSloSnoozeUntil=function(){return Ub(this,Cj,34)};g.setSloSnoozeUntil=function(a){Vb(this,34,a)};g.setSloSnoozeType=function(a){m(this,52,a)};var JEb=[40,51,14,16,17,18,35,19,20,21,23,24,30];
var fn=function(a){Y.call(this,a)};X(fn,Y);g=fn.prototype;g.getStarred=function(){return oj(this,1)};g.setStarred=function(a){m(this,1,a)};g.getVoted=function(){return oj(this,2)};g.setVoted=function(a){return m(this,2,a)};g.setNotificationSubscription=function(a){return m(this,4,a)};fn.messageId="b.IssueUserData";
var HI=function(a){Y.call(this,a)};X(HI,Y);g=HI.prototype;g.getStatus=function(){return qj(this,1,0)};g.setStatus=function(a){return m(this,1,a)};g.hasStatus=function(){return nj(this,1)};g.getReason=function(){return qj(this,2,0)};g.setReason=function(a){m(this,2,a)};
var Qn=function(a){Y.call(this,a)};X(Qn,Y);Qn.prototype.getContent=function(){return Ub(this,En,1)};Qn.prototype.setContent=function(a){Vb(this,1,a)};Qn.prototype.hasContent=function(){return vj(this,En,1)};
var oq=function(a){Y.call(this,a)};X(oq,Y);oq.prototype.getContent=function(){return Ub(this,En,1)};oq.prototype.setContent=function(a){Vb(this,1,a)};oq.prototype.hasContent=function(){return vj(this,En,1)};
var qq=function(a){Y.call(this,a)};X(qq,Y);qq.prototype.getContent=function(){return Ub(this,En,2)};qq.prototype.setContent=function(a){Vb(this,2,a)};qq.prototype.hasContent=function(){return vj(this,En,2)};
var pq=function(a){Y.call(this,a,-1,KEb)};X(pq,Y);var KEb=[1];
var kn=function(a){Y.call(this,a)};X(kn,Y);kn.prototype.getKindCase=function(){return ym(this,Rn)};var Rn=[1,2,3];
var II=function(a){Y.call(this,a)};X(II,Y);g=II.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getFormattingMode=function(){return qj(this,4,0)};g.setFormattingMode=function(a){m(this,4,a)};g.getAuthor=function(){return Ub(this,Wl,5)};g.setAuthor=function(a){Vb(this,5,a)};g.getUpdateTime=function(){return Ub(this,Cj,6)};g.setUpdateTime=function(a){Vb(this,6,a)};g.getVersion=function(){return Ji(this,7)};
g.setVersion=function(a){return m(this,7,a)};g.getVersionOrUndefined=function(){return uv(this,7)};g.getEntityStatus=function(){return Ub(this,HI,8)};g.hasEntityStatus=function(){return vj(this,HI,8)};II.messageId="b.StatusUpdate";
var en=function(a){Y.call(this,a,-1,LEb)};X(en,Y);g=en.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getUserData=function(){return Ub(this,fn,3)};g.setUserData=function(a){Vb(this,3,a)};g.getAccessLimit=function(){return Ub(this,km,5)};g.setAccessLimit=function(a){return Vb(this,5,a)};g.getIsArchived=function(){return oj(this,11)};g.setIsArchived=function(a){m(this,11,a)};g.getTrackerId=function(){return uj(this,13)};
g.setTrackerId=function(a){m(this,13,a)};g.getStatusUpdate=function(){return Ub(this,II,14)};g.hasStatusUpdate=function(){return vj(this,II,14)};var LEb=[2,8,6,12];
var dn=function(a){Y.call(this,a)};X(dn,Y);g=dn.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getPosition=function(){return Ji(this,2)};g.setPosition=function(a){return m(this,2,a)};g.getIssue=function(){return Ub(this,en,3)};g.setIssue=function(a){Vb(this,3,a)};dn.messageId="b.HotlistIssue";
var NEb=function(a){Y.call(this,a,-1,MEb)};X(NEb,Y);g=NEb.prototype;g.getSnapshot=function(){return Ub(this,Xm,1)};g.setSnapshot=function(a){Vb(this,1,a)};g.getAttachmentsList=function(){return Cb(this,2,Zaa)};g.setAttachmentsList=function(a){Bb(this,2,a)};g.getTemplateId=function(){return uj(this,4)};g.setTemplateId=function(a){m(this,4,a)};g.getContentJudgement=function(){return Ub(this,Om,5)};g.setContentJudgement=function(a){return Vb(this,5,a)};var MEb=[2,3];
var nsa=function(a){Y.call(this,a,-1,OEb)};X(nsa,Y);g=nsa.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.setActionsList=function(a){Mb(this,2,a)};g.getAttachmentsList=function(){return Cb(this,3,Zaa)};g.setAttachmentsList=function(a){Bb(this,3,a)};g.getSignificanceOverride=function(){return Pi(this,4)};g.setSignificanceOverride=function(a){m(this,4,a)};g.getCommentDisplayOverride=function(){return qj(this,6,0)};
g.setCommentDisplayOverride=function(a){m(this,6,a)};var OEb=[2,3,5];
var QEb=function(a){Y.call(this,a,-1,PEb)};X(QEb,Y);g=QEb.prototype;g.getCount=function(){return Ji(this,2)};g.setCount=function(a){return m(this,2,a)};g.setS=function(a){m(this,3,a)};g.setP=function(a){return m(this,4,a)};g.getNextPageToken=function(){return Pi(this,5)};g.setTrackerIdsList=function(a){Zm(this,6,a)};var PEb=[6];
var hsa=function(a){Y.call(this,a)};X(hsa,Y);g=hsa.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};g.getCommentDisplayOverride=function(){return qj(this,3,0)};g.setCommentDisplayOverride=function(a){m(this,3,a)};
var fsa=function(a){Y.call(this,a)};X(fsa,Y);g=fsa.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};g.getCommentDisplayOverride=function(){return qj(this,3,0)};g.setCommentDisplayOverride=function(a){m(this,3,a)};
var ssa=function(a){Y.call(this,a,-1,REb)};X(ssa,Y);g=ssa.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getRelation=function(){return qj(this,3,0)};g.setRelation=function(a){m(this,3,a)};g.setActionType=function(a){m(this,4,a)};g.getCommentDisplayOverride=function(){return qj(this,5,0)};g.setCommentDisplayOverride=function(a){m(this,5,a)};var REb=[2];
var bn=function(a){Y.call(this,a)};X(bn,Y);bn.prototype.getIssueId=function(){return uj(this,1)};bn.prototype.setIssueId=function(a){return m(this,1,a)};bn.prototype.getCommentDisplayOverride=function(){return qj(this,2,0)};bn.prototype.setCommentDisplayOverride=function(a){m(this,2,a)};bn.messageId="b.UnCcUserActionRequest";
var JI=function(a){Y.call(this,a)};X(JI,Y);JI.prototype.getIssueId=function(){return uj(this,1)};JI.prototype.setIssueId=function(a){return m(this,1,a)};JI.messageId="b.UndeleteIssueRequest";
var KI=function(a){Y.call(this,a)};X(KI,Y);KI.prototype.getIssueId=function(){return uj(this,1)};KI.prototype.setIssueId=function(a){return m(this,1,a)};KI.prototype.getIssueAccessLimit=function(){return Ub(this,LI,2)};var LI=function(a){Y.call(this,a)};X(LI,Y);LI.prototype.getAccessLevel=function(){return qj(this,1,0)};LI.prototype.setAccessLevel=function(a){return m(this,1,a)};KI.messageId="b.UpdateIssueAccessLimitRequest";
var cn=function(a){Y.call(this,a,-1,SEb)};X(cn,Y);cn.prototype.getSignificanceOverride=function(){return qj(this,4,0)};cn.prototype.setSignificanceOverride=function(a){m(this,4,a)};cn.prototype.getCommentDisplayOverride=function(){return qj(this,5,0)};cn.prototype.setCommentDisplayOverride=function(a){m(this,5,a)};var SEb=[1,2];
var vsa=function(a){Y.call(this,a)};X(vsa,Y);g=vsa.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getRetention=function(){return qj(this,2,0)};g.setRetention=function(a){m(this,2,a)};g.getSignificanceOverride=function(){return qj(this,3,0)};g.setSignificanceOverride=function(a){m(this,3,a)};g.getCommentDisplayOverride=function(){return qj(this,4,0)};g.setCommentDisplayOverride=function(a){m(this,4,a)};
var nn=function(a){Y.call(this,a)};X(nn,Y);nn.prototype.getTeamId=function(){return Aj(this,1)};nn.prototype.setTeamId=function(a){return Fb(this,1,a,0)};
var mn=function(a){Y.call(this,a)};X(mn,Y);mn.prototype.getInherit=function(){return oj(this,1)};mn.prototype.setInherit=function(a){return m(this,1,a)};mn.prototype.getId=function(){return uj(this,2)};mn.prototype.setId=function(a){return m(this,2,a)};
var MI=function(a){Y.call(this,a)};X(MI,Y);MI.prototype.getUser=function(){return Ub(this,Wl,1)};MI.prototype.setUser=function(a){Vb(this,1,a)};MI.prototype.hasUser=function(){return vj(this,Wl,1)};
var Nu=function(a){Y.call(this,a)};X(Nu,Y);g=Nu.prototype;g.getInherit=function(){return oj(this,1)};g.setInherit=function(a){return m(this,1,a)};g.getSloId=function(){return uj(this,2)};g.setSloId=function(a){return m(this,2,a)};g.getComment=function(){return Pi(this,3)};g.setComment=function(a){m(this,3,a)};g.getSourceTeamId=function(){return uj(this,4)};g.setSourceTeamId=function(a){m(this,4,a)};
var NI=function(a){Y.call(this,a,-1,TEb)};X(NI,Y);g=NI.prototype;g.getTeamId=function(){return uj(this,1)};g.setTeamId=function(a){return m(this,1,a)};g.getVersion=function(){return Ji(this,2)};g.setVersion=function(a){return m(this,2,a)};g.getVersionOrUndefined=function(){return uv(this,2)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};
g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};g.hasDescription=function(){return Oi(this,4)};g.getPathNamesList=function(){return Ki(this,5)};g.getPathIdsList=function(){return Cb(this,10,lb)};g.getMembersList=function(){return Nb(this,MI,7)};g.getDeleted=function(){return oj(this,8)};g.getSlo=function(){return Ub(this,Nu,11)};g.setSlo=function(a){Vb(this,11,a)};g.hasSlo=function(){return vj(this,Nu,11)};var TEb=[5,10,6,7];NI.messageId="b.TeamState";
var VEb=function(a){Y.call(this,a,-1,UEb)};X(VEb,Y);g=VEb.prototype;g.getPathIdsList=function(){return Mi(this,1)};g.getPathNamesList=function(){return Ki(this,2)};g.getId=function(){return uj(this,3)};g.setId=function(a){return m(this,3,a)};g.getName=function(){return Pi(this,4)};g.setName=function(a){return m(this,4,a)};g.hasName=function(){return Oi(this,4)};g.getNameOrUndefined=function(){return vv(this,4)};g.getDescription=function(){return Pi(this,5)};
g.setDescription=function(a){return m(this,5,a)};g.hasDescription=function(){return Oi(this,5)};var UEb=[1,2];
var on=function(a){Y.call(this,a,-1,WEb)};X(on,Y);var WEb=[1,2,4];
var qn=function(a){Y.call(this,a,-1,XEb)};X(qn,Y);g=qn.prototype;g.getComponentId=function(){return uj(this,1)};g.setComponentId=function(a){return m(this,1,a)};g.hasComponentId=function(){return tj(this,1)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};
g.hasDescription=function(){return Oi(this,4)};g.getArchived=function(){return oj(this,5)};g.setArchived=function(a){m(this,5,a)};g.getHotlistIdList=function(){return Mi(this,8)};g.setHotlistIdList=function(a){Zm(this,8,a)};g.getAccessLimit=function(){return Ub(this,km,12)};g.setAccessLimit=function(a){return Vb(this,12,a)};g.setCommentEditState=function(a){return m(this,15,a)};g.getSloId=function(){return uj(this,16)};g.setSloId=function(a){return m(this,16,a)};
g.getSlo=function(){return Ub(this,Tm,19)};g.setSlo=function(a){Vb(this,19,a)};g.hasSlo=function(){return vj(this,Tm,19)};g.getRetentionSettings=function(){return Ub(this,Pm,21)};g.setRetentionSettings=function(a){Vb(this,21,a)};g.hasRetentionSettings=function(){return vj(this,Pm,21)};g.getTeam=function(){return Ub(this,mn,22)};g.setTeam=function(a){Vb(this,22,a)};g.hasTeam=function(){return vj(this,mn,22)};g.getEffortSpec=function(){return Ub(this,zl,24)};
g.getTeamSuggestionsList=function(){return Nb(this,nn,25)};g.setTeamSuggestionsList=function(a){Mb(this,25,a)};g.getTrackerId=function(){return uj(this,26)};g.setTrackerId=function(a){m(this,26,a)};var XEb=[6,7,8,9,25];qn.messageId="b.Component";
var rn=function(a){Y.call(this,a)};X(rn,Y);g=rn.prototype;g.getTemplateId=function(){return Aj(this,1)};g.setTemplateId=function(a){m(this,1,a)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};g.getDefault=function(){return oj(this,6)};g.setDefault=function(a){m(this,6,a)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};
g.getNameOrUndefined=function(){return vv(this,3)};g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};g.hasDescription=function(){return Oi(this,4)};g.getSnapshot=function(){return Ub(this,Xm,5)};g.setSnapshot=function(a){Vb(this,5,a)};
var OI=function(a){Y.call(this,a)};X(OI,Y);OI.prototype.getSlo=function(){return Ub(this,Tm,1)};OI.prototype.setSlo=function(a){Vb(this,1,a)};OI.prototype.hasSlo=function(){return vj(this,Tm,1)};OI.messageId="b.UpdateComponentSloRequest";
var PI=function(a){Y.call(this,a)};X(PI,Y);PI.prototype.getTeam=function(){return Ub(this,mn,1)};PI.prototype.setTeam=function(a){Vb(this,1,a)};PI.prototype.hasTeam=function(){return vj(this,mn,1)};PI.messageId="b.UpdateComponentTeamRequest";
var QI=function(a){Y.call(this,a,-1,YEb)};X(QI,Y);QI.prototype.getIssueId=function(){return uj(this,1)};QI.prototype.setIssueId=function(a){return m(this,1,a)};QI.prototype.getAttachmentsList=function(){return Cb(this,2,Zaa)};QI.prototype.setAttachmentsList=function(a){Bb(this,2,a)};var sn=function(a){Y.call(this,a)};X(sn,Y);sn.prototype.getContentJudgement=function(){return Ub(this,Om,2)};sn.prototype.setContentJudgement=function(a){return Vb(this,2,a)};var YEb=[2,3];
var ZEb=function(a){Y.call(this,a)};X(ZEb,Y);g=ZEb.prototype;g.getFilename=function(){return Pi(this,1)};g.setFilename=function(a){m(this,1,a)};g.getMimeType=function(){return Pi(this,2)};g.setMimeType=function(a){m(this,2,a)};g.getSize=function(){return Aj(this,5)};g.setSize=function(a){return m(this,5,a)};
var aFb=function(a){Y.call(this,a,-1,$Eb)};X(aFb,Y);aFb.prototype.getSignificanceOverride=function(){return Pi(this,3)};aFb.prototype.setSignificanceOverride=function(a){m(this,3,a)};var Mn=function(a){Y.call(this,a,-1,bFb)};X(Mn,Y);Mn.prototype.setActionsList=function(a){Mb(this,1,a)};Mn.prototype.setIssueIdsList=function(a){return Zm(this,2,a)};Mn.prototype.addIssueIds=function(a){Gb(this,2,a)};var $Eb=[4],bFb=[1,2];
var RI=function(a){Y.call(this,a,-1,cFb)};X(RI,Y);RI.prototype.getIssuesList=function(){return Nb(this,en,1)};RI.prototype.getNumTotalResults=function(){return Ji(this,2)};RI.prototype.getComponentsMap=function(){return rj(this,3,qn)};RI.prototype.getNextPageToken=function(){return Pi(this,5)};var cFb=[1];RI.messageId="b.IssueSearchResponse";
var SI=function(a){Y.call(this,a,-1,dFb)};X(SI,Y);SI.prototype.getHotlistsList=function(){return Nb(this,im,1)};var dFb=[1];SI.messageId="b.ListHotlistsResponse";
var TI=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:250})};TI.prototype.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};TI.prototype.bulkLoad=function(a){var b=this;a=a.filter(function(d){return!b.hotlistCache.get(String(d))});if(!a.length)return Promise.resolve();var c=this.hotlistApi.bulkLoad(a);eFb(this,a,c);return c.then(function(){})};
var eFb=function(a,b,c){c=c.then(function(f){if(f){var h={};f=n(f);for(var k=f.next();!k.done;k=f.next())k=k.value,h[k.hotlistId]=k;return h}});var d={};b=n(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$id$1930:d.$jscomp$loop$prop$id$1930},e=b.next())d.$jscomp$loop$prop$id$1930=e.value,a.hotlistCache.put(String(d.$jscomp$loop$prop$id$1930),c.then(function(f){return function(h){return h&&h[f.$jscomp$loop$prop$id$1930]?h[f.$jscomp$loop$prop$id$1930]:Promise.reject({data:{message:"Could not load hotlist "+
f.$jscomp$loop$prop$id$1930}})}}(d)))};g=TI.prototype;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)};TI.\u0275fac=function(a){return new (a||TI)(p(BI),p(UI))};TI.\u0275prov=Hc({token:TI,factory:TI.\u0275fac,providedIn:"root"});var VI=function(a,b){this.paths=a;this.executor=b};g=VI.prototype;g.get=function(a){return this.executor.get({url:"action/hotlists/"+a,responseConstructor:im}).pipe(C(jm))};g.bulkLoad=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:SI,options:{params:{id:a.map(String)}}}).pipe(C(Tqa))};
g.repositionHotlistIssue=function(a,b,c){var d=new dn;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 im;c.setName(a);b&&c.setDescription(b);return this.executor.post({url:"action/hotlists",body:c,responseConstructor:im}).pipe(C(jm))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:SI,options:{params:{q:a}}}).pipe(C(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(jm)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:Sqa(b),responseConstructor:im}).pipe(C(jm))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:Sqa(b),options:{headers:c},responseConstructor:im}).pipe(C(jm))};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:RI}).pipe(C(wta))};
VI.\u0275fac=function(a){return new (a||VI)(p(pI),p(lH))};VI.\u0275prov=Hc({token:VI,factory:VI.\u0275fac,providedIn:"root"});var UI=function(a){this.observableApi=a};g=UI.prototype;g.get=function(a){return(0,W.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,W.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};
g.createHotlist=function(a,b){return(0,W.firstValueFrom)(this.observableApi.createHotlist(a,b))};g.queryHotlists=function(a){return(0,W.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,W.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateMetadata(a,b))};
g.getPagedHotlistContent=function(a,b,c,d,e){return(0,W.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};UI.\u0275fac=function(a){return new (a||UI)(p(VI))};UI.\u0275prov=Hc({token:UI,factory:UI.\u0275fac,providedIn:"root"});
var fFb=function(a){Y.call(this,a)};X(fFb,Y);fFb.messageId="f.mt";
var WI=function(a){Y.call(this,a,-1,gFb)};X(WI,Y);WI.prototype.setIssueIdsList=function(a){return Db(this,1,a,kb)};WI.prototype.addIssueIds=function(a){Gb(this,1,a)};var gFb=[1];WI.messageId="b.BatchGetIssuesRequest";
var iFb=function(a){Y.call(this,a,-1,hFb)};X(iFb,Y);iFb.prototype.getIssuesList=function(){return Nb(this,en,1)};var hFb=[1];iFb.messageId="b.BatchGetIssuesResponse";
var Nn=function(a){Y.call(this,a)};X(Nn,Y);Nn.prototype.getIssueId=function(){return uj(this,1)};Nn.prototype.setIssueId=function(a){return m(this,1,a)};Nn.prototype.getMessage=function(){return Pi(this,2)};Nn.prototype.setMessage=function(a){return m(this,2,a)};
var kFb=function(a){Y.call(this,a,-1,jFb)};X(kFb,Y);var jFb=[2];kFb.messageId="b.BulkEditResponse";
var XI=function(a){Y.call(this,a)};X(XI,Y);XI.prototype.getIssueId=function(){return uj(this,1)};XI.prototype.setIssueId=function(a){return m(this,1,a)};XI.messageId="b.IssueCreateResponse";
var lFb=function(a){Y.call(this,a)};X(lFb,Y);
var Ssa=function(a){Y.call(this,a,-1,mFb)};X(Ssa,Y);g=Ssa.prototype;g.getContentType=function(){return l(this,1)};g.getTimestamp=function(){return l(this,2)};g.setTimestamp=function(a){return m(this,2,a)};g.hasTimestamp=function(){return null!=l(this,2)};g.getToken=function(){return l(this,3)};g.setToken=function(a){return m(this,3,a)};g.getLength=function(){return l(this,4)};g.getFilename=function(){return l(this,5)};g.setFilename=function(a){m(this,5,a)};g.getPath=function(){return l(this,7)};
g.setPath=function(a){return m(this,7,a)};g.hasPath=function(){return Oi(this,7)};g.getHash=function(){return l(this,11)};g.setHash=function(a){return m(this,11,a)};g.getObjectId=function(){return Ub(this,lFb,15)};g.setObjectId=function(a){Vb(this,15,a)};var mFb=[13];
var Jn=function(a){Y.call(this,a)};X(Jn,Y);g=Jn.prototype;g.getAttachmentId=function(){return uj(this,1)};g.setAttachmentId=function(a){m(this,1,a)};g.getDescription=function(){return Pi(this,2)};g.setDescription=function(a){return m(this,2,a)};g.hasDescription=function(){return Oi(this,2)};g.getContentType=function(){return Pi(this,4)};g.getFilename=function(){return Pi(this,5)};g.setFilename=function(a){m(this,5,a)};g.getLength=function(){return Aj(this,6)};g.getEtag=function(){return Pi(this,8)};
g.setEtag=function(a){m(this,8,a)};g.hasEtag=function(){return Oi(this,8)};g.getEntityStatus=function(){return Ub(this,HI,10)};g.hasEntityStatus=function(){return vj(this,HI,10)};g.getPiiRetentionState=function(){return Ub(this,hn,12)};g.hasPiiRetentionState=function(){return vj(this,hn,12)};g.getPiiRetention=function(){return qj(this,13,0)};g.setPiiRetention=function(a){return m(this,13,a)};g.hasPiiRetention=function(){return nj(this,13)};Jn.messageId="b.Attachment";
var zn=function(a){Y.call(this,a)};X(zn,Y);g=zn.prototype;g.getOldValue=function(){return Pi(this,1)};g.getNewValue=function(){return Pi(this,2)};g.getCustomFieldId=function(){return Aj(this,3)};g.setCustomFieldId=function(a){return m(this,3,a)};g.hasCustomFieldId=function(){return zj(this,3)};
var YI=function(a){Y.call(this,a)};X(YI,Y);YI.prototype.getHref=function(){return Pi(this,1)};YI.prototype.getValue=function(){return Pi(this,2)};YI.prototype.setValue=function(a){return m(this,2,a)};YI.prototype.hasValue=function(){return Oi(this,2)};
var Cn=function(a){Y.call(this,a,-1,nFb)};X(Cn,Y);Cn.prototype.getAddedList=function(){return Nb(this,YI,1)};Cn.prototype.getRemovedList=function(){return Nb(this,YI,2)};var nFb=[1,2];
var yn=function(a){Y.call(this,a)};X(yn,Y);yn.prototype.getOldValue=function(){return Pi(this,1)};yn.prototype.getNewValue=function(){return Pi(this,2)};
var Wsa=function(a){Y.call(this,a)};X(Wsa,Y);
var vn=function(a){Y.call(this,a)};X(vn,Y);var xn=[1,2];
var Dn=function(a){Y.call(this,a)};X(Dn,Y);Dn.prototype.getEntityStatus=function(){return Ub(this,HI,1)};Dn.prototype.hasEntityStatus=function(){return vj(this,HI,1)};
var Bn=function(a){Y.call(this,a,-1,oFb)};X(Bn,Y);Bn.prototype.getAddedList=function(){return Ki(this,1)};Bn.prototype.getRemovedList=function(){return Ki(this,2)};var oFb=[1,2];
var An=function(a){Y.call(this,a,-1,pFb)};X(An,Y);An.prototype.getAddedList=function(){return Nb(this,Wl,1)};An.prototype.getRemovedList=function(){return Nb(this,Wl,2)};var pFb=[1,2];
var Hn=function(a){Y.call(this,a)};X(Hn,Y);g=Hn.prototype;g.getName=function(){return Pi(this,1)};g.setName=function(a){return m(this,1,a)};g.hasName=function(){return Oi(this,1)};g.getNameOrUndefined=function(){return vv(this,1)};g.getDisplayName=function(){return Pi(this,2)};g.setDisplayName=function(a){return m(this,2,a)};g.getType=function(){return qj(this,3,0)};g.setType=function(a){return m(this,3,a)};g.hasType=function(){return nj(this,3)};g.getTimestamp=function(){return Ub(this,Cj,4)};
g.setTimestamp=function(a){return Vb(this,4,a)};g.hasTimestamp=function(){return vj(this,Cj,4)};var wn=[6,7,8,9,10,11];Hn.messageId="b.EventDiff";
var Sn=function(a){Y.call(this,a,-1,qFb)};X(Sn,Y);g=Sn.prototype;g.getCount=function(){return Aj(this,2)};g.setCount=function(a){return m(this,2,a)};g.getType=function(){return qj(this,4,0)};g.setType=function(a){return m(this,4,a)};g.hasType=function(){return nj(this,4)};var qFb=[3];Sn.messageId="b.ReactionState";
var In=function(a){Y.call(this,a,-1,rFb)};X(In,Y);var rFb=[1];In.messageId="b.CommentReaction";
var tFb=function(a){Y.call(this,a,-1,sFb)};X(tFb,Y);tFb.prototype.getState=function(){return qj(this,2,0)};var sFb=[3];
var ZI=function(a){Y.call(this,a,-1,uFb)};X(ZI,Y);g=ZI.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getMentionsList=function(){return Nb(this,tFb,16)};g.getCommentContentVerdict=function(){return Ub(this,an,14)};g.setCommentContentVerdict=function(a){Vb(this,14,a)};g.hasCommentContentVerdict=function(){return vj(this,an,14)};g.getLastModified=function(){return Aj(this,5)};g.getVersion=function(){return Ji(this,6)};
g.setVersion=function(a){return m(this,6,a)};g.getVersionOrUndefined=function(){return uv(this,6)};g.getEntityStatus=function(){return Ub(this,HI,9)};g.hasEntityStatus=function(){return vj(this,HI,9)};g.getFormattingMode=function(){return qj(this,10,0)};g.setFormattingMode=function(a){m(this,10,a)};g.getFormattedComment=function(){return Ub(this,kn,13)};g.getPiiRetentionState=function(){return Ub(this,hn,11)};g.hasPiiRetentionState=function(){return vj(this,hn,11)};
g.getPiiRetention=function(){return qj(this,12,0)};g.setPiiRetention=function(a){return m(this,12,a)};g.hasPiiRetention=function(){return nj(this,12)};g.getEtag=function(){return Pi(this,17)};g.setEtag=function(a){m(this,17,a)};g.hasEtag=function(){return Oi(this,17)};var uFb=[16];ZI.messageId="b.IssueComment";
var dta=function(a){Y.call(this,a)};X(dta,Y);dta.prototype.getTag=function(){return Pi(this,1)};
var Kn=function(a){Y.call(this,a,-1,vFb)};X(Kn,Y);g=Kn.prototype;g.getComment=function(){return Ub(this,ZI,6)};g.setComment=function(a){Vb(this,6,a)};g.getAttachmentsList=function(){return Nb(this,Jn,10)};g.setAttachmentsList=function(a){Mb(this,10,a)};g.getVersion=function(){return Aj(this,7)};g.setVersion=function(a){return m(this,7,a)};g.getVersionOrUndefined=function(){return sv(this,7)};g.getStatusUpdate=function(){return Ub(this,II,13)};g.hasStatusUpdate=function(){return vj(this,II,13)};
var vFb=[1,2,3,10,9];Kn.messageId="b.IssueEvent";
var qo=function(a){Y.call(this,a,-1,wFb)};X(qo,Y);qo.prototype.getIssue=function(){return Ub(this,en,1)};qo.prototype.setIssue=function(a){Vb(this,1,a)};var wFb=[2,3];qo.messageId="b.IssueFetchResponse";
var yFb=function(a){Y.call(this,a,-1,xFb)};X(yFb,Y);var xFb=[1];yFb.messageId="b.ListIssueEventsResponse";
var $I=function(a){Y.call(this,a)};X($I,Y);g=$I.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getStatus=function(){return qj(this,2,0)};g.setStatus=function(a){return m(this,2,a)};g.hasStatus=function(){return nj(this,2)};g.getTitle=function(){return Pi(this,3)};g.setTitle=function(a){return m(this,3,a)};g.getVersion=function(){return Ji(this,4)};g.setVersion=function(a){return m(this,4,a)};g.getVersionOrUndefined=function(){return uv(this,4)};
g.getIsArchived=function(){return oj(this,5)};g.setIsArchived=function(a){m(this,5,a)};
var aJ=function(a){Y.call(this,a,-1,zFb)};X(aJ,Y);aJ.prototype.getIssueDigestsList=function(){return Nb(this,$I,1)};aJ.prototype.getNumTotalResults=function(){return Aj(this,2)};var zFb=[1];aJ.messageId="b.RelatedIssuesResponse";
var bJ=function(){},cJ=function(a){this.executor=a};g=cJ.prototype;g.createIssue=function(a){var b=new NEb;b.setSnapshot(csa(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(Dra(a.contentJudgement));var c={};a.recaptchaToken&&(c["G-Recaptcha-Response-Token"]=a.recaptchaToken);return this.executor.post({url:"action/issues",body:b,options:{headers:c},responseConstructor:XI}).pipe(C(xsa))};
g.getIssue=function(a,b){var c={};(void 0===b?0:b)&&(c.excludeEvents="1");return this.executor.get({url:"action/issues/"+a,options:{params:c},responseConstructor:qo}).pipe(C(function(d){return Ln(d)}))};g.batchGetIssues=function(a){var b=new WI;b.setIssueIdsList(a.map(qm));return this.executor.post({url:"action/issues/batch",body:b,responseConstructor:iFb}).pipe(C(function(c){return c.getIssuesList().map(function(d){return Fn(d)})}))};
g.updateIssue=function(a,b){b=osa(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};g.moveIssueExternal=function(a,b){b=isa(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};g.moveIssue=function(a,b){b=gsa(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};
g.unCcUser=function(a){var b=esa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};g.updateAccessLimit=function(a,b){var c=(new KI).setIssueId(a);b&&(b=bsa[b])&&(b=(new LI).setAccessLevel(b),Vb(c,2,b));return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:fFb})};g.relateIssue=function(a,b){b=usa(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};
g.updateIssueHotlists=function(a,b){b=qsa(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};g.updateIssueRetention=function(a,b){b=wsa(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:qo}).pipe(C(function(c){return Ln(c)}))};
g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new QEb;m(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:RI}).pipe(C(wta))};
g.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new aFb;var d=a.bulkEditOps.map(hta);Mb(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:kFb,options:{headers:c}}).pipe(C(jta))};
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:aJ}).pipe(C(rsa))};var AFb=function(a,b){return a.executor.get({url:"action/issues/"+b+"/events",responseConstructor:yFb}).pipe(C(function(c){return Nb(c,Kn,1).map(function(d){return eta(d)})}))};
cJ.\u0275fac=function(a){return new (a||cJ)(p(lH))};cJ.\u0275prov=Hc({token:cJ,factory:cJ.\u0275fac,providedIn:"root"});var dJ=function(a){this.observableApi=a};X(dJ,bJ);g=dJ.prototype;g.createIssue=function(a){return(0,W.firstValueFrom)(this.observableApi.createIssue(a))};g.getIssue=function(a){return(0,W.firstValueFrom)(this.observableApi.getIssue(a))};g.batchGetIssues=function(a){return(0,W.firstValueFrom)(this.observableApi.batchGetIssues(a))};
g.updateIssue=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,W.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,W.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,W.firstValueFrom)(this.observableApi.unCcUser(a))};g.updateAccessLimit=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateAccessLimit(a,b))};
g.relateIssue=function(a,b){return(0,W.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,W.firstValueFrom)(this.observableApi.listIssues(a,b))};
g.issueBulkEdit=function(a,b){return(0,W.firstValueFrom)(this.observableApi.issueBulkEdit(a,b))};g.getRelatedIssues=function(a){return(0,W.firstValueFrom)(this.observableApi.getRelatedIssues(a))};dJ.\u0275fac=function(a){return new (a||dJ)(p(cJ))};dJ.\u0275prov=Hc({token:dJ,factory:dJ.\u0275fac,providedIn:"root"});
var eJ=function(){this.bookmarkGroupModified=new W.Subject;this.commentSubmitted=new W.Subject;this.commentRendered=new W.Subject;this.componentModified=new W.Subject;this.contactChipsRevertChanges=new W.Subject;this.customFieldsModified=new W.Subject;this.dashboardPanels={moveDown:new W.Subject,moveUp:new W.Subject,moveToTop:new W.Subject,moveToBottom:new W.Subject,remove:new W.Subject};this.favoritesModified=new W.Subject;this.hotlistCreated=new W.Subject;this.onClickAppMenuIcon=new W.Subject;this.openEditField=
new W.Subject;this.sidebarWidthChanged=new W.Subject;this.hotlistChanged=new W.Subject;this.savedSearchModified=new W.Subject;this.sidebarUpdated=new W.Subject;this.topBarEvents={browseComponents:new W.Subject,manageHotlists:new W.Subject,manageSlos:new W.Subject,setDensity:new W.Subject,openSettings:new W.Subject};this.templateModified=new W.Subject;this.issueViewed=new W.Subject;this.issueEdited=new W.Subject;this.focusCommentBox=new W.Subject;this.scrollToCommentBox=new W.Subject;this.needsAttentionIssueCount=
new W.Subject;this.recaptchaSubmitted=new W.Subject};eJ.\u0275fac=function(a){return new (a||eJ)};eJ.\u0275prov=Hc({token:eJ,factory:eJ.\u0275fac,providedIn:"root"});
var CFb=function(a){Y.call(this,a,-1,BFb)};X(CFb,Y);g=CFb.prototype;g.getCount=function(){return Ji(this,1)};g.setCount=function(a){return m(this,1,a)};g.setS=function(a){m(this,2,a)};g.setP=function(a){return m(this,3,a)};g.getNextPageToken=function(){return Pi(this,4)};g.setTrackerIdsList=function(a){Zm(this,5,a)};var BFb=[5];
var fJ=function(a){Y.call(this,a,-1,DFb)};X(fJ,Y);fJ.prototype.getNumTotalResults=function(){return Ji(this,2)};fJ.prototype.getComponentsMap=function(){return rj(this,3,qn)};fJ.prototype.getNextPageToken=function(){return Pi(this,4)};var Un=function(a){Y.call(this,a,-1,EFb)};X(Un,Y);Un.prototype.getIssue=function(){return Ub(this,en,1)};Un.prototype.setIssue=function(a){Vb(this,1,a)};var Vn=function(a){Y.call(this,a)};X(Vn,Y);Vn.prototype.getTimestamp=function(){return Ub(this,Cj,2)};
Vn.prototype.setTimestamp=function(a){return Vb(this,2,a)};Vn.prototype.hasTimestamp=function(){return vj(this,Cj,2)};var DFb=[1],EFb=[2];fJ.messageId="b.NeedsAttentionSearchResponse";
var GFb=function(a){Y.call(this,a,-1,FFb)};X(GFb,Y);GFb.prototype.setIssueIdsList=function(a){return Db(this,1,a,kb)};GFb.prototype.addIssueIds=function(a){Gb(this,1,a)};var FFb=[1];
var HFb=function(a){Y.call(this,a)};X(HFb,Y);HFb.messageId="b.UpdateIssueDismissTimestampResponse";
var gJ=function(a,b){this.executor=a;this.appEvents=b;this.COUNT=100};gJ.prototype.listIssues=function(a,b){var c=this,d=(new CFb).setCount(this.COUNT).setP(1);a&&d.setS(a.toApiUrlParam());b&&d.setTrackerIdsList(b);return this.executor.post({url:"action/issues/attention",body:d,responseConstructor:fJ}).then(yta).then(function(e){c.appEvents.needsAttentionIssueCount.next(e.numTotalResults||0);return e})};
var IFb=function(a,b,c){b=(new GFb).setIssueIdsList(b.map(iw));c=m(b,2,c);return a.executor.post({url:"action/issues/dismiss_timestamp",body:c,responseConstructor:HFb}).then(Bta)};gJ.\u0275fac=function(a){return new (a||gJ)(p(mH),p(eJ))};gJ.\u0275prov=Hc({token:gJ,factory:gJ.\u0275fac,providedIn:"root"});
var hJ=new Md("buganizerWindow",{factory:function(){return window}});
var iJ=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},jJ=function(a,b){var c=dk();JFb(b.page)?(KFb(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},MFb=function(a){var b=
dk(),c=null;a.currentResultsFetcher_?c=a.currentResultsFetcher_.params:c=LFb(a);c?(KFb(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},kJ=function(a){a.currentResultsFetcher_=null;a.nextResultsFetcher_=null;a.previousResultsFetcher_=null;a.focusedIssueIndex_=-1},NFb=function(a,b){var c=dk();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=Si(a.currentResultsFetcher_.params);e.page=d;KFb(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},OFb=function(a){a.currentResultsFetcher_?
a.currentResultsFetcher_.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex_=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){ll("unexpected error fetching:",b)}):a.focusedIssueIndex_=-1},LFb=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 mj(new ij(b.fieldId),b.direction)}));return a}return null},
PFb=function(a,b,c){b=Si(b);b.page=c;return new mEb(a.issueApi,a.hotlistApi,a.needsAttentionApi,a.paths,b)},QFb=function(a,b){a.currentResultsFetcher_||(a.currentResultsFetcher_=PFb(a,b,b.page),a.currentResultsFetcher_.fetchIssues().catch(function(c){ll("unexpected error fetching:",c)}));!a.previousResultsFetcher_&&1<b.page&&(a.previousResultsFetcher_=PFb(a,b,b.page-1),a.previousResultsFetcher_.fetchIssues().catch(function(c){ll("unexpected error fetching:",c)}));!a.nextResultsFetcher_&&nEb(a.currentResultsFetcher_)&&
(a.nextResultsFetcher_=PFb(a,b,b.page+1),a.nextResultsFetcher_.fetchIssues().catch(function(c){ll("unexpected error fetching:",c)}))},KFb=function(a,b){b.page=Xi(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("xc");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&&Ri(b.sortColumns,c.sortColumns)&&b.resultsPerPage===c.resultsPerPage&&Ri(b.trackerIds,c.trackerIds)?a.currentResultsFetcher_.params.returnUrl=b.returnUrl:kJ(a)}QFb(a,b);b=JSON.stringify(a.currentResultsFetcher_.params);a.$window.sessionStorage.setItem("buganizer.searchParams",
b)},JFb=function(a){var b=Xi(""+a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};iJ.\u0275fac=function(a){return new (a||iJ)(p(hJ),p(bJ),p(TI),p(gJ),p(pI))};iJ.\u0275prov=Hc({token:iJ,factory:iJ.\u0275fac,providedIn:"root"});
var RFb=new Md("MatSnackBarData"),SFb=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};
var TFb=Math.pow(2,31)-1,lJ=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new W.Subject;this._afterOpened=new W.Subject;this._onAction=new W.Subject;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};lJ.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var Gta=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete(),a.dismiss());clearTimeout(a._durationTimeoutId)};g=lJ.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,TFb))};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 UFb=Jh("state",[Mh("void, hidden",Lh({transform:"scale(0.8)",opacity:0})),Mh("visible",Lh({transform:"scale(1)",opacity:1})),Nh("* => visible",Kh("150ms cubic-bezier(0, 0, 0.2, 1)")),Nh("* => void, * => hidden",Kh("75ms cubic-bezier(0.4, 0.0, 1, 1)",Lh({opacity:0})))]);
var mJ=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._announceDelay=150;this._destroyed=!1;this._onAnnounce=new W.Subject;this._onExit=new W.Subject;this._onEnter=new W.Subject;this._animationState="void";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"))};X(mJ,yz);mJ.prototype.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};mJ.prototype.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};var VFb=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=mJ.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)})};g.ngOnDestroy=function(){this._destroyed=!0;this._completeExit()};
g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(sf()).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))};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)})};mJ.\u0275fac=function(a){return new (a||mJ)(B(Mf),B(Rd),B(Xx),B(hz),B(SFb))};mJ.\u0275dir=u({type:mJ,viewQuery:function(a,b){a&1&&zg(Bz,7);if(a&2){var c;yg(c=Bg())&&(b._portalOutlet=c.first)}},features:[Of]});
var WFb=new Md("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new SFb}}),nJ=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=nJ.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=Jf({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:SFb,useValue:b}]});a=a.attach(new wz(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new SFb,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new lJ(b,e);if(a instanceof vg)f.instance=b.attachTemplatePortal(new xz(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new wz(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ef(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 rB;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"):AB(c);"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return Jf({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:lJ,useValue:b},{provide:RFb,useValue:a.data}]})};ni.Object.defineProperties(nJ.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}}});
nJ.\u0275fac=function(a){return new (a||nJ)(p(DB),p(EA),p(dl),p(yA),p(nJ,12),p(WFb))};nJ.\u0275prov=Hc({token:nJ,factory:nJ.\u0275fac});
var oJ=function(a,b){this.snackBarRef=a;this.data=b};oJ.prototype.action=function(){Gta(this.snackBarRef)};ni.Object.defineProperties(oJ.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});oJ.\u0275fac=function(a){return new (a||oJ)(B(lJ),B(RFb))};
oJ.\u0275cmp=u({type:oJ,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],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&&(E(0,"span",0),Q(1),G(),P(2,Cta,3,1,"div",1));a&2&&(A(1),kg(b.data.message),A(1),D("ngIf",b.hasAction))},dependencies:[gy,pC],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 pJ=function(){mJ.apply(this,arguments)};X(pJ,mJ);pJ.\u0275dir=mJ.\u0275dir;pJ.prototype._afterPortalAttached=function(){mJ.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")};pJ.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(pJ)))(b||pJ)}}();
pJ.\u0275cmp=u({type:pJ,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,b){a&1&&Xha("@state.done",function(c){return VFb(b,c)});a&2&&eg("@state",b._animationState)},features:[Of],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(E(0,"div",0),P(1,Dta,0,0,"ng-template",1),G(),H(2,"div"));a&2&&(A(2),Uf("aria-live",b._live)("role",b._role))},dependencies:[Bz],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:[UFb]}});
var qJ=function(){};qJ.\u0275fac=function(a){return new (a||qJ)};qJ.\u0275mod=Yc({type:qJ});qJ.\u0275inj=Ic({imports:[GB,Cz,vy,AF,HB,HB]});
var rJ=function(a,b,c,d,e,f){nJ.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=oJ;this.snackBarContainerComponent=pJ;this.handsetCssClass="mat-snack-bar-handset"};X(rJ,nJ);rJ.\u0275fac=function(a){return new (a||rJ)(p(DB),p(EA),p(dl),p(yA),p(rJ,12),p(WFb))};rJ.\u0275prov=Hc({token:rJ,factory:rJ.\u0275fac,providedIn:qJ});
var sJ=function(a){this.snackBar=a};sJ.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(tJ,b)};sJ.\u0275fac=function(a){return new (a||sJ)(p(rJ))};sJ.\u0275prov=Hc({token:sJ,factory:sJ.\u0275fac,providedIn:"root"});
var tJ=function(a,b){this.data=a;this.snackBarRef=b};tJ.\u0275fac=function(a){return new (a||tJ)(B(RFb),B(lJ))};
tJ.\u0275cmp=u({type:tJ,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&&(E(0,"div",0),P(1,Eta,2,1,"span",1),P(2,
Fta,1,1,"span",2),E(3,"div",3),P(4,Hta,2,1,"button",4),P(5,Ita,2,1,"button",4),P(6,Jta,2,0,"button",5),G()());a&2&&(A(1),D("ngIf",!b.data.htmlMessage),A(1),D("ngIf",b.data.htmlMessage),A(2),D("ngIf",b.data.actionLabel),A(1),D("ngIf",b.data.dismissLabel),A(1),D("ngIf",!b.data.dismissLabel))},dependencies:[gy,pC,yD],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}\n/*# sourceMappingURL=snackbar_content.css.map */"]});
var uJ=function(a){this.snackbar=a};uJ.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var vJ=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},XFb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},wJ=function(a,b,c){a.open({message:b,duration:void 0===c?0:c,snackbarType:"ERROR"})};uJ.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};uJ.\u0275fac=function(a){return new (a||uJ)(p(sJ))};
uJ.\u0275prov=Hc({token:uJ,factory:uJ.\u0275fac,providedIn:"root"});
var xJ=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
xJ.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.":Xn(b)?Xn(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";c.$log.error(d,b);wJ(c.butterBar,d)})};
var yJ=function(a,b){a.$log.warn(b);wJ(a.butterBar,b)},zJ=function(a,b){if(Wn(b))a.errorHandler(null,b);else throw b;};xJ.\u0275fac=function(a){return new (a||xJ)(p(uJ),p(NG),p(WH),p(jH))};xJ.\u0275prov=Hc({token:xJ,factory:xJ.\u0275fac,providedIn:"root"});
var ZFb=function(a){Y.call(this,a,-1,YFb)};X(ZFb,Y);ZFb.prototype.getTrackersList=function(){return Nb(this,Tj,1)};var YFb=[1];ZFb.messageId="b.BatchGetTrackersResponse";
var AJ=function(a){Y.call(this,a,-1,$Fb)};X(AJ,Y);AJ.prototype.getTrackersList=function(){return Nb(this,Tj,1)};AJ.prototype.getNextPageToken=function(){return Pi(this,2)};AJ.prototype.getTotalSize=function(){return Ji(this,3)};var $Fb=[1];AJ.messageId="b.ListTrackersResponse";
var BJ=function(a){this.jspbExecutor=a};BJ.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:Tj}).pipe(C(Qi))};BJ.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:ZFb,options:{params:{trackerIds:a}}}).pipe(C(Nma))};
BJ.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:AJ,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(C(Oma))};BJ.\u0275fac=function(a){return new (a||BJ)(p(lH))};BJ.\u0275prov=Hc({token:BJ,factory:BJ.\u0275fac,providedIn:"root"});
var CJ=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()},DJ=function(a){return Date.now()-a.lastValidated};CJ.prototype.isFresh=function(){return DJ(this)<this.cfg.freshUntil};CJ.prototype.isAncient=function(){return DJ(this)>this.cfg.ancientAfter};CJ.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};CJ.prototype.toString=function(){var a=String(this.data);return Math.ceil(DJ(this)/1E3)+"s old -- "+a};
var aGb=function(a){this.cfg=a;this.cache=new Map},bGb=function(a,b){a=EJ(a,b);return null==a?Infinity:a},EJ=function(a,b){var c;return null==(c=a.get(b,!0))?void 0:DJ(c)};aGb.prototype.isFresh=function(a){return bGb(this,a)<this.cfg.freshUntil};var cGb=function(a,b){return bGb(a,b)<=a.cfg.ancientAfter};g=aGb.prototype;g.isAncient=function(){var a=EJ(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 DJ(c)>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 CJ(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new CJ(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=n(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 dGb=function(){},FJ={trustMemory:!0},eGb=function(){},Zma=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],fGb=function(a){this.ids=[];Object.assign(this,a)};X(fGb,eGb);fGb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var gGb={freshUntil:1E4,ancientAfter:792E5},HJ=function(a){var b=this;a=void 0===a?{}:a;this.error$=new W.Subject;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("yc`"+b.idKey+"`"+c);throw Error("zc`"+c);};this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new W.BehaviorSubject(Object.freeze({}));this.inFlightSaves$=
new W.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(C(Yn));this.saving$=this.inFlightSaves$.pipe(C(Yn));this.thinking$=(0,W.combineLatest)(this.getting$,this.saving$).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return c||d}),rf());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?dGb:GJ({label:c,value:EJ(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);
e("one-isChanged");f?f.next(d):kl(b.recordType+"::gotOne("+c+") !isEqual. Nobody's listening")}}};this.gotSet=function(c){return function(d){for(var e=n(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=b.idForRecord(f);b.gotOne(h)(f,{doNotTrack:!0})}(e=hGb(b,c))?e.next(d):ll("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){for(var e=GJ({label:c,value:EJ(b.collectiveMemory,c)}),f=n(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,Yma);b.collectiveMemory.set(c,f);e("all-isChanged");(e=b.collectionsById.get(c))?(d=iGb(b,f,d.results),e.next(d)):hqa(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&&ll("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=n(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves).map(function(c){var d=n(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?Yn(b.inFlightSaves):!!b.inFlightSaves[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(C(function(d){return!!d[c]}),rf())};this.isGetting=function(c){return null==c?Yn(b.inFlightGets):!!b.inFlightGets[c]};this.watchOne=this.watch=function(c,d){d=void 0===d?FJ:d;"number"===typeof d&&(d=FJ);if(null==c)return(0,W.of)();"number"===typeof c&&(c=String(c));var e=jGb(b,
c);kGb(b,c,d).catch(function(){});return Mw(e)};this.watchSet=function(c,d){d=void 0===d?FJ:d;"number"===typeof d&&(d=FJ);if(0===c.length)return(0,W.of)([]);c=c.map(function(f){return"number"===typeof f?String(f):f});var e=hGb(b,c);lGb(b,c,d);return e};this.watchMany=function(c){var d=void 0===d?FJ:d;c=Object.assign({},b.defaultQuery,c);var e=mGb(b,c);b.getAll(c,d);return Mw(e)};this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("Ac");c=b.doSave(c).pipe(qf(0,W.asapScheduler),bha(),
Me());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),nGb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};Lta(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Zn(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};Lta(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){Zn(b.inFlightGets$,c)};this.poke=function(c,d){return null==c?oGb():kGb(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("Bc");b.gotOne(e)(c,Object.assign({},{doNotTrack:!0},d))}};this.memory=new aGb(Object.assign({},gGb,a));this.collectiveMemory=new aGb(Object.assign({},gGb,a))};g=HJ.prototype;g.fetchOne=function(){throw Error("Cc");};g.fetchAll=function(){throw Error("Dc");};g.fetchSet=function(){throw Error("Ec");};g.doSave=function(){throw Error("Fc");};
g.copy=function(){throw Error("Gc");};g.isEqual=function(a,b){return Yma(a,b,100)};
var kGb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=GJ({label:b,value:EJ(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&cGb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Qta(c);if(a.inFlightGets[b])return c("one-inFlight"),c=jGb(a,b),Pta(c).then(Qta);c("one-fetch");var f=a.fetchOne(b).pipe(qf(0,W.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)},nGb(b,a.inFlightGets$))})},lGb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d="["+[].concat(r(b)).sort().join("-")+"]",e=GJ({label:d});if(c&&pGb(a,b))qGb(a,b),e("set-trustMemory");else if(a.inFlightGets[d])e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(qf(0,W.asapScheduler));e={};e=(e[d]=!0,e);for(var f=n(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;Lta(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){Mta(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){Mta(a.inFlightGets$,
[d].concat(r(b)))})}},pGb=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},qGb=function(a,b){var c=rGb(a,b).filter(fm);hGb(a,b).next(c)};
HJ.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=$n(a);var d=GJ({label:b,value:EJ(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=rGb(this,a.ids).filter(fm),a=iGb(this,a,b),Promise.resolve(a);if(this.inFlightGets[b])return d("all-inFlight"),a=mGb(this,a),Pta(a);d("all-fetch");c=this.fetchAll(a).pipe(qf(0,W.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,this.inFlightGets$),
nGb(b,this.inFlightGets$));a=mGb(this,a);return Pta(a)};HJ.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);iqa(a+" gotErr()",d);Zn(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var nGb=function(a,b){return function(){Zn(b,a)}};HJ.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new fGb(Object.assign({},Ota(a),{ids:b}))};
var iGb=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},Ota(b),{results:a})},rGb=function(a,b){return b.map(function(c){return a.memory.getData(c)})},mGb=function(a,b){b=$n(b);return Nta(a.collectionsById,b,new W.ReplaySubject(1))},hGb=function(a,b){b="["+[].concat(r(b)).sort().join("-")+"]";return Nta(a.setsByLabel,b,new W.ReplaySubject(1))},jGb=function(a,b){var c=new W.ReplaySubject(1),d=a.memory.getData(b);null!=d&&c.next(d);return Nta(a.valsById,b,c)},
sGb=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus($n(b))};HJ.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($n(a))};
var IJ=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)};ni.Object.defineProperties(HJ.prototype,{inFlightGets:{configurable:!0,enumerable:!0,get:function(){return this.inFlightGets$.getValue()}},inFlightSaves:{configurable:!0,enumerable:!0,get:function(){return this.inFlightSaves$.getValue()}}});
var GJ=function(a){for(var b=n(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,null==a[c]&&delete a[c];return function(){}},JJ=function(){HJ.apply(this,arguments);this.defaultQuery={}};X(JJ,HJ);var oGb=function(){return new Promise(function(){})};
var KJ=function(a,b){JJ.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)};X(KJ,JJ);KJ.prototype.fetchOne=function(a){return this.trackerApi.get(a)};KJ.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
KJ.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(C(function(d){var e;return{results:null!=(e=null==d?void 0:d.trackers)?e:[]}}))};KJ.\u0275fac=function(a){return new (a||KJ)(p(BJ),p(NG))};KJ.\u0275prov=Hc({token:KJ,factory:KJ.\u0275fac,providedIn:"root"});
var LJ=function(a,b,c,d){Z.call(this);var e=this;this.$window=a;this.activeSession=b;this.trackerFridge=c;this.errorHandler=d;this.handleTrackerError=function(f){e.errorHandler.errorHandler(null,f)};this.enableTrackers=Cq(this.activeSession,"enableTrackers");this.trackerId$=new W.BehaviorSubject(tGb(this));this.tracker$=this.trackerId$.pipe(Df(function(f){return""===f?(0,W.of)(void 0):e.trackerFridge.watch(f).pipe(Cf(void 0))}));this.inTracker$=this.tracker$.pipe(C(function(f){return!!f}));this.inTracker=
!1;this.associatedTrackers$=this.tracker$.pipe(C(function(f){var h;return null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[]}),Df(this.trackerFridge.watchSet));this.availableTrackers$=this.associatedTrackers$.pipe(Gf(this.tracker$),C(function(f){var h=n(f);f=h.next().value;return(h=h.next().value)?[h].concat(r(f)):[]}));this.enableTrackers&&uGb(this);this.trackerFridge.error$.pipe(Ef(this.destroyed$)).subscribe(this.handleTrackerError);this.inTracker$.pipe(Ef(this.destroyed$)).subscribe(function(f){e.inTracker=
f})};X(LJ,Z);LJ.\u0275dir=Z.\u0275dir;LJ.prototype.getTrackerId=function(){return this.trackerId$.value};var vGb=function(a){a=a.getTrackerId();if(""!==a&&"0"!==a)return[a]},uGb=function(a){var b=a.activeSession.getTracker();(b=b?b.trackerId:void 0)&&a.setTrackerId(b)},tGb=function(a){if(a.enableTrackers){var b;return null!=(b=a.$window.sessionStorage.getItem("buganizer.current_tracker_id"))?b:""}return""};
LJ.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};
var MJ=function(a,b,c,d){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:wGb(a,b,!0,c.trackerId,d)):a=wGb(a,b,!1,"",d);return a},wGb=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};LJ.\u0275fac=function(a){return new (a||LJ)(p(hJ),p(NG),p(KJ),p(xJ))};
LJ.\u0275prov=Hc({token:LJ,factory:LJ.\u0275fac,providedIn:"root"});
var NJ=function(a,b,c){Z.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(Ef(this.destroyed$)).subscribe(function(h){var k;d.trackerName=null!=(k=null==h?void 0:h.name)?k:""}))};X(NJ,Z);NJ.\u0275dir=Z.\u0275dir;
NJ.prototype.setTitle=function(a){var b=this.trackerName?this.trackerName:this.activeSession.getAppName();this.$window.document.title=a?a+" - "+b:b};NJ.\u0275fac=function(a){return new (a||NJ)(p(hJ),p(NG),p(LJ))};NJ.\u0275prov=Hc({token:NJ,factory:NJ.\u0275fac,providedIn:"root"});
var yGb=function(a){Y.call(this,a,-1,xGb)};X(yGb,Y);var xGb=[1,2];yGb.messageId="b.CheckPermissionResponse";
var OJ=function(){},PJ=function(a){this.executor=a};g=PJ.prototype;g.get=function(a,b){a=ao(bo(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:EI}).pipe(C(xra))};
g.update=function(a,b,c){a=ao(bo(a,b));b=new EI;var d=c.inheritance;m(b,1,xAb[null!=d?d:"INHERITANCE_UNSPECIFIED"]);var e;d=(null!=(e=c.admins)?e:[]).map(Hm);Mb(b,2,d);var f;e=(null!=(f=c.appenders)?f:[]).map(Hm);Mb(b,6,e);var h;f=(null!=(h=c.editors)?h:[]).map(Hm);Mb(b,4,f);var k;h=(null!=(k=c.readers)?k:[]).map(Hm);Mb(b,8,h);var q;k=(null!=(q=c.restrictedReaders)?q:[]).map(Hm);Mb(b,11,k);var t;q=(null!=(t=c.restrictedPlusReaders)?t:[]).map(Hm);Mb(b,12,q);c.implicitAccess&&b.setImplicitAccess(wAb[c.implicitAccess]);
return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:EI}).pipe(C(xra))};g.checkPermission=function(a,b,c,d){a=ao(a.join(","));b=ao(b);c=ao(bo(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:yGb}).pipe(C(tra))};g.setAccessLimit=function(a,b,c){a=ao(bo(a,b));c=Yqa(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:km}).pipe(C(Wqa))};
g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(C(function(b){return"ALLOW"===b.implicitAccess}))};PJ.\u0275fac=function(a){return new (a||PJ)(p(lH))};PJ.\u0275prov=Hc({token:PJ,factory:PJ.\u0275fac,providedIn:"root"});var QJ=function(a){this.observableApi=a};X(QJ,OJ);g=QJ.prototype;g.get=function(a,b){return(0,W.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.update(a,b,c))};
g.checkPermission=function(a,b,c,d){return(0,W.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};g.setAccessLimit=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,W.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};QJ.\u0275fac=function(a){return new (a||QJ)(p(PJ))};QJ.\u0275prov=Hc({token:QJ,factory:QJ.\u0275fac,providedIn:"root"});
var co=function(a){Y.call(this,a)};X(co,Y);co.prototype.getRelation=function(){return qj(this,2,0)};co.prototype.setRelation=function(a){m(this,2,a)};co.messageId="b.ResourceRelation";
var AGb=function(a){Y.call(this,a,-1,zGb)};X(AGb,Y);var zGb=[1];AGb.messageId="b.UserAccessBatchResponse";
var RJ=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+)$")};RJ.prototype.validate=function(a){return this.resourceNamePattern.test(a)};RJ.\u0275fac=function(a){return new (a||RJ)};RJ.\u0275prov=Hc({token:RJ,factory:RJ.\u0275fac,providedIn:"root"});
var SJ=function(a,b,c){var d=this;this.userAccess=a;this.resourceNameValidator=b;this.accesses={};this.accessGetter=c.adapt(function(e){return BGb(d,e)})},BGb=function(a,b){return CGb(a,b).then(function(c){return Sta(b,c)})},TJ=function(a,b,c){return a.resourceNameValidator.validate(c)?DGb(a,b,c):Promise.reject("invalid resource name: "+c)},CGb=function(a,b){var c=[],d=[];b=n(b);for(var e=b.next();!e.done;e=b.next())e=e.value,c.push(e.relation),d.push(e.resourceName);return a.userAccess.bulkGetUserAccess(c,
d)},DGb=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};SJ.\u0275fac=function(a){return new (a||SJ)(p(UJ),p(RJ),p(kH))};SJ.\u0275prov=Hc({token:SJ,factory:SJ.\u0275fac,providedIn:"root"});var VJ=function(a){this.executor=a};
VJ.prototype.bulkGetUserAccess=function(a,b){return this.executor.get({url:"action/user_access",options:{params:{relations:a.join(","),resourceNames:b.join(",")}},responseConstructor:AGb}).pipe(C(Rta))};VJ.\u0275fac=function(a){return new (a||VJ)(p(lH))};VJ.\u0275prov=Hc({token:VJ,factory:VJ.\u0275fac,providedIn:"root"});var UJ=function(a){this.observableApi=a};UJ.prototype.bulkGetUserAccess=function(a,b){return(0,W.firstValueFrom)(this.observableApi.bulkGetUserAccess(a,b))};
UJ.\u0275fac=function(a){return new (a||UJ)(p(VJ))};UJ.\u0275prov=Hc({token:UJ,factory:UJ.\u0275fac,providedIn:"root"});
var WJ=function(){};WJ.prototype.adapt=function(a){var b,c=new EGb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};WJ.\u0275fac=function(a){return new (a||WJ)};WJ.\u0275prov=Hc({token:WJ,factory:WJ.\u0275fac,providedIn:"root"});
var EGb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new W.Subject;this.inputs$=this.inputSubject.pipe(Cga(this.inputSubject.pipe(mf(this.bufferTimeMs,W.asapScheduler))));this.removeDuplicates=C(function(f){return[].concat(r(new Set(f)))});this.limitInputSize=C(function(f){for(var h=n(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,W.pipe)(af(function(f){try{return e.batchCall(f).pipe(sf(),C(function(h){return{inputs:f,batchResponse:h,error:void 0}}),nf(function(h){return(0,W.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,W.of)({inputs:f,batchResponse:void 0,error:h})}}),zf());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
EGb.prototype.get=function(a){var b=this;return new W.Observable(function(c){c=b.batchResults$.pipe(hf(function(d){return d.inputs.has(a)}),sf(),C(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw new FGb(d.error,d.inputs);})).subscribe(c);b.inputSubject.next(a);return c})};var FGb=function(a,b){var c=Error.call(this,"Error in batch call");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.err=a;this.inputs=b;Object.setPrototypeOf(this,FGb.prototype)};
X(FGb,Error);
var GGb=function(a){Y.call(this,a)};X(GGb,Y);GGb.messageId="b.CreateComponentResponse";
var IGb=function(a){Y.call(this,a,-1,HGb)};X(IGb,Y);var HGb=[1];IGb.messageId="b.ListComponentsResponse";
var JGb=function(){},KGb=function(){},XJ=function(a){this.executor=a};X(XJ,KGb);g=XJ.prototype;g.get=function(a){return this.query({id:[a]}).pipe(C(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b,c){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;c&&(a.trackerId=c);return this.query(a)};g.fetchComponent=function(a,b){var c={};b.checkEditAccess&&(c.checkEditAccess="true");return this.executor.get({url:"action/components/"+a,options:{params:c},responseConstructor:qn}).pipe(C(pn))};
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.trackerId&&(b.trackerId=a.trackerId);return this.executor.get({url:"action/components",options:{params:b},responseConstructor:IGb}).pipe(C(Msa))};g.create=function(a){a=Gsa(a);return this.executor.post({url:"action/components",body:a,responseConstructor:GGb}).pipe(C(function(b){return pn(Ub(b,qn,1))}))};
g.update=function(a){var b=a.componentId,c=new qn;c.setComponentId(String(a.componentId));m(c,2,String(a.parentComponentId));c.setName(a.name);c.setDescription(a.description);c.setArchived(a.archived);if(a.customFieldId){var d=a.customFieldId.map(String);Zm(c,7,d)}if(a.componentPathInfo){var e=a.componentPathInfo;d=new on;if(e.componentPathId){var f=e.componentPathId.map(String);Zm(d,1,f)}e.componentPathName&&(f=e.componentPathName.map(String),Xl(d,2,f));e.allCustomField&&(e=e.allCustomField.map(sra),
Mb(d,4,e));Vb(c,10,d)}a.accessLimit&&c.setAccessLimit(Yqa(a.accessLimit));m(c,13,a.emailAlias);a.userHasEditAccess&&m(c,14,a.userHasEditAccess);a.commentEditState&&c.setCommentEditState("ENABLED"===a.commentEditState?1:2);m(c,18,String(a.defaultTemplateId));a.slo&&c.setSlo(Kra(a.slo));m(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(Fra(a.retentionSettings));a.fieldOrdering&&m(c,23,uAb[a.fieldOrdering]);a.effortSpec&&(d=El(a.effortSpec),Vb(c,24,d));a.team&&c.setTeam(zsa(a.team));
var h;c.setTeamSuggestionsList((null!=(h=a.teamSuggestions)?h:[]).map(Csa));return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:qn}).pipe(C(pn))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:qn}).pipe(C(pn))};g.updateSlo=function(a,b){var c=new OI;c.setSlo(Kra(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:qn}).pipe(C(pn))};
g.updateTeam=function(a,b){var c=new PI;c.setTeam(zsa(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:qn}).pipe(C(pn))};XJ.\u0275fac=function(a){return new (a||XJ)(p(lH))};XJ.\u0275prov=Hc({token:XJ,factory:XJ.\u0275fac,providedIn:"root"});var YJ=function(a){this.observableApi=a};X(YJ,JGb);g=YJ.prototype;g.get=function(a){return(0,W.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b,c))};g.fetchComponent=function(a,b){return(0,W.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,W.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,W.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,W.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,W.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,W.firstValueFrom)(this.observableApi.updateTeam(a,b))};YJ.\u0275fac=function(a){return new (a||YJ)(p(XJ))};YJ.\u0275prov=Hc({token:YJ,factory:YJ.\u0275fac,providedIn:"root"});
var ZJ=function(a){JJ.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=a;this.recordType="component";this.idKey="componentId"};X(ZJ,JJ);ZJ.prototype.fetchOne=function(a){return this.batchedComponentApi.get(a).pipe(nf(function(){return(0,W.of)(void 0)}))};ZJ.prototype.fetchSet=function(a){var b=this;return(0,W.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(fm)}))};ZJ.\u0275fac=function(a){return new (a||ZJ)(p($J))};
ZJ.\u0275prov=Hc({token:ZJ,factory:ZJ.\u0275fac,providedIn:"root"});var $J=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)}})};
$J.prototype.call=function(a){return 1===a.size?this.observableComponentApi.fetchComponent([].concat(r(a))[0],{}).pipe(C(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(r(a))}).pipe(C(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};$J.prototype.splitBatch=function(a,b){return b.get(Number(a))};$J.\u0275fac=function(a){return new (a||$J)(p(KGb),p(WJ))};$J.\u0275prov=Hc({token:$J,factory:$J.\u0275fac,providedIn:"root"});
var aK=function(a){Y.call(this,a)};X(aK,Y);aK.prototype.getSnapshot=function(){return Ub(this,Xm,1)};aK.prototype.setSnapshot=function(a){Vb(this,1,a)};aK.messageId="b.IssueTemplateResponse";
var MGb=function(a){Y.call(this,a,-1,LGb)};X(MGb,Y);var LGb=[1];MGb.messageId="b.ListTemplatesResponse";
var bK=function(a){Y.call(this,a)};X(bK,Y);bK.messageId="b.TemplateResponse";
var cK=function(){},dK=function(a){this.executor=a};g=dK.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:bK}).pipe(C(Tta))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:MGb}).pipe(C(Uta))};g.create=function(a,b){b=Ksa(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:bK,body:b}).pipe(C(Tta))};
g.update=function(a,b,c){c=Ksa(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:bK,body:c}).pipe(C(Tta))};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:aK,options:{params:{templateId:String(b)}}}).pipe(C(Lsa))};dK.\u0275fac=function(a){return new (a||dK)(p(lH))};
dK.\u0275prov=Hc({token:dK,factory:dK.\u0275fac,providedIn:"root"});var eK=function(a){this.observableApi=a};X(eK,cK);g=eK.prototype;g.get=function(a,b){return(0,W.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,W.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,W.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,W.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,W.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};eK.\u0275fac=function(a){return new (a||eK)(p(dK))};eK.\u0275prov=Hc({token:eK,factory:eK.\u0275fac,providedIn:"root"});
var fK=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},OGb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=Object,e=d.assign,f=ta(c.issue.snapshot),h=c.events[0].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 NGb(a,
c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},NGb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return TJ(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})};fK.\u0275fac=function(a){return new (a||fK)(p(bJ),p(cK),p(xJ),p(SJ))};fK.\u0275prov=Hc({token:fK,factory:fK.\u0275fac,providedIn:"root"});
var gK=function(a,b){JJ.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(hf(fm),C(function(e){return e.templates}),C(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(hf(function(d){return!!d&&"0"!==d})).subscribe(function(d){c.poke(d)})};X(gK,JJ);
gK.prototype.fetchOne=function(a){return(0,W.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};gK.\u0275fac=function(a){return new (a||gK)(p(fK),p(eJ))};gK.\u0275prov=Hc({token:gK,factory:gK.\u0275fac,providedIn:"root"});
var Wta=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);
var hK=function(a){JJ.call(this);this.observableIssueResources=a;this.recordType="eventsForIssue"};X(hK,JJ);hK.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:hua(null==a?void 0:a.events,null==b?void 0:b.events)};hK.prototype.copy=function(a){return a&&Si(a)};hK.prototype.fetchOne=function(a){return AFb(this.observableIssueResources,a).pipe(C(function(b){return{id:a,events:b}}))};hK.\u0275fac=function(a){return new (a||hK)(p(cJ))};
hK.\u0275prov=Hc({token:hK,factory:hK.\u0275fac,providedIn:"root"});
var iK=function(a){Y.call(this,a,-1,PGb)};X(iK,Y);iK.prototype.getIssueId=function(){return Aj(this,1)};iK.prototype.setIssueId=function(a){return m(this,1,a)};var PGb=[2];iK.messageId="b.BatchGetIssueCommentsRequest";
var RGb=function(a){Y.call(this,a,-1,QGb)};X(RGb,Y);RGb.prototype.getIssueCommentsList=function(){return Nb(this,ZI,1)};var QGb=[1];RGb.messageId="b.BatchGetIssueCommentsResponse";
var jK=function(a){this.jspbExecutor=a};jK.prototype.batchGet=function(a,b){a=(new iK).setIssueId(Number(a));b=Bb(a,2,b);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:RGb,body:b}).pipe(C(kta))};jK.\u0275fac=function(a){return new (a||jK)(p(lH))};jK.\u0275prov=Hc({token:jK,factory:jK.\u0275fac,providedIn:"root"});
var kK=function(a,b){JJ.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)}})};X(kK,JJ);
kK.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return(0,W.combineLatest)(a.map(function(d){return b.get(d)})).pipe(C(function(d){var e=[];d=n(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}))};
kK.prototype.call=function(a){var b="",c=[];a=n(a);for(var d=a.next();!d.done;d=a.next()){var e=n(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(C(function(f){var h=b,k=new Map;f=n(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var t=void 0,x=Number(h)+"-"+(null!=(t=q.commentNumber)?t:0);k.set(x,q)}return k}))};kK.prototype.splitBatch=function(a,b){return b.get(a)};
kK.\u0275fac=function(a){return new (a||kK)(p(jK),p(WJ))};kK.\u0275prov=Hc({token:kK,factory:kK.\u0275fac,providedIn:"root"});
var lK=function(a){JJ.call(this);this.accessPolicyApi=a;this.recordType="hotlistAccessPolicy";this.isEqual=Ri};X(lK,JJ);lK.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(C(function(b){return Object.assign({},{id:a},b)}))};lK.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(C(function(c){return Object.assign({},{id:b},c)}))};lK.\u0275fac=function(a){return new (a||lK)(p(PJ))};
lK.\u0275prov=Hc({token:lK,factory:lK.\u0275fac,providedIn:"root"});
var SGb=function(a){Y.call(this,a)};X(SGb,Y);g=SGb.prototype;g.getUser=function(){return Ub(this,Wl,5)};g.setUser=function(a){Vb(this,5,a)};g.hasUser=function(){return vj(this,Wl,5)};g.getResourceType=function(){return qj(this,2,0)};g.setResourceType=function(a){m(this,2,a)};g.hasResourceType=function(){return nj(this,2)};g.getResourceId=function(){return uj(this,3)};g.setResourceId=function(a){m(this,3,a)};g.hasResourceId=function(){return tj(this,3)};g.getName=function(){return Pi(this,4)};
g.setName=function(a){return m(this,4,a)};g.hasName=function(){return Oi(this,4)};g.getNameOrUndefined=function(){return vv(this,4)};
var no=function(a){Y.call(this,a,-1,TGb)};X(no,Y);g=no.prototype;g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};g.hasDescription=function(){return Oi(this,4)};g.getQuery=function(){return Pi(this,7)};g.setQuery=function(a){return m(this,7,a)};g.clearQuery=function(){qv(this,7)};
g.hasQuery=function(){return Oi(this,7)};g.getSortOrderList=function(){return Nb(this,hm,8)};g.setSortOrderList=function(a){Mb(this,8,a)};g.getDisplayColumnList=function(){return Nb(this,gm,6)};g.setDisplayColumnList=function(a){Mb(this,6,a)};g.getAdminUsersList=function(){return Nb(this,Wl,11)};g.setAdminUsersList=function(a){Mb(this,11,a)};var TGb=[8,6,11];
var mK=function(a){Y.call(this,a)};X(mK,Y);mK.prototype.getFavorite=function(){return Ub(this,SGb,1)};mK.messageId="b.Favorite";
var VGb=function(a){Y.call(this,a,-1,UGb)};X(VGb,Y);VGb.prototype.addHotlist=function(a){rq(this,1,im,a)};var UGb=[1];VGb.messageId="b.HotlistBatchResponse";
var oo=function(a){Y.call(this,a,-1,WGb)};X(oo,Y);g=oo.prototype;g.getId=function(){return uj(this,1)};g.setId=function(a){return m(this,1,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return m(this,2,a)};g.hasName=function(){return Oi(this,2)};g.getNameOrUndefined=function(){return vv(this,2)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return m(this,3,a)};g.hasDescription=function(){return Oi(this,3)};
g.getAdminUsersList=function(){return Nb(this,Wl,8)};g.setAdminUsersList=function(a){Mb(this,8,a)};g.getStarred=function(){return oj(this,5)};g.setStarred=function(a){m(this,5,a)};g.getResourceType=function(){return Pi(this,6)};g.setResourceType=function(a){m(this,6,a)};g.hasResourceType=function(){return Oi(this,6)};var WGb=[8];
var po=function(a){Y.call(this,a,-1,XGb)};X(po,Y);g=po.prototype;g.getId=function(){return uj(this,1)};g.setId=function(a){return m(this,1,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return m(this,2,a)};g.hasName=function(){return Oi(this,2)};g.getNameOrUndefined=function(){return vv(this,2)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return m(this,3,a)};g.hasDescription=function(){return Oi(this,3)};
g.getAdminUsersList=function(){return Nb(this,Wl,8)};g.setAdminUsersList=function(a){Mb(this,8,a)};g.getStarred=function(){return oj(this,5)};g.setStarred=function(a){m(this,5,a)};var XGb=[8,6];
var nK=function(a){Y.call(this,a,-1,YGb)};X(nK,Y);nK.prototype.getHotlistsList=function(){return Nb(this,oo,1)};nK.prototype.getBookmarkGroupsList=function(){return Nb(this,po,2)};var YGb=[1,2,3,4];nK.messageId="b.SidebarInfo";
var $Gb=function(a){Y.call(this,a,-1,ZGb)};X($Gb,Y);var ZGb=[1];$Gb.messageId="b.UserRecentComponentResponse";
var bHb=function(a){Y.call(this,a,-1,aHb)};X(bHb,Y);var aHb=[1];bHb.messageId="b.UserSavedSearchesResponse";
var oK=function(){},pK=function(){};pK.\u0275fac=function(a){return new (a||pK)};pK.\u0275prov=Hc({token:pK,factory:pK.\u0275fac,providedIn:"root"});var qK=function(a){this.executor=a};X(qK,pK);g=qK.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:VGb}).pipe(C(Uqa))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:nK}).pipe(C(Aua))};
g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:$Gb}).pipe(C(Hsa))};g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:bHb}).pipe(C(xua))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:mK}).pipe(C(vua))};
g.saveFavorite=function(a){var b=new SGb;b.setResourceType(BAb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:mK}).pipe(C(vua))};g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};
var cHb=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})};qK.\u0275fac=function(a){return new (a||qK)(p(lH))};qK.\u0275prov=Hc({token:qK,factory:qK.\u0275fac,providedIn:"root"});var rK=function(a){this.observableApi=a};
X(rK,oK);g=rK.prototype;g.getUserHotlists=function(){return(0,W.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,W.firstValueFrom)(this.observableApi.getUserSidebar())};g.getRecentComponents=function(){return(0,W.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,W.firstValueFrom)(this.observableApi.getUserSavedSearches())};
g.getFavorite=function(a,b){return(0,W.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,W.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,W.firstValueFrom)(this.observableApi.deleteFavorite(a))};rK.\u0275fac=function(a){return new (a||rK)(p(qK))};rK.\u0275prov=Hc({token:rK,factory:rK.\u0275fac,providedIn:"root"});
var dHb={parent:"me"},sK=function(a,b,c){JJ.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,W.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){d.pokeMany(dHb)})};X(sK,JJ);
sK.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(nf(function(b){return 403===b.status?(0,W.of)(void 0):(0,W.throwError)(b)}))};sK.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(C(function(b){return{results:b}}));ll("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,W.of)({results:[]})};
sK.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(C(function(b){return(null!=b?b:[]).filter(fm)}))};sK.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};var eHb=function(a){return a.watchMany(dHb).pipe(C(function(b){return b.results}))};sK.\u0275fac=function(a){return new (a||sK)(p(VI),p(pK),p(eJ))};sK.\u0275prov=Hc({token:sK,factory:sK.\u0275fac,providedIn:"root"});
var Bua=function(a){Y.call(this,a,-1,fHb)};X(Bua,Y);var fHb=[1];
var gHb=!1;
var Aq={ADD_USER_WITHOUT_ACCESS:"addUserWithoutAccess",COMPONENT_PICKER:"componentPicker",CREATE_ISSUE:"createIssue",EDIT_ISSUE:"editIssue",EDIT_SLO:"editSlo",FIELD_ORDERING:"fieldOrdering",G3C_WIDGET:"g3cWidget",G3N:"g3n",GLOBAL_SEARCH:"global-search",ISSUE:"issue",ISSUE_CARD:"issueCard",ISSUE_EVENT_DETAIL:"issueEventDetail",ISSUE_PICKER:"issuePicker",ISSUE_SLO:"issueSlo",JOURNEY:"journey",LINK_FIELD:"linkField",LIST_ISSUES:"listIssues",MAGIC_BOX:"magicBox",MANAGE_COMPONENT:"component",NEEDS_ATTENTION:"needsAttention",
PERSON_CARD:"personCard",PUSH_UPDATE:"pushUpdate",RECAPTCHA_TOKEN:"recaptchaToken",RESTRICTED_CONTENT:"restrictedContent",ROLE_BASED_PERMISSIONS:"roleBasedPermissions",SEARCH:"search",SIDEBAR:"sidebar",TEAM_CARD:"teamCard",TEAM_WARNING:"teamWarning",UPDATE_HISTORY_MODAL:"updateHistoryModal",WHATS_NEW:"whatsNew"};
var tK=function(){var a=new zma(852);a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.enableSendBeaconApi_=!0;a=new WE(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new vxb(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};tK.\u0275fac=function(a){return new (a||tK)};tK.\u0275prov=Hc({token:tK,factory:tK.\u0275fac,providedIn:"root"});
var hHb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},ro=window.localStorage||hHb,iHb=function(a){return function(){var b=ro.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},jHb=function(a){return function(){var b=ro.getItem(a);if(null!=b)return String(b)}},kHb=function(a){return function(b){null==b?ro.removeItem(a):ro.setItem(a,String(b))}},lHb=function(a){return function(b){null==b?ro.removeItem(a):ro.setItem(a,b)}},mHb=function(a){return function(){var b=
so(a)();to(a)(!b);return!b}};
var nHb=so("debug-logging")(),uK=function(a,b){this.activeSession=a;this.streamz=b;this.pageLoadTime=new jAb(this.streamz.service);this.userLatency=new lAb(this.streamz.service);this.userActionCounter=new kAb(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
uK.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);nHb&&console.log("Clearcut stub",{action:b,duration:a})};var vK=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);nHb&&console.log("Clearcut stub",{action:c,duration:b})},oHb=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);nHb&&console.log("Clearcut stub",{action:b})};
uK.\u0275fac=function(a){return new (a||uK)(p(NG),p(tK))};uK.\u0275prov=Hc({token:uK,factory:uK.\u0275fac,providedIn:"root"});
var pHb=Aq.GLOBAL_SEARCH,qHb=Aq.JOURNEY,rHb=function(a){return function(b){null==b?ro.removeItem(a):ro.setItem(a,JSON.stringify(b))}}("journey-log"),sHb=function(a){return function(){var b=ro.getItem(a);if(null!=b)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+a+")"),console.warn(c)}}}("journey-log"),wK={},tHb=(wK.ssue__edit="edit",wK.ssue__addComment="comment",wK["ssue__light-ixn"]="ixn",wK.ssue__copyIssueId="ixn",wK[pHb+"__.*__.*text"]="ilp-search",wK[pHb+"__.*__filters"]="ilp-filter",
wK),xK={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter","idle"],successMarker:"SUCCESS-search",count:["nav"]},yK=function(a){this.clearcut=a},uHb=function(a,b){var c=void 0===c?Date.now():c;var d,e=null!=(d=sHb())?d:[];e.push([b,c]);100<e.length&&(e=e.slice(-100));rHb(e);if(xK.successEvents.includes(b)){b=e;c=xK.abortEvents;d=xK.successEvents;e=xK.startEvents;for(var f=xK.successMarker,h,k=b.length-1;0<=k;k--){var q=n(b[k]),t=q.next().value;q=q.next().value;
if(c.includes(t))break;if(f===t)break;if(d.includes(t)){if(h&&x)break;var x=q}else x&&e.includes(t)&&(h=q)}x=h&&x?[h,x]:void 0;if(x){x=n(x);h=x.next().value;x=x.next().value-h;vK(a.clearcut,x,Dua(qHb,"global-search-text"));var y;null==(y=window.ga)||y("send","event",qHb,"global-search-text","duration",x);uHb(a,xK.successMarker)}}};yK.\u0275fac=function(a){return new (a||yK)(p(uK))};yK.\u0275prov=Hc({token:yK,factory:yK.\u0275fac,providedIn:"root"});
var vHb=window,zK=function(){return vHb.performance&&vHb.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure},Pua=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},wHb=function(a){if(zK())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};
var AK=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))}},xHb=function(a){zK()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new vHb.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};AK.\u0275fac=function(a){return new (a||AK)(p(uK))};
AK.\u0275prov=Hc({token:AK,factory:AK.\u0275fac,providedIn:"root"});
var Sua=so("debug-logging")(),wo=window,yHb,zHb=function(a){a=a.getEntries().map(Eua).map(Nua);a=n(a);for(var b=a.next();!b.done;b=a.next())Rua(b.value);setTimeout(Qua,100)},Oua=!1;
var Tua=iHb("last-visit"),Uua=iHb("last-visit-count"),Wua=kHb("last-visit"),Vua=kHb("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});
var AHb=so("debug-logging")(),BHb=so("onedev-darkmode"),CHb=so("hasClickedCommentSortBtn"),BK=function(a,b,c,d,e,f){Z.call(this);var h=this;this.$log=c;this.journeyTracker=f;this.preapply=function(){var x=DHb;return function(y){return function(F,K){Mo(h,x,y,F,K)}}};Xua();xo("dimension13",d.getUserTypeLabel());c=d.getUserPreferences();xo("dimension7",BHb()?"dark":"default");var k;xo("dimension3",null==(k=c.themePreferences)?void 0:k.density);xo("dimension6",Cq(d,"readUnreadOptOut"));xo("dimension8",
Cq(d,"enableEnhancedCommentThread"));xo("dimension9",CHb());k=c.showFullHistory?"fh":"comments";var q;if(Cq(d,"enableCommentFiltering")&&(null==(q=c.commentFilterPreferences)?0:q.commentFilter)){var t;k=null==(t=c.commentFilterPreferences)?void 0:t.commentFilter}xo("dimension2",k);xo("dimension5",c.showRecentEventsFirst?"newestFirst":"oldestFirst");this.ga=a.ga;this.subscriptions.add(b.viewContentLoaded.subscribe(function(){setTimeout(function(){var x;null==(x=h.ga)||x.call(h,"set","location","Scrubbed Page URL");
var y;null==(y=h.ga)||y.call(h,"set","title","Scrubbed Page Title");x=eqa(e.snapshot);var F;null==(F=h.ga)||F.call(h,"send","pageview",x);AHb&&h.$log.debug("[stub analytics.ts] ga('send', 'pageview', '"+x+"')")},0)}))};X(BK,Z);BK.\u0275dir=Z.\u0275dir;
var Mo=function(a,b,c,d,e){var f="boolean"===typeof e?e?1:0:e;if(d)if(void 0!==e){var h;null==(h=a.ga)||h.call(a,"send","event",b,c,d,f)}else{var k;null==(k=a.ga)||k.call(a,"send","event",b,c,d)}else{var q;null==(q=a.ga)||q.call(a,"send","event",b,c)}AHb&&a.$log.debug("[stub analytics.ts] ga('send', 'event')",b,c,d,f);a=a.journeyTracker;b=Dua(b,c,d);c=n(Object.entries(tHb));for(d=c.next();!d.done;d=c.next())if(e=n(d.value),d=e.next().value,e=e.next().value,b.match(new RegExp(d))){uHb(a,e);break}},
EHb=function(a,b,c,d){if(d){var e;null==(e=a.ga)||e.call(a,"send","timing","userAction",b,c,d)}else{var f;null==(f=a.ga)||f.call(a,"send","timing","userAction",b,c)}AHb&&a.$log.debug("[stub analytics.ts] ga('send', 'timing')","userAction",b,c,d)};BK.\u0275fac=function(a){return new (a||BK)(p(hJ),p(ZH),p(WH),p(NG),p(Fk),p(yK))};BK.\u0275prov=Hc({token:BK,factory:BK.\u0275fac,providedIn:"root"});
var ota=function(a){Y.call(this,a,-1,FHb)};X(ota,Y);g=ota.prototype;g.getComponentId=function(){return Aj(this,1)};g.setComponentId=function(a){return m(this,1,a)};g.hasComponentId=function(){return zj(this,1)};g.getType=function(){return qj(this,2,0)};g.setType=function(a){return m(this,2,a)};g.hasType=function(){return nj(this,2)};g.getPriority=function(){return qj(this,3,0)};g.setPriority=function(a){return m(this,3,a)};g.hasPriority=function(){return nj(this,3)};
g.getSeverity=function(){return qj(this,4,0)};g.setSeverity=function(a){return m(this,4,a)};g.hasSeverity=function(){return nj(this,4)};g.getStatus=function(){return qj(this,5,0)};g.setStatus=function(a){return m(this,5,a)};g.hasStatus=function(){return nj(this,5)};g.getReporter=function(){return Ub(this,Wl,6)};g.setReporter=function(a){Vb(this,6,a)};g.setAssignee=function(a){Vb(this,7,a)};g.clearAssignee=function(){return qv(this,7)};g.setVerifier=function(a){Vb(this,8,a)};
g.clearVerifier=function(){return qv(this,8)};g.addHotlistIds=function(a,b){return Gb(this,10,a,b)};g.getInProd=function(){return oj(this,15)};g.setInProd=function(a){m(this,15,a)};g.getSloSnoozeUntil=function(){return Ub(this,Cj,16)};g.setSloSnoozeUntil=function(a){Vb(this,16,a)};g.getRetention=function(){return qj(this,17,0)};g.setRetention=function(a){m(this,17,a)};g.getEntityStatus=function(){return Ub(this,HI,18)};g.hasEntityStatus=function(){return vj(this,HI,18)};
g.getIsArchived=function(){return oj(this,19)};g.setIsArchived=function(a){m(this,19,a)};var FHb=[9,10,11,12,14];
var GHb=function(a){Y.call(this,a)};X(GHb,Y);g=GHb.prototype;g.getIssueId=function(){return Aj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getVersion=function(){return Ji(this,3)};g.setVersion=function(a){return m(this,3,a)};g.getVersionOrUndefined=function(){return uv(this,3)};g.getCreatedTime=function(){return Ub(this,Cj,4)};g.getSloId=function(){return Aj(this,9)};g.setSloId=function(a){return m(this,9,a)};g.getSloStatus=function(){return Ub(this,Pl,10)};
g.setSloStatus=function(a){Vb(this,10,a)};g.getRetentionState=function(){return Ub(this,hn,11)};g.setRetentionState=function(a){Vb(this,11,a)};g.getAccessLimit=function(){return Ub(this,km,12)};g.setAccessLimit=function(a){return Vb(this,12,a)};g.getTeamId=function(){return Aj(this,13)};g.setTeamId=function(a){return m(this,13,a)};GHb.messageId="b.IssueMetadata";
var IHb=function(a){Y.call(this,a,-1,HHb)};X(IHb,Y);IHb.prototype.setIssueIdsList=function(a){return Db(this,1,a,kb)};IHb.prototype.addIssueIds=function(a){Gb(this,1,a)};var HHb=[1];
var JHb=function(a){Y.call(this,a)};X(JHb,Y);JHb.messageId="b.UpdateIssueReadTimestampResponse";
var CK=function(a){this.executor=a};CK.prototype.delete=function(a,b){var c=new GI;c.setIssueId(String(a));c.setReason($ra[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};CK.prototype.undelete=function(a){var b=new JI;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};CK.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:GHb}).then(pta)};
CK.prototype.markRead=function(a,b){b=void 0===b?!0:b;var c=new IHb;c.setIssueIdsList(a.map(Number));m(c,2,b);return this.executor.post({url:"action/issues/read_timestamp",body:c,responseConstructor:JHb}).then(nta)};CK.\u0275fac=function(a){return new (a||CK)(p(mH))};CK.\u0275prov=Hc({token:CK,factory:CK.\u0275fac,providedIn:"root"});
var DK=function(){this.refreshRequest=new W.Subject};DK.prototype.getObservable=function(){return this.refreshRequest};var KHb=function(a,b){return a.getObservable().pipe(Cf(void 0)).pipe(Df(function(){return b}))};DK.\u0275fac=function(a){return new (a||DK)};DK.\u0275prov=Hc({token:DK,factory:DK.\u0275fac,providedIn:"root"});
var EK=Aq.ISSUE,FK=function(a,b,c,d,e,f,h,k){JJ.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.idForRecord=function(t){return String(t.issueId)};this.isEqual=Ri;this.issueFetchResponse$=new W.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(t){return q.call(t)},split:function(t,x){return q.splitBatch(t,x)}});
this.refreshMonitor.getObservable().subscribe(function(){q.invalidate()})};X(FK,JJ);FK.prototype.fetchOne=function(a){return this.get(a).pipe(nf(function(){return(0,W.of)(void 0)}))};FK.prototype.fetchSet=function(a){var b=this;return(0,W.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(fm)}))};
FK.prototype.fetchAll=function(a){var b=a.filter;a={s:a.sort,count:a.pageSize};if(b)return this.issueResources.listIssues(b,a).pipe(C(function(c){return{results:c.issues,totalSize:c.numTotalResults}}));throw Error("Ic");};FK.prototype.copy=function(a){return a&&Si(a)};
var LHb=function(a,b,c){Mo(a.analytics,EK,"light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};PG(a.activeSession)&&(d.voted=c);return cHb(a.userResources,b,d).pipe(Ff(function(){IJ(a,b,function(e){e.userData&&(e.userData.starred=c,PG(a.activeSession)&&(e.userData.voted=c))})}))};
FK.prototype.setVoted=function(a,b){var c=this;Mo(this.analytics,EK,"light-ixn","vote",b);return cHb(this.userResources,a,{voted:b,starred:null,notificationSubscription:null}).pipe(Ff(function(){IJ(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
FK.prototype.setNotificationSubscription=function(a,b){var c=this,d;return Pe(function(e){if(1==e.nextAddress)return Mo(c.analytics,EK,"light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},Re(e,(0,W.firstValueFrom)(cHb(c.userResources,a,d)),2);IJ(c,a,function(f){f.userData&&(f.userData.notificationSubscription=b)});Ve(e)})};
var MHb=function(a,b,c){Mo(a.analytics,EK,"edit","title");var d={issueId:b,actions:[{fieldName:"title",value:c}]};IJ(a,b,function(e){e.snapshot[0].title=c});return a.issueResources.updateIssue(b,d).pipe(Ff(function(e){e&&a.announce(e.issue)}))},NHb=function(a,b,c,d){var e,f,h,k,q,t,x;return Pe(function(y){if(1==y.nextAddress){Mo(a.analytics,EK,"edit","hotlists");e={removeHotlistIds:d,addHotlistIds:c,hotlistIssue:{issueId:b}};f=n([].concat(r(c),r(d)));for(h=f.next();!h.done;h=f.next())k=h.value,a.hotlistFridge.setIsSaving(k);
Qe(y,2);return Re(y,(0,W.firstValueFrom)(a.issueResources.updateIssueHotlists(b,e)).finally(function(){for(var F=n([].concat(r(c),r(d))),K=F.next();!K.done;K=F.next())a.hotlistFridge.clearIsSaving(K.value)}),4)}if(2!=y.nextAddress)return(q=y.yieldResult)&&a.announce(q.issue),y.return(null==(t=q)?void 0:t.issue);x=Ue(y);a.poke(b);throw x;})},OHb=function(a,b,c){return GK(a,"ADD","DUPLICATE",c,[b]).then(function(){return a.poke(b)})};
FK.prototype.removeDuplicate=function(a,b){var c=this;return GK(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};
var GK=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);Mo(a.analytics,EK,"edit","relation",Number(c));b={relation:c,issueId:d,targetIds:e,actionType:b};PHb(a,b);var f=[d].concat(r(e));e=n(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return(0,W.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=n(f),k=h.next();!k.done;k=h.next())a.clearIsSaving(k.value)})},
HK=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 Pe(function(t){if(1==t.nextAddress)return a.activeSession.isAnonymous()?t.return():Re(t,a.issueService.markRead(b,d),2);f=t.yieldResult;if(e)for(h=n(b),k=h.next();!k.done;k=h.next())q=k.value,IJ(a,String(q),function(x){x.userData&&(x.userData.lastViewedTimeMicros=f.readTimestamp)});return t.return(f.readTimestamp?Math.round(f.readTimestamp/1E3):void 0)})},PHb=function(a,
b){IJ(a,b.issueId,function(c){switch(b.relation){case "BLOCKED_BY":if("ADD"===b.actionType){var d;c.snapshot[0].blockedByIssueId=[].concat(r(null!=(d=c.snapshot[0].blockedByIssueId)?d:[]),r(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:[]}}})};
FK.prototype.call=function(a){var b=this;if(1===a.size){var c=[].concat(r(a))[0];return this.issueResources.getIssue(c,!0).pipe(Ff(function(d){b.issueFetchResponse$.next(d)}),C(function(d){return new Map([[c,d.issue]])}))}return this.issueResources.batchGetIssues([].concat(r(a))).pipe(C(function(d){return new Map(d.map(function(e){return[e.issueId,e]}))}))};FK.prototype.splitBatch=function(a,b){return b.get(a)};
FK.\u0275fac=function(a){return new (a||FK)(p(WJ),p(cJ),p(pK),p(DK),p(CK),p(NG),p(sK),p(BK))};FK.\u0275prov=Hc({token:FK,factory:FK.\u0275fac,providedIn:"root"});
var IK=function(a,b){JJ.call(this);this.observableIssueResources=a;this.issueFridge=b;this.recordType="issue-fr";this.idForRecord=function(c){return c.issueId};this.isEqual=Ri;this.destroyed$=new W.ReplaySubject(1);gHb?a=void 0:(gHb=!0,a=Cua());a&&QHb(this,a);this.issueFridge.issueFetchResponse$.pipe(hf(fm),C(Zua),Ef(this.destroyed$)).subscribe(this.announce)};X(IK,JJ);
var JK=function(a,b){return a.watch(b).pipe(Df(function(c){return a.issueFridge.watch(b).pipe(C(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},KK=function(a,b,c){return a.poke(b,c).then(function(){return(0,W.firstValueFrom)(JK(a,b))})},QHb=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)};
IK.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.observableIssueResources.getIssue(a,!0).pipe(Ff(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),C(function(c){return c&&Zua(c)}),nf(function(c){b.issueFridge.clearIsGetting(a);return(0,W.throwError)(c)}))};IK.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};IK.prototype.copy=function(a){return a&&Object.assign({},a)};
IK.\u0275fac=function(a){return new (a||IK)(p(cJ),p(FK))};IK.\u0275prov=Hc({token:IK,factory:IK.\u0275fac,providedIn:"root"});
var MK=function(a){Y.call(this,a)};X(MK,Y);var NK=function(a,b){return Fb(a,1,b,0)},RHb=function(a,b){return Fb(a,2,b,0)};
var SHb=function(a){Y.call(this,a)};X(SHb,Y);g=SHb.prototype;g.getIssueId=function(){return Aj(this,1)};g.setIssueId=function(a){return Fb(this,1,a,0)};g.setRelationshipType=function(a){return Dl(this,2,a)};g.getIssueRelationship=function(){return Ub(this,MK,3)};g.setIssueRelationship=function(a){return Vb(this,3,a)};g.getSignificanceOverride=function(){return qj(this,4,0)};g.setSignificanceOverride=function(a){Dl(this,4,a)};
var UHb=function(a){Y.call(this,a,-1,THb)};X(UHb,Y);g=UHb.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.setRelationshipType=function(a){return m(this,2,a)};g.setRequestsList=function(a){return Mb(this,3,a)};g.addAndReturnRequests=function(){return bob(this,3,SHb)};g.getSignificanceOverride=function(){return qj(this,4,0)};g.setSignificanceOverride=function(a){m(this,4,a)};var THb=[3];UHb.messageId="b.BatchCreateIssueRelationshipsRequest";
var WHb=function(a){Y.call(this,a,-1,VHb)};X(WHb,Y);WHb.prototype.getIssueRelationshipsList=function(){return Nb(this,MK,1)};var VHb=[1];WHb.messageId="b.BatchCreateIssueRelationshipsResponse";
var YHb=function(a){Y.call(this,a,-1,XHb)};X(YHb,Y);g=YHb.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.setRelationshipType=function(a){return m(this,2,a)};g.getSignificanceOverride=function(){return qj(this,4,0)};g.setSignificanceOverride=function(a){m(this,4,a)};var XHb=[3];YHb.messageId="b.BatchDeleteIssueRelationshipsRequest";
var OK=function(a){Y.call(this,a,-1,ZHb)};X(OK,Y);OK.prototype.getSourceIssueIdsList=function(){return Mi(this,1)};OK.prototype.setSourceIssueIdsList=function(a){return Zm(this,1,a)};OK.prototype.setRelationshipType=function(a){return m(this,2,a)};OK.prototype.setIncludeArchived=function(a){return m(this,3,a)};var ZHb=[1];OK.messageId="b.BatchGetIssueRelationshipsRequest";
var PK=function(a){Y.call(this,a,-1,$Hb)};X(PK,Y);PK.prototype.getIssueRelationshipsList=function(){return Nb(this,MK,1)};PK.prototype.getTotalSize=function(){return Ji(this,2)};var $Hb=[1];
var bIb=function(a){Y.call(this,a,-1,aIb)};X(bIb,Y);var aIb=[1];bIb.messageId="b.BatchGetIssueRelationshipsResponse";
var QK=function(a){Y.call(this,a)};X(QK,Y);QK.prototype.getIssueRelationship=function(){return Ub(this,MK,1)};QK.prototype.setIssueRelationship=function(a){return Vb(this,1,a)};QK.messageId="b.CreateIssueRelationshipResponse";
var RK=function(a){Y.call(this,a,-1,cIb)};X(RK,Y);var dIb=function(a,b){return Zm(a,1,b)};RK.prototype.setRelationshipType=function(a){return m(this,2,a)};RK.prototype.setIncludeArchived=function(a){return m(this,3,a)};var eIb=function(a,b){return m(a,4,b)},fIb=function(a,b){return m(a,5,b)},cIb=[1];RK.messageId="b.GetIssueDescendantsRequest";
var gIb=function(a){Y.call(this,a)};X(gIb,Y);gIb.messageId="b.GetIssueDescendantsResponse";
var iIb=function(a){Y.call(this,a,-1,hIb)};X(iIb,Y);iIb.prototype.getIssueRelationshipsList=function(){return Nb(this,MK,1)};var hIb=[1];iIb.messageId="b.ListIssueRelationshipsResponse";
var SK=function(a){Y.call(this,a)};X(SK,Y);SK.prototype.getIssueRelationship=function(){return Ub(this,MK,1)};SK.prototype.setIssueRelationship=function(a){return Vb(this,1,a)};SK.messageId="b.UpdateIssueRelationshipResponse";
var TK=function(a){this.executor=a};g=TK.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+b,responseConstructor:iIb}).pipe(C(function(c){return c.getIssueRelationshipsList()}))};g.create=function(a,b,c){return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:QK}).pipe(C(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new MK}))};
g.update=function(a,b,c){return this.executor.put({url:"action/issues/"+a+"/relationships/"+Aj(c,1)+"?relationshipType="+b,body:c,responseConstructor:SK}).pipe(C(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new MK}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+b,responseConstructor:null})};
g.batchGet=function(a,b){a=(new OK).setSourceIssueIdsList(a).setRelationshipType(b).setIncludeArchived();return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:bIb}).pipe(C(function(c){return Nb(c,PK,1)}))};
var jIb=function(a,b,c){c=c.map(function(d){return(new SHb).setIssueRelationship(d)});b=(new UHb).setIssueId(b).setRelationshipType(1).setRequestsList(c);return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:WHb}).pipe(C(function(d){return d.getIssueRelationshipsList()}))},kIb=function(a,b,c){b=(new YHb).setIssueId(b).setRelationshipType(1);c=Zm(b,3,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:c,responseConstructor:null})};
TK.prototype.getDescendants=function(a){var b=a.issueIds,c=a.relationshipType,d=a.includeArchived,e=a.depthLimit;a=a.prefixSizeLimit;b=fIb(eIb(dIb(new RK,b).setRelationshipType(c).setIncludeArchived(d),e),a);return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:gIb}).pipe(C(function(f){var h=new Map;f=rj(f,1,PK);f=n(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=n(k.value);k=q.next().value;q=q.next().value;h.set(String(k),q)}return h}))};
TK.\u0275fac=function(a){return new (a||TK)(p(lH))};TK.\u0275prov=Hc({token:TK,factory:TK.\u0275fac,providedIn:"root"});
var UK={},lIb=(UK.BUG="BUG",UK.FEATURE_REQUEST="FEATURE_REQUEST",UK.CUSTOMER_ISSUE="CUSTOMER_ISSUE",UK.INTERNAL_CLEANUP="INTERNAL_CLEANUP",UK.PROCESS="PROCESS",UK.VULNERABILITY="VULNERABILITY",UK.PRIVACY_ISSUE="PRIVACY_ISSUE",UK.EPIC="STORY",UK.STORY="TASK",UK.TASK="TASK",UK.PROJECT="TASK",UK.FEATURE="TASK",UK.MILESTONE="TASK",UK);
var VK=function(a,b,c){HJ.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=Ri;this.activeMoveOperation$=new W.BehaviorSubject(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=ava(function(e,f){return mIb(d,e,f)});this.assignParentToOneIssue=function(e,f){return mIb(d,String(e),[{issueId:f}])};
this.moveChildrenInAPI=$ua(function(e){return d.moveChildrenInAPISequentially(e)});this.moveChildrenInAPISequentially=ava(function(e){var f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca,Za;return Pe(function(Da){switch(Da.nextAddress){case 1:h=fva(e);if(0===h.length)return Da.return();k=h.map(function(Ab){return Ab.issues.map(function(Qa){return Qa.parentId})}).flat();q=h.map(function(Ab){return Ab.newParentId});t=Wj([].concat(r(k),r(q)),Vj);x=n(t);for(y=x.next();!y.done;y=x.next())F=
y.value,d.setIsSaving(F);Qe(Da,2);K=n(h);J=K.next();case 4:if(J.done){Wu(Da,3);break}R=J.value;S={};aa=n(R.newRelations);ba=aa.next();case 7:if(ba.done){J=K.next();Da.jumpTo(4);break}S.$jscomp$loop$prop$newRelation$1934=ba.value;ka=R.issues.find(function(Ab){return function(Qa){return Qa.issueId===Ab.$jscomp$loop$prop$newRelation$1934.targetIssueId}}(S)).parentId;if(R.newParentId===ka)return Aa=void 0,Re(Da,(0,W.firstValueFrom)(d.issueRelationshipService.update(R.newParentId,1,NK(RHb(new MK,null!=
(Aa=$l(S.$jscomp$loop$prop$newRelation$1934.afterIssueId))?Aa:0),Number(S.$jscomp$loop$prop$newRelation$1934.targetIssueId)))),8);wa=void 0;return Re(Da,(0,W.firstValueFrom)(d.issueRelationshipService.create(R.newParentId,1,NK(RHb(new MK,null!=(wa=$l(S.$jscomp$loop$prop$newRelation$1934.afterIssueId))?wa:0),Number(S.$jscomp$loop$prop$newRelation$1934.targetIssueId)))).catch(function(Ab){var Qa,$a;if(!(null==Ab?0:null==(Qa=Ab.error)?0:null==($a=Qa.details)?0:$a.includes("ALREADY_EXISTS")))throw Ab;
}),12);case 12:return Re(Da,(0,W.firstValueFrom)(d.issueRelationshipService.delete(ka,1,S.$jscomp$loop$prop$newRelation$1934.targetIssueId)),8);case 8:S={$jscomp$loop$prop$newRelation$1934:S.$jscomp$loop$prop$newRelation$1934};ba=aa.next();Da.jumpTo(7);break;case 2:f=Ka=Ue(Da);case 3:Ja=d.activeMoveOperation$.value;Jb=n(e.map(function(Ab){return Ab.eventTimestamps}).flat());for(ub=Jb.next();!ub.done;ub=Jb.next())fb=ub.value,Ja.delete(fb);d.activeMoveOperation$.next(Ja);pa=n(t);for(y=pa.next();!y.done;y=
pa.next())xa=y.value,d.clearIsSaving(xa);Promise.all(t.map(function(Ab){return d.poke(Ab)}));Ca=n(h);for(J=Ca.next();!J.done;J=Ca.next())Za=J.value,f&&Za.done.reject(f),Za.done.resolve();Ve(Da)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};X(VK,HJ);
VK.prototype.fetchOne=function(a){var b=this;return nIb(this,function(){return b.issueRelationshipService.list(a,1).pipe(C(function(c){return{issueId:a,relatedChildren:c.map(dsa),totalChildCount:c.length}}),nf(function(c){return Wn(c)&&403===c.status?(0,W.of)(void 0):(0,W.throwError)(c)}))})};
VK.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(r(null!=(c=a.ids)?c:[]));return 0===d.length?(0,W.of)({results:[]}):nIb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:1,includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(C(gta),C(function(e){return{results:e}}))});default:Ai(a.type)}};VK.prototype.copy=function(a){return a&&Si(a)};
var nIb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(hf(function(d){return 0===d.size}),Df(function(){return b()}),Df(function(d){return 0===a.activeMoveOperation$.value.size?(0,W.of)(d):c()}),sf())};return c()},oIb=function(a,b){return a.watch(b).pipe(Df(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,W.of)(c):a.watch(b,{trustMemory:!1})}))},pIb=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
VK.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return Pe(function(f){switch(f.nextAddress){case 1:IJ(d.issueFridge,b,function(h){--h.childIssueCount});IJ(d,b,function(h){var k=h.relatedChildren;h.relatedChildren=eva(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();Qe(f,2);return Re(f,(0,W.firstValueFrom)(d.issueRelationshipService.delete(b,1,a)),4);case 4:Wu(f,0);break;case 2:return e=Ue(f),Re(f,d.poke(b),5);case 5:throw e;}})};
var mIb=function(a,b,c){var d,e,f,h,k,q,t,x,y,F;return Pe(function(K){switch(K.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return K.return({added:d,notAdded:e});h=qIb(a,b);k=c.map(function(J,R){var S="-1"===J.afterIssueId?h:J.afterIssueId;return{targetIssueId:J.issueId,afterIssueId:R?c[R-1].issueId:S}});rIb(a,b,k);q=n(k);t=q.next();case 2:if(t.done){K.jumpTo(4);break}x=t.value;Qe(K,5);y=void 0;return Re(K,(0,W.firstValueFrom)(a.issueRelationshipService.create(b,1,NK(RHb(new MK,null!=(y=$l(x.afterIssueId))?
y:0),Number(x.targetIssueId)))),7);case 7:d.push(x.targetIssueId);Wu(K,3);break;case 5:F=Ue(K);if(!Wn(F))throw F;f.push(F);e.push(x.targetIssueId);case 3:t=q.next();K.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFridge.poke(b)]),K.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},rIb=function(a,b,c){var d=0;IJ(a,b,function(e){var f=dva(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});IJ(a.issueFridge,
b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},sIb=function(a,b,c){var d,e,f,h,k,q,t,x,y,F,K,J;return Pe(function(R){if(1==R.nextAddress)return d=[],e=[],f=[],0===c.length?R.return({added:d,notAdded:e}):Re(R,Promise.allSettled(c.map(function(S){return(0,W.firstValueFrom)(a.issueRelationshipService.create(S,1,NK(RHb(new MK,Number(qIb(a,S))),Number(b))))})),2);h=R.yieldResult;k=n(h.entries());for(q=k.next();!q.done;q=k.next())t=q.value,x=n(t),y=x.next().value,F=x.next().value,K=y,J=F,"fulfilled"===
J.status&&d.push(c[K]),"rejected"===J.status&&(e.push(c[K]),f.push(J.reason));Promise.all(c.map(function(S){return a.poke(S)}));return R.return({added:d,notAdded:e,errors:f})})},tIb=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f={},h=n(c),k=h.next();!k.done;f={$jscomp$loop$prop$issue$1936:f.$jscomp$loop$prop$issue$1936},k=h.next())f.$jscomp$loop$prop$issue$1936=k.value,IJ(a,f.$jscomp$loop$prop$issue$1936.parentId,function(aa){return function(ba){ba.relatedChildren=
eva(ba.relatedChildren,aa.$jscomp$loop$prop$issue$1936.issueId);--ba.totalChildCount}}(f));var q=void 0,t;if(null==(t=b.position)?0:t.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 F,K;f=null!=(K=null==(F=a.memory.getData(d))?void 0:F.relatedChildren)?K:[];F=n(f.entries());for(K=F.next();!K.done;K=F.next())if(h=n(K.value),K=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=
void 0;q=null==(b=f[K-1])?void 0:b.targetIssueId;break}}}}var J=c.map(function(aa,ba){return{targetIssueId:aa.issueId,afterIssueId:ba?c[ba-1].issueId:q}});void 0!==sGb(a,d)?IJ(a,d,function(aa){aa.relatedChildren=dva(aa.relatedChildren,J);aa.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:dva([],J),totalChildCount:J.length});b=new joa;var R,S;a.moveChildrenInAPI({newParentId:d,newRelations:J,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(S=null==
(R=a.memory.getData(d))?void 0:R.relatedChildren)?S:[],done:b});return b.promise},qIb=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"};VK.\u0275fac=function(a){return new (a||VK)(p(TK),p(FK),p(DK))};VK.\u0275prov=Hc({token:VK,factory:VK.\u0275fac,providedIn:"root"});
var WK=function(a){JJ.call(this);this.observableAccessResources=a;this.recordType="permissions"};X(WK,JJ);WK.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(C(function(b){return n(b).next().value}))};
WK.prototype.fetchSet=function(a){for(var b=[],c=n(a),d=c.next();!d.done;d=c.next())d=d.value,b.push(["admin",d]),b.push(["writer",d]),b.push(["appender",d]),b.push(["reader",d]);c=b.map(function(e){return e[0]});b=b.map(function(e){return e[1]});return this.observableAccessResources.bulkGetUserAccess(c,b).pipe(C(function(e){return a.map(function(f){return Object.assign({},e[f],{id:f})})}))};WK.\u0275fac=function(a){return new (a||WK)(p(VJ))};WK.\u0275prov=Hc({token:WK,factory:WK.\u0275fac,providedIn:"root"});
var uIb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new AI(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};uIb.prototype.get=function(a){var b=this;return new W.Observable(function(c){var d=b.lruCache.get(a);d||(d=vIb(b,a));return d.obs$.subscribe(c)})};
var vIb=function(a,b){var c=a.rawGet(b).pipe(Af({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 wIb(c,d);a.lruCache.set(b,c);return c},wIb=function(a,b){this.obs$=a;this.subscription=b};
var yIb=function(a){Y.call(this,a,-1,xIb)};X(yIb,Y);var zIb=function(a,b){return Zm(a,1,b)},xIb=[1];yIb.messageId="b.BatchChildTeamsRequest";
var AIb=function(a){Y.call(this,a)};X(AIb,Y);g=AIb.prototype;g.getId=function(){return uj(this,1)};g.setId=function(a){return m(this,1,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return m(this,2,a)};g.hasName=function(){return Oi(this,2)};g.getNameOrUndefined=function(){return vv(this,2)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return m(this,3,a)};g.hasDescription=function(){return Oi(this,3)};
var CIb=function(a){Y.call(this,a,-1,BIb)};X(CIb,Y);var BIb=[1];
var DIb=function(a){Y.call(this,a)};X(DIb,Y);DIb.messageId="b.BatchChildTeamsResponse";
var XK=function(a){Y.call(this,a)};X(XK,Y);XK.messageId="b.BatchGetTeamsResponse";
var YK=function(a){Y.call(this,a,-1,EIb)};X(YK,Y);YK.prototype.getTeamSuggestionsList=function(){return Nb(this,VEb,1)};YK.prototype.setTeamSuggestionsList=function(a){Mb(this,1,a)};var EIb=[1];YK.messageId="b.TeamSuggestionResult";
var ZK=function(a){Y.call(this,a)};X(ZK,Y);ZK.prototype.getTeamId=function(){return uj(this,1)};ZK.prototype.setTeamId=function(a){return m(this,1,a)};ZK.messageId="b.UpdateTeamSloRequest";
var $K=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 uIb(function(e){return d.batchAdaptedGet(e)},100)};$K.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:NI})};$K.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var FIb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,W.forkJoin)(b).pipe(C(function(c){var d=new XK;c=n(c);for(var e=c.next();!e.done;e=c.next())e=e.value,rj(d,1,NI).set(e.getTeamId(),e);return d}))};
$K.prototype.getChildTeams=function(a){a=zIb(new yIb,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:DIb}).pipe(C(function(b){b=[].concat(r(rj(b,1,CIb).entries()));return new Map(b.map(function(c){var d=n(c);c=d.next().value;d=d.next().value;return[c,Nb(d,AIb,1)]}))}))};
var aL=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:YK})},GIb=function(a){return aL(a,"").pipe(C(function(b){return b.getTeamSuggestionsList().map(Asa)}))},HIb=function(a,b,c){return"0"===b?(0,W.of)(!1):a.memoizingTeamStateMap.get(b).pipe(C(function(d){return void 0!==d.getMembersList().find(function(e){return e&&Ul(e.getUser())===c})}))},IIb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),
view:"full"}},responseConstructor:XK}).pipe(nf(function(){return(0,W.of)(new XK)}),C(function(c){return new Map(Array.from(rj(c,1,NI).entries()).map(function(d){var e=n(d);d=e.next().value;e=e.next().value;return[d,Aj(e,9)]}))}))};$K.prototype.updateTeam=function(a){return this.executor.post({url:"action/teams/"+a.getTeamId(),body:a,responseConstructor:NI})};$K.\u0275fac=function(a){return new (a||$K)(p(lH),p(bL),p(WJ))};$K.\u0275prov=Hc({token:$K,factory:$K.\u0275fac,providedIn:"root"});
var bL=function(a){this.executor=a};bL.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(r(a)).join(",")}},responseConstructor:XK}).pipe(nf(function(){return(0,W.of)(new XK)}))};bL.prototype.split=function(a,b){return rj(b,1,NI).get(a)||new NI};bL.\u0275fac=function(a){return new (a||bL)(p(lH))};bL.\u0275prov=Hc({token:bL,factory:bL.\u0275fac,providedIn:"root"});
var cL=function(a){HJ.call(this);this.teamsApi=a;this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(b){var c;return null!=(c=b.teamId)?c:"NO_ID"}};X(cL,HJ);cL.prototype.fetchAll=function(a){if(a.myTeams)return GIb(this.teamsApi).pipe(C(function(b){b=void 0===b?[]:b;return{results:b}}));throw Error("Jc");};cL.\u0275fac=function(a){return new (a||cL)(p($K))};cL.\u0275prov=Hc({token:cL,factory:cL.\u0275fac,providedIn:"root"});
var dL=function(a){JJ.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.getTeamId()}};X(dL,JJ);dL.prototype.fetchOne=function(a){return"0"===a?(0,W.of)(void 0):this.teamsApi.getTeam(a).pipe(nf(function(){return(0,W.of)(void 0)}))};dL.prototype.fetchSet=function(a){var b=this;return(0,W.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(fm)}))};dL.\u0275fac=function(a){return new (a||dL)(p($K))};
dL.\u0275prov=Hc({token:dL,factory:dL.\u0275fac,providedIn:"root"});
var eL=function(a,b){Z.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new W.BehaviorSubject({})};X(eL,Z);eL.\u0275dir=Z.\u0275dir;
var KIb=function(a){a.activatedRoute.queryParams.pipe(Ef(a.destroyed$)).subscribe(function(b){JIb(a,a.routeParams$.value,b)});a.router.events.pipe(hf(function(b){return b instanceof Tk}),C(function(b){return b}),Ef(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);JIb(a,c,b.queryParams)})},fL=function(a,b){return a.routeParams$.pipe(C(function(c){return c[b]}))},JIb=function(a,b,c){for(var d=n(Object.keys(a.params)),e=
d.next();!e.done;e=d.next())delete a.params[hva(e.value)];a.routeParams$.next(b);c=n(Object.entries(c));for(d=c.next();!d.done;d=c.next())e=n(d.value),d=e.next().value,e=e.next().value,a.params[hva(d)]=e;b=n(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=n(c.value),c=d.next().value,d=d.next().value,a.params[hva(c)]=d};eL.\u0275fac=function(a){return new (a||eL)(p(fl),p(Fk))};eL.\u0275prov=Hc({token:eL,factory:eL.\u0275fac,providedIn:"root"});
var gL=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.paramsService=f;this.activatedRoute=h;this.id$=fL(this.paramsService,"issueId").pipe(rf());this.urlComment$=this.activatedRoute.fragment.pipe(C(Yva),Af({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(Df(function(q){return JK(k.issueFetchResponseFridge,q)}),Af({refCount:!0,bufferSize:1}));this.issueJs$.pipe(C(function(q){return null==
q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(Df(this.eventsForIssue.watch),C(function(q){var t;return null!=(t=null==q?void 0:q.events)?t:[]}));this.starred$=this.issueJs$.pipe(C(iva));this.lastViewedTimeMicros$=this.issueJs$.pipe(C(jva));this.lastViewedTimeMicros$.pipe(C(function(q){return!q}));this.issueJs$.pipe(C(kva));this.issueJs$.pipe(C(Dva));(0,W.merge)(this.issueJs$.pipe(C(function(q){return null==q?void 0:q.firstEvent}),hf(fm),C(function(q){return[q]})),this.eventsJs$).pipe(Zga(function(q,
t){t=t.flatMap(function(y){return y.attachments});t=n(t);for(var x=t.next();!x.done;x=t.next())x=x.value,null!=x.attachmentId&&(q[x.attachmentId]=x);return q},{}));this.issueJs$.pipe(C(Eva));this.issueJs$.pipe(C(Fva));this.status$=this.issueJs$.pipe(C(lva));this.priority$=this.issueJs$.pipe(C(mva));this.assignee$=this.issueJs$.pipe(C(nva));this.issueJs$.pipe(C(ova));this.teamId$=this.issueJs$.pipe(C(pva));this.team$=this.teamId$.pipe(Df(this.teamFridge.watch),Af({refCount:!0,bufferSize:1}));this.ccUsers$=
this.issueJs$.pipe(C(rva));this.collaboratorsUsers$=this.issueJs$.pipe(C(sva));this.issueJs$.pipe(C(function(q){var t,x;return null!=(x=null==(t=lo(q))?void 0:t.severity)?x:void 0}));this.type$=this.issueJs$.pipe(C(tva));this.issueJs$.pipe(C(uva));this.issueJs$.pipe(C(vva));this.issueJs$.pipe(C(wva));this.postmortems$=this.issueJs$.pipe(C(xva));this.postmortems$.pipe(C(function(q){return 0<q.length}));this.issueJs$.pipe(C(yva));this.effort$=this.issueJs$.pipe(C(zva));this.isDeleted$=this.issueJs$.pipe(C(Hva));
this.accessLevel$=this.issueJs$.pipe(C(Jva));this.customFieldDefs$=this.issueJs$.pipe(C(Ava));this.customFieldValues$=this.issueJs$.pipe(C(Bva));this.modifiedTime$=this.issueJs$.pipe(C(Kva));this.retention$=this.issueJs$.pipe(C(Mva));this.retention=function(){return nl(k.retention$)};this.retentionState$=this.issueJs$.pipe(C(Pva));this.retentionState=function(){return nl(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(C(Nva));this.canonicalIssue$=this.canonicalIssueId$.pipe(Df(this.issueFridge.watch));
this.sloStatus$=this.issueJs$.pipe(C(Qva));this.sloId$=this.issueJs$.pipe(C(Rva));this.createdTimeMicros$=this.issueJs$.pipe(C(Sva));this.visibleFields$=this.issueJs$.pipe(C(Cva));this.visibleCustomFieldIds$=this.visibleFields$.pipe(C(Xva));this.customFieldEntries$=(0,W.combineLatest)([this.customFieldDefs$,this.customFieldValues$]).pipe(C(function(q){var t=n(q);q=t.next().value;t=t.next().value;var x=new Map(t.map(function(y){return[y.customFieldId,y]}));return q.map(function(y){var F=y.customFieldId,
K={customFieldId:F},J;F=null!=(J=x.get(F))?J:K;return{def:y,value:F}})}));(0,W.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(C(function(q){q=n(q);var t=q.next().value,x=q.next().value;return t.filter(function(y){return x.has(String(y.def.customFieldId))})}));(0,W.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(C(function(q){q=n(q);var t=q.next().value,x=q.next().value;return t.filter(function(y){return!x.has(String(y.def.customFieldId))})}));
this.componentId$=this.issueJs$.pipe(C(qva));this.component$=this.componentId$.pipe(Df(this.componentFridge.watch));this.teamSuggestions$=this.component$.pipe(C(Tva));this.effortSpec$=this.component$.pipe(C(Uva));this.isEffortEnabled$=this.component$.pipe(C(Vva));this.component$.pipe(C(Wva));this.thinking$=this.issueFetchResponseFridge.thinking$};gL.\u0275fac=function(a){return new (a||gL)(p(IK),p(FK),p(dL),p(ZJ),p(hK),p(eL),p(Fk))};gL.\u0275prov=Hc({token:gL,factory:gL.\u0275fac,providedIn:"root"});
var LIb={admin:!1,writer:!0,appender:!0,reader:!0},iL=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("^"+Do(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(Df(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,W.of)(void 0)}),C(function(k){return null!=k?k:LIb}),Cf(LIb),Af({bufferSize:1,refCount:!1}));this.hasAclToEdit$=this.issuePermissions$.pipe(C(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!nl(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(C(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!nl(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(C(function(k){return!!k.admin}));this.hasAclToAdmin=function(){return!!nl(h.hasAclToAdmin$)};
this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(C(function(k){return k.some(function(q){return hL(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!nl(h.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(C(function(k){return k.some(function(q){return hL(h,q.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!nl(h.isCurrentUserCollaborator$)};this.isAllowedToEditCC$=this.hasAclToEdit$;this.addMeToCcDisabledReason$=
(0,W.combineLatest)([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(C(function(k){var q=n(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(rf(),Df(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,W.of)(!1)}),nf(function(k){if(403===k.status)return(0,W.of)(!0);h.errorHandler.errorHandler(null,
k);return(0,W.of)(!1)}),Af({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!nl(h.isImplicitAccessEnabled$)};this.showImplicitAccessIndicator$=(0,W.combineLatest)([this.hasAclToEdit$,this.isImplicitAccessEnabled$]).pipe(C(function(k){var q=n(k);k=q.next().value;q=q.next().value;return k&&q}));this.showImplicitAccessIndicator=function(){return!!nl(h.showImplicitAccessIndicator$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,W.combineLatest)([this.issueDetailsBrain.isDeleted$,
this.canDeleteIssue$]).pipe(C(function(k){var q=n(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(rf(),Df(function(k){return k?TJ(h.userAccess,"admin","components/"+k):(0,W.of)(!1)}),nf(function(k){h.errorHandler.errorHandler(null,k);return(0,W.of)(!1)}),Af({bufferSize:1,refCount:!1}));this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return nl(h.accessLevel$)};this.isWithinExternalComponent$=this.accessLevel$.pipe(C(function(k){return!(!k||
"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(C(function(k){return k?2:1}));this.audience=function(){return nl(h.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return nl(h.canChangeCommentRetention$)}},hL=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},MIb=function(a,b){return fo(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||Ql(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&
a.hasAclToComment()?!0:!1:!1},NIb=function(a,b){return fo(b)&&"ACTIVE"===b.commentDeletionStatus?Ul(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
iL.prototype.canEditComment$=function(a){var b=this;return(0,W.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(C(function(c){var d=n(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&&Ul(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
iL.\u0275fac=function(a){return new (a||iL)(p(gL),p(WK),p(NG),p(OJ),p(xJ),p(SJ))};iL.\u0275prov=Hc({token:iL,factory:iL.\u0275fac,providedIn:"root"});
var $va=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),Zva=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])?$"),bwa=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];
var jL=function(){this.transform=cwa};jL.\u0275fac=function(a){return new (a||jL)};jL.\u0275pipe=$c({name:"toNewEmailPreference",type:jL,pure:!0});var kL=function(){this.transform=dwa};kL.\u0275fac=function(a){return new (a||kL)};kL.\u0275pipe=$c({name:"enumToHuman",type:kL,pure:!0});var lL=function(){this.transform=ewa};lL.\u0275fac=function(a){return new (a||lL)};lL.\u0275pipe=$c({name:"arrayToHuman",type:lL,pure:!0});var mL=function(){};mL.prototype.transform=function(a,b){return ck(fwa(a,b)).toString()};
mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275pipe=$c({name:"boldPrefixMatches",type:mL,pure:!0});var nL=function(){this.transform=gwa};nL.\u0275fac=function(a){return new (a||nL)};nL.\u0275pipe=$c({name:"yesNo",type:nL,pure:!0});var oL=function(){this.transform=hwa};oL.\u0275fac=function(a){return new (a||oL)};oL.\u0275pipe=$c({name:"componentPath",type:oL,pure:!0});var pL=function(){this.transform=iwa};pL.\u0275fac=function(a){return new (a||pL)};
pL.\u0275pipe=$c({name:"teamPath",type:pL,pure:!0});var qL=function(){this.transform=jwa};qL.\u0275fac=function(a){return new (a||qL)};qL.\u0275pipe=$c({name:"humanFileSize",type:qL,pure:!0});var rL=function(){this.transform=kwa};rL.\u0275fac=function(a){return new (a||rL)};rL.\u0275pipe=$c({name:"omitObfuscatedEmail",type:rL,pure:!0});var sL=function(){this.transform=Go};sL.\u0275fac=function(a){return new (a||sL)};sL.\u0275pipe=$c({name:"toString",type:sL,pure:!0});
var tL=function(){this.transform=lwa};tL.\u0275fac=function(a){return new (a||tL)};tL.\u0275pipe=$c({name:"csv",type:tL,pure:!0});var OIb=new Map([["(",")"],[")","("],["{","}"],["}","{"],["[","]"],["]","["],["<",">"],[">","<"]]),uL=function(){};uL.prototype.transform=function(a){return null==a?void 0:a.split("").reverse().map(function(b){var c;return null!=(c=OIb.get(b))?c:b}).join("")};uL.\u0275fac=function(a){return new (a||uL)};uL.\u0275pipe=$c({name:"reverse",type:uL,pure:!0});var vL=function(){};
vL.\u0275fac=function(a){return new (a||vL)};vL.\u0275mod=Yc({type:vL});vL.\u0275inj=Ic({});
var wL=function(a,b,c,d){Z.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(rf(Ri),Df(function(f){return e.onRouteParamsChanged(f)}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=zo(this.init)};X(wL,Z);wL.\u0275dir=Z.\u0275dir;wL.prototype.onRouteParamsChanged=function(a){return a.issueId?PIb(this,a.issueId):(0,W.of)()};
var PIb=function(a,b){return(0,W.combineLatest)([JK(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(Cf([]),C(function(c){c=n(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")}))};
wL.\u0275fac=function(a){return new (a||wL)(p(eL),p(IK),p(NJ),p(iL))};wL.\u0275prov=Hc({token:wL,factory:wL.\u0275fac,providedIn:"root"});
var QIb=function(a){Y.call(this,a)};X(QIb,Y);g=QIb.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getComment=function(){return Pi(this,2)};g.setComment=function(a){m(this,2,a)};g.getFormattingMode=function(){return qj(this,3,0)};g.setFormattingMode=function(a){m(this,3,a)};g.getContentJudgement=function(){return Ub(this,Om,4)};g.setContentJudgement=function(a){return Vb(this,4,a)};
var xL=function(a){Y.call(this,a)};X(xL,Y);xL.prototype.getType=function(){return qj(this,1,0)};xL.prototype.setType=function(a){return m(this,1,a)};xL.prototype.hasType=function(){return nj(this,1)};xL.messageId="b.ListCommentReactionRespondersRequest";
var Tn=function(a){Y.call(this,a)};X(Tn,Y);Tn.prototype.getCreatedTime=function(){return Ub(this,Cj,2)};Tn.messageId="b.CommentReactionResponder";
var yL=function(a){Y.call(this,a,-1,RIb)};X(yL,Y);yL.prototype.getNextPageToken=function(){return Pi(this,2)};yL.prototype.getTotalSize=function(){return Ji(this,3)};var RIb=[1];yL.messageId="b.ListCommentReactionRespondersResponse";
var TIb=function(a){Y.call(this,a,-1,SIb)};X(TIb,Y);TIb.prototype.getIssueCommentsList=function(){return Nb(this,ZI,1)};var SIb=[1];TIb.messageId="b.ListIssueCommentHistoryResponse";
var UIb=function(a){Y.call(this,a)};X(UIb,Y);g=UIb.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getCommentNumber=function(){return Ji(this,2)};g.setCommentNumber=function(a){return m(this,2,a)};g.getComment=function(){return Pi(this,3)};g.setComment=function(a){m(this,3,a)};g.getFormattingMode=function(){return qj(this,4,0)};g.setFormattingMode=function(a){m(this,4,a)};
var zL=function(){};zL.\u0275fac=function(a){return new (a||zL)};zL.\u0275prov=Hc({token:zL,factory:zL.\u0275fac,providedIn:"root"});var AL=function(a){this.executor=a};g=AL.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(Ara(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:ZI}).pipe(C(qta))};
g.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);e=new QIb;e.setIssueId(a);e.setComment(b);e.setFormattingMode(Pn(c));e.setContentJudgement(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 UIb;e.setIssueId(a);e.setCommentNumber(b);e.setComment(c);e.setFormattingMode(Pn(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:ZI}).pipe(C(qta))};g.listHistory=function(a,b){return this.executor.get({url:"action/issues/"+a+"/comment/"+b+"/history",responseConstructor:TIb}).pipe(C(rta))};
g.updateCommentReaction=function(a){var b=a.issueId,c=a.commentId,d=a.reactionType,e=a.hasReacted,f;a=new In;d=(new Sn).setType(null!=(f=AAb[d])?f:0);f=m(d,1,e);f=rq(a,1,Sn,f);return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:In}).pipe(C(fta))};
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 xL).setType(null!=(f=AAb[d])?f:0);f=m(d,2,a);e&&m(f,3,e);return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/listReactionResponders",body:f,responseConstructor:yL}).pipe(C(vta))};AL.\u0275fac=function(a){return new (a||AL)(p(lH))};AL.\u0275prov=Hc({token:AL,factory:AL.\u0275fac,providedIn:"root"});
var BL=function(a){this.observableApi=a};X(BL,zL);g=BL.prototype;g.get=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.get(a,b,c))};g.create=function(a,b,c,d,e){return(0,W.firstValueFrom)(this.observableApi.create(a,b,c,d,e))};g.update=function(a,b,c,d,e){return(0,W.firstValueFrom)(this.observableApi.update(a,b,c,d,e))};g.delete=function(a,b,c,d){return(0,W.firstValueFrom)(this.observableApi.delete(a,b,c,d))};
g.undelete=function(a,b,c){return(0,W.firstValueFrom)(this.observableApi.undelete(a,b,c))};g.listHistory=function(a,b){return(0,W.firstValueFrom)(this.observableApi.listHistory(a,b))};g.updateCommentReaction=function(a){return(0,W.firstValueFrom)(this.observableApi.updateCommentReaction(a))};g.listCommentReactionResponders=function(a){return(0,W.firstValueFrom)(this.observableApi.listCommentReactionResponders(a))};BL.\u0275fac=function(a){return new (a||BL)(p(AL))};
BL.\u0275prov=Hc({token:BL,factory:BL.\u0275fac,providedIn:"root"});
var CL=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(VIb(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(),
WIb(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);VIb(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();WIb(this);XIb(this)};CL.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
CL.prototype.stop=function(){this.state=2;WIb(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 XIb=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)}};
CL.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 WIb=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"},VIb=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};CL.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};
var YIb=function(a){this.element=a;this.bugs=[]};YIb.prototype.start=function(){for(var a=this,b=0;3>b;b++)ZIb(this);this.intervalSubscription=(0,W.interval)(1E4).subscribe(function(){ZIb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};YIb.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=n(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};
var ZIb=function(a){var b=new CL(a.element);b.start();a.bugs.push(b)};
var DL=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new W.ReplaySubject(1);this.active$=new W.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new YIb(d.nativeElement);this.active$.pipe(Ef(this.destroyed$),rf()).subscribe(function(f){f?$Ib(e):aJb(e)})};DL.prototype.ngOnInit=function(){"visible"===document.visibilityState&&bJb(this)};DL.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var bJb=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};DL.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),bJb(this))};DL.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var aJb=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()})},$Ib=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};
DL.\u0275fac=function(a){return new (a||DL)(B(Mf),B(aI),B(rJ),B(Rd))};
DL.\u0275cmp=u({type:DL,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&M("click",function(){return b.onUserEvent()},!1,Ud)("keydown",function(){return b.onUserEvent()},!1,Ud)("mousemove",function(){return b.onUserEvent()},!1,Ud)("wheel",function(){return b.onUserEvent()},!1,Ud)("touchstart",function(){return b.onUserEvent()},!1,Ud)("focus",function(){return b.onUserEvent()},!1,Ud)("visibilitychange",function(){return b.onVisibilityChange()},!1,$da)},decls:0,vars:0,template:function(){},
encapsulation:2});
var EL=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(C(function(d){return(d.enableBugScreensaver||!1)&&c}))};EL.\u0275fac=function(a){return new (a||EL)(B(aI),B(NG))};EL.\u0275cmp=u({type:EL,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(P(0,mwa,1,0,"bug-screensaver",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.isEnabled$))},dependencies:[gy,DL,ny],encapsulation:2});
var cJb=["button"],FL=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new sx};FL.prototype.onClick=function(a){this.onAction.emit(a)};FL.prototype.focus=function(){this.nativeButton.focus()};FL.\u0275fac=function(a){return new (a||FL)};
FL.\u0275cmp=u({type:FL,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&zg(cJb,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&&(fg(),P(0,nwa,1,0,"ng-template",null,0,Hg),I(2,1),P(3,pwa,3,7,"button",2),P(4,rwa,3,7,"button",3),P(5,twa,3,7,"button",4),P(6,vwa,3,7,"button",5),P(7,xwa,3,7,"button",6),L());a&2&&(A(2),D("ngSwitch",b.format),A(1),D("ngSwitchCase","hairline"),A(1),D("ngSwitchCase","flat"),A(1),D("ngSwitchCase","fill"),A(1),D("ngSwitchCase","icon"))},dependencies:[pC,tF,ey,my,iy,jy,ky],encapsulation:2,changeDetection:0});
var GL=function(){};GL.\u0275fac=function(a){return new (a||GL)};GL.\u0275mod=Yc({type:GL});GL.\u0275inj=Ic({imports:[AF,uG,vy]});
var HL=function(){};HL.\u0275fac=function(a){return new (a||HL)};HL.\u0275mod=Yc({type:HL});HL.\u0275inj=Ic({imports:[vy,uF]});
var IL=function(){};IL.\u0275fac=function(a){return new (a||IL)};IL.\u0275mod=Yc({type:IL});IL.\u0275inj=Ic({imports:[vy,qJ,GL,HL]});
var JL=function(a){this.currentTracker=a;this.trackerName$=this.currentTracker.tracker$.pipe(C(function(b){var c;return null!=(c=null==b?void 0:b.name)?c:""}));this.trackerLogo$=this.currentTracker.tracker$.pipe(C(function(b){var c,d;return null!=(d=null==b?void 0:null==(c=b.branding)?void 0:c.logoUrl)?d:""}))};JL.\u0275fac=function(a){return new (a||JL)(B(LJ))};
JL.\u0275cmp=u({type:JL,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"]],template:function(a,b){a&1&&(P(0,ywa,15,6,"footer",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.currentTracker.inTracker$))},dependencies:[gy,ny],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 KL=function(){};KL.\u0275fac=function(a){return new (a||KL)};KL.\u0275mod=Yc({type:KL});KL.\u0275inj=Ic({imports:[vy]});
var LL=function(){};LL.\u0275fac=function(a){return new (a||LL)};LL.\u0275cmp=u({type:LL,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[DH],encapsulation:2});
var ML=function(){};ML.\u0275fac=function(a){return new (a||ML)};ML.\u0275cmp=u({type:ML,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"b-ng2-router-outlet")},dependencies:[LL],encapsulation:2});
var NL=function(){};NL.\u0275fac=function(a){return new (a||NL)};NL.\u0275mod=Yc({type:NL});NL.\u0275inj=Ic({imports:[vy,UH]});
var OL=function(a,b,c){Z.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new W.BehaviorSubject(null);this.hotlistIdOverride$=new W.BehaviorSubject(null);this.routeIssueId$=fL(this.paramsService,"issueId").pipe(rf());this.routeComponentId$=fL(this.paramsService,"componentId").pipe(rf());this.routeHotlistId$=fL(this.paramsService,"hotlistId").pipe(rf());this.issueId$=this.routeIssueId$.pipe(C(Awa),Af({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=
this.issueId$.pipe(Df(function(e){return e?JK(d.issueFetchResponseFridge,e):(0,W.of)(void 0)}),C(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,W.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(C(function(e){var f=n(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),C(zwa),rf(),Af({refCount:!0,bufferSize:1}));this.hotlistId$=(0,W.combineLatest)([this.hotlistIdOverride$,
this.routeHotlistId$]).pipe(C(function(e){var f=n(e);e=f.next().value;f=f.next().value;return e||f}),C(zwa),rf(),Af({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null)}))};X(OL,Z);OL.\u0275dir=Z.\u0275dir;OL.prototype.getComponentId=function(){return this.componentId$};OL.prototype.getIssueId=function(){return this.issueId$};OL.prototype.getHotlistId=function(){return this.hotlistId$};
OL.\u0275fac=function(a){return new (a||OL)(p(ZH),p(eL),p(IK))};OL.\u0275prov=Hc({token:OL,factory:OL.\u0275fac,providedIn:"root"});
var PL=function(){this.segments=[];this.clickMain=new sx;this.clickSegment=new sx};PL.prototype.ngOnInit=function(){};ni.Object.defineProperties(PL.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});PL.\u0275fac=function(a){return new (a||PL)};
PL.\u0275cmp=u({type:PL,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&&(E(0,"span",0)(1,"a",1),M("click",function(){return b.clickMain.emit(b.label)}),H(2,"mat-icon",2),Q(3),G(),P(4,Cwa,6,2,"ng-container",3),G());a&2&&(A(1),Zf("square-right",b.showMoreButton),Uf("href",b.href||void 0,le),A(1),D("svgIcon",b.icon),A(1),T(" ",b.label," "),A(1),D("ngIf",b.showMoreButton))},dependencies:[fy,gy,pC,qC,oF,mF,nF,yD],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)}\n/*# sourceMappingURL=fab_segmented.css.map */']});
var QL=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(Df(function(f){return f?e.componentFridge.watch(f):(0,W.of)(void 0)}),C(function(f){return f&&!f.archived?f:void 0}));this.visibleOptions$=(0,W.combineLatest)([this.currentTracker.tracker$,this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(qf(0),C(function(f){var h=n(f);
f=h.next().value;var k=h.next().value,q=h.next().value;h=h.next().value;return dJb(e,null!=f?f:void 0,k,q,h)}));this.buttonLabel$=this.visibleOptions$.pipe(C(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(C(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"}))};QL.prototype.ngOnInit=function(){};QL.prototype.trackClick=function(a){uo("create","click",a)};
var dJb=function(a,b,c,d,e){var f=new Map;b=b&&c&&!Ho(b.trackerId)&&b.trackerId!==c.trackerId;var h;c=null!=(h=null==c?void 0:c.componentId)?h:null;null!==e&&f.set("in_same_hotlist",a.paths.createIssue({hotlistIds:e}));b||null===c||f.set("in_same_component",a.paths.createIssue({component:c}));b||null===d||(f.set("similar_to_current_issue",a.paths.createIssue({template_issue:d})),f.set("blocked_by_current_issue",a.paths.createIssue({blockedByIssueIds:d,component:c})),f.set("blocking_current_issue",
a.paths.createIssue({blockingIssueIds:d,component:c})),f.set("parent_of_current_issue",a.paths.createIssue({childrenIssueIds:d,component:c})),f.set("child_of_current_issue",a.paths.createIssue({parentIssueId:d,component:c})));return[].concat(r(f.entries())).map(function(k){var q=n(k);k=q.next().value;q=q.next().value;return{name:dwa(k),path:q}})};QL.\u0275fac=function(a){return new (a||QL)(B(pI),B(OL),B(LJ),B(ZJ))};
QL.\u0275cmp=u({type:QL,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,Fwa,3,3,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.visibleOptions$))},dependencies:[gy,PL,ny],encapsulation:2,changeDetection:0});
var Lo=function(a){Y.call(this,a)};X(Lo,Y);g=Lo.prototype;g.getHotlistId=function(){return Hwa(this,1)};g.setHotlistId=function(a){um(this,1,Jo,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return m(this,2,a)};g.hasName=function(){return Oi(this,2)};g.getNameOrUndefined=function(){return vv(this,2)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return m(this,3,a)};g.hasDescription=function(){return Oi(this,3)};var Jo=[1,4];
var RL=function(a){Y.call(this,a,-1,eJb)};X(RL,Y);g=RL.prototype;g.getBookmarkGroupId=function(){return uj(this,1)};g.setBookmarkGroupId=function(a){m(this,1,a)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return m(this,2,a)};g.hasName=function(){return Oi(this,2)};g.getNameOrUndefined=function(){return vv(this,2)};g.getDescription=function(){return Pi(this,3)};g.setDescription=function(a){return m(this,3,a)};g.hasDescription=function(){return Oi(this,3)};
g.getArchived=function(){return oj(this,5)};g.setArchived=function(a){m(this,5,a)};g.getItemList=function(){return Nb(this,Lo,6)};g.setItemList=function(a){Mb(this,6,a)};g.addItem=function(a,b){return rq(this,6,Lo,a,b)};g.getAdminUsersList=function(){return Nb(this,Wl,9)};g.setAdminUsersList=function(a){Mb(this,9,a)};var eJb=[6,9];RL.messageId="b.BookmarkGroup";
var gJb=function(a){Y.call(this,a,-1,fJb)};X(gJb,Y);gJb.prototype.getBookmarkGroupsList=function(){return Nb(this,RL,1)};var fJb=[1];gJb.messageId="b.BookmarkGroupListResponse";
var SL=function(a){this.executor=a};SL.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:RL}).then(Ko).then(Io)};SL.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:gJb}).then(Kwa).then(Gwa)};SL.prototype.create=function(a){var b=new RL;b.setName(a.name);a.description&&b.setDescription(a.description);return this.executor.post({url:"action/bookmark_groups",body:b,responseConstructor:RL}).then(Ko).then(Io)};
SL.prototype.update=function(a){var b=new RL;b.setBookmarkGroupId(String(a.bookmarkGroupId));b.setName(a.name);a.description&&b.setDescription(a.description);b.setArchived(a.archived);var c;b.setItemList((null!=(c=a.item)?c:[]).map(Jwa));var d;b.setAdminUsersList((null!=(d=a.adminUsers)?d:[]).map(Yl));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:RL}).then(Ko).then(Io)};SL.\u0275fac=function(a){return new (a||SL)(p(mH))};
SL.\u0275prov=Hc({token:SL,factory:SL.\u0275fac,providedIn:"root"});
var TL=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};TL.\u0275fac=function(a){return new (a||TL)(B(EC),B(HC))};
TL.\u0275cmp=u({type:TL,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&&(E(0,"h1",0),Q(1),G(),H(2,"div",1),E(3,"div",2),P(4,Lwa,2,1,"button",3),E(5,"button",4),M("click",
function(){return b.dialogRef.close(!0)}),Q(6),G()());a&2&&(A(1),kg(b.data.title),A(1),D("innerHTML",b.data.content,ke),A(2),D("ngIf",b.showCancelButton),A(1),D("color",b.confirmButtonTheme),A(1),T(" ",b.confirmButtonText," "))},dependencies:[gy,pC,KC,LC,MC],encapsulation:2});var UL=function(a){this.dialog=a},hJb=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
UL.prototype.open=function(a){var b=a.onConfirm,c=a.onDismiss;CC(this.dialog.open(TL,{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()})};UL.\u0275fac=function(a){return new (a||UL)(p(IC))};UL.\u0275prov=Hc({token:UL,factory:UL.\u0275fac,providedIn:"root"});
var iJb=function(){};
var VL=function(a,b){this.router=a;this.location=b};X(VL,iJb);VL.prototype.reload=function(){var a=this,b=this.location.url();Rt(this.router,"/",{skipLocationChange:!0}).then(function(){return Rt(a.router,b,{skipLocationChange:!0})})};VL.\u0275fac=function(a){return new (a||VL)(p(fl),p(oI))};VL.\u0275prov=Hc({token:VL,factory:VL.\u0275fac,providedIn:"root"});
var jJb=new Md("Route",{factory:function(){return Rc(VL)}});
var WL=function(a,b,c,d,e,f,h,k,q,t){Z.call(this);var x=this;this.$route=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=t;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];kJb(this);lJb(this);this.fetchUserHotlists();a=function(){kJb(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(){lJb(x)}));a=function(){x.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};X(WL,Z);WL.\u0275dir=Z.\u0275dir;
var kJb=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=mJb(a,b.hotlists);a.sidebarData.bookmarkGroups=nJb(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=mJb(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=nJb(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},lJb=function(a){a.userApi.getUserSavedSearches().then(function(b){b=oJb(a,b);a.sidebarData.userSearches=b;za(a.userSavedSearches);
Ia(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};WL.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){pJb(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var mJb=function(a,b){return(b||[]).map(function(c){return qJb(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},nJb=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new rJb(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},oJb=function(a,b){return b.map(function(c){return{id:c.searchId,name:c.name,adminUsers:c.adminUsers,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return sJb(a.sidebarItemFactory,c)})},pJb=function(a,b){b=b.map(function(c){c={id: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 qJb(a.sidebarItemFactory,c)});za(a.userHotlists);Ia(a.userHotlists,b)};
WL.prototype.onAnchorClick=function(a,b){var c,d,e=null!=(d=null==(c=b.target)?void 0:c.innerText)?d:"";Mo(this.analytics,"nav","click",e.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(kJ(this.issuePagination),YDb(this.paths,a)&&this.$route.reload(),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};WL.\u0275fac=function(a){return new (a||WL)(p(jJb),p(NG),p(oK),p(xJ),p(oI),p(pI),p(iJ),p(XL),p(eJ),p(BK))};WL.\u0275prov=Hc({token:WL,factory:WL.\u0275fac,providedIn:"root"});
var YL=function(a,b,c,d,e,f,h,k){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()};YL.prototype.isEditable=function(){return tJb(this)};YL.prototype.isSelected=function(){return XDb(this.paths,this.href)};YL.prototype.isUnstarable=function(){return!tJb(this)&&this.starred};
var tJb=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},uJb=function(a,b){var c=bI(a.userPreferencesManager).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},vJb=function(a,b){vJ(a.butterBar,"Updating homepage...",0);CDb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(sf()).subscribe(function(){vJ(a.butterBar,"Homepage updated")})},wJb=function(a,b,c,d,e,f,h,k,q,t,x,y){YL.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=
f;this.errorHandler=t;this.confirmationDialogService=x;this.appEvents=y;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};X(wJb,YL);g=wJb.prototype;g.isPreferredHomepage=function(){return uJb(this,"HOTLIST")};g.setAsPreferredHomepage=function(){vJb(this,"HOTLIST")};
g.archive=function(){var a=this;vJ(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});vJ(a.butterBar,'Archived hotlist "'+a.name+'".');Mo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;vJ(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});vJ(a.butterBar,'Unarchived hotlist "'+a.name+'".');Mo(a.analytics,"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:Co("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;vJ(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){vJ(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var ZL=function(a,b,c,d,e,f,h,k){YL.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};X(ZL,YL);ZL.prototype.isUnstarable=function(){return!1};
ZL.prototype.unstar=function(){};ZL.prototype.isPreferredHomepage=function(){return uJb(this,"SAVED_SEARCH")};ZL.prototype.setAsPreferredHomepage=function(){vJb(this,"SAVED_SEARCH")};
var rJb=function(a,b,c,d,e,f,h,k,q,t,x,y){YL.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=t;this.confirmationDialogService=x;this.appEvents=y;this.items=[];a=n(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(qJb(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(sJb(this.sidebarItemFactory,b))}this.items.sort(function(F,K){return F.name.localeCompare(K.name)})};X(rJb,YL);g=rJb.prototype;
g.isPreferredHomepage=function(){return uJb(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){vJb(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;vJ(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});vJ(a.butterBar,'Archived bookmark group "'+a.name+'".');Mo(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;vJ(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});vJ(a.butterBar,'Unarchived bookmark group "'+a.name+'".');Mo(a.analytics,"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:Co("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;vJ(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){vJ(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var XL=function(a,b,c,d,e,f,h,k,q,t,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=t;this.appEvents=x},qJb=function(a,b){return new wJb(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},sJb=function(a,b){return new ZL(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};XL.\u0275fac=function(a){return new (a||XL)(p(NG),p(oK),p(SL),p(TI),p(xJ),p(pI),p(BK),p(uJ),p(aI),p(UL),p(eJ))};XL.\u0275prov=Hc({token:XL,factory:XL.\u0275fac,providedIn:"root"});
var $L=function(a){this.prefs=a;this.expanded=!0;this.content=this.header=null};$L.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!EDb(this.prefs,this.prefKey))};$L.prototype.onClick=function(){var a=this,b,c;return Pe(function(d){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(0);c={};return Re(d,(0,W.firstValueFrom)(DDb(a.prefs,(c[a.prefKey]=!b,c))),0)})};$L.\u0275fac=function(a){return new (a||$L)(B(aI))};
$L.\u0275cmp=u({type:$L,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&&(E(0,"div",0),M("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,Mwa,1,0,"ng-container",1),G(),P(2,Owa,2,1,"ng-container",2));a&2&&(Zf("opened",b.expanded)("closed",!b.expanded),Uf("aria-expanded",b.expanded),A(1),D("ngTemplateOutlet",b.header),A(1),D("ngIf",b.expanded))},dependencies:[gy,my],encapsulation:2});
var aM=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=aM.prototype;g.handleBookmarkGroupOpen=function(a){Mo(this.analytics,"sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){Mo(this.analytics,"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)};aM.\u0275fac=function(a){return new (a||aM)(B(oI),B(BK),B(pI),B(WL))};
aM.\u0275cmp=u({type:aM,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,dxa,7,2,"div",0);a&2&&D("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[fy,gy,yD,pC,oF,mF,nF,lF,$L],encapsulation:2,changeDetection:0});
var bM=function(){this.admins=[]};bM.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Rl(this.bookmarkGroup.adminUsers)};bM.\u0275fac=function(a){return new (a||bM)};
bM.\u0275cmp=u({type:bM,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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),G()(),E(6,"ul")(7,"li"),Q(8),G(),E(9,"li"),Q(10),G()(),E(11,"div")(12,"p"),Q(13),G()()()()());a&2&&(A(4),D("href",b.url,
le),A(1),kg(b.bookmarkGroup.name),A(3),T("ID: ",b.bookmarkGroup.bookmarkGroupId,""),A(2),lg("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),A(3),kg(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 cM=function(){this.admins=[]};cM.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Rl(this.hotlist.adminUsers)};cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=u({type:cM,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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),Q(5),G()(),E(6,"ul")(7,"li"),Q(8),G(),E(9,"li"),Q(10),G()(),E(11,"div")(12,"p"),Q(13),G()()()()());a&2&&(A(4),D("href",b.url,le),A(1),kg(b.hotlist.name),A(3),T("ID: ",b.hotlist.hotlistId,""),A(2),lg("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),A(3),kg(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 dM=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 sx;this.isAnonymous=this.activeSession.isAnonymous()};g=dM.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};dM.\u0275fac=function(a){return new (a||dM)(B(NG),B(qH))};
dM.\u0275cmp=u({type:dM,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[mg([qH])],decls:4,vars:7,consts:[[1,"inline-block",3,"matTooltip"],["tooltip","matTooltip"],["mat-icon-button","","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=v();E(0,"div",
0,1)(2,"button",2);M("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){w(c);var d=O(1);return z(d.show())})("blur",function(){w(c);var d=O(1);return z(d.hide())});H(3,"mat-icon",3);G()()}a&2&&(D("matTooltip",b.getLabel()),A(2),Zf("starred",b.starred),D("disabled",b.isDisabled()),Uf("aria-label",b.getAriaLabel())("aria-checked",b.starred),A(1),D("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[pC,yD,tF],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});
oi(function(a){this._elementRef=a},"primary");var xJb=new Md("mat-progress-spinner-default-options",{providedIn:"root",factory:exa});
var yJb=oi(function(a){this._elementRef=a},"primary"),eM=function(a,b,c,d,e,f,h,k){var q=yJb.call(this,a)||this;q._document=c;q._diameter=100;q._value=0;q._resizeSubscription=W.Subscription.EMPTY;q.mode="determinate";q._spinnerAnimationLabel=q._getSpinnerAnimationLabel();zJb.has(c.head)||zJb.set(c.head,new Set([100]));q._noopAnimations="NoopAnimations"===d&&!!e&&!e._forceAnimations;"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(q.mode="indeterminate");e&&(e.color&&(q.color=q.defaultColor=
e.color),e.diameter&&(q.diameter=e.diameter),e.strokeWidth&&(q.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&h&&f&&k&&(q._resizeSubscription=h.change(150).subscribe(function(){"indeterminate"===q.mode&&k.run(function(){return f.markForCheck()})}));return q};X(eM,yJb);g=eM.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=nh(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=zJb.get(a);if(!c||!c.has(b)){var d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);d.textContent=this._getAnimationText();a.appendChild(d);c||(c=new Set,zJb.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(".","_")};
ni.Object.defineProperties(eM.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=uh(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=uh(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,uh(a)))}}});var zJb=new WeakMap;eM.\u0275fac=function(a){return new (a||eM)(B(Rd),B(hz),B(li,8),B(Ew,8),B(xJb),B(Xx),B(lB),B(Mf))};
eM.\u0275cmp=u({type:eM,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,b){a&2&&(Uf("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),Yf("width",b.diameter,"px")("height",b.diameter,"px"),Zf("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",
diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Of],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(),E(0,"svg",0,1),P(2,fxa,1,11,"circle",2),P(3,gxa,1,9,"circle",3),G());a&2&&(Yf("width",b.diameter,"px")("height",b.diameter,"px"),D("ngSwitch","indeterminate"===b.mode),Uf("viewBox",b._getViewBox()),A(2),D("ngSwitchCase",!0),A(1),D("ngSwitchCase",!1))},dependencies:[iy,jy],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 fM=function(){};fM.\u0275fac=function(a){return new (a||fM)};fM.\u0275cmp=u({type:fM,selectors:[["b-spinner"]],inputs:{large:"large"},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,hxa,1,1,"mat-spinner",0),P(1,ixa,1,2,"mat-spinner",1));a&2&&(D("ngIf",b.large),A(1),D("ngIf",!b.large))},dependencies:[gy,eM],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}}\n/*# sourceMappingURL=spinner.css.map */"]});
var jxa;
var gM=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new sx;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};gM.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};gM.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
gM.prototype.getRoot=function(){var a;return null!=(a=kxa(this.elementRef.nativeElement))?a:document};gM.\u0275fac=function(a){return new (a||gM)(B(Rd))};gM.\u0275dir=u({type:gM,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var hM=function(){};hM.\u0275fac=function(a){return new (a||hM)};hM.\u0275mod=Yc({type:hM});hM.\u0275inj=Ic({});
var AJb,BJb=Symbol("Kc"),CJb=Symbol("Lc"),iM=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new sx;this[AJb]=new W.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new W.BehaviorSubject(!1);this.closeHovercard$=new W.Subject};iM.prototype.ngOnInit=function(){};var DJb=function(a){var b=a[CJb];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[BJb].pipe(qf(0))):(0,W.of)(void 0)};AJb=BJb;
iM.\u0275fac=function(a){return new (a||iM)(B(wg))};
iM.\u0275cmp=u({type:iM,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&&(fg(),P(0,lxa,2,3,"ng-template"))},dependencies:[oz,gM],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 jM=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[CJb]=this};jM.\u0275fac=function(a){return new (a||jM)(B(vg),B(wg),B(Xx),B(iM))};jM.\u0275dir=u({type:jM,selectors:[["","onedevHovercardLazyBody",""]]});var kM=function(a){this.hovercard=a;this.destroyed$=new W.ReplaySubject(1)};kM.prototype.ngOnDestroy=function(){this.destroyed$.next()};kM.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Ef(this.destroyed$)).subscribe(this.hovercard[BJb])};
kM.\u0275fac=function(a){return new (a||kM)(B(iM))};kM.\u0275dir=u({type:kM,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});
var EJb={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},FJb=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},EJb,{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 GJb=function(){this.delay=600;this.position=FJb},lM=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new GJb;this.active=!1;this.hovercardShown$=new W.ReplaySubject(1);this.hide$=new W.Subject;this.hovercard$=new W.BehaviorSubject(null);this.isHovered$=new W.BehaviorSubject(!1);this.isKeyboardActivated$=new W.BehaviorSubject(!1);this.destroyed$=new W.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(HJb(c),d.stopPropagation(),
d.preventDefault())};IJb(this);this.handleClose()},IJb=function(a){JJb(a).pipe(Ef(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};lM.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(Df(function(b){return(null==b?void 0:b.closeHovercard$)||W.NEVER}),Ef(this.destroyed$)).subscribe(function(){HJb(a)})};lM.prototype.dispose=function(){KJb(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
lM.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};lM.prototype.toggle=function(a){this.isHovered$.next(a)};var HJb=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
lM.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,DJb(this.hovercard$.getValue()).pipe(sf(),Ef(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};lM.prototype.hide=function(){KJb(this);this.hide$.next()};
var KJb=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()}};lM.prototype.getPositionStrategy=function(){return uB(vB(wB(CB(this.overlay.position(),this.origin)),8),this.config.position)};
var JJb=function(a){return(0,W.combineLatest)([LJb(a).pipe(Cf(!1)),a.isKeyboardActivated$]).pipe(Bf(1),C(function(b){var c=n(b);b=c.next().value;c=c.next().value;return b||c}),Df(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(wf(b)))||(0,W.of)(b)}))},LJb=function(a){return a.hovercard$.pipe(Df(function(b){return(0,W.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,W.of)(!1)]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return c||d}),of(a.config.delay),
Ef(a.destroyed$))}))};
var MJb=new Md("onedevHovercardLoggingOn"),mM=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new GJb;this.destroyed$=new W.ReplaySubject(1);this.triggerControl=new lM(a,b);this.triggerControl.hovercardShown$.pipe(Gf(d||(0,W.of)(!1)),Ef(this.destroyed$)).subscribe(function(h){h=n(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(XE)),YE(f.clientStreamzService,"hovercardShown",!0))})};g=mM.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 xz(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.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};ni.Object.defineProperties(mM.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});mM.\u0275fac=function(a){return new (a||mM)(B(DB),B(Rd),B(wg),B(MJb,8),B(dl))};
mM.\u0275dir=u({type:mM,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&M("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)});a&2&&Uf("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger","hovercard"],enabled:["onedevHovercardActive",
"enabled"],config:["onedevHovercardConfig","config"]},features:[ed]});
var NJb=["panel"],OJb=0,PJb=function(a,b){this.source=a;this.option=b},QJb=pi(function(){}),RJb=new Md("mat-autocomplete-default-options",{providedIn:"root",factory:mxa}),nM=function(a,b,c,d){var e=QJb.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._activeOptionChanges=W.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new sx;e.opened=new sx;e.closed=new sx;e.optionActivated=new sx;e._classList={};e.id="mat-autocomplete-"+OJb++;e.inertGroups=(null==d?void 0:
d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;e._autoSelectActiveOption=!!c.autoSelectActiveOption;return e};X(nM,QJb);g=nM.prototype;g._setColor=function(a){this._color=a;this._setThemeClasses(this._classList)};g.ngAfterContentInit=function(){var a=this;this._keyManager=OA(new VA(this.options));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 PJb(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};
ni.Object.defineProperties(nM.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=rh(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=rh(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&
a.length?this._classList=Qja(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._setThemeClasses(this._classList);this._elementRef.nativeElement.className=""}}});nM.\u0275fac=function(a){return new (a||nM)(B(Xx),B(Rd),B(RJb),B(hz))};
nM.\u0275dir=u({type:nM,viewQuery:function(a,b){a&1&&(zg(vg,7),zg(NJb,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",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
features:[Of]});
var SJb=new Md("mat-autocomplete-scroll-strategy"),TJb={provide:SJb,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},oM=function(a,b,c,d,e,f,h,k,q,t,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=t;this._defaults=x;this._manuallyFloatingLabel=this._autocompleteDisabled=this._componentDestroyed=!1;this._viewportSubscription=W.Subscription.EMPTY;
this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new W.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,W.defer)(function(){var F=y.autocomplete?y.autocomplete.options:null;return F?F.changes.pipe(Cf(F),Df(function(){return W.merge.apply(null,r(F.map(function(K){return K.onSelectionChange})))})):
y._zone.onStable.pipe(sf(),Df(function(){return y.optionSelections}))});this._scrollStrategy=f};oM.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};oM.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};
oM.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()};
var nt=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._componentDestroyed||a._changeDetectorRef.detectChanges())};g=oM.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,W.merge)((0,W.fromEvent)(this._document,"click"),(0,W.fromEvent)(this._document,"auxclick"),(0,W.fromEvent)(this._document,"touchend")).pipe(hf(function(b){b=ph(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=xh(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),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.floatLabel="auto",this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=this._zone.onStable.pipe(sf()),c=this.autocomplete.options.changes.pipe(Ff(function(){return cub(a._positionStrategy)}),qf(0));return(0,W.merge)(b,c).pipe(Df(function(){a._zone.run(function(){var d=a.panelOpen;a._resetActiveItem();a.autocomplete._setVisibility();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();d!==a.panelOpen&&(a.panelOpen?a.autocomplete.opened.emit():a.autocomplete.closed.emit())});return a.panelClosingActions}),
sf()).subscribe(function(d){return a._setValueAndClose(d)})};g._destroyPanel=function(){this._overlayRef&&(nt(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){if(a=a?a.source:this._pendingAutoselectedOption)this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),this.autocomplete._emitSelectEvent(a),this._element.nativeElement.focus();nt(this)};g._clearPreviousSelectedOption=function(a){this.autocomplete.options.forEach(function(b){b!==a&&b.selected&&b.deselect()})};
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 xz(this.autocomplete.template,this._viewContainerRef,{id:null==(c=this._formField)?void 0:c.getLabelId()});this._overlayRef=b=this._overlay.create(this._getOverlayConfig());this._handleOverlayEvents(b);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._setVisibility();this.autocomplete._isOpen=this._overlayAttached=!0;var d;this.autocomplete._setColor(null==(d=this._formField)?void 0:d.color);this.panelOpen&&c!==this.panelOpen&&this.autocomplete.opened.emit()};
g._getOverlayConfig=function(){var a;return new rB({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null==(a=this._defaults)?void 0:a.overlayPanelClass})};g._getOverlayPosition=function(){var a=xB(wB(CB(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(r(b),r(c));uB(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;a.autoActiveFirstOption?TA(a._keyManager):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=ola(a,b.options,b.optionGroups);0===a&&1===c?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(pla(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._handleOverlayEvents=function(a){var b=this;a.keydownEvents().subscribe(function(c){if(27===c.keyCode&&!xh(c)||38===c.keyCode&&xh(c,"altKey")){if(b._pendingAutoselectedOption){var d;b._updateNativeInputValue(null!=(d=b._valueBeforeAutoSelection)?d:"");b._pendingAutoselectedOption=null}b._closeKeyEventStream.next();b._resetActiveItem();c.stopPropagation();c.preventDefault()}});a.outsidePointerEvents().subscribe()};
ni.Object.defineProperties(oM.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=rh(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,W.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(hf(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(hf(function(){return a._overlayAttached})):(0,W.of)()).pipe(C(function(b){return b instanceof xub?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});oM.\u0275fac=function(a){return new (a||oM)(B(Rd),B(DB),B(wg),B(Mf),B(Xx),B(SJb),B(XA,8),B(TC,9),B(li,8),B(lB),B(RJb,8))};
oM.\u0275dir=u({type:oM,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[ed]});
var UJb={provide:xy,useExisting:Fc(function(){return pM}),multi:!0},pM=function(){oM.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};X(pM,oM);pM.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(pM)))(b||pM)}}();
pM.\u0275dir=u({type:pM,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&M("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&&Uf("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:[mg([UJb]),Of]});
var qM=function(){var a=nM.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";return a};X(qM,nM);qM.\u0275dir=nM.\u0275dir;qM.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(qM)))(b||qM)}}();
qM.\u0275cmp=u({type:qM,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(Ag(c,nub,5),Ag(c,rC,5));if(a&2){var d;yg(d=Bg())&&(b.optionGroups=d);yg(d=Bg())&&(b.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[mg([{provide:mub,useExisting:qM}]),Of],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(fg(),P(0,
nxa,3,4,"ng-template"))},dependencies:[ey],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 rM=function(){};rM.\u0275fac=function(a){return new (a||rM)};rM.\u0275mod=Yc({type:rM});rM.\u0275inj=Ic({providers:[TJb],imports:[GB,sC,HB,vy,oB,sC,HB]});
var VJb=["searchBox"],sM=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 sx;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
sM.prototype.ngOnInit=function(){this.allowStarring&&WJb(this)};
var WJb=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();a.userApi.getUserSidebar().then(function(b){if(a.showGroups){var c,d=n(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=n(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=n(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=sM.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=n(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=n(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=
n(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(r(e),r(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!Rl(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();WJb(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(Mo(this.analytics,"hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(Mo(this.analytics,"hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
sM.\u0275fac=function(a){return new (a||sM)(B(qH,2),B(NG),B(oK),B(SL),B(TI),B(pI),B(BK),B(xJ),B(eJ))};
sM.\u0275cmp=u({type:sM,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(zg(VJb,5),zg(pM,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:[mg([qH])],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&&(E(0,"div",0)(1,"input",1,2),M("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()}),G(),P(3,oxa,1,0,"b-spinner",3),E(4,"mat-autocomplete",4,5),M("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),P(6,sxa,9,8,"mat-option",6),G(),E(7,"div",7),Q(8,' e.g., "foo bar admin:user@google.com" '),H(9,"br"),Q(10,' or "foo bar admin:group@google.com" '),H(11,"br"),Q(12," Only identities directly listed as Admins can be searched. "),G()());if(a&2){var c=O(5);A(1);D("ngModel",b.query)("matAutocomplete",c);Uf("autofocus",b.focusOnInit)("aria-label","Add query for searching "+
(b.showGroups?"bookmark groups":"hotlists"));A(2);D("ngIf",b.isLoading());A(3);D("ngForOf",b.matches)}},dependencies:[fy,gy,bM,cM,iM,mM,fM,dM,fh,Ky,Ry,qM,pM,rC],encapsulation:2});
var XJb=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],tM=function(){};tM.\u0275fac=function(a){return new (a||tM)};tM.\u0275dir=u({type:tM,selectors:[["xap-dialog-layout-subtitle"]]});var uM=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new W.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
uM.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){YJb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});ZJb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};uM.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var YJb=function(a){if(!window.ResizeObserver)return(0,W.of)($Jb(a.el.nativeElement));var b;return(0,W.fromEventPattern)(function(c){b=new ResizeObserver(function(){c($Jb(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(rf(),Ef(a.destroyed))},ZJb=function(a){return(0,W.fromEvent)(a.el.nativeElement,"scroll").pipe(txa(),C(function(){return a.getScrollPosition(a.el.nativeElement)}),rf(),Ef(a.destroyed))},$Jb=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
uM.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};ni.Object.defineProperties(uM.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});uM.\u0275fac=function(a){return new (a||uM)(B(Rd),B(Xx),B(Mf))};
uM.\u0275dir=u({type:uM,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&Zf("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 vM=function(){};vM.\u0275fac=function(a){return new (a||vM)};
vM.\u0275cmp=u({type:vM,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&Ag(c,tM,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&&Zf("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&&(fg(XJb),
E(0,"header",0),gg(1),gg(2,1),G(),gg(3,2),gg(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 aKb=Lh({opacity:0}),bKb=Lh({opacity:1}),cKb=Jh("dialogContainer",[Mh("void, hidden",aKb),Mh("visible",bKb),Nh("void => *, * => visible",Kh("200ms cubic-bezier(0.0,0.0,0.2,1)",bKb)),Nh("* => void, * => hidden",Kh("200ms cubic-bezier(0.4,0.0,0.2,1)",aKb))]);
var dKb=new Md("XAP_IDCO"),wM=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};X(wM,yz);wM.prototype.ngAfterViewInit=function(){};wM.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};wM.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};wM.\u0275fac=function(a){return new (a||wM)(B(dKb))};
wM.\u0275cmp=u({type:wM,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&zg(Bz,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&&(Uf("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex),eg("@dialogContainer",b.animationState))},features:[Of],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&
1&&(E(0,"div"),P(1,uxa,1,0,"ng-template",0),G())},dependencies:[Bz],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:[cKb]},changeDetection:0});
var eKb=[{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}],fKb={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},xM=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=fKb;this.triggerDescription="Press space for more information.";this.disableAutoFocusInternal=!1;this.beforeOpened=new sx;this.opened=new sx;this.closed=new sx;this.destroyed=new W.ReplaySubject;this.openStatusChange=new W.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(hf(function(t){return t&&!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;
gKb(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);hKb(this,c.nativeElement)};xM.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||HA(this.ariaDescriber,a,this.triggerDescription)};xM.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var gKb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(b,"keydown").pipe(Ef(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();break;case 32:c.preventDefault()}});(0,W.fromEvent)(b,"keyup").pipe(Ef(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},hKb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(b,"focus").pipe(hf(function(){return 0<a.beforeOpened.observers.length}),Ef(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
g=xM.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.ngZone.run(function(){a.dialogContainerRef=iKb(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.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;b&&b===c&&(this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),kz(this.focusTrap),this.disableAutoFocus||this.focusInitialElement())};g.focusInitialElement=function(){this.focusTrap&&mz(this.focusTrap)};
g.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&"function"===typeof a.focus){var b=this.dialogContainerRef.location.nativeElement,c=this.document.activeElement;c&&b.contains(c)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};g.createPositionStrategy=function(a){return uB(CB(this.overlay.position(),this.elementRef),a).setOrigin(this.elementRef)};
var iKb=function(a){var b=Jf({parent:a.injector,providers:[{provide:dKb,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new wz(wM,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(eKb)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&0<a.overlayPositions.length&&aub(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
ni.Object.defineProperties(xM.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof vg?new xz(a,this.viewContainerRef):new wz(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=rh(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}}}});xM.\u0275fac=function(a){return new (a||xM)(B(Mf),B(DB),B(Rd),B(wg),B(Document),B(MA),B(GA),B(dl))};
xM.\u0275dir=u({type:xM,hostVars:1,hostBindings:function(a,b){a&2&&Uf("data-disabled",b.disabled)},inputs:{dialogLabel:"dialogLabel",dialogTabIndex:"dialogTabIndex",overlaySize:"overlaySize",overlayPositions:"overlayPositions",overlayDimensions:"overlayDimensions",triggerDescription:"triggerDescription",disableAutoFocus:"disableAutoFocus",panelClass:"panelClass"},outputs:{beforeOpened:"beforeOpened",opened:"opened",closed:"closed"}});
var yM=function(a,b,c,d,e,f,h,k){xM.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};X(yM,xM);g=yM.prototype;g.ngOnInit=function(){xM.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(Ef(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(hf(function(b){return b&&0<a.beforeOpened.observers.length}),oha(function(){return a.openStatusChange.pipe(hf(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(a,"mouseenter").pipe(Ef(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,W.fromEvent)(a,"click").pipe(Ef(b.destroyed)).subscribe(function(d){d.target.closest("[xapInlineDialogClose]")&&b.openStatusChange.value?b.closingDialog():(b.openingDialog(),d.stopPropagation())});var c;null==(c=b.overlayRef)||c.backdropClick().pipe(Ef(b.destroyed)).subscribe(function(){b.openStatusChange.value&&
b.closingDialog()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(a,"keyup").pipe(Ef(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:b.closeDialog();break;case 13:case 32:d.closest("[xapInlineDialogClose]")&&b.closeDialog()}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};
g.createOverlayConfig=function(a){return new rB(Object.assign({},this.overlayDimensions,{positionStrategy:xM.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};yM.\u0275fac=function(a){return new (a||yM)(B(Mf),B(DB),B(Rd),B(wg),B(li),B(MA),B(GA),B(dl))};
yM.\u0275dir=u({type:yM,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[Of]});
var jKb=["*"],kKb=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}"},zM=function(){this.disabled=!1};zM.\u0275fac=function(a){return new (a||zM)};
zM.\u0275cmp=u({type:zM,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(Uf("tabindex",b.disabled?-1:0),Zf("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:jKb,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},styles:[kKb()],encapsulation:2});var AM=function(){this.disabled=!1};AM.\u0275fac=function(a){return new (a||AM)};
AM.\u0275cmp=u({type:AM,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:jKb,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},styles:[kKb()],encapsulation:2});
var BM=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new sx};BM.\u0275fac=function(a){return new (a||BM)};
BM.\u0275cmp=u({type:BM,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&zg(yM,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:[[3,"xapInlineDialogClick"],["matTooltip","Search","svgIcon","search"],["popup",""],[3,"showGroups","showHotlists","allowStarring","focusOnInit","itemSelect"]],template:function(a,
b){a&1&&(E(0,"xap-icon-trigger",0),H(1,"mat-icon",1),G(),P(2,vxa,3,4,"ng-template",null,2,Hg));if(a&2){var c=O(3);D("xapInlineDialogClick",c);Uf("aria-label",b.ariaLabel)}},dependencies:[vM,uM,tF,yD,yM,AM,sM],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});
var CM=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};CM.prototype.handleBookmarkGroupOpen=function(a){Mo(this.analytics,"sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};CM.prototype.handleBookmarkGroupDashboard=function(a){Mo(this.analytics,"sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};CM.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
CM.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};CM.\u0275fac=function(a){return new (a||CM)(B(oI),B(BK),B(pI),B(WL))};
CM.\u0275cmp=u({type:CM,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"],["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&&(E(0,"div",0),H(1,"hr"),E(2,"sidebar-zippy",1),P(3,wxa,3,1,"ng-template",null,2,Hg),P(5,Lxa,1,1,"ng-template",null,3,Hg),G()());if(a&2){var b=O(4),c=O(6);A(2);D("header",b)("content",c)}},dependencies:[fy,gy,BM,yD,pC,oF,mF,nF,lF,$L],encapsulation:2,changeDetection:0});
var DM=function(a,b,c,d,e){this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail()};DM.prototype.getUserEmail=function(){return this.userEmail};DM.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};DM.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};DM.\u0275fac=function(a){return new (a||DM)(B(oI),B(NG),B(BK),B(WL),B(pI))};
DM.\u0275cmp=u({type:DM,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},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"],["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&&(E(0,"div",0),H(1,"hr"),E(2,"sidebar-zippy",1),P(3,Mxa,3,1,"ng-template",null,2,Hg),P(5,Txa,1,1,"ng-template",null,3,Hg),G()());if(a&2){var b=O(4),c=O(6);A(2);D("header",b)("content",c)}},dependencies:[fy,gy,BM,yD,pC,oF,mF,nF,lF,$L],encapsulation:2,changeDetection:0});
var EM=function(a){Y.call(this,a)};X(EM,Y);EM.prototype.getSearch=function(){return Ub(this,no,1)};EM.prototype.setSearch=function(a){Vb(this,1,a)};EM.messageId="b.SearchResponse";
var FM=function(a){this.jspbExecutor=a};FM.prototype.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:EM}).pipe(C(Uxa))};FM.prototype.create=function(a,b){var c=new no;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:EM}).pipe(C(Uxa))};
FM.prototype.update=function(a,b){var c=new no;m(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(Rqa));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(Pqa));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Yl));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:EM}).pipe(C(Uxa))};
FM.prototype.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};FM.\u0275fac=function(a){return new (a||FM)(p(lH))};FM.\u0275prov=Hc({token:FM,factory:FM.\u0275fac,providedIn:"root"});var GM=function(a){this.observableResources=a};GM.prototype.get=function(a){return(0,W.firstValueFrom)(this.observableResources.get(a))};GM.prototype.create=function(a,b){return(0,W.firstValueFrom)(this.observableResources.create(a,b))};
GM.prototype.update=function(a,b){return(0,W.firstValueFrom)(this.observableResources.update(a,b))};GM.prototype.delete=function(a){return(0,W.firstValueFrom)(this.observableResources.delete(a))};GM.\u0275fac=function(a){return new (a||GM)(p(FM))};GM.\u0275prov=Hc({token:GM,factory:GM.\u0275fac,providedIn:"root"});
var HM=function(a,b,c,d,e,f,h,k,q,t){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=t;this.searches=[]};HM.prototype.isSelected=function(a){return XDb(this.paths,a.href)};HM.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var Xxa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Co("Are you sure you want to delete this search?"),onConfirm:function(){lKb(a,b)}})},lKb=function(a,b){var c=b.id;vJ(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});vJ(a.butterBar,'Deleted saved search "'+b.name+'".');Mo(a.analytics,"sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};HM.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};HM.\u0275fac=function(a){return new (a||HM)(B(qH,2),B(oI),B(GM),B(pI),B(uJ),B(BK),B(WL),B(xJ),B(UL),B(eJ))};
HM.\u0275cmp=u({type:HM,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[mg([qH])],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&&(E(0,"div",0),H(1,"hr"),E(2,"sidebar-zippy",1),P(3,Vxa,2,0,"ng-template",null,2,Hg),P(5,aya,1,1,"ng-template",null,3,Hg),G()());if(a&
2){var b=O(4),c=O(6);A(2);D("header",b)("content",c)}},dependencies:[fy,gy,yD,pC,oF,mF,nF,lF,$L],encapsulation:2,changeDetection:0});
var mKb=/^\s*hotlistid:(\d+)\s*$/i,nKb=/(?:\s|^)componentid:(\d+)\s*/i,oKb=/^\s*savedsearchid:(\d+)\s*$/i,IM=function(a,b,c,d){Z.call(this);var e=this;this.$log=a;this.currentTracker=b;this.contextSensitiveRegistry=c;this.analytics=d;this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new W.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=this.currentTracker.trackerId$.pipe(C(function(f){return f?[f]:[]}));this.selectedTrackerIds$=new W.Subject;
this.trackerScope$=(0,W.merge)(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new W.Subject;this.subscriptions.add(this.queryState$.pipe(Ef(this.destroyed$)).subscribe(function(f){e.currentQuery=f.query;(f=e.currentQuery.match(nKb))?e.contextSensitiveRegistry.componentIdOverride$.next(Number(f[1])):e.contextSensitiveRegistry.componentIdOverride$.next(null);(f=e.currentQuery.match(mKb))?e.contextSensitiveRegistry.hotlistIdOverride$.next(Number(f[1])):
e.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(Ef(this.destroyed$)).subscribe(function(f){e.currentTrackerScope=f}))};X(IM,Z);IM.\u0275dir=Z.\u0275dir;IM.prototype.clear=function(){JM(this,"")};var JM=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},pKb=function(a){return"assignee:"+a+" status:open"};IM.prototype.getStarred=function(){return"star:true"};
IM.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};IM.prototype.getVoted=function(){return"vote:true"};var qya=function(a){return a.currentQuery===a.getVoted()},qKb=function(a){return"verifier:"+a+" status:open | status:fixed"},rKb=function(a){return(a=a.currentQuery.match(mKb))?Number(a[1]):0},sKb=function(a){return(a=a.currentQuery.match(oKb))?Number(a[1]):0};IM.prototype.track=function(a,b,c){Mo(this.analytics,"global-search",a,b,c)};
var tKb=function(a,b){a.searchHandlerStack.push(b);return function(){Ea(a.searchHandlerStack,b)}};IM.\u0275fac=function(a){return new (a||IM)(p(WH),p(LJ),p(OL),p(BK))};IM.\u0275prov=Hc({token:IM,factory:IM.\u0275fac,providedIn:"root"});
var uKb=lHb("edited-ids"),vKb=jHb("edited-ids"),wKb=lHb("viewed-ids"),xKb=jHb("viewed-ids"),KM=function(a){var b=this;this.appEvents=a;this.stop$=new W.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){fya(b.viewed,c);wKb(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){fya(b.edited,c);uKb(Array.from(b.edited.keys()).join(","))}};KM.\u0275fac=function(a){return new (a||KM)(p(eJ))};KM.\u0275prov=Hc({token:KM,factory:KM.\u0275fac,providedIn:"root"});
var yKb=0,zKb=qi(function(){}),LM=function(a,b,c,d,e){var f=zKb.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=yKb++;f._isInitialized=!1;return f};X(LM,zKb);g=LM.prototype;g.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};
g.ngOnDestroy=function(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement);IA(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
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._updateHostAriaDescription=function(a){IA(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&HA(this._ariaDescriber,this._elementRef.nativeElement,a);this._description=a};
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=n(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()};
ni.Object.defineProperties(LM.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=rh(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._updateHostAriaDescription(a)}},
hidden:{configurable:!0,enumerable:!0,get:function(){return this._hidden},set:function(a){this._hidden=rh(a)}}});LM.\u0275fac=function(a){return new (a||LM)(B(Mf),B(Rd),B(GA),B(tw),B(Ew,8))};
LM.\u0275dir=u({type:LM,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&Zf("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:[Of]});
var hya=function(a){return[a]},MM=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){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=t;this.needsAttentionApi=x;this.analytics=y;this.currentTracker=F;this.featureTooltipService=K;this.needsAttentionIssueCount$=new W.Subject;this.enabledVotedNav=Cq(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();
this.votedPath=this.paths.listIssues({q:this.appSearchState.getVoted()});this.recentlyViewedPath=AKb(this)?"recent":void 0;this.showNeedsAttentionUI=Cq(this.activeSession,"showNeedsAttentionUI")&&this.activeSession.isInternalSession()&&!this.currentTracker.inTracker;this.destroyed$=new sx;this.TOOLTIP_ID_NEEDS_ATTENTION_SIDEBAR="tooltipIdNeedsAttentionSidebar";this.TOOLTIP_POSITIONS=DD;this.showFeatureTooltip$=aF(this.featureTooltipService,"HIDDEN",["tooltipIdNeedsAttentionSidebar"]).pipe(hf(function(R){return 0===
R.length}),Df(function(){return Syb(J.featureTooltipService)}),hf(Boolean),qf(1E3),C(function(){}));this.hasPreferredHomepage$=this.userPreferencesManager.preferences$.pipe(C(function(R){R=(R||MG).homepagePreferences;return!(!R||!R.resourceType)}),rf());this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.needsAttentionPath="attention";this.assignedPath=e.listIssues({q:pKb(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=
e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:qKb(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;Cq(b,"runQueryForSidebarIssueCount")&&setTimeout(function(){var R=vGb(J.currentTracker);J.needsAttentionApi.listIssues(null,
R)},1E3)};MM.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(Ef(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};MM.prototype.ngOnDestroy=function(){this.destroyed$.next()};var oya=function(a){vJ(a.butterBar,"Updating homepage...",0);a.userPreferencesManager.clearHomepagePreferences().pipe(Ef(a.destroyed$)).subscribe(function(){vJ(a.butterBar,"Homepage updated")})};
MM.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var lya=function(a,b,c){a.needsAttentionIssueCount$.pipe(sf()).subscribe(function(d){Mo(a.analytics,Aq.SIDEBAR,"navigate","toNeedsAttentionWithCount",d)});a.onAnchorClick(b,c)},AKb=function(a){var b=Cq(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};
MM.\u0275fac=function(a){return new (a||MM)(B(qH,2),B(NG),B(uJ),B(IM),B(pI),B(aI),B(WL),B(cl),B(KM),B(eJ),B(gJ),B(BK),B(LJ),B(ZE))};
MM.\u0275cmp=u({type:MM,selectors:[["b-sidebar"]],features:[mg([qH])],decls:48,vars:30,consts:[[1,"bv2-nav-header"],[3,"showTooltip$",4,"ngIf"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["id","needs-attention-sidebar-link",3,"selected",4,"ngIf"],["id","canned-searches-assign",1,"bv2-nav-item"],[3,"href","click"],["svgIcon","issue-status-accepted",1,"canned-search-icon"],[4,"ngIf"],["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"],[3,"showTooltip$"],[3,"customPositions","tooltipId"],["onedevTooltipTitle",""],["id","needs-attention-sidebar-link"],[3,"href","onedevFeatureTooltip","hideTooltipWhenAnchorNotVisible",
"click"],["class","canned-search-icon","svgIcon","crisis_alert_24px","matBadgeColor","warn","matBadgeSize","small",3,"matBadge","matBadgeHidden","matBadgeDescription",4,"ngIf","ngIfElse"],["noBadge",""],["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","Assigned issues actions",1,"bv2-nav-item-menubutton",
3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],["svgIcon","exposure_plus_1_24px",1,"canned-search-icon"],["svgIcon","time-24px",1,"canned-search-icon"]],template:function(a,b){a&1&&(E(0,"div",0),H(1,"b-create-issue-button"),G(),P(2,iya,5,5,"onedev-feature-tooltip-controller",1),E(3,"div",2)(4,"div",3)(5,"ul",4),P(6,mya,7,9,"li",5),E(7,"li",6)(8,"a",7),M("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),H(9,
"mat-icon",8),Q(10," Assigned to me "),G(),P(11,nya,3,1,"ng-container",9),U(12,"async"),E(13,"mat-menu",null,10),P(15,pya,2,0,"ng-template",11),G()(),E(16,"li")(17,"a",7),M("click",function(c){return b.onAnchorClick(b.starredPath,c)}),H(18,"mat-icon",12),Q(19," Starred by me "),G()(),E(20,"li")(21,"a",7),M("click",function(c){return b.onAnchorClick(b.ccdPath,c)}),H(22,"mat-icon",13),Q(23," CC'd to me "),G()(),E(24,"li")(25,"a",7),M("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),H(26,
"mat-icon",14),Q(27," Reported by me "),G()(),P(28,sya,4,3,"li",15),E(29,"li")(30,"a",7),M("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),H(31,"mat-icon",16),Q(32," To be verified "),G()(),P(33,tya,4,3,"li",15),G(),H(34,"sidebar-bookmark-groups",17)(35,"sidebar-saved-searches",18)(36,"sidebar-hotlists",19)(37,"sidebar-archived",20)(38,"hr"),E(39,"div",21)(40,"a",22),Q(41," Create hotlist "),G()(),E(42,"div",21)(43,"a",22),Q(44," Create bookmark group "),G()(),E(45,"div",21)(46,"a",
22),Q(47," Browse components "),G()()()());a&2&&(A(2),D("ngIf",b.showNeedsAttentionUI),A(4),D("ngIf",b.showNeedsAttentionUI),A(1),Zf("selected",b.appSearchState.currentQuery===pKb(b.userEmail)),A(1),D("href",b.assignedPath,le),A(3),D("ngIf",V(12,28,b.hasPreferredHomepage$)),A(5),Zf("selected",b.appSearchState.isStarred()),A(1),D("href",b.starredPath,le),A(3),Zf("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),A(1),D("href",b.ccdPath,le),A(3),Zf("selected",b.appSearchState.currentQuery===
"reporter:"+b.userEmail),A(1),D("href",b.reportedPath,le),A(3),D("ngIf",b.enabledVotedNav),A(1),Zf("selected",b.appSearchState.currentQuery===qKb(b.userEmail)),A(1),D("href",b.verifiedPath,le),A(3),D("ngIf",b.recentlyViewedPath),A(1),D("bookmarkGroups",b.sidebarData.bookmarkGroups),A(1),D("searches",b.sidebarData.userSearches),A(1),D("hotlists",b.sidebarData.hotlists),A(1),D("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),A(3),D("href",b.createHotlistPath,
le),A(3),D("href",b.createBookmarkGroupPath,le),A(3),D("href",b.componentsPath,le))},dependencies:[QL,gy,yD,pC,oF,mF,nF,lF,LM,HD,bF,eF,fF,aM,CM,DM,HM,ny],encapsulation:2});
var NM=function(){};NM.\u0275fac=function(a){return new (a||NM)};NM.\u0275mod=Yc({type:NM});NM.\u0275inj=Ic({imports:[vy]});
var OM=function(){};OM.\u0275fac=function(a){return new (a||OM)};OM.\u0275mod=Yc({type:OM});OM.\u0275inj=Ic({imports:[vy]});
var PM=function(){};PM.\u0275fac=function(a){return new (a||PM)};PM.\u0275mod=Yc({type:PM});PM.\u0275inj=Ic({imports:[vy,$G,AF,uF,uG]});
var QM=function(){};QM.\u0275fac=function(a){return new (a||QM)};QM.\u0275mod=Yc({type:QM});QM.\u0275inj=Ic({imports:[HB,vy,HB]});
var RM=function(){};RM.\u0275fac=function(a){return new (a||RM)};RM.\u0275mod=Yc({type:RM});RM.\u0275inj=Ic({imports:[vy,QM]});
var SM=function(){this.onAction=new sx;this.disabled=!1};SM.prototype.handleClick=function(){this.onAction.emit()};SM.\u0275fac=function(a){return new (a||SM)};
SM.\u0275cmp=u({type:SM,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&&(fg(),E(0,"button",0),M("click",function(){return b.handleClick()}),gg(1),G());a&2&&D("disabled",b.disabled)},dependencies:[pC],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 TM=function(){};TM.\u0275fac=function(a){return new (a||TM)};TM.\u0275mod=Yc({type:TM});TM.\u0275inj=Ic({imports:[FA,hM,vy,AF,GB]});
var UM=function(){};UM.\u0275fac=function(a){return new (a||UM)};UM.\u0275mod=Yc({type:UM});UM.\u0275inj=Ic({imports:[vy]});
var VM=function(a,b,c,d,e,f,h,k){xM.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new W.Subject;this.attachMouseEventListeners(c.nativeElement)};X(VM,xM);g=VM.prototype;g.ngOnInit=function(){xM.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Aga(function(){return b.activity.pipe(of(a))}));c.pipe(Ef(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(hf(function(d){return d&&0<b.beforeOpened.observers.length}),oha(function(){return c.pipe(hf(function(d){return!d}))}),Ef(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(a,"mouseenter").pipe(Ef(b.destroyed)).subscribe(function(){b.openingDialog()});(0,W.fromEvent)(a,"click").pipe(Ef(b.destroyed)).subscribe(function(){b.openingDialog();b.openDialog()});(0,W.fromEvent)(a,"mouseleave").pipe(Ef(b.destroyed)).subscribe(function(){b.closingDialog()});(0,W.fromEvent)(a,"mousemove").pipe(Ef(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(a,"keydown").pipe(Ef(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 rB(Object.assign({},this.overlayDimensions,{positionStrategy:xM.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),panelClass:this.panelClassInternal}))};VM.\u0275fac=function(a){return new (a||VM)(B(Mf),B(DB),B(Rd),B(wg),B(li),B(MA),B(GA),B(dl))};
VM.\u0275dir=u({type:VM,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Of]});
[].concat(r([VM,yM,AM,zM]),[wM]);var WM=function(){};WM.\u0275fac=function(a){return new (a||WM)};WM.\u0275mod=Yc({type:WM});WM.\u0275inj=Ic({imports:[FA,vy,GB,Cz]});
var XM=function(){};XM.\u0275fac=function(a){return new (a||XM)};XM.\u0275mod=Yc({type:XM});XM.\u0275inj=Ic({imports:[vy,NM,OM,TM,RM,PM,UM,uG,uF,fz,WM,rM]});
var BKb=[PL],YM=function(){};YM.\u0275fac=function(a){return new (a||YM)};YM.\u0275mod=Yc({type:YM});YM.\u0275inj=Ic({imports:[vy,AF,pF,uF,uG]});
var ZM=function(){};ZM.\u0275fac=function(a){return new (a||ZM)};ZM.\u0275mod=Yc({type:ZM});ZM.\u0275inj=Ic({imports:[vy,YM]});
var $M=function(){};$M.\u0275fac=function(a){return new (a||$M)};$M.\u0275mod=Yc({type:$M});$M.\u0275inj=Ic({imports:[FA,HB,HB]});
var aN=function(){};aN.\u0275fac=function(a){return new (a||aN)};aN.\u0275mod=Yc({type:aN});aN.\u0275inj=Ic({imports:[ZM,vy,XM,uF,AF,pF,$M,BF]});
var bN=function(){};bN.\u0275fac=function(a){return new (a||bN)};bN.\u0275prov=Hc({token:bN,factory:bN.\u0275fac,providedIn:"root"});var cN=function(a){this.executor=a};X(cN,bN);cN.\u0275fac=function(a){return new (a||cN)(p(lH))};cN.\u0275prov=Hc({token:cN,factory:cN.\u0275fac,providedIn:"root"});
var CKb=new Md("mat-checkbox-default-options",{providedIn:"root",factory:uya});
var DKb=["input"],EKb=["label"],FKb=0,GKb=uya(),HKb=si(oi(pi(qi(function(a){this._elementRef=a})))),dN=function(a,b,c,d,e,f,h){b=HKb.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 sx;b.indeterminateChange=new sx;b._onTouched=function(){};b._currentAnimationClass="";b._currentCheckState=0;b._controlValueAccessorChangeFn=function(){};b._checked=!1;b._disabled=!1;b._indeterminate=
!1;b._options=b._options||GKb;b.color=b.defaultColor=b._options.color||GKb.color;b.tabIndex=parseInt(e)||0;b.id=b._uniqueId=a+ ++FKb;return b};X(dN,HKb);g=dN.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._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"};
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)};
ni.Object.defineProperties(dN.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=rh(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=rh(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=rh(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=rh(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});dN.\u0275fac=function(){Vd()};
dN.\u0275dir=u({type:dN,viewQuery:function(a,b){a&1&&(zg(DKb,5),zg(EKb,5),zg(UB,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:[Of]});
var eN=function(){};eN.\u0275fac=function(a){return new (a||eN)};eN.\u0275mod=Yc({type:eN});eN.\u0275inj=Ic({});
var IKb=function(a){return{enterDuration:a}},JKb=function(){},KKb={provide:xy,useExisting:Fc(function(){return fN}),multi:!0},fN=function(a,b,c,d,e,f,h){a=dN.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};X(fN,dN);fN.\u0275dir=dN.\u0275dir;g=fN.prototype;g._createChangeEvent=function(a){var b=new JKb;b.source=this;b.checked=a;return b};g._getAnimationTargetElement=function(){return this._elementRef.nativeElement};g.ngAfterViewInit=function(){var a=this;dN.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();dN.prototype._handleInputClick.call(this)};g.focus=function(a,b){a?tz(this._focusMonitor,this._inputElement,a,b):this._inputElement.nativeElement.focus(b)};fN.\u0275fac=function(a){return new (a||fN)(B(Rd),B(Xx),B(sz),B(Mf),Ad("tabindex"),B(Ew,8),B(CKb,8))};
fN.\u0275cmp=u({type:fN,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(a,b){a&2&&(dg("id",b.id),Uf("tabindex",null)("aria-label",null)("aria-labelledby",null),Zf("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:[mg([KKb]),Of],ngContentSelectors:["*"],decls:17,vars:21,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&&(fg(),E(0,"label",0,1)(2,"span",2)(3,"input",3,4),M("change",
function(e){return b._onInteractionEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),E(5,"span",5),H(6,"span",6),G(),H(7,"span",7),E(8,"span",8),qd(),E(9,"svg",9),H(10,"path",10),G(),rd(),H(11,"span",11),G()(),E(12,"span",12,13),M("cdkObserveContent",function(){return b._onLabelTextChange()}),E(14,"span",14),Q(15,"\u00a0"),G(),gg(16),G()());if(a&2){var c=O(1),d=O(13);Uf("for",b.inputId);A(2);Zf("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim());A(1);
D("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex);Uf("value",b.value)("name",b.name)("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-checked",b._getAriaChecked())("aria-describedby",b.ariaDescribedby);A(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",og(19,IKb,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[UB,CA],
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 gN=function(a,b){Z.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};X(gN,Z);gN.\u0275dir=Z.\u0275dir;gN.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(Ef(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};gN.\u0275fac=function(a){return new (a||gN)(B(EC),B(bN))};
gN.\u0275cmp=u({type:gN,selectors:[["b-terms-of-service-dialog"]],features:[Of],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&&(E(0,"h1",0),Q(1,"Google IssueTracker Terms of Service"),G(),E(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),M("ngModelChange",function(c){return b.ackChecked=c}),G(),E(5,"span"),Q(6," I acknowledge and agree to the "),E(7,"a",3),Q(8,"Google Terms of Service"),G(),Q(9," and the "),E(10,"a",4),Q(11,"Google IssueTracker Conduct Policy"),G(),Q(12,". "),G()()(),E(13,"mat-dialog-actions")(14,"button",5),M("click",function(){return b.accept()}),Q(15," OK "),G()());a&2&&(A(4),D("ngModel",b.ackChecked),A(10),D("disabled",!b.ackChecked))},dependencies:[Ky,Ry,pC,fN,KC,LC,MC],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});
var hN=function(a,b){Z.call(this);this.activeSession=a;this.matDialogService=b};X(hN,Z);hN.\u0275dir=Z.\u0275dir;hN.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&CC(this.matDialogService.open(gN,{width:"400px",disableClose:!0})).pipe(Ef(this.destroyed$))};hN.\u0275fac=function(a){return new (a||hN)(B(NG),B(IC))};hN.\u0275cmp=u({type:hN,selectors:[["b-terms-of-service"]],features:[Of],decls:0,vars:0,template:function(){},encapsulation:2});
var iN=function(){};iN.\u0275fac=function(a){return new (a||iN)};iN.\u0275mod=Yc({type:iN});iN.\u0275inj=Ic({imports:[XB,HB,DA,eN,HB,eN]});
var jN=function(){};jN.\u0275fac=function(a){return new (a||jN)};jN.\u0275mod=Yc({type:jN});jN.\u0275inj=Ic({imports:[fz,vy,AF,iN,NC]});
var kN=function(){};kN.\u0275fac=function(a){return new (a||kN)};kN.\u0275mod=Yc({type:kN});kN.\u0275inj=Ic({imports:[vy,jN]});
var No=0;
var LKb=to("blinkers-activated"),MKb=so("blinkers-activated"),NKb=xya("debug-dom-mutation","var(--c400)"),OKb=xya("debug-ng-zone","var(--red-400)"),PKb=xya("debug-xhr","var(--green-500)",1200),QKb=function(a,b,c){b=void 0===b?"#ccc":b;c=void 0===c?400:c;No++;var d=156;d+=12*(No-1);return function(e,f){f=void 0===f?b:f;var h,k=null!=(h=document.getElementById(a))?h:vya(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),
lN=function(a,b){this.activityMonitor=a;this.userActivity=b;this.destroyed$=new W.Subject;this.publicApi={isEnabled:this.isEnabled.bind(this),enable:this.enable.bind(this),disable:this.disable.bind(this)};this.isEnabled()&&RKb(this)};lN.prototype.ngOnDestroy=function(){this.destroyed$.next();this.activityMonitor.domObserver.disconnect()};lN.prototype.isEnabled=function(){return MKb()};lN.prototype.enable=function(){this.isEnabled()||(LKb(!0),RKb(this))};
lN.prototype.disable=function(){LKb(!1);this.destroyed$.next();this.activityMonitor.domObserver.disconnect()};var RKb=function(a){a.activityMonitor.dom$.pipe(Ef(a.destroyed$)).subscribe(function(){return void NKb()});wDb(a.activityMonitor);a.activityMonitor.cdr$.pipe(Ef(a.destroyed$)).subscribe(function(){return void OKb()});a.activityMonitor.xhr$.pipe(Ef(a.destroyed$)).subscribe(function(){return void PKb()});a.userActivity.active$.pipe(Ef(a.destroyed$)).subscribe(function(b){return void QKb(b)})};
lN.\u0275fac=function(a){return new (a||lN)(p(VH),p(XH))};lN.\u0275prov=Hc({token:lN,factory:lN.\u0275fac,providedIn:"root"});
var mN=function(a,b){this.teamDigestFridge=a;this.activeSession=b;this.destroyed$=new W.Subject;this.email=this.activeSession.getUserEmail();this.isInternal=this.activeSession.isInternalSession();this.teams$=this.teamDigestFridge.watchMany({myTeams:!0}).pipe(C(function(c){return c.results}));this.teams$.pipe(C(function(c){return c.map(function(d){return d.teamId})}));this.allTeamIds$=this.teams$.pipe(C(function(c){return c.flatMap(function(d){return d.pathIds})}),C(function(c){return[].concat(r(new Set(c))).filter(fm)}));
this.allTeamIdsSubject$=ml(this.allTeamIds$.pipe(Ef(this.destroyed$)),[])};mN.prototype.ngOnDestroy=function(){this.destroyed$.next()};ni.Object.defineProperties(mN.prototype,{allTeamIds:{configurable:!0,enumerable:!0,get:function(){return this.allTeamIdsSubject$.value}}});mN.\u0275fac=function(a){return new (a||mN)(p(cL),p(NG))};mN.\u0275prov=Hc({token:mN,factory:mN.\u0275fac,providedIn:"root"});
var nN=function(a,b,c,d,e,f,h,k,q){var t=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.getCurrentIssueId=function(){var x;return null==(x=t.routeParamsService.routeParams$.value)?void 0:x.issueId};this.getCurrentIssue=function(){var x=t.getCurrentIssueId();if(null!=x)return t.issueFridge.memory.getData(x)};this.getCurrentIssueEvents=function(){var x=t.getCurrentIssueId();
if(null!=x)return t.eventsForIssueFridge.memory.getData(x)}};
nN.prototype.install=function(){this.activeSession.isInternalSession()&&(this.window.bedbug={ngZone:this.ngZone,flags:Uj().config.enabledFlags,appEvents:this.appEvents,requestKeeper:SBb,activeSession:this.activeSession,getInitialSession:Uj,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:mHb("debug-logging"),toggleOptOutExperiments:mHb("opt-out-experiments"),currentUser:this.currentUser,getCurrentIssue:this.getCurrentIssue,getCurrentIssueEvents:this.getCurrentIssueEvents,fridges:{issueFridge:this.issueFridge,
eventsForIssueFridge:this.eventsForIssueFridge}})};nN.\u0275fac=function(a){return new (a||nN)(p(NG),p(eJ),p(Mf),p(hJ),p(lN),p(mN),p(eL),p(FK),p(hK))};nN.\u0275prov=Hc({token:nN,factory:nN.\u0275fac,providedIn:"root"});
var oN=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new W.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");SKb(b,b.localDarkmode);b.clientStreamzService&&YE(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")}};oN.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(XE)};var SKb=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};oN.\u0275fac=function(a){return new (a||oN)(p(dl))};oN.\u0275prov=Hc({token:oN,factory:oN.\u0275fac});
var TKb=Su(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),UKb=Su(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),pN=function(a,b){this.dialogRef=a;this.darkmodeService=b;this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(C(function(c){return c?Dh(TKb):Dh(UKb)}))};pN.\u0275fac=function(a){return new (a||pN)(B(EC),B(oN))};
pN.\u0275cmp=u({type:pN,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&&(E(0,"div",0),P(1,yya,2,3,"ng-container",1),U(2,"async"),P(3,zya,1,0,
"mat-spinner",2),G(),E(4,"div",3)(5,"button",4),M("click",function(){return b.dialogRef.close(!1)}),Q(6," Cancel "),G(),E(7,"button",5),M("click",function(){return b.dialogRef.close(!0)}),Q(8," File a new issue "),G()());a&2&&(A(1),D("ngIf",V(2,2,b.docUrl$)),A(2),D("ngIf",!b.contentLoaded))},dependencies:[gy,LC,MC,pC,eM,ny],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 Po=function(a){Y.call(this,a)};X(Po,Y);g=Po.prototype;g.getEnableSsEngine=function(){return oj(this,2)};g.getEnableAwr=function(){return oj(this,3)};g.getEnableHelpSuggestions=function(){return oj(this,4)};g.getAlohaAutoGaRollout=function(){return oj(this,5)};g.getEnableConfigurator=function(){return oj(this,6)};g.getEnableMweb=function(){return oj(this,7)};g.getEnableCtlConsentCheckbox=function(){return oj(this,8)};g.getEnableIframe=function(){return oj(this,9)};
g.getEnableScreenshotNudge=function(){return oj(this,10)};g.getEnableWebStartupConfigEndpoint=function(){return oj(this,11)};g.getEnableJunkNudge=function(){return oj(this,12)};g.getEnableConfiguratorLocale=function(){return oj(this,13)};g.getEnableTinyNoPointer=function(){return oj(this,14)};
var Lya=function(a){Y.call(this,a)};X(Lya,Y);
var Aya=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];
var Dya="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 Eya=Su(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);
var Gya;
var VKb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ea,e=d.document,f=a.nonce||tpb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=sp("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||La(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=zp(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=Ch(d);Gi(a,f);e.body.appendChild(a)}},WKb=function(a,b,c){try{"submit"===a.flow||"help"===a.flow||a.tinyNoPointer?VKb(a,b,c):Mya(a.productId,a.feedbackServerUri).then(function(d){d=Ub(d,Po,1);if(null==d||!d.getAlohaAutoGaRollout()||vnb&&!d.getEnableMweb())VKb(a,b,c);else{var e=c||ea,f="DEV"===a.serverEnvironment,h=c||
ea;h=a.nonce||tpb(h);f={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket},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},initializationData:{isLocalServer:f,
nonce:h,useNightlyRelease:f,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&&(h=new Map(Object.entries(b)),f.extraData.productSpecificData=
h);Jya(f,d,e)}},function(d){d&&"DuplicateFormError"!==d.name&&VKb(a,b,c)})}catch(d){VKb(a,b,c)}};dv("userfeedback.api.startFeedback",WKb);
var qN=function(a,b,c){this.activeSession=a;this.matDialog=b;this.currentTracker=c};qN.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?CC(this.matDialog.open(pN,{width:"500px",maxHeight:"80vh",height:"640px",autoFocus:!1})).subscribe(function(b){b&&XKb(a)}):XKb(this)};
var XKb=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20221129.06_p0"};b.bucket=a.currentTracker.inTracker?"buganizer-trackers-feedback":"buganizer3-feedback";for(var c=[],d=c.concat,e=r([]),f=[],h=n(a.activeSession.session.config.enabledFlags),k=h.next();!k.done;k=h.next()){var q=n(k.value);k=q.next().value;(q=q.next().value)&&f.push(k)}c=d.call(c,e,r(f)).join(", ");c={userType:a.activeSession.getUserTypeLabel(),flags:c};a.currentTracker.inTracker&&
(c.trackerId=a.currentTracker.getTrackerId());WKb(b,c)};qN.\u0275fac=function(a){return new (a||qN)(p(NG),p(IC),p(LJ))};qN.\u0275prov=Hc({token:qN,factory:qN.\u0275fac,providedIn:"root"});
var rN=function(a){this.delegate_=a};rN.prototype.getDelegate=function(){return this.delegate_};
var YKb=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};X(YKb,rN);YKb.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=ZKb(b,a.pop());return this.target_=b};YKb.prototype.getType=function(){return this.getDelegate().xa};
var $Kb=function(a){this.delegate_=a};X($Kb,rN);g=$Kb.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ea,new YKb(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");};$Kb.prototype[pwb]=!0;
var sN=function(a){this.delegate_=a};X(sN,$Kb);sN.prototype.getHeight=function(){return this.getDelegate().pa()};sN.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};sN.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};sN.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};
var aLb=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};X(aLb,rN);aLb.prototype.then=function(a,b,c){var d;a&&(d=bLb(this,a));this.getDelegate().aa(d,b,c)};var bLb=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};
var tN=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};X(tN,rN);tN.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new aLb(this.getDelegate().bh()));return this.gapiPromise_};tN.getInstance=function(){if(tN.instance_&&tN.hasOwnProperty("instance_"))var a=tN.instance_;else a=new tN,tN.instance_=a;return a};
var uN=function(a,b){Z.call(this);this.router=a;this.window=b};X(uN,Z);uN.\u0275dir=Z.\u0275dir;uN.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=tN.getInstance();d.barPromise_||(d.barPromise_=new aLb(d.getDelegate().bf(),sN));d.barPromise_.then(b,c)})).then(function(b){cLb(a,b)})};var cLb=function(a,b){a.router.events.pipe(hf(hl),Ef(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};uN.\u0275fac=function(a){return new (a||uN)(p(fl),p(hJ))};
uN.\u0275prov=Hc({token:uN,factory:uN.\u0275fac,providedIn:"root"});
var vN=function(a,b,c){Z.call(this);var d=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.eventsForIssueFridge=c;this.handlers$=this.paramsService.routeParams$.pipe(rf(Ri),Df(function(e){return d.onRouteParamsChanged(e)}));this.init=function(){d.subscriptions.add(d.handlers$.subscribe(function(){}))};this.initOnce=zo(this.init)};X(vN,Z);vN.\u0275dir=Z.\u0275dir;
vN.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return Pe(function(e){if(1==e.nextAddress){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return Re(e,Promise.all([KK(b.issueFetchResponseFridge,d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};vN.\u0275fac=function(a){return new (a||vN)(p(eL),p(IK),p(hK))};vN.\u0275prov=Hc({token:vN,factory:vN.\u0275fac,providedIn:"root"});
var wN=function(a){Z.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(Ef(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};X(wN,Z);wN.\u0275dir=Z.\u0275dir;wN.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)};wN.\u0275fac=function(a){return new (a||wN)(p(ZH))};
wN.\u0275prov=Hc({token:wN,factory:wN.\u0275fac,providedIn:"root"});
var xN=function(){};xN.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};xN.\u0275fac=function(a){return new (a||xN)};
xN.\u0275cmp=u({type:xN,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&&(E(0,"section",0)(1,"button",1),M("click",function(){return b.onPressBack()}),H(2,"mat-icon",2),G()())},dependencies:[pC,yD,tF],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var yN=function(){};yN.\u0275fac=function(a){return new (a||yN)};yN.\u0275cmp=u({type:yN,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(fg(),E(0,"span",0),gg(1),G())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});
var zN=function(a){this.elementRef=a;this.componentBlur=new sx};zN.\u0275fac=function(a){return new (a||zN)(B(Rd))};zN.\u0275dir=u({type:zN,selectors:[["","componentBlur",""]],hostBindings:function(a,b){a&1&&M("focusout",function(c){var d;(null==(d=c.relatedTarget)?0:d.classList.contains("cdk-focus-trap-anchor"))||b.elementRef.nativeElement.contains(c.relatedTarget)||b.componentBlur.next(c)})},outputs:{componentBlur:"componentBlur"}});
var AN=function(a,b,c){Z.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};X(AN,Z);ni.Object.defineProperties(AN.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(Ef(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});AN.\u0275fac=function(a){return new (a||AN)(B(vg),B(wg),B(Xx))};
AN.\u0275dir=u({type:AN,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[Of]});
var BN=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 sx;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=Yv(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=Yv(function(){vo(Aq.SIDEBAR,"resizeKeyboard")},2E3)};BN.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
BN.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var dLb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};BN.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
BN.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)};
ni.Object.defineProperties(BN.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}}});BN.\u0275fac=function(a){return new (a||BN)(B(qH,2),B(eJ),B(Mf))};
BN.\u0275cmp=u({type:BN,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&$f(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[mg([qH])],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&&(fg(),E(0,"div",0)(1,"div",1),gg(2),G(),E(3,"div",2),M("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return dLb(b,-10)})("keyup.arrowright",function(){return dLb(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),G()(),P(4,Oya,2,6,"button",3));a&2&&(Yf("width",b.width+"px"),Zf("isDragging",b.isDragging)("isClosed",b.isClosed),D("ngClass",b.direction),A(1),Yf("width",b.lastOpenPosition+"px"),A(2),Uf("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),A(1),D("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[ey,gy,pC,yD,tF,iB],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)}\n/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});
var eLb=new Md("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),fLb=new Md("isScrolledOnScreen",{factory:function(){return{fully:Pya,partially:Qya}}}),CN=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};CN.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?Rya(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):Sya(a,this.isScrolledOnScreen,b)};
CN.\u0275fac=function(a){return new (a||CN)(p(eLb),p(fLb))};CN.\u0275prov=Hc({token:CN,factory:CN.\u0275fac,providedIn:"root"});
var DN=function(a){Y.call(this,a)};X(DN,Y);DN.prototype.getUrl=function(){return Pi(this,1)};DN.prototype.setUrl=function(a){return m(this,1,a)};DN.prototype.hasUrl=function(){return Oi(this,1)};DN.messageId="b.ImageRedirectRequest";
var EN=function(a){Y.call(this,a)};X(EN,Y);EN.prototype.getUrl=function(){return Pi(this,1)};EN.prototype.setUrl=function(a){return m(this,1,a)};EN.prototype.hasUrl=function(){return Oi(this,1)};EN.messageId="b.ImageRedirectResponse";
var FN=function(a){this.executor=a},gLb=function(a,b){var c=new DN;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:EN}).pipe(C(function(d){return d.getUrl()}))};FN.\u0275fac=function(a){return new (a||FN)(p(lH))};FN.\u0275prov=Hc({token:FN,factory:FN.\u0275fac,providedIn:"root"});
var So=RegExp("^https?:\\/\\/((?:screenshot.googleplex.com|screenshot.corp.google.com|screen.corp.google.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),Uya=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)");
var $ya={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"};
var GN=function(a){var b=this;this.imageRedirector=a;this.src$=new W.BehaviorSubject("");this.showImage$=new W.BehaviorSubject(!1);this.error$=new W.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(C(function(c){var d=c;d=void 0===d?"":d;var e=void 0===e?48:e;c=[].concat(r(d));if(c.length<=e)e=d;else{var f=Math.floor(e/2);d=c.slice(0,f-1).join("");e=c.slice(-(f-(0!==e%2?1:2))).join("");null!=String.prototype.trimEnd&&null!=String.prototype.trimStart&&(d=d.trimEnd(),e=e.trimStart());e=d+"..."+
e}return e}));this.srcRedirected$=(0,W.combineLatest)([this.src$,this.showImage$]).pipe(hf(function(c){c=n(c);c.next();return c.next().value}),Df(function(c){var d=n(c).next().value;return(c=Wya(d))?(0,W.of)(c):gLb(b.imageRedirector,d).pipe(nf(function(){b.error$.next(!0);return d}))}))};GN.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
ni.Object.defineProperties(GN.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}}});GN.\u0275fac=function(a){return new (a||GN)(B(FN))};
GN.\u0275cmp=u({type:GN,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,cza,3,4,"ng-container",0),U(1,"async"),P(2,dza,8,9,"ng-template",null,1,Hg),P(4,eza,2,3,"ng-template",null,
2,Hg));if(a&2){var c=O(5);D("ngIf",!1===V(1,2,b.error$))("ngIfElse",c)}},dependencies:[gy,yD,tF,yN,ny],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%}\n/*# sourceMappingURL=secure_image.css.map */"],changeDetection:0});
var HN=function(){};HN.prototype.onClick=function(a,b){hLb(b)&&a.preventDefault()};var hLb=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};HN.\u0275fac=function(a){return new (a||HN)};HN.\u0275dir=u({type:HN,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&M("click",function(c){return b.onClick(c,c.target)})}});
var iLb={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},IN=function(a,b){var c=this;this.activeSession=a;this.userPreferencesManager=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=iLb;this.src$=new W.BehaviorSubject("");this.isMarkdownImage$=new W.BehaviorSubject(!1);this.displayMode$=(0,W.combineLatest)([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(C(function(d){var e=n(d);d=e.next().value;var f=e.next().value;e=e.next().value;return d&&
Cq(c.activeSession,"enableImageSummary")&&c.activeSession.isInternalSession()?!f&&e?"COLLAPSE":f?"SHOW":"HIDE":"HIDE"}),Cf("HIDE"))};ni.Object.defineProperties(IN.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}}});IN.\u0275fac=function(a){return new (a||IN)(B(NG),B(aI))};
IN.\u0275cmp=u({type:IN,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,hza,5,5,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.src$))},dependencies:[gy,iy,jy,GN,ny],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}\n/*# sourceMappingURL=snipit_image.css.map */"],
changeDetection:0});
[].concat(r(BKb),[BN,yN]);var JN=function(){};JN.\u0275fac=function(a){return new (a||JN)};JN.\u0275mod=Yc({type:JN});JN.\u0275inj=Ic({imports:[vy,AF,uF,uG,oB,YM]});
var LN=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka){Z.call(this);var Ja=this;this.bLocation=a;this.$route=b;this.timeout=c;this.activeSession=d;this.hotkeys=e;this.paths=f;this.userPrefs=h;this.issuePagination=k;this.userFeedback=y;this.ngZone=F;this.matDialogService=K;this.renderer=S;this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();this.sidebarDragSaver=this.sidebarDragOffset=null;Aa.install();Ka.install();
xHb(x);this.subscriptions.add(t.onClickAppMenuIcon.subscribe(function(){Ja.matSidebarWidth=185>Ja.matSidebarWidth?"open":0}));h.homepagePreferences$.pipe(Ef(this.destroyed$)).subscribe(function(Da){J.homepagePreferences=Da});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(Ef(this.destroyed$)).subscribe(function(Da){Da=nza(Da.density);Da!==Ja.densityClass&&(Ja.renderer.addClass(document.body,Da),Ja.renderer.removeClass(document.body,
Ja.densityClass),Ja.densityClass=Da)});this.subscriptions.add(tKb(q,function(Da){Ja.doSearch(Da)}));var Jb=f.createIssue(),ub=f.listIssues({q:pKb(d.getUserEmail())}),fb=f.listIssues({q:"cc:"+d.getUserEmail()}),pa=f.listIssues({q:qKb(d.getUserEmail())}),xa=f.listIssues({q:"reporter:"+d.getUserEmail()}),Ca=f.listIssues({q:q.getStarred()}),Za=f.listIssues({q:q.getVoted()});this.subscriptions.add(jI(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var Da=
document.querySelector(".search-box-container .search-box");null==Da||Da.focus();null==Da||Da.select()}},{keys:[gk("2"),roa()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){Ja.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Jb)}},{keys:[hk("g","n")],displayAs:"g then n",description:'Go to "Needs attention"',onPress:function(){a.url("attention")}},{keys:[hk("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',
onPress:function(){a.url(ub)}},{keys:[hk("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url(fb)}},{keys:[hk("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(xa)}},{keys:[hk("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ca)}},{keys:[hk("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.url(Za)}},{keys:[hk("g","v")],displayAs:"g then v",
description:'Go to "To be verified"',onPress:function(){a.url(pa)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(Da){if(0===Da&&20<Ja.sidebarDragPosition||1===Da&&!(20<Ja.sidebarDragPosition))20<Ja.sidebarDragPosition?KN(Ja,20,1):KN(Ja,Ja.lastOpenPosition,1);Ja.matSidebarWidth=0===Da?0:"open"}},{keys:["?",qoa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",
onPress:function(){Ja.matDialogService.open(mI,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(sf(),Ef(this.destroyed$)).subscribe(function(Da){Ja.dismissedMessageId=Da.bannerMessageId||"";Da=(Da.layoutPreferences||{}).leftSidebarWidth;Ja.matSidebarWidth=Da||220;if(void 0===Da)Ja.sidebarDragPosition=220;else if(90>Da)Ja.sidebarDragPosition=20;else{if(220<Da){var Ab=jLb();Da>Ab&&(Da=Ab)}185>
Da&&(Da=185);Ja.sidebarDragPosition=Da}});(0,W.fromEvent)(document,"mouseup",{capture:!0}).pipe(Ef(this.destroyed$)).subscribe(function(){Ja.sidebarDragOffset&&(Ja.sidebarDragOffset=null,KN(Ja,Ja.sidebarDragPosition,1))});(0,W.fromEvent)(J,"resize").pipe(Ef(this.destroyed$)).subscribe(function(){if(220<Ja.sidebarDragPosition){var Da=jLb();Ja.sidebarDragPosition>Da&&KN(Ja,Da,3E3)}});this.ngZone.runOutsideAngular(function(){(0,W.fromEvent)(document,"mousemove").pipe(Ef(Ja.destroyed$)).subscribe(function(Da){if(Ja.sidebarDragOffset){Da=
Da.pageX-Ja.sidebarDragOffset;if(90>Da)Da=20;else if(185>Da)Da=185;else{var Ab=jLb();Da>Ab&&(Da=Ab)}KN(Ja,Da,0)}})});aa.start();zK()&&(null!=yHb&&yHb.disconnect(),yHb=new wo.PerformanceObserver(zHb),yHb.observe({entryTypes:["measure"]}));setTimeout(Nya,6E4);ba.start();ka.initOnce();wa.initOnce();J.emergencyBugjugglerWorkaround={session:d,issueComments:R}};X(LN,Z);LN.\u0275dir=Z.\u0275dir;LN.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};
LN.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var jLb=function(){var a=window.innerWidth;return 1075<=a?a-855:220},lza=function(a,b){a.userPrefs.layoutPreferences$.pipe(Df(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(sf(),Ef(a.destroyed$)).subscribe()},KN=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(){lza(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};LN.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=YDb(this.paths,a);kJ(this.issuePagination);b&&this.$route.reload();this.bLocation.url(a)};var iza=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(sf(),Ef(a.destroyed$)).subscribe())};LN.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
LN.\u0275fac=function(a){return new (a||LN)(B(oI),B(jJb),B(jH),B(NG),B(iI),B(pI),B(aI),B(iJ),B(IM),B(eJ),B(AK),B(qN),B(Mf),B(IC),B(hJ),B(zL),B(tw),B(uN),B(wN),B(wL),B(vN),B(nN),B(XH))};
LN.\u0275cmp=u({type:LN,selectors:[["app-root"]],features:[Of],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"],[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&&(H(0,"b-hiring-banner")(1,"b-terms-of-service"),P(2,kza,4,2,"div",0),H(3,"b-sso-expired-callout-outlet"),E(4,"div",1),P(5,mza,2,2,"b-resizable-sidebar",2),E(6,"div",3),H(7,"b-router-outlet"),G()(),H(8,"b-footer")(9,"bug-screensaver-manager"));a&2&&(A(2),D("ngIf",b.announcement&&(b.announcement&&b.announcement.message?b.announcement.dismissible?
null===b.dismissedMessageId?!1:b.announcement.messageId!==b.dismissedMessageId:!0:!1)),A(3),D("ngIf",!b.isAnonymous))},dependencies:function(){return[gy,ML,BN,MM,hN,rH,EL,JL,hH]},encapsulation:2});var MN=function(){};MN.\u0275fac=function(a){return new (a||MN)};MN.\u0275mod=Yc({type:MN});MN.\u0275inj=Ic({imports:[vy,NL,JN,aN,kN,sH,IL,KL,HL,AF,uF,nI]});
var NN=function(a){Y.call(this,a)};X(NN,Y);NN.prototype.getUrl=function(){return Pi(this,1)};NN.prototype.setUrl=function(a){return m(this,1,a)};NN.prototype.hasUrl=function(){return Oi(this,1)};NN.messageId="b.AttachmentUrlResponse";
var ON=function(a){this.executor=a};ON.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(Ara(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:NN}).then(function(f){return f.getUrl()})};ON.\u0275fac=function(a){return new (a||ON)(p(mH))};ON.\u0275prov=Hc({token:ON,factory:ON.\u0275fac,providedIn:"root"});
var PN=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal=!1;this.isInternal=a.isInternalSession()};PN.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};PN.\u0275fac=function(a){return new (a||PN)(B(NG),B(vg),B(wg))};PN.\u0275dir=u({type:PN,selectors:[["","internalOnly",""]]});
var QN=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},lp=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"};QN.prototype.getIssueAccessLimit=function(){return""};
var kLb=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":lp(a)},mib=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access"},lLb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},mLb=function(a){return lLb(a)+"#recommended-access-settings"},
n$a=function(a){return lp(a)+"#expanded-access-on-components"},nLb=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"},s2a=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},oLb=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#creating-moving-issues"},
Hu=function(){return"http://go/buganizer-retention"};QN.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 vjb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};QN.prototype.getDisablingFieldsHelpLink=function(){return vjb()+"#hiding-inherited-fields"};
var pLb=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};QN.\u0275fac=function(a){return new (a||QN)(p(NG))};QN.\u0275prov=Hc({token:QN,factory:QN.\u0275fac,providedIn:"root"});
var RN=function(a){this.window=a};RN.prototype.openInNewTab=function(a){a=Gh(a);Kma(this.window,a,"_blank")};var lq=function(a,b){b=Gh(b);Kma(a.window,b)},SN=function(a,b){a=a.window.location;b=Gh(b);b=Wja(b);void 0!==b&&(a.href=b)};RN.\u0275fac=function(a){return new (a||RN)(p(hJ))};RN.\u0275prov=Hc({token:RN,factory:RN.\u0275fac,providedIn:"root"});
var TN=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};TN.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
TN.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;pza(this)?(this.hasViewAccess=!1,TJ(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)};TN.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var pza=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},qLb=function(a){var b=a.download&&fna(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?SN(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){wJ(a.butterBar,"Failed to load attachment. Please refresh and try again.");a.close()})};TN.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
TN.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};TN.\u0275fac=function(a){return new (a||TN)(B(HC),B(EC),B(SJ),B(ON),B(uJ),B(RN),B(QN),B(qH,2))};
TN.\u0275cmp=u({type:TN,selectors:[["b-attachment-download-dialog"]],features:[mg([qH])],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&&(E(0,"h1",0),Q(1,"Access Attachment"),G(),E(2,"div",1)(3,"div",2),Q(4," Are you sure you would like to access the following attachment? "),G(),H(5,"br"),E(6,"div",3)(7,"div",4),H(8,"mat-icon",5),G(),E(9,"div",6),Q(10),G()(),H(11,"br"),P(12,qza,2,1,"ng-container",
7),P(13,rza,3,0,"div",8),G(),P(14,sza,1,0,"mat-spinner",9),E(15,"div",10)(16,"button",11),M("click",function(){return b.close()}),Q(17," Cancel "),G(),E(18,"button",12),M("click",function(){return qLb(b)}),Q(19," Continue "),G()());a&2&&(A(10),T(" ",b.attachment.filename," "),A(3),D("ngIf",!b.isLoading&&!b.hasViewAccess),A(1),D("ngIf",b.isLoading),A(4),D("disabled",!b.hasViewAccess))},dependencies:[gy,KC,LC,MC,pC,yD,eM,PN],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 UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275mod=Yc({type:UN});UN.\u0275inj=Ic({imports:[vy]});
var rLb=Object.assign({},new FC,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),VN=function(){};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275mod=Yc({type:VN});VN.\u0275inj=Ic({providers:[{provide:Uub,useValue:rLb}],imports:[NC,NC]});
var WN=function(){};WN.\u0275fac=function(a){return new (a||WN)};WN.\u0275mod=Yc({type:WN});WN.\u0275inj=Ic({imports:[vy,VN,AF,NC,uF,QM,GL,ZG,UN]});
var XN=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new uIb(function(d){a:{var e=n(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,W.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:Rj}).pipe(C(Lma))},10)};XN.prototype.get=function(a){return this.memoized.get(a)};XN.\u0275fac=function(a){return new (a||XN)(p(lH),p(NG))};
XN.\u0275prov=Hc({token:XN,factory:XN.\u0275fac,providedIn:"root"});
var YN=function(a,b,c,d){Z.call(this);var e=this;this.errorHandler=d;this.cachedFormatters=new Map;this.formatPrefChange$=new W.Subject;this.userTimeZone=null;this.timeZones={};this.userPrefs=MG.dateTimePreferences;Promise.all(c.supportedTimeZones.map(function(f){if(""===f.id)return Promise.resolve({name:"",timeZone:null});var h=b.get(f.id).pipe(Ef(e.destroyed$));return(0,W.firstValueFrom)(h).then(function(k){return{name:f.name,timeZone:k}})})).then(function(f){f=n(f);for(var h=f.next();!h.done;h=
f.next())h=h.value,e.timeZones[h.name]=h.timeZone;a.preferences$.pipe(Ef(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)})};X(YN,Z);YN.\u0275dir=Z.\u0275dir;YN.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new gD(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var sLb=function(a,b){return a.formatPrefChange$.subscribe(b)};YN.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};YN.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};YN.\u0275fac=function(a){return new (a||YN)(p(aI),p(XN),p(VG),p(xJ))};YN.\u0275prov=Hc({token:YN,factory:YN.\u0275fac,providedIn:"root"});
var tLb={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"}}},ZN=tLb;ZN=tLb;
var uLb={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 vLb={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"},$N=vLb;$N=vLb;
var aO=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_=$N.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)};
aO.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=wLb(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,t=!0;b[0]<q&&t;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);t=!1;break;default:b[0]--,t=!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_=wLb(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=wLb(this,a,b),b[0]+=c,
this.negativeSuffix_=wLb(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
aO.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_($N.DECIMAL_PATTERN);break;case 2:this.applyPattern_($N.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_($N.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=$N.CURRENCY_PATTERN;var c=["0"],d=uLb[$N.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:xLb(this,1);break;case 6:xLb(this,2);break;default:throw Error("Rc");
}};var xLb=function(a,b){a.compactStyle_=b;a.applyPattern_($N.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("Pc");a.significantDigits_=2};
aO.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($N.INFINITY,b[0])==b[0]){b[0]+=$N.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,t=1,x=$N.DECIMAL_SEP,y=$N.GROUP_SEP,F=$N.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("Tc");y=y.replace(/\u202f/g,"\u00a0");for(var K="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),R=yLb(J);if(0<=R&&9>=R)K+=R,k=!0;else if(J==x.charAt(0)){if(f||h)break;K+=".";f=!0}else if(J==y.charAt(0)&&("\u00a0"!=y.charAt(0)||b[0]+1<e.length&&0<=yLb(e.charAt(b[0]+1)))){if(f||h)break}else if(J==F.charAt(0)){if(h)break;K+="E";h=!0;q=b[0]}else if("+"==J||"-"==J){if(k&&q!=b[0]-1)break;K+=
J}else if(1==this.multiplier_&&J==$N.PERCENT.charAt(0)){if(1!=t)break;t=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&J==$N.PERMILL.charAt(0)){if(1!=t)break;t=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(t=this.multiplier_);e=parseFloat(K)/t}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};
aO.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("Uc");if(isNaN(a))return $N.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=bO;else{c=Math.abs(c);var d=zLb(this,1>=c?0:ALb(c)).divisorBase;c=zLb(this,d+ALb(BLb(this,cO(c,-d)).intValue))}a=cO(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)CLb(this,e,this.minimumIntegerDigits_,b),DLb(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=cO(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=cO(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=cO(e,-1)):(f-=this.minimumIntegerDigits_-1,e=cO(e,this.minimumIntegerDigits_-
1));CLb(this,e,h,b);DLb(this,f,b)}}else CLb(this,a,this.minimumIntegerDigits_,b);else b.push($N.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 BLb=function(a,b){var c=cO(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=ELb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(cO(c,-a.maximumFractionDigits_)),a=Math.floor(c-cO(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},CLb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("Uc");d||(d=[]);b=BLb(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(cO(q,-1));k=q+k;var t=$N.DECIMAL_SEP;q=$N.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 F,K=$N.GROUP_SEP,J=k.length,R=0;R<J;R++)if(d.push(String.fromCharCode(q+Number(k.charAt(R)))),1<J-R)if(F=e[y],R<c){var S=c-R;(1===F||0<F&&1===
S%F)&&d.push(K)}else y<e.length&&(R===c?y+=1:F===R-c-x+1&&(d.push(K),x+=F,y+=1))}else{c=k;k=a.groupingArray_;e=$N.GROUP_SEP;F=c.length;K=[];for(x=k.length-1;0<=x&&0<F;x--){y=k[x];for(J=0;J<y&&0<=F-J-1;J++)K.push(String.fromCharCode(q+Number(c.charAt(F-J-1))));F-=y;0<F&&K.push(e)}d.push.apply(d,K.reverse())}}else h||d.push(String.fromCharCode(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(t);f=String(f);h=f.split("e+");2==h.length&&(f=String(ELb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=fw("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+fw("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))))},DLb=function(a,b,c){c.push($N.EXP_SYMBOL);0>b?(b=-b,c.push($N.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push($N.PLUS_SIGN);b=""+b;for(var d=$N.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},yLb=function(a){a=a.charCodeAt(0);if(48<=
a&&58>a)return a-48;var b=$N.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},wLb=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+=$N.DEF_CURRENCY_CODE):(h=$N.DEF_CURRENCY_CODE,d+=h in uLb?uLb[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+=$N.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+=$N.PERMILL;break;default:d+=h}}return d},bO={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
zLb=function(a,b){a=1==a.compactStyle_?ZN.COMPACT_DECIMAL_SHORT_PATTERN:ZN.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=ZN.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return bO;b=Math.min(14,b);var c=a[cO(1,b)];for(--b;!c&&3<=b;)c=a[cO(1,b)],b--;if(!c)return bO;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]}:bO:bO},ALb=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},cO=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))},FLb=function(a,b){return a&&isFinite(a)?cO(Math.round(cO(a,b)),-b):a},ELb=function(a,b,c){if(!a)return a;b=b-ALb(a)-1;return b<-c?FLb(a,-c):FLb(a,b)};
var GLb=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"},HLb=GLb;HLb=GLb;
var ILb=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"},JLb=ILb;JLb=ILb;
var dO=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=$N;var b=ZN;if(KLb!==a||LLb!==b)KLb=a,LLb=b,MLb=new aO;this.numberFormatter_=MLb},KLb=null,LLb=null,MLb=null,NLb=RegExp("'([{}#].*?)'","g"),OLb=RegExp("''","g");dO.prototype.format=function(a){return this.format_(a,!1)};
dO.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=PLb(this,this.pattern_);this.parsedPattern_=QLb(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Ga(this.initialLiterals_);c=[];RLb(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 RLb=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,t=c[h];void 0===t?q.push("Undefined parameter - "+h):(k.literals_.push(t),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;t=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),RLb(k,y,q,t,x));break;case 0:h=b[f].value;SLb(a,h,c,JLb,d,e);break;case 1:h=b[f].value,SLb(a,h,c,HLb,
d,e)}},SLb=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=[],RLb(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},PLb=function(a,b){var c=a.initialLiterals_,d=bv(a.buildPlaceholder_,a);b=b.replace(OLb,function(){c.push("'");return d(c)});return b=b.replace(NLb,function(e,f){c.push(f);return d(c)})},
TLb=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},ULb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,VLb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,WLb=/^\s*(\w+)\s*,\s*select\s*,/,QLb=function(a,b){var c=[];b=TLb(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(ULb.test(f)?0:VLb.test(f)?1:WLb.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=XLb(a,b[d].value);break;case 0:e.type=0;e.value=YLb(a,b[d].value);break;case 1:e.type=1;e.value=ZLb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},XLb=function(a,b){var c="";b=b.replace(WLb,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=TLb(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=QLb(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},YLb=function(a,b){var c="",d=0;b=b.replace(ULb,function(q,t,x){c=t;x&&(d=parseInt(x,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=TLb(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=QLb(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},ZLb=function(a,b){var c="";b=b.replace(VLb,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=TLb(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=QLb(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};dO.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};
var aMb=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=iD(b),f=iD(c),h=iD(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=$Lb("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=$Lb("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=$Lb("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},$Lb=function(a,b,c){return(new dO(a)).format({COUNT:b,TEXT:c})};
var eO=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new AI(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(C(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(C(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(Df(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,W.of)(void 0)}))};
eO.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new gD(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};eO.prototype.formatUserCalendar=function(a){var b=this;return(0,W.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
eO.prototype.formatUserTime=function(a){var b=this;return(0,W.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var bMb=function(a,b){return(0,W.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(C(function(c){var d=n(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},cMb=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(C(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,W.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},C1a=function(a,b){var c=void 0;c=void 0===c?0:c;b=void 0===b?!1:b;var d=new Wi;c&&d.setTime(c);c=new Wi;
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 cD("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new cD(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"};eO.\u0275fac=function(a){return new (a||eO)(p(aI),p(XN))};eO.\u0275prov=Hc({token:eO,factory:eO.\u0275fac,providedIn:"root"});
var dMb=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]];
var eMb,fMb,gMb=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],hMb=Symbol("bd"),iMb=Symbol("bd"),fO=function(a){var b=this;this.dateFormatter=a;this.timestampMs$=new W.ReplaySubject(1);this.timestampIso$=this.timestampMs$.pipe(C(function(c){return c?(new Date(c)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(C(function(c){if(void 0!==c)return new Date(c)}));this[eMb]=this.timestampDate$.pipe(Df(function(c){if(void 0===c)return(0,W.of)("");switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);
case "time":return b.dateFormatter.formatUserTime(c);case "datetime":return bMb(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=n(dMb),e=d.next();!e.done;e=d.next()){var f=n(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,W.of)(c);default:return Ai(b.mode)}}));this[fMb]=this.timestampDate$.pipe(Df(function(c){return void 0===
c?(0,W.of)(""):(0,W.combineLatest)(gMb.map(function(d){return cMb(b.dateFormatter,c,d.id).pipe(C(function(e){return{formatted:e,tzName:d.name}}))})).pipe(jMb)}));this.vars$=(0,W.combineLatest)([this[hMb],this[iMb]]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};fO.prototype.ngOnInit=function(){};
ni.Object.defineProperties(fO.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):a instanceof Cj?1E3*a.getSeconds():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())}}});eMb=hMb;fMb=iMb;fO.\u0275fac=function(a){return new (a||fO)(B(eO))};
fO.\u0275cmp=u({type:fO,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode"},decls:2,vars:3,consts:[[4,"ngIf"],[2,"padding-left","5px",3,"title"]],template:function(a,b){a&1&&(P(0,tza,4,5,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.vars$))},dependencies:[gy,ny],encapsulation:2,changeDetection:0});
var jMb=(0,W.pipe)(C(function(a){var b=new Map;a=n(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 kMb=function(a,b,c,d){lz.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new W.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};kz(this)};X(kMb,lz);var gO=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};gO.prototype.create=function(a){return new kMb(a,this.checker,this.ngZone,this.document)};gO.\u0275fac=function(a){return new (a||gO)(p(iz),p(Mf),p(li))};
gO.\u0275prov=Hc({token:gO,factory:gO.\u0275fac,providedIn:"root"});
var lMb=["content"],hO=function(a){Z.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new sx;this.cancelClicked=new sx;this.saveClicked=new sx;this.dateSelectionChange=new sx;this.focusEscaped=new sx};X(hO,Z);hO.\u0275dir=Z.\u0275dir;
hO.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){vza(a,a.date);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Ef(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||ksb(c)}else{var d;null==(d=a.focusEscapeNotifier)||jz(d)}else a.focusEscaped.emit(b)})};
var vza=function(a,b){if(b=b instanceof Xo?b:uza(b))a.calendar.activeDate=b};hO.\u0275fac=function(a){return new (a||hO)(B(gO))};
hO.\u0275cmp=u({type:hO,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(zg(oC,7),zg(lMb,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:[Of],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&&(fg(),E(0,"div",null,0)(2,"div",1),gg(3),G(),E(4,"mat-calendar",2),M("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),U(5,"toDateTime"),U(6,"toDateTime"),G(),E(7,"div",3),P(8,yza,4,2,"div",4),E(9,"div",5)(10,"button",6),M("click",function(){return b.cancelClicked.emit()}),Q(11,"Cancel"),G(),E(12,"button",7),M("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),Q(13,"Save"),G()()()());a&2&&(Zf("container",b.renderPanel),A(4),D("selected",
V(5,5,b.date))("startAt",V(6,7,b.date)),A(4),D("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},dependencies:function(){return[gy,pC,oC,WG,iO]},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}\n/*# sourceMappingURL=date_time_picker_content.css.map */"]});
var iO=function(){};iO.prototype.transform=function(a){var b;return null!=(b=uza(a))?b:void 0};iO.\u0275fac=function(a){return new (a||iO)};iO.\u0275pipe=$c({name:"toDateTime",type:iO,pure:!0});
var mMb=[{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"}],jO=function(a,b,c,d){Z.call(this);var e=this;this.overlay=a;this.element=b;this.ngZone=c;this.hostEl=d;this.openOnEnter=this.openOnClick=!0;this.required=this.focusTrapHost=!1;this.selectedChange=new sx;this.dateSelectionChange=new sx;
this.onClose=new sx;this.opened=!1;this.destroyed$.subscribe(function(){var f;null==(f=e.overlayRef)||f.dispose()})};X(jO,Z);g=jO.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 wz(hO),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){nMb(a)})};
g.getPositionStrategy=function(){return uB(vB(wB(CB(this.overlay.position(),this.element)),8),mMb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var nMb=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,W.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(Ef(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(Ef(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(Ef(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,W.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(hf(function(c){return"Escape"===c.code}))).pipe(Ef(b)).subscribe(function(){a.close()})}};jO.\u0275fac=function(a){return new (a||jO)(B(DB),B(Rd),B(Mf),B(Rd))};
jO.\u0275dir=u({type:jO,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&M("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&&(jz(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(ksb(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&Uf("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:[Of]});
var oMb=["pickerToggle"],kO=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new sx};kO.\u0275fac=function(a){return new (a||kO)};
kO.\u0275cmp=u({type:kO,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&zg(oMb,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&&(E(0,"button",0,1),M("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),P(2,zza,1,1,"b-formatted-date-time",2),P(3,Aza,2,0,"ng-container",3),G());a&2&&(D("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),Uf("aria-labelledby",b.customAriaLabelledBy),A(2),D("ngIf",b.value),A(1),D("ngIf",!b.value))},dependencies:[jO,fO,pC,gy],styles:["\n/*# sourceMappingURL=date_time_input.css.map */"]});
new Md("ListOption");
new Md("SelectionList");
new Md("MatList");
new Md("MatNavList");
qi(pi(function(){}));pi(function(){});var lO=function(){};lO.\u0275fac=function(a){return new (a||lO)};lO.\u0275dir=u({type:lO,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var mO=function(){};mO.\u0275fac=function(a){return new (a||mO)};mO.\u0275dir=u({type:mO,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});
var pMb=["text"],qMb=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],rMb=pi(function(){}),sMb=pi(function(){}),tMb={provide:xy,useExisting:Fc(function(){return nO}),multi:!0},uMb=function(a,b){this.source=a;this.options=b},oO=function(a,b,c){var d=sMb.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new sx;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
X(oO,sMb);g=oO.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(){mla(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()};
ni.Object.defineProperties(oO.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=rh(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=rh(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});oO.\u0275fac=function(a){return new (a||oO)(B(Rd),B(Xx),B(Fc(function(){return nO})))};
oO.\u0275cmp=u({type:oO,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(Ag(c,lO,5),Ag(c,mO,5),Ag(c,QB,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(pMb,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:15,hostBindings:function(a,b){a&1&&M("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(Uf("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1),Zf("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:[Of],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&&(fg(qMb),E(0,"div",0),H(1,"div",1),P(2,Bza,1,2,"mat-pseudo-checkbox",
2),E(3,"div",3,4),gg(5),G(),gg(6,1),G());a&2&&(Zf("mat-list-item-content-reverse","after"==b.checkboxPosition),A(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),A(1),D("ngIf",b.selectionList.multiple))},dependencies:[UB,VB,gy],encapsulation:2,changeDetection:0});
var nO=function(a,b,c){var d=rMb.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new sx;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new jB(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new W.Subject;d._onTouched=function(){};return d};X(nO,rMb);g=nO.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=Ntb(Ltb(RA(QA(OA(new WA(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.subscribe(function(){return a._allowFocusEscape()});this.options.changes.pipe(Cf(null),Ef(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(Ef(this._destroyed)).subscribe(function(b){if(b.added)for(var c=n(b.added),d=c.next();!d.done;d=
c.next())d.value.selected=!0;if(b.removed)for(b=n(b.removed),d=b.next();!d.done;d=b.next())d.value.selected=!1});this._focusMonitor.monitor(this._element).pipe(Ef(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){SA(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?SA(this._keyManager,a-1):0===a&&1<this.options.length&&SA(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=xh(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!xh(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 uMb(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};
ni.Object.defineProperties(nO.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=rh(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=rh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new jB(this._multiple,this.selectedOptions.selected))}}});nO.\u0275fac=function(a){return new (a||nO)(B(Rd),B(Xx),B(sz))};
nO.\u0275cmp=u({type:nO,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&Ag(c,oO,5);if(a&2){var d;yg(d=Bg())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b._keydown(c)});a&2&&Uf("aria-multiselectable",b.multiple)("aria-disabled",b.disabled.toString())("tabindex",b._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",
multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[mg([tMb]),Of,ed],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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 pO=function(){};pO.\u0275fac=function(a){return new (a||pO)};pO.\u0275mod=Yc({type:pO});pO.\u0275inj=Ic({imports:[RB,XB,HB,YB,vy,RB,HB,YB,aH]});
var vMb=["filterInput"],qO=function(a){Z.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new sx;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};X(qO,Z);qO.\u0275dir=Z.\u0275dir;g=qO.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(Df(function(){return(0,W.timer)(0)}),Ef(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){Kq(this.trigger)};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var wMb=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
qO.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),xMb(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};qO.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})};
qO.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=n(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);xMb(this)};
var xMb=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)})},Dza=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};qO.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(Yi(a)):a};qO.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
qO.\u0275fac=function(a){return new (a||qO)(B(YN))};
qO.\u0275cmp=u({type:qO,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(zg(nF,5),zg(vMb,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:[Of,ed],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&&(E(0,"button",0)(1,"span"),Q(2),G(),H(3,"b-icon",1),G(),E(4,"mat-menu",null,2),P(6,Cza,3,4,"div",3),H(7,"mat-divider"),E(8,"div",4),P(9,Eza,2,3,"input",5),G(),P(10,Fza,1,0,"mat-divider",6),P(11,Gza,2,0,"div",7),P(12,Hza,4,1,"div",6),G());if(a&2){var c=O(5);D("matMenuTriggerFor",c);A(2);kg(b.getLabel());A(4);D("ngForOf",wMb(b));A(3);D("ngIf","REPEATED_DATE"!==
b.type);A(1);D("ngIf",Dza(b));A(1);D("ngIf",Dza(b));A(1);D("ngIf","REPEATED_DATE"===b.type)}},dependencies:[fy,gy,oF,mF,nF,WG,QG,pC,fN,fh,Ky,Ry,kO],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}\n/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});
var rO=function(){this.relayOnly=!1;this.keydown$=new W.Subject};rO.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};ni.Object.defineProperties(rO.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});rO.\u0275fac=function(a){return new (a||rO)};
rO.\u0275dir=u({type:rO,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b.onKeydown(c)});a&2&&Uf("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});
var yMb=0,sO=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+yMb;this.closePanel$=new W.ReplaySubject(1);yMb++};sO.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};sO.\u0275fac=function(a){return new (a||sO)(B(rO,8))};
sO.\u0275cmp=u({type:sO,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)}},exportAs:["onedevPopupPanel"],ngContentSelectors:["*"],decls:1,vars:0,consts:[[1,"onedev-popup-panel","gmat-elevation-z2",3,"keydown"]],template:function(a){a&1&&(fg(),P(0,Iza,2,1,"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 tO=function(a,b,c,d){this.overlay=a;this.element=b;this.viewContainerRef=c;this.focusTrapFactory=d;this.disabled=!1;this.closeOnBackdropClick=!0;this.opened=new sx;this.closed=new sx;this.isOpen=!1;this.destroyed$=new W.ReplaySubject(1);this.closingActionsSubscription=W.Subscription.EMPTY};tO.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
tO.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new xz(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=zMb(this).pipe(Ef(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
tO.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()}};tO.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 zMb=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,W.merge)(b,c,d):(0,W.merge)(c,d)};tO.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
tO.prototype.getPositionStrategy=function(){return uB(vB(wB(CB(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"}])};tO.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
ni.Object.defineProperties(tO.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});tO.\u0275fac=function(a){return new (a||tO)(B(DB),B(Rd),B(wg),B(MA))};
tO.\u0275dir=u({type:tO,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&Uf("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"]});
var AMb=0,uO=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+AMb;AMb+=1};uO.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};uO.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};uO.\u0275fac=function(a){return new (a||uO)(B(Xx))};
uO.\u0275dir=u({type:uO,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(dg("id",b.id),Zf("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var vO=function(){};vO.\u0275fac=function(a){return new (a||vO)};vO.\u0275mod=Yc({type:vO});vO.\u0275inj=Ic({});
var Kza=function(){return{$implicit:void 0}},Nza=function(a){return{$implicit:a}},wO=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new sx;this.selected=new sx;this.destroyed$=new W.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=wO.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=Mtb(new VA(this.viewOptions))};g.ngOnChanges=function(a){a.value&&BMb(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 BMb=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)}};wO.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
wO.prototype.handleKeydown=function(a){var b=this;a.pipe(Ef(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;"ArrowUp"===d||"ArrowDown"===d?(c.preventDefault(),b.keyManager.onKeydown(c)):"Home"===d||"End"===d?(c.preventDefault(),"Home"===d?TA(b.keyManager):UA(b.keyManager)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};wO.\u0275fac=function(a){return new (a||wO)(B(rO,8))};
wO.\u0275cmp=u({type:wO,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&zg(uO,5);if(a&2){var c;yg(c=Bg())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&M("focus",function(){return BMb(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,Uf("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:[ed],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,Lza,2,5,"div",0),P(1,Pza,2,1,"ng-container",1),P(2,Vza,3,2,"ng-template",null,2,Hg));a&2&&(D("ngIf",b.includeEmptyOption),A(1),D("ngForOf",b.options))},dependencies:[fy,gy,my,uO],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 xO=function(){};
var CMb=["trigger"],Xza=function(a){return{$implicit:a}},DMb=0,yO=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new sx;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+DMb;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;DMb++};X(yO,xO);g=yO.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 EMb=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};yO.prototype.setDisabledState=function(a){this.disabled=a};ni.Object.defineProperties(yO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});yO.\u0275fac=function(a){return new (a||yO)(Ad("required"))};
yO.\u0275cmp=u({type:yO,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&zg(CMb,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:[mg([{provide:xy,useExisting:Fc(function(){return yO}),
multi:!0},{provide:xO,useExisting:Fc(function(){return yO}),multi:!0}]),Of],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=v();E(0,"button",0,1);M("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){w(c);var f=O(1);return z(f.open())})("closed",function(){b.onTouched()});E(2,"span",2);Q(3);G();P(4,Yza,2,4,"ng-container",3);P(5,aAa,1,2,"ng-template",null,4,Hg);P(7,dAa,3,2,"ng-template",null,5,Hg);P(9,eAa,2,0,"svg",6);G();E(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);M("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){w(c);var f=O(1);return z(f.close())});G()()}if(a&2){var d=O(6),e=O(11);Zf("active",b.isActive());D("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);Uf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());A(3);kg(EMb(b));A(1);D("ngIf",b.valueTemplate)("ngIfElse",d);A(5);D("ngIf",b.displayArrowIcon);A(1);D("relayOnly",!0);A(2);D("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[gy,my,rO,wO,sO,tO],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 lAa=function(){return[]},zO=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=zO.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=n(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=n(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(Xi(h),e[h]||void 0)}f=n(b);for(h=f.next();!h.done;h=f.next()){var k=n(h.value);h=k.next().value;k=k.next().value;var q=d[h],t=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;t=FMb(t);x=Array.from(k.keys()).concat(t);x=n(x);for(y=x.next();!y.done;y=x.next())y=y.value,t.includes(y)?k.has(y)||k.set(y,q||null):k.set(y,null);this.repeatedCustomFieldsMap.set(h,k)}else(!t&&void 0!==k||t&&!Ri(t,k))&&b.set(h,null);else b.delete(h)}d=n(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=n(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Si(f))}this.customFields=Array.from(b.keys()).map(function(F){return a.get(F)}).filter(function(F){return F});
this.customFields=this.customFields.map(function(F){var K=b.get(F.customFieldId);F.hasMultipleValues=null===K;K?F=Object.assign(K,F):F.hasMultipleValues||"ENUM"!==F.type||(F.enumValue="");return F});c=n(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Si(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 Yo=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},FMb=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()}):[]},jAa=function(a){return a?lm(a):null},nAa=function(a,b,c){for(var d=n(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={};e=n(a.issues);for(var f=e.next();!f.done;d={$jscomp$loop$prop$issueValues$1944:d.$jscomp$loop$prop$issueValues$1944,$jscomp$loop$prop$action$1945:d.$jscomp$loop$prop$action$1945},f=e.next()){f=f.value;var h=Kba(f.customFieldValueMap,function(x){return x.customFieldId===b});d.$jscomp$loop$prop$issueValues$1944=FMb(h);c.valueMap.forEach(function(x){return function(y,F){y&&!x.$jscomp$loop$prop$issueValues$1944.includes(F)?
x.$jscomp$loop$prop$issueValues$1944.push(F):!1===y&&(x.$jscomp$loop$prop$issueValues$1944=x.$jscomp$loop$prop$issueValues$1944.filter(function(K){return K!==F}))}}(d));h=a.originalCustomFields.get(b).type;var k=[],q=[];"REPEATED_DATE"==h?k=d.$jscomp$loop$prop$issueValues$1944.map(function(x){return mm(Yi(x))}):"REPEATED_NUMERIC"==h&&(q=d.$jscomp$loop$prop$issueValues$1944.map(function(x){return Number(x)}));var t=new wm({customFieldId:b});switch(h){case "REPEATED_TEXT":t.repeatedTextValue={values:d.$jscomp$loop$prop$issueValues$1944};
break;case "REPEATED_DATE":t.repeatedDateValue={values:k};break;case "REPEATED_ENUM":t.repeatedEnumValue={values:d.$jscomp$loop$prop$issueValues$1944};break;case "REPEATED_NUMERIC":t.repeatedNumericValue={values:q}}d.$jscomp$loop$prop$action$1945={fieldName:"customField",customFieldValue:t,actionType:t.isEmpty()?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(x){return function(y){return y.actions.some(function(F){return Ri(x.$jscomp$loop$prop$action$1945,F)})}}(d));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):
a.bulkEditOps.push({actions:[d.$jscomp$loop$prop$action$1945],issueIds:[f.issueId]})}}},GMb=function(a){var b=a.customFields.filter(function(h){return!h.type.includes("REPEATED")&&!Ri(h,a.originalCustomFields.get(h.customFieldId))}),c=[];b=n(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=new wm({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":d.numericValue=
e.numericValue||void 0}if(e=d.isEmpty())d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var f=a.issues.map(function(h){return h.issueId});b=a.bulkEditOps.findIndex(function(h){a:if(h=h.issueIds,Ha(f)&&Ha(h)&&f.length==h.length){for(var k=f.length,q=0;q<k;q++)if(f[q]!==h[q]){h=!1;break a}h=!0}else h=!1;return h});-1!==b?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:f})}};
zO.\u0275fac=function(a){return new (a||zO)(B(HC),B(EC))};
zO.\u0275cmp=u({type:zO,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&&(E(0,"h2",0),Q(1,"Update custom fields"),G(),E(2,"mat-dialog-content"),P(3,fAa,2,0,"div",1),P(4,rAa,8,6,"div",2),G(),E(5,"mat-dialog-actions")(6,"button",3),M("class",function(){return b.dialogRef.close()}),Q(7,"Cancel"),G(),E(8,"button",4),M("click",
function(){GMb(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),Q(9," Save "),G()());a&2&&(A(3),D("ngIf",0===b.customFields.length),A(1),D("ngForOf",b.customFields))},dependencies:[fy,gy,iy,jy,ky,JC,KC,LC,MC,yO,qO,fh,Ty,Ky,Ry,kO,pC,tF],encapsulation:2});
var AO=function(){};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275mod=Yc({type:AO});AO.\u0275inj=Ic({imports:[vy]});
var HMb=function(a){this.patternParts_=[];this.dateTimeSymbols_=bD;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
HMb.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(" "==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};HMb.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)};
HMb.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 IMb;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],t=d;if(" "==q.text.charAt(0)){if(q=c[0],JMb(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(t&&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;t=h;var x=c[0],y=0;for(k=t;k<this.patternParts_.length;k++){var F=this.patternParts_[k],K=F.count;if(0===K)break;if(k==t&&(K-=y,y++,0==K)){k=0;break a}var J=k>t&&F.numeric,R=c[0];if(!KMb(this,q,c,F,K,f,!1)||J&&c[0]-R<K)k=t-1,c[0]=x}k-=t}if(0>=k)return 0;h+=
k-1}else if(!KMb(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=tvb(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 KMb=function(a,b,c,d,e,f,h){JMb(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return BO(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return LMb(a,b,c,e,d,f);case "E":return BO(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=BO(b,c,a,function(k){return f.dayPeriodIndex=
k},h),f.dayPeriodName=e[f.dayPeriodIndex],h?b:!0;case "a":return b=BO(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},h),h?b:!0;case "y":return MMb(a,b,c,d,e,f);case "Q":return BO(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return CO(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return NMb(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=CO(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=CO(a,b,c,d,e,function(k){f.minutes=k},h),h?b:!0;case "s":return CO(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return OMb(a,b,c,f);default:return!1}},MMb=function(a,b,c,d,e,f){var h=c[0];e=DO(a,b,c,e);null===e&&(e=DO(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},LMb=function(a,b,c,d,e,f){return e.numeric&&CO(a,b,c,
e,d,function(h){f.month=h-1})?!0:BO(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},NMb=function(a,b,c,d,e){var f=c[0];a=DO(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},OMb=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=DO(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=DO(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},CO=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=DO(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},BO=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,t=0,x=null,y=a.substring(f[0]).toLowerCase(),F=0;F<k.length;F++){var K=k[F].toLowerCase();
if(q&&0==K.indexOf(y)){t=y.length;x=F;break}k[F].length>t&&0==y.indexOf(K)&&(t=k[F].length,x=F)}null!==x&&(f[0]+=t);f=x;if(null!==f)return d(f),!0}return!1},JMb=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&(b[0]+=a[0].length)},DO=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)},IMb=function(){};IMb.prototype.ambiguousYear=!1;
var Gub=Array(31).fill(0).map(function(a,b){return""+(b+1)}),EO=function(){var a=IB.apply(this,arguments)||this;a.locale=bD;return a};X(EO,IB);EO.prototype.setLocale=function(){throw Error("ed");};EO.prototype.getYear=function(a){return a.getYear()};EO.prototype.getMonth=function(a){return a.getMonth()};EO.prototype.getDate=function(a){return a.getDate()};var Fub=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
EO.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};EO.prototype.clone=function(a){return a.clone()};var kC=function(a,b,c){return new Xo(a,b,c)};EO.prototype.parse=function(a,b){if(""===a)return null;b=new HMb(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new Xo(new Date(a));b.parse(a,c);return c};EO.prototype.format=function(a,b){if(!this.isValid(a))throw Error("fd");return(new gD(b)).format(a)};
var iC=function(a,b){a=a.clone();a.add(new cD(b));return a},jC=function(a,b){a=a.clone();a.add(new cD(0,b));return a},gC=function(a,b){a=a.clone();a.add(new cD(0,0,b));return a},JB=function(a){return a instanceof Xo};EO.prototype.isValid=function(a){return!isNaN(a.getTime())};EO.prototype.invalid=function(){return new Xo(NaN)};EO.prototype.sameDate=function(a,b){return a&&b?(new Wi(a)).equals(b):!1};EO.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(EO)))(b||EO)}}();
EO.\u0275prov=Hc({token:EO,factory:EO.\u0275fac});
var PMb={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 a zzzz"},FO=PMb;FO=PMb;
var GO=bD.DATEFORMATS[3];GO=GO.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===GO&&(GO="MM/dd/yyyy");var QMb={parse:{dateInput:GO},display:{dateInput:GO,monthYearLabel:FO.YEAR_MONTH_ABBR,dateA11yLabel:FO.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:FO.YEAR_MONTH_FULL}};
var HO=function(){};HO.\u0275fac=function(a){return new (a||HO)};HO.\u0275mod=Yc({type:HO});HO.\u0275inj=Ic({providers:[{provide:IB,useClass:EO},{provide:OB,useValue:QMb}],imports:[vy,uF,AF,tG,aH,FA]});
var IO=function(){};IO.\u0275fac=function(a){return new (a||IO)};IO.\u0275mod=Yc({type:IO});IO.\u0275inj=Ic({imports:[HO,AO,uF,AF,vy]});
var JO=function(){};JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275mod=Yc({type:JO});JO.\u0275inj=Ic({imports:[vy,pF,aH,pO,$G,AF,aD,iN,fz,IO]});
var KO=function(){};KO.\u0275fac=function(a){return new (a||KO)};KO.\u0275mod=Yc({type:KO});KO.\u0275inj=Ic({imports:[vy]});
var LO=function(){};LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275mod=Yc({type:LO});LO.\u0275inj=Ic({imports:[vy,GB,Cz,AF,uG,FA,hM]});
var MO=function(){};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275mod=Yc({type:MO});MO.\u0275inj=Ic({imports:[vy,AF,vO]});
var NO=function(){};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275mod=Yc({type:NO});NO.\u0275inj=Ic({imports:[vy,uF,AF,fz,KO,MO,LO]});
var OO=function(){};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275mod=Yc({type:OO});OO.\u0275inj=Ic({imports:[vy,NC,NO,JO,fz,IO,AF,uG]});
var RMb=new Md("GMAT_CHECKBOX_OPTION");
var SMb=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),PO=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};PO.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,r(SMb.values())),this.elementRef.nativeElement.classList.add(SMb.get(this.color)))};
PO.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};PO.\u0275fac=function(a){return new (a||PO)(B(Rd),B(RMb,8))};PO.\u0275dir=u({type:PO,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});
var QO=function(){};QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275mod=Yc({type:QO});QO.\u0275inj=Ic({});
var RO=function(){this.ariaLabelledby=this.ariaLabel="";this.indeterminate=this.disabled=this.checked=!1;this.label="";this.wrap=!1;this.labelPosition="after";this.tooltip="";this.change=new sx;this.click=new sx;this.labelClick=new sx};RO.prototype.onClick=function(a){this.click.emit(a)};RO.\u0275fac=function(a){return new (a||RO)};
RO.\u0275cmp=u({type:RO,selectors:[["b-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("wrap",b.wrap)},inputs:{ariaLabel:"ariaLabel",ariaLabelledby:"ariaLabelledby",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",wrap:"wrap",labelPosition:"labelPosition",tooltip:"tooltip"},outputs:{change:"change",click:"click",labelClick:"labelClick"},decls:3,vars:8,consts:[["gmat-checkbox","",3,"aria-label","aria-labelledby","checked","disabled","indeterminate","labelPosition",
"matTooltip","click","change"],[3,"click"]],template:function(a,b){a&1&&(E(0,"mat-checkbox",0),M("click",function(c){return b.onClick(c)})("change",function(c){b.checked=c.checked;b.change.emit(c.checked)}),E(1,"span",1),M("click",function(c){b.labelClick.emit(c)}),Q(2),G()());a&2&&(D("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("checked",b.checked)("disabled",b.disabled)("indeterminate",b.indeterminate)("labelPosition",b.labelPosition)("matTooltip",b.tooltip),A(2),kg(b.label))},
dependencies:[PO,fN,tF],styles:[".wrap[_ngcontent-%COMP%]   .mat-checkbox-layout[_ngcontent-%COMP%]   .mat-checkbox-label[_ngcontent-%COMP%]{white-space:normal !important}mat-checkbox[_ngcontent-%COMP%]:focus-within   div.mat-checkbox-ripple[_ngcontent-%COMP%]{left:calc(50% - 15px);top:calc(50% - 15px);height:30px;width:30px;background-color:#dadce0;background-color:var(--c300);z-index:auto;border-radius:100%}"],changeDetection:0});var SO=function(){};SO.\u0275fac=function(a){return new (a||SO)};
SO.\u0275mod=Yc({type:SO});SO.\u0275inj=Ic({imports:[QO,iN,uG]});
var TO=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new sx;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))}};TO.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
TO.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};TO.\u0275fac=function(a){return new (a||TO)(B(Rd))};TO.\u0275dir=u({type:TO,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var UO=function(){};UO.\u0275fac=function(a){return new (a||UO)};UO.\u0275mod=Yc({type:UO});UO.\u0275inj=Ic({});
var VO=function(a){this.codefont$=a.codeFont$};VO.\u0275fac=function(a){return new (a||VO)(p(aI))};VO.\u0275prov=Hc({token:VO,factory:VO.\u0275fac,providedIn:"root"});
var TMb=function(a){return["chip","gmat-caption",a]},WO=function(){this.variant="grey";this.isTall=!1};WO.\u0275fac=function(a){return new (a||WO)};
WO.\u0275cmp=u({type:WO,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(fg(),E(0,"div",0)(1,"div",1),gg(2),G()());a&2&&D("ngClass",og(1,TMb,b.variant))},dependencies:[ey],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 XO=function(a){this.chip=a};XO.\u0275fac=function(a){return new (a||XO)(B(WO))};XO.\u0275dir=u({type:XO,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&Yf("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 YO=function(){};YO.\u0275fac=function(a){return new (a||YO)};YO.\u0275cmp=u({type:YO,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&Uf("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&Q(0,"\u00a0\u00b7\u00a0")},encapsulation:2});
var UMb=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],VMb=function(a){return{"with-avatar":a}},ZO=function(){};ZO.prototype.ngOnInit=function(){};ZO.\u0275fac=function(a){return new (a||ZO)};
ZO.\u0275cmp=u({type:ZO,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&&(fg(UMb),E(0,"div",0)(1,"div",1)(2,"div",2),P(3,sAa,1,2,"img",3),E(4,"div",4),Q(5),G(),P(6,tAa,2,1,"div",5),G(),P(7,uAa,4,1,"div",6),E(8,"div",7),P(9,yAa,7,3,"ng-container",8),P(10,zAa,4,1,"ng-container",8),P(11,CAa,21,6,"ng-container",8),gg(12),G()(),gg(13,1),G());a&2&&(A(2),D("ngClass",og(8,VMb,b.person.imageUrl)),A(1),D("ngIf",b.person.imageUrl),A(2),T(" ",b.person.name||b.person.email," "),A(1),D("ngIf",b.person.name),A(1),D("ngIf",b.outOfOfficeDescription),A(2),D("ngIf",b.person.title||
b.person.department),A(1),D("ngIf",b.person.location),A(1),D("ngIf",b.person.ldap))},dependencies:[WO,XO,ey,gy,YO,yD],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 WMb=function(){};
var bp=function(){this.Serializable$values={}},Zo=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},$O=function(a,b){return null!=a.Serializable$values[b]};
var XMb=function(){};
var YMb=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};X(YMb,XMb);
var ZMb=function(a,b,c){var d=DAa(a.hookFactory,b);return null==d?c:W.EMPTY.pipe(Ff({complete:function(){d.onBeforeSend()}}),Dga(c.pipe(Ff(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},$Mb=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof bp?$o(b.body,HAa,IAa,JAa):b.body;return ZMb(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 aNb=function(){};aNb.prototype.send=function(a,b){EAa(a);return this.makeRequest(a).pipe(C(function(c){return b?NAa(b,c):c}))};
var bNb=new Md("API_VERSION"),cNb=new Md("REQUEST_SERVICE"),aP=function(){};aP.\u0275fac=function(a){return new (a||aP)};aP.\u0275mod=Yc({type:aP});aP.\u0275inj=Ic({});
var dNb={$Xgafv:"$.xgafv",access_token:"access_token",affinityType:"affinity.type",alt:"alt",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",contactId:"contactId",contactListType:"contactListType",
contactLookupOptionsEmailLookupType:"contactLookupOptions.emailLookupType",container:"container",containerId:"containerId",containerIds:"containerIds",contextAllowedRequesterState:"context.allowedRequesterState",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",
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",
coreIdParamsIdentityAclOptionsMode:"coreIdParams.identityAclOptions.mode",coreIdParamsIgnoreAclConditionIgnoreAclConditionType:"coreIdParams.ignoreAclCondition.ignoreAclConditionType",coreIdParamsUseRealtimeNotificationExpandedAcls:"coreIdParams.useRealtimeNotificationExpandedAcls",customLookupType:"customLookupType",dataFormatsAffinityFormatsScoreFormat:"dataFormats.affinityFormats.scoreFormat",dataFormatsProfilePhotoOptionsPrivateUrlFormat:"dataFormats.profilePhotoOptions.privateUrlFormat",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",existingSelectionsId:"existingSelections.id",existingSelectionsIdType:"existingSelections.idType",existingSelectionsQuery:"existingSelections.query",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",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",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",getPeopleRequestCoreIdParamsIdentityAclOptionsMode:"getPeopleRequest.coreIdParams.identityAclOptions.mode",
getPeopleRequestCoreIdParamsIgnoreAclConditionIgnoreAclConditionType:"getPeopleRequest.coreIdParams.ignoreAclCondition.ignoreAclConditionType",getPeopleRequestCoreIdParamsUseRealtimeNotificationExpandedAcls:"getPeopleRequest.coreIdParams.useRealtimeNotificationExpandedAcls",getPeopleRequestDataFormatsAffinityFormatsScoreFormat:"getPeopleRequest.dataFormats.affinityFormats.scoreFormat",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",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",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"},bP=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new YMb(b,c)};bP.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return $Mb(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:FAa(a,dNb,b)})};bP.\u0275fac=function(a){return new (a||bP)(p(bNb,8),p(cNb),p(WMb,8))};
bP.\u0275prov=Hc({token:bP,factory:bP.\u0275fac});var cP=function(){};cP.\u0275fac=function(a){return new (a||cP)};cP.\u0275prov=Hc({token:cP,factory:function(a){return bP.\u0275fac(a)},providedIn:aP});var dP=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new YMb(b,c)};dP.\u0275fac=function(a){return new (a||dP)(p(bNb,8),p(cNb),p(WMb,8))};dP.\u0275prov=Hc({token:dP,factory:dP.\u0275fac});var eP=function(){};eP.\u0275fac=function(a){return new (a||eP)};
eP.\u0275prov=Hc({token:eP,factory:function(a){return dP.\u0275fac(a)},providedIn:aP});
var QAa=/.*@google.com/,eNb=new Md("onedevPeopleServiceConfig"),fNb={},fP=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new W.Subject;this.config=fNb;c&&c.pipe(Ff(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),Ef(this.destroy$)).subscribe({next:function(e){d.config=e}})},gNb=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(C(function(c){var d;var e,f,h,k=null==c?void 0:null==(e=c.matches)?void 0:null==(f=e[0])?void 0:null==(h=f.personId)?void 0:h[0];if(k){var q;c=null==c?void 0:null==(q=c.people)?void 0:q[k];var t;k=null==(t=TAa(null==c?void 0:c.email))?void 0:t.value;var x,y;t=null==c?void 0:null==(x=c.name)?void 0:null==(y=x[0])?void 0:y.displayName;
var F;x=null==c?void 0:null==(d=c.photo)?void 0:null==(F=d[0])?void 0:F.url;y=SAa(null==c?void 0:c.organization);d=null==y?void 0:y.title;F=null==y?void 0:y.department;y=null==y?void 0:y.location;d={ldap:RAa(k),email:k||b||"",name:t||"",imageUrl:x,title:d,department:F,location:y}}else d={ldap:RAa(b),name:"",email:b};return d}))};fP.prototype.ngOnDestroy=function(){this.destroy$.next()};fP.\u0275fac=function(a){return new (a||fP)(p(cP),p(eP),p(eNb,8))};fP.\u0275prov=Hc({token:fP,factory:fP.\u0275fac});
var hNb=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};X(hNb,bp);hNb.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
ni.Object.defineProperties(hNb.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return $O(this,"dayOfWeek")?Zo(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return $O(this,"periodEndMinutes")?Zo(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return $O(this,"periodStartMinutes")?Zo(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var iNb=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};X(iNb,bp);iNb.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:gP},keys:["debugOptions","userIds"],objects:{debugOptions:hP}}};
ni.Object.defineProperties(iNb.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return $O(this,"debugOptions")?Zo(this,"debugOptions"):this.debugOptions=new hP},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return $O(this,"userIds")?Zo(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var jNb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};X(jNb,bp);jNb.prototype.getPartialClassMetadata=function(){return{arrays:{results:kNb},keys:["results"]}};
ni.Object.defineProperties(jNb.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return $O(this,"results")?Zo(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var iP=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;this.Serializable$values.committedUntilIsMixed=null==a.committedUntilIsMixed?null:a.committedUntilIsMixed};
X(iP,bp);iP.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","committedUntilIsMixed","eventSummary","nextAvailable","occupiedUntil"]}};
ni.Object.defineProperties(iP.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntil")?Zo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},committedUntilIsMixed:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntilIsMixed")?Zo(this,"committedUntilIsMixed"):!1},set:function(a){this.Serializable$values.committedUntilIsMixed=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return $O(this,
"eventSummary")?Zo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return $O(this,"nextAvailable")?Zo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"occupiedUntil")?Zo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var jP=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};X(jP,bp);jP.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:kP}}};
ni.Object.defineProperties(jP.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return $O(this,"geoCoordinates")?Zo(this,"geoCoordinates"):this.geoCoordinates=new kP},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return $O(this,"label")?Zo(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return $O(this,"location")?Zo(this,"location"):""},
set:function(a){this.Serializable$values.location=a}}});var lP=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.committedUntilIsMixed=null==a.committedUntilIsMixed?null:a.committedUntilIsMixed;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};X(lP,bp);
lP.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","committedUntilIsMixed","nextAvailable","occupiedUntil"]}};
ni.Object.defineProperties(lP.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntil")?Zo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},committedUntilIsMixed:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntilIsMixed")?Zo(this,"committedUntilIsMixed"):!1},set:function(a){this.Serializable$values.committedUntilIsMixed=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return $O(this,
"nextAvailable")?Zo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"occupiedUntil")?Zo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var lNb=function(){this.Serializable$values={}};X(lNb,bp);lNb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var mP=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.committedUntilIsMixed=null==a.committedUntilIsMixed?null:a.committedUntilIsMixed;
this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};X(mP,bp);mP.prototype.getPartialClassMetadata=function(){return{keys:"committedUntil committedUntilIsMixed eventSummary inMeetingsUntil nextAvailable occupiedUntil".split(" ")}};
ni.Object.defineProperties(mP.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntil")?Zo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},committedUntilIsMixed:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntilIsMixed")?Zo(this,"committedUntilIsMixed"):!1},set:function(a){this.Serializable$values.committedUntilIsMixed=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return $O(this,
"eventSummary")?Zo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"inMeetingsUntil")?Zo(this,"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return $O(this,"nextAvailable")?Zo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,
enumerable:!0,get:function(){return $O(this,"occupiedUntil")?Zo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var mNb=function(){this.Serializable$values={}};X(mNb,bp);mNb.prototype.getPartialClassMetadata=function(){return{keys:[]}};var kP=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};X(kP,bp);
kP.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};ni.Object.defineProperties(kP.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return $O(this,"latitude")?Zo(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return $O(this,"longitude")?Zo(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});
var nP=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};X(nP,bp);nP.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};ni.Object.defineProperties(nP.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return $O(this,"timeZone")?Zo(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var oP=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};X(oP,bp);oP.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId"]}};
ni.Object.defineProperties(oP.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return $O(this,"experimentalBuildingId")?Zo(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return $O(this,"experimentalDeskId")?Zo(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return $O(this,"experimentalFloorId")?Zo(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}}});
var pP=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;this.Serializable$values.committedUntilIsMixed=null==a.committedUntilIsMixed?null:a.committedUntilIsMixed};X(pP,bp);
pP.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","committedUntilIsMixed","eventSummary"]}};
ni.Object.defineProperties(pP.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"comeBackTime")?Zo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntil")?Zo(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},committedUntilIsMixed:{configurable:!0,enumerable:!0,get:function(){return $O(this,"committedUntilIsMixed")?
Zo(this,"committedUntilIsMixed"):!1},set:function(a){this.Serializable$values.committedUntilIsMixed=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return $O(this,"eventSummary")?Zo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}}});var qP=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};X(qP,bp);qP.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
ni.Object.defineProperties(qP.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"comeBackTime")?Zo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var rP=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};X(rP,bp);
rP.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
ni.Object.defineProperties(rP.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return $O(this,"code")?Zo(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return $O(this,"details")?Zo(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return $O(this,"message")?Zo(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var sP=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};X(sP,bp);sP.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
ni.Object.defineProperties(sP.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"endTime")?Zo(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"startTime")?Zo(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var tP=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};X(tP,bp);tP.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
ni.Object.defineProperties(tP.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return $O(this,"computationDuration")?Zo(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"overrideCurrentTime")?Zo(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var uP=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};X(uP,bp);uP.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:vP}}};
ni.Object.defineProperties(uP.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return $O(this,"nextCommitmentStatus")?Zo(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new vP},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"nextCommitmentTime")?Zo(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var wP=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};X(wP,bp);wP.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:sP}}};ni.Object.defineProperties(wP.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return $O(this,"timeRange")?Zo(this,"timeRange"):this.timeRange=new sP},set:function(a){this.Serializable$values.timeRange=a}}});
var xP=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};X(xP,bp);xP.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:nNb},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:yP}}};
ni.Object.defineProperties(xP.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return $O(this,"availabilities")?Zo(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"nextPollTime")?Zo(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return $O(this,"workingHours")?
Zo(this,"workingHours"):this.workingHours=new yP},set:function(a){this.Serializable$values.workingHours=a}}});var hP=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};X(hP,bp);hP.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:tP}}};
ni.Object.defineProperties(hP.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return $O(this,"forceEnableUserStatusCache")?Zo(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return $O(this,"timeSettings")?Zo(this,"timeSettings"):this.timeSettings=new tP},set:function(a){this.Serializable$values.timeSettings=a}}});
var kNb=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};X(kNb,bp);kNb.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:rP,userAvailabilities:xP,userId:gP}}};
ni.Object.defineProperties(kNb.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return $O(this,"status")?Zo(this,"status"):this.status=new rP},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return $O(this,"userAvailabilities")?
Zo(this,"userAvailabilities"):this.userAvailabilities=new xP},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return $O(this,"userId")?Zo(this,"userId"):this.userId=new gP},set:function(a){this.Serializable$values.userId=a}}});
var nNb=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};X(nNb,bp);nNb.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:zP,status:vP,timeRange:sP}}};
ni.Object.defineProperties(nNb.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return $O(this,"contexts")?Zo(this,"contexts"):this.contexts=new zP},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return $O(this,"status")?Zo(this,"status"):this.status=new vP},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return $O(this,"timeRange")?Zo(this,"timeRange"):this.timeRange=new sP},set:function(a){this.Serializable$values.timeRange=a}}});
var zP=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};X(zP,bp);
zP.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:nP,upcomingCommitmentContext:uP,upcomingOoo:wP,workingElsewhere:AP}}};
ni.Object.defineProperties(zP.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"localTime")?Zo(this,"localTime"):this.localTime=new nP},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return $O(this,"upcomingCommitmentContext")?Zo(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=new uP},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,
enumerable:!0,get:function(){return $O(this,"upcomingOoo")?Zo(this,"upcomingOoo"):this.upcomingOoo=new wP},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return $O(this,"workingElsewhere")?Zo(this,"workingElsewhere"):this.workingElsewhere=new AP},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var gP=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};X(gP,bp);gP.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
ni.Object.defineProperties(gP.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return $O(this,"email")?Zo(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return $O(this,"obfuscatedGaiaId")?Zo(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var BP=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};X(BP,bp);BP.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:jP,homeLocation:lNb,officeLocation:oP}}};
ni.Object.defineProperties(BP.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return $O(this,"customLocation")?Zo(this,"customLocation"):this.customLocation=new jP},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return $O(this,"homeLocation")?Zo(this,"homeLocation"):this.homeLocation=new lNb},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return $O(this,
"officeLocation")?Zo(this,"officeLocation"):this.officeLocation=new oP},set:function(a){this.Serializable$values.officeLocation=a}}});
var vP=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};X(vP,bp);vP.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:iP,doNotDisturb:lP,inMeeting:mP,inactive:mNb,outOfOffice:pP,outsideWorkingHours:qP}}};
ni.Object.defineProperties(vP.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return $O(this,"calendarBusy")?Zo(this,"calendarBusy"):this.calendarBusy=new iP},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return $O(this,"doNotDisturb")?Zo(this,"doNotDisturb"):this.doNotDisturb=new lP},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return $O(this,
"inMeeting")?Zo(this,"inMeeting"):this.inMeeting=new mP},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return $O(this,"inactive")?Zo(this,"inactive"):this.inactive=new mNb},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==Zo(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return $O(this,"outOfOffice")?Zo(this,"outOfOffice"):
this.outOfOffice=new pP},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return $O(this,"outsideWorkingHours")?Zo(this,"outsideWorkingHours"):this.outsideWorkingHours=new qP},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var AP=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};X(AP,bp);
AP.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:BP}}};ni.Object.defineProperties(AP.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return $O(this,"location")?Zo(this,"location"):this.location=new BP},set:function(a){this.Serializable$values.location=a}}});var yP=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};X(yP,bp);
yP.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:hNb},keys:["availableTime"]}};ni.Object.defineProperties(yP.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return $O(this,"availableTime")?Zo(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var oNb=new Md("API_VERSION"),pNb=new Md("REQUEST_SERVICE"),CP=function(){};CP.\u0275fac=function(a){return new (a||CP)};CP.\u0275mod=Yc({type:CP});
CP.\u0275inj=Ic({});var qNb={$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"},DP=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new YMb(b,c)};DP.\u0275fac=function(a){return new (a||DP)(p(oNb,8),p(pNb),p(WMb,8))};DP.\u0275prov=Hc({token:DP,factory:DP.\u0275fac});var EP=function(){};
EP.\u0275fac=function(a){return new (a||EP)};EP.\u0275prov=Hc({token:EP,factory:function(a){return DP.\u0275fac(a)},providedIn:CP});
var FP=function(a){var b=this;this.apiStub=a;this.result=new W.Subject;this.destroyed=new W.ReplaySubject(1);this.trigger=new W.Subject;this.batchedTrigger=this.trigger.pipe(Cga(this.trigger.pipe(mf(200))));this.responseHandler=function(c){if(c.hasResults){c=n(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(Ef(this.destroyed)).subscribe(function(c){c=[].concat(r(new Set(c)));rNb(b,c.slice(0,100));c=n(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},rNb=function(a,b){var c,d;Pe(function(e){for(var f=new iNb,h=[],k=n(b),q=k.next();!q.done;q=k.next()){q=q.value;var t=new gP;t.email=q;h.push(t)}f.userIds=h;c=f;f=a.apiStub;var x=void 0===x?{}:x;var y=void 0===y?{}:y;d=$Mb(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:FAa(x,qNb,y),responseCtor:jNb});d.pipe(Ef(a.destroyed)).subscribe(a.responseHandler);Ve(e)})},sNb=function(a,b){if(!b)return(0,W.of)("");a.trigger.next(b);return a.result.pipe(hf(function(c){return c.emailAddress===b})).pipe(C(function(c){return c.availability}))};FP.prototype.ngOnDestroy=function(){this.destroyed.next()};
FP.\u0275fac=function(a){return new (a||FP)(p(EP))};FP.\u0275prov=Hc({token:FP,factory:FP.\u0275fac});
var tNb=function(a){Y.call(this,a)};X(tNb,Y);g=tNb.prototype;g.getSize=function(){return l(this,1)};g.setSize=function(a){return m(this,1,a)};g.getWidth=function(){return l(this,12)};g.setWidth=function(a){return m(this,12,a)};g.getHeight=function(){return l(this,13)};g.setHeight=function(a){return m(this,13,a)};g.setStretch=function(a){return m(this,33,a)};g.setCrop=function(a){return m(this,2,a)};g.setCircleCrop=function(a){return m(this,51,a)};g.setImageCrop=function(a){return m(this,32,a)};
g.setSmartCrop=function(a){return m(this,19,a)};g.setSmartCropNoClip=function(a){return m(this,52,a)};g.setSmartCropUseFace=function(a){return m(this,67,a)};g.setDetectFaces=function(a){m(this,80,a)};g.setCenterCrop=function(a){return m(this,20,a)};g.setPad=function(a){return m(this,60,a)};g.setDownload=function(a){m(this,3,a)};g.setHtml=function(a){m(this,4,a)};g.getObjectId=function(){return l(this,7)};g.setObjectId=function(a){m(this,7,a)};g.setLooseFaceCrop=function(a){return m(this,65,a)};
g.setFaceCropVersion=function(a){m(this,94,a)};g.setFrameId=function(a){m(this,29,a)};g.setTileX=function(a){m(this,9,a)};g.setTileY=function(a){m(this,10,a)};g.setTileZoom=function(a){m(this,11,a)};g.setTileGeneration=function(a){m(this,14,a)};g.setForceTileGeneration=function(a){m(this,34,a)};g.setTilePyramidAsProto=function(a){m(this,72,a)};g.setExpirationTime=function(a){m(this,15,a)};g.setImageFilter=function(a){return m(this,16,a)};g.setKillAnimation=function(a){return m(this,17,a)};
g.setUnfiltered=function(a){m(this,18,a)};g.setUnfilteredWithTransforms=function(a){m(this,45,a)};g.setIncludeMetadata=function(a){m(this,22,a)};g.setIncludePublicMetadata=function(a){m(this,54,a)};g.setStripGoogleData=function(a){m(this,82,a)};g.setPreserveGoogleData=function(a){m(this,83,a)};g.setStripMetadata=function(a){m(this,93,a)};g.setStripGeoinfo=function(a){m(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return m(this,21,a)};g.setBypassTakedown=function(a){m(this,23,a)};
g.getToken=function(){return l(this,24)};g.setToken=function(a){return m(this,24,a)};g.setVersionedToken=function(a){m(this,36,a)};g.setSkipRefererCheck=function(a){m(this,6,a)};g.setRotate=function(a){return m(this,26,a)};g.setHorizontalFlip=function(a){m(this,30,a)};g.setVerticalFlip=function(a){m(this,31,a)};g.getOverlay=function(){return As(this,27)};g.setOverlay=function(a){return m(this,27,a)};g.setQueryString=function(a){m(this,28,a)};g.setRequestJpeg=function(a){return m(this,57,a)};
g.setRequestPng=function(a){return m(this,58,a)};g.setRequestGif=function(a){m(this,59,a)};g.setRequestWebp=function(a){return m(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){m(this,41,a)};g.setRequestAnimatedWebp=function(a){m(this,64,a)};g.setNoWebp=function(a){m(this,48,a)};g.setRequestH264=function(a){return m(this,49,a)};g.setLossy=function(a){m(this,97,a)};g.setNoOverlay=function(a){return m(this,37,a)};g.setBorderSize=function(a){m(this,38,a)};
g.setBorderRadius=function(a){m(this,86,a)};g.setBorderColor=function(a){m(this,39,a)};g.getBackgroundColor=function(){return l(this,87)};g.setBackgroundColor=function(a){m(this,87,a)};g.setPadColor=function(a){m(this,88,a)};g.setSubstitutionColor=function(a){m(this,89,a)};g.setNoSilhouette=function(a){m(this,40,a)};g.setFocusBlur=function(a){m(this,42,a)};g.setFocalPlane=function(a){m(this,43,a)};g.setQualityLevel=function(a){return m(this,44,a)};g.setQualityBucket=function(a){return m(this,62,a)};
g.setNoUpscale=function(a){m(this,46,a)};g.setPreserveAspectRatio=function(a){m(this,61,a)};g.setForceTransformation=function(a){m(this,50,a)};g.setNoDefaultImage=function(a){m(this,53,a)};g.setNoCorrectExifOrientation=function(a){m(this,55,a)};g.setSelectFrameNumber=function(a){m(this,56,a)};g.setVideoFormat=function(a){m(this,63,a)};g.setVideoMultiFormat=function(a){m(this,81,a)};g.setVideoManifest=function(a){m(this,98,a)};g.setDownloadVideo=function(a){m(this,90,a)};
g.setVideoBegin=function(a){m(this,68,a)};g.setVideoLength=function(a){m(this,69,a)};g.setMatchVersion=function(a){m(this,66,a)};g.setImageDigest=function(a){m(this,70,a)};g.setInternalClient=function(a){m(this,71,a)};g.setMonogram=function(a){m(this,73,a)};g.setForceMonogram=function(a){return m(this,84,a)};g.setMonogramDogfood=function(a){m(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){m(this,96,a)};g.setAutoloop=function(a){m(this,74,a)};g.getImageVersion=function(){return l(this,75)};
g.setImageVersion=function(a){m(this,75,a)};g.setPitchDegrees=function(a){m(this,76,a)};g.setYawDegrees=function(a){m(this,77,a)};g.setRollDegrees=function(a){m(this,78,a)};g.setFovDegrees=function(a){m(this,79,a)};g.setBadge=function(a){m(this,85,a)};g.setColorProfile=function(a){m(this,92,a)};g.setDeepCrop=function(a){m(this,99,a)};g.setRequestVideoFast=function(a){m(this,100,a)};g.setVideoFormatFilters=function(a){m(this,102,a)};
var GP=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};GP.prototype.set=function(a,b){uNb(this,a,b,!1)};GP.prototype.add=function(a,b){uNb(this,a,b,!0)};var uNb=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 GP);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("jd`"+b);a.value_=c};GP.prototype.setAll=function(a){var b=Jzb(a);a=PF(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var vNb=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};GP.prototype.get=function(a){return(a=vNb(this,a))?a.value_:void 0};GP.prototype.getValues=function(){var a=[];wNb(this,a);return a};var wNb=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)wNb(a.childNodes_[c],b)};
GP.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]}xNb(c,a,b)}else xNb(this,"",b);return b};var xNb=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)xNb(a.childNodes_[d],b+d,c)};g=GP.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 GP(this)};g.getCount=function(){return Izb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&$b(this.childNodes_)};
var ANb=function(){if(!yNb){var a=yNb=new GP,b;for(b in zNb)a.add(b,zNb[b])}},yNb,HP=function(a,b){this.types=a;this.setters=b},zNb={a:new HP([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new HP([3],[function(a,b){a.setAutoloop(b)}]),b:new HP([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new HP([0],[function(a,b){a.setBadge(b)}]),bc:new HP([0],[function(a,b){a.setBackgroundColor(b)}]),br:new HP([0],[function(a,
b){a.setBorderRadius(b)}]),c:new HP([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new HP([3],[function(a,b){a.setCircleCrop(b)}]),ci:new HP([3],[function(a,b){a.setImageCrop(b)}]),cp:new HP([0],[function(a,b){a.setColorProfile(b)}]),cv:new HP([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new HP([3],[function(a,b){a.setDownload(b)}]),dc:new HP([5],[function(a,b){a.setDeepCrop(b)}]),df:new HP([3],[function(a,b){a.setDetectFaces(b)}]),dv:new HP([3],[function(a,b){a.setDownloadVideo(b)}]),
e:new HP([0],[function(a,b){a.setExpirationTime(b)}]),f:new HP([4],[function(a,b){a.setImageFilter(b)}]),fg:new HP([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new HP([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new HP([3],[function(a,b){a.setForceMonogram(b)}]),fo:new HP([2],[function(a,b){a.setFovDegrees(b)}]),ft:new HP([3],[function(a,b){a.setForceTransformation(b)}]),fv:new HP([3],[function(a,b){a.setVerticalFlip(b)}]),g:new HP([3],[function(a,b){a.setTileGeneration(b)}]),gd:new HP([3],
[function(a,b){a.setPreserveGoogleData(b)}]),h:new HP([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new HP([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new HP([0],[function(a,b){a.setInternalClient(b)}]),id:new HP([3],[function(a,b){a.setImageDigest(b)}]),il:new HP([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new HP([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new HP([0],[function(a,b){a.setImageVersion(b)}]),j:new HP([1],[function(a,b){a.setFrameId(b)}]),
k:new HP([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new HP([0],[function(a,b){a.setQualityLevel(b)}]),lf:new HP([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new HP([3],[function(a,b){a.setLossy(b)}]),m:new HP([0],[function(a,b){a.setVideoFormat(b)}]),md:new HP([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new HP([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new HP([3],[function(a,b){a.setMonogram(b)}]),mv:new HP([3],[function(a,b){a.setMatchVersion(b)}]),
n:new HP([3],[function(a,b){a.setCenterCrop(b)}]),nc:new HP([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new HP([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new HP([3],[function(a,b){a.setStripGeoinfo(b)}]),no:new HP([3],[function(a,b){a.setNoOverlay(b)}]),ns:new HP([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new HP([4],[function(a,b){a.setVersionedToken(b)}]),nu:new HP([3],[function(a,b){a.setNoUpscale(b)}]),nw:new HP([3],[function(a,b){a.setNoWebp(b)}]),o:new HP([1,3],[function(a,
b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new HP([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new HP([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new HP([0],[function(a,b){a.setPadColor(b)}]),pd:new HP([3],[function(a,b){a.setPad(b)}]),pf:new HP([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new HP([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new HP([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new HP([3],[function(a,b){a.setSmartCropNoClip(b)}]),
q:new HP([4],[function(a,b){a.setQueryString(b)}]),r:new HP([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),rf:new HP([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new HP([3],[function(a,b){a.setRequestGif(b)}]),rh:new HP([3],[function(a,b){a.setRequestH264(b)}]),rj:new HP([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new HP([2],[function(a,b){a.setRollDegrees(b)}]),rp:new HP([3],[function(a,b){a.setRequestPng(b)}]),rw:new HP([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new HP([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new HP([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new HP([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new HP([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new HP([3],[function(a,b){a.setStripGoogleData(b)}]),sm:new HP([3],[function(a,b){a.setStripMetadata(b)}]),t:new HP([4],[function(a,b){a.setToken(b)}]),u:new HP([3],[function(a,b){a.setUnfiltered(b)}]),ut:new HP([3],[function(a,
b){a.setUnfilteredWithTransforms(b)}]),v:new HP([0],[function(a,b){a.setQualityBucket(b)}]),vb:new HP([0],[function(a,b){a.setVideoBegin(b)}]),vf:new HP([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new HP([0],[function(a,b){a.setVideoLength(b)}]),vm:new HP([3],[function(a,b){a.setVideoManifest(b)}]),w:new HP([0],[function(a,b){a.setWidth(b)}]),x:new HP([0],[function(a,b){a.setTileX(b)}]),y:new HP([0],[function(a,b){a.setTileY(b)}]),ya:new HP([2],[function(a,b){a.setYawDegrees(b)}]),z:new HP([0],
[function(a,b){a.setTileZoom(b)}])};
ANb.prototype.parse=function(a){var b=new tNb,c=new tNb;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 t=h.charAt(0);t!=t.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var x=yNb;for(t=1;t<=q.length;++t){var y=x,F=q.substring(0,t);if(0==F.length?y.isEmpty():!vNb(y,F))break}q=1==t?null:(q=x.get(q.substring(0,t-1)))?{option:h.substring(0,t-1),value:h.substring(t-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];t=!1;for(x=0;x<q.attributes.types.length;x++){y=q.attributes.types[x];var K=q.value;F=e;if(q.signed&&1==y)for(var J=K.length;12>J&&F<a.length-1;)K+="-"+a[F+1],J=K.length,++F;else if(2==y)for(;F<a.length-1&&a[F+1].match(/^[\d\.]/);)K+="-"+a[F+1],++F;J=q.attributes.setters[x];K=BNb(this,y)(q.option,K,b,c,J);if(null===K){t=!0;e=F;break}else h.push(y),k.push(K)}if(!t)for(q=0;q<k.length;q++)x=h[q],K=k[q],CNb(this,x)(f,K);d=d&&t}else d=!1}}a=d}return new DNb(b,c,a)};
var ENb=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};g=ANb.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=Xi(b);if(isNaN(b))return 1;ENb(a,b,c,d,e,Number);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=iw(b);if(isNaN(b))return 1;ENb(a,b,c,d,e,Number);return null};g.logFloatParseError_=function(){};
g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;ENb(a,!0,c,d,e,Boolean);return null};g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;ENb(a,b,c,d,e,function(f){return f?"1":""});return null};g.logStringParseError_=function(){};
var BNb=function(a,b){switch(b){case 0:return bv(a.parseAndSetIntOption_,a);case 2:return bv(a.parseAndSetFloatOption_,a);case 3:return bv(a.parseAndSetBoolOption_,a);case 4:case 1:return bv(a.parseAndSetStringOption_,a);default:return function(){}}},CNb=function(a,b){switch(b){case 0:return bv(a.logIntParseError_,a);case 2:return bv(a.logFloatParseError_,a);case 3:return bv(a.logBoolParseError_,a);case 4:case 1:return bv(a.logStringParseError_,a);default:return function(){}}},DNb=function(a,b,c){this.valueProto_=
a;this.signatureFlagProto_=b;this.valid_=c};DNb.prototype.isValid=function(){return this.valid_};
var FNb=function(a,b){null!=a&&this.append.apply(this,arguments)};g=FNb.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 IP=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;GNb(this,a)};IP.prototype.getParsedOptions=function(){return this.parsedOptions_};var HNb=function(a){null==a.parser_&&(a.parser_=new ANb);return a.parser_},GNb=function(a,b){a.parsedOptions_=b?"string"===typeof b?HNb(a).parse(b):b:HNb(a).parse("")},JP=function(a,b){return a==b?!1:!0};g=IP.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,21),As(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,56),l(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,74),As(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,23,!1),oj(b.signatureFlagProto_,23,!1))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,38),l(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,85),l(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,86),l(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,2,!1),oj(b.signatureFlagProto_,2,!1))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,39),l(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,51),As(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,32),As(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,92),l(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,94),l(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,3,!1),oj(b.signatureFlagProto_,3,!1))&&c.setDownload(a)};
g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,99),l(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,80),As(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,90),As(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};
g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,15),l(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,16),l(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,34,!1),oj(b.signatureFlagProto_,34,!1))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,30),As(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,84),As(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,iu(c,79),iu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,50),As(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,31),As(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,14,!1),oj(b.signatureFlagProto_,14,!1))&&c.setTileGeneration(a)};
g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,83),As(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,4,!1),oj(b.signatureFlagProto_,4,!1))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};
g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,22),As(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,71),l(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,70),As(b.signatureFlagProto_,70))&&c.setImageDigest(a)};
g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,96),As(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,54),As(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};
g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,29),l(b.signatureFlagProto_,29))&&c.setFrameId(a)};g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,17),As(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,42),l(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};
g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,44),l(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,65),As(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,97),As(b.signatureFlagProto_,97))&&c.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,63),l(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,91),As(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,81),l(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};
g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,73),As(b.signatureFlagProto_,73))&&c.setMonogram(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,66),As(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,20,!1),oj(b.signatureFlagProto_,20,!1))&&c.setCenterCrop(a);return this};
g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,55),As(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,53),As(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,95),As(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,37,!1),oj(b.signatureFlagProto_,37,!1))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,40),As(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,36),l(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};
g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,46),As(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,48,!1),oj(b.signatureFlagProto_,48,!1))&&c.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,19,!1),oj(b.signatureFlagProto_,19,!1))&&c.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,43),l(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};
g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,61),As(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,88),l(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,60),As(b.signatureFlagProto_,60))&&c.setPad(a);return this};
g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,67,!1),oj(b.signatureFlagProto_,67,!1))&&c.setSmartCropUseFace(a);return this};g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,72,!1),oj(b.signatureFlagProto_,72,!1))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,iu(c,76),iu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};
g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,52,!1),oj(b.signatureFlagProto_,52,!1))&&c.setSmartCropNoClip(a);return this};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,28),l(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,6,!1),oj(b.signatureFlagProto_,6,!1))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,26),l(b.signatureFlagProto_,26))&&c.setRotate(a);return this};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,100),As(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,59),As(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,49,!1),oj(b.signatureFlagProto_,49,!1))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,57),As(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,iu(c,78),iu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,58),As(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,35,!1),oj(b.signatureFlagProto_,35,!1))&&c.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,64,!1),oj(b.signatureFlagProto_,64,!1))&&c.setRequestAnimatedWebp(a)};
g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,oj(c,41,!1),oj(b.signatureFlagProto_,41,!1))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,33),As(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,89),l(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,82),As(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,93),As(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,18),As(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,45),As(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,62),l(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,68),l(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,102),l(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};
g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,69),l(b.signatureFlagProto_,69))&&c.setVideoLength(a)};g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JP(a,As(c,98),As(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};
g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,9),l(b.signatureFlagProto_,9))&&c.setTileX(a)};g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,10),l(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,iu(c,77),iu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;JP(a,l(c,11),l(b.signatureFlagProto_,11))&&c.setTileZoom(a)};
g.setOptions=function(a){GNb(this,a);return this};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;KP(this,"s",b.getSize(),a.getSize());KP(this,"w",b.getWidth(),a.getWidth());LP(this,"c",oj(b,2,!1),oj(a,2,!1));LP(this,"d",oj(b,3,!1),oj(a,3,!1));KP(this,"h",b.getHeight(),a.getHeight());LP(this,"s",As(b,33),As(a,33));LP(this,"h",oj(b,4,!1),oj(a,4,!1));LP(this,"p",oj(b,19,!1),oj(a,19,!1));LP(this,"pp",oj(b,52,!1),oj(a,52,!1));LP(this,"pf",oj(b,67,!1),oj(a,67,!1));LP(this,"n",oj(b,20,!1),
oj(a,20,!1));KP(this,"r",l(b,26),l(a,26));LP(this,"r",oj(b,6,!1),oj(a,6,!1));LP(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();MP(this,"o",c,a.getObjectId());c=l(b,29);MP(this,"j",c,l(a,29));KP(this,"x",l(b,9),l(a,9));KP(this,"y",l(b,10),l(a,10));KP(this,"z",l(b,11),l(a,11));LP(this,"g",oj(b,14,!1),oj(a,14,!1));KP(this,"e",l(b,15),l(a,15));MP(this,"f",l(b,16),l(a,16));LP(this,"k",As(b,17),As(a,17));LP(this,"u",As(b,18),!0);LP(this,"ut",As(b,45),!0);LP(this,"i",As(b,22),!0);LP(this,
"a",As(b,21),As(a,21));LP(this,"b",oj(b,23,!1),oj(a,23,!1));KP(this,"b",l(b,38),l(a,38));KP(this,"c",l(b,39),l(a,39),16,8);MP(this,"q",l(b,28),l(a,28));LP(this,"fh",As(b,30),As(a,30));LP(this,"fv",As(b,31),As(a,31));LP(this,"fg",oj(b,34,!1),oj(a,34,!1));LP(this,"ci",As(b,32),As(a,32));MP(this,"t",b.getToken(),a.getToken());MP(this,"nt0",l(b,36),l(a,36));LP(this,"rw",oj(b,35,!1),oj(a,35,!1));LP(this,"rwu",oj(b,41,!1),oj(a,41,!1));LP(this,"rwa",oj(b,64,!1),oj(a,64,!1));LP(this,"nw",oj(b,48,!1),oj(a,
48,!1));LP(this,"rh",oj(b,49,!1),oj(a,49,!1));LP(this,"no",oj(b,37,!1),oj(a,37,!1));LP(this,"ns",As(b,40),As(a,40));KP(this,"k",l(b,42),l(a,42));KP(this,"p",l(b,43),l(a,43));KP(this,"l",l(b,44),l(a,44));KP(this,"v",l(b,62),l(a,62));LP(this,"nu",As(b,46),As(a,46));LP(this,"ft",As(b,50),As(a,50));LP(this,"cc",As(b,51),As(a,51));LP(this,"nd",As(b,53),As(a,53));LP(this,"ip",As(b,54),As(a,54));LP(this,"nc",As(b,55),As(a,55));KP(this,"a",l(b,56),l(a,56));LP(this,"rj",As(b,57),As(a,57));LP(this,"rp",As(b,
58),As(a,58));LP(this,"rg",As(b,59),As(a,59));LP(this,"pd",As(b,60),As(a,60));LP(this,"pa",As(b,61),As(a,61));KP(this,"m",l(b,63),l(a,63));KP(this,"vb",l(b,68),l(a,68));KP(this,"vl",l(b,69),l(a,69));LP(this,"lf",As(b,65),As(a,65));LP(this,"mv",As(b,66),As(a,66));LP(this,"id",As(b,70),As(a,70));KP(this,"ic",l(b,71),!0);LP(this,"pg",oj(b,72,!1),oj(a,72,!1));LP(this,"mo",As(b,73),As(a,73));LP(this,"al",As(b,74),As(a,74));KP(this,"iv",b.getImageVersion(),a.getImageVersion());KP(this,"pi",iu(b,76),iu(a,
76));KP(this,"ya",iu(b,77),iu(a,77));KP(this,"ro",iu(b,78),iu(a,78));KP(this,"fo",iu(b,79),iu(a,79));LP(this,"df",As(b,80),As(a,80));MP(this,"mm",l(b,81),l(a,81));LP(this,"sg",As(b,82),As(a,82));LP(this,"gd",As(b,83),As(a,83));LP(this,"fm",As(b,84),As(a,84));KP(this,"ba",l(b,85),l(a,85));KP(this,"br",l(b,86),l(a,86));KP(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);KP(this,"pc",l(b,88),l(a,88),16,8);KP(this,"sc",l(b,89),l(a,89),16,8);LP(this,"dv",As(b,90),As(a,90));LP(this,"md",As(b,
91),As(a,91));KP(this,"cp",l(b,92),l(a,92));LP(this,"sm",As(b,93),As(a,93));KP(this,"cv",l(b,94),l(a,94));LP(this,"ng",As(b,95),As(a,95));LP(this,"il",As(b,96),As(a,96));LP(this,"lo",As(b,97),As(a,97));LP(this,"vm",As(b,98),As(a,98));MP(this,"dc",l(b,99),l(a,99));LP(this,"rf",As(b,100),As(a,100));MP(this,"vf",l(b,102),l(a,102));return this.components_.join("-")};
var KP=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 FNb;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":fw("0",f));h.call(e,f);e.append(c);INb(a,b,e.toString(),!!d)}},LP=function(a,b,c,d){c&&INb(a,b,"",!!d)},MP=function(a,b,c,d){c&&INb(a,b,c,!!d)},INb=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};
var NP=function(a){IP.call(this,a)};ev(NP,IP);g=NP.prototype;g.setCrop=function(a){a&&OP(this);return NP.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return NP.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&OP(this);return NP.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return NP.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return NP.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&OP(this);return NP.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&OP(this);return NP.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){La(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return NP.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&OP(this);return NP.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&OP(this);return NP.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&OP(this);return NP.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&OP(this);return NP.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&OP(this);return NP.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return NP.superClass_.setWidth.call(this,a)};var OP=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
NP.prototype.build=function(){var a=this.getParsedOptions().valueProto_;As(a,18)||As(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),OP(this)));return NP.superClass_.build.call(this)};
var JNb=/^[^\/]*\/\//,PP=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(JNb))&&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_=bG(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},KNb=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},QP=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]&&(KNb(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)KNb(a,
a.components_[0]);else if("image"==a.components_[0])KNb(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(KNb(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_};PP.prototype.isValid=function(){QP(this);return this.valid_};var LNb=function(a){QP(a);return a.obfuscated_},MNb=function(a){QP(a);return a.isFreeformUrl_};
PP.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};PP.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var RP=function(a){QP(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};PP.prototype.hasOptions=function(){switch(QP(this).length){case 7:return!0;case 6:return null==RP(this);case 5:return!1;case 3:return!0;case 2:return null==RP(this);case 1:return!1;default:return!1}};
var SP=function(a,b){if(MNb(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=QP(a)[b]}else if(LNb(a))a:{var c=null!=RP(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=QP(a)[b]}else a:{c=null!=RP(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=QP(a)[b]}return a};g=PP.prototype;g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=SP(this,0));return this.obfuscatedGaiaId_};g.getPhotoId=function(){void 0==this.photoId_&&(this.photoId_=SP(this,1));return this.photoId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=SP(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=SP(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=SP(this,5));return this.filename_};
var NNb=function(){};NNb.prototype.parse=function(a,b){return new ONb(a,void 0===b?!1:b)};var ONb=function(a,b){PP.call(this,a,void 0===b?!1:b)};X(ONb,PP);ONb.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new ANb).parse(a)}return this.parsedOptions_};
var TP=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof ONb||(void 0==PNb&&(PNb=new NNb),a=PNb.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();IP.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},PNb;ev(TP,NP);TP.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
TP.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=TP.superClass_.build.call(this),b=[];null!=RP(this.parsedImageUrl_)&&b.push(RP(this.parsedImageUrl_));var c=MNb(this.parsedImageUrl_);if(LNb(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=SP(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=SP(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_=SP(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=bG(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));
return a};
var QNb=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],UP=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new W.ReplaySubject(1);this.person$=this.providedEmail$.pipe(Df(function(d){return gNb(c.peopleService,d)}),C(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new TP(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),Af(1));this.outOfOfficeDescription$=
new W.ReplaySubject;this.init=new W.ReplaySubject(1);this.destroyed$=new W.ReplaySubject(1)};UP.prototype.ngOnInit=function(){var a=this;this.person$.pipe(sf(),Ef(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&RNb(this)};var RNb=function(a){a.waldoService&&a.person$.pipe(Df(function(b){return b?sNb(a.waldoService,b.email):(0,W.of)("")}),Ef(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
ni.Object.defineProperties(UP.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});UP.\u0275fac=function(a){return new (a||UP)(B(fP),B(FP,8))};
UP.\u0275cmp=u({type:UP,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&&(fg(QNb),P(0,UAa,4,4,"onedev-person-hovercard-body",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.person$))},dependencies:[gy,ZO,ny],encapsulation:2,changeDetection:0});
var SNb=[[["onedev-hovercard-action"],["",8,"actions"]]],VP=function(){};VP.prototype.ngOnInit=function(){};VP.\u0275fac=function(a){return new (a||VP)};
VP.\u0275cmp=u({type:VP,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&&(fg(SNb),P(0,VAa,3,3,"onedev-person-hovercard",0))},dependencies:[UP,jM,kM],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 WP=function(){this.isNonObfuscatedEmail=Ao};WP.\u0275fac=function(a){return new (a||WP)};
WP.\u0275cmp=u({type:WP,selectors:[["b-person-hovercard"]],inputs:{email:"email",triggerClass:"triggerClass"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],["card",""],[3,"email"]],template:function(a,b){a&1&&(fg(),P(0,XAa,6,4,"ng-container",0),P(1,YAa,1,0,"ng-template",null,1,Hg));if(a&2){var c=O(2);D("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",c)}},dependencies:[gy,
my,iM,mM,VP],encapsulation:2,changeDetection:0});
var XP=function(){};XP.prototype.transform=function(a){if(Ao(a))return a};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275pipe=$c({name:"omitObfuscatedEmail",type:XP,pure:!0});
var YP=function(a){Y.call(this,a)};X(YP,Y);YP.prototype.getDisplayName=function(){return Pi(this,1)};YP.prototype.setDisplayName=function(a){return m(this,1,a)};YP.prototype.getPhotoUrl=function(){return Pi(this,2)};
var TNb=function(a){Y.call(this,a)};X(TNb,Y);TNb.messageId="b.UserProfileBatchResponse";
var ZP=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new uIb(function(d){return c.batchAdaptedGet(d)},100)};ZP.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};ZP.\u0275fac=function(a){return new (a||ZP)(p($P),p(WJ))};ZP.\u0275prov=Hc({token:ZP,factory:ZP.\u0275fac,providedIn:"root"});var $P=function(a){this.executor=a};
$P.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(r(a)).join(",")}},responseConstructor:TNb}).pipe(nf(function(){return(0,W.of)(new TNb)}))};$P.prototype.split=function(a,b){return rj(b,1,YP).get(a)||new YP};$P.\u0275fac=function(a){return new (a||$P)(p(lH))};$P.\u0275prov=Hc({token:$P,factory:$P.\u0275fac,providedIn:"root"});
var aQ=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new W.ReplaySubject(1);this.availability=this.userSubject.pipe(Df(function(c){return sNb(b.waldoAvailabilityService,c)}))};aQ.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};aQ.\u0275fac=function(a){return new (a||aQ)(B(FP))};
aQ.\u0275cmp=u({type:aQ,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[ed],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,ZAa,6,3,"div",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.availability))},dependencies:[gy,ny],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 bQ=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};bQ.\u0275fac=function(a){return new (a||bQ)(B(DK))};bQ.\u0275cmp=u({type:bQ,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,$Aa,1,2,"ng-template",0);a&2&&D("refreshable",b.refreshMonitor.getObservable())},dependencies:[aQ,AN],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});
var UNb=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=this.snapshotNumber=null;this.isArchived=this.inProd=!1;this.effortEstimate=this.sloSnoozeType=this.sloSnoozeUntil=null;this.status="NEW"};
UNb.prototype.setData=function(a,b,c){this.issueId=b;a=Si(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=Si(a);this.assignee=Ql(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=Sl(a.ccUsers)||[];this.ccUsers=a.ccUsers||[];this.collaborators=Sl(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=Ql(a.reporterUser);this.reporterUser=a.reporterUser;this.severity=a.severity;this.significanceOverride=a.significanceOverride;
this.snapshotNumber=a.snapshotNumber;this.status=a.status||"NEW";this.targetedToVersion=a.targetedToVersion;this.title=a.title;this.type=a.type;this.user=Ql(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=Ql(a.verifierUser);this.verifierUser=a.verifierUser;this.version=a.version;this.sloSnoozeUntil=a.sloSnoozeUntil;this.sloSnoozeType=a.sloSnoozeType;var d,e;this.effortEstimate=null!=(e=null==(d=a.effort)?void 0:Pi(d,2))?e:null;this.customField=[];a&&(this.customField=(a.customField||
[]).filter(function(f){return f}).map(function(f){return new VNb(f)}));d={};c=n(c);for(e=c.next();!e.done;d={$jscomp$loop$prop$fieldResource$1952:d.$jscomp$loop$prop$fieldResource$1952},e=c.next())d.$jscomp$loop$prop$fieldResource$1952=e.value,e=d.$jscomp$loop$prop$fieldResource$1952.allowedValue?d.$jscomp$loop$prop$fieldResource$1952.allowedValue.map(function(f){return{value:f,displayText:f}}):null,(a=this.customField.find(function(f){return function(h){return h.customFieldId===f.$jscomp$loop$prop$fieldResource$1952.customFieldId}}(d)))?
(a.type=d.$jscomp$loop$prop$fieldResource$1952.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1952.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1952.customFieldId)]=a):(a=new VNb({customFieldId:d.$jscomp$loop$prop$fieldResource$1952.customFieldId}),a.type=d.$jscomp$loop$prop$fieldResource$1952.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1952.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1952.customFieldId)]=a)};
var XNb=function(a){for(var b=[],c=n(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=WNb(a,d.customFieldId);e=e?e.getValue():null;var f=d.getValue();if(!Ri(e,f)){if(e=d.isEmpty())d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalModelData){cQ(Ql(a.originalModelData.assigneeUser),a.assignee,"assignee",b);cQ(a.originalModelData.componentId,a.componentId,"componentId",b);cQ(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);cQ(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);cQ(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);cQ(a.originalModelData.inProd,a.inProd,"inProd",b);cQ(a.originalModelData.isArchived,a.isArchived,"isArchived",b);cQ(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);cQ(a.originalModelData.priority,a.priority,"priority",b);cQ(Ql(a.originalModelData.reporterUser),a.reporter,"reporter",b);
cQ(a.originalModelData.severity,a.severity,"severity",b);cQ(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);cQ(a.originalModelData.snapshotNumber,a.snapshotNumber,"snapshotNumber",b);cQ(a.originalModelData.status,a.status,"status",b);cQ(a.originalModelData.title,a.title,"title",b);cQ(a.originalModelData.type,a.type,"type",b);cQ(Ql(a.originalModelData.authorUser),a.user,"user",b);cQ(Ql(a.originalModelData.verifierUser),a.verifier,"verifier",b);cQ(a.originalModelData.version,
a.version,"version",b);var h,k,q,t;cQ(null!=(q=null==(h=a.originalModelData.sloSnoozeUntil)?void 0:h.getSeconds())?q:null,null!=(t=null==(k=a.sloSnoozeUntil)?void 0:k.getSeconds())?t:null,"sloSnoozeUntil",b);cQ(a.originalModelData.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var x,y;cQ(null!=(y=null==(x=a.originalModelData.effort)?void 0:Pi(x,2))?y:null,a.effortEstimate,"effortEstimate",b);dQ(a.originalModelData.attachmentId,a.attachmentId,"attachmentId",b);dQ(Sl(a.originalModelData.ccUsers),
a.cc,"ccs",b);dQ(Sl(a.originalModelData.collaboratorsUsers),a.collaborators,"collaborators",b);dQ(a.originalModelData.changelist,a.changelist,"changelists",b);dQ(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);dQ(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);dQ(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);dQ(a.originalModelData.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);dQ(a.originalModelData.verifiedInVersion,
a.verifiedInVersion,"verifiedInVersion",b);dQ(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},cQ=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},dQ=function(a,b,c,d){var e=gna(b||[],new Set(a));a=gna(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=UNb.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "UNKNOWN":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:Ai(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=io[this.status];!this.assignee&&this.originalModelData&&Ql(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&&Ql(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=io[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.setSloSnoozeUntil=function(a){this.sloSnoozeUntil=a};g.setSloSnoozeType=function(a){this.sloSnoozeType=a};
var WNb=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new wm(a):null:null},VNb=function(a){wm.call(this,a);this.choices=this.customFieldName=this.type=null};X(VNb,wm);VNb.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var YNb=new Map([["assignee",function(a,b){a.assigneeUser=Zl(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Zl).filter(fm)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Zl(b.reporter)}],["verifier",function(a,b){a.verifierUser=Zl(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}],["snapshotNumber",function(a,b){a.snapshotNumber=
b.snapshotNumber}],["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 eQ=function(a){this.$window=a};eQ.\u0275fac=function(a){return new (a||eQ)(p(hJ))};eQ.\u0275prov=Hc({token:eQ,factory:eQ.\u0275fac,providedIn:"root"});
var fQ=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},ZNb=function(a,b){return new Promise(function(c){gQ(a,b,function(){c(!0)},function(){c(!1)})})},gQ=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Co("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Fo(dw('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'),
Eo("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=Fo(dw('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. '),Eo("A",(b.href="http://goto.google.com/pib-slo",b.target="_blank",b),"Learn more"),dw(".\n\nDO NOT use this type to file "),
Eo("A",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),dw(". Incidents should be filed at "),Eo("A",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),dw(".\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."))}a.confirmationDialogService.open({title:e,
content:f,onConfirm:null!=c?c:function(){},onDismiss:null!=d?d:function(){}})}};fQ.\u0275fac=function(a){return new (a||fQ)(p(NG),p(QN),p(UL))};fQ.\u0275prov=Hc({token:fQ,factory:fQ.\u0275fac,providedIn:"root"});
var $Nb=function(a){var b=[],c=[].concat.apply([],r(a.map(function(e){return e.actions})));a={};c=n(c);for(var d=c.next();!d.done;a={$jscomp$loop$prop$action$1954:a.$jscomp$loop$prop$action$1954},d=c.next())a.$jscomp$loop$prop$action$1954=d.value,b.some(function(e){return function(f){return Ri(e.$jscomp$loop$prop$action$1954,f)}}(a))||b.push(a.$jscomp$loop$prop$action$1954);return b},aOb=function(a){return Array.from(new Set([].concat.apply([],r(a.map(function(b){return b.issueIds})))))};
var hQ=function(a){this.dateFormatter=a};
hQ.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(lm(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(lm(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};hQ.\u0275fac=function(a){return new (a||hQ)(p(YN))};hQ.\u0275prov=Hc({token:hQ,factory:hQ.\u0275fac,providedIn:"root"});
var iQ=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",sloSnoozeUntil:"SLO Snooze Until",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"]},dOb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=aOb(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=$Nb(b.bulkEditOps));b=bOb(f).map(function(h){return cOb(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+"."},bOb=function(a){var b=
[],c=[];a=n(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)},cOb=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 wm(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=nl(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?fj(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||"sloSnoozeUntil"!==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 snoozed":"SLO un-snoozed":"":"Comment added":'Status set to "'+io[b.value].displayValue+'"'};iQ.\u0275fac=function(a){return new (a||iQ)(p(hQ),p(sK))};iQ.\u0275prov=Hc({token:iQ,factory:iQ.\u0275fac,providedIn:"root"});
var jQ=function(a){Y.call(this,a,-1,eOb)};X(jQ,Y);jQ.prototype.getAttachmentsList=function(){return Nb(this,Jn,1)};jQ.prototype.setAttachmentsList=function(a){Mb(this,1,a)};var eOb=[1];jQ.messageId="b.CreateAttachmentsResponse";
var kQ=function(a){Y.call(this,a)};X(kQ,Y);kQ.prototype.getErrorMessage=function(){return Pi(this,2)};kQ.prototype.setErrorMessage=function(a){m(this,2,a)};kQ.messageId="b.EncryptedMediaResponse";
var fOb=function(){},lQ=function(a){this.executor=a};X(lQ,fOb);var gOb=function(a,b){var c=new ZEb;c.setFilename(b.filename);c.setMimeType(b.mimeType);null!=b.encryptedBlobId&&m(c,3,b.encryptedBlobId);m(c,4,b.docId);null!=b.size&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:kQ}).then(Osa)};lQ.\u0275fac=function(a){return new (a||lQ)(p(mH))};lQ.\u0275prov=Hc({token:lQ,factory:lQ.\u0275fac,providedIn:"root"});
var mQ=function(){};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275prov=Hc({token:mQ,factory:mQ.\u0275fac,providedIn:"root"});var nQ=function(a){this.executor=a};X(nQ,mQ);nQ.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})};
nQ.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:Jn}).then(tn)};nQ.\u0275fac=function(a){return new (a||nQ)(p(mH))};nQ.\u0275prov=Hc({token:nQ,factory:nQ.\u0275fac,providedIn:"root"});
var oQ=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};oQ.prototype.close=function(a){this.dialogRef.close(a)};oQ.\u0275fac=function(a){return new (a||oQ)(B(EC),B(QN),B(HC))};
oQ.\u0275cmp=u({type:oQ,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&&(E(0,"div",0)(1,"h1",1),Q(2,"User may not have access"),G(),E(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: "),
G(),E(6,"ul"),P(7,bBa,2,1,"li",3),G(),E(8,"section"),Q(9,"Continue anyway?"),G()(),E(10,"footer",4)(11,"div",5)(12,"a",6),Q(13,"Learn more"),G()(),E(14,"button",7),M("click",function(){return b.close(!0)}),Q(15,"Continue"),G(),E(16,"button",8),M("click",function(){return b.close(!1)}),Q(17,"Cancel"),G()()());a&2&&(A(7),D("ngForOf",b.userEmails),A(5),D("href",b.readMoreLink,le))},dependencies:[fy,pC,KC,LC,MC],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});
var pQ=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},qQ=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return Pe(function(t){switch(t.nextAddress){case 1:if(d.every(function(x){return 0===x.length}))return t.return(!0);Qe(t,2);return Re(t,hOb(a,c,d,e),4);case 4:h=t.yieldResult;if(0===h.length)return t.return(!0);Mo(a.analytics,Aq.ADD_USER_WITHOUT_ACCESS,"warn",f);return Re(t,a.confirm(h,
e),5);case 5:k=t.yieldResult;if(!k)return vJ(a.butterBar,"Save cancelled.",4E3),Mo(a.analytics,Aq.ADD_USER_WITHOUT_ACCESS,"cancel",f),t.return(!1);Mo(a.analytics,Aq.ADD_USER_WITHOUT_ACCESS,"proceed",f);return t.return(!0);case 2:return q=Ue(t),a.logger.error(q),t.return(!1)}})},hOb=function(a,b,c,d){var e;return Pe(function(f){if(1==f.nextAddress)return Re(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(r(e.noAccessEmails||[]),r(e.unknownEmails||
[])))})};pQ.prototype.confirm=function(a,b){var c=this,d,e,f;return Pe(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(oQ,{width:"400px",data:d}),Re(h,(0,W.firstValueFrom)(CC(e)),2);f=h.yieldResult;return h.return(!!f)})};pQ.\u0275fac=function(a){return new (a||pQ)(p(IC),p(BK),p(uJ),p(WH),p(OJ))};pQ.\u0275prov=Hc({token:pQ,factory:pQ.\u0275fac,providedIn:"root"});
var rQ=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};rQ.prototype.cancel=function(){this.state=4};var iOb={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};
var sQ=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};sQ.prototype.reset=function(){this.value="";jOb(this)};
var jOb=function(a){for(var b=n(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},kOb=function(a){return a.fromTemplate&&a.initialComment===a.value},lOb=function(a){var b=[];a=n(a.uploads);for(var c=a.next();!c.done;c=a.next())c=c.value,2===c.state&&c.blobRef&&b.push(Si(c.blobRef));return b};sQ.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var mOb=function(a){return!a.isEmpty()&&!Bt(a)};sQ.prototype.isEmpty=function(){return!this.value&&!nOb(this)};
var Bt=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},nOb=function(a){return a.uploads.some(function(b){return 2===b.state})};
var tQ=new Md("routeParams",{factory:function(){return Rc(eL).params}});
var uQ=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};uQ.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,W.of)(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Xi(this.routeParams.template_comment)||1;return(0,W.defer)(function(){return oOb(b,c,d,b.routeParams.do_attribution)})}return a?(0,W.of)(this.draftStore.$window.sessionStorage.getItem(cp(a))||""):(0,W.of)("")};
var oOb=function(a,b,c,d){var e,f,h,k,q;return Pe(function(t){if(1==t.nextAddress)return Qe(t,2),Re(t,a.issueComments.get(b,c),4);if(2!=t.nextAddress)return e=t.yieldResult,f=e.unlinkifiedComment,h=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(k="> From issue "+b+" on "+h+":",t.return(k+"\n\n"+f)):t.return(f);q=Ue(t);zJ(a.errorHandler,q);return t.return("")})};uQ.\u0275fac=function(a){return new (a||uQ)(p(tQ),p(zL),p(eQ),p(xJ))};uQ.\u0275prov=Hc({token:uQ,factory:uQ.\u0275fac,providedIn:"root"});
var pOb=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$=JK(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(C(function(h){return null==h?void 0:h.issue}));this.componentId$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0].componentId}),rf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(Cf(""),rf(),Gf(this.userPreferencesManager.lastPublishModeProto$),
C(function(h){var k=n(h);h=k.next().value;k=k.next().value;h=new sQ(h);h.formattingMode=k;return h}),Af({bufferSize:1,refCount:!0}));this.comment=function(){return nl(f.comment$)};this.createRestrictedResourcesComponentWhitelist=this.activeSession.session.config.createRestrictedSubresourcesComponentWhitelist;this.componentJudgementForNewContent$=this.componentId$.pipe(C(function(h){if(h&&f.createRestrictedResourcesComponentWhitelist.includes(h))return(new Om).setSeverity(2).setJudgementReason("None Specified")}),
Af({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new W.BehaviorSubject(void 0);this.judgementForNewContent$=(0,W.combineLatest)([this.componentJudgementForNewContent$.pipe(Cf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(C(function(h){var k=n(h);h=k.next().value;k=k.next().value;return null!=k?k:h}),Af({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return nl(f.judgementForNewContent$)}},qOb=function(a){var b=a.comment(),c,d=1===(null==(c=a.judgementForNewContent())?
void 0:c.getSeverity())?void 0:a.judgementForNewContent();a=b.value;c=b.formattingMode;var e=[];b=n(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,2===f.state&&f.blobRef&&(f=Si({attachment:f.blobRef}),d&&(f.contentJudgement={severity:Lm(d.getSeverity()),judgementReason:d.getJudgementReason()}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},rOb=function(a){var b=qOb(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},vQ=function(a,b,c,d){this.defaultCommentSource=a;this.issueFetchResponseFridge=b;this.activeSession=c;this.userPreferencesManager=d};vQ.prototype.create=function(a){return new pOb(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession,this.userPreferencesManager)};vQ.\u0275fac=function(a){return new (a||vQ)(p(uQ),p(IK),p(NG),p(aI))};
vQ.\u0275prov=Hc({token:vQ,factory:vQ.\u0275fac,providedIn:"root"});
var wQ=function(){};wQ.prototype.isSloSnoozed=function(a){return!!a&&a.getSeconds()>Date.now()/1E3};
var xQ=function(a){return!!a&&vj(a,Cj,3)&&0!==Ub(a,Cj,3).getSeconds()},yQ=function(a){return xQ(Ub(a,Ol,1))||xQ(Ub(a,Ol,2))||xQ(Ub(a,Ol,3))},sOb=function(a){if(!a)return null;var b=[],c=[];vj(a,Ol,1)&&cBa(b,c,Ub(a,Ol,1),"ASSIGNMENT");vj(a,Ol,2)&&cBa(b,c,Ub(a,Ol,2),"RESPONSE");vj(a,Ol,3)&&cBa(b,c,Ub(a,Ol,3),"CLOSURE");return 0<b.length?(b.sort(dBa),b[0]):0<c.length?(c.sort(dBa),{sloBounds:c[0].sloBounds,sloMetric:""}):null};wQ.\u0275fac=function(a){return new (a||wQ)};
wQ.\u0275prov=Hc({token:wQ,factory:wQ.\u0275fac,providedIn:"root"});
var tOb=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=Cq(this.activeSession,"enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=JK(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFetchResponse$.pipe(C(function(h){return null==
h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(C(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(C(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),C(Gqa),C(function(h){return!!h&&yQ(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(C(function(h){return null!=(null==h?void 0:h.type)&&ABb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(C(function(h){return!h&&!f.enableNonWtdmFieldPerTypeVisibility}));
this.isSloStatusPrimary$=(0,W.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(C(function(h){var k=n(h);h=k.next().value;k=k.next().value;return h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(C(function(h){return!h}));this.isChangelistPrimary$=(0,W.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(C(function(h){var k=n(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(C(function(h){var k;
return null!=(k=null==h?void 0:h.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(C(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(C(function(h){return h.map(function(k){return k.customFieldId}).filter(fm)}),C(function(h){return new Set(h)}),Af({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,W.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(C(function(h){h=n(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),
Af({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,W.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(C(function(h){h=n(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),Af({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,W.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(C(function(h){var k=n(h);h=k.next().value;var q=
k.next().value,t=k.next().value,x=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||t?0:1)+(!f.showChangelists||x?0:2)+k.length}),Af({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(C(function(h){return 0<h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(C(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},zQ=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=b;this.activeSession=c;this.sloStatusHelpersService=
d};zQ.prototype.create=function(a){return new tOb(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};zQ.\u0275fac=function(a){return new (a||zQ)(p(IK),p(VG),p(NG),p(wQ))};zQ.\u0275prov=Hc({token:zQ,factory:zQ.\u0275fac,providedIn:"root"});
var DHb=Aq.EDIT_ISSUE,AQ=function(a,b){Z.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=dp(this.issueToTrackingState,fBa);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")};X(AQ,Z);AQ.\u0275dir=Z.\u0275dir;
var BQ=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),uOb(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)},zu=function(a,b,c){a.getState(b).variations.add(c)},uOb=function(a,b,c,d){vK(a.clearcut,b,c);d=n(d);for(var e=d.next();!e.done;e=d.next())vK(a.clearcut,b,c+"-"+e.value)};AQ.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};
AQ.\u0275fac=function(a){return new (a||AQ)(p(BK),p(uK))};AQ.\u0275prov=Hc({token:AQ,factory:AQ.\u0275fac,providedIn:"root"});
var vOb={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},wOb={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},xOb={type:"START",displayText:"Start work",description:"Change issue status to '"+xl.ACCEPTED+"'"},yOb={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+xl.FIXED+"'"},zOb={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+xl.VERIFIED+"'"},AOb={type:"REOPEN",
displayText:"Re-open",description:"Change issue status back to '"+xl.ASSIGNED+"'"};
var COb=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(Af({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(C(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(C(function(f){return(null==f?void 0:f.assigneeUser)&&Ul(f.assigneeUser)}),C(am));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(C(function(f){return null==f?void 0:f.componentId}),rf(),Df(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,W.of)(void 0)}),C(function(f){return f&&Ul(f.snapshot.assigneeUser)}),Af({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return nl(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,W.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(C(function(f){var h=
n(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?wOb:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(C(function(f){return f&&BOb(e,f)}))},BOb=function(a,b){var c=a.activeSession.getUserEmail();a=Ul(b.assigneeUser)===c;c=Ul(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return zOb;if(a)switch(b){case "ASSIGNED":return xOb;case "ACCEPTED":return yOb;default:return AOb}switch(b){case "NEW":return vOb;case "ASSIGNED":return vOb;case "ACCEPTED":return vOb;
default:return AOb}},CQ=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};CQ.prototype.create=function(a){return new COb(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};CQ.\u0275fac=function(a){return new (a||CQ)(p(NG),p(FK),p(gK))};CQ.\u0275prov=Hc({token:CQ,factory:CQ.\u0275fac,providedIn:"root"});
var DQ=function(a){a=void 0===a?[]:a;this.internalValue$=new W.BehaviorSubject(new Set);this.value$=Mw(this.internalValue$);this.reset(a)};g=DQ.prototype;g.reset=function(a){this.value.clear();a=n(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=n(Uc.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 ju=function(a,b){return a.internalValue$.pipe(C(function(c){return c.has(b)}),rf())};DQ.prototype[Symbol.iterator]=function(){return this.value.values()};DQ.prototype.toString=function(){return"[ReactiveSet](["+[].concat(r(this.value.values())).join(", ")+"])"};DQ.prototype.indexOf=function(a){return[].concat(r(this.value.values())).indexOf(a)};
ni.Object.defineProperties(DQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}}});
var DOb=function(){this.propertiesBeingSaved=new DQ};DOb.prototype.get=function(a){return this.propertiesBeingSaved.has(Go(a))};var EQ=function(a,b){a.propertiesBeingSaved.add(Go(b))},FQ=function(a,b){a.propertiesBeingSaved.delete(Go(b))};DOb.prototype.properties=function(){return[].concat(r(this.propertiesBeingSaved))};
var GQ=function(){};GQ.prototype.transform=function(a){return fp(a)};GQ.\u0275fac=function(a){return new (a||GQ)};GQ.\u0275pipe=$c({name:"appendDomain",type:GQ,pure:!0});
var HQ=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb){var pa=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=t;this.confirmationDialogService=x;this.principalTypes=y;this.issuePermissionService=F;this.accessPolicy=K;this.issueTypeDialog=J;this.logger=R;this.issueFridge=S;this.confirmNoAccessService=
aa;this.issueService=ba;this.attachmentsMember=ka;this.userPreferencesManager=wa;this.issueComments=Aa;this.draftStore=Ka;this.attachmentApi=Ja;this.issueFieldsFactory=Jb;this.issueQuickActionsFactory=ub;this.issueCommentDraftFactory=fb;this.isSavingMap=new Map;this.savingState=dp(this.isSavingMap,function(){return new DOb});this.issueFieldsMap=new Map;this.issueFields=dp(this.issueFieldsMap,function(xa){return pa.issueFieldsFactory.create(xa)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
dp(this.issueQuickActionsMap,function(xa){return pa.issueQuickActionsFactory.create(xa)});this.editableIssueMap=new Map;this.editableIssue$=dp(this.editableIssueMap,function(xa){return EOb(pa,xa)});this.editableIssue=function(xa){return pa.editableIssue$(xa).value};this.subscriptions=new Map;this.getSubscription=dp(this.subscriptions,function(){return new W.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=dp(this.issueCommentDraftMap,function(xa){return pa.issueCommentDraftFactory.create(xa)});
this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};HQ.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()};
HQ.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return Pe(function(t){if(1==t.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=IQ(d,e))&&f.actions&&f.actions.length?Re(t,d.getRetentionState(a),2):t.return();h=t.yieldResult;JQ(d,f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return t.return(KQ(d,q,f,{originalRetentionState:h}))})};
var e$a=function(a,b,c){var d;return Pe(function(e){if(!c)return wJ(a.butterBar,"Reporter can't be empty."),e.return();a.editableIssue(b).setReporter(c);return e.return(null!=(d=a.updateIssue(b))?d:Promise.resolve())})},Iab=function(a,b,c){var d,e,f,h;return Pe(function(k){if(1==k.nextAddress){d=FAb(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):Re(k,ZNb(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())})},Jab=function(a,b,c){var d,e,f;return Pe(function(h){d=qu(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())})},GOb=function(a,b,c){var d,e,f;return Pe(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=IQ(a,d);return e?(f=e.actions.find(function(k){return"duplicateOfIssueId"===
k.fieldName&&!lj(k.value||"")}))&&f.value?h.return(FOb(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})},HOb=function(a,b,c){var d,e;return Pe(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},IOb=function(a,b,c){var d,e,f;return Pe(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:Ai(c.type)}return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},l$a=function(a,b,c){var d,e;return Pe(function(f){d=
a.editableIssue(b);var h;d.effortEstimate=null!=(h=null==c?void 0:Pi(c,2))?h:null;return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},tab=function(a,b,c){var d,e,f;return Pe(function(h){d=a.editableIssue(b);e=cj(c,!1);d.foundInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},xab=function(a,b,c){var d,e,f;return Pe(function(h){d=a.editableIssue(b);e=cj(c,!1);d.verifiedInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},vab=function(a,
b,c){var d,e,f;return Pe(function(h){d=a.editableIssue(b);e=cj(c,!1);d.targetedToVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},zab=function(a,b,c){var d,e;return Pe(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},oab=function(a,b,c){var d,e,f;return Pe(function(h){d=GAb(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())})},lab=function(a,b,c,d){var e,f;return Pe(function(h){e=a.editableIssue(b);e.setSloSnoozeUntil(c);e.setSloSnoozeType(d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},rab=function(a,b,c){var d,e,f;return Pe(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},Gab=function(a,b,c,d){var e,f;return Pe(function(h){e=a.editableIssue(b);e.setCustomField(c,d);return h.return(null!=(f=a.updateIssue(b))?
f:Promise.resolve())})},B$a=function(a,b,c){var d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?Re(k,JOb(a,b,"verifier",[c]),5):Re(k,qQ(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())}})},ou=function(a,b,c){var d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?Re(k,JOb(a,b,"assignee",[c]),5):Re(k,qQ(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())}})},KOb=function(a,b,c){var d,e,f,h,k,q;return Pe(function(t){switch(t.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return Re(t,JOb(a,b,"CC",c),5);e=Sna(d.cc,c);f=e.added;return Re(t,qQ(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:h=t.yieldResult;if(!h)return t.return();t.jumpTo(3);break;case 5:if(k=t.yieldResult,
!k)return t.return();case 3:return d.cc=c,t.return(null!=(q=a.updateIssue(b))?q:Promise.resolve())}})},LOb=function(a,b,c){var d,e,f,h,k,q;return Pe(function(t){switch(t.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return Re(t,JOb(a,b,"collaborators",c),5);e=Sna(d.collaborators,c);f=e.added;return Re(t,qQ(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:h=t.yieldResult;
if(!h)return t.return();t.jumpTo(3);break;case 5:if(k=t.yieldResult,!k)return t.return();case 3:return d.collaborators=c,t.return(null!=(q=a.updateIssue(b))?q:Promise.resolve())}})};HQ.prototype.unarchive=function(a){var b=this,c,d;return Pe(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
HQ.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return Pe(function(h){switch(h.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),EQ(e,"retention"),Qe(h,2,3),Re(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return Re(h,c.issueFridge.poke(a),6);case 6:vJ(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Se(h);FQ(e,"retention");Te(h,0);break;case 2:f=Ue(h),zJ(c.errorHandler,f),h.jumpTo(3)}})};
var MOb=function(a,b){var c,d,e;return Pe(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=IQ(a,c);if(!d||!d.actions)return f.jumpTo(0);JQ(a,d);e=a.issueService.delete(b,"ABUSE");return Re(f,KQ(a,e,d),0)})},Yab=function(a,b){var c,d,e;return Pe(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=IQ(a,c);if(!d||!d.actions)return f.jumpTo(0);JQ(a,d);e=a.issueService.undelete(b);return Re(f,KQ(a,e,d),0)})};
HQ.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return Pe(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),Re(q,(0,W.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();Qe(q,3,4);EQ(d,"subscribe");return Re(q,c.issueFridge.setNotificationSubscription(a,b),4);case 4:Se(q);FQ(d,"subscribe");Te(q,0);break;case 3:k=Ue(q),zJ(c.errorHandler,k),q.jumpTo(4)}})};
var NOb=function(a,b,c){var d,e;Pe(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Qe(f,2,3);vJ(a.butterBar,"Restoring attachment...");EQ(d,"undeleteAttachment");return Re(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:vJ(a.butterBar,"Attachment restored."),KK(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Se(f);FQ(d,"undeleteAttachment");Te(f,0);break;case 2:e=Ue(f),zJ(a.errorHandler,e),f.jumpTo(3)}})},
OOb=function(a,b,c,d){var e,f;return Pe(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Qe(h,2,3);vJ(a.butterBar,"Deleting attachment...");EQ(e,"deleteAttachment");return Re(h,a.attachmentsMember.delete(b,c,d),5);case 5:vJ(a.butterBar,"Attachment deleted."),KK(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Se(h);FQ(e,"deleteAttachment");Te(h,0);break;case 2:f=Ue(h),zJ(a.errorHandler,f),h.jumpTo(3)}})};
HQ.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=qOb(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var h=rOb(d);JQ(this,h);return KQ(this,function(){return Pe(function(k){switch(k.nextAddress){case 1:return Re(k,POb(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}return Re(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(cp(a));
case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var q=c.attachmentApi;var t={issueId:a,attachmentsWithJudgements:f.attachmentsWithJudgements},x=new QI;x.setIssueId(String(t.issueId));void 0!==t.attachments&&x.setAttachmentsList(t.attachments);if(void 0!==t.attachmentsWithJudgements){var y=t.attachmentsWithJudgements.map(Psa);Mb(x,3,y)}q=q.executor.post({url:"action/issues/"+t.issueId+"/attachments",body:x,responseConstructor:jQ}).then(Qsa);return Re(k,q,6);case 6:e.reset();case 5:return d.userDefinedJudgementForNewContent$.next(void 0),
k.return(KK(c.issueFetchResponseFridge,a))}})}(),h)};
var POb=function(a,b){var c,d;return Pe(function(e){if(!bI(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();c=a.editableIssue(b);var f=[].concat(r(c.cc),[a.activeSession.getUserEmail()]);c.cc=f;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return Re(e,a.issueApi.updateIssue(b,d),0)})},EOb=function(a,b){var c=JK(a.issueFetchResponseFridge,b).pipe(C(function(e){var f=
new UNb;if(e){var h=QOb(a,b,Si(ta(e.issue.snapshot)));f.currentUserEmail=a.activeSession.getUserEmail();var k;f.setData(h,b,null!=(k=e.customFields)?k:[])}return f})),d=new W.BehaviorSubject(new UNb);a.getSubscription(b).add(c.subscribe(d));return d};
HQ.prototype.updateIssue=function(a){var b=this.editableIssue(a),c=IQ(this,b);if(!c)return null;for(var d=!1,e=[],f=[],h=a,k=n(c.actions),q=k.next();!q.done;q=k.next()){q=q.value;var t=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=t.split(",").filter(Boolean);break;case "verifier":case "assignee":case "collaborators":f=t.split(",").filter(Boolean);break;case "duplicateOfIssueId":lj(t)||(e=b.cc,h=String(t),d=!0)}}return FOb(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 FOb=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka;return Pe(function(Ja){switch(Ja.nextAddress){case 1:return Re(Ja,Promise.all([ROb(a,e,"appender",d),ROb(a,f,"writer",d)]),2);case 2:t=Ja.yieldResult;x=n(t);y=x.next().value;F=x.next().value;K=y;J=F;R=K.noAccessEmails||[];S=J.noAccessEmails||[];aa=[].concat(r(R),r(S));if(0===aa.length)return Ja.return(SOb(a,q,h,k));Qe(Ja,
3);return Re(Ja,Promise.all(aa.map(function(Jb){return TOb(a,Jb)})),5);case 5:return ba=Ja.yieldResult,ka=tua({userPrincipals:ba,newEditors:S,newImplicitUsers:aa,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),wa=ka.title,Aa=ka.content,Re(Ja,hJb(a.confirmationDialogService,{title:wa,content:Co(Aa),confirmButtonText:"Allow"}),6);case 6:if(Ka=Ja.yieldResult)return Ja.return(SOb(a,q,h,k));a.permissionsFridge.poke("issues/"+b);KK(a.issueFetchResponseFridge,b);Wu(Ja,0);
break;case 3:Ue(Ja),wJ(a.butterBar,"Could not determine email type."),Ve(Ja)}})},SOb=function(a,b,c,d){JQ(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 KQ(a,e,b)},ROb=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(fp),c,h,d):Promise.resolve(e)},QOb=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&nl(a);if(!a||!d)return c;b=d.properties();d={};b=n(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$customFieldId$1956:d.$jscomp$loop$prop$customFieldId$1956},e=b.next())if(e=e.value,e.match(/^\d+$/)){d.$jscomp$loop$prop$customFieldId$1956=Xi(e);var f=(c.customField||[]).find(function(h){return function(k){return k.customFieldId===
h.$jscomp$loop$prop$customFieldId$1956}}(d));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=YNb.get(e))||f(c,a);return c},IQ=function(a,b){var c=XNb(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(gp(e)))});return c.actions.length?c:null},JQ=function(a,b){var c=String(b.issueId);vJ(a.butterBar,"Saving...",0);var d=
b.actions.map(function(e){return e.fieldName}).join(",");BQ(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=n(b.actions);for(c=b.next();!c.done;c=b.next())EQ(a,gp(c.value))},KQ=function(a,b,c,d){var e,f;return Pe(function(h){switch(h.nextAddress){case 1:return Qe(h,2),Re(h,b,4);case 4:return e=h.yieldResult,HK(a.issueFridge,[c.issueId],{eagerUpdate:!1}).then(function(){var k=String(c.issueId);KK(a.issueFetchResponseFridge,k);a.eventsForIssueFridge.poke(k)}),Re(h,UOb(a,c,e,d),5);case 5:Wu(h,
0);break;case 2:f=Ue(h),VOb(a,c,f),Ve(h)}})},UOb=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return Pe(function(t){f=a.savingState(String(b.issueId));h=n(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,FQ(f,gp(q));return c?Re(t,WOb(a,b,e),0):t.jumpTo(0)})},VOb=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=n(b.actions);for(var f=b.next();!f.done;f=b.next())FQ(e,gp(f.value));a.permissionsFridge.poke("issues/"+d);KK(a.issueFetchResponseFridge,d);Wn(c)&&
403===c.status&&Xn(c)?yJ(a.errorHandler,Xn(c)):zJ(a.errorHandler,c)},WOb=function(a,b,c){var d,e,f,h,k,q,t,x,y,F,K;return Pe(function(J){switch(J.nextAddress){case 1:return Re(J,a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=dOb(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.getName())?h:"");if(!c){J.jumpTo(3);break}return Re(J,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=
J.yieldResult;t=n(q);x=t.next().value;y=t.next().value;F=x;K=y;var R=k;if("INDEFINITE"!==K&&c&&F){var S=aBa(c);var aa=aBa(F);S=S===aa?"":" Issue retention period changed from "+S+" to "+aa+"."}else S="";k=R+S;case 3:vJ(a.butterBar,k),Ve(J)}})},JOb=function(a,b,c,d){return Pe(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(r(f.values())).flat())).has(h)?(f.set(c,d),h=!(new Set([].concat(r(f.values())).flat())).has(h)):h=!1;e=h?Re(e,XOb(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},XOb=function(a,b,c,d){var e;return Pe(function(f){if(1==f.nextAddress)return Re(f,ROb(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&0!==e.noAccessEmails.length?f.return(hJb(a.confirmationDialogService,{title:"Removing yourself from "+
d+" may revoke your access to the issue",content:Co("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)})};HQ.prototype.getRetentionState=function(a){return(0,W.firstValueFrom)(JK(this.issueFetchResponseFridge,a).pipe(C(Pva)))};
HQ.prototype.getRetention=function(a){return(0,W.firstValueFrom)(JK(this.issueFetchResponseFridge,a).pipe(C(Mva)))};HQ.prototype.getEffortSpec=function(a){return(0,W.firstValueFrom)(JK(this.issueFetchResponseFridge,a).pipe(C(qva),Df(this.componentFridge.watch),C(Uva)))};var TOb=function(a,b){return Pe(function(c){if(a.activeSession.isExternalSession()){var d=c.return;var e=new ek;e=m(e,1,0);e=m(e,2,0);c=d.call(c,e)}else c=c.return(oH(a.principalTypes,b,!0));return c})};
HQ.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=n(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};HQ.\u0275fac=function(a){return new (a||HQ)(p(IK),p(NG),p(uJ),p(AQ),p(bJ),p(ZJ),p(WK),p(hK),p(iQ),p(xJ),p(UL),p(nH),p(iL),p(OJ),p(fQ),p(WH),p(FK),p(pQ),p(CK),p(mQ),p(aI),p(zL),p(eQ),p(fOb),p(zQ),p(CQ),p(vQ))};
HQ.\u0275prov=Hc({token:HQ,factory:HQ.\u0275fac,providedIn:"root"});
var LQ=function(a,b,c){Z.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new W.ReplaySubject(1);this.ccInProgress$=new W.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(d){var e;return Ql(null==(e=ho(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(d){var e;return Rl(null==(e=ho(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(Af({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(Af({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};X(LQ,Z);LQ.\u0275dir=Z.\u0275dir;
var YOb=function(a,b){var c,d,e;return Pe(function(f){switch(f.nextAddress){case 1:c=nl(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;Qe(f,2,3);return Re(f,ou(a.editIssueService,c,d),5);case 5:return Re(f,(0,W.firstValueFrom)(a.assigneeUpdate$.pipe(hf(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),kf(6E4))),3);case 3:Se(f);a.assigneeInProgress$.next(!1);Te(f,0);break;case 2:throw e=Ue(f),e;}})},ZOb=function(a,b){var c,d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:c=
nl(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=KOb(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=KOb(a.editIssueService,c,[].concat(r(d.cc),[b.email]));if(!f)return k.return();Qe(k,2,3);a.ccInProgress$.next(!0);return Re(k,f,5);case 5:return Re(k,(0,W.firstValueFrom)(a.ccUpdate$.pipe(hf(function(q){q=q.includes(b.email);return"set_user"===b.action?q:!q}),kf(6E4))),
3);case 3:Se(k);a.ccInProgress$.next(!1);Te(k,0);break;case 2:throw h=Ue(k),h;}})};LQ.\u0275fac=function(a){return new (a||LQ)(p(gL),p(iL),p(HQ))};LQ.\u0275prov=Hc({token:LQ,factory:LQ.\u0275fac});
var MQ=function(a,b,c){Z.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};X(MQ,Z);MQ.\u0275dir=Z.\u0275dir;
MQ.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(Ef(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(Ef(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var gBa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";uo(Aq.PERSON_CARD,"assigneeAction",b);YOb(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},hBa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";uo(Aq.PERSON_CARD,"ccAction",b);ZOb(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};MQ.\u0275fac=function(a){return new (a||MQ)(B(RN),B(qH,2),B(LQ,8))};
MQ.\u0275cmp=u({type:MQ,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[mg([qH]),Of],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(E(0,"b-person-card",0),P(1,iBa,9,8,"ng-container",1),U(2,"async"),E(3,"onedev-hovercard-action",2),M("click",function(c){vo(Aq.PERSON_CARD,"showAssignedIssuesAction");var d=sl({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
SN(b.domSafe,d)}),E(4,"span"),Q(5,"Show assigned issues"),G()()());a&2&&(D("email",b.email),A(1),D("ngIf",b.actionService&&V(2,2,b.actionService.editAccess$)))},dependencies:[gy,SM,VP,ny],encapsulation:2,changeDetection:0});
var NQ=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new W.ReplaySubject(1);this.showEmail$=new W.BehaviorSubject(!1);this.isNonObfuscatedEmail=Ao;this.userProfile$=this.email$.pipe(Df(function(d){return c.userProfiles.get(d)})).pipe(Cf(new YP));this.content$=(0,W.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(C(function(d){var e=n(d);d=e.next().value;var f=e.next().value;
e=e.next().value;return(f=f.getDisplayName())?e?d+" ("+f+")":f:d}));this.vars$=(0,W.combineLatest)([this.email$,this.content$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=Cq(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};ni.Object.defineProperties(NQ.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)}}});
NQ.\u0275fac=function(a){return new (a||NQ)(B(NG),B(ZP))};
NQ.\u0275cmp=u({type:NQ,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,nBa,4,2,"ng-container",
0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.vars$))},dependencies:[gy,my,bQ,MQ,iM,mM,ny],encapsulation:2,changeDetection:0});
var OQ=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};OQ.prototype.getDisplayString=function(){return Ql(this.model)};var $Ob=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?Hqa(Tl(b)):Hqa(b))&&!!a.getEmailAddress()};OQ.prototype.getEmailAddress=function(){return Ul(this.model)||""};OQ.\u0275fac=function(a){return new (a||OQ)};
OQ.\u0275cmp=u({type:OQ,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,oBa,1,4,"b-user-display-name",0),P(2,pBa,2,1,"span",
1),L());a&2&&(A(1),D("ngIf",$Ob(b)),A(1),D("ngIf",!$Ob(b)))},dependencies:[gy,NQ],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 PQ=function(a){var b=this;this.userProfiles=a;this.email$=new W.ReplaySubject(1);this.isNonObfuscatedEmail=Ao;this.userProfile$=this.email$.pipe(Df(function(c){return c?b.userProfiles.get(c).pipe(Cf(new YP)):(0,W.of)(void 0)}));this.vars$=(0,W.combineLatest)([this.email$,this.userProfile$]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;if(!d)return{email:c,showImage:!1,src:void 0,srcset:void 0};var e=!d.getPhotoUrl(),f=e?void 0:d.getPhotoUrl(),h;e?h=void 0:h=Pi(d,3)?Pi(d,3)+
" 2x":d.getPhotoUrl()+" 1x";return{email:c,showImage:!e,src:f,srcset:h}}))};ni.Object.defineProperties(PQ.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Ao(a)?this.email$.next(a):this.email$.next(void 0)}}});PQ.\u0275fac=function(a){return new (a||PQ)(B(ZP))};
PQ.\u0275cmp=u({type:PQ,selectors:[["b-user-image"]],inputs:{email:"email"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["imageDisplay",""],["role","button","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"user-avatar","material"],["alt","",3,"src","srcset",4,"ngIf"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(P(0,uBa,4,2,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.vars$))},dependencies:[gy,my,MQ,iM,mM,ny],
styles:['.user-avatar.anonymous[_ngcontent-%COMP%]{border:1px solid;border-color:#bdc1c6;border-color:var(--c400);border-radius:18px;background-image:url("https://www.gstatic.com/buganizer/img/v0/logo_avatar_anonymous.svg");background-repeat:no-repeat;background-position:center}.material.user-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .material.user-avatar.anonymous[_ngcontent-%COMP%]{border-radius:50%}[_nghost-%COMP%]{display:inline-flex;vertical-align:middle}'],changeDetection:0});
var QQ=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()})};QQ.prototype.trackByIndex=function(a){return a};
QQ.prototype.startFeedback=function(){this.userFeedback.startFeedback()};QQ.\u0275fac=function(a){return new (a||QQ)(B(qH,2),B(VO),B(HC),B(xJ),B(cl),B(pI),B(qN))};
QQ.\u0275cmp=u({type:QQ,selectors:[["comment-history-dialog"]],features:[mg([qH])],decls:13,vars:4,consts:[["mat-dialog-title",""],[1,"diff-checkbox"],["label","Show Diff",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&&(E(0,"h2",0),Q(1),G(),E(2,"mat-dialog-content")(3,"div",
1)(4,"b-checkbox",2),M("change",function(c){return b.diffView=c}),G()(),E(5,"a",3),M("click",function(){return b.startFeedback()}),Q(6,"Feedback"),G(),H(7,"br",4),P(8,vBa,2,0,"div",5),P(9,KBa,2,2,"ul",6),G(),E(10,"mat-dialog-actions")(11,"button",7),Q(12,"Close"),G()());a&2&&(A(1),T("History for Comment #",b.commentNumber,""),A(3),D("checked",b.diffView),A(4),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading))},dependencies:[fy,gy,fO,RO,pC,JC,KC,LC,MC,WP,fM,PQ,OQ,ny,GQ,XP],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}\n/*# sourceMappingURL=comment_history_dialog.css.map */"],
changeDetection:0});
var RQ=function(){};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275mod=Yc({type:RQ});RQ.\u0275inj=Ic({imports:[vy]});
var SQ=function(){};SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275mod=Yc({type:SQ});SQ.\u0275inj=Ic({});
var TQ=function(){};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275mod=Yc({type:TQ});TQ.\u0275inj=Ic({imports:[RQ,vy,SQ,uF]});
var UQ=function(){};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275mod=Yc({type:UQ});UQ.\u0275inj=Ic({providers:[fP],imports:[aP]});
/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var VQ=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};ev(VQ,LBa);
VQ.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof VQ&&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 WQ(this),XQ(this),YQ(this,!1,a))}};VQ.prototype.continue_=function(a,b){this.blocked_=!1;YQ(this,a,b)};
var YQ=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;aPb(a)},XQ=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new bPb(a);a.silentlyCanceled_=!1}};VQ.prototype.callback=function(a){XQ(this);YQ(this,!0,a)};VQ.prototype.addCallback=function(a,b){return cPb(this,a,null,b)};var cPb=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&aPb(a);return a};
VQ.prototype.then=function(a,b,c){var d,e,f=new wE(function(h,k){e=h;d=k});cPb(this,e,function(h){h instanceof WQ?f.cancel():d(h);return dPb},this);return f.then(a,b,c)};VQ.prototype.$goog_Thenable=!0;VQ.prototype.isError=function(a){return a instanceof Error};
var ePb=function(a){return rnb(a.sequence_,function(b){return"function"===typeof b[1]})},dPb={},aPb=function(a){if(a.unhandledErrorId_&&a.fired_&&ePb(a)){var b=a.unhandledErrorId_,c=fPb[b];c&&(ea.clearTimeout(c.id_),delete fPb[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===dPb&&(k=void 0);void 0!==
k&&(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(Ywb(b)||"function"===typeof ea.Promise&&b instanceof ea.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,ePb(a)||(c=!0)}}a.result_=b;d&&(k=bv(a.continue_,a,!0),d=bv(a.continue_,a,!1),b instanceof VQ?(cPb(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new gPb(b),fPb[b.id_]=b,a.unhandledErrorId_=b.id_)},bPb=function(){ca.call(this)};ev(bPb,ca);bPb.prototype.message="Deferred has already fired";bPb.prototype.name="AlreadyCalledError";
var WQ=function(){ca.call(this)};ev(WQ,ca);WQ.prototype.message="Deferred was canceled";WQ.prototype.name="CanceledError";var gPb=function(a){this.id_=ea.setTimeout(bv(this.throwError,this),0);this.error_=a};gPb.prototype.throwError=function(){delete fPb[this.id_];throw this.error_;};var fPb={};
var QBa=function(a,b){var c=b||{};b=c.document||document;var d=Fi(a).toString(),e=(new eE(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new VQ(hPb,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){iPb(e,!0);var t=new jPb(1,"Timeout reached for loading script "+d);XQ(h);YQ(h,!1,t)},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(iPb(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=
function(){iPb(e,!0,k);var t=new jPb(0,"Error while loading script "+d);XQ(h);YQ(h,!1,t)};f=c.attributes||{};dc(f,{type:"text/javascript",charset:"UTF-8"});Fwb(e,f);upb(e,a);kPb(b).appendChild(e);return h},kPb=function(a){var b=hE("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},hPb=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&iPb(a,!0,this.timeout_)}},iPb=function(a,b,c){null!=c&&ea.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=
function(){};b&&window.setTimeout(function(){oE(a)},0)},jPb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ca.call(this,c);this.code=a};ev(jPb,ca);
var MBa=null,jp=new WeakMap;
var ZQ=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,W.defer)(function(){return OBa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return TBa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};X(ZQ,aNb);
ZQ.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(af(function(c){var d=(0,W.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,W.from)(SBa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(af(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}))}))}))};
ZQ.prototype.parseResponse=function(a){return new W.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)})})};ZQ.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&RBa(a,b,this.gapiConfigUpdates[b])};
var lPb=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;ZQ.call(this,a,c,d,e);this.waldoApiKey=b};X(lPb,ZQ);lPb.prototype.makeRequest=function(a){var b=ZQ.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};
var Ou=function(a){this.proxiedService=a};X(Ou,aNb);Ou.prototype.makeRequest=function(a){var b=this;return(0,W.defer)(function(){return b.proxiedService.makeRequest(a)})};
var mPb=new Md("environment"),nPb={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},$Q=function(){};$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275mod=Yc({type:$Q});$Q.\u0275inj=Ic({imports:[vy,CP]});
var aR=function(){};aR.\u0275fac=function(a){return new (a||aR)};aR.\u0275mod=Yc({type:aR});aR.\u0275inj=Ic({imports:[vy,UQ,TQ,$Q]});
var bR=function(){};bR.\u0275fac=function(a){return new (a||bR)};bR.\u0275mod=Yc({type:bR});bR.\u0275inj=Ic({imports:[vy,aR,TM]});
var cR=function(){};cR.\u0275fac=function(a){return new (a||cR)};cR.\u0275mod=Yc({type:cR});cR.\u0275inj=Ic({imports:[$Q,vy,JN]});
var dR=function(){};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275mod=Yc({type:dR});dR.\u0275inj=Ic({imports:[vy,TM,bR]});
var eR=function(a){this.session=a;this.isNonObfuscatedEmail=Ao;this.email="";this.withProfile=!0;this.enableWaldoAvailability=Cq(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};eR.\u0275fac=function(a){return new (a||eR)(B(NG))};
eR.\u0275cmp=u({type:eR,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&&(E(0,"span",0),P(1,UBa,1,1,"b-user-image",1),P(2,WBa,6,3,"ng-container",2),P(3,XBa,2,1,"ng-template",null,3,Hg),P(5,YBa,2,1,"span",4),G());if(a&2){var c=O(4);A(1);D("ngIf",b.withProfile);A(1);D("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);A(3);D("ngIf",b.enableWaldoAvailability)}},dependencies:[gy,my,bQ,MQ,iM,mM,PQ],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 oPb=0,fR=function(a,b){var c=this;this.teamsService=a;this.session=b;this.teamId="";this.enableSmallChip=!1;this.providedTeamId$=new W.ReplaySubject(1);this.providedUser$=new W.ReplaySubject(1);this.providedEmail$=new W.ReplaySubject(1);this.isNonObfuscatedEmail=Ao;this.fetchedTeam$=this.providedTeamId$.pipe(Df(function(d){return c.teamsService.getTeam(d)}),nf(function(){return(0,W.of)((new NI).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.detailedUserType$=this.providedUser$.pipe(C(function(d){d=
d?d&&d.getUserGaiaStatus?Ki(d,4):d.aliases||[]:[];return d.includes("googlers_unrestricted")?1:d.includes("google_domain")?2:d.includes("issue_creation_only_accounts")?5:d.includes("external_partners")?3:d.includes("public_non_google")?4:0}),Cf(0));this.isTeamMember$=(0,W.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(Df(function(d){var e=n(d);d=e.next().value;e=e.next().value;return HIb(c.teamsService,d,e)}),Cf(!1),nf(function(){return(0,W.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(C(function(d){return"Member of "+
d.getName()}));this.groupMembershipType$=(0,W.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;if(c.enableExternalAnnotations){if(4===d)return"PUBLIC_USER";if(3===d)return"PARTNER_USER"}return e?"INTERNAL_TEAM_MEMBER":"INTERNAL_NON_TEAM_MEMBER"}));this.enableExternalAnnotations=Cq(this.session,"enableExternalAnnotations");this.enableWaldoAvailability=Cq(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();
this.userTypeClass$=this.groupMembershipType$.pipe(C(function(d){return c.enableSmallChip?"user-chip-small":d&&"INTERNAL_NON_TEAM_MEMBER"!==d?"user-chip":"user-chip-without-icon"}));this.userChipType$=this.groupMembershipType$.pipe(C(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"team-member-chip";if("PARTNER_USER"===d)return"partner-chip";if("PUBLIC_USER"===d)return"public-chip"}else return"internal-non-team-member-chip";return""}));this.shouldShowIcon$=this.groupMembershipType$.pipe(C(function(d){return d&&
"INTERNAL_NON_TEAM_MEMBER"!==d}));this.iconName$=this.groupMembershipType$.pipe(C(function(d){if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return"people-outline";if("PARTNER_USER"===d)return"enterprise";if("PUBLIC_USER"===d)return"public"}return""}));this.iconToolTip$=this.groupMembershipType$.pipe(Gf(this.teamUser$),C(function(d){var e=n(d);d=e.next().value;e=e.next().value;if(d&&"INTERNAL_NON_TEAM_MEMBER"!==d){if("INTERNAL_TEAM_MEMBER"===d)return e;if("PARTNER_USER"===d)return"Partner user";
if("PUBLIC_USER"===d)return"Public user"}return""}));oPb++};fR.prototype.ngOnInit=function(){};fR.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)};fR.\u0275fac=function(a){return new (a||fR)(B($K),B(NG))};
fR.\u0275cmp=u({type:fR,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip"},features:[ed],decls:11,vars:13,consts:[[3,"ngClass"],["class","bv2-profile-avatar",3,"email",4,"ngIf"],[3,"email","hovercardFocusEnabled","availabilityChipEnabled",4,"ngIf","ngIfElse"],["smallChipContents",""],[3,"svgIcon","matTooltip",4,"ngIf"],[4,"ngIf"],[1,"bv2-profile-avatar",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&&(E(0,"span",0),U(1,"async"),E(2,"span",0),U(3,"async"),P(4,ZBa,1,1,"b-user-image",1),P(5,$Ba,1,3,"b-user-display-name",2),P(6,dCa,3,2,"ng-template",null,3,Hg),P(8,eCa,3,6,"mat-icon",4),U(9,"async"),G()(),P(10,fCa,2,1,"ng-container",
5));if(a&2){var c=O(7),d,e;D("ngClass",null!==(d=V(1,7,b.userTypeClass$))&&void 0!==d?d:"");A(2);D("ngClass",null!==(e=V(3,9,b.userChipType$))&&void 0!==e?e:"");A(2);D("ngIf",b.enableSmallChip);A(1);D("ngIf",!b.enableSmallChip)("ngIfElse",c);A(3);D("ngIf",V(9,11,b.shouldShowIcon$));A(2);D("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[ey,gy,my,bQ,yD,tF,MQ,iM,mM,PQ,NQ,ny],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}.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%]     span.bv2-profile-avatar, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar{background-size:103%;display:inline-block;height:12px;vertical-align:middle;width:12px}[_nghost-%COMP%]     span.bv2-profile-avatar img, [_nghost-%COMP%]     .bv2-profile-avatar .user-avatar img{background-color:#f1f3f4;background-color:var(--c100);height:12px;width:12px}"],
changeDetection:0});
var gR=function(){};gR.\u0275fac=function(a){return new (a||gR)};gR.\u0275mod=Yc({type:gR});gR.\u0275inj=Ic({imports:[vy,cR,uF,uG,bR,dR,TM]});
var hR=function(){};hR.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""}};hR.\u0275fac=function(a){return new (a||hR)};hR.\u0275pipe=$c({name:"toAccessLevelLabel",type:hR,pure:!0});
var pPb={UNKNOWN:"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"},iR=function(){};iR.prototype.transform=function(a){return pPb[a]};iR.\u0275fac=function(a){return new (a||iR)};iR.\u0275pipe=$c({name:"toCustomFieldTypeDisplayValue",type:iR,pure:!0});
var jR=function(){};jR.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+"@"};jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275pipe=$c({name:"shortenEmail",type:jR,pure:!0});
var kR=function(){};kR.\u0275fac=function(a){return new (a||kR)};kR.\u0275mod=Yc({type:kR});kR.\u0275inj=Ic({imports:[vy]});
var lR=function(){};lR.\u0275fac=function(a){return new (a||lR)};lR.\u0275mod=Yc({type:lR});lR.\u0275inj=Ic({imports:[vy,AO,SO,AF,NC,bR,kR,RM,gR]});
var gCa=function(){},kp=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=qPb(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=rPb(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=sPb(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);tPb(a,b);return b},sPb=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=uPb(b,c))return c=f[1],h=f[3],b=f[4],f=kp(a,f[0],f[2],d,e),a=kp(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){b=vPb(b,c);c=b.lineArray;b=kp(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("")}hCa(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=kp(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),t=Array(k),x=0;x<k;x++)q[x]=-1,t[x]=-1;q[h+1]=0;t[h+1]=0;x=d-f;for(var y=0!=x%2,F=0,K=0,J=0,R=0,S=0;S<h&&!((new Date).getTime()>e);S++){for(var aa=-S+
F;aa<=S-K;aa+=2){var ba=h+aa;var ka=aa==-S||aa!=S&&q[ba-1]<q[ba+1]?q[ba+1]:q[ba-1]+1;for(var wa=ka-aa;ka<d&&wa<f&&b.charAt(ka)==c.charAt(wa);)ka++,wa++;q[ba]=ka;if(ka>d)K+=2;else if(wa>f)F+=2;else if(y&&(ba=h+x-aa,0<=ba&&ba<k&&-1!=t[ba])){var Aa=d-t[ba];if(ka>=Aa){a=wPb(a,b,c,ka,wa,e);break a}}}for(aa=-S+J;aa<=S-R;aa+=2){ba=h+aa;Aa=aa==-S||aa!=S&&t[ba-1]<t[ba+1]?t[ba+1]:t[ba-1]+1;for(ka=Aa-aa;Aa<d&&ka<f&&b.charAt(d-Aa-1)==c.charAt(f-ka-1);)Aa++,ka++;t[ba]=Aa;if(Aa>d)R+=2;else if(ka>f)J+=2;else if(!y&&
(ba=h+x-aa,0<=ba&&ba<k&&-1!=q[ba]&&(ka=q[ba],wa=h+ka-ba,Aa=d-Aa,ka>=Aa))){a=wPb(a,b,c,ka,wa,e);break a}}}a=[[-1,b],[1,c]]}return a},wPb=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=kp(a,b.substring(0,d),c.substring(0,e),!1,f);a=kp(a,h,k,!1,f);return b.concat(a)},vPb=function(a,b){function c(h){for(var k="",q=0,t=-1,x=d.length;t<h.length-1;){t=h.indexOf("\n",q);-1==t&&(t=h.length-1);var y=h.substring(q,t+1);(e.hasOwnProperty?e.hasOwnProperty(y):void 0!==e[y])?k+=String.fromCharCode(e[y]):
(x==f&&(y=h.substring(q),t=h.length),k+=String.fromCharCode(x),e[y]=x,d[x++]=y);q=t+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}},qPb=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},rPb=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},xPb=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++}},uPb=function(a,b){function c(k,q,t){for(var x=k.substring(t,t+Math.floor(k.length/4)),y=-1,F="",
K,J,R,S;-1!=(y=q.indexOf(x,y+1));){var aa=qPb(k.substring(t),q.substring(y)),ba=rPb(k.substring(0,t),q.substring(0,y));F.length<ba+aa&&(F=q.substring(y-ba,y)+q.substring(y,y+aa),K=k.substring(0,t-ba),J=k.substring(t+aa),R=q.substring(0,y-ba),S=q.substring(y+aa))}return 2*F.length>=k.length?[K,J,R,S,F]: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]]},hCa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,t=0,x=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=t,q=x,x=t=0,f=b[h][1]):(1==b[h][0]?t+=b[h][1].length:x+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(t,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=t=q=k=0,f=null,c=!0)),h++;c&&tPb(a,b);yPb(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=xPb(a,c);e=xPb(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++}},yPb=function(a){function b(y,F){if(!y||!F)return 6;var K=y.charAt(y.length-1),J=F.charAt(0),R=K.match(zPb),S=J.match(zPb),
aa=R&&K.match(APb),ba=S&&J.match(APb);K=aa&&K.match(BPb);J=ba&&J.match(BPb);y=K&&y.match(CPb);F=J&&F.match(DPb);return y||F?5:K||J?4:R&&!aa&&ba?3:aa||ba?2:R||S?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=rPb(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,t=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>=t&&(t=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++}},zPb=/[^a-zA-Z0-9]/,APb=/\s/,BPb=/[\r\n]/,CPb=/\n\r?\n$/,DPb=/^\r?\n\r?\n/,tPb=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=qPb(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=rPb(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&&tPb(a,b)};
var mR=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};mR.prototype.show=function(a,b,c){var d=this,e;return Pe(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();Mo(d.analytics,"commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:EPb(d,a,b,c)};d.dialog=d.dialogManager.open(QQ,{data:e,width:"50vw"});return f.return((0,W.firstValueFrom)(CC(d.dialog)))})};
var EPb=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=n(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var x=jCa(t);x||k?(f=nR(t.unlinkifiedComment),h=nR(t.formattingMode)):(f=iCa(f,t.unlinkifiedComment),k=t.formattingMode,h=h===k?nR(k):Fo(nR(h,"diff-removed"),nR(k,"diff-added")));k=void 0===t.unlinkifiedComment?"":t.unlinkifiedComment;var y=t.version,F=t.commentContentVerdict;
q.push({unlinkifiedComment:k,lastEditorUser:t.lastEditorUser,version:y,formattingMode:t.formattingMode,formattingModeDiff:h,lastModified:Number(t.lastModified)/1E3,open:25>y,preview:48>=k.length?k:k.substring(0,45)+"...",diff:f,restricted:F&&F.piiVerdict&&"NONE_DETECTED"!==F.piiVerdict.severity||!1,deleted:jCa(t)});f=t.unlinkifiedComment;h=t.formattingMode;k=x}-1<d?q[d].open=!0:q[0].open=!0;return q})},nR=function(a,b){return Eo("SPAN",b?{"class":b}:null,a)};
mR.\u0275fac=function(a){return new (a||mR)(p(BK),p(zL),p(IC))};mR.\u0275prov=Hc({token:mR,factory:mR.\u0275fac,providedIn:"root"});
var FPb=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"]]),GPb=new Map([[0,"Unknown"],[1,"Enabled"],[2,"Disabled"]]),HPb=new Map([[1,"Default (10 years)"],[2,"Custom Period"],[3,"Indefinite"]]),IPb=new Map([[1,"Default (60 days)"],[2,"Custom Period"],[3,"Match Issue Retention"]]);
var JPb=function(a){return a?new Set(Ki(a,1).map(function(b){return Vi(b)})):new Set},oR=function(a,b,c){return a.has(b)?c:""},KPb=function(a,b,c){return a.has(b)?c:[]},pR=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}};
var qR=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};qR.\u0275fac=function(a){return new (a||qR)(p(WH),p(NG))};qR.\u0275prov=Hc({token:qR,factory:qR.\u0275fac,providedIn:"root"});
var LPb=function(a){if(!a)return"";var b=HPb.get(qj(a,1,0)),c=Ji(a,2),d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=IPb.get(qj(a,3,0));c=Ji(a,4);a=Ji(a,5);d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},NPb=function(a){if(!a)return"";var b=a.getInherit(),c=MPb.get(a.getSource()),d=a.getId();a=a.getComment();b="Inherit: "+b+", Source: "+c+", ID: "+d;return a?b+(", Justification: "+a):b},MPb=new Map([[0,"--"],[1,"User"],[2,"Bugscope"]]),
OPb=function(a){if(!a)return"";var b=a.getInherit();a=a.getId();return"Inherit: "+b+", ID: "+a};
var PPb=Lh({opacity:"0"}),QPb=hf(function(a){return a}),RPb=(0,W.pipe)(rf(),QPb,wf()),SPb=new Md("xap-bubble UX style"),rR=function(a){var b=this;this.activity=new W.Subject;this.openedSubject=new W.BehaviorSubject(!1);this.destroy=new W.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new sx;this.onOpened=new sx;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Aga(function(){return b.activity.pipe(of(b.hoverDelayMs))}));
a=Ef(this.destroy);this.opened.pipe(RPb,a).subscribe(this.onOpened);this.openedSubject.pipe(QPb,oha(function(){return b.opened.pipe(hf(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};rR.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};rR.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};rR.\u0275fac=function(a){return new (a||rR)(B(SPb,8))};
rR.\u0275cmp=u({type:rR,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&&(fg(),E(0,"span",0,1),M("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),gg(2),G(),P(3,lCa,2,3,"ng-template",2),U(4,"async"));if(a&2){var c=O(1);D("ngClass",b.bubbleStyle);
A(3);D("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",V(4,5,b.opened))}},dependencies:[ey,my,FB,EB,ny],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:[Jh("fade",[Nh(":enter",[PPb,Kh("225ms")]),Nh(":leave",[Kh("195ms",PPb)])])]}});
var sR=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
sR.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=""}};sR.\u0275fac=function(a){return new (a||sR)(B(NG),B(QN))};
sR.\u0275cmp=u({type:sR,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[ed],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,pCa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?
"EXTERNAL_PARTNER"===b.accessLevel||"EXTERNAL_PUBLIC"===b.accessLevel:OG(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;D("ngIf",a)}},dependencies:[ey,gy,rR,hR],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 tR=function(a,b){Z.call(this);this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new W.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(Df(this.componentFridge.watch),Af({refCount:!0,bufferSize:1}));this.init=new W.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};X(tR,Z);tR.\u0275dir=Z.\u0275dir;
tR.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=sl({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=rl("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=rqa(this.componentId,"basic");this.component$.pipe(sf(),Ef(this.destroyed$)).subscribe(function(){a.init.next()})};tR.\u0275fac=function(a){return new (a||tR)(B(ZJ),B(NG))};
tR.\u0275cmp=u({type:tR,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[Of],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&&(E(0,"div",0)(1,"div",1),P(2,rCa,16,8,"ng-container",2),U(3,"async"),G()());a&2&&(A(2),D("ngIf",V(3,1,b.component$)))},dependencies:[gy,
sR,ny],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});
var TPb=Jh("transformPanelWrap",[Nh("* => void",Ph("@transformPanel",[Oh()]))]),UPb=Jh("transformPanel",[Mh("void",Lh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Mh("showing",Lh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Mh("showing-multiple",Lh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Nh("void => *",Kh("120ms cubic-bezier(0, 0, 0.2, 1)")),Nh("* => void",Kh("100ms 25ms linear",Lh({opacity:0})))]);
var VPb=["trigger"],WPb=["panel"],XPb=0,YPb=new Md("mat-select-scroll-strategy"),ZPb=new Md("MAT_SELECT_CONFIG"),$Pb={provide:YPb,deps:[DB],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},aQb=new Md("MatSelectTrigger"),bQb=pi(si(qi(jla(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new W.Subject})))),uR=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){var J=bQb.call(this,
e,d,h,k,t)||this;J._viewportRuler=a;J._changeDetectorRef=b;J._ngZone=c;J._dir=f;J._parentFormField=q;J._liveAnnouncer=F;J._defaultOptions=K;J._panelOpen=!1;J._compareWith=function(ba,ka){return ba===ka};J._uid="mat-select-"+XPb++;J._triggerAriaLabelledBy=null;J._destroy=new W.Subject;J._onChange=function(){};J._onTouched=function(){};J._valueId="mat-select-value-"+XPb++;J._panelDoneAnimatingStream=new W.Subject;var R;J._overlayPanelClass=(null==(R=J._defaultOptions)?void 0:R.overlayPanelClass)||"";
J._focused=!1;J.controlType="mat-select";J._multiple=!1;var S,aa;J._disableOptionCentering=null!=(aa=null==(S=J._defaultOptions)?void 0:S.disableOptionCentering)?aa:!1;J.ariaLabel="";J.optionSelectionChanges=(0,W.defer)(function(){var ba=J.options;return ba?ba.changes.pipe(Cf(ba),Df(function(){return W.merge.apply(null,r(ba.map(function(ka){return ka.onSelectionChange})))})):J._ngZone.onStable.pipe(sf(),Df(function(){return J.optionSelectionChanges}))});J.openedChange=new sx;J._openedStream=J.openedChange.pipe(hf(function(ba){return ba}),
C(function(){}));J._closedStream=J.openedChange.pipe(hf(function(ba){return!ba}),C(function(){}));J.selectionChange=new sx;J.valueChange=new sx;J.ngControl&&(J.ngControl.valueAccessor=J);null!=(null==K?void 0:K.typeaheadDebounceInterval)&&(J._typeaheadDebounceInterval=K.typeaheadDebounceInterval);J._scrollStrategyFactory=y;J._scrollStrategy=J._scrollStrategyFactory();J.tabIndex=parseInt(x)||0;J.id=J.id;return J};X(uR,bQb);g=uR.prototype;
g.ngOnInit=function(){var a=this;this._selectionModel=new jB(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(rf(),Ef(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(Ef(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(Cf(null),Ef(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&&QA(this._keyManager,this._typeaheadDebounceInterval)};g.ngOnDestroy=function(){var a;null==(a=this._keyManager)||a.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete()};g.toggle=function(){this.panelOpen?this.close():this.open()};
g.open=function(){this._canOpen()&&(this._panelOpen=!0,PA(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};g.close=function(){this._panelOpen&&(this._panelOpen=!1,PA(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||xh(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||xh(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(sf()).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._selectionModel.selected.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))?SA(this._keyManager,a):this.panelOpen||SA(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._initKeyManager=function(){var a=this;this._keyManager=Ntb(Otb(RA(PA(Mtb(QA(new VA(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr"))));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,W.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ef(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});W.merge.apply(null,r(this.options.map(function(c){return c._stateChanges}))).pipe(Ef(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(){this._keyManager&&(this.empty?TA(this._keyManager):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()};
ni.Object.defineProperties(uR.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:Rrb(b))?d:!1},set:function(a){this._required=rh(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=rh(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=rh(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=uh(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}}});uR.\u0275fac=function(a){return new (a||uR)(B(lB),B(Xx),B(Mf),B(PB),B(Rd),B(XA,8),B(Py,8),B(Yy,8),B(TC,8),B(Iy,10),Ad("tabindex"),B(YPb),B(EA),B(ZPb,8))};
uR.\u0275dir=u({type:uR,viewQuery:function(a,b){a&1&&(zg(VPb,5),zg(WPb,5),zg(FB,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:[Of,ed]});
var cQb=[[["mat-select-trigger"]],"*"],dQb=function(a,b){this.source=a;this.value=b},vR=function(){};vR.\u0275fac=function(a){return new (a||vR)};vR.\u0275dir=u({type:vR,selectors:[["mat-select-trigger"]],features:[mg([{provide:aQb,useExisting:vR}])]});
var wR=function(){var a=uR.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};X(wR,uR);wR.\u0275dir=uR.\u0275dir;g=wR.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;uR.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(Ef(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;uR.prototype._canOpen.call(this)&&(uR.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(sf()).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=ola(a,this.options,this.optionGroups),c=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===b?0:pla((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());uR.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new dQb(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+=ola(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};wR.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(wR)))(b||wR)}}();
wR.\u0275cmp=u({type:wR,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(Ag(c,aQb,5),Ag(c,rC,5),Ag(c,nub,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",1,"mat-select"],hostVars:19,hostBindings:function(a,b){a&1&&M("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(Uf("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()),Zf("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:[mg([{provide:SC,useExisting:wR},{provide:mub,useExisting:wR}]),Of],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&&(fg(cQb),E(0,"div",0,1),M("click",function(){return b.toggle()}),E(3,"div",2),P(4,sCa,2,1,"span",3),P(5,vCa,3,2,"span",4),G(),E(6,"div",5),H(7,"div",6),G()(),P(8,wCa,4,14,"ng-template",7),M("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",
function(){return b.close()}));if(a&2){var c=O(1);Uf("aria-owns",b.panelOpen?b.id+"-panel":null);A(3);D("ngSwitch",b.empty);Uf("id",b._valueId);A(1);D("ngSwitchCase",!0);A(1);D("ngSwitchCase",!1);A(3);D("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayMinWidth",b._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",
b._offsetY)}},dependencies:[ey,iy,jy,ky,FB,EB],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:[TPb,UPb]},changeDetection:0});
var xR=function(){};xR.\u0275fac=function(a){return new (a||xR)};xR.\u0275mod=Yc({type:xR});xR.\u0275inj=Ic({providers:[$Pb],imports:[vy,GB,sC,HB,oB,YC,sC,HB]});
var yR=function(){this.changes=new W.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}};yR.\u0275fac=function(a){return new (a||yR)};yR.\u0275prov=Hc({token:yR,factory:yR.\u0275fac,providedIn:"root"});
var eQb={provide:yR,deps:[[new mw,new nw,yR]],useFactory:function(a){return a||new yR}};
new Md("MAT_PAGINATOR_DEFAULT_OPTIONS");
var fQb=qi(kla(function(){})),zR=function(a,b,c){var d=fQb.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 sx;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};X(zR,fQb);g=zR.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})};
ni.Object.defineProperties(zR.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(uh(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=uh(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(uh(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return uh(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=rh(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=rh(a)}}});
zR.\u0275fac=function(){Vd()};zR.\u0275dir=u({type:zR,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[Of]});
var gQb=new Md("/* Legacy */ MAT_PAGINATOR_DEFAULT_OPTIONS"),AR=function(a,b,c){a=zR.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};X(AR,zR);AR.\u0275dir=zR.\u0275dir;AR.\u0275fac=function(a){return new (a||AR)(B(yR),B(Xx),B(gQb,8))};
AR.\u0275cmp=u({type:AR,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Of],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",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&&(E(0,"div",0)(1,"div",1),P(2,ACa,5,3,"div",2),E(3,"div",3)(4,"div",4),Q(5),G(),P(6,BCa,3,5,"button",5),E(7,"button",6),M("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),qd(),E(8,"svg",7),H(9,"path",8),G()(),rd(),E(10,"button",9),M("click",function(){return b.nextPage()}),qd(),E(11,"svg",7),H(12,"path",10),G()(),P(13,CCa,3,5,"button",11),G()()());a&2&&(A(2),D("ngIf",!b.hidePageSize),A(3),T(" ",b._intl.getRangeLabel(b.pageIndex,
b.pageSize,b.length)," "),A(1),D("ngIf",b.showFirstLastButtons),A(1),D("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),Uf("aria-label",b._intl.previousPageLabel),A(3),D("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),Uf("aria-label",b._intl.nextPageLabel),A(3),D("ngIf",b.showFirstLastButtons))},
dependencies:[fy,gy,pC,XC,wR,rC,tF],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 BR=function(a){this.paths=a;this.children=[];this.onVisit=new sx;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};BR.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};BR.\u0275fac=function(a){return new (a||BR)(B(pI))};
BR.\u0275cmp=u({type:BR,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,DCa,1,3,"mat-paginator",0),E(1,"ul",1),P(2,
ECa,6,4,"li",2),G());a&2&&(D("ngIf",b.children.length>b.pageSize),A(2),D("ngForOf",b.childrenOnPage))},dependencies:[fy,gy,iM,mM,tR,AR],encapsulation:2});
var CR=function(){};CR.\u0275fac=function(a){return new (a||CR)};CR.\u0275mod=Yc({type:CR});CR.\u0275inj=Ic({imports:[vy,GB]});
var DR=function(){};DR.\u0275fac=function(a){return new (a||DR)};DR.\u0275mod=Yc({type:DR});DR.\u0275inj=Ic({imports:[vy,kR,CR]});
var ER=function(){};ER.\u0275fac=function(a){return new (a||ER)};ER.\u0275mod=Yc({type:ER});ER.\u0275inj=Ic({imports:[vy,DR]});
var FR=function(){};FR.\u0275fac=function(a){return new (a||FR)};FR.\u0275mod=Yc({type:FR});FR.\u0275inj=Ic({providers:[eQb],imports:[vy,AF,xR,uG,HB]});
var GR=function(){};GR.\u0275fac=function(a){return new (a||GR)};GR.\u0275mod=Yc({type:GR});GR.\u0275inj=Ic({imports:[vy,TM,ER,FR]});
var HR=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new sx;this.onClickCopyIssueShortLinks=new sx;this.onClickCopyAsIssueSearch=new sx};HR.\u0275fac=function(a){return new (a||HR)};
HR.\u0275cmp=u({type:HR,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&&(E(0,"b-button-group")(1,"button",0),M("click",function(){return b.onClickCopyIssueIds.emit()}),H(2,"b-icon",1),G(),E(3,"button",2),H(4,"b-icon",3),G(),E(5,"mat-menu",null,4),P(7,FCa,2,1,"button",5),E(8,"button",6),M("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
Q(9," Copy as issue search "),G()()());if(a&2){var c=O(6);A(3);D("matMenuTriggerFor",c);A(4);D("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[gy,oF,mF,nF,pC,xG,QG],encapsulation:2,changeDetection:0});
var hQb=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.body.appendChild(c)};hQb.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};
hQb.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};
var IR=function(a){this._document=a};IR.prototype.copy=function(a){a=new hQb(a,this._document);var b=a.copy();a.destroy();return b};IR.\u0275fac=function(a){return new (a||IR)(p(li))};IR.\u0275prov=Hc({token:IR,factory:IR.\u0275fac,providedIn:"root"});
new Md("CDK_COPY_TO_CLIPBOARD_CONFIG");
new Md("xap-clipboard-snackbar-options");
var JR=function(){};JR.\u0275fac=function(a){return new (a||JR)};JR.\u0275mod=Yc({type:JR});JR.\u0275inj=Ic({imports:[vy,AF,uF,qJ]});
var KR=function(){};KR.\u0275fac=function(a){return new (a||KR)};KR.\u0275mod=Yc({type:KR});KR.\u0275inj=Ic({imports:[vy,pF,AF,ZG,$G,JR]});
var LR=function(a,b,c,d,e){this.clipboard=a;this.analytics=c;this.butterBar=d;this.window=e;this.shortLinkPrefix=wt(b)?"b/":"b-qa/"},DLa=function(a,b){a.clipboard.copy(b.join(", "));vJ(a.butterBar,"Issue IDs copied.",2E3);Mo(a.analytics,Aq.LIST_ISSUES,"copyIssueId","IDs")},ELa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));vJ(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);Mo(a.analytics,Aq.LIST_ISSUES,"copyIssueId","b/ links")},FLa=function(a,b){b=
sl({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);vJ(a.butterBar,"Issue search link copied.",2E3);Mo(a.analytics,Aq.LIST_ISSUES,"copyIssueId","Issue search link")};LR.\u0275fac=function(a){return new (a||LR)(p(IR),p(NG),p(BK),p(uJ),p(hJ))};LR.\u0275prov=Hc({token:LR,factory:LR.\u0275fac,providedIn:"root"});
var MR=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)};MR.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
MR.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};MR.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"};MR.\u0275fac=function(a){return new (a||MR)(B(Rd))};
MR.\u0275dir=u({type:MR,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&M("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var NR=function(){};NR.\u0275fac=function(a){return new (a||NR)};NR.\u0275mod=Yc({type:NR});NR.\u0275inj=Ic({});
var OR=function(){QH.apply(this,arguments)};X(OR,QH);ni.Object.defineProperties(OR.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});OR.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(OR)))(b||OR)}}();OR.\u0275dir=u({type:OR,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[Of]});var PR=function(){};
PR.\u0275fac=function(a){return new (a||PR)};PR.\u0275mod=Yc({type:PR});PR.\u0275inj=Ic({imports:[vy,UH]});
var QR=function(){this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};ni.Object.defineProperties(QR.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){this.componentPath="settings"===this.componentPathsLinkTo?mp(a,vl):mp(a)}}});QR.\u0275fac=function(a){return new (a||QR)};
QR.\u0275cmp=u({type:QR,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&&(E(0,"div",0)(1,"p",1),Q(2),G(),E(3,"span",2),P(4,GCa,6,4,"span",3),P(5,HCa,2,0,"span",4),G()());a&2&&(A(2),T("",b.label,":"),A(2),D("ngForOf",b.componentPath),A(1),D("ngIf",b.isArchived))},dependencies:[fy,gy,iM,mM,tR,OR],encapsulation:2});
var RR=function(){};RR.\u0275fac=function(a){return new (a||RR)};RR.\u0275mod=Yc({type:RR});RR.\u0275inj=Ic({imports:[vy,TM,ER,PR]});
var SR=function(){this.warningChunks=[]};SR.prototype.ngOnInit=function(){var a=this.warningText,b=iQb(a,"EXTERNAL_PUBLIC")||iQb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};SR.prototype.isText=function(a){return void 0!==a.text};SR.\u0275fac=function(a){return new (a||SR)};
SR.\u0275cmp=u({type:SR,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&&(E(0,"div"),P(1,KCa,3,2,"span",0),G());a&2&&(A(1),D("ngForOf",b.warningChunks))},dependencies:[fy,gy,sR],encapsulation:2});
var jQb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]),iQb=function(a,b){var c=jQb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null};
var TR=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=oLb(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};
TR.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};TR.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};TR.\u0275fac=function(a){return new (a||TR)(B(HC),B(QN),B(EC))};
TR.\u0275cmp=u({type:TR,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&&(E(0,"h1",0),Q(1),G(),E(2,"div",1)(3,"div",2),H(4,"b-component-move-warning-content",3),G(),H(5,"br"),E(6,"a",4),Q(7,"Learn more"),G(),P(8,LCa,5,1,"div",5),G(),E(9,"mat-dialog-actions")(10,"button",6),M("click",function(){return b.cancel()}),Q(11," Cancel "),G(),P(12,MCa,2,1,"button",7),G());a&2&&(A(1),kg(b.header),A(3),D("warningText",b.warning),A(2),Uf("href",b.learnMore,le),A(2),D("ngIf",b.isExternalMove&&b.isAllowed),A(4),D("ngIf",b.isAllowed))},
dependencies:[gy,Ky,Ry,pC,fN,JC,KC,LC,MC,SR],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});
var UR=function(){};UR.\u0275fac=function(a){return new (a||UR)};UR.\u0275mod=Yc({type:UR});UR.\u0275inj=Ic({imports:[vy,fz,AF,iN,NC,DR]});
var VR=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};VR.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 WR=function(a,b){a.selectedId&&kQb(a,a.selectedId);a.selectedId=b;if(a=lQb(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},YR=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},mQb=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},kQb=function(a,b){b&&(a=lQb(a.selectedId))&&a.setAttribute("aria-selected",
"false")},lQb=function(a){return a?document.getElementById("component-"+a):null},nQb=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};
var oQb={QA:124156,NIGHTLY:190923,PROD:190923};
new Promise(function(){});
var ZR=function(a,b,c,d,e,f){Z.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=Ga(k);Na(q);return h.componentApi.query({id:q}).then(function(t){var x={};t=n(t);for(var y=t.next();!y.done;y=
t.next())(y=y.value)&&(x[y.componentId]=y);return k.map(function(F){return x[F]||null})})})};X(ZR,Z);ZR.\u0275dir=Z.\u0275dir;g=ZR.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.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,c){var d={query:a};if(void 0===b?0:b)d.includearchived=!0;c&&(d.trackerId=c);return pQb(this,a,this.componentApi.query(d))};
var pQb=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=oQb[a.activeSession.getEnvironmentType()];if(d)return np({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=n(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};
ZR.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Na(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=n(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});var d={};c=n(c);for(var e=c.next();!e.done;d={$jscomp$loop$prop$id$1958:d.$jscomp$loop$prop$id$1958},e=c.next())d.$jscomp$loop$prop$id$1958=e.value,this.components.put(String(d.$jscomp$loop$prop$id$1958),a.then(function(f){return function(h){return h[f.$jscomp$loop$prop$id$1958]?
h[f.$jscomp$loop$prop$id$1958]:Promise.reject({data:{message:"Could not load details for component "+f.$jscomp$loop$prop$id$1958}})}}(d)))}};ZR.\u0275fac=function(a){return new (a||ZR)(p(BI),p(JGb),p(kH),p(ZJ),p(eJ),p(NG))};ZR.\u0275prov=Hc({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});
var qQb=Su(["https://www.gstatic.com/buganizer/gfx/","/",""]),$R=Su(["https://www.gstatic.com/buganizer/img/v2/",""]),rQb=Dh(qQb,"2022-11-15-dc410e20","all-icons.svg"),sQb=Dh($R,"empty_blocker_light.png"),tQb=Dh($R,"empty_blocker_dark.png"),uQb=Dh($R,"empty_child_light.png"),vQb=Dh($R,"empty_child_dark.png"),wQb=Dh($R,"robot_sleeping.png"),xQb=Dh($R,"tea_light.png"),yQb=Dh($R,"tea_dark.png"),zQb=Dh($R,"space_empty_state.png");
var aS=function(a,b){this.activeSession=a;this.currentTracker=b;this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
aS.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=MJ(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}};aS.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:""};aS.\u0275fac=function(a){return new (a||aS)(B(NG),B(LJ))};
aS.\u0275cmp=u({type:aS,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},features:[ed],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","href","http://go/chrome-buganizer#trackers","target","_blank",4,"ngIf"],["mat-button","","href","http://go/chrome-buganizer#trackers","target","_blank",1,"gmat-button","primary"]],template:function(a,b){a&1&&P(0,PCa,17,12,"ng-container",0);a&2&&D("ngIf",b.tracker||b.isGlobalBuganizer)},dependencies:[gy,iM,mM,qC],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 bS=function(a,b){var c=this;this.currentTracker=a;this.trackerFridge=b;this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new W.BehaviorSubject("");this.tracker$=this.trackerId$.pipe(af(function(d){return!c.currentTracker.enableTrackers||Ho(d)?(0,W.of)(void 0):c.trackerFridge.watch(d)}));this.isCurrentTracker$=(0,W.combineLatest)([this.currentTracker.trackerId$,this.trackerId$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;return Ho(d)?Ho(e):d===e}))};
bS.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId||"")};ni.Object.defineProperties(bS.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return Ho(this.trackerId)}}});bS.\u0275fac=function(a){return new (a||bS)(B(LJ),B(KJ))};
bS.\u0275cmp=u({type:bS,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},features:[ed],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,QCa,2,6,"b-tracker-chip",0),U(1,"async"));a&2&&D("ngIf",b.currentTracker.enableTrackers&&!1===V(1,1,b.isCurrentTracker$))},dependencies:[gy,aS,ny],
encapsulation:2,changeDetection:0});
var TCa=function(a){return{q:a}},cS=function(a,b,c,d){VR.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new sx;this.selectedId=null};X(cS,VR);cS.prototype.ngOnInit=function(){};cS.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};cS.prototype.ngOnChanges=function(a){a.components&&AQb(this)};cS.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;WR(this,a);this.rootController.selectionChanged(this,a)};
var AQb=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){return a.selectNext()})};g=cS.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=mQb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(kQb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(WR(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else WR(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=mQb(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(WR(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=YR(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=YR(this);a&&this.showChildren(a)};g.setSelected=function(a,b){nQb(b)||(WR(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=YR(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};cS.\u0275fac=function(a){return new (a||cS)(B(ZR),B(pI),B(xJ),B(qH,2))};
cS.\u0275cmp=u({type:cS,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[mg([qH]),Of,ed],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&&(E(0,"ol",0),P(1,aDa,19,12,"li",1),G());a&2&&(A(1),D("ngForOf",b.components))},dependencies:[fy,gy,tF,qC,yD,fM,sR,bS,cS],encapsulation:2});
var dDa=function(a){return{q:a}},dS=function(a,b,c,d,e,f){VR.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new sx;this.subscriptions=new W.Subscription;this.destroyed$=new W.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};X(dS,VR);g=dS.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,W.timer)(0).pipe(Ef(this.destroyed$)).subscribe(function(){BQb(a)&&!a.selectedId&&WR(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&&CQb(this)};g.onSubtreeChildClosed=function(a){var b=this;WR(this,a);this.focusedController=void 0;(0,W.timer)(0).pipe(Ef(this.destroyed$)).subscribe(function(){eS(b)})};
g.fireSelectionEvent=function(a){var b=lQb(a);b&&b.click();eS(this,a)};var CQb=function(a){(0,W.timer)(0).pipe(Ef(a.destroyed$)).subscribe(function(){BQb(a)&&!a.selectedId&&WR(a,a.components[0].componentId)})};g=dS.prototype;g.selectionChanged=function(a,b){b&&eS(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&kQb(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){nQb(b)||(WR(this,a),this.selectionChanged(null),eS(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(jI(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=YR(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=YR(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(YR(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=mQb(this);BQb(this)&&1<=a&&(WR(this,this.components[a-1].componentId),eS(this))}};
g.selectNext=function(){if(BQb(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=mQb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(kQb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(WR(this,this.components[a+1].componentId),eS(this))}else WR(this,this.components[0].componentId),eS(this)};
var eS=function(a,b){var c=DQb(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=lQb(b||a.selectedId)){b=DQb(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},DQb=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},BQb=function(a){return!!(a.components&&0<a.components.length)};dS.\u0275fac=function(a){return new (a||dS)(B(ZR),B(pI),B(iI),B(xJ),B(Rd),B(qH,2))};
dS.\u0275cmp=u({type:dS,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[mg([qH]),Of,ed],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&&(E(0,"ol",0),P(1,lDa,19,12,"li",1),G());a&2&&(A(1),D("ngForOf",b.components))},dependencies:[fy,gy,tF,qC,yD,fM,sR,bS,cS],encapsulation:2});
var fS=function(){};fS.\u0275fac=function(a){return new (a||fS)};fS.\u0275mod=Yc({type:fS});fS.\u0275inj=Ic({imports:[vy,TM,AF]});
var gS=function(){};gS.\u0275fac=function(a){return new (a||gS)};gS.\u0275mod=Yc({type:gS});gS.\u0275inj=Ic({imports:[vy,uG,AF,uF,RM,DR,fS]});
var EQb=new Md("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
new Md("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
var FQb=0,GQb=si(oi(pi(qi(function(a){this._elementRef=a})))),hS=function(a,b,c,d,e,f,h){a=GQb.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.change=new sx;a.toggleChange=new sx;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;a.id=a._uniqueId=h+ ++FQb;return a};
X(hS,GQb);g=hS.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))};
ni.Object.defineProperties(hS.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=rh(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=rh(a);this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});hS.\u0275fac=function(){Vd()};
hS.\u0275dir=u({type:hS,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[Of]});
var iS=function(){};iS.\u0275fac=function(a){return new (a||iS)};iS.\u0275mod=Yc({type:iS});iS.\u0275inj=Ic({});
var HQb=["input"],IQb=function(a){return{enterDuration:a}},JQb={provide:xy,useExisting:Fc(function(){return jS}),multi:!0},KQb=function(a,b){this.source=a;this.checked=b},jS=function(a,b,c,d,e,f){return hS.call(this,a,b,c,d,e,f,"mat-slide-toggle-")||this};X(jS,hS);jS.\u0275dir=hS.\u0275dir;g=jS.prototype;g._createChangeEvent=function(a){return new KQb(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?tz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
jS.\u0275fac=function(a){return new (a||jS)(B(Rd),B(sz),B(Xx),Ad("tabindex"),B(EQb),B(Ew,8))};
jS.\u0275cmp=u({type:jS,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&zg(HQb,5);if(a&2){var c;yg(c=Bg())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(dg("id",b.id),Uf("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),Zf("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:[mg([JQb]),Of],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&&(fg(),E(0,"label",0,1)(2,"span",2)(3,"input",3,4),M("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),E(5,"span",5),H(6,"span",6),E(7,"span",
7),H(8,"span",8),G()()(),E(9,"span",9,10),M("cdkObserveContent",function(){return b._onLabelTextChange()}),E(11,"span",11),Q(12,"\u00a0"),G(),gg(13),G()());if(a&2){var c=O(1),d=O(10);Uf("for",b.inputId);A(2);Zf("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());A(1);D("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);Uf("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",
b.ariaDescribedby);A(4);D("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",og(18,IQb,b._noopAnimations?0:150))}},dependencies:[UB,CA],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 kS=function(){};kS.\u0275fac=function(a){return new (a||kS)};kS.\u0275mod=Yc({type:kS});kS.\u0275inj=Ic({imports:[iS,XB,HB,DA,iS,HB]});
var LQb=0,lS=function(){this.id="b-slide-toggle-"+ ++LQb;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new sx};lS.\u0275fac=function(a){return new (a||lS)};
lS.\u0275cmp=u({type:lS,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&&(E(0,"mat-slide-toggle",0),M("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
Q(1),G());if(a&2){var c;D("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");A(1);kg(b.label)}},dependencies:[jS,tF],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var mS=function(){};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275mod=Yc({type:mS});mS.\u0275inj=Ic({imports:[kS,uG]});
var nS=function(a){this.$log=a;this.accessPolicyPrincipalToString=Jm;this.stringToAccessPolicyPrincipal=Km},oS=function(){return{inheritance:"INHERITANCE_UNSPECIFIED",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},pS=function(a){return{inheritance:a.inheritance||"INHERITANCE_UNSPECIFIED",admins:pp(a.admins),editors:pp(a.editors),appenders:pp(a.appenders),readers:pp(a.readers),restrictedReaders:pp(a.restrictedReaders),
restrictedPlusReaders:pp(a.restrictedPlusReaders),inheritedAdmins:pp(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},qS=function(a){return{inheritance:a.inheritance,admins:qp(a.admins),editors:qp(a.editors),appenders:qp(a.appenders),readers:qp(a.readers),restrictedReaders:qp(a.restrictedReaders),restrictedPlusReaders:qp(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}};nS.\u0275fac=function(a){return new (a||nS)(p(WH))};nS.\u0275prov=Hc({token:nS,factory:nS.\u0275fac,providedIn:"root"});
var MQb=new RegExp("4:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");
var rS=function(a){Y.call(this,a)};X(rS,Y);rS.prototype.getSocialApplication=function(){return l(this,3)};rS.prototype.getAffinityType=function(){return Pi(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};rS.prototype.setAffinityType=function(a){return m(this,12,a)};
var sS=function(a){Y.call(this,a,-1,NQb)};X(sS,Y);sS.prototype.getExperimentIdsList=function(){return Li(this,4)};sS.prototype.setExperimentIdsList=function(a){return Bb(this,4,a)};var NQb=[4];
var OQb=function(a){Y.call(this,a)};X(OQb,Y);g=OQb.prototype;g.getClientInfo=function(){return Ub(this,rS,1)};g.getMutableClientInfo=function(){return rv(this,rS,1)};g.setClientInfo=function(a){Vb(this,1,a)};g.getExperiments=function(){return Ub(this,sS,2)};g.setExperiments=function(a){Vb(this,2,a)};g.hasExperiments=function(){return vj(this,sS,2)};
var PQb=function(a){Y.call(this,a)};X(PQb,Y);g=PQb.prototype;g.getDelegatorId=function(){return l(this,2)};g.getEnvType=function(){return l(this,5)};g.setEnvType=function(a){m(this,5,a)};g.getCacheSize=function(){return l(this,7)};g.setCacheSize=function(a){m(this,7,a)};g.hasCacheSize=function(){return nj(this,7)};
var oDa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,mDa=/([#].*?&|[#])authuser=([^&#]*)\b/,nDa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;
var tS=function(){this.config_=Oo(OQb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"MINIMAL_DOMAIN","BUGANIZER",null,null,null,null,true,true],[]]');this.userInfo_=new PQb;this.onAuthError_=this.gapiClientThenable_=null};tS.prototype.getClientInfo=function(){return this.config_.getClientInfo()};tS.prototype.getExperiments=function(){return this.config_.getExperiments()};tS.prototype.getUserInfo=function(){return this.userInfo_};
var QQb=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=sDa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_};tS.prototype.getAuthErrorHandler=function(){return this.onAuthError_};
var RQb=function(){};
var uS=[];uS.push=function(){throw Error("qd");};var vS={cancel:function(){},isPending:function(){return!1}};
var wS=function(a){this.response_=a||function(){};this.timer_=Xt(this.onTimer_,0,this);this.addressBookId_=""};g=wS.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){Yt(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 SQb=new Map([["personal",2],["domain",4],["pcab",3]]);
var vp=function(a){Y.call(this,a)};X(vp,Y);g=vp.prototype;g.getEventType=function(){return qj(this,1,0)};g.setEventType=function(a){return m(this,1,a)};g.getApiType=function(){return qj(this,2,0)};g.setApiType=function(a){return m(this,2,a)};g.getCacheStatus=function(){return qj(this,3,0)};g.setCacheStatus=function(a){return m(this,3,a)};g.getAddressBook=function(){return qj(this,4,0)};g.setAddressBook=function(a){return m(this,4,a)};g.getRpcType=function(){return qj(this,5,0)};
g.setRpcType=function(a){return m(this,5,a)};g.getLookupType=function(){return qj(this,6,0)};g.setLookupType=function(a){return m(this,6,a)};g.getToken=function(){return Pi(this,7,"")};g.setToken=function(a){return m(this,7,a)};
var xS=function(a){Y.call(this,a)};X(xS,Y);xS.prototype.setDevice=function(a){return m(this,1,a)};xS.prototype.getApplication=function(){return l(this,2)};xS.prototype.setApplication=function(a){return m(this,2,a)};xS.prototype.getApplicationOrUndefined=function(){return uv(this,2)};
var UQb=function(a){Y.call(this,a,-1,TQb)};X(UQb,Y);g=UQb.prototype;g.getEventType=function(){return l(this,1)};g.setEventType=function(a){return m(this,1,a)};g.getMetadata=function(){return Ub(this,yS,4)};g.setMetadata=function(a){Vb(this,4,a)};g.getClientInterface=function(){return Ub(this,zS,5)};g.setClientInterface=function(a){return Vb(this,5,a)};var AS=function(a){Y.call(this,a)};X(AS,Y);AS.prototype.getLoggingId=function(){return l(this,1)};AS.prototype.setLoggingId=function(a){m(this,1,a)};
AS.prototype.getMetadata=function(){return Ub(this,BS,3)};AS.prototype.setMetadata=function(a){Vb(this,3,a)};var CS=function(a){Y.call(this,a)};X(CS,Y);g=CS.prototype;g.getType=function(){return l(this,5)};g.setType=function(a){return m(this,5,a)};g.hasType=function(){return nj(this,5)};g.getEmail=function(){return l(this,1)};g.setEmail=function(a){return m(this,1,a)};g.hasEmail=function(){return Oi(this,1)};g.getPhone=function(){return l(this,2)};g.setPhone=function(a){return m(this,2,a)};
g.hasPhone=function(){return Oi(this,2)};g.getObfuscatedGaiaId=function(){return l(this,3)};g.getObfuscatedGaiaId_legacyNullable=function(){return l(this,3)};g.setObfuscatedGaiaId=function(a){m(this,3,a)};g.getContactId=function(){return l(this,4)};g.setContactId=function(a){m(this,4,a)};g.hasContactId=function(){return zj(this,4)};g.getGroupId=function(){return l(this,6)};g.setGroupId=function(a){m(this,6,a)};g.hasGroupId=function(){return Oi(this,6)};var BS=function(a){Y.call(this,a,-1,VQb)};
X(BS,Y);g=BS.prototype;g.getPosition=function(){return Ub(this,DS,1)};g.setPosition=function(a){return Vb(this,1,a)};g.getIsPlaceholder=function(){return As(this,7)};g.setIsPlaceholder=function(a){m(this,7,a)};g.getIsSelf=function(){return As(this,11)};var DS=function(a){Y.call(this,a)};X(DS,Y);g=DS.prototype;g.getColumn=function(){return l(this,2)};g.setColumn=function(a){return m(this,2,a)};g.getType=function(){return l(this,3)};g.setType=function(a){return m(this,3,a)};
g.hasType=function(){return nj(this,3)};var ES=function(a){Y.call(this,a)};X(ES,Y);ES.prototype.getName=function(){return l(this,1)};ES.prototype.setName=function(a){return m(this,1,a)};ES.prototype.hasName=function(){return Oi(this,1)};ES.prototype.getNameOrUndefined=function(){return vv(this,1)};var yS=function(a){Y.call(this,a)};X(yS,Y);yS.prototype.getAffinityVersion=function(){return l(this,2)};yS.prototype.setAffinityVersion=function(a){m(this,2,a)};var WQb=function(a){Y.call(this,a)};
X(WQb,Y);g=WQb.prototype;g.getQueryLength=function(){return l(this,1)};g.setQueryLength=function(a){return m(this,1,a)};g.hasQueryLength=function(){return nj(this,1)};g.getQuery=function(){return l(this,2)};g.setQuery=function(a){return m(this,2,a)};g.clearQuery=function(){qv(this,2)};g.hasQuery=function(){return Oi(this,2)};var XQb=function(a){Y.call(this,a)};X(XQb,Y);XQb.prototype.setLatencyUsec=function(a){m(this,1,a)};var YQb=function(a){Y.call(this,a)};X(YQb,Y);
var ZQb=function(a){Y.call(this,a)};X(ZQb,Y);g=ZQb.prototype;g.getQueryId=function(){return l(this,1)};g.getInstanceId=function(){return l(this,4)};g.setInstanceId=function(a){return m(this,4,a)};g.clearInstanceId=function(){qv(this,4)};g.hasInstanceId=function(){return Oi(this,4)};g.getInstanceIdOrUndefined=function(){return vv(this,4)};g.getAffinityVersion=function(){return l(this,5)};g.setAffinityVersion=function(a){m(this,5,a)};var FS=function(a){Y.call(this,a)};X(FS,Y);
FS.prototype.getExistingSelectionsCount=function(){return l(this,1)};FS.prototype.setExistingSelectionsCount=function(a){m(this,1,a)};FS.prototype.getPosition=function(){return Ub(this,DS,2)};FS.prototype.setPosition=function(a){return Vb(this,2,a)};var zS=function(a){Y.call(this,a,-1,$Qb)};X(zS,Y);g=zS.prototype;g.setEventSource=function(a){m(this,2,a)};g.getEventSourceOrUndefined=function(){return uv(this,2)};g.getSocialClient=function(){return Ub(this,xS,3)};
g.setSocialClient=function(a){return Vb(this,3,a)};g.setVersionName=function(a){return m(this,5,a)};g.getBaselineCl=function(){return l(this,7)};g.setBaselineCl=function(a){return m(this,7,a)};g.hasBaselineCl=function(){return zj(this,7)};g.setClientAgent=function(a){return m(this,9,a)};g.getClientAgentOrUndefined=function(){return uv(this,9)};g.getPeoplekitEntryPoint=function(){return l(this,11)};g.setPeoplekitEntryPoint=function(a){return m(this,11,a)};
g.getPeoplekitEntryPointOrUndefined=function(){return uv(this,11)};g.setEnvironment=function(a){return m(this,13,a)};g.getEnvironmentOrUndefined=function(){return uv(this,13)};var TQb=[2],VQb=[4,3],$Qb=[6];
var aRb=function(a){Y.call(this,a)};X(aRb,Y);g=aRb.prototype;g.getApiType=function(){return l(this,1)};g.setApiType=function(a){return m(this,1,a)};g.getItemCount=function(){return l(this,2)};g.setItemCount=function(a){return m(this,2,a)};g.hasItemCount=function(){return nj(this,2)};
var bRb=function(a){Y.call(this,a)};X(bRb,Y);g=bRb.prototype;g.getApiType=function(){return l(this,1)};g.setApiType=function(a){return m(this,1,a)};g.getItemCount=function(){return l(this,2)};g.setItemCount=function(a){return m(this,2,a)};g.hasItemCount=function(){return nj(this,2)};g.getStatus=function(){return qj(this,4,2)};g.setStatus=function(a){return m(this,4,a)};g.hasStatus=function(){return nj(this,4)};g.setTotalUsec=function(a){return m(this,5,a)};
g.setBlockedUsec=function(a){return m(this,6,a)};g.setNetworkUsec=function(a){m(this,7,a)};g.getCacheStatus=function(){return l(this,8)};g.setCacheStatus=function(a){return m(this,8,a)};g.getAddressBook=function(){return l(this,9)};g.setAddressBook=function(a){return m(this,9,a)};
var GS=function(a){Y.call(this,a)};X(GS,Y);GS.prototype.getStatus=function(){return qj(this,1,2)};GS.prototype.setStatus=function(a){return m(this,1,a)};GS.prototype.hasStatus=function(){return nj(this,1)};GS.prototype.setTotalUsec=function(a){return m(this,2,a)};
var HS=function(a){Y.call(this,a)};X(HS,Y);HS.prototype.getRpcType=function(){return l(this,1)};HS.prototype.setRpcType=function(a){return m(this,1,a)};HS.prototype.getLookupType=function(){return l(this,2)};HS.prototype.setLookupType=function(a){return m(this,2,a)};
var cRb=function(a){Y.call(this,a)};X(cRb,Y);g=cRb.prototype;g.getRpcType=function(){return l(this,1)};g.setRpcType=function(a){return m(this,1,a)};g.getLookupType=function(){return l(this,2)};g.setLookupType=function(a){return m(this,2,a)};g.getStatus=function(){return qj(this,3,2)};g.setStatus=function(a){return m(this,3,a)};g.hasStatus=function(){return nj(this,3)};g.setTotalUsec=function(a){return m(this,4,a)};g.setBlockedUsec=function(a){return m(this,5,a)};
g.setNetworkUsec=function(a){m(this,6,a)};
var IS=function(a){Y.call(this,a)};X(IS,Y);g=IS.prototype;g.getEnvType=function(){return l(this,1)};g.setEnvType=function(a){m(this,1,a)};g.getCacheSize=function(){return l(this,2)};g.setCacheSize=function(a){m(this,2,a)};g.hasCacheSize=function(){return nj(this,2)};
var JS=function(a){Y.call(this,a)};X(JS,Y);g=JS.prototype;g.getClientInterface=function(){return Ub(this,zS,1)};g.setClientInterface=function(a){return Vb(this,1,a)};g.getSource=function(){return l(this,2)};g.setSource=function(a){return m(this,2,a)};g.hasSource=function(){return nj(this,2)};g.getEventType=function(){return l(this,3)};g.setEventType=function(a){return m(this,3,a)};g.setRpcRequest=function(a){return Dm(this,5,KS,a)};g.setRpcResponse=function(a){return Dm(this,6,KS,a)};
g.setApiCall=function(a){return Dm(this,7,KS,a)};g.setApiResult=function(a){return Dm(this,8,KS,a)};g.getUserInfo=function(){return Ub(this,IS,9)};g.setUserInfo=function(a){return Vb(this,9,a)};g.hasUserInfo=function(){return vj(this,IS,9)};var KS=[4,5,6,7,8];
var dRb=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]]),eRb=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]]),fRb=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]]),gRb=function(a){return eRb.has(a)?eRb.get(a):1},hRb=function(a){return fRb.has(a)?fRb.get(a):2};
var iRb=function(a){this.request_=a;this.errorCode_=0},jRb=function(a,b){b=new iRb(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=iRb.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 LS=function(a){this.map_=new xI;this.size=0;a&&this.addAll(a)},kRb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ma(a):b.charAt(0)+a};g=LS.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(kRb(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=PF(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=PF(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(kRb(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(kRb(a))};g.contains=function(a){return this.map_.containsKey(kRb(a))};g.intersection=function(a){var b=new LS;a=PF(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 LS(this)};g.equals=function(a){return this.getCount()==Izb(a)&&lRb(this,a)};
var lRb=function(a,b){var c=Izb(b);if(a.getCount()>c)return!1;!(b instanceof LS)&&5<c&&(b=new LS(b));return Kzb(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(Ha(e)||"string"===typeof e)d=ya(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};LS.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};LS.prototype[Symbol.iterator]=function(){return this.values()};
LS.prototype.setSizeInternal_=function(a){this.size=a};
var MS=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new LS(c);this.extraFields_=[]};MS.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 mRb=function(a){a.fieldSet_||(a.fieldSet_=new LS(a.fields_));return a.fieldSet_};
MS.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new LS);if(this.doesntContain_.has(a))return!1;var b=mRb(this),c=mRb(a);if(Kzb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var nRb=new MS(["6","12"],"1"),oRb=new MS("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[nRb]);new MS("6 12 16 17 18 1a".split(" "),"3",[nRb]);
new MS("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",[nRb,oRb]);new MS([]);
var pRb={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};
var qRb=function(a,b,c){OD.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};X(qRb,OD);g=qRb.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 rRb=function(a){OD.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};X(rRb,OD);g=rRb.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(){OD.prototype.disposeInternal.call(this);this.scheduler=null};
var sRb=function(){OD.call(this);this.states={};this.currentGroup=1};X(sRb,OD);sRb.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new rRb(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();tRb(a,b,e);break;case 6:tRb(a,b,e);break;case 4:d&&(f.reset(),tRb(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),tRb(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var tRb=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(Xt(a.run,b,a)))};g=sRb.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){OD.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);yi(b)}this.states={}};g.cancel=function(a){2==a.runState&&Yt(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 uRb={SOMETHING_CHANGED:"a",ERROR:"b"},NS=function(a,b){QD.call(this,a&&a[0].getError()?"b":"a");this.responses_=a;this.source_=b||"d"};X(NS,QD);NS.prototype.getChanges=function(){if(!this.changes_){if(!this.responses_)return null;var a=[];ua(this.responses_,function(b){b=b.getOperation().getChanges();a&&b?a=a.concat(b):a=null});this.changes_=a}return this.changes_};NS.prototype.getSource=function(){return this.source_};
var vRb=function(a,b){this.fn_=a;this.handler_=b};vRb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};vRb.prototype.abort=function(){this.handler_=this.fn_=null};TD(function(a){vRb.prototype.execute=a(vRb.prototype.execute)});
var wRb=[];
var OS=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];xRb(this,c)};OS.prototype.toString=function(){return this.serviceId_};OS.prototype.getModuleId=function(){return this.moduleId_};var xRb=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("rd`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){wRb.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};
new OS("rJmJrc","rJmJrc");
new OS("n73qwf","n73qwf");
new OS("MpJwZc","MpJwZc");
new OS("UUJqVe","UUJqVe");
new OS("Wt6vjf","Wt6vjf");
new OS("byfTOb","byfTOb");
new OS("LEikZe","LEikZe");
new OS("lsjVmc","lsjVmc");
new OS("pVbxBc");
new OS("tdUkaf");new OS("fJuxOc");new OS("ZtVrH");new OS("WSziFf");new OS("ZmXAm");new OS("BWETze");new OS("UBSgGf");new OS("zZa4xc");new OS("o1bZcd");new OS("WwG67d");new OS("z72MOc");new OS("JccZRe");new OS("amY3Td");new OS("ABma3e");new OS("GHAeAc","GHAeAc");new OS("gSshPb");new OS("klpyYe");new OS("OPbIxb");new OS("pg9hFd");new OS("yu4DA");new OS("vk3Wc");new OS("IykvEf");new OS("J5K1Ad");new OS("IW8Usd");new OS("IaqD3e");new OS("jbDgG");new OS("b8xKu");new OS("d0RAGb");new OS("AzG0ke");new OS("J4QWB");
new OS("TuDsZ");new OS("hdXIif");new OS("mITR5c");new OS("DFElXb");new OS("NGntwf");new OS("Bgf0ib");new OS("Xpw1of");new OS("v5BQle");new OS("ofuapc");new OS("FENZqe");new OS("tLnxq");
var PS=function(){OD.call(this);this.eventTarget_=new wp;this.updateCacheEventTarget_=new wp;this.mutationIdMap_=new AI};X(PS,OD);PS.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};PS.prototype.getEventTarget=function(){return this.eventTarget_};
PS.prototype.disposeInternal=function(){OD.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};
var dt=function(a){Y.call(this,a,-1,yRb)};X(dt,Y);var ct=function(a,b){return m(a,1,b)};g=dt.prototype;g.setLogSource=function(a){return m(this,2,a)};g.getApplication=function(){return l(this,3)};g.setApplication=function(a){return m(this,3,a)};g.getApplicationOrUndefined=function(){return uv(this,3)};g.getVersion=function(){return l(this,4)};g.setVersion=function(a){return m(this,4,a)};g.getVersionOrUndefined=function(){return vv(this,4)};g.getBaselineCl=function(){return l(this,5)};
g.setBaselineCl=function(a){return m(this,5,a)};g.hasBaselineCl=function(){return nj(this,5)};g.getEnableClearcut=function(){return As(this,6)};g.setEnableClearcut=function(a){return m(this,6,a)};var bt=function(a,b){return Bb(a,7,b)};g=dt.prototype;g.setClientAgent=function(a){return m(this,8,a)};g.getClientAgentOrUndefined=function(){return uv(this,8)};g.setEventSource=function(a){m(this,9,a)};g.getEventSourceOrUndefined=function(){return uv(this,9)};g.getClearcutUrl=function(){return l(this,10)};
g.setClearcutUrl=function(a){m(this,10,a)};g.setEnvironment=function(a){return m(this,11,a)};g.getEnvironmentOrUndefined=function(){return uv(this,11)};g.getPeoplekitEntryPoint=function(){return l(this,12)};g.setPeoplekitEntryPoint=function(a){return m(this,12,a)};g.getPeoplekitEntryPointOrUndefined=function(){return uv(this,12)};var yRb=[7];
var zRb=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 ARb=function(a){this.start_=a;this.end_=NaN};ARb.prototype.duration=function(){return this.end_-this.start_};ARb.prototype.stop=function(a){this.end_=a;return this.duration()};var QS=function(a){var b=void 0===b?zRb:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};QS.prototype.source=function(){return this.source_};var BRb=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
QS.prototype.duration=function(a){a=BRb(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var RS=function(a,b){return wDa(a.duration(void 0===b?"":b))};QS.prototype.toString=function(a,b){b=void 0===b?1:b;return this.duration(void 0===a?"":a).toFixed(b)};QS.prototype.start=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=BRb(this,a);this.durations_.set(a,new ARb(b));return this};
QS.prototype.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=BRb(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};QS.prototype.clear=function(){this.durations_.clear();return this};
var CRb=new Map([[1,4],[2,2],[3,1],[4,7]]),DRb=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=oj(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=oj(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=CRb.get(a.getUserInfo().getEnvType())||0;this.logContext_=Gb(bt(ct(new dt,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplication()).setEnvironment(d).setVersion("1012").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,20090307)};g=DRb.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=ERb(this);switch(b.getEventType()){case 2:case 3:return(new JS).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new HS).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new JS).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new aRb).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=ERb(this);switch(d.getEventType()){case 1:d=(new JS).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new GS).setStatus(c);if(0==c||4==c)c=e.setTotalUsec(RS(b,"total")),b=RS(b,"blocked"),b=m(c,3,b),m(b,5,a);return Dm(d,4,KS,e);case 2:case 3:return a=(new JS).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new cRb).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
0!=c&&4!=c||d.setTotalUsec(RS(b,"total")).setBlockedUsec(RS(b,"blocked")).setNetworkUsec(RS(b,"network")),e.call(a,d);case 4:case 5:a=(new JS).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new bRb;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);0!==c&&4!==c||f.setTotalUsec(RS(b,"total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};
var ERb=function(a){a=a.clientConfig_.getUserInfo();var b=new IS;var c=!!a.getDelegatorId();b=m(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(l(a,6)||0);return b};
var hVa=function(a){Y.call(this,a,-1,FRb)};X(hVa,Y);var FRb=[1,2,3,4];
var GRb=function(){return ja("iPad")||ja("Android")&&!ja("Mobile")||ja("Silk")};
var HRb=function(a,b,c,d,e,f,h){UE.call(this,a,up,b,yma,c,d,e,void 0,f,h)};X(HRb,UE);
var IRb=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=oa()||ja("iPod")?4:ja("iPad")?5:ja("Android")?GRb()?3:2:!GRb()&&(ja("iPod")||ja("iPhone")||ja("Android")||ja("IEMobile"))||GRb()?0:1},JRb=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()&&(c=new HRb(l(b,2),tp(),b.getClearcutUrl()||void 0),(b=Li(b,7))&&b.length)){var d=new hVa;Bb(d,3,b);c.setClearExperimentIds(d)}return new IRb(c,a)},SS=function(a){var b=a.logContextFactory_.getLogContext(),c=new xS;c.setApplication(b.getApplicationOrUndefined());
c.setDevice(a.device_);a=new zS;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},TS=function(a,b){var c=new OE;PE(c,b.serialize());a.clearcut_&&a.clearcut_.log(c)};
var KRb=function(a,b){this.clearcut_=a;this.logEventFactory_=b};KRb.prototype.logError=function(a){var b=SS(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&TS(this.clearcut_,a)};
var LRb=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 MRb=function(){this.logContext_=ct(new dt,"ppl.store")};g=MRb.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 NRb=function(a){this.clearcut_=a},ds=function(a){a=new KRb(JRb(a),a);return new NRb(a)};g=NRb.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=SS(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&TS(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=SS(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&TS(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=SS(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&TS(b.clearcut_,a);return this};g.error=function(a){this.clearcut_.logError(a);return this};
g.logError=function(){};g.logInfo=function(){return this};
var US=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new sRb;this.eventHandler_=new ar(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new PS;(a=b)||(a=ds(new MRb));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};ev(US,OD);g=US.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,Hba(uRb),bv(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 NS(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new vp).setEventType(4).setApiType(2),e=new QS(d);this.metrics.count(e);this.metrics.start(e,"total");return ORb(this,a,function(f){return f.loadContactRows},function(f,h,k,q,t){PRb(function(x,y,F,K){var J=y===vS||y instanceof wS?2:1;e.source().setCacheStatus(J);e.source().setAddressBook(F?SQb.get(F)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,hRb(t||0));b&&b(x,y,F,K,t)},f,h,k,q)})};
var ORb=function(a,b,c,d){var e=new QRb(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=RRb(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=RRb(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
US.prototype.execute=function(a){var b=this,c=(new vp).setEventType(4).setApiType(1),d=new QS(c);this.metrics.count(d);this.metrics.start(d,"total");SRb(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?hRb(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?SQb.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 TRb(b,e,d)}))?
c:TRb(this,a,d)};
var SRb=function(a,b){ua(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&SRb(a,b)},TRb=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 QRb(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},RRb=function(a,
b,c,d,e){b=bv(a.runScheduledQuery_,a,b,c,d,e);b=new qRb(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new URb(b)};US.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,t){e.isDone(!t)&&d&&d(f,h,k,q,t)})};
var PRb=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),VRb(b)),a(b||[],c,d,e))},VRb=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)}};
US.prototype.disposeInternal=function(){US.superClass_.disposeInternal.call(this);yi(this.scheduler_);this.scheduler_=null;ua(this.ownedAddressBooks_,yi);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;yi(this.eventHandler_);this.eventHandler_=null;ua(this.queryFilters_,function(a){a!=this.contactNotificationService_&&yi(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(yi(this.contactNotificationService_),this.contactNotificationService_=null)};
var WRb=function(a){var b=new DRb(a,0);ct(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(oj(a.getExperiments(),3,!0));return ds(b)},QRb=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=QRb.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 URb=function(a){this.op=a;this.request=null};URb.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
URb.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};
var XRb=function(a,b){this.text=a;this.specialRowHandler=b};ev(XRb,RQb);g=XRb.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};
var YRb=function(a,b){US.call(this,a,b)};X(YRb,US);YRb.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new ZRb(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));US.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};YRb.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):US.prototype.loadContactRows.call(this,a,b)};
var ZRb=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};ZRb.prototype.addAddressBook=function(a){this.addrBooks_.push(new $Rb(this,this.addrBooks_.length,a))};ZRb.prototype.loadContactRows=function(a,b){a=new aSb(a,this.metrics_,b);bSb(this,a);return a};
var bSb=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],t=c.maxMatches,x=f.length;if(0==x)f=q.length>t?q.slice(0,t):q;else for(var y=0;y<q.length;y++){for(var F=null,K=0;K<x&&!(F=cSb(f[K],q[y]));K++);if(F)F===q[y]&&(f[K]=F);else if(f.length==
x?f=f.concat(q[y]):f.push(q[y]),f.length==t)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(VRb(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},cSb=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},dSb=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:bSb(a,b,c,d)};
ZRb.prototype.handleSpecialRow=function(){};var $Rb=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
$Rb.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,t){b.matchListener_(a,d,f,t)});a.addRequest(this.id_,e);this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[eSb(this)])}c&&dSb(this.combiner_,a,this.id_,c)};
var eSb=function(a){var b=a.addrBook_.title_;return new XRb(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
$Rb.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;dSb(this.combiner_,a,this.id_,c)};$Rb.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var aSb=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new QS((new vp).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(t,x){var y=d.activeRequests_[x];y=y===vS||y instanceof wS?2:1;e.source().setCacheStatus(y);e.source().setAddressBook(t?SQb.get(t)||1:1);b.stop(e,"total");b.status(e,hRb(d.storedErrorCodes_[x]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};aSb.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};aSb.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};aSb.prototype.addRequest=function(a,b){this.activeRequests_[a]=b};
var fSb={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},ls=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=fSb[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 VS=function(a,b,c,d,e,f){wp.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||gSb;this.cache_=new AI(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};ev(VS,wp);VS.prototype.disposeInternal=function(){VS.superClass_.disposeInternal.call(this);this.cache_=null};VS.prototype.clear=function(){this.cache_.clear()};
var gSb=function(a){var b=Do(ls(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=ls(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},hSb=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},iSb=function(a,b,c){a.cache_.set(hSb(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_)}},jSb=function(a,b,c){c=c?a.cache_.get(b):wEb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},kSb=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=jSb(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},lSb=function(a,b){if(b.isContactAutoComplete)return null;var c=hSb(b,a.cacheByType_),
d=kSb(a,c,b.token);return d?d:a.cacheByType_&&!Zi(c,"^")?(c=hSb(b,!1),kSb(a,c,b.token)):null};VS.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};VS.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:wEb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var WS=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};WS.prototype.getMatches=function(a){a&&this.count++;return this.matches_};WS.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};
ev(yp,wp);g=yp.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(lj(a.token)&&!c.allowEmptyQueries_)var d=uS;else{d=a.maxMatches;var e=jSb(c,hSb(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=lSb(c,a))&&0==d.getMatches().length?(iSb(c,a,new WS(a.token,uS)),d=uS):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=qnb(d,c.rowMatchingFunction_(a),c),iSb(c,a,new WS(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,vS,this.getId(),a),vS):this.transport_.loadContactRows(a,this.getId(),bv(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(uS,vS,this.getId(),a,4);return vS};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||iSb(this.cache_,e,new WS(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(){yp.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;mSb(this.transport_,this.id_);this.transport_=null};
var oSb=function(a,b,c){VS.call(this,100,18E5,432E5,!0,0,c||nSb);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};X(oSb,VS);var nSb=function(a){return function(b){var c=b.getType(),d;if(d=pSb(a,c)){d=new RegExp("(^|\\W+)"+Do(ls(a.token)),"i");var e=ls(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+Do(ls(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},pSb=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 XS=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new oSb(!0,!1,qSb);yp.call(this,a,b,"domain")};ev(XS,yp);XS.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=cc(a),a.includeGroups=!1);return XS.superClass_.loadContactRows.call(this,a,b)};
var qSb=function(a){for(var b=ew(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=Do(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(pSb(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}};XS.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};
var rSb=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},tSb=function(a){if(!a)return sSb;var b=yDa(sp("metadata.identityInfo.sourceIds",a)),c=sp("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 rSb(a.personId||"",b)},sSb=new rSb("",{});
var uSb=function(a,b){this.isLocal_=a;this.edgeIndex_=b};uSb.prototype.toString=function(){return""};
var YS=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};YS.prototype.toString=function(){return""};var wSb=function(a){return vSb(a).some(function(b){return!b.isLocal_})};YS.prototype.getSource=function(a){return vSb(this)[a]};YS.prototype.hasSource=function(){return void 0<vSb(this).length};var vSb=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};YS.prototype.getCause=function(a){return xSb(this)[a]};
var xSb=function(a){return a.edgeCollection_?ySb(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};YS.prototype.getContainerType=function(){return this.metadata_.containerType};var zSb=new YS({},null);
var ASb=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=ASb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new YS(this.email_.metadata,this.edgeCollection_):zSb);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 BSb=new ASb({},null);
var CSb=function(a,b){this.emails_=[];a=n(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new ASb(c.value,b))};g=CSb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||BSb};g.getFieldLength=function(){return this.emails_.length};var DSb=new CSb([],null);
var ESb=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=ESb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new YS(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 FSb=new ESb({},null);
var GSb=function(a){this.field_=a};g=GSb.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 HSb=new GSb(FSb);
var ISb=["CONTACT","PROFILE","DOMAIN_PROFILE"],JSb=function(a,b){this.names_=[];a=n(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new ESb(c.value,b))};g=JSb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||FSb};g.getFieldLength=function(){return this.names_.length};var KSb=new JSb([],null);
var LSb=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=LSb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new YS(this.phone_.metadata,this.edgeCollection_):zSb);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 MSb=new LSb({},null);
var NSb=function(a,b){this.phones_=[];a=n(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new LSb(c.value,b))};g=NSb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||MSb};g.getFieldLength=function(){return this.phones_.length};var OSb=new NSb([],null);
var PSb=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=PSb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new YS(this.photo_.metadata,this.edgeCollection_):zSb);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 QSb=new PSb({},null);
var RSb=function(a,b){this.photos_=[];a=n(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new PSb(c,b))};g=RSb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||QSb};g.getFieldLength=function(){return this.photos_.length};var SSb=new RSb([],null);
var ZS=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};
ZS.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_?zDa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};ZS.prototype.hasName=function(){return!!this.getName()};
ZS.prototype.getName=function(){if(!this.name_){a:{var a=EDa(this);if(a.names_.length){for(var b=n(ISb),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=n(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new GSb(e);break a}}a=new GSb(a.names_[0])}else a=HSb}this.name_=a}return this.name_};
var EDa=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 JSb(b,a.edgeCollection_):KSb}return a.nameRepeated_};g=ZS.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:ADa(this.contactLabel_)}]);this.email_=a?new CSb(a,this.edgeCollection_):DSb}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 NSb(a,this.edgeCollection_):OSb}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 RSb(a,this.edgeCollection_):SSb}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 zDa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},TSb=new ZS(null,null,null,null);
var $S=function(){this.keyToIndex_=new Map},USb=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};$S.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};$S.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
$S.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};$S.prototype.getKey_=function(a,b){return a+"="+b};
var CDa=function(a){this.evergreenProfile_=a?new ZS(a,null,null,null):TSb};CDa.prototype.toString=function(){return""};var VSb=new CDa(null);
var WSb=new uSb(!0,null),aT=function(a){this.edgeIndexResolver_=new $S;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=DDa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};aT.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||VSb};var ySb=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};aT.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
aT.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[WSb];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,USb(this.edgeIndexResolver_,a,[b]).map(function(d){return new uSb(!1,d)}));return this.sourcesCache_.get(c)};var XSb=new aT(null);
var bT=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 aT(this.person_);this.emailIndex_=b;this.profile_=new ZS(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()};X(bT,RQb);g=bT.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=tSb(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=yDa(a.sourceIds);a=new rSb(a.personId||"",b)}else a=sSb;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=sp("id.id",a)||"",a=new rSb("",b)):a=sSb:a=sSb;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=FDa(this.profile_,function(a){return!!a&&!wSb(a)}),null===this.name_&&(this.name_=YSb(this,FDa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};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_=GDa(this.profile_,function(a){return!!a&&!wSb(a)}),null===this.photoUrl_&&(this.photoUrl_=YSb(this,GDa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var YSb=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<xSb(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<vSb(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""},ZSb=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new bT(q,void 0,!0)});b=new Set;var d=
[];a=n(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=sp("person.email",e)||sp("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(sp("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new bT(e,h))}else d.push(new bT(e))}return d};
var $Sb=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R){J=void 0===J?new sS:J;R=void 0===R?!1:R;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=t?t:function(){};this.autocompletePageSize=x;this.rankedTargetsPageSize=y;this.peopleContainerMask=F.split(/[\s,]+/).filter(function(S){return!!S});this.peopleFieldMask=K;this.experiments=J;this.includeOnlyNames=
R};$Sb.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};
var cT=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};X(cT,Error);
var dT=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new QS(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=dT.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_=bxb(new yE),aTb(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&&!pDa()&&(c.params=c.params||{},c.params.key=d);c.headers=qDa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=lxb(exb([a,uxb(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{aTb(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 yE)c=1,d=11;else if(a instanceof cT)c=a.code,d=gRb(c);else if(a&&"object"===typeof a){var e=sp("result.error.code",a)||a.status,f=e;f=Number(f);c=dRb.has(f)?dRb.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=gRb(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),aTb(this,null,d,b)}};
var aTb=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 bTb=function(a,b,c){var d=(new vp).setEventType(2).setRpcType(1).setToken(b);dT.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};X(bTb,dT);
bTb.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}};
bTb.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new cT(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new cT(8,"RequestThrottled");if(b.containsPartialResults)throw new cT(8,"ContainsPartialResults");}return ZSb(a.results||[],this.config.includeOnlyNames)};
var cTb=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new ZS(this.person_,null,null,this.edgeCollection_):TSb};g=cTb.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=tSb(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 dTb=new cTb(null,XSb);
var eTb=function(a){a=void 0===a?null:a;this.edgeCollection_=new aT(a);this.contact_=a?new cTb(a,this.edgeCollection_):dTb};g=eTb.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 fTb=function(a,b,c){dT.call(this,a,(new vp).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};X(fTb,dT);
fTb.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}};fTb.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new eTb(b.person)})};
var eT=function(a,b,c,d){dT.call(this,a,vDa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=gTb(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};X(eT,dT);
eT.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}};
eT.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=n(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new eTb(f))});return d};var gTb=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};
var hTb=function(a,b){dT.call(this,a,(new vp).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_=[];oj(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};X(hTb,dT);
hTb.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}};hTb.prototype.processResponse=function(a){return ZSb(a.rankedTarget||[],this.config.includeOnlyNames,!0)};
g=HDa.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 iTb=new Map([[1,4],[2,2],[3,1],[4,7]]),fT=function(a,b){OD.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 QS((new vp).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?jTb(c,d):kTb(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);kTb(c,5)})};
X(fT,OD);var jTb=function(a,b){b&&b.request?(uDa(),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 lTb(a,d,e)})})):kTb(a,9)};fT.prototype.disposeInternal=function(){for(var a=n(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())mSb(this,b.value)};
var kTb=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},mSb=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(mTb(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},nTb=function(a,b,c){a.gapiFailed_?c.cancel():(xDa(a,b).push(c),lTb(a,b,c))},lTb=function(a,b,c){a.gapiClient_&&lxb(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)}})},xDa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},mTb=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};fT.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 bTb(this.config_,d,e):new hTb(this.config_,e);nTb(this,b,f);return f};
fT.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new QS((new vp).setEventType(2).setRpcType(4)),12),oTb(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(x,y){y?(x=jRb(y,h),a.response_=x):(y=new HDa(b),y.contacts_=x,x=new iRb(h),x.queryResponse_=y,x.errorCode_=y.getError(),a.response_=x)},e=this.config_.setTimeout(pTb(a));try{var f=b.emailAddresses||[];if(f.length)var h=new eT(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new eT(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new fTb(this.config_,q,d);else{var t=b.syntheticIds||[];if(t.length)h=new eT(this.config_,5,t,d);else return this.metrics_.status(new QS((new vp).setEventType(2)),12),oTb(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);nTb(this,c,h);return h};var oTb=function(a){var b=new wS(function(){var c=jRb(5,b);a.response_=c});b.setQuery(a);return b};
var gT=function(a,b,c,d){yp.call(this,a,b,c,d)};X(gT,yp);gT.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(bv(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};gT.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new NS([b.mutateResponse_],"c"),this.dispatchEvent(a)}};
var qTb=function(a,b,c){b=b||new oSb(!0,!0);yp.call(this,a,b,"personal",c)};X(qTb,gT);qTb.prototype.configure=function(a,b){gT.prototype.configure.call(this,a,b)};
var rTb=function(){throw Error("sd");};
var Dp={},sTb={},tTb={},uTb={},vTb={},Cp=function(){throw Error("ud");};Cp.prototype.contentDir=null;Cp.prototype.getContent=function(){return this.content};Cp.prototype.toString=function(){return this.content};var wTb=function(){Cp.call(this)};ev(wTb,Cp);wTb.prototype.contentKind=Dp;var xTb=function(){Cp.call(this)};ev(xTb,Cp);xTb.prototype.contentKind=sTb;xTb.prototype.contentDir=1;
var hT=function(a,b){return null!=a&&a.contentKind===b};
var yTb=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},iT=function(a){return hT(a,Dp)?a:a instanceof cw?Rr(ck(a).toString()):a instanceof cw?Rr(ck(a).toString()):Rr(String(String(a)).replace(zTb,ATb),yTb(a))},Rr=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}}(wTb),jT=function(a){if(null==a)throw Error("wd");return a},kT=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}}(wTb),BTb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(xTb),ETb=function(a){return hT(a,Dp)?a:Rr(CTb(a,DTb),yTb(a))},FTb=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),CTb=function(a,b){if(!b)return String(a).replace(GTb,"").replace(HTb,"&lt;");a=String(a).replace(/\[/g,
"&#91;");var c=[],d=[];a=a.replace(GTb,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",t="";if("/"!=f.charAt(1)){q="<";for(var x;x=ITb.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)t=' dir="'+f+'"'}break}ITb.lastIndex=0}c[k]=q+h+">";d[k]=t;return"["+k+"]"}return""});a=String(a).replace(JTb,ATb);var e=KTb(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},lT=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},KTb=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]="":FTb.test(e)||b.push("</"+e.substring(1))}return b.reverse().join("")},Sr=function(a){return hT(a,Dp)?String(CTb(a.getContent())).replace(JTb,
ATb):String(a).replace(zTb,ATb)},OTb=function(a){hT(a,sTb)||hT(a,tTb)?a=mT(a):a instanceof ec?a=mT(fc(a)):a instanceof ec?a=mT(fc(a)):a instanceof $v?a=mT(Fi(a).toString()):a instanceof $v?a=mT(Fi(a).toString()):(a=String(a),a=LTb.test(a)?a.replace(MTb,NTb):"about:invalid#zSoyz");return a},QTb=function(a){hT(a,sTb)||hT(a,tTb)?a=mT(a):a instanceof ec?a=mT(fc(a)):a instanceof ec?a=mT(fc(a)):a instanceof $v?a=mT(Fi(a).toString()):a instanceof $v?a=mT(Fi(a).toString()):(a=String(a),a=PTb.test(a)?a.replace(MTb,
NTb):"about:invalid#zSoyz");return a},nT=function(a){hT(a,vTb)?a=lT(a.getContent()):null==a?a="":a instanceof aw?a=lT(ipb(a)):a instanceof aw?a=lT(ipb(a)):a instanceof bw?a=lT(lpb(a)):a instanceof bw?a=lT(lpb(a)):(a=String(a),a=RTb.test(a)?a:"zSoyz");return a},STb={"\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;"},ATb=function(a){return STb[a]},TTb={"\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"},NTb=function(a){return TTb[a]},zTb=/[\x00\x22\x26\x27\x3c\x3e]/g,JTb=/[\x00\x22\x27\x3c\x3e]/g,MTb=/[\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,RTb=/^(?!-*(?:expression|(?:moz-)?binding))(?:(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:rgb|rgba|hsl|hsla|calc|max|min|cubic-bezier)\([-\u0020\t,+.!#%_0-9a-zA-Z]+\)|[-+]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:e-?[0-9]+)?(?:[a-z]{1,4}|%)?|!important)(?:\s*[,\u0020]\s*|$))*$/i,
LTb=/^(?:(?:https?|mailto|ftp):|[^&:\/?#]*(?:[\/?#]|$))/i,PTb=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,UTb=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,mT=function(a){return String(a).replace(MTb,NTb)},GTb=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,HTb=/</g,DTb={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},ITb=
/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;
var IDa={};
var oT=function(a,b,c){wp.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;xp(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_={}};ev(oT,wp);g=oT.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_[pT(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":VTb(this);break;case "dismiss":WTb(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,bv(this.matchListener_,this)),VTb(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var XTb=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}};
oT.prototype.hiliteId=function(a){var b=pT(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)};
oT.prototype.selectHilited=function(){var a=pT(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=YTb(c,c.getValue(),c.getCursorPosition()),f=ZTb(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||lj(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(jv||hv)&&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_;$Tb(f)&&(f.selectionStart=e);f=c.activeElement_;$Tb(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};
oT.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 WTb=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(bv(a.dismiss,a),100))};
oT.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var VTb=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(bv(a.immediatelyCancelDelayedDismiss_,a),10)};oT.prototype.disposeInternal=function(){oT.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
oT.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
oT.prototype.renderRows=function(a,b){var c="object"==Sa(b)&&b;b=(c?c.getPreserveHilited():b)?pT(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_[Ma(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):XTb(this));this.dispatchEvent("suggestionsupdate")};var pT=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};oT.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};oT.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){ac(this.inputToAnchorMap_,Ma(c))},this)};oT.prototype.update=function(a){this.selectionHandler_.update(a)};
var aUb=function(a,b){var c=0,d=0;$Tb(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},$Tb=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};
var dUb=function(a,b,c,d,e,f){if(hr&&e)return bUb(a);if(e&&!d)return!1;if(!jv){"number"===typeof b&&(b=cUb(b));var h=17==b||18==b||hr&&91==b;if((!c||hr)&&h||hr&&16==b&&(d||f))return!1}if((kv||iv)&&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(hv&&d&&b==a)return!1;switch(a){case 13:return jv?f||e?!1:!(c&&d):!0;case 27:return!(kv||iv||jv)}return jv&&(d||e||f)?!1:bUb(a)},bUb=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(kv||iv)&&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 jv;default:return!1}},cUb=function(a){if(jv)a=eUb(a);else if(hr&&kv)switch(a){case 93:a=91}return a},eUb=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 fUb=function(a,b,c,d){UD.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};ev(fUb,UD);
var qT=function(a,b){wp.call(this);a&&this.attach(a,b)};ev(qT,wp);g=qT.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var gUb={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},hUb={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},iUb=hr&&jv;g=qT.prototype;
g.handleKeyDown_=function(a){(kv||iv)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||hr&&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));dUb(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=cUb(a.keyCode),iUb&&(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(hv&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(kv||iv)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&bUb(d)?b.charCode:0):("keypress"==a.type?(iUb&&(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),hr&&63==e&&224==d&&(d=191));var f=d=cUb(d);d?63232<=
d&&d in gUb?f=gUb[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in hUb&&(f=hUb[b.keyIdentifier]);if(!jv||"keypress"!=a.type||dUb(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new fUb(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_=xp(this.element_,"keypress",this,b);this.keyDownKey_=xp(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=xp(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(bE(this.keyPressKey_),bE(this.keyDownKey_),bE(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){qT.superClass_.disposeInternal.call(this);this.detach()};
var rT=function(a,b,c,d){OD.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 zE(d):null;this.eh_=new ar(this);this.activateHandler_=new ar(this);this.keyHandler_=new qT;this.lastKeyCode_=-1};
ev(rT,OD);g=rT.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 aUb(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];pE(c)&&(fI(c,"combobox"),gI(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_),pE(c))){var d=fE(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&jUb(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];pE(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(){rT.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();yi(this.timer_)};
var lUb=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){XTb(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}}kUb(a,b)},kUb=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()};rT.prototype.handleKeyUp=function(){return!1};rT.prototype.handleFocus=function(a){jUb(this,a.target||null)};
var jUb=function(a,b){a.activateHandler_.removeAll();a.ac_&&VTb(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_),hv&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=rT.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_),hv&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&mUb(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&WTb(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&lUb(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&mUb(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&mUb(this)};g.onMouseDown_=function(){};
var mUb=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};rT.prototype.onIeKeyPress_=function(a){kUb(this,a)};
rT.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=ZTb(this,b)[YTb(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 YTb=function(a,b,c){a=ZTb(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},ZTb=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 nUb=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},oUb=function(a){return a.classList?a.classList:nUb(a).match(/\S+/g)||[]},pUb=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},qUb=function(a,b){return a.classList?a.classList.contains(b):ya(oUb(a),b)},rUb=function(a,b){if(a.classList)a.classList.add(b);else if(!qUb(a,b)){var c=nUb(a);pUb(a,c+(0<c.length?" "+b:b))}},sT=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){rUb(a,e)});else{var c={};Array.prototype.forEach.call(oUb(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;pUb(a,b)}},sUb=function(a,b){a.classList?a.classList.remove(b):qUb(a,b)&&pUb(a,Array.prototype.filter.call(oUb(a),function(c){return c!=b}).join(" "))},tUb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){sUb(a,c)}):pUb(a,Array.prototype.filter.call(oUb(a),function(c){return!ya(b,c)}).join(" "))};
var uUb=function(a,b,c){OD.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=bv(this.doAction_,this)};ev(uUb,OD);g=uUb.prototype;g.id_=0;g.disposeInternal=function(){uUb.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};g.start=function(a){this.stop();this.id_=Xt(this.callback_,void 0!==a?a:this.interval_)};g.stop=function(){this.isActive()&&Yt(this.id_);this.id_=0};g.fire=function(){this.stop();this.doAction_()};
g.isActive=function(){return 0!=this.id_};g.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};
var vUb=function(a,b){if(b&&a in b)return a;var c=kv?"Webkit":jv?"Moz":hv?"ms":null;return c?(c=c.toLowerCase(),a=c+fj(a),void 0===b||a in b?a:null):null};
var tT=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=tT.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new tT(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof tT?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){La(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 nr?(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 uT=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};uT.prototype.clone=function(){return new uT(this.left,this.top,this.width,this.height)};var uTa=function(a){return new uT(a.left,a.top,a.right-a.left,a.bottom-a.top)};
uT.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 wUb=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 uT(c,e,d-c,a-e)}return null};
g=uT.prototype;g.contains=function(a){return a instanceof nr?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 dE(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 nr?(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 vT=function(a,b){var c=fE(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},hq=function(a,b){return vT(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},qr=function(a,b,c){if(b instanceof nr){var d=b.x;b=b.y}else d=b,b=c;a.style.left=wT(d,!1);a.style.top=wT(b,!1)},xUb=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},yUb=function(a){if(hv&&!(8<=
Number(lv)))return a.offsetParent;var b=fE(a),c=hq(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=hq(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},lr=function(a){for(var b=new tT(0,Infinity,Infinity,0),c=zp(a),d=c.document_.body,e=c.document_.documentElement,f=kE(c.document_);a=
yUb(a);)if(!(hv&&0==a.clientWidth||kv&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=hq(a,"overflow")){var h=xT(a),k=new nr(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},BUb=function(a,b){b=b||kE(document);var c=b||kE(document);var d=xT(a),e=xT(c);if(!hv||9<=Number(lv)){h=vT(c,"borderLeftWidth");var f=vT(c,"borderRightWidth");k=vT(c,"borderTopWidth");q=vT(c,"borderBottomWidth");f=new tT(parseFloat(k),parseFloat(f),parseFloat(q),parseFloat(h))}else{var h=zUb(c,"borderLeft");f=zUb(c,"borderRight");var k=zUb(c,"borderTop"),q=zUb(c,"borderBottom");f=new tT(k,f,q,h)}c==kE(document)?(h=d.x-c.scrollLeft,d=d.y-c.scrollTop,
!hv||10<=Number(lv)||(h+=f.left,d+=f.top)):(h=d.x-e.x-f.left,d=d.y-e.y-f.top);a=AUb(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 nr(f,k);b.scrollLeft=c.x;b.scrollTop=c.y},xT=function(a){var b=fE(a),c=new nr(0,0);var d=b?fE(b):document;d=!hv||9<=Number(lv)||iE(zp(d).document_)?d.documentElement:d.body;if(a==d)return c;a=xUb(a);b=lE(zp(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},vTa=function(a,
b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new nr(0,0),f=mE(fE(d));if(tnb(f,"parent")){var h=d;do{if(f==c)var k=xT(h);else k=xUb(h),k=new nr(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=or(e,xT(d));!hv||9<=Number(lv)||iE(b.document_)||(d=or(d,lE(b.document_)));a.left+=d.x;a.top+=d.y}},CUb=function(a,b,c){if(b instanceof dE)c=b.height,b=b.width;else if(void 0==c)throw Error("zd");a.style.width=wT(b,!0);a.style.height=
wT(c,!0)},wT=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},pr=function(a){var b=AUb;if("none"!=hq(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},AUb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=kv&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=xUb(a),new dE(a.right-a.left,a.bottom-a.top)):new dE(b,c)},kr=
function(a){var b=xT(a);a=pr(a);return new uT(b.x,b.y,a.width,a.height)},DUb=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)+")")},yT=function(a,b){a.style.display=b?"":"none"},zT=function(a){return"rtl"==hq(a,"direction")},EUb=jv?"MozUserSelect":kv||iv?"WebkitUserSelect":null,FUb=function(a){var b=a.getElementsByTagName("*");if(EUb){var c="none";a.style&&(a.style[EUb]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&
(d.style[EUb]=c)}}else if(hv&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},zTa=function(a,b){a=a.style;jv?a.MozBoxSizing="border-box":kv?a.WebkitBoxSizing="border-box":a.boxSizing="border-box";a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"},GUb=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},HUb=function(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?GUb(a,b):0},IUb=function(a){if(hv){var b=HUb(a,"marginLeft"),c=HUb(a,"marginRight"),d=HUb(a,"marginTop");a=HUb(a,"marginBottom");return new tT(d,c,a,b)}b=vT(a,"marginLeft");c=vT(a,"marginRight");d=vT(a,"marginTop");a=vT(a,"marginBottom");return new tT(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))},JUb={thin:2,medium:4,thick:6},zUb=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 JUb?JUb[b]:GUb(a,b)};
var KUb=function(){if(wnb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(ha()))?a[1]:"0"}return hr?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(ha()))?a[0].replace(/_/g,"."):"10"):znb?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ha()))?a[1]:""):Anb||Bnb||Cnb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ha()))?a[1].replace(/_/g,"."):""):""}();
var AT=function(a){return(a=a.exec(ha()))?a[1]:""},LUb=function(){if(Mnb)return AT(/Firefox\/([0-9.]+)/);if(hv||iv||unb)return Jnb;if(Qnb){if(qa()||ja("Macintosh")){var a=AT(/CriOS\/([0-9.]+)/);if(a)return a}return AT(/Chrome\/([0-9.]+)/)}if(Rnb&&!qa())return AT(/Version\/([0-9.]+)/);if(Nnb||Onb){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ha()))return a[1]+"."+a[2]}else if(Pnb)return(a=AT(/Android\s+([0-9.]+)/))?a:AT(/Version\/([0-9.]+)/);return""}();
var tTa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=hq(a,"position")){var c=xT(a);if(!b){b=zT(a);var d;if(d=b){d=Rnb&&0<=sa(LUb,10);var e;if(e=Dnb)e=0<=sa(KUb,10);var f=Qnb&&0<=sa(LUb,85);d=jv||d||e||f}b=d?-a.scrollLeft:b&&!ak&&"visible"!=hq(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=or(c,new nr(b,a.scrollTop))}}}return c||new nr},wTa=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 uT(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}},mr=function(a,b){return(b&8&&zT(a)?b^4:b)&-9};
var ir=function(){};ir.instance_=void 0;ir.getInstance=function(){return ir.instance_?ir.instance_:ir.instance_=new ir};ir.prototype.nextId_=0;ir.prototype.idPrefix_="";ir.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Zq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};
var BT=function(a,b,c,d){wp.call(this);this.parent_=a||document.body;this.dom_=zp(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};ev(BT,wp);BT.prototype.getElement=function(){return this.element_};
BT.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Date.now();this.target_=c;this.rowDivs_=[];MUb(this)};BT.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,NUb(this,!1),yT(this.element_,!1))};BT.prototype.show=function(){this.visible_||(this.visible_=!0,NUb(this,!0),yT(this.element_,!0))};
var NUb=function(a,b){a.target_&&(gI(a.target_,"haspopup",b),gI(a.element_,"expanded",b),gI(a.target_,"expanded",b),b?gI(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),hI(a.target_,null)))};BT.prototype.isVisible=function(){return this.visible_};
var OUb=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_&&tUb(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(sT(d,["ac-active","active"]),a.target_&&hI(a.target_,d),BUb(d,a.element_)))};BT.prototype.hiliteId=function(a){if(-1==a)OUb(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){OUb(this,b);break}};
var PUb=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;sT(b,bj(a.className).split(" "));fI(b,"listbox");b.id=Zq(ir.getInstance());a.dom_.appendChild(a.parent_,b);xp(b,"click",a.handleClick_,!1,a);xp(b,"mousedown",a.handleMouseDown_,!1,a);xp(b,"mouseover",a.handleMouseOver_,!1,a)}},MUb=function(a){PUb(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:Zq(ir.getInstance())});fI(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):rE(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,QUb(this,d,c));rUb(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(),FUb(a.element_))};
BT.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=tTa(c),f=kr(a),h=lr(a);h&&f.intersection(uTa(h));vTa(f,zp(a),zp(c));a=mr(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new nr(b,f.top+(a&1?f.height:0));a=or(a,e);if(f=lr(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=mr(c,d);d=pr(c);b=d.clone();e=wTa(e,b,a,null,f,65);e.status&496||(f=e.rect,qr(c,new nr(f.left,
f.top)),b=e.rect.getSize(),yTa(d,b)||zTa(c,b))}};BT.prototype.getTarget=function(){return this.target_||null};BT.prototype.disposeInternal=function(){this.element_&&(aE(this.element_,"click",this.handleClick_,!1,this),aE(this.element_,"mousedown",this.handleMouseDown_,!1,this),aE(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);yi(this.animation_);this.parent_=null;BT.superClass_.disposeInternal.call(this)};
var QUb=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=RUb(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;b.nodeValue=c.slice(2*d).join("");a.wasHighlightedAtLeastOnce_=!0}else d&&QUb(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,QUb(a,b,c),b=d},RUb=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!lj(kj(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(Do).join("|"):(c=ew(b),c=Do(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?Do(b[0]):"":/^\W/.test(b)||(c=Do(b));return c},SUb=function(a,b){for(;b&&b!=a.element_&&!qUb(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};BT.prototype.handleClick_=function(a){var b=SUb(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};BT.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
BT.prototype.handleMouseOver_=function(a){a=SUb(this,a.target);0<=a&&!(300>Date.now()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};
var CT=function(a,b,c,d,e,f,h,k,q,t){f=f||new rT(",;",'"');h=new BT(h||null,q||this,t);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;oT.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};ev(CT,oT);
var UUb=function(a,b,c,d,e,f,h){b=new CT(null,b,void 0,f,c,d,e,void 0,void 0,h);bG(a);bv(TUb,null,b,!0);throw Error("td");},VUb=function(a,b,c,d,e,f,h){b=new CT(null,b,void 0,f,c,d,e,void 0,void 0,h);c=TUb;e=a.getClientInfo();d=(f=As(e,10)||oj(a.getExperiments(),5,!0))?new YRb(void 0,WRb(a)):new US(void 0,WRb(a));h=ds(new DRb(a,1));var k=a.getUserInfo().getEnvType()||1;var q=iTb.get(k)||4;q=rDa("people-pa",void 0===q?0:q);k=4===k?tv(a.getClientInfo(),2)||"":tv(a.getClientInfo(),1)||"";var t=tv(a.getClientInfo(),
4),x=tv(a.getClientInfo(),5),y=tv(a.getClientInfo(),6)||"",F=a.getClientInfo().getAffinityType()||"",K=a.getUserInfo().getDelegatorId(),J=a.getAuthErrorHandler(),R=Ji(a.getClientInfo(),8,3E4),S=oj(a.getClientInfo(),17,!1);h=new $Sb(h,q,k,t,x,y,F,K,R,J,Ji(a.getClientInfo(),13,15),Ji(a.getClientInfo(),14,500),Pi(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),Pi(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),
a.getExperiments(),S);a=new fT(h,QQb(a));h=new qTb(a);h.configure(null,"Personal Contacts");d.addAddressBook(h,!0);f&&(a=new XS(a,null,!!As(e,11)),a.configure(null,"Domain Contacts"),d.addAddressBook(a,!0));c(b,!0,d);return b},TUb=function(a,b,c){b&&c.loadContactRows(pRb,function(){});WUb(a,c)};CT.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&yi(this.contactStore_);CT.superClass_.disposeInternal.call(this)};
var WUb=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=CT.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:nRb,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=bv(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,
c)):(this.savedQuery_=a,this.savedHandler_=c);else{b=new wS;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.response_=cv(c,d,b,null,a)}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){CT.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){CT.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=Rr('<div class="'+Sr("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Sr("goog-contacts-ui-autocomplete-new-section"):"")+'">'+iT(a)+"</div>");a=JDa(a);Ap(c,a)};g.selectHilited=function(){var a=pT(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):CT.superClass_.selectHilited.call(this)};g.fireSelectionEvent=function(a){this.dispatchEvent(new XUb(a))};
var XUb=function(a){QD.call(this,"g");this.row=a};ev(XUb,QD);dv("createAutoComplete",function(a,b,c,d,e,f,h,k,q,t){d&&(b=b+d+"/");b=rTb(bG(b));f&&b.loadContactRows(pRb,function(){});c=new CT(b,c,void 0,q,e,k,t,!0);c.attachInputs(gE(document,a));return c});
var DT=function(){this.eventHandler_=new ar(this);DT.prototype.addInput=DT.prototype.addInput;DT.prototype.removeInput=DT.prototype.removeInput;DT.prototype.setTarget=DT.prototype.setTarget},YUb=function(a,b){var c=new DT;c.create(a,b);return c};g=DT.prototype;
g.create=function(a,b){a=gE(document,a);this.acWidget_=b.contactStoreConfig?VUb(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):UUb(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(ea,d.target.getTarget())});
this.addInput(a)};g.dispose=function(){wma(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;
ea._EmailAc_create=YUb;
var ZUb=function(a,b){return new Fp("/",a,void 0,void 0,void 0,void 0,b)};Fp.prototype.setLocale=function(){};var $Ub=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};$Ub.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
Fp.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Bd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)aVb(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ma(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(var c in this.acWrappers_)for(a=[].concat(r(this.acWrappers_[c].pendingInputs.values())),b=1;b<a.length;b++)aE(a[b],"focus",this.onTargetFocus_,!1,this)};
var aVb=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=bv(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(r(b.pendingInputs.values()));b.emailac=YUb(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=Fp.prototype;
g.attachAutocomplete=function(a,b,c){a=gE(document,a);var d=b||{};b=Ma(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new $Ub(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_?aVb(this,e):xp(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_[Ma(a)];b&&b(a)};g.detachAutocomplete=function(a){a=gE(document,a);aE(a,"focus",this.onTargetFocus_,!1,this);var b=Ma(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)};dv("goog.NewContactTools",Fp);
dv("goog.NewContactTools.create",ZUb);Fp.prototype.setLocale=Fp.prototype.setLocale;Fp.prototype.attachAutocompleteTo=Fp.prototype.attachAutocompleteTo;Fp.prototype.initAutocomplete=Fp.prototype.initAutocomplete;Fp.prototype.attachAutocomplete=Fp.prototype.attachAutocomplete;Fp.prototype.detachAutocomplete=Fp.prototype.detachAutocomplete;
var NDa=function(a){this.rows_=a||[]};NDa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+Do(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=bVb(a,b,d));c(a,e)};
var MDa=function(a,b,c){return bVb(b,c,a.rows_)},bVb=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 t=h.split(""),x=-1,y=10,F=0,K;K=t[F];F++)K=k.indexOf(K),K>x?(x=K-x-1,x>y-5&&(x=y-5),q+=x,x=K):(q+=y,y+=5);q<6*h.length&&d.push({str:f,score:q,index:e})}d.sort(function(J,R){var S=J.score-R.score;return 0!=S?S:J.index-R.index});a=[];for(F=0;F<b&&F<d.length;F++)a.push(d[F].str);
return a};
var ET=function(a,b,c,d){var e=this;this.activeSession=c;this.contactTools=null;this.subscription=new W.Subscription;this.acReadyDeferred=dk();if(a.gapi){var f=a.gapi;f.load("client",function(){f.config.update("googleapis.config/auth/useFirstPartyAuth",!0);f.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var h="QA"===e.activeSession.getEnvironmentType();h&&f.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");var k="0",q=/\/u\/(\d+)\//.exec(b.absUrl());
q&&(k=q[1]);f.config.update("googleapis.config/sessionIndex",k);e.acReadyDeferred.resolve(void 0);e.contactTools=d.create(h);e.contactTools.initAutocomplete()})}};ET.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
ET.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return ODa(h,k,c)},f=new W.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};ET.\u0275fac=function(a){return new (a||ET)(p(hJ),p(oI),p(NG),p(FT))};ET.\u0275prov=Hc({token:ET,factory:ET.\u0275fac,providedIn:"root"});
var FT=function(){};FT.prototype.create=function(a){var b=new tS,c=b.getUserInfo();m(c,6,a?5:1);a=b.getExperiments();a=m(a,5,!0);a=m(a,1,!0);a=m(a,3,!0);m(a,2,!0);return ZUb("xapi",b)};FT.\u0275fac=function(a){return new (a||FT)};FT.\u0275prov=Hc({token:FT,factory:FT.\u0275fac,providedIn:"root"});
var GT=function(a,b,c,d){Z.call(this);this.element=a;this.accessPolicyConverter=b;this.focusContacts=c;this.activeSession=d;this.autocompleteActive=new sx;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};X(GT,Z);
GT.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-"+hw());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=cVb(dVb(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=n(f.value.split(",")),k=h.next();!k.done;k=h.next())d+=k.value.trim(),d.match(/^[a-z0-9@\-\._\+]+$/i)?(e.push(cVb(d)),d=""):MQb.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=cVb(dVb(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("Cd`"+
this.fieldType);var c=this.additionalContactsCallback();c=eVb(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var fVb=function(a){(0,W.timer)(150).pipe(Ef(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)})},eVb=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},dVb=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},cVb=function(a){a=a.trim();
","===ta(a)&&(a=a.slice(0,-1));a=fp(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};GT.\u0275fac=function(a){return new (a||GT)(B(Rd),B(nS),B(ET),B(NG))};
GT.\u0275dir=u({type:GT,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&M("keydown",function(){return fVb(b)},!1,Ud)("mousedown",function(){return fVb(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[Of]});var HT=function(){};HT.\u0275fac=function(a){return new (a||HT)};HT.\u0275mod=Yc({type:HT});HT.\u0275inj=Ic({imports:[vy]});
var gVb=["spanElement"],IT=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};IT.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};IT.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)+"...")};
IT.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};IT.\u0275fac=function(a){return new (a||IT)};
IT.\u0275cmp=u({type:IT,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&zg(gVb,5);if(a&2){var c;yg(c=Bg())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[ed],decls:2,vars:2,consts:[[3,"matTooltip","innerHtml"],["spanElement",""]],template:function(a,b){a&1&&H(0,"span",0,1);a&2&&D("matTooltip",b.getTooltip())("innerHtml",b.displayString,ke)},dependencies:[tF],encapsulation:2});
var JT=function(){};JT.\u0275fac=function(a){return new (a||JT)};JT.\u0275mod=Yc({type:JT});JT.\u0275inj=Ic({imports:[uG]});
var hVb=["popupField"],iVb=["fieldContent"],jVb=["popupOverlay"],kVb=["overlayContent"],kEa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},lVb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],KT=function(a,b,c,d,e,f,h,k){Z.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.STATUS_FULL_TEXT=GG;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.showEnumTitle=!1;this.valueChange=new sx;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession()};X(KT,Z);KT.\u0275dir=Z.\u0275dir;g=KT.prototype;
g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=Cq(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,mVb(a),a.cdr.detectChanges())}));this.subscriptions.add(sLb(this.dateFormatter,function(){nVb(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){mVb(a)})};
g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&nVb(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return uB(vB(wB(CB(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),lVb)};g.convertIssueStatusStrToTag=function(a){return Ym[a]};
var mVb=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},wEa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();CEa(a);break;case 27:b.stopPropagation(),Gp(a,b,!1,!0)}},uEa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),CEa(a);break;case 27:b.stopPropagation(),Gp(a,b,!1,!0)}},gEa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();Gp(a,
b,!0,!1);break;case 27:b.stopPropagation(),Gp(a,b,!1,!0)}},Gp=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,mVb(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?lm(c):null),"ENUM"===
a.type&&Kq(a.enumMenuTrigger),"ENUM"!==a.type){oVb(a);var f=a.element.nativeElement;(0,W.fromEvent)(document,"click").pipe(hf(function(h){return!f.contains(h.target)}),sf(),Ef(a.overlayRef._detachments),Ef(a.destroyed$)).subscribe(function(){Gp(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};KT.prototype.schedule=function(a){var b=W.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
KT.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var nVb=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&ABb.has(b)){a.displayValue=yG(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(lm(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};KT.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=mm(a)),"NUMERIC"===this.type&&""===a&&(a=null),Ri(this.value,a)?"ENUM"===this.type&&Gp(this,null,!1,!0):(Gp(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var CEa=function(a){if(void 0===a.type)throw Error("Dd");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("Ed");default:Ai(a.type,"FieldType")}};
KT.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);Gp(this,null,!1,!0)};var oVb=function(a){mVb(a);var b=a.overlayRef.attach(new xz(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()})};
KT.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};KT.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};KT.\u0275fac=function(a){return new (a||KT)(B(qH,2),B(Rd),B(DB),B(wg),B(YN),B(NG),B(VG),B(eJ))};
KT.\u0275cmp=u({type:KT,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(zg(nF,5),zg(hVb,5),zg(iVb,5),zg(jVb,5),zg(kVb,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",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},features:[mg([qH]),Of,ed],decls:11,vars:5,consts:[[1,"bv2-issue-metadata-field"],["class","keep-focus-ring","role","button","tabindex","0","aria-haspopup","true",3,"class","bv2-disabled","bv2-readonly","matTooltip","click","keydown",4,"ngIf"],[3,"class","ngClass","matTooltip",4,"ngIf"],
[4,"ngIf"],[1,"bv2-issue-metadata-footer"],["enumMenu","matMenu"],["matMenuContent",""],["popupOverlay",""],["role","button","tabindex","0","aria-haspopup","true",1,"keep-focus-ring",3,"matTooltip","click","keydown"],["popupField",""],[3,"class",4,"ngIf"],["class","bv2-editable-value",3,"matMenuTriggerFor","menuClosed",4,"ngIf"],["class","bv2-editable-value",4,"ngIf"],["field",""],[1,"bv2-editable-value",3,"matMenuTriggerFor","menuClosed"],[4,"ngTemplateOutlet"],[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"],[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&&(E(0,"div")(1,"div",0),P(2,iEa,7,14,"div",1),P(3,lEa,3,13,"div",2),P(4,nEa,2,1,"ng-container",3),H(5,"div",4),G(),E(6,"mat-menu",null,5),P(8,qEa,2,2,"ng-template",6),G(),P(9,EEa,6,7,"ng-template",null,7,Hg),G());a&2&&(A(1),Zf("active",b.isActive&&!b.readonly&&!b.disabled),A(1),D("ngIf","BOOL"!==b.type),A(1),D("ngIf","BOOL"===b.type),A(1),D("ngIf",b.isUser))},dependencies:[bQ,ey,fy,gy,my,iy,jy,ky,GT,hO,fh,Ky,Ry,pC,yD,oF,mF,nF,lF,tF,lS,WP,IT,PQ,fR,oy],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var pVb={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},qVb=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}},LT=function(){};LT.\u0275fac=function(a){return new (a||LT)};LT.\u0275mod=Yc({type:LT});LT.\u0275inj=Ic({imports:[cR,GL,vy,HT,HO,fz,AF,uF,pF,uG,mS,bR,vL,JT,gR]});
var sVb=function(a){Y.call(this,a,-1,rVb)};X(sVb,Y);g=sVb.prototype;g.getAuthor=function(){return Pi(this,1)};g.setAuthor=function(a){m(this,1,a)};g.getDescription=function(){return Pi(this,2)};g.setDescription=function(a){return m(this,2,a)};g.hasDescription=function(){return Oi(this,2)};g.getTimestamp=function(){return Aj(this,4)};g.setTimestamp=function(a){return m(this,4,a)};g.hasTimestamp=function(){return zj(this,4)};var rVb=[5];sVb.messageId="b.ChangelistDetailsResponse";
var uVb=function(a){Y.call(this,a,-1,tVb)};X(uVb,Y);var tVb=[1];uVb.messageId="b.PendingChangelistsResponse";
var MT=function(a){this.executor=a};MT.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:uVb}).pipe(C(FEa))};MT.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:sVb}).pipe(C(GEa))};MT.\u0275fac=function(a){return new (a||MT)(p(lH))};MT.\u0275prov=Hc({token:MT,factory:MT.\u0275fac,providedIn:"root"});
var NT=function(a){this.changelistResources=a};NT.prototype.getPendingChangelistsForIssue=function(a){return(0,W.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};NT.prototype.getChangelistDetails=function(a){return(0,W.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};NT.\u0275fac=function(a){return new (a||NT)(p(MT))};NT.\u0275prov=Hc({token:NT,factory:NT.\u0275fac,providedIn:"root"});
var OT=function(a){Z.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new W.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(Df(function(c){return b.changelistApi.getChangelistDetails(c)}),Af({refCount:!0,bufferSize:1}));this.init=new W.ReplaySubject(1)};X(OT,Z);OT.\u0275dir=Z.\u0275dir;OT.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(sf(),Ef(this.destroyed$)).subscribe(function(){a.init.next()})};
OT.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};OT.\u0275fac=function(a){return new (a||OT)(B(MT))};
OT.\u0275cmp=u({type:OT,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[Of,ed],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&&(E(0,"div",0)(1,"div",1),P(2,KEa,16,6,"ng-container",2),U(3,"async"),G()());a&2&&(A(2),D("ngIf",V(3,1,b.changelist$)))},dependencies:[fy,gy,NQ,fO,ny],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 PT=function(){this.config=Object.assign({},new GJb,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};PT.prototype.ngOnInit=function(){};PT.\u0275fac=function(a){return new (a||PT)};
PT.\u0275cmp=u({type:PT,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&&(E(0,"a",0),Q(1),G(),E(2,"onedev-hovercard",null,1),P(4,LEa,2,2,"b-changelist-card",2),G());if(a&
2){var c=O(3);D("href","http://critique.corp.google.com/"+b.changelistId,le)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);Uf("aria-label","Changelist"+b.changelistId);A(1);T(" ",b.changelistId,"\n")}},dependencies:[iM,jM,mM,kM,OT],encapsulation:2});
var QT=function(){};QT.\u0275fac=function(a){return new (a||QT)};QT.\u0275mod=Yc({type:QT});QT.\u0275inj=Ic({imports:[vy,gR,TM,AO]});
var vVb=0,RT=function(a,b){Z.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new sx;this.linkBlurred=new sx;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new W.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+vVb;this.fetchedTeam$=this.providedTeamId$.pipe(rf(),hf(function(d){return"0"!==d}),Df(function(d){return c.teamsService.getTeam(d)}),C(function(d){return d.getTeamId()!==
c.teamId?(new NI).setTeamId(c.teamId).setName(c.teamId).setDescription(""):d}),nf(function(){return(0,W.of)((new NI).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),Cf(!1));this.fetchedTeam$.pipe(Ef(this.destroyed$)).subscribe(function(d){c.teamName=d.getName();c.teamDescription=d.getDescription();c.teamLogoUrl="https://moma-teams-photos.corp.google.com/logo/"+d.getTeamId()});vVb++};X(RT,Z);RT.\u0275dir=Z.\u0275dir;
g=RT.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){uo(Aq.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return rqa(this.componentId,"basic")};g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};RT.\u0275fac=function(a){return new (a||RT)(B(NG),B($K))};
RT.\u0275cmp=u({type:RT,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[Of,ed],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&&(E(0,"div",0)(1,"div",1)(2,"div",2),H(3,"img",3),E(4,"div",4)(5,"div",5),H(6,"mat-icon",6),Q(7),G(),E(8,"div",7),Q(9),G()()(),E(10,"p",8),Q(11),G(),E(12,"div",9)(13,"a",10),M("click",function(){return b.trackClick("viewTeamSettingsPage")}),E(14,"button",11),Q(15,"View team settings"),G()(),E(16,"a",12),M("click",function(){return b.trackClick("viewTeamInMoma")}),E(17,"button",11),Q(18,"View team in Moma "),H(19,"mat-icon",13),G()(),P(20,MEa,3,1,"a",14),
G()()());a&2&&(A(3),Uf("src",b.teamLogoUrl,le),A(4),T(" Team: ",b.teamName," "),A(2),T("Team ID: ",b.teamId,""),A(2),kg(b.teamDescription),A(2),hg("routerLink","/teams/",b.teamId,"/edit"),A(3),hg("href","https://moma.corp.google.com/team/",b.teamId,"",le),A(4),D("ngIf",b.componentId))},dependencies:[gy,yD,QH,pC],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 ST=function(){};ST.\u0275fac=function(a){return new (a||ST)};ST.\u0275mod=Yc({type:ST});ST.\u0275inj=Ic({imports:[vy,uF,UH,AF]});
var wVb=0,TT=function(a){Z.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new W.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+wVb;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(rf(),hf(function(c){return"0"!==c}),Df(function(c){return b.teamsService.getTeam(c)}),C(function(c){return c.getTeamId()!==b.teamId?(new NI).setTeamId(b.teamId).setName(b.teamId).setDescription(""):c}),
nf(function(){return(0,W.of)((new NI).setTeamId(b.teamId).setName(b.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),Cf(!1));this.fetchedTeam$.pipe(Ef(this.destroyed$)).subscribe(function(c){b.teamName=c.getName()});wVb++};X(TT,Z);TT.\u0275dir=Z.\u0275dir;TT.prototype.ngOnInit=function(){};TT.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};TT.prototype.trackClick=function(a){uo(Aq.TEAM_CARD,"click",a,1)};
TT.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};TT.\u0275fac=function(a){return new (a||TT)(B($K))};
TT.\u0275cmp=u({type:TT,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[Of,ed],decls:8,vars:6,consts:[[4,"ngIf","ngIfElse"],["card","onedevHovercard"],[3,"componentId","teamId"],["loading",""],["target","_blank","class","card-anchor",3,"href","onedevHovercardTrigger","click",4,"ngIf"],[3,"onedevHovercardTrigger",4,"ngIf"],["target","_blank",
1,"card-anchor",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,PEa,3,2,"ng-container",0),U(1,"async"),E(2,"onedev-hovercard",null,1),I(4),H(5,"b-team-card",2),L(),G(),P(6,SEa,2,2,"ng-template",null,3,Hg));if(a&2){var c=O(7);D("ngIf","0"!=b.teamId&&V(1,4,b.isTeamFetched$))("ngIfElse",c);A(5);D("componentId",null==b.componentId?
null:b.componentId.toString())("teamId",b.teamId.toString())}},dependencies:[gy,yD,iM,mM,RT,ny]});
var UT=function(){};UT.\u0275fac=function(a){return new (a||UT)};UT.\u0275mod=Yc({type:UT});UT.\u0275inj=Ic({imports:[vy,uF,TM,ST]});
var xVb=0,VT=function(a){this.elementRef=a;this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.headerId="b-collapsible-panel-header-"+xVb;this.id="b-collapsible-panel-"+xVb;xVb++};VT.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
ni.Object.defineProperties(VT.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"}}});VT.\u0275fac=function(a){return new (a||VT)(B(Rd))};
VT.\u0275cmp=u({type:VT,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"],[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&&(fg(),E(0,"div",0)(1,"button",1),M("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),P(2,TEa,1,1,"b-icon",2),P(3,UEa,2,1,"span",3),P(4,VEa,2,0,"div",4),H(5,"mat-icon",5),G(),E(6,"div",6),gg(7),G()());a&2&&(A(1),Zf("compact",b.hasCompactTitleBar),Uf("id",
b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),A(1),D("ngIf",b.iconName),A(1),D("ngIf",!b.hasCompactTitleBar||!b.isExpanded),A(1),D("ngIf",b.hasCompactTitleBar),A(1),D("@expandCollapseIcon",b.expandedState),A(1),D("@expandCollapseContent",b.expandedState),Uf("id",b.id)("aria-labelledby",b.headerId))},dependencies:[gy,yD,QG],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:2px 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:[Jh("expandCollapseContent",[Mh("expanded",Lh({height:"*",visibility:"visible"})),Mh("collapsed",Lh({height:"0",visibility:"hidden"})),Nh("expanded <=> collapsed",[Kh("200ms")])]),Jh("expandCollapseIcon",[Mh("expanded",Lh({transform:"rotate(-180deg)"})),Mh("collapsed",Lh({transform:"*"})),Nh("expanded <=> collapsed",[Kh("200ms")])])]}});
var WT=function(){};WT.\u0275fac=function(a){return new (a||WT)};WT.\u0275mod=Yc({type:WT});WT.\u0275inj=Ic({imports:[vy,uF,$G]});
var yVb=new Md("CDK_DRAG_CONFIG");
var zVb=new Md("CDK_DRAG_PARENT");
var AVb=new Md("CdkDragHandle"),XT=function(a,b){this.element=a;this._stateChanges=new W.Subject;this._disabled=!1;this._parentDrag=b};XT.prototype.ngOnDestroy=function(){this._stateChanges.complete()};ni.Object.defineProperties(XT.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=rh(a);this._stateChanges.next(this)}}});XT.\u0275fac=function(a){return new (a||XT)(B(Rd),B(zVb,12))};
XT.\u0275dir=u({type:XT,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[mg([{provide:AVb,useExisting:XT}])]});
var BVb=new Md("CdkDragPlaceholder");
var CVb=new Md("CdkDragPreview");
var DVb=new Md("CdkDropListGroup");
var EVb=kh({passive:!1,capture:!0}),YT=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 W.Subject;this.pointerUp=new W.Subject;this.scroll=new W.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},FVb=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},GVb=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,EVb)})},IVb=function(a,b){a._dragInstances.delete(b);HVb(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
EVb)};
YT.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:EVb}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:EVb}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var HVb=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};YT.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
YT.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new W.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 W.merge.apply(null,r(c))};
YT.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return IVb(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};YT.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};YT.\u0275fac=function(a){return new (a||YT)(p(Mf),p(li))};
YT.\u0275prov=Hc({token:YT,factory:YT.\u0275fac,providedIn:"root"});
var cFa=0;
var ZT=function(a){this._document=a;this.positions=new Map};ZT.prototype.clear=function(){this.positions.clear()};ZT.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:WEa(c)})})};
var JVb=function(a,b){var c=ph(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)&&Hp(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};ZT.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};
var KVb=kh({passive:!0}),LVb=kh({passive:!1}),eFa=new Set(["position"]),$T=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 W.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=W.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 W.Subject;this.started=new W.Subject;this.released=new W.Subject;this.ended=new W.Subject;this.entered=new W.Subject;this.exited=new W.Subject;this.dropped=new W.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 t=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(t);if(h._dropContainer)h._updateActiveDropContainer(t,q);else{q=h.constrainPosition?h._initialClientRect:h._pickupPositionOnPage;var x=h._activeTransform;x.x=t.x-q.x+h._passiveTransform.x;x.y=t.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:t,event:k,distance:h._getDragDistance(t),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()};MVb(NVb(this,a),b.parentDragRef||null);this._parentPositions=new ZT(c);GVb(f,this)};$T.prototype.getPlaceholderElement=function(){return this._placeholder};
$T.prototype.getRootElement=function(){return this._rootElement};
var OVb=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},PVb=function(a,b){a._handles=b.map(function(d){return th(d)});a._handles.forEach(function(d){return Ip(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},NVb=function(a,b){var c=th(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,LVb);c.addEventListener("touchstart",a._pointerDown,KVb);c.addEventListener("dragstart",a._nativeDragStart,LVb)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},QVb=function(a,b){a._boundaryElement=b?th(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},MVb=function(a,b){a._parentDragRef=b};g=$T.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();IVb(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(),HVb(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();
HVb(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();HVb(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){Lp(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();fFa(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=Lp(b),f=!e&&0!==b.button,h=this._rootElement,k=ph(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?wh(b):vh(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(t){return c._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=WEa(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;fFa(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=jFa(c,this._document);this._previewRef=c;a.matchSize?kFa(e,d):e.style.transform=Kp(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=bFa(this._rootElement),kFa(e,this._initialClientRect),this._initialTransform&&(e.style.transform=this._initialTransform);
dFa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},eFa);Ip(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=iFa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||ph(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=jFa(this._placeholderRef,this._document)):a=bFa(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=Lp(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=Lp(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,Ip(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,LVb);a.removeEventListener("touchstart",this._pointerDown,KVb);a.removeEventListener("dragstart",this._nativeDragStart,LVb)};
g._applyRootElementTransform=function(a,b){a=Kp(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=Jp(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=Jp(Kp(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:Lp(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=JVb(this._parentPositions,a);b&&(a=ph(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&Hp(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=nh(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):th(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))})};ni.Object.defineProperties($T.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=rh(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return Ip(c,b)}))}}});
var aU=function(a,b){this._element=a;this._dragDropRegistry=b;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};aU.prototype.start=function(a){this.withItems(a)};
aU.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],t=q.clientRect,x=k>f?1:-1,y=this._getItemOffsetPx(e[k].clientRect,t,x),F=this._getSiblingOffsetPx(k,e,x),K=e.slice();Mp(e,k,f);e.forEach(function(J,R){if(K[R]!==J){var S=J.drag===a;R=S?y:F;S=S?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=R;h?(S.style.transform=
Jp("translate3d("+Math.round(J.offset)+"px, 0, 0)",J.initialTransform),Hp(J.clientRect,0,R)):(S.style.transform=Jp("translate3d(0, "+Math.round(J.offset)+"px, 0)",J.initialTransform),Hp(J.clientRect,R,0))}});this._previousSwap.overlaps=XEa(t,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y;return{previousIndex:k,currentIndex:f}};
aU.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)):(th(this._element).appendChild(h),e.push(a));h.style.transform="";this._cacheItemPositions()};
aU.prototype.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};var RVb=function(a,b){a._sortPredicate=b};
aU.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};
aU.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 SVb=function(a,b,c){a._itemPositions.forEach(function(d){Hp(d.clientRect,b,c)});a._itemPositions.forEach(function(d){d=d.drag;a._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};g=aU.prototype;
g._cacheItemPositions=function(){var a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(b){var c=OVb(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:WEa(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 t=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&t===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 UVb=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 W.Subject;this.entered=new W.Subject;this.exited=new W.Subject;this.dropped=new W.Subject;this.sorted=new W.Subject;this._isDragging=!1;this._draggables=[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=
W.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new W.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,W.interval)(0,W.animationFrameScheduler).pipe(Ef(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=th(a);this._document=c;TVb(this,[this.element]);FVb(b,this);this._parentPositions=new ZT(c);this._sortStrategy=new aU(this.element,b);RVb(this._sortStrategy,function(h,k){return f.sortPredicate(h,k,f)})};g=UVb.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._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 VVb=function(a,b){a._sortStrategy.orientation=b},TVb=function(a,b){var c=th(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(r(b)):b.slice()};g=UVb.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&&YEa(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,t){if(t!==c._document&&q.clientRect&&!k&&YEa(q.clientRect,a,b)){var x=q.clientRect;q=lFa(x,b);x=mFa(x,a);var y=0,F=0;if(q){var K=t.scrollTop;1===q?0<K&&(y=1):t.scrollHeight-K>t.clientHeight&&(y=2)}x&&(q=t.scrollLeft,1===x?0<q&&(F=1):t.scrollWidth-q>t.clientWidth&&(F=2));q=n([y,F]);d=q.next().value;e=q.next().value;if(d||e)k=t}});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=lFa(h,b);e=mFa(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=th(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=th(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=th(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&&XEa(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||!XEa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=th(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())};g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe()};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=JVb(a._parentPositions,b))&&SVb(a._sortStrategy,b.top,b.left):0<a._activeSiblings.size&&a._cacheParentPositions()})};g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=nh(th(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 WVb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},bU=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d};bU.prototype.createDrag=function(a,b){b=void 0===b?WVb:b;return new $T(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)};bU.\u0275fac=function(a){return new (a||bU)(p(li),p(Mf),p(lB),p(YT))};bU.\u0275prov=Hc({token:bU,factory:bU.\u0275fac,providedIn:"root"});
var XVb=0,YVb=new Md("CdkDropList"),cU=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 W.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+XVb++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new sx;this.entered=new sx;this.exited=new sx;this.sorted=new sx;this._unsortedItems=new Set;this._dropListRef=new UVb(a,b._dragDropRegistry,b._document,b._ngZone,
b._viewportRuler);this._dropListRef.data=this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,t){return k.enterPredicate(q.data,t.data)};this._dropListRef.sortPredicate=function(q,t,x){return k.sortPredicate(q,t.data,x.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);ZVb.push(this);f&&f._items.add(this)};cU.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
cU.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var $Vb=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return OVb(b._dragRef).compareDocumentPosition(OVb(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=cU.prototype;
g.ngOnDestroy=function(){var a=ZVb.indexOf(this);-1<a&&ZVb.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(Cf(this._dir.value),Ef(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=qh(b.connectedTo).map(function(e){return"string"===typeof e?ZVb.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=Ttb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
TVb(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=rh(b.sortingDisabled);a.autoScrollDisabled=rh(b.autoScrollDisabled);a.autoScrollStep=uh(b.autoScrollStep,2);VVb(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()})};
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($Vb(this).map(function(a){return a._dragRef}))};
ni.Object.defineProperties(cU.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=rh(a)}}});var ZVb=[];cU.\u0275fac=function(a){return new (a||cU)(B(Rd),B(bU),B(Xx),B(hB),B(XA,8),B(DVb,12),B(yVb,8))};
cU.\u0275dir=u({type:cU,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Uf("id",b.id),Zf("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"],features:[mg([{provide:DVb,useValue:void 0},{provide:YVb,useExisting:cU}])]});
var dU=function(a,b,c,d,e,f,h,k,q,t,x){var y=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=t;this._parentDrag=x;this._destroyed=new W.Subject;this.started=new sx;this.released=new sx;this.ended=new sx;this.entered=new sx;this.exited=new sx;this.dropped=new sx;this.moved=new W.Observable(function(F){var K=y._dragRef.moved.pipe(C(function(J){return{source:y,pointerPosition:J.pointerPosition,event:J.event,delta:J.delta,
distance:J.distance}})).subscribe(F);return function(){K.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;aWb.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};
g=dU.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(sf(),Ef(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=aWb.indexOf(this);-1<b&&aWb.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)}NVb(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):th(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:uh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=QVb(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(sf()).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;MVb(a,(null==(d=aWb.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(Cf(this._handles),Ff(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);PVb(a._dragRef,b)}),Df(function(b){return W.merge.apply(null,r(b.map(function(c){return c._stateChanges.pipe(Cf(c))})))}),Ef(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),Ip(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),Ip(d,c.disabled))})};ni.Object.defineProperties(dU.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=rh(a);this._dragRef.disabled=this._disabled}}});var aWb=[];dU.\u0275fac=function(a){return new (a||dU)(B(Rd),B(YVb,12),B(li),B(Mf),B(wg),B(yVb,8),B(XA,8),B(bU),B(Xx),B(AVb,10),B(zVb,12))};
dU.\u0275dir=u({type:dU,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,CVb,5),Ag(c,BVb,5),Ag(c,AVb,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&&Zf("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"],features:[mg([{provide:zVb,useExisting:dU}]),ed]});
var eU=function(){};eU.\u0275fac=function(a){return new (a||eU)};eU.\u0275mod=Yc({type:eU});eU.\u0275inj=Ic({providers:[bU],imports:[oB]});
var bWb=["addLink"],cWb=["showFewer"],dWb=["showMore"],eWb=["removeButton"],oFa=function(a,b){return{item:a,$index:b}},fWb=[[["",8,"title-action"]],[["",8,"value-action"]]],gWb=[Object.assign({},Op("start","bottom"),Pp("start","top"),{offsetY:8}),Object.assign({},Op("center","bottom"),Pp("center","top"),{offsetY:8}),Object.assign({},Op("end","bottom"),Pp("end","top"),{offsetY:8}),Object.assign({},Op("start","top"),Pp("start","bottom"),{offsetY:-8}),Object.assign({},Op("end","top"),Pp("end","bottom"),
{offsetY:-8})],fU=function(a,b,c,d){Z.call(this);this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=gWb;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 sx;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.inputValidator=null;this.teamId=this.invalidMessage="";this.isString=Ui;this.enableTeamAnnotations=d.isInternalSession();this.environmentType=d.getEnvironmentType()};X(fU,Z);fU.\u0275dir=Z.\u0275dir;fU.prototype.ngOnChanges=function(a){var b;if(null==(b=a.users)?0:b.currentValue)for(a=n(a.users.currentValue),b=a.next();!b.done;b=a.next()){b=b.value;var c=Ul(b);c&&this.userMap.set(c,Si(b))}};
fU.prototype.ngOnInit=function(){vFa(this)};var vFa=function(a){a.sortedEnumChoices=[].concat(r(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})},wFa=function(a){var b=a.values||[],c=[].concat(r(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})};
fU.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
fU.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()}})};
fU.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=mm(a);this.preventDuplicates&&this.values.find(function(f){return Ri(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&cna(this.values)&&cna(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(bna(this.values)&&bna(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=n(a.split(/[,; ]/));
for(var d=a.next();!d.done;d=a.next()){var e=d=d.value;"CHANGELISTS"===this.type&&(e=hWb(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||ZFa(this,!0);0!==b.length&&(this.values=[].concat(r(this.values),r(b)),this.valuesChange.emit({values:this.values,added:b}))};
var hWb=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 isNaN(Number(a))?null:a};fU.prototype.onDrop=function(a){Mp(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var ZFa=function(a,b){var c,d=n(null!=(c=a.menuTriggers)?c:[]);for(c=d.next();!c.done;c=d.next())c.value.closeMenu();var e;d=n(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()},Np=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()})},qFa=function(a){return a.values&&"REPEATED_DATE"===a.type?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(lm(b))}):a.values&&"TEAM"===a.type?a.values:a.values&&"WORKSPACES"===a.type?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return Ui(b)?b:Ti(b)?""+b:a.dateFormatter.formatUserCalendar(lm(b))})},YFa=function(a,b,c){var d,e,f,h;return Pe(function(k){if(1==k.nextAddress){if(!a.inputValidator)return k.jumpTo(2);d=a;return Re(k,a.inputValidator(b.value.input),
3)}2!=k.nextAddress&&(d.invalidMessage=k.yieldResult,a.cdr.detectChanges());if(!b.valid||a.invalidMessage)return k.return();e=b.value.input;null==(f=b)||f.reset();null==(h=c.querySelector("input"))||h.focus();a.addItems(e);Ve(k)})};g=fU.prototype;g.trackClick=function(a){Mo(this.analytics,Aq.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};g.schedule=function(a){this.subscriptions.add(W.asyncScheduler.schedule(a))};g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};
fU.\u0275fac=function(a){return new (a||fU)(B(qH,2),B(YN),B(BK),B(NG))};
fU.\u0275cmp=u({type:fU,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(zg(bWb,5),zg(cWb,5),zg(dWb,5),zg(eWb,5),zg(nF,5),zg(yM,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.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",inputValidator:"inputValidator",teamId:"teamId"},outputs:{valuesChange:"valuesChange"},features:[mg([qH]),
Of,ed],ngContentSelectors:[".title-action",".value-action"],decls:23,vars:17,consts:[[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner",3,"matTooltip","matTooltipPosition"],[1,"bv2-editable-title"],["tabindex","0",4,"ngIf"],["cdkDropList","",1,"list-field-content",3,"cdkDropListDisabled","cdkDropListDropped"],[3,"isExpanded","iconName","hasCompactTitleBar","title",4,"ngIf"],[4,"ngIf"],[1,"bv2-field-user-action-footer"],["addLink",""],[3,"ngSwitch",4,
"ngIf"],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["matMenuContent",""],["textPopup",""],["datePopup",""],["tabindex","0"],[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",""],["default",""],["class","bv2-remove-icon bv2-remove-item keep-focus-ring",3,"disabled","matTooltip","click",4,"ngIf"],[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","list-field-user-container",4,"ngIf"],[3,"maxWidth","modelValue","disabled"],[1,"list-field-user-container"],[3,"user","email","teamId","enableSmallChip",4,"ngIf"],[3,"email",4,"ngIf"],[3,"user","email","teamId","enableSmallChip"],[3,"email"],[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&&(fg(fWb),E(0,"div",0)(1,"div",1)(2,"div",2),P(3,nFa,2,2,"label",3),gg(4),G(),E(5,"div",4),M("cdkDropListDropped",function(c){return b.onDrop(c)}),P(6,rFa,3,7,"collapsible-panel",5),P(7,uFa,4,4,"ng-container",6),E(8,"div",7,8),P(10,AFa,4,3,"ng-container",9),gg(11,1),G()()(),P(12,PFa,1,1,"ng-template",null,10,Hg),P(14,SFa,2,2,"ng-template",null,11,Hg),E(16,"mat-menu",null,12),P(18,UFa,1,2,"ng-template",13),G(),P(19,$Fa,13,6,"ng-template",null,14,Hg),P(21,
aGa,1,2,"ng-template",null,15,Hg),G());a&2&&(Zf("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),A(1),Zf("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),D("matTooltip",b.tooltip)("matTooltipPosition","left"),A(2),D("ngIf",b.title),A(2),Zf("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),D("cdkDropListDisabled",!b.isDefaultOrAllowedValues),A(1),D("ngIf",b.isCollapsible),A(1),D("ngIf",
!b.isCollapsible),A(3),D("ngIf",!b.readonly&&b.additionAllowed))},dependencies:[fy,gy,my,iy,jy,ky,UC,PT,hO,Sy,fh,Ky,Ly,bz,Ry,Py,pC,tF,WP,IT,fR,cU,dU,vM,uM,yM,oF,mF,nF,lF,yD,GT,VT,TT],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;}"]});
var iWb={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"},jWb=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}},gU=function(){};
gU.\u0275fac=function(a){return new (a||gU)};gU.\u0275mod=Yc({type:gU});gU.\u0275inj=Ic({imports:[vy,aD,QT,HO,fz,AF,uG,bR,ST,JT,gR,eU,UM,WM,pF,uF,HT,WT,WM,UT]});
var cGa=function(){return[]},hU=function(){this.disabled=this.readonly=!1;this.save=new sx},kWb=function(a){return a.issue.customFieldMap[a.field.customFieldId]};hU.prototype.getDisplayValue=function(){var a,b;return null!=(b=null==(a=kWb(this).displayValues)?void 0:a[0])?b:null};hU.prototype.getTooltip=function(){var a;return(null!=(a=this.field.description)?a:"")+" [ID: "+this.field.customFieldId+"]"};
var bGa=function(a){return(a=kWb(a).getValue())&&void 0===a.values?a:null},eGa=function(a){return(a=kWb(a).getValue())&&void 0!==a.values?a.values:null};hU.\u0275fac=function(a){return new (a||hU)};
hU.\u0275cmp=u({type:hU,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&zg(KT,5);if(a&2){var c;yg(c=Bg())&&(b.editField=c.first)}},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","valueChange",4,"ngIf"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride",
"enumChoices","listFieldDisabled","valuesChange",4,"ngIf"],[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","valueChange"],[3,"readonly","defaultLineCount","title","type","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled","valuesChange"]],template:function(a,b){a&1&&P(0,gGa,3,2,"ng-container",0);a&2&&D("ngIf",kWb(b))},dependencies:[gy,fU,KT],encapsulation:2});var iU=function(){};
iU.\u0275fac=function(a){return new (a||iU)};iU.\u0275mod=Yc({type:iU});iU.\u0275inj=Ic({imports:[vy,gU,LT]});
var jU=function(){this.mode="default";this.query="";this.selectComponentId=new sx;this.expandComponent=new sx;this.goBack=new sx};jU.prototype.ngOnInit=function(){};jU.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};jU.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};jU.\u0275fac=function(a){return new (a||jU)};
jU.\u0275cmp=u({type:jU,selectors:[["component-row"]],inputs:{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"],["svgIcon","folder"],[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&&(E(0,"div",0),I(1,1),P(2,hGa,2,0,"ng-container",2),P(3,iGa,3,0,"ng-container",
2),P(4,jGa,3,2,"ng-container",3),L(),E(5,"div",4)(6,"span",5),P(7,oGa,2,1,"ng-container",6),P(8,qGa,1,1,"ng-template",null,7,Hg),P(10,rGa,2,0,"span",8),G(),H(11,"b-access-level-indicator",9)(12,"b-tracker-chip-smart",10),G()());if(a&2){var c=O(9);A(1);D("ngSwitch",b.mode);A(1);D("ngSwitchCase","recent");A(1);D("ngSwitchCase","tree");A(4);D("ngIf","leaf"!==b.mode)("ngIfElse",c);A(3);D("ngIf",b.componentOption.archived);A(1);D("accessLevel",null==b.componentOption.accessLimit?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0);A(1);D("trackerId",b.componentOption.trackerId)("showHovercard",!1)}},dependencies:[fy,gy,iy,jy,ky,pC,yD,tF,bS,sR,mL,sL],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 kU=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 W.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(of(250));this.state$=new W.BehaviorSubject("default");this.listUpdated$=new W.Subject;this.componentsLoading=this.teamsLoading=!1;this.teamScope$=new W.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=
new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new W.BehaviorSubject([]);this.showAllTeams$=new W.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(rf());this.teamOptions$=new W.BehaviorSubject([]);this.filteredTeamOptions$=(0,W.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(q){q=n(q);var t=q.next().value;return q.next().value?t:t.slice(0,5)}));this.hasHiddenTeams$=(0,W.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(q){var t=
n(q);q=t.next().value;t=t.next().value;return 5<q.length&&!t}));this.newChildTeams$=new W.BehaviorSubject([]);this.teamsDisplayed$=(0,W.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(C(function(q){return q?[q]:[]}))).pipe(C(function(q){return q.map(function(t){return t.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(C(function(q){return q.filter(function(t){return!k.childTeamsMap.has(t)})}),hf(function(q){return 0<q.length}),Df(function(q){return k.teamsService.getChildTeams(q)}),
C(uGa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(C(function(q){return q.filter(function(t){return!k.componentCountMap.has(t)})}),hf(function(q){return 0<q.length}),Df(function(q){return IIb(k.teamsService,q)}));this.componentIdSelected$=new W.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
kU.prototype.init=function(a){var b=this;a=void 0===a?!1:a;lWb(this);(0,W.combineLatest)([this.debouncedSearchQuery$.pipe(Bf(a?1:0)),this.state$]).pipe(Ef(this.destroyed$)).subscribe(function(c){var d=n(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()&&mWb(b,c),nWb(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
nWb(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&oWb(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe(Gf(this.state$),Ef(this.destroyed$)).subscribe(function(c){c=n(c);var d=c.next().value;"component_scope"===c.next().value&&b.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Ef(this.destroyed$)).subscribe(function(c){c=n(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b.childTeamsMap.set(d,
e)}});this.unseenTeamComponentCountMap$.pipe(Ef(this.destroyed$)).subscribe(function(c){c=n(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b.componentCountMap.set(d,e)}})};kU.prototype.getTrackerId=function(){return this.currentTracker.getTrackerId()};kU.prototype.includeTeamData=function(){return this.config.includeTeamData&&!this.currentTracker.inTracker};
var lWb=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.filter(function(c){return a.filterTrackerComponents(c)}).map(Qp);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.includeTeamData()&&(a.teamsLoading=!0,aL(a.teamsService,"").pipe(Ef(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.getTeamSuggestionsList().map(sGa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
kU.prototype.filterTrackerComponents=function(a){return!this.currentTracker.inTracker||a.trackerId===this.getTrackerId()};kU.prototype.selectOption=function(a){"component"===a.type?GHa(this,a.id):"team"===a.type?OGa(this,a):console.warn("invalid option selected")};
var GHa=function(a,b){var c=pWb(a);Mo(a.analytics,Aq.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},pWb=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""};
kU.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var tHa=function(a,b){a.componentActions.get(b).then(function(c){a.componentScope=Qp(c);a.state$.next("component_scope")})},sHa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},OGa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||Sp(a,b.id)},Sp=function(a,b){a.teamsLoading=!0;aL(a.teamsService,b).pipe(Ef(a.destroyed$)).subscribe(function(c){c=c.getTeamSuggestionsList().map(sGa);
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})},qWb=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;Sp(a,b[b.length-2])}};kU.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
kU.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var jHa=function(a,b){b.expanded=!1;a.listUpdated$.next()},kHa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},Tp=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},mWb=function(a,b){1<b.length&&(a.teamsLoading=!0,aL(a.teamsService,b).pipe(Ef(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.getTeamSuggestionsList().map(sGa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},nWb=function(a,
b){if(1<b.length){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.includeArchived,a.currentTracker.inTracker?[a.getTrackerId()]:void 0).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=d.map(Qp));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},oWb=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=
d.map(Qp),a.listUpdated$.next())}).finally(function(){a.componentsLoading=!1})};
var rWb=0,lU=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+rWb;rWb+=1};lU.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};lU.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};lU.\u0275fac=function(a){return new (a||lU)(B(Xx),B(Rd))};
lU.\u0275dir=u({type:lU,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(dg("id",b.id),Zf("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});
var mU=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new sx};mU.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};mU.prototype.ngOnInit=function(){};mU.\u0275fac=function(a){return new (a||mU)};
mU.\u0275cmp=u({type:mU,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&&(E(0,"div",0),P(1,vGa,1,1,"img",1),E(2,"div",2),P(3,xGa,4,5,"div",3),P(4,FGa,2,1,"div",4),G()());a&2&&(Zf("no-component",b.hasNoComponent)("compact",b.compact),A(1),D("ngIf",!b.compact),A(2),D("ngIf",!b.compact),A(1),D("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[fy,gy,mL],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 sWb=new Md("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),tWb=new Md("mat-progress-bar-location",{providedIn:"root",factory:GGa});oi(function(a){this._elementRef=a},"primary");
var uWb=["primaryValueBar"],vWb=oi(function(a){this._elementRef=a},"primary"),wWb=0,nU=function(a,b,c,d,e,f){a=vWb.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 sx;a._animationEndSubscription=W.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+wWb++;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};X(nU,vWb);nU.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};nU.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
nU.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,W.fromEvent)(b,"transitionend").pipe(hf(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})}))})})};nU.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
ni.Object.defineProperties(nU.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,uh(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()}}});
nU.\u0275fac=function(a){return new (a||nU)(B(Rd),B(Mf),B(Ew,8),B(tWb,8),B(sWb,8),B(Xx))};
nU.\u0275cmp=u({type:nU,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&zg(uWb,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:4,hostBindings:function(a,b){a&2&&(Uf("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode),Zf("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",
mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Of],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&&(E(0,"div",0),qd(),E(1,"svg",1)(2,"defs")(3,"pattern",2),H(4,"circle",3),G()(),H(5,"rect",4),G(),rd(),H(6,"div",5)(7,"div",6,7)(9,"div",8),G());a&2&&(A(3),D("id",b.progressbarId),A(2),Uf("fill",b._rectangleFillValue),A(1),D("ngStyle",b._bufferTransform()),A(1),D("ngStyle",b._primaryTransform()))},dependencies:[ly],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 xWb=["container"],yWb=["inputBox"],zWb=["dropdownTemplate"],AWb=["dropdown"],TGa=function(a){return{mode:"recent",$implicit:a}},YGa=function(a){return[a]},XGa=function(a,b){return{team:a,level:0,order:b}},dHa=function(a){return{mode:"default",$implicit:a}},gHa=function(a){return[0,a]},nHa=function(){return[0]},qHa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},wHa=function(a){return{mode:"leaf",$implicit:a}},BHa=function(a,b,c){return{team:a,level:b,order:c}},BWb=[{originX:"start",
originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],oU=function(a,b,c,d,e,f,h,k,q,t,x){Z.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=t;this.cdr=x;this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new sx;this.shouldFocus=!1;this.touched=
new sx;this.selectedComponentChange=new sx;this.dropdownClosed=new sx;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();this.searchState=new kU(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.currentTracker);this.componentLoading=this.isDropdownOpen=!1};X(oU,Z);oU.\u0275dir=Z.\u0275dir;
oU.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;CWb(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,W.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(Ef(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
oU.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var CWb=function(a){if(a.selectedComponent){var b=Qp(a.selectedComponent);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},DWb=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=oU.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(CWb(this),this.checkAdminAccess&&this.selectedComponent&&EWb(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=OA(Mtb(new VA(this.listOptions)));this.searchState.listUpdated$.pipe(Ef(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(Ef(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(QHa);b=[].concat(r(c),r(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&&Tp(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),Mo(this.analytics,Aq.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var FWb=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};
oU.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),DWb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||UA(d);DWb(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),DWb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||TA(d);DWb(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?Tp(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(),kHa(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?jHa(this.searchState,this.keyManager.activeItem.data):qWb(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),sHa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(Tp(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var Rp=function(a){a.preventDefault();a.stopPropagation()},EWb=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;TJ(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=oU.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new rB({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 xz(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return uB(xB(wB(CB(this.overlay.position(),this.container),!1),!1),BWb)};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))};ni.Object.defineProperties(oU.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});
oU.\u0275fac=function(a){return new (a||oU)(B(DB),B(wg),B(oK),B(ZR),B($K),B(SJ),B(pI),B(BK),B(NG),B(LJ),B(Xx))};
oU.\u0275cmp=u({type:oU,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(zg(xWb,7),zg(yWb,7),zg(zWb,7),zg(AWb,5),zg(lU,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:[Of,ed],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,"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&&(E(0,"div",0,1)(2,"input",2,3),M("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()}),U(4,"async"),G(),P(5,HGa,2,0,"button",4),G(),P(6,LGa,4,2,"div",5),P(7,yHa,11,8,"ng-template",null,6,Hg),P(9,EHa,5,11,"ng-template",null,
7,Hg),P(11,PHa,3,2,"ng-template",null,8,Hg));if(a&2){var c=O(3);A(2);D("ngModel",V(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);Uf("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",FWb(b));A(3);D("ngIf",c.value);A(1);D("ngIf",b.checkAdminAccess)}},dependencies:[fy,gy,my,iy,jy,ky,fh,Ky,bz,Ry,pC,yD,WG,tF,nU,mU,jU,lU,ny],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 pU=function(){};pU.\u0275fac=function(a){return new (a||pU)};pU.\u0275mod=Yc({type:pU});pU.\u0275inj=Ic({imports:[vy,HB,HB]});
var qU=function(){};qU.\u0275fac=function(a){return new (a||qU)};qU.\u0275mod=Yc({type:qU});qU.\u0275inj=Ic({imports:[vy,fz,AF,uF,aH,uG,pU,GB,Cz,fS,FA,vL,DR]});
var rU=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new sx;this.filter=function(){return!0}};rU.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};rU.\u0275fac=function(a){return new (a||rU)};
rU.\u0275cmp=u({type:rU,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&&(E(0,"div",0)(1,"div",1),Q(2," First, select a component that contains the custom field. "),G(),E(3,"b-team-component-picker",2),M("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),G(),P(4,VHa,4,3,"div",3),G());a&2&&(A(3),D("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),A(1),D("ngIf",b.selectedComponent))},dependencies:[fy,gy,XC,VC,wR,rC,
oU],encapsulation:2});var sU=function(){};sU.\u0275fac=function(a){return new (a||sU)};sU.\u0275mod=Yc({type:sU});sU.\u0275inj=Ic({imports:[vy,xR,qU]});
var GWb=function(a){return{value:a}},tU=function(){this.isNonemptyJsonDateValue=Zqa};tU.prototype.toDate=function(a){return lm(a)};tU.\u0275fac=function(a){return new (a||tU)};
tU.\u0275cmp=u({type:tU,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&&(E(0,"span",0),P(1,WHa,1,0,"ng-container",1),G(),P(2,XHa,0,0,"ng-template",null,2,Hg),P(4,jIa,8,8,"ng-template",null,3,Hg));if(a&2){var c=O(5);A(1);D("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",og(2,GWb,b.customFieldValue))}},dependencies:[fy,gy,my,fO],encapsulation:2});var uU=function(){};uU.\u0275fac=function(a){return new (a||uU)};uU.\u0275mod=Yc({type:uU});uU.\u0275inj=Ic({imports:[vy,AO]});
var JWb=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 sQ;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";HWb(this,b);IWb(this,b)},HWb=function(a,b){var c=b[0],d=io[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},KWb=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||Ao(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},IWb=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=KWb(c);a.selectedVerifiersStatus=KWb(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])};
JWb.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;HJa(this)};JWb.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var wq=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},DJa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?LWb(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||LWb(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),LWb(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},LWb=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},HJa=function(a){var b=io.NEW,c=io.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!aEb.has(a.issueState)||(a.issueState=b)},MWb=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},SJa=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);MWb(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};
var NWb=function(a){this.uploadUrl_=a};NWb.prototype.getUploadUrl=function(){return this.uploadUrl_};
var OWb=function(){wp.call(this)};ev(OWb,wp);var vU=function(a){QD.call(this,a)};ev(vU,QD);var wU=function(a){QD.call(this,a)};ev(wU,QD);
var PWb=function(a,b){this.name_=a;this.inputElement_=b};PWb.prototype.getName=function(){return this.name_};
var QWb=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};
var xU=function(){wp.call(this);this.name_="closure_frame"+RWb++;this.iframesForDisposal_=[];SWb[this.name_]=this},yU;ev(xU,wp);var SWb={},RWb=0,TWb=function(a,b){var c=zp(a);QF(b,function(d,e){Array.isArray(d)||(d=[d]);ua(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=xU.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("Fd");this.lastUri_=a=new Ep(a);b=b?b.toUpperCase():"GET";c&&aG(a);yU||(yU=Hwb("FORM"),yU.acceptCharset="utf-8",c=yU.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(yU));this.form_=yU;"GET"==b&&TWb(this.form_,a.queryData_);d&&TWb(this.form_,d);spb(this.form_,Fh(a.toString()));this.form_.method=b;UWb(this);VWb(this)};
g.abort=function(a){if(this.active_){var b=zU(this);if(b)if(VD(b))b.removeAllListeners();else if(b=$D(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)bE(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");WWb(this)}};
g.disposeInternal=function(){this.active_&&this.abort();xU.superClass_.disposeInternal.call(this);this.iframe_&&XWb(this);VWb(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete SWb[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 Uxb(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return $xb(this.lastErrorCode_)};
var UWb=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=zp(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});hv&&7>Number(Jnb)&&spb(a.iframe_,Fh(hc(ip('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";kv?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");zp(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";
var c=qE(a.iframe_);if(document.baseURI){var d=bk(b);d=Ah('<head><base href="'+bk(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=bk(b),d=Ah('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(ck(d));xp(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=hE("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];Nwb(d[e],k,!1);k.join("")!=h&&(rE(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=hE("SELECT",a.form_);f=hE("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=hE("OPTION",e[h]),t=hE("OPTION",f[h]),x=0,y=q.length;x<y;x++)t[x].selected=q[x].selected;e=hE("INPUT",a.form_);f=hE("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(),jv&&Xt(a.testForFirefoxSilentError_,250,a)}catch(F){aE(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
xU.prototype.onIframeLoaded_=function(){aE(zU(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?qE(zU(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"),WWb(this))}catch(e){this.handleError_(1)}};
xU.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),WWb(this),this.errorHandled_=!0)};
var WWb=function(a){XWb(a);VWb(a);a.form_=null;a.dispatchEvent("ready")},XWb=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(Yt(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);jv?a.iframeDisposalTimer_=Xt(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
xU.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(Yt(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();oE(a)}};var VWb=function(a){a.form_&&a.form_==yU&&nE(a.form_)},zU=function(a){return a.iframe_?qE(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
xU.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?qE(zU(this)):null;a&&!tnb(a,"documentUri")?(aE(zU(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):Xt(this.testForFirefoxSilentError_,250,this)}};
var YWb=function(a,b,c,d,e){wp.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 Ep(a);ZF(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new xU;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new ar(this);PD(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};X(YWb,OWb);g=YWb.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Fd");var c=new Ep(this.url_||b.action);a.lastUri_=c;a.form_=b;spb(a.form_,c.toString());UWb(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 vU("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new vU("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new vU("l"))};
var aXb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=ZWb[a.name]):(this.code=a=a.code,this.name=$Wb(a));ca.call(this,wpb("%s %s",this.name,b))};ev(aXb,ca);
var $Wb=function(a){var b=Jba(ZWb,function(c){return a==c});if(void 0===b)throw Error("Gd`"+a);return b},AU={},ZWb=(AU.AbortError=3,AU.EncodingError=5,AU.InvalidModificationError=9,AU.InvalidStateError=7,AU.NotFoundError=1,AU.NotReadableError=4,AU.NoModificationAllowedError=6,AU.PathExistsError=12,AU.QuotaExceededError=10,AU.SecurityError=2,AU.SyntaxError=8,AU.TypeMismatchError=11,AU);
var bXb=function(a,b){QD.call(this,a.type,b);this.event_=a};ev(bXb,QD);
var cXb=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};
var lIa=new WeakMap,kIa=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")};
Up(function(){if(!ea.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 dXb=Up(function(){if(!ea.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===cXb(b,0,1)?!1:!0});
var eXb=function(){wp.call(this);this.reader_=new FileReader;this.reader_.onloadstart=bv(this.dispatchProgressEvent_,this);this.reader_.onprogress=bv(this.dispatchProgressEvent_,this);this.reader_.onload=bv(this.dispatchProgressEvent_,this);this.reader_.onabort=bv(this.dispatchProgressEvent_,this);this.reader_.onerror=bv(this.dispatchProgressEvent_,this);this.reader_.onloadend=bv(this.dispatchProgressEvent_,this)};ev(eXb,wp);g=eXb.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new aXb(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new aXb(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new bXb(a,this))};g.disposeInternal=function(){eXb.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 fXb=function(a){var b=new VQ;a.listen("loadend",cv(function(c,d){var e=d.reader_.result,f=d.getError();null==e||f?(XQ(c),YQ(c,!1,f)):c.callback(e);d.dispose()},b,a));return b};
var BU=function(){KE.call(this)};X(BU,KE);BU.prototype.createXhr=function(){var a=KE.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=bv(this.onProgress_,this));return a};BU.prototype.onProgress_=function(a){this.dispatchEvent(a)};
var gXb=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},iXb=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=Xt(function(){a.delayCallId_=null;b()},hXb(a),a);a.attempt_=c;return!0};gXb.prototype.reset=function(){this.delayCallId_&&Yt(this.delayCallId_);this.attempt_=-1};var hXb=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};
var nIa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];
var CU=function(a){wp.call(this);a=a||new QWb;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new gXb;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new ar(this);PD(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};ev(CU,OWb);g=CU.prototype;g.run=function(){DU(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=this.createXhrRequest(),a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.getUploadUrl(),"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new vU("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,jXb(this))};
var DU=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):iXb(a.retryIterator_,function(){return jXb(a)})||EU(a,"Transfer encountered too many consecutive failures.")},jXb=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.getUploadUrl(),c=a.blob_.size;if(dXb()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=cXb(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=a.createXhrRequest();
a.request_.withCredentials_=a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=bv(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new wU("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("Hd");
}},EU=function(a,b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new vU("l"))};g=CU.prototype;
g.start_=function(){this.request_=this.createXhrRequest();var a=cc(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=oIa(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 wU("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new wU("p"));kXb(b)?lXb(this,b):mXb(b)?(b=Vp(a.target.getAllResponseHeaders()),this.dispatchEvent(new vU("k")),a=Wp(b,"X-Goog-Upload-URL"),b=(b=Wp(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,void 0===a||isNaN(b)||0>=b?EU(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new NWb(a),this.dispatchEvent(new vU("n")),this.state_=
"Upload",this.retryIterator_.reset(),DU(this))):DU(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new vU("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return Pe(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new wU("p"));if(d.retryOnHttpClientErrorEnabled_?nXb(e)||404==e.getStatus():kXb(e))return d.bytesTransferred_=a,lXb(d,e),h.return();if(mXb(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return Re(h,oXb(d),4);case 4:f=h.yieldResult;case 3:if(f)return EU(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";DU(d);return h.return();case 2:if(b)return EU(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();DU(d);return h.return()}})};
g.query_=function(){this.request_=this.createXhrRequest();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_.getUploadUrl(),"POST","",a);this.lastCommandResponseCode_=null;this.dispatchEvent(new wU("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new wU("p"));kXb(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),lXb(this,b)):mXb(b)?(a=Vp(a.target.getAllResponseHeaders()),a=parseInt(Wp(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?EU(this,"Server did not respond with current offset."):a<this.offset_?EU(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?EU(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",DU(this))):DU(this)};
var lXb=function(a,b){a.responseCode_=b.getStatus();var c=Vp(b.getAllResponseHeaders());a.responseHeaders_=pIa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new vU("j"))},mXb=function(a){var b=a.getStatus();a=Vp(a.getAllResponseHeaders());a=Wp(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},nXb=function(a){a=Vp(a.getAllResponseHeaders());return"final"===Wp(a,"X-Goog-Upload-Status")},kXb=function(a){if(nXb(a))return!0;a=a.getStatus();return 400<=a&&500>
a},oXb=function(a){var b;return Pe(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);Qe(c,2);if(b=cXb(a.blob_,0,1)){var d=new eXb,e=fXb(d);d.readAsBinaryString(b);c=Re(c,e,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);Ue(c);return c.return(!0)})};CU.prototype.createXhrRequest=function(){return new BU};
var pXb=function(a,b,c,d,e,f){wp.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 Wi;this.boundary_="scotty-"+hw()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new ar(this);PD(this,this.eventHandler_)};X(pXb,OWb);g=pXb.prototype;
g.run=function(){var a=cc(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=oIa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=this.createXhrRequest();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 vU("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new vU("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 vU("l"))):(this.responseCode_=b,a=a.target,b=Vp(a.getAllResponseHeaders()),this.responseHeaders_=pIa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new vU("j")))};
g.createXhrRequest=function(){return new BU};
var qXb=function(){},rXb=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof PWb)return new YWb(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new pXb(a,"POST",b,c,d);var f=new CU(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 sXb=new Md("ScottyUploaderConfigFactory"),tXb=new Md("ScottyUploader",{factory:function(){return new qXb}}),FU=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new W.Subject;this.transferStatus=Mw(this.internalTransferStatus)};
FU.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=rXb(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,W.merge)((0,W.fromEvent)(a,"k"),(0,W.fromEvent)(a,"i"),(0,W.fromEvent)(a,"n"),(0,W.fromEvent)(a,"l"),(0,W.fromEvent)(a,"j"),(0,W.fromEvent)(a,"m")).pipe(Ef((0,W.fromEvent)(a,"j").pipe(qf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};FU.\u0275fac=function(a){return new (a||FU)(p(tXb),p(sXb))};FU.\u0275prov=Hc({token:FU,factory:FU.\u0275fac});
var uXb=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};uXb.prototype.getDirectory=function(a){return this.directoryMap_[a]};uXb.prototype.getName=function(){return this.name_};
var wXb=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;wp.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Zj(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=vXb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};X(wXb,wp);
var vXb=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");xp(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),qr(e,new nr(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};wXb.prototype.click=function(){this.overlay_.click()};
wXb.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(t){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(kv||iv)){b=new uXb("");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 uXb(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new xXb(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new xXb([],[],new PWb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=vXb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var yXb={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},xXb=function(a,b){QD.call(this,"u");this.files=a;this.directories=b};X(xXb,QD);
var GU=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new W.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new sx;this.maxFileSize=null;this.fileSizeRejected=new sx;this.fileSelected=new sx};
GU.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(Df(function(b){return(0,W.merge)((0,W.fromEvent)(b,"q"),(0,W.fromEvent)(b,"u"))}),Ef(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=n(b.files);for(var d=c.next();!d.done;d=c.next()){d=d.value.name;var e=d.lastIndexOf(".");if(!a.supportedFileExtensions.includes(-1!==e?d.substr(e+1).toLowerCase():"")){c=!1;break a}}}c=!0}if(c){a:{if(a.maxFileSize)for(c=n(b.files),d=c.next();!d.done;d=
c.next())if(d.value.size>a.maxFileSize){c=!1;break a}c=!0}c?a.fileSelected.emit(b):a.fileSizeRejected.emit(b)}else a.fileExtensionRejected.emit(b)})});this.getOverlay().subscribe(function(b){(0,W.fromEvent)(b,"s").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){(0,W.fromEvent)(b,"t").subscribe(function(){a.ngZone.run(function(){})})})};GU.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};
GU.\u0275fac=function(a){return new (a||GU)(B(Rd),B(Mf))};GU.\u0275dir=u({type:GU,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected"}});
var HU=function(a,b){GU.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};X(HU,GU);
HU.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,W.merge)((0,W.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,W.fromEvent)(a.elementRef.nativeElement,"focus")).pipe(vf(),Ef(a.destroyed),C(function(){a.fileSelectorOverlay=new wXb(a.elementRef.nativeElement,a.selectorType,zXb(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),Af(1))}));return this.overlay};
HU.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var zXb=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};HU.\u0275fac=function(a){return new (a||HU)(B(Rd),B(Mf))};HU.\u0275dir=u({type:HU,hostBindings:function(a,b){a&1&&M("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Of]});var IU=function(a,b,c){HU.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};X(IU,HU);
IU.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Ef(this.destroyed),hf(function(){return!a.disableAutoUpload})).subscribe(function(b){b=n(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)}})};ni.Object.defineProperties(IU.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=rh(a)}}});
IU.\u0275fac=function(a){return new (a||IU)(B(Rd),B(Mf),B(FU,8))};IU.\u0275dir=u({type:IU,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Of]});
var JU=function(a){this.snackBar=a;this.SelectorType=yXb;this.disabled=!1;this.onSelect=new sx};JU.\u0275fac=function(a){return new (a||JU)(B(rJ))};
JU.\u0275cmp=u({type:JU,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled"},outputs:{onSelect:"onSelect"},decls:3,vars:3,consts:[[1,"goog-inline-block","vertical-centered"],["mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled","fileSelected"],["svgIcon","attachment"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"button",1),M("fileSelected",function(c){if(c=c.files){c=n(c);for(var d=
c.next();!d.done;d=c.next())d=d.value,null!=d&&d.name&&Zya(d.name)?b.onSelect.emit(d):b.snackBar.open("Filename contains invalid characters!")}}),H(2,"mat-icon",2),G()());a&2&&(A(1),D("selectorType",b.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",b.disabled))},dependencies:[pC,yD,tF,IU],encapsulation:2});
var KU=function(a,b){rQ.call(this,a.size,a.name);var c=this;this.destroyed$=new W.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(Ef(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};X(KU,rQ);KU.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.")};
KU.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};KU.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};
var LU=function(a){this.activeSession=a};
LU.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=rb(c);return{url:ZF(Qzb().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,"X-Goog-Upload-File-Name":a.name},
withCredentials:!0}};LU.\u0275fac=function(a){return new (a||LU)(p(NG))};LU.\u0275prov=Hc({token:LU,factory:LU.\u0275fac,providedIn:"root"});var MU=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};MU.prototype.create=function(){return new FU(this.uploader,this.uploaderConfigFactory)};MU.\u0275fac=function(a){return new (a||MU)(p(tXb),p(LU))};MU.\u0275prov=Hc({token:MU,factory:MU.\u0275fac,providedIn:"root"});
var tIa=function(a){return{"attachment-error":a}},NU=function(a){this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new sx;this.uploadStates=iOb};NU.prototype.ngOnDestroy=function(){for(var a=n(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};NU.prototype.upload=function(a){var b=this.scottyUploaderFactory.create();b.upload(a);return new KU(a,b.transferStatus)};NU.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};
NU.\u0275fac=function(a){return new (a||NU)(B(MU))};
NU.\u0275cmp=u({type:NU,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel"},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,vIa,2,1,"div",0);a&2&&D("ngIf",0<b.uploads.length)},dependencies:[ey,fy,gy,yD,tF,qL],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 AXb=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 BXb=function(a){rQ.call(this,a.size,a.name);this.attachment=a};X(BXb,rQ);
var CXb=function(a,b){a.attachment.encryptedBlobId?(a.state=1,gOb(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=Wn(c)?Xn(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};
var OU=function(a){this.id_=a;this.opts={}};g=OU.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setOptions=function(a){this.opts=a;return this};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a};g.toArray=function(){var a=Zb(this.opts,function(c){return null!==c});a=$b(a)?null:a;a=[this.id_,this.label_,a];var b=haa(a,Yob);return a=a.slice(0,b+1)};
g.toString=function(){var a=this.toArray();return"("+Kb(a,function(b){return JSON.stringify(b)}).join(",")+")"};g.getId=function(){return this.id_};g.getLabel=function(){return this.label_};g.getOptions=function(){return cc(this.opts)};g.getQuery=function(){return this.opts.query};
var PU=function(a){OU.call(this,a||"all")};ev(PU,OU);var DXb=function(){var a=new PU("all");a.opts.ownedByMe=!0;a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=PU.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setStarred=function(a){this.opts.starred=a};g.setLabel=function(a){PU.superClass_.setLabel.call(this,a);return this};g.setQuery=function(a){PU.superClass_.setQuery.call(this,a);return this};
g.setParent=function(a){PU.superClass_.setParent.call(this,a)};g.setRestrictedDownloadErrorMessage=function(a){this.opts.rdem=a;return this};
var EXb=new Map;EXb.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");EXb.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");EXb.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var FXb=new Set;FXb.add("application/vnd.google-apps.kix");FXb.add("application/vnd.google-apps.ritz");FXb.add("application/vnd.google-apps.punch");
var PXb=function(a,b){switch(a[0].getId().getSourceId()){case 13:return GXb(a,b);case 3:return HXb(a,b);case 10:return IXb(a,b,"upload");case 12:return JXb(a,b);case 2:return KXb(a,b);case 5:return LXb(a,b);case 9:return MXb(a,b);case 6:return NXb(a,b);case 1:return vj(a[0],rob,26)?OXb(a,b):IXb(a,b,"webcam");default:return{}}},NXb=function(a,b){a=a.map(function(c){return{id:c.getId().getId(),serviceId:"youtube",name:c.getName(),description:c.getDescription(),type:QU(c),lastEditedUtc:Ub(c,Cj,16).toDate().getTime(),
iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:c.getUrl(),embedUrl:Pi(c,13),thumbnails:RU(Iv(c))}});return{action:b,docs:a,viewToken:SU("youtube","Youtube",{}),view:"youtube"}},KXb=function(a,b){var c=a.map(function(d){var e=void 0;oj(Ub(d,Gv,21),12)&&(e="success");return{id:d.getId().getId(),serviceId:"docs",mimeType:d.getMimeType(),name:d.getName(),type:QU(d),lastEditedUtc:Ub(d,Cj,12).toDate().getTime(),url:d.getUrl(),sizeBytes:cob(d),description:d.getDescription(),
iconUrl:d.getIconUrl(),thumbnails:RU(Iv(d)),isShared:Ub(d,Gv,21).getShared(),downloadUrl:Pi(Ub(d,Gv,21),10),embedUrl:Pi(d,13),copyable:oj(Ub(d,Gv,21),9),resourceKey:Pi(Ub(d,Gv,21),11),uploadState:e}});return{action:b,docs:c,viewToken:SU("all","",{}),view:"all",extraUserInputs:QXb(a)}},LXb=function(a,b){a=a.map(function(c){var d=Ub(Ub(c,yob,15),Cv,1);rq(c,10,Cv,d);return{id:c.getId().getId(),serviceId:"web",mimeType:c.getMimeType(),name:c.getName(),type:QU(c),url:c.getUrl(),description:c.getDescription(),
iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(c))}});return{action:b,docs:a,viewToken:SU("image-search","Search",{}),view:"image-search"}},MXb=function(a,b){a=a.map(function(c){return{serviceId:"url",name:Iv(c)[0].getUrl().split("/").pop(),type:QU(c),mimeType:c.getMimeType(),url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(c))}});return{action:b,docs:a,viewToken:SU("url",
"By URL",{}),view:"url"}},OXb=function(a,b){a=a.map(function(c){return{id:c.getId().getId(),serviceId:"picasa",name:c.getName(),type:QU(c),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(c))}});return{action:b,docs:a,viewToken:SU("webcam","",{}),view:"webcam"}},IXb=function(a,b,c){var d=new Set(a.map(function(e){return e.getType()}));d={allowedItemTypes:Array.from(d)};d=SU(c,"",d);return{action:b,docs:a.map(RXb),viewToken:d,
view:SXb(c,a),extraUserInputs:QXb(a)}},SXb=function(a,b){return b.some(function(c){var d;return 9===(null==(d=Ub(c,Ev,30))?void 0:d.getAgentId())})?a+"/gmailphotos":a},HXb=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"picasa",mimeType:e.getMimeType(),name:e.getName(),type:QU(e),lastEditedUtc:Ub(e,Cj,12).toDate().getTime(),url:e.getUrl(),sizeBytes:cob(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(e)),
mediaKey:e.getId().getId(),parentId:e.getParentId()}}),d=new Set(a.map(function(e){return e.getType()}));d={allowedItemTypes:Array.from(d)};return{action:b,docs:c,viewToken:SU("photos","",d),view:"photos",extraUserInputs:QXb(a)}},GXb=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:Iv(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(e),"etjpg")}}),
d={category:Ub(a[0],Dv,28).getCategory()};a=SU("et",Pi(Ub(a[0],Dv,28),2),d);return{action:b,docs:c,viewToken:a,view:"et"}},JXb=function(a,b){a=a.map(function(c){var d=Ki(Ub(c,tob,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"}},SU=function(a,b,c){return{0:a,1:b,2:c}},RU=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}})},QXb=function(a){return{isAttachment:a.some(function(b){return oj(b,31)})}},RXb=function(a){var b={id:a.getId().getId(),serviceId:TXb(a),mimeType:a.getMimeType(),name:a.getName(),type:QU(a),sizeBytes:cob(a),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RU(Iv(a)),
isNew:!0},c=Ub(a,Ev,30);if(c){b.dataUrl=Pi(c,1)||null;a:{var d=Ub(a,Ev,30);switch(d.getAgentId()){case 9:a=Hl(d,vob,2,xob);a={remoteRefs:a&&Pi(a,1)};break a;case 10:d=Hl(d,uob,4,xob);var e=Iv(a);a={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}a=null}b.uploadMetadata=a}(c=c&&Hl(c,wob,5,xob))&&(b.contentId=Pi(c,1));return b},TXb=function(a){var b;switch((null==
(b=Ub(a,Ev,30))?void 0:b.getAgentId())||0){case 1:return"picasa";case 2:case 3:case 4:case 8:return"photo";case 10:return"dragonflyphotos";case 11:return"mapspro"}return null},QU=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 UXb=function(){OU.call(this,"image-search")};X(UXb,OU);g=UXb.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){OU.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OU.prototype.setParent.call(this,a)};
var VXb=function(){OU.call(this,"maps")};X(VXb,OU);g=VXb.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setZoom=function(a){this.opts.zoom=a;return this};g.setLabel=function(a){OU.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OU.prototype.setParent.call(this,a)};
var WXb=function(){OU.call(this,"photos")};X(WXb,OU);g=WXb.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){OU.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OU.prototype.setParent.call(this,a)};g.removeDuplicates=function(){this.opts.rdv=!0;return this};
var TU=function(){OU.call(this,"url")};X(TU,OU);TU.prototype.setType=function(a){this.opts.type=a;return this};TU.prototype.setLabel=function(a){OU.prototype.setLabel.call(this,a);return this};TU.prototype.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};TU.prototype.setParent=function(a){OU.prototype.setParent.call(this,a)};
var UU=function(){OU.call(this,"video-search")};X(UU,OU);UU.prototype.setLabel=function(a){OU.prototype.setLabel.call(this,a);return this};UU.prototype.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};UU.prototype.setParent=function(a){OU.prototype.setParent.call(this,a)};
var VU=function(){OU.call(this,"web")};X(VU,OU);VU.prototype.setLabel=function(a){OU.prototype.setLabel.call(this,a);return this};VU.prototype.setQuery=function(a){OU.prototype.setQuery.call(this,a);return this};VU.prototype.setParent=function(a){OU.prototype.setParent.call(this,a)};
var WU=function(){this.root_=void 0;this.items_=[];this.opts={}},XXb=function(a){switch(a){case "image-search":return new UXb;case "maps":return new VXb;case "photos":return new WXb;case "url":return new TU;case "video-search":return new UU;case "web":return new VU}return new OU(a)};WU.prototype.addView=function(a){this.items_.push("string"===typeof a?XXb(a):a);return this};
var YXb=function(a){return"("+Kb(a.items_,function(b){return b.toString()}).join(",")+")"},ZXb=function(a){a=Zb(a.opts,function(b){return null!==b});return(a=$b(a)?null:a)?JSON.stringify(Fba(a,function(b){return b.toString()})):""};WU.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",YXb(this)],b=ZXb(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return YXb(this)};
var $Xb=function(a,b){b=void 0===b?[]:b;a.items_.forEach(function(c){c instanceof WU?$Xb(c,b):b.push(c)});return b};WU.prototype.getOptions=function(){return cc(this.opts)};
var aYb=function(a){this.obj_=a};g=aYb.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 bYb=function(a){this.obj_=a||{}};g=bYb.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 cYb=function(a){a.obj_.attributes=a.obj_.attributes||{};return new aYb(a.obj_.attributes)},pTb=function(a){return(a=a.obj_.timeout)?a:null};
var dYb=function(){bYb.apply(this,arguments)};X(dYb,bYb);
var eYb=hp(ip("https://apis.google.com/js/api.js")),iYb=function(a,b){var c=!1,d=fYb(a,b).then(function(f){c=!0;return f}),e=uxb(5E3).then(function(){return c?fYb(a,b):gYb(b).then(function(f){return hYb(f,a)})});return gxb([d,e])},fYb=function(a,b){return jYb(b).then(function(c){return hYb(c,a)})},hYb=function(a,b){var c=Zi(b,"gapi.")?b.slice(5):b;return a[c]?xE(a[c]):new wE(function(d,e){var f=Xt(function(){e(Error("Id"))},3E4);a.load(b,{callback:function(){Yt(f);d(a[c])},onerror:function(h){Yt(f);
e(h)}})})},jYb=function(a){return a.gapi&&a.gapi.load?xE(a.gapi):gYb(a)},gYb=function(a){return QBa(eYb,{document:a.document}).then(function(){return a.gapi})},kYb=function(){};kYb.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return iYb(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 lYb=function(){OD.call(this);this.gapiLoader_=new kYb;this.origin_=null;this.gapiPickerIframeResolver_=ixb();this.gapiIframesResolver_=ixb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};X(lYb,OD);
var mYb=function(a,b){var c=sp("gapi.iframes",b);return c?(a=Date.now(),xE({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},nYb=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;mYb(a,mE(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var t=k.resolve,x=h;x=void 0===x?!1:x;var y={};y["host-message-handler"]=c;a.hostMessageHandlerInternal_=y;var F=bG(d);F=bG(F);F=TF(SF(RF(new Ep,F.scheme_),F.getDomain()),
F.port_).toString();a.origin_=F;F=(new dYb).setUrl(d);F.obj_.where=b;F.obj_.allowPost=x;F.obj_.messageHandlers=y;x=sp("makeWhiteListIframesFilter",q)([a.origin_]);F.obj_.messageHandlersFilter=x;null!=e&&F.setId(e);null!=f&&(F.obj_.rpctoken=f);cYb(F).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");cYb(F).value().allow="camera";q=q.getContext().openChild(F.value());t.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
oYb=function(a,b){return fxb([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=n(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,sp("makeWhiteListIframesFilter",c)([a.origin_])):bxb(Error("Jd"))})};lYb.prototype.disposeInternal=function(){pYb(this);OD.prototype.disposeInternal.call(this)};var pYb=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};
var qYb=function(){this.nextId_=0};
var rYb=new Map([["birthday",14],["children",1],["dinner",2],["featured",3],["holiday",4],["nightlife",5],["other",6],["party",7],["school",8],["seasonal",9],["sport",10],["stationery",11],["travel",12],["wedding",13]]),sYb=new Set("all docs-images docs-images-and-videos docs-videos documents drawings folders forms pdfs presentations scripts sites spreadsheets tables".split(" ")),tYb=new Set("bfe gmail-to gm-i gm-c og hangouts-profile-picture testing youtube-video-importer ritz punch freebird-themes freebird atariImage homeroom-doc-select homeroom-doc-attach file-upload trix-import trix-copy-sheet trix-import-named-functions trix-import-theme yt-addtoplaylist MapsPro punch-insert-video punch-insert-audio punch-insert-chart punch-import-theme punch-import-slides".split(" ")),
uYb={"application/vnd.google-apps.kix":"application/vnd.google-apps.document","application/vnd.google-apps.freebird":"application/vnd.google-apps.form","application/vnd.google-apps.punch":"application/vnd.google-apps.presentation","application/vnd.google-apps.ritz":"application/vnd.google-apps.spreadsheet"},xYb=function(a,b,c,d){var e=new Rv;e=Dl(e,23,20);a=Hb(e,8,a);e=new Aob;var f=e.setOrigin,h=window.location.origin;h||(h=SF(RF(new Ep,window.location.protocol),window.location.host).toString());
e=f.call(e,h);e=Dl(e,3,2);a=Vb(a,20,e);for(e=0;e<d.length;e++){h=d[e];f=h[0];var k=h[1];switch(f){case "cropphoto":h=(new Qv).setId(2);var q=new Dob;k=n(Object.entries(k||{}));for(var t=k.next();!t.done;t=k.next()){t=n(t.value);var x=t.next().value;t.next();switch(x){case "ctta":break;default:throw Error("Kd`"+x+"`"+f);}}Dm(h,3,Eob,q);a.addPostProcessor(h);break;default:throw Error("Ld`"+f);}}e=new Nv;d=new Fob;b=vYb(b,e,d,a);if(!b.length)throw Error("Md");wYb(c,e,b,a,d);c=Array.from(new Set(Li(e,
1)));c=Bb(e,1,c);e=Array.from(new Set(Ki(e,2)));c=Xl(c,2,e);Vb(a,2,c);Vb(a,3,d);return(new Vv).setConfig(a).setSourceList(b)},zYb=function(a){var b=dyb(a.toString())+a.getPath(),c=$F(a,"pp");c=c?JSON.parse(c):[];var d=new Map;a.queryData_.forEach(function(e,f){d.set(f,e)});a=yYb($F(a,"nav")||"");return xYb(b,a,d,c)},AYb=function(a,b,c){if(!$F(a,"v2")){ZF(a,"amc","true");try{var d=c();if(tYb.has(b)){var e=d.getConfig().getBaseUrl();fv(e,"/")||(e+="/");var f=bG(e);f.setPath(f.getPath()+"home");ZF(f,
"req",d.serialize());ZF(a,"v2",f.toString())}}catch(h){ZF(a,"v1fb","true")}}},BYb=function(a){var b=a.split("x");a=Number(b[0]);b=Number(b[1]);return isNaN(a)||isNaN(b)?null:(new Lv).setWidth(a).setHeight(b)},DYb=function(a,b){switch(a.action){case "select-contacts":a=CYb(a.contacts);break;case "visibility":a=a.visible;a=(new Uv).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?oYb(b,a):xE()},CYb=function(a){if(!a||0==a.length)return null;var b=
new Uv;b.setCommand(11);var c=new qYb;a.forEach(function(d){if(d.email){var e=(new Hv).setName(d.name?d.name:d.email);var f=new tob;d=Gb(f,1,d.email);e=Vb(e,27,d).setId((new Bv).setId(":"+(c.nextId_++).toString(36)).setSourceId(12))}else e=null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a},vYb=function(a,b,c,d){var e=new Map,f="",h=new Set;$Xb(a).forEach(function(k){var q=new Yp,t=k.getOptions();if(EYb(k)){q=k.getId();switch(q){case "all":break;case "docs-images":Ov(b,1);Ov(b,
6);break;case "docs-images-and-videos":Ov(b,2);Ov(b,1);Ov(b,6);break;case "docs-videos":Ov(b,2);Ov(b,6);break;case "documents":Ov(b,3);Ov(b,6);break;case "drawings":Ov(b,12);Ov(b,6);break;case "folders":Ov(b,6);break;case "forms":Ov(b,7);Ov(b,6);break;case "pdfs":Ov(b,9);Ov(b,6);break;case "presentations":Ov(b,5);Ov(b,6);break;case "scripts":Ov(b,10);Ov(b,6);break;case "sites":Ov(b,8);Ov(b,6);break;case "spreadsheets":Ov(b,4);Ov(b,6);break;case "tables":Ov(b,11);Ov(b,6);break;default:throw Error("Ud`"+
q);}q=FYb(t,k.getLabel());GYb(t,b,c,d,q);e.set(q.serialize(),q)}else switch(k.getId()){case "contacts":q.setSourceId(12);if(0!=Object.keys(t||{}).length)throw Error("Nd");e.set(q.serialize(),q);break;case "photos":HYb(t,e,b);break;case "photo-albums":q=AIa();Ov(b,14);Ov(b,1);e.set(q.serialize(),q);break;case "youtube":q=DIa(3);Ov(b,2);e.set(q.serialize(),q);h.add(q.serialize());break;case "video-search":q=DIa();Ov(b,2);e.set(q.serialize(),q);h.add(q.serialize());f=q.serialize();break;case "upload":if("docs"==
t.query){var x=(q=t.parent)?[q]:[],y=[];y=void 0===y?[]:y;x=void 0===x?[]:x;q=new Yp;t=q.setSourceId(2).setName("Upload");k=new Zp;y=(new Nob).setFileExtensionsList(y);x=Xl(y,1,x);k=Vb(k,15,x);Vb(t,3,k)}else q.setSourceId(10),q.setUploadSourceOptions(IYb(t,b));e.set(q.serialize(),q);break;case "url":"video"===t.type?(q=DIa(),Ov(b,2),e.set(q.serialize(),q),h.add(q.serialize()),f=q.serialize()):(q.setSourceId(9),k.getLabel()&&q.setName(k.getLabel()),Ov(b,1),e.set(q.serialize(),q));break;case "webcam":k=
q.setSourceId(1);x=new Lob;t=Dl(x,1,1).setUploadSourceOptions(IYb(t,b));Vb(k,16,t);Ov(b,1);e.set(q.serialize(),q);break;case "image-search":q.setSourceId(5);Ov(b,1);e.set(q.serialize(),q);break;case "et":q.setSourceId(13);k.getLabel()&&q.setName(k.getLabel());t=new Tv;k=n(Object.entries(k.getOptions()||{}));for(x=k.next();!x.done;x=k.next())switch(y=n(x.value),x=y.next().value,y=y.next().value,x){case "category":if(rYb.has(y))t.setCategory(rYb.get(y));else throw Error("Od`"+y);break;default:throw Error("Pd`"+
x);}Ov(b,1);Vb(q,13,t);e.set(q.serialize(),q);break;case "recently-picked":JYb(e,$Xb(a));break;case "maps-pro":q=k.getLabel();k=(new Yp).setSourceId(2);switch(t.type){case "all":t=$p(aq(new Zp,1),(new bq).setType(9).setDirection(2));Vb(k,3,t);break;case "owned":t=$p(aq(new Zp,2),(new bq).setType(9).setDirection(2));Vb(k,3,t);break;case "shared":k=xIa();break;case "visited":k=cq();break;case "starred":k=yIa();break;default:throw Error("Wd`"+t.type);}q&&k.setName(q);q=k;Gb(b,2,"application/vnd.google-apps.map");
e.set(q.serialize(),q);break;case null:break;default:throw Error("Qd`"+k.getId());}});1<h.size&&f&&e.delete(f);return Array.from(e.values())},yYb=function(a){var b=new WU;a=/^\((.*)\)$/.exec(a);if(!a)return b;a=a[1].match(/\([^\(\)]+\)/g);if(!a)return b;a=n(a);for(var c=a.next();!c.done;c=a.next())(c=/^\((".*)\)$/.exec(c.value))?(c=JSON.parse("["+c[1]+"]"),c=(new OU(c[0])).setLabel(c[1]).setOptions(c[2]||{})):c=null,c&&b.addView(c);return b},wYb=function(a,b,c,d,e){a.forEach(function(f,h){switch(h){case "hostId":Hb(d,
24,f);break;case "origin":Hb(d,27,f);break;case "title":d.setTitle(f);break;case "hl":d.setLocale(f);break;case "multiselectEnabled":"true"==f&&(Dl(e,1,1),Vb(d,3,e));break;case "groupId":h=new Jv;f=Hb(h,2,f);Vb(d,29,f);break;case "authuser":f=Number(f);if(isNaN(f))throw Error("Rd");d.setAuthUser((new Kv).setAuthUser(f));break;case "maxItems":f=Number(f);isNaN(f)||Fb(d,5,f,0);break;case "maxSizeBytesPerItem":f=Number(f);isNaN(f)||b.setMaxSizeBytes(f);break;case "maxSizeBytes":f=Number(f);isNaN(f)||
Fb(d,38,f,0);break;case "maxMessageSizeBytes":f=Number(f);isNaN(f)||(h=Ub(d,Pv,22)||new Pv,Hob(d,Fb(h,4,Math.ceil(f/1024/1024),0)));break;case "selectableMimeTypes":Xl(b,2,f.split(","));Ov(b,6);break;case "profilePhoto":d.setTitle("Select Profile Photo");f=d.addPostProcessor;h=(new Qv).setId(2);var k=new Dob;k=Qo(k,2,!0);h=Dm(h,3,Eob,k);f.call(d,h);d.addPostProcessor((new Qv).setId(1));break;case "gmailDelegatorId":f=(new Jv).setGmailDelegatorId(f);Vb(d,29,f);break;case "minSize":(f=BYb(f))&&d.setMinSize(f);
break;case "maxSize":(f=BYb(f))&&d.setMaxSize(f);break;case "view":f=/\("([^"]*)",.*\)/.exec(f);"upload"==(null!=f&&1<f.length?f[1]:"")?d.setInitialView(1):d.setInitialView(0);break;case "actionPaneText":f=(Ub(d,Mv,37)||new Mv).setMessage(f);Vb(d,37,f);break;case "learnMore":if(k=f.match(/^([a-z]+)\/\?p=([a-z_]+)$/)){f=Ub(d,Mv,37)||new Mv;h=f.setLearnMoreLink;var q=new Bob;q=Hb(q,1,k[1]);k=Hb(q,2,k[2]);h.call(f,k)}break;case "mineOnly":f=n(c);for(h=f.next();!h.done;h=f.next())switch(h=h.value,h.getSourceId()){case 2:aq(Ub(h,
Zp,3),2)}break;case "showAttach":Qo(d,34,!0);break;case "selectButtonLabel":d.setSelectButtonLabel(f);break;case "srum":break;case "ftd":f=n(c);for(h=f.next();!h.done;h=f.next())h=h.value,2===h.getSourceId()&&Qo(Ub(h,Zp,3),20,!0);break;case "pp":case "dff":case "relayUrl":case "parent":case "nav":case "protocol":case "actions":case "thumbs":case "tt":case "cropMode":case "grugl":case "dfc":case "noItemsView":case "navHidden":case "odv":case "newDriveView":case "horizNav":case "urlInputVisible":case "amc":break;
case "shadeDialog":break;default:throw Error("Sd`"+h);}})},IYb=function(a,b){var c=new Sv;a=n(Object.entries(a||{}));for(var d=a.next();!d.done;d=a.next()){var e=n(d.value);d=e.next().value;e=e.next().value;switch(d){case "query":switch(e){case "profile":Dl(c,4,2);Ov(b,1);break;case "photo":Dl(c,4,1);Ov(b,1);break;case "forms":Dl(c,4,6);Ov(b,1);break;case "spreadsheets":Dl(c,4,7);Ov(b,1);break;case "presentation":Dl(c,4,8);Ov(b,1);break;case "gmailphotos":Dl(c,4,13);Ov(b,1);break;case "gmb-single-collection-photo":case "gmb-multiple-collection-photos":Dl(c,
4,14);Ov(b,1);break;case "gmb-videos":Dl(c,4,14);Ov(b,2);rj(c,6).set("media_type","VIDEO");break;case "gmb-photos-and-videos":Dl(c,4,14);Ov(Ov(b,1),2);rj(c,6).set("media_type","VIDEO");break;case "mapspro":case "mapspro-image":Dl(c,4,15);break;default:throw Error("Td`"+e);}break;case "data":d=n(Object.entries(e||{}));for(e=d.next();!e.done;e=d.next()){var f=n(e.value);e=f.next().value;f=f.next().value;rj(c,2).set(e,f)}break;case "sdurl":Qo(c,5,!0);break;case "fileExts":(d=e&&e)&&c.setFileExtensionsList(d.split(","))}}return c},
FYb=function(a,b){if(15==a.sortKey)return cq();if(a.starred)return yIa();if(a.td||a.dr)return b=new Yp,a=new Zp,Qo(a,11,!0),Vb(b,3,a),b.setSourceId(2),b.setName("Shared drives"),b;if(a.ownedByMe)return b=new Yp,a=new Zp,a.setParentId("root"),$p(a,wIa()),aq(a,1),Vb(b,3,a),b.setSourceId(2),b.setName("My Drive"),b;if(!1===a.ownedByMe)return xIa();a=cq();b&&a.setName(b);return a},GYb=function(a,b,c,d,e){a=n(Object.entries(a));for(var f=a.next();!f.done;f=a.next()){f=n(f.value);var h=f.next().value;f=
f.next().value;switch(h){case "mimeTypes":if(f=f&&f)f.split(",").forEach(function(k){Gb(b,2,uYb[k]||k)}),Ov(b,6);break;case "rdem":h=Ub(d,Pv,22)||new Pv;Hob(d,h.setRestrictedDownloadErrorMessage(f));break;case "drdis":h=Ub(Ub(e,Zp,3),Pob,19)||new Pob;Qob(Ub(e,Zp,3),Qo(h,1,f));break;case "selectFolder":Qo(c,2,f)}}},HYb=function(a,b,c){var d=new dq;if(Object.keys(a).length){var e=a.allowedItemTypes||[];e.includes("photo")&&(d.addSource(zIa()),Ov(c,1));e.includes("album")&&(d.addSource(AIa()),Ov(c,14));
if("videos-uploaded"==a.type||"videos-camerasync"==a.type)d.addSource(CIa()),Ov(c,2);if(a.username)throw Error("Vd");}else d=BIa(),Ov(c,1),Ov(c,14);d.getSourceList().forEach(function(f){b.set(f.serialize(),f)})},EYb=function(a){a=a.getId();return null!=a&&sYb.has(a)},JYb=function(a,b){b=b.filter(EYb);if(b.length){var c=cq();b.every(function(d){return d.getOptions().ownedByMe})&&aq(Ub(c,Zp,3),2);a.set(c.serialize(),c)}};
var KYb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new WU};g=KYb.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 LYb=function(a){KYb.call(this,a)};ev(LYb,KYb);
var XU=function(a){wp.call(this);this.dom_=a||zp();this.rightToLeft_=MYb;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};ev(XU,wp);XU.prototype.idGenerator_=ir.getInstance();var MYb=!1;g=XU.prototype;g.getId=function(){return this.id_||(this.id_=Zq(this.idGenerator_))};
g.setId=function(a){if(this.parent_&&this.parent_.childIndex_){ac(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 ar(this));return this.googUiComponentHandler_};
g.setParent=function(a){if(this==a)throw Error("Xd");if(a&&this.parent_&&this.id_&&ZKb(this.parent_,this.id_)&&this.parent_!=a)throw Error("Xd");this.parent_=a;XU.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Yd");XU.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("Zd");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;NYb(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
g.exitDocument=function(){NYb(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_);NYb(this,function(a){a.dispose()});this.element_&&oE(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;XU.superClass_.disposeInternal.call(this)};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("Zd");if(0>a||a>(this.children_?this.children_.length:0))throw Error("$d");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;Ea(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);jaa(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_=zT(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};g.hasChildren=function(){return!!this.children_&&0!=this.children_.length};var ZKb=function(a,b){return a.childIndex_&&b?bc(a.childIndex_,b)||null:null},NYb=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
XU.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=ZKb(this,c);c&&a&&(ac(this.childIndex_,c),Ea(this.children_,a),b&&(a.exitDocument(),a.element_&&oE(a.element_)),a.setParent(null))}if(!a)throw Error("ae");return a};XU.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};
ev(EIa,Xp);
var OYb=function(a){Xp.call(this,"visibility");this.visible=a};ev(OYb,Xp);
var GIa=hp(ip("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),FIa=hp(ip("//apis.google.com/js/rpc.js")),gq=null;
var YU=function(a){wp.call(this);this.element_=a;a=hv?"focusout":"blur";this.listenKeyIn_=xp(this.element_,hv?"focusin":"focus",this,!hv);this.listenKeyOut_=xp(this.element_,a,this,!hv)};ev(YU,wp);YU.prototype.handleEvent=function(a){var b=new UD(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};YU.prototype.disposeInternal=function(){YU.superClass_.disposeInternal.call(this);bE(this.listenKeyIn_);bE(this.listenKeyOut_);delete this.element_};
var ZU=function(a,b,c){wp.call(this);this.target=a;this.handle=b||a;this.limits=c||new uT(NaN,NaN,NaN,NaN);this.document_=fE(a);this.eventHandler_=new ar(this);PD(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;xp(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=PYb};ev(ZU,wp);
var PYb=ea.document&&ea.document.documentElement&&!!ea.document.documentElement.setCapture&&!!ea.document.releaseCapture;g=ZU.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){ZU.superClass_.disposeInternal.call(this);aE(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||hr&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new $U("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(mE(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=lE(zp(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new $U("end",this,a.clientX,a.clientY,a,QYb(this,this.deltaX),RYb(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 $U("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=SYb(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new $U("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(TYb(this,a,b,c),a.preventDefault())};var SYb=function(a,b,c){var d=lE(zp(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 nr(QYb(a,a.deltaX),RYb(a,a.deltaY))};ZU.prototype.onScroll_=function(a){var b=SYb(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;TYb(this,a,b.x,b.y)};
var TYb=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new $U("drag",a,b.clientX,b.clientY,b,c,d))},QYb=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))},RYb=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))};ZU.prototype.isDragging=function(){return this.dragging_};
var $U=function(a,b,c,d,e,f,h){QD.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};ev($U,QD);
var aV=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=aV.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 aV){a=n(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=n(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=n(Object.entries(a)),b=a.next();!b.done;b=a.next())c=n(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 aV(this)};
(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ea.requestAnimationFrame;++c)ea.requestAnimationFrame=ea[b+"RequestAnimationFrame"],ea.cancelAnimationFrame=ea[b+"CancelAnimationFrame"]||ea[b+"CancelRequestAnimationFrame"];if(!ea.requestAnimationFrame){var d=0;ea.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return ea.setTimeout(function(){e(f+h)},h)};ea.cancelAnimationFrame||(ea.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var UYb=[[],[]],VYb=0,WYb=!1,XYb=0,ZYb=function(a,b){var c=XYb++,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,UYb[VYb].push(d));WYb||(WYb=!0,window.requestAnimationFrame(YYb))}},YYb=
function(){WYb=!1;var a=UYb[VYb],b=a.length;VYb=(VYb+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 $Yb=hv?hp(ip('javascript:""')):hp(ip("about:blank"));Fi($Yb);var aZb=hv?hp(ip('javascript:""')):hp(ip("javascript:undefined"));Fi(aZb);
var bZb=function(a,b){this.element_=a;this.dom_=b};
var bV=function(a,b){XU.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=ZYb({mutate:this.resizeBackground_},this)};ev(bV,XU);g=bV.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(){bV.superClass_.createDom.call(this);var a=this.getElement();sT(a,bj(this.getCssClass()).split(" "));a.tabIndex=0;yT(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=Fi($Yb).toString(),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",yT(this.bgIframeEl_,!1),DUb(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+
"-bg"),yT(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),yT(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);bV.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new YU(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);cZb(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);yi(this.focusHandler_);bV.superClass_.exitDocument.call(this);oE(this.bgIframeEl_);oE(this.bgEl_);oE(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_&&cZb(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.getDomHelper().document_.activeElement}catch(e){}this.resizeBackground_();this.reposition();this.getHandler().listen(this.getDomHelper().getWindow(),
"resize",this.resizeBackground_).listen(this.getDomHelper().getWindow(),"orientationchange",this.resizeBackgroundTask_);dZb(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)YD(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_)YD(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 cZb=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new bZb(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_||NDb(d,"hidden")||(gI(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}};
bV.prototype.setTransition=function(a){this.popupShowTransition_=a;this.bgHideTransition_=this.bgShowTransition_=this.popupHideTransition_=void 0};var dZb=function(a,b){a.bgIframeEl_&&yT(a.bgIframeEl_,b);a.bgEl_&&yT(a.bgEl_,b);yT(a.getElement(),b);yT(a.tabCatcherElement_,b)};g=bV.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){dZb(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&yT(this.bgIframeEl_,!1);this.bgEl_&&yT(this.bgEl_,!1);var a=this.getDomHelper().document_,b=jE(mE(a)||window),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_&&(yT(this.bgIframeEl_,!0),CUb(this.bgIframeEl_,c,a));this.bgEl_&&(yT(this.bgEl_,!0),CUb(this.bgEl_,c,a))};
g.reposition=function(){var a=this.getDomHelper().document_,b=mE(a)||window;if("fixed"==hq(this.getElement(),"position"))var c=a=0;else c=lE(this.getDomHelper().document_),a=c.x,c=c.y;var d=pr(this.getElement());b=jE(b);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);qr(this.getElement(),a,c);qr(this.tabCatcherElement_,a,c)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Xt(this.focusElement_,0,this)};
g.focusElement_=function(){try{hv&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};g.disposeInternal=function(){yi(this.popupShowTransition_);this.popupShowTransition_=null;yi(this.popupHideTransition_);this.popupHideTransition_=null;yi(this.bgShowTransition_);this.bgShowTransition_=null;yi(this.bgHideTransition_);this.bgHideTransition_=null;bV.superClass_.disposeInternal.call(this)};
var eV=function(a,b,c){bV.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=cV(cV(new dV,eZb,!0),fZb,!1,!0)};ev(eV,bV);g=eV.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_&&rE(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var gZb=function(a){a.getElement()||a.render();return a.getElement()};eV.prototype.getBackgroundElement=function(){this.getElement()||this.render();return eV.superClass_.getBackgroundElement.call(this)};eV.prototype.handleDrag=function(){};
var hZb=function(a,b){var c=bj(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?sT(a.titleEl_,c):tUb(a.titleEl_,c));b&&!a.dragger_?(b=new ZU(a.getElement(),a.titleEl_),a.dragger_=b,sT(a.titleEl_,c),xp(a.dragger_,"start",a.setDraggerLimits_,!1,a),xp(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=eV.prototype;
g.createDom=function(){eV.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"));Jwb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));fI(this.titleTextEl_,"heading");fI(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;gI(this.titleCloseEl_,"label","Close");fI(a,"dialog");gI(a,"labelledby",this.titleTextId_||"");yT(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());yT(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&DUb(a,
this.backgroundElementOpacity_)};
g.enterDocument=function(){eV.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_);hZb(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();fI(a,"dialog");""!==this.titleTextEl_.id&&gI(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()&&cZb(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);hZb(this,!1);eV.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),eV.superClass_.setVisible.call(this,a))};g.onShow=function(){eV.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){eV.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=jE(mE(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=pr(this.getElement());"fixed"==hq(this.getElement(),"position")?this.dragger_.limits=new uT(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new uT(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){iZb(this)};var iZb=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new fV(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},jZb=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&yT(a.titleCloseEl_,a.hasTitleCloseButton_)};eV.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};eV.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;eV.superClass_.disposeInternal.call(this)};
var kZb=function(a){a.buttons_=null;if(a.buttonEl_){if(a.buttons_){var b=a.buttons_;b.element_=a.buttonEl_;b.render()}else Ap(a.buttonEl_,Bu);yT(a.buttonEl_,!!a.buttons_)}};eV.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 fV(a,b))&&this.setVisible(!1)}};
eV.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 fV(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(x){}Xt(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)iZb(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=hE("BUTTON",d.element_);for(var q=0,t;t=k[q];q++)if(t.name==h||t.id==h){k=t;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 fV(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||iZb(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var fV=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};ev(fV,QD);var dV=function(a){aV.call(this);this.dom_=a||zp();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};ev(dV,aV);dV.prototype.clear=function(){aV.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};dV.prototype.set=function(a,b,c,d){aV.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var cV=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=dV.prototype;g.render=function(){if(this.element_){Ap(this.element_,Bu);var a=zp(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 eZb={key:"ok",caption:"OK"},fZb={key:"cancel",caption:"Cancel"},lZb={key:"yes",caption:"Yes"},mZb={key:"no",caption:"No"},nZb={key:"save",caption:"Save"},oZb={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(cV(new dV,eZb,!0,!0),cV(cV(new dV,eZb,!0),fZb,!1,!0),cV(cV(new dV,lZb,!0),mZb,!1,!0),cV(cV(cV(new dV,lZb),mZb,!0),fZb,!1,!0),cV(cV(cV(new dV,oZb),nZb),fZb,!0,!0));
var pZb=function(a,b,c){eV.call(this,a,b,c)};ev(pZb,eV);
var gV=function(a,b){wp.call(this);this.element_=a;a=pE(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&zT(a);this.listenKey_=xp(this.element_,jv?"DOMMouseScroll":"mousewheel",this,b)};ev(gV,wp);
gV.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=qZb(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=qZb(-d.wheelDeltaX),c=qZb(-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 rZb(a,d,b,c);this.dispatchEvent(b)};
var qZb=function(a){return kv&&(hr||xnb)&&0!=a%40?a:a/40};gV.prototype.disposeInternal=function(){gV.superClass_.disposeInternal.call(this);bE(this.listenKey_);this.listenKey_=null};var rZb=function(a,b,c,d){UD.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};ev(rZb,UD);
var sZb;
var hV=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;eV.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);lyb(a,"protocol");this.iframeManager_=new lYb;this.targetId_=hw();this.rpcToken_=hw();this.useGapi_=!1;var q=bG(a);(a=$F(q,"hostId"))&&!k&&AYb(q,a,function(){return zYb(q)});this.setUrl(q.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;this.autoSizeDialog_=tZb(q.toString(),d,e);this.gadgetsDomHelper_=h||this.getDomHelper();b&&IIa(this.gadgetsDomHelper_,"true"==
$F(bG(this.url_),"grugl"));uZb(this,q.toString());this.escapeToCancel_=!1;kZb(this)};ev(hV,pZb);g=hV.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){hV.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new gV(a);PD(b,c);b.listen(c,"mousewheel",bv(LIa,void 0,a)).listen(a,"scroll",bv(LIa,void 0,a))};
g.render=function(a){var b=this;hV.superClass_.render.call(this,a);this.useGapi_?mYb(this.iframeManager_,window).then(function(){return vZb(b)}).then(null,function(c){return void b.handleError_(c)}):wZb(this)};
var vZb=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);yT(b,!1);a.getContentElement().appendChild(b);return nYb(a.iframeManager_,b,function(c){var d=Oo(Wob,c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;var e=Ub(d,Job,2);d="";switch(e.getStatus()){case 2:d="cancel";break;case 1:d="picked";break;case 3:d="error"}e=e.getItemList();d=0===e.length?{action:d}:PXb(e,d);c.call(a,d);a.setVisible(!1);break;case 4:jZb(a),a.callback_({action:"loaded"})}},
a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();xZb(a);yT(a.iframe_.parentElement,!0);rUb(a.getElement(),"picker-dialog");yZb(a);return c})},wZb=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Jma(a.iframe_,zZb(a));rUb(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void xZb(a)});a.iframe_.src=a.url_;
yZb(a)},BZb=function(a){AZb(a,bv(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},yZb=function(a){var b=$F(bG(a.url_),"title");b&&a.setTitle(b)},zZb=function(a){return 7<=na("Internet Explorer")&&Zi(a.url_,"https")?hp(ip("https://about:blank")):hv?hp(ip('javascript:""')):hp(ip("about:blank"))},xZb=function(a){BZb(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};
hV.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var AZb=function(a,b){var c=a.gadgetsDomHelper_;JIa(function(){b(c.getWindow().gadgets.rpc)},c)};hV.prototype.setUrl=function(a){a=ZF(new Ep(a),"rpcService",this.targetId_);this.useGapi_=void 0!==$F(a,"v2");ZF(a,"rpctoken",this.rpcToken_);VF(a,"rpctoken="+this.rpcToken_);RF(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};
hV.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&CZb(this)};hV.prototype.setCallback=function(a){this.callback_=a;AZb(this,bv(function(b){b.register(this.targetId_,bv(this.handlePickerAction_,this))},this))};
hV.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new OYb(this.isVisible())),CZb(this),jZb(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 CZb=function(a){a.appId_&&a.sendCommand(new EIa(a.appId_,window.location.protocol+"//"+window.location.host))};
hV.prototype.setRelayUrl=function(a){AZb(this,bv(function(b){b.setRelayUrl(this.targetId_,a)},this))};var uZb=function(a,b){var c=null,d=b.indexOf("/picker?");-1<d?c=b.substring(0,d+8-1):fv(b,"/picker")&&(c=b);c&&a.setRelayUrl(c+"/resources/rpc_relay.html")};g=hV.prototype;g.sendCommand=function(a){var b=this;this.useGapi_&&DYb(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});AZb(this,bv(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=mE(a)||window;if("true"==$F(bG(this.url_),"ignoreLimits"))a=new dE(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==$F(bG(this.url_),"shadeDialog")){var b=IUb(gZb(this)),c=jE(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 dE(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=jE(a),c=.85*c.height);var d=Math.max(480,Math.min(650,c))}else c=jE(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=jE(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,480));a=new dE(b,d)}CUb(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==$F(bG(this.url_),"shadeDialog")){var a=pr(this.getElement()),b=jE(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=IUb(gZb(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=lE(this.getDomHelper().document_).y;qr(this.getElement(),a,b)}else hV.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_))}hV.superClass_.setVisible.call(this,a);this.sendCommand(new OYb(a))};
g.focus=function(){hV.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};var tZb=function(a,b,c){if(void 0!==b||void 0!==c)return!0;a=$F(bG(a),"hostId");sZb||(sZb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" ")));return!sZb.has(a)};hV.prototype.handleError_=function(){this.callback_({action:"error"})};
var iV=function(a){KYb.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};ev(iV,LYb);iV.prototype.disposeOnHide_=!1;iV.prototype.addPostProcessor=function(a){this.postProcessors_.push([a,{}])};
iV.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(VF(UF(bG(window.location.href)),"").setPath("/favicon.ico").toString());if(this.urlParamMap_.get("minimal"))throw Error("be");var a=new hV(DZb(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!0);a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.appId_);a.setCallback(this.callback_);return a};var EZb=function(a,b){a.urlParamMap_.set(b,"true");return a};g=iV.prototype;
g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setAuthUser=function(a){this.urlParamMap_.set("authuser",a);return this};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setEventId=function(a){this.urlParamMap_.set("eventId",a)};
g.setMaxSizeBytes=function(a){if(isNaN(a))throw Error("ce`"+a);this.urlParamMap_.set("maxSizeBytes",a)};g.setExperiments=function(a){this.urlParamMap_.set("e",a.join(","))};g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};g.setGmailDelegatorId=function(a){this.urlParamMap_.set("gmailDelegatorId",a);return this};var FZb=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=iV.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};
g.setInitialView=function(a){a instanceof OU?this.urlParamMap_.set("view",a.toString()):this.urlParamMap_.set("view",a)};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};g.setMaxSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("de`"+a+"`undefined");this.urlParamMap_.set("maxSize",a+"xundefined")};g.setMinSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("ee`"+a+"`undefined");this.urlParamMap_.set("minSize",a+"xundefined")};g.setSecretToken=function(){return this};
g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSelectButtonLabel=function(a){this.urlParamMap_.set("selectButtonLabel",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};g.setUser=function(a){this.urlParamMap_.set("user",a)};
var DZb=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",YXb(a.nav_));var b=new Ep(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){ZF(b,d,c)});AYb(b,a.urlParamMap_.get("hostId"),function(){return xYb(a.getBaseUrl(),a.nav_,a.urlParamMap_,a.postProcessors_)});return b};
var jV=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new sx;this.onCloneBlob=new sx;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
jV.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=FZb(EZb(EZb(EZb(EZb((new iV(this.onePickUrl)).addView(DXb().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&"picked"===c.action)for(var d=n(c.docs),e=d.next();!e.done;e=d.next())e=new AXb(e.value),c.extraUserInputs.isAttachment&&e.encryptedBlobId?(e=new BXb(e),CXb(e,a.attachmentsApi),
a.onCloneBlob.emit(e)):a.onPickDoc.emit(e)}).setOrigin(b)).setSecretToken(this.onePickSecretToken).build()}this.drivePicker.setVisible(!0)};jV.\u0275fac=function(a){return new (a||jV)(B(NG),B(fOb))};
jV.\u0275cmp=u({type:jV,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&&(E(0,"div",0)(1,"button",1),M("click",function(){return b.showDialog()}),H(2,"mat-icon",2),G()());a&2&&(A(1),D("disabled",
b.disabled))},dependencies:[pC,yD,tF],encapsulation:2});
var kV=function(a,b,c){Z.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new sx;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)};X(kV,Z);kV.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&GZb(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){GZb(a,2)}))};kV.prototype.onInput=function(){GZb(this,1)};
var GZb=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=n("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=jq(d.getPropertyValue("border-top-width"))+jq(d.getPropertyValue("padding-top"))+c.scrollHeight+jq(d.getPropertyValue("padding-bottom"))+jq(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=jq(d.getPropertyValue("max-height")),d=jq(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})))};kV.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};kV.\u0275fac=function(a){return new (a||kV)(B(Rd),B(hJ),B(CN))};
kV.\u0275dir=u({type:kV,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&M("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[Of]});
var HZb=["el"],lV=function(a,b,c){this.clipboard=a;this.snackBar=b;this.domSafe=c;this.opened=!1};lV.prototype.getNgContentParentEl=function(){return this.el.nativeElement};lV.prototype.hide=function(){this.opened=!1};lV.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};lV.\u0275fac=function(a){return new (a||lV)(B(IR),B(rJ),B(RN))};
lV.\u0275cmp=u({type:lV,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&zg(HZb,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&&(fg(),E(0,"a",0,1),M("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),E(2,"b-glue"),H(3,"mat-icon",2),G(),E(4,"span",null,3),gg(6),G()(),P(7,OIa,11,3,"ng-template",4));if(a&2){var c=O(1);A(7);D("cdkConnectedOverlayPush",
!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[FB,EB,TO,yN,yD,pC,tF],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 mV=function(){this.checked=!1};mV.\u0275fac=function(a){return new (a||mV)};mV.\u0275cmp=u({type:mV,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked"},decls:1,vars:2,consts:[["gmat-checkbox","",3,"disabled","checked"]],template:function(a,b){a&1&&H(0,"mat-checkbox",0);a&2&&D("disabled",!0)("checked",b.checked)},dependencies:[fN],encapsulation:2,changeDetection:0});
var IZb=["el"],nV=function(a,b,c){Z.call(this);this.domSafe=a;this.clipboard=b;this.snackBar=c;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.opened=!1};X(nV,Z);nV.\u0275dir=Z.\u0275dir;nV.prototype.ngOnInit=function(){};nV.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(Ef(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};nV.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var JZb=function(a){var b=a.getNgContentParentEl(),c,d;if(d=NIa(b))a=a.originalHref,b=null!=(c=b.textContent)?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};nV.prototype.hide=function(){this.opened=!1};var QIa=function(a,b){kq(b)||(b.preventDefault(),b.stopPropagation(),lq(a.domSafe,a.href))};nV.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};
var SIa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},RIa=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()})}};nV.\u0275fac=function(a){return new (a||nV)(B(RN),B(IR),B(rJ))};
nV.\u0275cmp=u({type:nV,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(zg(IZb,7),zg(FB,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:[Of],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&&(fg(),E(0,"a",0,1),M("click",function(d){kq(d)||(d.preventDefault(),d.stopPropagation(),JZb(b)?
b.opened=!b.opened:QIa(b,d))}),P(2,PIa,2,0,"b-glue",2),E(3,"span",null,3),gg(5),G()(),P(6,TIa,6,3,"ng-template",4));if(a&2){var c=O(1);Zf("needs-user-confirm",JZb(b));D("href",b.originalHref,le)("rel",b.EXTERNAL_LINK_REL);A(2);D("ngIf",JZb(b));A(4);D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[gy,FB,EB,TO,yN,yD,pC,tF],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 KZb=["child"],oV=function(a){this.codefont=a};oV.prototype.ngOnInit=function(){};oV.prototype.ngOnChanges=function(){iq(this.child.nativeElement,this.content.getContent())};oV.\u0275fac=function(a){return new (a||oV)(B(VO))};
oV.\u0275cmp=u({type:oV,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&zg(KZb,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{content:"content"},features:[ed],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(E(0,"div",0,1),U(2,"async"),G());a&2&&Zf("codefont",V(2,2,b.codefont.codefont$))},dependencies:[ny],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});
var pV=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(C(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),rf());this.textDisplayPreferences$.pipe(C(function(c){return c.lastPublishMode===WAb}),rf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(C(function(c){return c.commentDisplayOverride}),rf())};pV.\u0275fac=function(a){return new (a||pV)(p(NG),p(aI))};
pV.\u0275prov=Hc({token:pV,factory:pV.\u0275fac,providedIn:"root"});
var LZb=new Md("IssueCard");
var qV=function(){};qV.prototype.visit=function(){};qV.\u0275fac=function(a){return new (a||qV)};qV.\u0275prov=Hc({token:qV,factory:qV.\u0275fac,providedIn:"root"});
var MZb=["el"],rV=function(a){this.viewContainerRef=a};rV.\u0275fac=function(a){return new (a||rV)(B(wg))};rV.\u0275dir=u({type:rV,selectors:[["","issueCardHost",""]]});var sV=function(a,b){Z.call(this);this.issueReferenceResolver=a;this.issueCard=b;this.hovercardReady=new W.ReplaySubject(1)};X(sV,Z);sV.\u0275dir=Z.\u0275dir;sV.prototype.ngOnInit=function(){};
sV.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(Ef(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(sf(),Ef(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
sV.prototype.visit=function(a){if(!kq(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})}};sV.\u0275fac=function(a){return new (a||sV)(B(qV),B(LZb,8))};
sV.\u0275cmp=u({type:sV,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(zg(MZb,7),zg(rV,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:[Of],ngContentSelectors:["*"],decls:6,vars:3,consts:[["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"onedevHovercardTrigger","onedevHovercardActive","href","click"],["el",""],[3,"onedevIsHovercardReady"],
["issueCardHost",""]],template:function(a,b){a&1&&(fg(),E(0,"onedev-hovercard",null,0),P(2,UIa,2,1,"div",1),G(),E(3,"a",2,3),M("click",function(d){return b.visit(d)}),gg(5),G());if(a&2){var c=O(1);A(3);D("onedevHovercardTrigger",c)("onedevHovercardActive",!!b.issueCard)("href",b.href,le)}},dependencies:[iM,jM,mM,kM,rV],encapsulation:2,changeDetection:0});
var tV=function(){this.isMentioningMe=!1};tV.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};tV.\u0275fac=function(a){return new (a||tV)};
tV.\u0275cmp=u({type:tV,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&&(E(0,"span",0,1),Q(2),G(),E(3,"onedev-hovercard",null,2),H(5,"b-issue-person-card",3),G());if(a&2){var c=O(4);Zf("me",b.isMentioningMe);D("onedevHovercardTrigger",c);A(2);T("@",b.username,"");A(3);D("email",b.email)}},dependencies:[MQ,iM,mM],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 NZb=Symbol(),OZb=Symbol(),PZb=Symbol(),QZb=Symbol(),RZb=Symbol(),SZb=Symbol(),uV=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=[]},VZb=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=n(b.querySelectorAll("a"));for(e=d.next();!e.done;e=
d.next())if(e=e.value,(h=e.getAttribute("href"))&&h.match(So)&&e&&NIa(e)&&h===e.textContent&&(f=e.nextSibling,TZb(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,t=f.dataset.bImgRedirectedSrc;
VIa(f);if(q){var x=f.dataset.bImgAlt;if(q.match(So))TZb(h,f,q,x,k,!0);else if(Cq(h.flags.session,"enableMarkdownInlineImages"))f=h.createComponent(GN,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);UZb(h,y,q,t||q,k)}}break;case "checkbox":h=a;x=c;q=null!=f.dataset.bCheckboxChecked;VIa(f);f=h.createComponent(mV,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"),UZb(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(lV,f,k);k=f.instance;k.originalHref=x;x=k.getNgContentParentEl();q=n(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)),VIa(f),f=h.createComponent(tV,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 F=c;q=f.href;x=f.dataset.bIssueId;k=f.dataset.bCommentNumber;if(q&&x){t=Number(k);k=Array.from(f.childNodes);var K=document.createElement("span");null==(y=f.parentNode)||y.insertBefore(K,f);y=h.createComponent(sV,K,F);F=y.instance;F.href=q;F.issueId=x;F.commentNumber=t;q=F.el.nativeElement;
x=n(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))};uV.prototype.ngOnDestroy=function(){WZb(this)};
var TZb=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(IN,h,e);e=b.instance;e.src=c;e.alt=d;e.isMarkdownImage=f;a.snipItImageRefs.push(b)},UZb=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=a.createComponent(nV,b,e);e=b.instance;e.originalHref=c;e.href=d;c=e.getNgContentParentEl();f=n(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value);a.externalHyperlinkRefs.push(b)};
uV.prototype.createComponent=function(a,b,c){c={environmentInjector:this.appRef.injector,elementInjector:c.injector};a=a[Xc]||null;var d=c.elementInjector||Ld();c=(new xw(a)).create(d,c.projectableNodes,c.hostElement,c.environmentInjector);b.appendChild(c.location.nativeElement);irb(this.appRef,c.hostView);this.allComponentRefs.push(c);return c};
var WZb=function(a){for(var b=n(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=[]};uV.prototype[NZb]=function(){return this.secureImageRefs.slice()};uV.prototype[OZb]=function(){return this.snipItImageRefs.slice()};uV.prototype[PZb]=function(){return this.checkboxRefs.slice()};uV.prototype[QZb]=function(){return this.externalHyperlinkRefs.slice()};
uV.prototype[RZb]=function(){return this.brokenLinkRefs.slice()};uV.prototype[SZb]=function(){return this.issueReferenceRefs.slice()};uV.\u0275fac=function(a){return new (a||uV)(p(Sx),p(pV),p(NG))};uV.\u0275prov=Hc({token:uV,factory:uV.\u0275fac});
var XZb=["child"],YZb=Symbol(),vV=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};vV.prototype.ngOnInit=function(){};vV.prototype.ngOnChanges=function(){WZb(this.dynamicComponents);var a=this.child.nativeElement;iq(a,this.content.getContent());VZb(this.dynamicComponents,a,this.viewContainerRef)};vV.prototype.ngOnDestroy=function(){WZb(this.dynamicComponents)};vV.prototype[YZb]=function(){return this.dynamicComponents};
vV.\u0275fac=function(a){return new (a||vV)(B(uV,2),B(VO),B(wg))};
vV.\u0275cmp=u({type:vV,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&zg(XZb,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{content:"content"},features:[mg([{provide:uV,useClass:uV}]),ed],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(E(0,"div",0,1),U(2,"async"),G());a&2&&Zf("codefont",V(2,2,b.codefont.codefont$))},dependencies:[ny],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 .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 .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 ZZb=["child"],$Zb=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},wV=function(a){this.codefont=a};wV.prototype.ngOnInit=function(){};wV.\u0275fac=function(a){return new (a||wV)(B(VO))};
wV.\u0275cmp=u({type:wV,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&&(E(0,"div",0),U(1,"async"),P(2,WIa,2,1,"ng-container",1),G());a&2&&(Zf("codefont",V(1,3,b.codefont.codefont$)),A(2),D("ngForOf",Nb(b.content,qq,1)))},dependencies:function(){return[fy,xV,ny]},styles:[$Zb()],changeDetection:0});var xV=function(){};xV.prototype.ngOnInit=function(){};
xV.\u0275fac=function(a){return new (a||xV)};xV.\u0275cmp=u({type:xV,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,XIa,1,1,"b-plain-format-quoted-section",0),P(2,YIa,1,1,"b-plain-format-unquoted-section",0),L());a&2&&(A(1),D("ngIf",oj(b.section,1)),A(1),D("ngIf",!oj(b.section,1)))},dependencies:function(){return[gy,yV,zV]},encapsulation:2,changeDetection:0});
var yV=function(){this.showQuote=!1;a_b++;this.childId="plainFormatQuotedSection"+a_b};yV.prototype.ngOnInit=function(){};yV.prototype.ngOnChanges=function(){ZIa(this)};var ZIa=function(a){var b=a.child.nativeElement;a.showQuote?iq(b,a.section.getContent()):MIa(b)};yV.\u0275fac=function(a){return new (a||yV)};
yV.\u0275cmp=u({type:yV,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&zg(ZZb,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{section:"section"},features:[ed],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&&(E(0,"div"),P(1,$Ia,2,1,"a",0),P(2,aJa,2,1,"a",1),H(3,"div",2,3),G());a&2&&(A(1),D("ngIf",!b.showQuote),A(1),D("ngIf",b.showQuote),A(1),D("id",b.childId))},dependencies:[gy],styles:[$Zb()],changeDetection:0});var a_b=0,zV=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};zV.prototype.ngOnInit=function(){};
zV.prototype.ngOnChanges=function(){WZb(this.dynamicComponents);var a=this.child.nativeElement;iq(a,this.section.getContent());VZb(this.dynamicComponents,a,this.viewContainerRef)};zV.\u0275fac=function(a){return new (a||zV)(B(uV,2),B(wg))};
zV.\u0275cmp=u({type:zV,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&zg(ZZb,7);if(a&2){var c;yg(c=Bg())&&(b.child=c.first)}},inputs:{section:"section"},features:[mg([{provide:uV,useClass:uV}]),ed],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&H(0,"div",0,1)},encapsulation:2,changeDetection:0});
var AV=function(){};AV.prototype.ngOnInit=function(){};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275cmp=u({type:AV,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,bJa,2,1,"ng-container",0),P(1,cJa,2,1,"ng-container",0),P(2,dJa,2,1,"ng-container",0));a&2&&(D("ngIf",Hl(b.formattedComment,Qn,3,Rn)),A(1),D("ngIf",Hl(b.formattedComment,oq,2,Rn)),A(1),D("ngIf",Hl(b.formattedComment,pq,1,Rn)))},dependencies:[gy,oV,vV,wV],encapsulation:2,changeDetection:0});
var BV=function(a){Y.call(this,a)};X(BV,Y);g=BV.prototype;g.getFormattingMode=function(){return qj(this,1,0)};g.setFormattingMode=function(a){m(this,1,a)};g.getSource=function(){return Pi(this,2)};g.setSource=function(a){return m(this,2,a)};g.hasSource=function(){return Oi(this,2)};g.getIssueId=function(){return Aj(this,3)};g.setIssueId=function(a){return m(this,3,a)};g.getIdPrefix=function(){return Pi(this,4)};g.setIdPrefix=function(a){m(this,4,a)};BV.messageId="b.FormatCommentRequest";
var CV=function(a){Y.call(this,a,-1,b_b)};X(CV,Y);CV.prototype.getFormattedComment=function(){return Ub(this,kn,1)};CV.prototype.getMentionsList=function(){return Nb(this,tFb,2)};var b_b=[2];CV.messageId="b.FormatCommentResponse";
var DV=function(a){this.executor=a};DV.prototype.format=function(a){return"LITERAL"===a.formattingMode||""===a.comment.trim()?eJa(a):c_b(this,a).pipe(C(function(b){return b.getFormattedComment()||new kn}))};
var d_b=function(a,b){if("LITERAL"===b.formattingMode||""===b.comment.trim())return(0,W.of)([]);var c=new BV;c.setSource(b.comment);var d;c.setIssueId(null!=(d=$l(b.issueId))?d:0);m(c,6,b.audience);c.setFormattingMode(Pn(b.formattingMode));c.setIdPrefix(b.idPrefix);return c_b(a,b).pipe(C(function(e){return e.getMentionsList().map(function(f){return Ul(Ub(f,Wl,1))||""})}))},c_b=function(a,b){var c=new BV;c.setSource(b.comment);var d;c.setIssueId(null!=(d=$l(b.issueId))?d:0);m(c,6,b.audience);c.setFormattingMode(Pn(b.formattingMode));
c.setIdPrefix(b.idPrefix);return a.executor.post({url:"action/formatComment",body:c,responseConstructor:CV})};DV.\u0275fac=function(a){return new (a||DV)(p(lH))};DV.\u0275prov=Hc({token:DV,factory:DV.\u0275fac,providedIn:"root"});
var EV=function(a){Z.call(this);var b=this;this.formatter=a;this.issueId="";this.audience=2;this.formattingMode="LITERAL";this.params$=new W.ReplaySubject(1);this.formattedResult$=this.params$.pipe(of(200),Df(function(c){return b.formatter.format(c).pipe(e_b,nf(function(){var d=sta(c.comment);return(0,W.of)({formattedComment:d,isFallback:!0})}))}))};X(EV,Z);EV.\u0275dir=Z.\u0275dir;
EV.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:2,formattingMode:a.formattingMode,idPrefix:a.getIdPrefix()})}))};EV.prototype.ngOnChanges=function(){null!=this.comment&&this.params$.next({comment:this.comment,issueId:this.issueId,audience:null!=this.audience?this.audience:2,formattingMode:this.formattingMode,idPrefix:this.getIdPrefix()})};
EV.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};EV.\u0275fac=function(a){return new (a||EV)(B(DV))};
EV.\u0275cmp=u({type:EV,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[Of,ed],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(P(0,fJa,3,5,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.formattedResult$))},dependencies:[gy,AV,ny],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)}\n/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var e_b=C(function(a){return{formattedComment:a,isFallback:!1}});
var FV=function(a,b,c){Z.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new sx;this.checkedSubject=new W.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(Ef(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(Ef(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};X(FV,Z);FV.\u0275dir=Z.\u0275dir;FV.prototype.ngOnInit=function(){this.checkedSubject.next("MARKDOWN"===this.initialValue)};FV.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next("MARKDOWN"===this.initialValue)};FV.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(Ef(this.destroyed$)).subscribe()};FV.\u0275fac=function(a){return new (a||FV)(B(aI),B(pV),B(QN))};
FV.\u0275cmp=u({type:FV,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[Of,ed],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&&(E(0,"mat-checkbox",0),M("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?WAb:e?e:XAb;b.save({lastPublishMode:d});b.change.emit(hj(d))}),U(1,"async"),Q(2," Markdown "),G(),P(3,gJa,2,2,"a",1));if(a&2){var c;D("checked",null!==(c=V(1,2,b.checkedSubject))&&void 0!==c?c:!1);A(3);D("ngIf",b.mdHelpLink)}},dependencies:[fN,gy,yD,qC,tF,ny],
encapsulation:2,changeDetection:0});
var GV=function(a,b){Z.call(this);var c=this;this.appEvents=b;this.init=new sx;this.FormattingMode=vAb;a.textDisplayPreferencesSubject$.pipe(Ef(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:Ai(d.commentDisplayOverride)}})};
X(GV,Z);GV.\u0275dir=Z.\u0275dir;GV.prototype.ngOnInit=function(){};GV.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?1:2;this.note.commentNumber&&(this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber)};GV.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};
GV.\u0275fac=function(a){return new (a||GV)(B(aI),B(eJ))};
GV.\u0275cmp=u({type:GV,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[Of,ed],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&&(E(0,"div",0)(1,"div",1),P(2,
hJa,1,1,"b-formatted-comment-presenter",2),G()(),P(3,iJa,1,5,"ng-template",null,3,Hg));if(a&2){var c=O(4);A(2);if(a=b.note.formattedComment)a=b.note.formattedComment,a=!a||b.formattingModeOverride?!1:un(a,Qn,3,Rn)&&"LITERAL"===b.formattingMode||un(a,pq,1,Rn)&&"PLAIN"===b.formattingMode||un(a,oq,2,Rn)&&"MARKDOWN"===b.formattingMode?!0:!1;D("ngIf",a)("ngIfElse",c)}},dependencies:[gy,AV,EV],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 f_b=new Md("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});
var g_b=Jh("translateTab",[Mh("center, void, left-origin-center, right-origin-center",Lh({transform:"none"})),Mh("left",Lh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mh("right",Lh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Nh("* => left, * => right, left => center, right => center",Kh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Nh("void => left-origin-center",[Lh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
Kh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Nh("void => right-origin-center",[Lh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Kh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);
var h_b=function(a){return{animationDuration:a}},i_b=function(a,b){return{value:a,params:b}},HV=function(a,b,c,d){Bz.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=W.Subscription.EMPTY};X(HV,Bz);
HV.prototype.ngOnInit=function(){var a=this;Bz.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(Cf(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()})};HV.prototype.ngOnDestroy=function(){Bz.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
HV.\u0275fac=function(a){return new (a||HV)(B(qw),B(wg),B(Fc(function(){return IV})),B(li))};HV.\u0275dir=u({type:HV,selectors:[["","matTabBodyHost",""]],features:[Of]});
var JV=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=W.Subscription.EMPTY;this._translateTabComplete=new W.Subject;this._onCentering=new sx;this._beforeCentering=new sx;this._afterLeavingCenter=new sx;this._onCentered=new sx(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(rf(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=JV.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"};ni.Object.defineProperties(JV.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
JV.\u0275fac=function(a){return new (a||JV)(B(Rd),B(XA,8),B(Xx))};JV.\u0275dir=u({type:JV,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var IV=function(a,b,c){JV.call(this,a,b,c)};X(IV,JV);IV.\u0275dir=JV.\u0275dir;
IV.\u0275fac=function(a){return new (a||IV)(B(Rd),B(XA,8),B(Xx))};
IV.\u0275cmp=u({type:IV,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&zg(Bz,5);if(a&2){var c;yg(c=Bg())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[Of],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(E(0,"div",0,1),M("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),P(2,kJa,0,
0,"ng-template",2),G());a&2&&D("@translateTab",pg(3,i_b,b._position,og(1,h_b,b.animationDuration)))},dependencies:[HV],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:[g_b]}});
var j_b=new Md("MatTabContent");
var k_b=new Md("MAT_TABS_CONFIG");
var l_b=kh({passive:!0}),KV=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 W.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new W.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new sx;this.indexFocused=new sx;
e.runOutsideAngular(function(){(0,W.fromEvent)(a.nativeElement,"mouseleave").pipe(Ef(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=KV.prototype;g.ngAfterViewInit=function(){var a=this;(0,W.fromEvent)(this._previousPaginator.nativeElement,"touchstart",l_b).pipe(Ef(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,W.fromEvent)(this._nextPaginator.nativeElement,"touchstart",l_b).pipe(Ef(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,W.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=OA(RA(PA(new WA(this._items),this._getLayoutDirection())));SA(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(sf()).subscribe(d);(0,W.merge)(b,c,this._items.changes,this._itemsResized()).pipe(Ef(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});PA(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?W.EMPTY:this._items.changes.pipe(Cf(this._items),Df(function(b){return new W.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()}})})}),Bf(1),hf(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(!xh(a))switch(a.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(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){if(!this._items)return!0;a=this._items?this._items.toArray()[a]:null;return!!a&&!a.disabled};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+60:c>a&&(this.scrollDistance+=c-a+60)}}};
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)?m_b(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,W.timer)(650,100).pipe(Ef((0,W.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}};
ni.Object.defineProperties(KV.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=rh(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=uh(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&SA(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)}}});KV.\u0275fac=function(a){return new (a||KV)(B(Rd),B(Xx),B(lB),B(XA,8),B(Mf),B(hz),B(Ew,8))};KV.\u0275dir=u({type:KV,inputs:{disablePagination:"disablePagination"}});
var n_b=qi(function(){}),LV=function(a){var b=n_b.call(this)||this;b.elementRef=a;return b};X(LV,n_b);LV.prototype.focus=function(){this.elementRef.nativeElement.focus()};LV.\u0275fac=function(a){return new (a||LV)(B(Rd))};LV.\u0275dir=u({type:LV,features:[Of]});jJa(LV);
var MV=function(a,b,c,d,e,f,h){KV.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};X(MV,KV);MV.prototype._itemSelected=function(a){a.preventDefault()};ni.Object.defineProperties(MV.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=rh(a)}}});MV.\u0275fac=function(a){return new (a||MV)(B(Rd),B(Xx),B(lB),B(XA,8),B(Mf),B(hz),B(Ew,8))};MV.\u0275dir=u({type:MV,inputs:{disableRipple:"disableRipple"},features:[Of]});
var o_b=new Md("MatTabLabel"),p_b=new Md("MAT_TAB"),NV=function(a,b,c){xz.call(this,a,b);this._closestTab=c};X(NV,Az);NV.\u0275fac=function(a){return new (a||NV)(B(vg),B(wg),B(p_b,8))};NV.\u0275dir=u({type:NV,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[mg([{provide:o_b,useExisting:NV}]),Of]});
var q_b=qi(function(){}),r_b=new Md("MAT_TAB_GROUP"),OV=function(a,b){var c=q_b.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new W.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};X(OV,q_b);OV.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};OV.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
OV.prototype.ngOnInit=function(){this._contentPortal=new xz(this._explicitContent||this._implicitContent,this._viewContainerRef)};OV.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};ni.Object.defineProperties(OV.prototype,{content:{configurable:!0,enumerable:!0,get:function(){return this._contentPortal}}});OV.\u0275fac=function(a){return new (a||OV)(B(wg),B(r_b,8))};
OV.\u0275dir=u({type:OV,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:[Of,ed]});
var s_b=0,t_b=oi(pi(function(a){this._elementRef=a}),"primary"),PV=function(a,b,c,d){a=t_b.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=W.Subscription.EMPTY;a._tabLabelSubscription=W.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=new sx;a.focusChange=new sx;a.animationDone=
new sx;a.selectedTabChange=new sx(!0);a._groupId=s_b++;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};X(PV,t_b);g=PV.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(Cf(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 u_b;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=W.merge.apply(null,r(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){a.disabled||(this.selectedIndex=b.focusIndex=c)};g._getTabIndex=function(a,b){if(a.disabled)return null;var c;a=null!=(c=this._lastFocusedTabIndex)?c:this.selectedIndex;return b===a?0:-1};g._tabFocusChanged=function(a,b){a&&"mouse"!==a&&"touch"!==a&&(this._tabHeader.focusIndex=b)};
ni.Object.defineProperties(PV.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=rh(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=uh(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=uh(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=rh(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=rh(a)}},backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=
this._elementRef.nativeElement;b.classList.remove("mat-background-"+this.backgroundColor);a&&b.classList.add("mat-background-"+a);this._backgroundColor=a}}});PV.\u0275fac=function(a){return new (a||PV)(B(Rd),B(Xx),B(k_b,8),B(Ew,8))};
PV.\u0275dir=u({type:PV,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:[Of]});var u_b=function(){};
var v_b=0,QV=function(a,b,c,d,e,f,h){KV.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};X(QV,KV);QV.prototype._itemSelected=function(){};QV.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(Cf(null),Ef(this._destroyed)).subscribe(function(){w_b(a)});KV.prototype.ngAfterContentInit.call(this)};
var w_b=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()}};QV.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
ni.Object.defineProperties(QV.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){return this._backgroundColor},set:function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-background-"+this.backgroundColor);a&&b.add("mat-background-"+a);this._backgroundColor=a}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=rh(a)}}});
QV.\u0275fac=function(a){return new (a||QV)(B(Rd),B(XA,8),B(Mf),B(Xx),B(lB),B(hz),B(Ew,8))};QV.\u0275dir=u({type:QV,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[Of]});
var x_b=si(pi(qi(function(){}))),RV=function(a,b,c,d,e,f){var h=x_b.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+v_b++;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};X(RV,x_b);g=RV.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._tabNavBar.tabPanel&&32===a.keyCode&&this.elementRef.nativeElement.click()};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};
ni.Object.defineProperties(RV.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=rh(a);a!==this._isActive&&(this._isActive=a,w_b(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});RV.\u0275fac=function(a){return new (a||RV)(B(QV),B(Rd),B(vub,8),Ad("tabindex"),B(sz),B(Ew,8))};
RV.\u0275dir=u({type:RV,inputs:{active:"active",id:"id"},features:[Of]});jJa(RV);
var SV=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},m_b=function(a,b){a.show();a._ngZone.run(function(){a._ngZone.onStable.pipe(sf()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})})};SV.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};SV.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};
SV.\u0275fac=function(a){return new (a||SV)(B(Rd),B(Mf),B(f_b),B(Ew,8))};SV.\u0275dir=u({type:SV,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&Zf("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});
var y_b=function(a){return{animationDuration:a}},z_b=function(a,b){return{value:a,params:b}},TV=function(a,b,c,d){HV.call(this,a,b,c,d)};X(TV,HV);TV.\u0275fac=function(a){return new (a||TV)(B(qw),B(wg),B(Fc(function(){return UV})),B(li))};TV.\u0275dir=u({type:TV,selectors:[["","matTabBodyHost",""]],features:[Of]});var UV=function(a,b,c){JV.call(this,a,b,c)};X(UV,JV);UV.\u0275dir=JV.\u0275dir;UV.\u0275fac=function(a){return new (a||UV)(B(Rd),B(XA,8),B(Xx))};
UV.\u0275cmp=u({type:UV,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&zg(Bz,5);if(a&2){var c;yg(c=Bg())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],features:[Of],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(E(0,"div",0,1),M("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),P(2,lJa,0,0,"ng-template",
2),G());a&2&&D("@translateTab",pg(3,z_b,b._position,og(1,y_b,b.animationDuration)))},dependencies:[TV],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:[g_b]}});
var VV=function(){return LV.apply(this,arguments)||this};X(VV,LV);VV.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(VV)))(b||VV)}}();VV.\u0275dir=u({type:VV,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Uf("aria-disabled",!!b.disabled),Zf("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[Of]});
var A_b=["tabListContainer"],B_b=["tabList"],C_b=["tabListInner"],D_b=["nextPaginator"],E_b=["previousPaginator"],WV=function(a,b,c,d,e,f,h){MV.call(this,a,b,c,d,e,f,h)};X(WV,MV);WV.\u0275dir=MV.\u0275dir;WV.\u0275fac=function(a){return new (a||WV)(B(Rd),B(Xx),B(lB),B(XA,8),B(Mf),B(hz),B(Ew,8))};
WV.\u0275cmp=u({type:WV,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&Ag(c,VV,4);if(a&2){var d;yg(d=Bg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(zg(SV,7),zg(A_b,7),zg(B_b,7),zg(C_b,7),zg(D_b,5),zg(E_b,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:4,hostBindings:function(a,b){a&2&&Zf("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Of],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&&(fg(),E(0,"button",0,1),M("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),E(3,"div",3,4),M("keydown",function(c){return b._handleKeydown(c)}),E(5,"div",5,6),M("cdkObserveContent",function(){return b._onContentChanges()}),E(7,"div",7,8),gg(9),G(),H(10,"mat-ink-bar"),G()(),E(11,"button",
9,10),M("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(Zf("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),A(5),Zf("_mat-animation-noopable","NoopAnimations"===b._animationMode),A(6),Zf("mat-tab-header-pagination-disabled",b._disableScrollAfter),
D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[UB,CA,SV],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 XV=function(){return OV.apply(this,arguments)||this};X(XV,OV);XV.\u0275dir=OV.\u0275dir;ni.Object.defineProperties(XV.prototype,{templateLabel:{configurable:!0,enumerable:!0,get:function(){return this._templateLabel},set:function(a){this._setTemplateLabelInput(a)}}});XV.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(XV)))(b||XV)}}();
XV.\u0275cmp=u({type:XV,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(Ag(c,o_b,5),Ag(c,j_b,7,vg));if(a&2){var d;yg(d=Bg())&&(b.templateLabel=d.first);yg(d=Bg())&&(b._explicitContent=d.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[mg([{provide:p_b,useExisting:XV}]),Of],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),P(0,mJa,1,0,"ng-template"))},encapsulation:2});
var F_b=["tabBodyWrapper"],G_b=["tabHeader"],YV=function(a,b,c,d){return PV.call(this,a,b,c,d)||this};X(YV,PV);YV.\u0275dir=PV.\u0275dir;YV.\u0275fac=function(a){return new (a||YV)(B(Rd),B(Xx),B(k_b,8),B(Ew,8))};
YV.\u0275cmp=u({type:YV,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&Ag(c,XV,5);if(a&2){var d;yg(d=Bg())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(zg(F_b,5),zg(G_b,5));if(a&2){var c;yg(c=Bg())&&(b._tabBodyWrapper=c.first);yg(c=Bg())&&(b._tabHeader=c.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(a,b){a&2&&Zf("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===b.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},
exportAs:["matTabGroup"],features:[mg([{provide:r_b,useExisting:YV}]),Of],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&&(E(0,"mat-tab-header",0,1),M("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),P(2,qJa,5,15,"div",2),G(),E(3,"div",3,4),P(5,rJa,1,11,"mat-tab-body",5),G());a&2&&(D("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),A(2),D("ngForOf",b._tabs),A(1),Zf("_mat-animation-noopable",
"NoopAnimations"===b._animationMode),A(2),D("ngForOf",b._tabs))},dependencies:[ey,fy,gy,Bz,UB,uz,VV,UV,WV],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 ZV=function(){NV.apply(this,arguments)};X(ZV,NV);ZV.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(ZV)))(b||ZV)}}();ZV.\u0275dir=u({type:ZV,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[mg([{provide:o_b,useExisting:ZV}]),Of]});
var H_b=["tabListContainer"],I_b=["tabList"],J_b=["tabListInner"],K_b=["nextPaginator"],L_b=["previousPaginator"],$V=function(a,b,c,d,e,f,h){QV.call(this,a,b,c,d,e,f,h)};X($V,QV);$V.\u0275dir=QV.\u0275dir;$V.\u0275fac=function(a){return new (a||$V)(B(Rd),B(XA,8),B(Mf),B(Xx),B(lB),B(hz),B(Ew,8))};
$V.\u0275cmp=u({type:$V,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&Ag(c,aW,5);if(a&2){var d;yg(d=Bg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(zg(SV,7),zg(H_b,7),zg(I_b,7),zg(J_b,7),zg(K_b,5),zg(L_b,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:11,hostBindings:function(a,b){a&2&&(Uf("role",b._getRole()),Zf("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:[Of],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&&(fg(),E(0,"button",0,1),M("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),E(3,"div",3,4),M("keydown",function(c){return b._handleKeydown(c)}),E(5,"div",5,6),M("cdkObserveContent",function(){return b._onContentChanges()}),
E(7,"div",7,8),gg(9),G(),H(10,"mat-ink-bar"),G()(),E(11,"button",9,10),M("mousedown",function(c){return b._handlePaginatorPress("after",c)})("click",function(){return b._handlePaginatorClick("after")})("touchend",function(){return b._stopInterval()}),H(13,"div",2),G());a&2&&(Zf("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),A(5),Zf("_mat-animation-noopable","NoopAnimations"===b._animationMode),
A(6),Zf("mat-tab-header-pagination-disabled",b._disableScrollAfter),D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[UB,CA,SV],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 aW=function(a,b,c,d,e,f,h,k){a=RV.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new SB(a,c,b,d);uub(a._tabLinkRipple,b.nativeElement);return a};X(aW,RV);aW.prototype.ngOnDestroy=function(){RV.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};aW.\u0275fac=function(a){return new (a||aW)(B($V),B(Rd),B(Mf),B(hz),B(vub,8),Ad("tabindex"),B(sz),B(Ew,8))};
aW.\u0275dir=u({type:aW,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&M("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Uf("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()),Zf("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[Of]});
var bW=function(){};bW.\u0275fac=function(a){return new (a||bW)};bW.\u0275mod=Yc({type:bW});bW.\u0275inj=Ic({imports:[vy,HB,Cz,XB,DA,FA,HB]});
var cW=function(){};cW.\u0275fac=function(a){return new (a||cW)};cW.\u0275mod=Yc({type:cW});cW.\u0275inj=Ic({imports:[iN,qJ,vy,GB,UO,JN,xR,bW,uF,AF,uG,bR,dR,TM]});
var M_b=["textarea"],N_b=["hiddenInput"],O_b=["autocompleteUnderlay"],P_b=Symbol(),dW=function(a,b,c){Z.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new sx;this.focus=new sx;this.blur=new sx;this.autoResize=new sx;this.manualResize$=new sx;this.autocompleteUserName="";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.textAreaLastAtSymbolLocation=
this.textAreaLastCursorLocation=0};X(dW,Z);dW.\u0275dir=Z.\u0275dir;dW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?tq(a).classList.add("codefont"):tq(a).classList.remove("codefont")}))};dW.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};dW.prototype.setValue=function(a){tq(this).value!==a&&(tq(this).value=a,this.manualResize$.next())};
dW.prototype.getValue=function(){return tq(this).value};var tq=function(a){return a.textareaRef.nativeElement},vq=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},sq=function(a){return a.activeSession.isInternalSession()&&1===a.audience},Q_b=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},R_b=function(a){var b=tq(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
dW.prototype.findWord=function(a,b){var c=a.slice(0,b).search(/(?!(.*\s))/);b+=a.slice(b).search(/(\s|$)/);return{wordStart:c,wordEnd:b,word:a.slice(c,b)}};
var S_b=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},T_b=function(a){var b=Q_b(a);a=tq(a);b&&a&&(b.scrollTop=a.scrollTop)},uq=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},sJa=function(a,b){b=void 0===b?!1:b;var c=tq(a),d=tq(a).value,e,f=null==(e=vq(a))?void 0:e.value;e=null==f?void 0:f.length;R_b(a);var h=d.slice(0,a.textAreaLastAtSymbolLocation+1);d=a.wordInfo.word.slice(1)===f?d.slice(a.textAreaLastAtSymbolLocation+
f.length+1):d.slice(a.textAreaLastCursorLocation);e&&(a.textAreaLastCursorLocation=h.length+e);b?(b=h+f+" "+d,a.textAreaLastCursorLocation+=1):b=h+f+d;c.value=b};dW.prototype[P_b]=function(){return this.findWord};dW.\u0275fac=function(a){return new (a||dW)(B(VO),B(NG),B(hJ))};
dW.\u0275cmp=u({type:dW,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(zg(M_b,7),zg(N_b,5),zg(O_b,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&&M("click",function(){uq(b)},!1,$da)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(uq(b),tq(b).focus())},!1,$da)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[Of],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&&(E(0,
"div",0,1),M("keydown",function(c){"Escape"===c.key&&(uq(b),tq(b).focus())}),E(2,"textarea",2,3),M("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(sq(b)&&S_b(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=vq(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=vq(b))||k.dispatchEvent(c)}})("keyup",function(c){if(sq(b)){var d=tq(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!S_b(c)){c=c.target;b.scrollPosition=c.scrollTop;R_b(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=Zva.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=Q_b(b)){d.textContent=b.getValue();e=Q_b(b);h=tq(b);f="height width font-family margin line-height padding border".split(" ");if(e&&h){h=b.window.getComputedStyle(h);f=n(f);for(var k=f.next();!k.done;k=f.next()){k=k.value;var q=h.getPropertyValue(k);e.style.setProperty(k,q)}}T_b(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 t;null==(t=vq(b))||t.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return T_b(b)}),G(),E(4,"span",4),P(5,tJa,2,1,"input",5),G(),P(6,uJa,2,0,"div",6),G());a&2&&(A(2),D("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),Uf("placeholder",b.placeholder)("id",b.idForAriaLabel),A(2),Yf("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),A(1),D("ngIf",b.taggingInProgress),A(1),D("ngIf",sq(b)))},dependencies:[ey,gy,GT,kV],encapsulation:2,changeDetection:0});
var U_b=function(a){return{"draft-markdown":a}},eW=function(a,b,c){Z.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()}};X(eW,Z);eW.\u0275dir=Z.\u0275dir;eW.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
eW.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};eW.\u0275fac=function(a){return new (a||eW)(B(qH,2),B(Rd),B(eJ))};
eW.\u0275cmp=u({type:eW,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&zg(YV,7);if(a&2){var c;yg(c=Bg())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[mg([qH]),Of],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&&(E(0,"mat-tab-group",
0),M("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),E(1,"mat-tab",1),P(2,vJa,1,0,"ng-container",2),G(),E(3,"mat-tab",3),P(4,wJa,1,0,"ng-container",2),G()());a&2&&(D("dynamicHeight",!1)("selectedIndex",b.selectedIndex),A(2),D("ngTemplateOutlet",b.editArea),A(1),D("disabled",b.previewDisabled),A(1),D("ngTemplateOutlet",b.previewArea))},dependencies:[my,YV,XV],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}\n/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var fW=function(a,b,c,d){Z.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(C(function(e){return e===WAb}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience=2;this.init=new sx;this.contentChange=new sx;this.focus=new sx;this.blur=new sx;this.autoResize=new sx;this.onSubmit=new sx};X(fW,Z);fW.\u0275dir=Z.\u0275dir;
fW.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
fW.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 V_b=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&tq(a.commentDraftTextarea).focus()})};fW.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};fW.\u0275fac=function(a){return new (a||fW)(B(VO),B(Mf),B(aI),B(iI))};
fW.\u0275cmp=u({type:fW,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(zg(dW,5),zg(eW,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:[Of,
ed],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&&(E(0,"b-comment-draft-textarea",0),M("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()}),U(1,"async"),G());a&2&&D("textareaClass",b.textareaClass)("ngClass",
og(8,U_b,V(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[ey,dW,ny],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)}\n/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});
var gW=function(){};gW.\u0275fac=function(a){return new (a||gW)};gW.\u0275mod=Yc({type:gW});gW.\u0275inj=Ic({imports:[iN,vy,HT,fz,GB,UO,JN,xR,bW,uF,AF,uG,SO]});
var W_b=["commentBoxContainer"],X_b=[[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],Y_b=function(a){return{focused:a}},hW=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.appEvents=d;this.currentTracker=e;this.MARKDOWN="MARKDOWN";this.commentChange=new sx;this.disabled=this.supportsPreview=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.showRestrictionOptions=!0;this.onChange=new sx;this.onFocusEvent=new sx;this.onSubmit=new sx;this.onRestrict=new sx;this.focused=
!1;this.commentRebound$=new W.ReplaySubject(1);this.destroyed$=new W.ReplaySubject(1);this.createRestrictedResourcesComponentWhitelist=c.session.config.createRestrictedSubresourcesComponentWhitelist};g=hW.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||jOb(a);this.destroyed$.next()};g.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(Ef(this.destroyed$)).subscribe(function(b){Veb(a,b)});this.appEvents.scrollToCommentBox.pipe(Ef(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.getSeverity())?b:1;return Bra(Lm(c))};g.isRestricted=function(){var a,b;return 1!==(null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1)};var Veb=function(a,b){(b=void 0===b?"":b)&&Mo(a.analytics,"commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||V_b(c)};
hW.prototype.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView({behavior:"smooth"})};hW.prototype.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};hW.prototype.onBlur=function(){this.focused=!1};hW.prototype.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a.shiftKey))};hW.\u0275fac=function(a){return new (a||hW)(B(BK),B(iI),B(NG),B(eJ),B(LJ))};
hW.\u0275cmp=u({type:hW,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(zg(fW,5),zg(W_b,5),zg(NU,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",showToolbar:"showToolbar",
idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled",showRestrictionOptions:"showRestrictionOptions"},outputs:{commentChange:"commentChange",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[ed],ngContentSelectors:["[recaptchaContainer]","[additionalToolbarItems]"],decls:8,vars:12,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"],[3,"uploads","onUploadCancel"],["class","bv2-comment-toolbar",4,"ngIf"],[4,"ngIf"],[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&&(fg(X_b),E(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),M("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())}})("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.types.length;k++)"text/plain"===d.types[k]?e=!0:"Files"===d.types[k]&&(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}),c=b.attachmentUploader.upload(c),b.comment&&b.comment.uploads.push(c))}}),G()(),E(4,"b-attachment-uploader",4),M("onUploadCancel",function(c){b.comment&&Ea(b.comment.uploads,c)}),G(),gg(5),P(6,BJa,6,5,"div",5),G(),P(7,CJa,2,4,"div",6));a&2&&(D("ngClass",og(10,Y_b,b.focused)),A(3),D("content",b.comment.value)("placeholder",b.placeholder)("disabled",
b.disabled)("textareaClass",b.disabled?"bv2-disabled":"")("audience",b.audience)("idForAriaLabel",b.idForAriaLabel),A(1),D("uploads",b.comment.uploads),A(2),D("ngIf",b.showToolbar),A(1),D("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN))},dependencies:[ey,gy,fW,tF,EV,jV,JU,NU,pC,yD,ny],encapsulation:2});
var Z_b=["captchaContainer"],iW=function(a,b,c,d,e){this.ngZone=a;this.window=b;this.darkmodeService=c;this.appEvents=d;this.analytics=e;this.onUpdate=new sx;this.destroyed$=new W.ReplaySubject(1)};iW.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(Ef(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
iW.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);Mo(a.analytics,Aq.RECAPTCHA_TOKEN,"create")})},"expired-callback":function(){a.ngZone.run(function(){a.onUpdate.emit("");Mo(a.analytics,Aq.RECAPTCHA_TOKEN,
"expire")})},theme:d?"dark":"light"})})};iW.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};iW.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)})}};iW.\u0275fac=function(a){return new (a||iW)(B(Mf),B(hJ),B(oN),B(eJ),B(BK))};
iW.\u0275cmp=u({type:iW,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&zg(Z_b,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&&H(0,"div",null,0)},encapsulation:2});
var $_b=["dialog"],jW=function(a,b,c,d){Z.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.save=new sx;this.close=new sx;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=a0b;this.enableRecaptcha=Cq(this.activeSession,"enableRecaptcha")&&Cq(this.activeSession,"enableBulkEditCaptchaUi");this.comment=new sQ;var e;this.comment.formattingMode=hj(null==(e=bI(d).textDisplayPreferences)?void 0:e.lastPublishMode);this.issueStates=ZDb};X(jW,Z);jW.\u0275dir=Z.\u0275dir;
jW.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new JWb(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&DJa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});CC(this.matDialogRef).pipe(Ef(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};jW.\u0275fac=function(a){return new (a||jW)(B(IC),B(NG),B(iI),B(aI))};
jW.\u0275cmp=u({type:jW,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&zg($_b,5);if(a&2){var c;yg(c=Bg())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[Of],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,TJa,14,5,"ng-template",null,0,Hg)},dependencies:[fy,gy,iy,jy,ky,JC,KC,LC,MC,sR,Sy,fh,Ky,Ly,bz,Ry,Py,pC,QG,oF,mF,nF,GT,hW,iW],encapsulation:2});var a0b={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};
var kW=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},b0b=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},lW=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},c0b=function(a,b){return a?a.join(" > "):String(b)},d0b=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""}};
var mW=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};mW.prototype.ngOnInit=function(){e0b(this,this.issuesToFlag)};
var e0b=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:TJ(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);e0b(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};mW.\u0275fac=function(a){return new (a||mW)(B(QN),B(SJ),B(xJ),B(HC))};
mW.\u0275cmp=u({type:mW,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&&(E(0,"h1",0),Q(1,"Flag Issues as Spam"),G(),E(2,"div",1)(3,"div",2)(4,"p"),Q(5),E(6,"a",3),Q(7,"see here"),G(),Q(8,". "),G(),E(9,"p"),Q(10," This operation cannot be undone in bulk. "),G()(),E(11,"div",4),P(12,UJa,3,2,"div",5),P(13,WJa,5,2,"div",5),G()(),E(14,"div",6)(15,"button",7),Q(16," Close "),G(),E(17,"button",8),Q(18," Flag as Spam "),G()());a&2&&(A(5),T(" 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, "),
A(1),D("href",nLb(b.documentationLinks),le),A(6),D("ngIf",!b.permissionsCheckComplete),A(1),D("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),A(4),D("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[fy,gy,pC,JC,KC,LC,MC],encapsulation:2});
var nW=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};nW.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};nW.prototype.save=function(){this.dialogRef.close(this.component)};nW.prototype.cancel=function(){this.dialogRef.close()};nW.\u0275fac=function(a){return new (a||nW)(B(qH,2),B(EC))};
nW.\u0275cmp=u({type:nW,selectors:[["b-bulk-move-dialog"]],features:[mg([qH])],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&&(E(0,"h1",0),Q(1,"Change Component"),G(),E(2,"mat-dialog-content")(3,"p"),Q(4,"Choose new component for these issues."),G(),E(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. "),G(),E(7,"b-team-component-picker",2),M("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),G()(),E(8,"mat-dialog-actions")(9,"button",3),M("click",function(){return b.cancel()}),Q(10," Cancel "),G(),E(11,"button",4),M("click",function(){return b.save()}),Q(12," Save "),G()());a&2&&(A(7),D("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),A(4),D("disabled",null==b.component))},dependencies:[pC,KC,LC,MC,oU],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}"]});
var oW=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};oW.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};oW.prototype.close=function(){this.dialogRef.close()};oW.\u0275fac=function(a){return new (a||oW)(B(HC),B(EC))};
oW.\u0275cmp=u({type:oW,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&&(E(0,"h1",0),Q(1),G(),E(2,"mat-dialog-content")(3,"p"),Q(4),G(),E(5,"div",1)(6,"mat-form-field")(7,"mat-label"),Q(8),G(),E(9,"input",2),M("ngModelChange",function(c){return b.addItems=c}),G()(),
H(10,"br"),E(11,"mat-form-field")(12,"mat-label"),Q(13),G(),E(14,"input",2),M("ngModelChange",function(c){return b.removeItems=c}),G()()()(),E(15,"mat-dialog-actions")(16,"button",3),M("click",function(){return b.close()}),Q(17," Cancel "),G(),E(18,"button",4),M("click",function(){return b.save()}),Q(19," Save "),G()());a&2&&(A(1),T("Edit ",b.fieldDisplayName,""),A(3),T("Enter ",b.fieldDisplayName," to add or remove"),A(4),T(" ",b.fieldDisplayName," to Add "),A(1),D("ngModel",b.addItems),A(4),T(" ",
b.fieldDisplayName," to Remove "),A(1),D("ngModel",b.removeItems))},dependencies:[fh,Ky,Ry,pC,XC,VC,$C,KC,LC,MC],encapsulation:2});
var f0b=["hotlistFilterInput"],g0b=["hotlistCreate"],h0b=["hotlistApply"],i0b=["hotlistLoad"],j0b=["menuitem"],pW=function(a,b,c,d,e,f){Z.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 sx;this.onApply=new sx;this.onLoad=new sx;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()};X(pW,Z);pW.\u0275dir=Z.\u0275dir;pW.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(Ef(this.destroyed$)).subscribe(function(){(0,W.timer)(0).pipe(Ef(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(Ef(this.destroyed$)).subscribe(function(){k0b(a)})};
pW.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};pW.prototype.ngOnChanges=function(){l0b(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;qW(this)};
var l0b=function(a){var b={};Lba(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=n(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=n(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=n(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=n(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=n(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Pa(a.choices,function(h,k){var q=b[h.hotlistId],t=b[k.hotlistId];return q>t?-1:q<t?1:gv(h.name,k.name)})}}};pW.prototype.open=function(){Kq(this.trigger);this.cdr.detectChanges()};pW.prototype.close=function(){this.trigger.closeMenu()};
pW.prototype.hasAclToEdit=function(a){var b=this;if(Iba(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];TJ(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var xq=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},yq=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;zq(a);a.close()},zq=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},qW=function(a){for(var b=a.filterText,c=!1,d=n(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=ra(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=!/[^0-9]/.test(bj(b))&&!!b&&!!a.onLoad},k0b=function(a){a.trigger.menuOpen||(l0b(a),a.filterText="",qW(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},m0b=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+gaa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
pW.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",qW(this),this.onCreate.emit({name:b,successCallback:function(c){yq(a,c)},errorCallback:function(){wJ(a.butterBar,"Failed to create hotlist "+b)}}))};
pW.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){Mo(this.analytics,"hotlistPicker","loadHotlist");vJ(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";qW(this);for(var c=Xi(b),d=n(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){yq(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){yq(a,f)},errorCallback:function(){wJ(a.butterBar,"Failed to load hotlist "+b)}})}};
var XJa=function(a,b){xq(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!Ri(a.oldSelectedHotlistMap,a.selectedHotlistMap))},s0b=function(a,b){b=void 0===b?0:b;var c=rW(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=va(rW(a),b),n0b(a),o0b(a,b)):a.focusedRowIndex<d&&a.canCreate?p0b(a,d):a.focusedRowIndex<
d+1&&a.canLoad?q0b(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&r0b(a,d)},rW=function(a){return a.menuItems.map(function(b){return b.nativeElement})},t0b=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)p0b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)q0b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)p0b(a,a.choices.length);else{var c=rW(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=va(rW(a),b),n0b(a),o0b(a,b)):(a.focusedRowIndex=-1,o0b(a,null))}},o0b=function(a,b){a.filterElement&&hI(a.filterElement.nativeElement,b);a.focusFilterBox()},p0b=function(a,b){a.focusedRowIndex=b;hI(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},q0b=function(a,b){a.focusedRowIndex=b+1;hI(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},r0b=function(a,b){a.focusedRowIndex=b+2;hI(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},n0b=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=rW(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},YJa=function(a){return null==
a?"mixed":a.toString()},ZJa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};pW.\u0275fac=function(a){return new (a||pW)(B(EA),B(uJ),B(SJ),B(BK),B(NG),B(qH,2))};
pW.\u0275cmp=u({type:pW,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(zg(nF,5),zg(f0b,5),zg(g0b,5),zg(h0b,5),zg(i0b,5),zg(j0b,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:[mg([qH]),Of,ed],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&&(E(0,"button",0)(1,"span",1),Q(2),G(),H(3,"b-icon",2),G(),E(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),M("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return qW(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return k0b(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(s0b(b),d.preventDefault()):"ArrowUp"===d.key?(t0b(b),d.preventDefault()):"PageUp"===d.key?t0b(b,11):"PageDown"===d.key?s0b(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(XJa(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(),zq(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&yq(b,b.choices[b.focusedRowIndex]))}),G()()(),H(11,"mat-divider"),P(12,dKa,11,8,"ng-template",9),G()());if(a&2){var c=O(5);D("matMenuTriggerFor",c)("disabled",b.isAnonymous);A(2);kg(m0b(b));A(7);D("ngModel",b.filterText)}},dependencies:[fy,
gy,oF,mF,nF,lF,pC,fh,Ky,cz,Ry,VB,tF,WG,QG],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}\n/*# sourceMappingURL=hotlist_picker.css.map */"]});
var sW=function(a){this.issuesApi=a};sW.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})};sW.\u0275fac=function(a){return new (a||sW)(p(bJ))};sW.\u0275prov=Hc({token:sW,factory:sW.\u0275fac,providedIn:"root"});
var tW=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new sx};tW.prototype.ngOnInit=function(){};
tW.prototype.toggle=function(){var a=this;Mo(this.analytics,"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)}))};tW.\u0275fac=function(a){return new (a||tW)(B(NG),B(bJ),B(BK),B(xJ))};
tW.\u0275cmp=u({type:tW,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&&(E(0,"button",0),M("click",function(){return b.toggle()}),P(1,eKa,2,0,"ng-container",1),Q(2,"CC me\n"),G());a&2&&(A(1),D("ngIf",b.ccState))},dependencies:[gy,pC],encapsulation:2});
var uW=function(a,b){Z.call(this);this.errorHandler=a;this.issueFridge=b;this.upvoted=!1;this.voteCount=0;this.onVote=new sx;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};X(uW,Z);uW.\u0275dir=Z.\u0275dir;
uW.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(sf(),Ef(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};uW.\u0275fac=function(a){return new (a||uW)(B(xJ),B(FK))};
uW.\u0275cmp=u({type:uW,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("no-votes",0>=b.voteCount)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},features:[Of],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&&(E(0,"button",0),M("click",function(){return b.onClick()}),H(1,"mat-icon",1),E(2,"output",
2),Q(3),G()());a&2&&(D("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),Uf("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),A(2),hg("title","",b.voteCount," votes on this issue"),A(1),T(" ",9999<b.voteCount?"9999+":b.voteCount," "))},dependencies:[pC,yD,tF],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}\n/*# sourceMappingURL=app_vote_button.css.map */"],
changeDetection:0});
var sKa=function(){return[]},vW=function(a,b,c,d,e,f,h){Z.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_FULL_TEXT=xl;this.providedIssueId$=new W.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(Df(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=ql;this.FormattingMode=vAb;this.init=new W.ReplaySubject(1)};X(vW,Z);vW.\u0275dir=Z.\u0275dir;
vW.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.events=b.events;a.cdr.markForCheck();a.init.next()})};vW.prototype.priority=function(a){return null==a?"--":MAb[a]};vW.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
var rKa=function(a,b){return Rl(b).includes(a.activeSession.getUserEmail())},mKa=function(a,b){var c;return Pe(function(d){if(1==d.nextAddress)return c=a.issueId,IJ(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),Qe(d,2,3),Re(d,(0,W.firstValueFrom)(a.relationshipService.delete(c,1,b)),3);if(2!=d.nextAddress)return Se(d),a.issueFridge.poke(b),Te(d,0);Ue(d);wJ(a.butterBar,"Error removing the parent issue.");return d.jumpTo(3)})};
vW.\u0275fac=function(a){return new (a||vW)(B(cJ),B(qH,2),B(NG),B(BK),B(TK),B(FK),B(uJ))};
vW.\u0275cmp=u({type:vW,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[mg([qH]),Of],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&&(E(0,"div",
0),P(1,tKa,23,16,"ng-container",1),G());a&2&&(A(1),D("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[ey,gy,iy,jy,ky,sR,pC,tF,OQ,fO,GV,uW,tW],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 wW=function(){};wW.\u0275fac=function(a){return new (a||wW)};wW.\u0275mod=Yc({type:wW});wW.\u0275inj=Ic({imports:[vy,AF,uF,uG]});
var xW=function(){};xW.\u0275fac=function(a){return new (a||xW)};xW.\u0275mod=Yc({type:xW});xW.\u0275inj=Ic({providers:[{provide:LZb,useValue:vW}],imports:[vy,DR,AF,uG,gR,AO,cW,wW]});
var yW=function(a,b,c,d,e,f,h){Z.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=SAb;this.currentResourceType=this.currentResourceId=null;this.entrySelect=new sx;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new sx;this.getTextToPutInInputOnSelect=function(){return k.query}};
X(yW,Z);yW.\u0275dir=Z.\u0275dir;yW.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(of(250),Ef(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};yW.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(r(this.defaultChoices),r(this.asyncChoices)))};
var v0b=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(u0b(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return/[^0-9]/.test(b)?[]:[b]},u0b=function(a){return!a.some(function(b){return!!/[^0-9]/.test(b)})};yW.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
yW.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)w0b(this);else{var b=v0b(a);1===b.length||1<b.length&&this.allowMultipleIds?(this.lastSearchType="id",x0b(this,b,a)):(this.lastSearchType="query",this.searchAsync(a))}};
var w0b=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;y0b(a,[])},y0b=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||nt(c)},x0b=function(a,b,c){"issue"===a.currentResourceType&&1===b.length&&b[0]===String(a.currentResourceId)?(a.searchingForSelf=!0,w0b(a)):(a.choices=z0b(a,b),a.hasLoadedResults=!1,a.issueFridge.watchSet(b).pipe(sf(),Ef(a.destroyed$)).subscribe(function(d){if(a.currentQuery===c){var e=d.reduce(function(f,
h){var k=ta(h.snapshot);return f.set(h.issueId,{resourceId:h.issueId,displayText:k.title,status:k.status,relations:[]})},new Map);Na(b);d=b.map(function(f){return e.get(f)});d.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=d;a.choices=[].concat(r(a.choices),r(a.asyncChoices));y0b(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))};
yW.prototype.searchAsync=function(a){var b=this;this.choices=A0b(this,a);this.hasLoadedResults=!1;if(lj(a))this.hasLoadedResults=!0;else{var c=B0b(a,this.defaultChoices);this.relatedIssues.get({query:c,trackerId:this.currentTracker.trackerId$.value,resourceType:this.currentResourceType,resourceId:this.currentResourceId,nonParallelRequest:!0}).then(function(d){b.currentQuery===a&&(d=d.issueDigests.map(function(e){return{resourceId:e.issueId,displayText:e.title,status:e.status,relations:[]}}),b.choices=
[].concat(r(b.choices),r(d)),b.cdr.detectChanges())},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.hasLoadedResults=!0})}};var z0b=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},A0b=function(a,b){return lj(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};yW.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};
var zKa=function(a){return a.relations.map(function(b){return C0b.get(b)}).filter(function(b){return!!b}).join("/")},B0b=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};yW.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};ni.Object.defineProperties(yW.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
yW.\u0275fac=function(a){return new (a||yW)(B(qH,2),B(pI),B(FK),B(sW),B(xJ),B(RN),B(LJ))};
yW.\u0275cmp=u({type:yW,selectors:[["b-issue-picker"]],viewQuery:function(a,b){a&1&&zg(pM,5);if(a&2){var c;yg(c=Bg())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",enableAsyncSearch:"enableAsyncSearch",currentResourceId:"currentResourceId",currentResourceType:"currentResourceType",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[mg([sW,qH]),Of,ed],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&&(E(0,"div",0),P(1,uKa,3,0,"div",1),E(2,"div",2)(3,"input",
3),M("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))}),G(),E(4,"mat-autocomplete",4,5),M("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){y0b(b,[null==d.option?null:d.option.value])}),P(6,vKa,3,1,"mat-option",6),P(7,wKa,2,0,"mat-option",7),P(8,AKa,14,13,"mat-option",8),G()()());if(a&
2){var c=O(5);A(1);D("ngIf",b.searchingForSelf);A(2);D("ngModel",b.query)("matAutocomplete",c);Uf("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");A(1);D("displayWith",b.getTextToPutInInputOnSelect);A(2);D("ngIf",""!==b.query&&!b.hasLoadedResults);A(1);D("ngIf",""!==b.query&&!!b.hasLoadedResults&&0===b.choices.length);A(1);D("ngForOf",b.choices)}},dependencies:[fy,gy,fh,Ky,Ry,yD,qC,qM,pM,rC,vW,iM,jM,mM,kM,fM,mL],styles:["input[_ngcontent-%COMP%]{width:450px}.bv2-issue-picker-message[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}"]});
var C0b=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]),zW=function(){};zW.\u0275fac=function(a){return new (a||zW)};zW.\u0275mod=Yc({type:zW});zW.\u0275inj=Ic({imports:[vy,fz,vL,uF,AF,rM,xW,TM,RM]});
var D0b=new Md("GMAT_TABS_OPTION");
var AW=function(a){this.inkBarPositioner=a};AW.prototype.isEnabled=function(){return this.inkBarPositioner===BKa};AW.\u0275fac=function(a){return new (a||AW)(B(f_b))};AW.\u0275dir=u({type:AW,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("gmat-tabs",b.isEnabled())},features:[mg([{provide:f_b,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?BKa:b},deps:[Rd,[new nw,f_b],[new mw,D0b]]}])]});
var Bq=function(a){return{$implicit:a}},BW=function(a,b,c){Z.call(this);var d=this;this.issueLru=a;this.issueFridge=b;this.componentFridge=c;this.onSelect=new sx;this.onCancel=new sx;this.onSave=new sx;this.supportMultiSelect=!1;this.contextIssueId$=new W.BehaviorSubject(void 0);this.STATUS_TERSE=CG;this.searchControl=new Qy;this.viewIssues=ul;this.contextIssue$=this.contextIssueId$.pipe(Df(this.issueFridge.watch));this.contextComponentId$=this.contextIssue$.pipe(C(function(e){return null==e?void 0:
e.snapshot[0].componentId}));this.contextComponent$=this.contextComponentId$.pipe(Df(this.componentFridge.watch));this.selectedIds=new Set;this.recentIds=Array.from(this.issueLru.viewed.keys()).reverse().slice(0,7);this.recentIssues$=this.issueFridge.watchSet(this.recentIds);this.userQuery$=this.searchControl.valueChanges.pipe(of(200),Af({bufferSize:1,refCount:!0}));this.globalSearchResults$=this.userQuery$.pipe(Df(function(e){return""===e.trim()?(0,W.of)(void 0):d.issueFridge.watchMany({filter:e+
" AND status:open",sort:"modified_time:desc, vote_count:desc",pageSize:5}).pipe(Cf(void 0))}),C(function(e){return null==e?void 0:e.results}),C(function(e){return null==e?void 0:e.filter(function(f){return String(f.issueId)!==d.contextIssueId})}));this.myTeamResults$=this.userQuery$.pipe(Df(function(e){return""===e.trim()?(0,W.of)(void 0):d.issueFridge.watchMany({filter:"(componentid:1131+ | assignee:me | cc:me | reporter:me | commenter:me) AND ("+e+") AND status:open",sort:"modified_time:desc, vote_count:desc",
pageSize:5}).pipe(Cf(void 0))}),C(function(e){return null==e?void 0:e.results}),C(function(e){return null==e?void 0:e.filter(function(f){return String(f.issueId)!==d.contextIssueId})}));this.triggerComponentResults$=(0,W.combineLatest)([this.userQuery$,this.contextComponentId$]).pipe(Df(function(e){var f=n(e);e=f.next().value;f=f.next().value;return""===e.trim()?(0,W.of)(void 0):d.issueFridge.watchMany({filter:"componentid:"+f+"+ AND ("+e+") AND status:open",sort:"modified_time:desc, vote_count:desc",
pageSize:5}).pipe(Cf(void 0))}),C(function(e){return null==e?void 0:e.results}),C(function(e){return null==e?void 0:e.filter(function(f){return String(f.issueId)!==d.contextIssueId})}));this.maybeIds$=this.userQuery$.pipe(C(oLa));this.exactIdMatches$=this.maybeIds$.pipe(Df(function(e){return 0===e.length?(0,W.of)(void 0):d.issueFridge.watchSet(e).pipe(Cf(void 0))}),Ff(function(e){1===(null==e?void 0:e.length)?(e=e[0].issueId,d.selectedIds.clear(),d.selectedIds.add(e)):d.selectedIds.clear();E0b(d)}),
Cf(void 0));this.selectedTabIndex$=(0,W.combineLatest)([this.userQuery$.pipe(Cf(void 0)),this.exactIdMatches$.pipe(Cf(void 0),C(function(e){var f;return null!=(f=null==e?void 0:e.length)?f:0}))]).pipe(of(10),C(function(e){e=n(e);var f=e.next().value;f=void 0===f?"":f;return 0<e.next().value?2:""!==f.trim()?1:0}))};X(BW,Z);BW.\u0275dir=Z.\u0275dir;BW.prototype.convertIssueStatusStrToTag=function(a){return Ym[a]};
var hLa=function(a){a=a.snapshot[0].priority;if(null!=a)return Wra[a]},kLa=function(a){a=a.snapshot[0].status;if(null!=a)return Ym[a]},iLa=function(a){var b,c;return 0<(null!=(c=null==(b=a.aggregatedData)?void 0:b.voteCount)?c:0)},jLa=function(a){var b;return 0<(null!=(b=null==a?void 0:a.snapshot[0].duplicateIssueId)?b:[]).length},E0b=function(a){var b=a.selectedIds.keys();b=[].concat(r(b)).map(nLa);a.onSelect.emit(b)},gLa=function(a,b){a.selectedIds.has(b.issueId)?a.selectedIds.delete(b.issueId):
(a.supportMultiSelect||a.selectedIds.clear(),a.selectedIds.add(b.issueId));E0b(a)};ni.Object.defineProperties(BW.prototype,{contextIssueId:{configurable:!0,enumerable:!0,set:function(a){this.contextIssueId$.next(null!=a?a:void 0)},get:function(){return this.contextIssueId$.value}}});BW.\u0275fac=function(a){return new (a||BW)(B(KM),B(FK),B(ZJ))};
BW.\u0275cmp=u({type:BW,selectors:[["issue-picker-assistive"]],inputs:{supportMultiSelect:"supportMultiSelect",contextIssueId:"contextIssueId"},outputs:{onSelect:"onSelect",onCancel:"onCancel",onSave:"onSave"},features:[Of],decls:15,vars:12,consts:[[1,"search-field","margin-bottom"],["svgIcon","search",1,"icon-m"],["type","search","placeholder","Search by title, contents, or id",3,"formControl","keydown.enter"],["gmat-tabs","",3,"selectedIndex"],["label","Recently Viewed"],[4,"ngIf","ngIfElse"],["label",
"Search Results",4,"ngIf"],["label","IDs",4,"ngIf"],["issueRow",""],["loading",""],[4,"ngFor","ngForOf"],["class","border-top padded-s padded-left",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"border-top","padded-s","padded-left"],["routerLink","/recent",3,"click"],["label","Search Results"],["class","margin-left margin-top",4,"ngIf"],["class","margin-bottom",4,"ngIf","ngIfElse"],[1,"margin-left","margin-top"],[1,"muted"],[1,"margin-bottom"],[4,"ngIf"],[1,"subtle-link","muted",3,
"routerLinkObj","click"],["class","padded-s padded-left muted",4,"ngIf"],[1,"padded-s","padded-left","muted"],["label","IDs"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"padded-s","padded-left","display-block","clickable-row","flex-kids-x","align-items-start",3,"click"],[1,"nowrap"],["gmat-checkbox","",1,"margin-s-right",3,"checked","click","change"],[1,"margin-right","issue-id"],["href","javascript:void();",1,"type-m","issue-title",
"margin-s-right","break-word","subtle-link",3,"onedevHovercardTrigger","click"],["class","type-s margin-right muted",4,"ngIf"],[1,"margin-left-auto"],[3,"class",4,"ngIf"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""],[1,"type-s","margin-right","muted"]],template:function(a,b){a&1&&(E(0,"header",0),H(1,"mat-icon",1),E(2,"input",2),M("keydown.enter",function(){0!==b.selectedIds.size&&b.onSave.emit()}),G()(),E(3,"mat-tab-group",3),U(4,"async"),E(5,"mat-tab",4),P(6,GKa,3,2,"ng-container",5),
U(7,"async"),G(),P(8,XKa,13,18,"mat-tab",6),P(9,bLa,5,4,"mat-tab",7),U(10,"async"),G(),P(11,lLa,17,11,"ng-template",null,8,Hg),P(13,mLa,2,0,"ng-template",null,9,Hg));if(a&2){var c=O(14),d;A(2);D("formControl",b.searchControl);A(1);D("selectedIndex",V(4,6,b.selectedTabIndex$));A(3);D("ngIf",V(7,8,b.recentIssues$))("ngIfElse",c);A(2);D("ngIf",""!==(b.searchControl.value||"").trim());A(1);D("ngIf",""!==(b.searchControl.value||"").trim()&&(null==(d=V(10,10,b.maybeIds$))?null:d.length))}},dependencies:[fy,
gy,my,fN,YV,XV,AW,QH,OR,fh,Ky,Xy,yD,vW,iM,jM,mM,kM,ny],styles:[".search-field[_ngcontent-%COMP%]{position:relative;margin-left:8px;padding-top:1px}.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:30px}.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}.issue-id[_ngcontent-%COMP%]{display:inline-block;min-width:5em}.chippy[_ngcontent-%COMP%], .p-chip[_ngcontent-%COMP%]{margin-top:-2px;margin-bottom:-2px}.clickable-row[_ngcontent-%COMP%]{overflow:hidden}"]});
var CW=function(){};CW.\u0275fac=function(a){return new (a||CW)};CW.\u0275mod=Yc({type:CW});CW.\u0275inj=Ic({imports:[vy,bW]});
var DW=function(){};DW.\u0275fac=function(a){return new (a||DW)};DW.\u0275mod=Yc({type:DW});DW.\u0275inj=Ic({providers:[{provide:D0b,useValue:{enabled:!0}}],imports:[vy,AF,NC,uG,iN,bW,CW,UH,PR,fz,gz,vL,uF,AF,rM,xW,TM,RM]});
var F0b=new Md("XapHatsSurveyApiKey"),G0b=new Md("XapHatsSurveyLocale"),H0b=new Md("XapHatsSurveyWindow"),I0b=new Md("XapHatsSurveyListnrProductId");
var J0b=new Map([[0,1],[1,2]]),EW=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=qAb(sAb,"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 wG(h)};this.helpService=e?e.runOutsideAngular(f):f()},K0b=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 W.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(Df(function(f){return new W.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?J0b.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)})}))};EW.\u0275fac=function(a){return new (a||EW)(p(F0b),p(I0b),p(G0b,8),p(H0b,8),p(Mf,8))};EW.\u0275prov=Hc({token:EW,factory:EW.\u0275fac,providedIn:"any"});
var L0b=Aq.ISSUE_PICKER,zLa=so("opt-out-experiments")(),FW=function(a,b,c,d){this.dialogRef=a;this.params=c;this.activeSession=d;this.issueId$=fL(this.params,"issueId").pipe(rf());this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1,currentResourceId:null,currentResourceType:null};this.isQueryRestricted=!1;this.selectedIssues=[];this.data=Object.assign({},this.DEFAULTS,b);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.enableAssistivePicker=
ALa(this.data,this.activeSession)},wLa=function(a){if(""!==a.queryRestriction&&null!=a.issuePicker){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Do(a.queryRestriction)+" ?"),""):a.queryRestriction+" "+b}};FW.prototype.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};FW.prototype.onEnter=function(){0!==this.selectedIssues.length&&rLa(this)};FW.prototype.onEscape=function(){this.dialogRef.close()};
var rLa=function(a){var b;a.dialogRef.close([a.selectedIssues,null==(b=a.issuePicker)?void 0:b.lastSearchType])};FW.prototype.onPressCancel=function(){this.dialogRef.close()};FW.\u0275fac=function(a){return new (a||FW)(B(EC),B(HC),B(eL),B(NG))};
FW.\u0275cmp=u({type:FW,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&zg(yW,5);if(a&2){var c;yg(c=Bg())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&M("keydown.escape",function(){return b.onEscape()})},decls:12,vars:5,consts:[["mat-dialog-title",""],["class","muted",4,"ngIf"],["mat-dialog-content",""],[4,"ngIf","ngIfElse"],["classicPicker",""],["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,"muted"],[4,"ngFor","ngForOf"],[3,"contextIssueId","supportMultiSelect","onSelect","onCancel","onSave"],[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","enableAsyncSearch","currentResourceId","currentResourceType","allowMultipleIds","keydown.enter",
"entrySelect","queryChange"],[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",3,"matTooltip","click",
"keyup.space"]],template:function(a,b){a&1&&(E(0,"h2",0),Q(1),P(2,qLa,2,1,"span",1),G(),E(3,"div",2),P(4,sLa,3,4,"ng-container",3),P(5,yLa,7,10,"ng-template",null,4,Hg),G(),E(7,"div",5)(8,"button",6),M("click",function(){return b.onPressCancel()}),Q(9," Cancel "),G(),E(10,"button",7),M("click",function(){return rLa(b)}),Q(11," Confirm "),G()());if(a&2){var c=O(6);A(1);T(" ",b.data.title," ");A(1);D("ngIf",b.enableAssistivePicker);A(2);D("ngIf",b.enableAssistivePicker)("ngIfElse",c);A(6);D("disabled",
!b.selectedIssues.length)}},dependencies:[fy,gy,yW,BW,pC,KC,LC,MC,yD,tF,ny],encapsulation:2});var GW=function(a,b,c,d){this.dialog=a;this.analytics=b;this.hatsService=c;this.activeSession=d};
GW.prototype.open=function(a,b){var c=this,d={panelClass:"no-jitter",data:a};ALa(a,this.activeSession)&&(d.width="50vw",d.minWidth="600px");return new Promise(function(e){CC(c.dialog.open(FW,d)).subscribe(function(f){f=void 0===f?[]:f;var h,k=null!=(h=f[0])?h:[],q;f=null!=(q=f[1])?q:"";q=k.map(function(t){return t.resourceId});h=[a.originIsBulk?"bulk":void 0,1<q.length?"search-multi":"search",a.edgeType].filter(Boolean).join("-");Mo(c.analytics,L0b,h,f);null==b||b(q);e(k);c.activeSession.isInternalSession()&&
"id"===f&&K0b(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(sf()).subscribe()})})};GW.\u0275fac=function(a){return new (a||GW)(p(IC),p(BK),p(EW),p(NG))};GW.\u0275prov=Hc({token:GW,factory:GW.\u0275fac});var HW=function(){};HW.\u0275fac=function(a){return new (a||HW)};HW.\u0275mod=Yc({type:HW});HW.\u0275inj=Ic({providers:[GW],imports:[vy,zW,DW,AF,NC,uF,uG]});
var IW=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};IW.prototype.cancel=function(){this.dialogRef.close()};IW.prototype.save=function(){this.dialogRef.close(this.reporter)};IW.\u0275fac=function(a){return new (a||IW)(B(EC))};
IW.\u0275cmp=u({type:IW,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&&(E(0,"h1",0),Q(1,"Change Reporter"),G(),E(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),Q(5," Reporter "),G(),E(6,"input",1),M("ngModelChange",function(c){return b.reporter=
c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){"Enter"===c.key&&!b.autocompleteActive&&""!==b.reporter&&b.save()}),G()()(),E(7,"mat-dialog-actions")(8,"button",2),M("click",function(){return b.cancel()}),Q(9," Cancel "),G(),E(10,"button",3),M("click",function(){return b.save()}),Q(11," Save "),G()());a&2&&(A(6),D("bContactAutocomplete","SINGLE")("ngModel",b.reporter),A(4),D("disabled",""===b.reporter))},dependencies:[fh,Ky,Ry,pC,KC,LC,MC,XC,VC,$C,GT],encapsulation:2});
var M0b=["addCommentDialog"],JW=function(a,b,c,d,e,f,h,k,q,t,x,y){Z.call(this);this.cdr=a;this.activeSession=b;this.analytics=c;this.hotkeys=d;this.constants=e;this.componentActions=f;this.issueTypeDialog=h;this.copyIssueIdService=k;this.matDialog=q;this.$log=t;this.issuePicker=x;this.userPreferencesManager=y;this.currentUserEmail=this.activeSession.getUserEmail();this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new sx;this.onCreateHotlist=new sx;this.onLoadHotlist=new sx;this.externalWarnings=
[];this.enableRecaptcha=Cq(this.activeSession,"enableRecaptcha")&&Cq(this.activeSession,"enableBulkEditCaptchaUi");this.recaptchaResponse="";this.controllerName="baseControls"};X(JW,Z);var N0b=function(a){var b=new sQ,c;b.formattingMode=hj(null==(c=bI(a.userPreferencesManager).textDisplayPreferences)?void 0:c.lastPublishMode);return b};JW.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};
var O0b=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},BLa=function(a){return O0b(a)?"Mark as read":"Mark as unread"},Dq=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};JW.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=n(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()};
var P0b=function(a){if(!PG(a.activeSession)){a.externalWarnings=[];var b=new Set(a.getSelectedIssues().map(function(e){return e.componentId})),c={};b=n(b);for(var d=b.next();!d.done;c={$jscomp$loop$prop$id$1962:c.$jscomp$loop$prop$id$1962},d=b.next())c.$jscomp$loop$prop$id$1962=d.value,a.componentActions.get(c.$jscomp$loop$prop$id$1962).then(function(e){if(a.activeSession.isInternalSession()&&kW(e)||OG(a.activeSession)&&lW(e)){var f,h=c0b(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.$jscomp$loop$prop$id$1962+".")}}(c))}};
JW.prototype.bulkEdit=function(a){switch(a){case "ASSIGNEE":KW(this,null,0);break;case "COMPONENT":Q0b(this);break;case "VERIFIER":KW(this,null,1);break;case "REPORTER":R0b(this);break;case "CHANGELIST":LW(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":S0b(this);break;case "FOUND_IN":LW(this,"foundInVersion","Found In");break;case "VERIFIED_IN":LW(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":LW(this,"targetedToVersion","Targeted To");break;case "COMMENT":T0b(this);
break;case "CC":LW(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
JW.prototype.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=this.constants.protoIssuePrioritiesEnumStrings.get(a.newValue))&&MW(this,"priority",a);break;case "SEVERITY":(a=this.constants.protoIssueSeveritiesEnumStrings.get(a.newValue))&&MW(this,"severity",a);break;case "STATUS":(a=HAb(this.constants.protoIssueStatusesEnumStrings.get(a.newValue)))&&KW(this,io[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=this.constants.protoIssueTypesEnumStrings.get(a.newValue))&&MW(this,"type",a);
break;case "IS_ARCHIVED":MW(this,"isArchived",""+a.newValue);break;case "IN_PROD":MW(this,"inProd",""+a.newValue);break;case "CC":MW(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+a.field)}};
JW.prototype.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?NW(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):NW(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?NW(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):
NW(this,{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?NW(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):NW(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":KW(this,io.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+
a.issueRelation)}};JW.prototype.bulkMarkIssueRead=function(){var a=O0b(this);MW(this,"readState",a?"true":"")};
var MW=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=Dq(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&&gQ(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&gQ(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},KW=function(a,b,c){a.hasSelectedIssues()&&(P0b(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},U0b=function(a){var b=a.onSave,c=b.emit,d=Dq(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||DJa(e);e=n(SJa(e));for(var h=e.next();!h.done;h=e.next()){var k=n(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})},R0b=
function(a){a.hasSelectedIssues()&&(P0b(a),CC(a.matDialog.open(IW,{width:"400px"})).pipe(Ef(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&MW(a,"reporter",b)}),a.hotkeys.pause())},LW=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(CC(a.matDialog.open(oW,{width:"400px",data:{fieldDisplayName:c}})).pipe(Ef(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&V0b(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},V0b=function(a,b,c,d,e){e=void 0===e?!1:e;c=kj(c);d=
kj(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return cj(q,h).map(function(t){return t.trim()})};lj(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),f.push.apply(f,r(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));lj(d)||(d=k(d),f.push.apply(f,r(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Dq(a),actions:f}]})},Q0b=function(a){a.hasSelectedIssues()&&
(CC(a.matDialog.open(nW,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Ef(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Dq(a),actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),Mo(a.analytics,a.controllerName,"bulkMove"))}),a.hotkeys.pause())},W0b=function(a){a.hasSelectedIssues()&&(CC(a.matDialog.open(mW,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(Ef(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();
b&&(Mo(a.analytics,a.controllerName,"bulkFlagAsSpam"),MW(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},T0b=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.comment||(a.comment=N0b(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),CC(a.addCommentDialogRef).pipe(Ef(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&mOb(a.comment)&&MW(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),
P0b(a))},ILa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},S0b=function(a){a.hasSelectedIssues()&&CC(a.matDialog.open(zO,{data:a.getSelectedIssues(),width:"500px"})).pipe(Ef(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),Mo(a.analytics,a.controllerName,"bulkCustomField"))})};
JW.prototype.handleHotlistPickerSave=function(a){var b=a.oldSelectionMap,c=[],d=[],e=0;Object.entries(a.newSelectionMap).forEach(function(f){var h=n(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:Dq(this),actions:a}]}),Mo(this.analytics,this.controllerName,"applyHotlists",
"numHotlists",e))};var NW=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:Dq(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};JW.\u0275fac=function(a){return new (a||JW)(B(qH),B(NG),B(BK),B(iI),B(VG),B(ZR),B(fQ),B(LR),B(IC),B(WH),B(GW),B(aI))};
JW.\u0275dir=u({type:JW,viewQuery:function(a,b){a&1&&(zg(M0b,5),zg(pW,5),zg(jW,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:[Of]});
var OW=function(){};OW.\u0275fac=function(a){return new (a||OW)};OW.\u0275mod=Yc({type:OW});OW.\u0275inj=Ic({providers:[{provide:tXb,useFactory:function(){return new qXb}}]});
var PW=function(){};PW.\u0275fac=function(a){return new (a||PW)};PW.\u0275mod=Yc({type:PW});PW.\u0275inj=Ic({imports:[vy,OW]});
var QW=function(){};QW.\u0275fac=function(a){return new (a||QW)};QW.\u0275mod=Yc({type:QW});QW.\u0275inj=Ic({providers:[{provide:sXb,useFactory:LU}],imports:[vy,AF,uF,uG,PW,vL]});
var RW=function(){};RW.\u0275fac=function(a){return new (a||RW)};RW.\u0275mod=Yc({type:RW});RW.\u0275inj=Ic({imports:[vy,gW,$G,uG,GL,cW,QW,AF,uF]});
var SW=function(){};SW.\u0275fac=function(a){return new (a||SW)};SW.\u0275mod=Yc({type:SW});SW.\u0275inj=Ic({});
var TW=function(){};TW.\u0275fac=function(a){return new (a||TW)};TW.\u0275mod=Yc({type:TW});TW.\u0275inj=Ic({imports:[vy,NC,DR,fz,AF,$G,pF,HT,RW,SW]});
var UW=function(){};UW.\u0275fac=function(a){return new (a||UW)};UW.\u0275mod=Yc({type:UW});UW.\u0275inj=Ic({imports:[vy,pF,AF,aD,fz,YB,uG,aH,pO,$G]});
var VW=function(a,b,c,d,e,f,h,k,q,t,x,y){JW.call(this,a,b,c,d,e,f,h,k,q,t,x,y);this.panels=[];this.isNonPublicSession=this.activeSession.isNonPublicSession();this.enableBulkEditUi=Cq(this.activeSession,"enableBulkEditUi");this.controllerName="dashboardControls"};X(VW,JW);VW.\u0275dir=JW.\u0275dir;VW.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
VW.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Na(a,null,function(b){return b.issueId.toString()});return a};VW.\u0275fac=function(a){return new (a||VW)(B(qH,2),B(NG),B(BK),B(iI),B(VG),B(ZR),B(fQ),B(LR),B(IC),B(WH),B(GW),B(aI))};
VW.\u0275cmp=u({type:VW,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[mg([qH]),Of,ed],decls:7,vars:5,consts:[[3,"readStatePrompt","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","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,CLa,1,1,"b-app-bar-bulk-edit-menus",0),P(1,
GLa,1,2,"b-copy-issue-id-button",1),P(2,HLa,2,2,"div",2),E(3,"b-app-bar-more-menu",3),M("flagAsSpamClicked",function(){return W0b(b)}),G(),E(4,"b-state-modal",4),M("save",function(){return U0b(b)})("close",function(){return b.hotkeys.unpause()}),G(),P(5,NLa,11,6,"ng-template",null,5,Hg));a&2&&(D("ngIf",b.hasSelectedIssues()),A(1),D("ngIf",b.hasSelectedIssues()),A(1),D("ngIf",b.enableBulkEditUi&&b.hasSelectedIssues()),A(1),D("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),A(1),
D("externalWarnings",b.externalWarnings))},dependencies:[YG,XG,hW,fy,gy,sR,HR,pW,pC,JC,KC,LC,MC,jW,iW],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var WW=function(){};WW.\u0275fac=function(a){return new (a||WW)};WW.\u0275mod=Yc({type:WW});WW.\u0275inj=Ic({imports:[bH,GL,RW,vy,DR,KR,UW,$G,AF,NC,TW,SW]});
var XW=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)},X0b=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}});["REPEATED_TEXT","REPEATED_DATE",
"REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},YW=function(a,b){this.dirty=!1;var c=b.snapshot||{};this.customFields=a;this.new=null==b.templateId;this.name=b.name||"";this.description=b.description||"";this.type=c.type||"--";this.priority=c.priority||"--";this.severity=c.severity||"--";this.assignee=Ul(c.assigneeUser)||"";this.verifier=Ul(c.verifierUser)||"";this.cc=Sl(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=n(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=new wm(b);a=n(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=n(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=null!=c.typedDefaultValue?
new wm(c.typedDefaultValue):new wm({customFieldId:b}))},Z0b=function(a,b,c){b.name=a.name;b.description=a.description;var d=b.snapshot||{};Y0b(a.type)?delete d.type:d.type=a.type;Y0b(a.priority)?delete d.priority:d.priority=a.priority;Y0b(a.severity)?delete d.severity:d.severity=a.severity;d.assigneeUser=Zl(a.assignee);d.verifierUser=Zl(a.verifier);d.ccUsers=a.cc.map(function(f){return Zl(f)});d.comment=a.comment;d.formattingMode=a.formattingMode;d.title=a.title;d.hotlistId=a.hotlistId;d.inProd=a.inProd;
d.customField=[];c&&(d.issueAccessLimitLevel=a.issueAccessLimitLevel);c=n(Object.keys(a.customFields));for(var e=c.next();!e.done;e=c.next())(e=a.customFieldValues[e.value])&&!e.isEmpty()&&d.customField.push(e);b.snapshot=d};
YW.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){case "UNKNOWN":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:Ai(c,"Unexpected custom field type: "+c)}}this.dirty=!0};YW.prototype.isDirty=function(){return this.dirty};YW.prototype.setFormattingMode=function(a){this.formattingMode=a;this.dirty=!0};YW.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;this.dirty=!0};
var Y0b=function(a){return lj(a)||"--"===a},qMa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()});a.dirty=!0},$0b={value:"--",displayText:"--"};
var a1b=new gD("M/d/yyyy"),ZW=function(a){this.dateFormatter=a;this.boundValueChange=new sx;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};ZW.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if("string"===typeof this.boundValue)var a=Yi(this.boundValue);else{var b;a=null!=(b=lm(this.boundValue))?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
ZW.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=a1b.format(a);else{var d;a=null!=(d=AEb(a1b.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):""}};ZW.\u0275fac=function(a){return new (a||ZW)(B(YN))};
ZW.\u0275cmp=u({type:ZW,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&&(E(0,"b-date-time-input",0),M("valueChange",function(c){return b.change(c)}),G());a&2&&D("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[kO],encapsulation:2});
var b1b={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"},c1b=new Md("routes",{providedIn:"root",factory:function(){return b1b}}),$W=function(a){this.routes=a};g=$W.prototype;g.createIssue=function(a){return Eq(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Fq(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return Eq(this.routes.LIST_ISSUES,{params:a})};g.viewSavedSearch=function(a){return Fq(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};
g.viewHotlist=function(a){return Fq(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return Eq(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 Fq(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};g.editBookmarkGroup=function(a){return Eq(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};
g.editSavedSearch=function(a){return Eq(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return Eq(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=OLa(c);return IE("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=OLa(c))&&(c="position,"+c);return IE(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 Eq(this.routes.LIST_COMPONENTS,{params:void 0})};g.viewComponent=function(a,b){return Fq(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Fq(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};
g.createComponent=function(a){return Eq(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return Eq(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return Eq(this.routes.CREATE_SLO,{params:void 0})};g.editSlo=function(a){return Eq(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return Eq(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};$W.\u0275fac=function(a){return new (a||$W)(p(c1b))};
$W.\u0275prov=Hc({token:$W,factory:$W.\u0275fac,providedIn:"root"});
var aX=function(a){this.pathBuilder=a;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new sx};aX.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};aX.\u0275fac=function(a){return new (a||aX)(B($W))};
aX.\u0275cmp=u({type:aX,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,QLa,9,11,"ng-container",0);a&2&&D("ngIf",b.hotlist)},dependencies:[gy,iM,mM,cM,yD,pC],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 d1b={accessLevel:"LIMIT_NONE",title:"Default access",description:"Issue access is determined by the component settings",icon:"acl-alias-domain"},e1b=[d1b,{accessLevel:"LIMIT_APPEND",title:"Limited commenting",description:"Only user added to issue may edit issue or comment",icon:"comments_disabled_24px"},{accessLevel:"LIMIT_VIEW",title:"Limited visibility",description:"Only user added to issue may edit or view issue",icon:"visibility-off"},{accessLevel:"LIMIT_VIEW_TRUSTED",title:"Limited visibility + Google",
description:"Only user added to issue and Googler may edit or view issue",icon:"visibility-off"}];
var bX=function(){Z.apply(this,arguments);var a=this;this.defaultAccessLimitLevel$=new W.ReplaySubject(1);this.updatedAccessLimitLevel=new sx;this.selectedDisplay$=new W.BehaviorSubject(null);this.displays=e1b;this.currentIssueAccessLimitLevelDisplay$=(0,W.combineLatest)([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(C(function(b){b=n(b);var c=b.next().value;b=b.next().value;if(c)return c;c=n(a.displays);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.accessLevel===b)return d;return d1b}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(C(function(b){return b.title}))};X(bX,Z);bX.\u0275dir=Z.\u0275dir;ni.Object.defineProperties(bX.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});bX.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(bX)))(b||bX)}}();
bX.\u0275cmp=u({type:bX,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},features:[Of],decls:11,vars:5,consts:[[1,"access-limits-dropdown"],["mat-button","","mat-stroked-button","","dropdown-menu-button","","type","button",1,"gmat-button","small",3,"matMenuTriggerFor"],[1,"selected-access-limit-level-title"],["svgIcon","acl-alias-domain",1,"icon-s"],[1,"selected-access-limit-level-title-text"],
["name","arrow-dropdown","size","small"],[1,"access-limit-level-options"],["accessLimitsMenu","matMenu"],["mat-menu-item","","class","access-limit-level-option",3,"click",4,"ngFor","ngForOf"],["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&&(E(0,"div",0)(1,"button",1)(2,"span",2),H(3,"mat-icon",3),E(4,"span",4),Q(5),U(6,"async"),
G()(),H(7,"b-icon",5),G(),E(8,"mat-menu",6,7),P(10,RLa,7,3,"div",8),G()());if(a&2){var c=O(9);A(1);D("matMenuTriggerFor",c);A(4);T(" ",V(6,3,b.issueAccessLimitLevelDisplayTitle$)," ");A(5);D("ngForOf",b.displays)}},dependencies:[fy,pC,yD,oF,mF,nF,QG,ny],styles:[".access-limits-dropdown[_ngcontent-%COMP%]{padding:5px 0px}.access-limits-dropdown[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}.access-limit-level-option[_ngcontent-%COMP%]{padding:10px 0px}.access-limit-level-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg);cursor:pointer}.access-limit-level-title[_ngcontent-%COMP%]{padding:0px 10px;white-space:nowrap}.access-limit-level-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}.access-limit-level-description[_ngcontent-%COMP%]{padding:0px 32px;color:#5f6368;color:var(--text-muted)}.selected-access-limit-level-title[_ngcontent-%COMP%]{color:#202124;color:var(--text-default);font-size:small}"]});
var f1b=["input"],g1b=0,h1b=function(a,b){this.source=a;this.value=b},i1b=new Md("MatRadioGroup"),j1b=new Md("mat-radio-default-options",{providedIn:"root",factory:SLa}),cX=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+g1b++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=function(){};this.onTouched=function(){};this.change=new sx};g=cX.prototype;
g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};g.ngAfterContentInit=function(){this._isInitialized=!0};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 h1b(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()};
ni.Object.defineProperties(cX.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=rh(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=rh(a);this._markRadiosForCheck()}}});
cX.\u0275fac=function(a){return new (a||cX)(B(Xx))};cX.\u0275dir=u({type:cX,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});
var k1b=pi(si(function(a){this._elementRef=a})),dX=function(a,b,c,d,e,f,h,k){b=k1b.call(this,b)||this;b._changeDetector=c;b._focusMonitor=d;b._radioDispatcher=e;b._providerOverride=h;b._uniqueId="mat-radio-"+ ++g1b;b.id=b._uniqueId;b.change=new sx;b._checked=!1;b._value=null;b._removeUniqueSelectionListener=function(){};b.radioGroup=a;b._noopAnimations="NoopAnimations"===f;k&&(b.tabIndex=uh(k,0));return b};X(dX,k1b);g=dX.prototype;
g.focus=function(a,b){b?tz(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 h1b(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._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)}};
ni.Object.defineProperties(dX.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=rh(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(rh(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=rh(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"}}});dX.\u0275fac=function(){Vd()};
dX.\u0275dir=u({type:dX,viewQuery:function(a,b){a&1&&zg(f1b,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:[Of]});
var l1b=function(a){return{enterDuration:a}},m1b={provide:xy,useExisting:Fc(function(){return eX}),multi:!0},eX=function(){cX.apply(this,arguments)};X(eX,cX);eX.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(eX)))(b||eX)}}();
eX.\u0275dir=u({type:eX,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&Ag(c,fX,5);if(a&2){var d;yg(d=Bg())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[mg([m1b,{provide:i1b,useExisting:eX}]),Of]});var fX=function(a,b,c,d,e,f,h,k){return dX.call(this,a,b,c,d,e,f,h,k)||this};X(fX,dX);fX.\u0275dir=dX.\u0275dir;fX.\u0275fac=function(a){return new (a||fX)(B(i1b,8),B(Rd),B(Xx),B(sz),B(kB),B(Ew,8),B(j1b,8),Ad("tabindex"))};
fX.\u0275cmp=u({type:fX,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(a,b){a&1&&M("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(Uf("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Zf("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:[Of],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&&(fg(),E(0,"label",0,1)(2,"span",2),H(3,"span",3)(4,"span",4),E(5,"input",5,6),M("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),G(),E(7,"span",7),H(8,"span",8),G()(),E(9,"span",9)(10,"span",10),Q(11,"\u00a0"),G(),gg(12),G()());if(a&2){var c=O(1);Uf("for",b.inputId);A(5);
D("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);Uf("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);A(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",og(17,l1b,b._noopAnimations?0:150));A(2);Zf("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[UB],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 n1b=["saveBeforeClosingDialog"],o1b=["deleteDialog"],kMa=function(){return[]},gX=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){Z.call(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=t;this.componentActions=x;this.documentationLinks=y;this.appEvents=F;this.activeSession=K;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.enableIssueAccessLimits=Cq(this.activeSession,"enableIssueAccessLimits");this.FieldType=pVb;this.customFieldIds=Object.create(null);this.issueTypeChoices=p1b(this);this.priorityChoices=q1b(this);this.severityChoices=r1b(this)};
X(gX,Z);gX.\u0275dir=Z.\u0275dir;g=gX.prototype;g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();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(){s1b(a);a.cdr.detectChanges()})};
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)});Pa(this.selectedHotlists,function(c,d){return gv(c.name,d.name)})};g.removeHotlist=function(a){Ea(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;Mo(this.analytics,"editTemplate","createHotlist");vJ(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){vJ(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;Yb(a.newSelectionMap,function(d,e){e=Xi(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],ya(d,e)||d.push(e)):!d&&f&&Ea(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=n(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&&Ea(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var p1b=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:yG(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[$0b].concat(b)};gX.prototype.getDateValue=function(a){return a};gX.prototype.getListFieldType=function(a){return a};
var nMa=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},cMa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?gQ(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)},q1b=function(a){return[$0b].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},r1b=function(a){return[$0b].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))};gX.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,null!==c?c:void 0)};
var Hq=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;hX(a)},WLa=function(a,b){var c=a.currentIndex;t1b(a,function(){b.index===c?Hq(a):a.openEditor(b.index)})},u1b=function(a){a.templateHotlistIds.push([]);t1b(a,function(){a.openEditor()})},Gq=function(a,b){return 0<=b.index&&b.index===a.currentIndex},rMa=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(q){vJ(a.butterBar,
q.name?'Template "'+q.name+'" created.':"Template created.");Mo(a.analytics,"template","create");a.templates.push(q);a.openEditor(a.templates.length-1)}}else{b="updating";var e=a.currentIndex;c=a.templates[e];d=function(q){vJ(a.butterBar,q.name?'Template "'+q.name+'" updated.':"Template updated.");Mo(a.analytics,"template","update");a.templates[e]=q;Hq(a)}}a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];Z0b(a.currentTemplate,c,a.enableIssueAccessLimits);vJ(a.butterBar,"Saving template...");
var f=c,h=f.componentId,k=f.templateId;c.snapshot&&c.snapshot.ccUsers&&(c.snapshot.ccUsers=c.snapshot.ccUsers.filter(function(q){return null!=q}));return(k&&"0"!==String(k)?a.templatesApi.update(h,k,f):a.templatesApi.create(h,f)).then(function(q){a.appEvents.templateModified.next(String(a.componentId));d(q);a.cdr.detectChanges()}).catch(function(q){q=Xn(q);wJ(a.butterBar,q?"Error "+b+" template: "+q:"There was an error "+b+" the template.",0)})},XLa=function(a,b){CC(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(Ef(a.destroyed$)).subscribe(function(c){c&&v1b(a,b)})},v1b=function(a,b){var c=b.index;Ba(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(vJ(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));vJ(a.butterBar,"Deleted template");Mo(a.analytics,"template","delete");a.templates.splice(c,1);a.currentIndex===c?Hq(a):hX(a);a.cdr.detectChanges()}).catch(function(){wJ(a.butterBar,
"Error while deleting template")}))},x1b=function(a,b){b?rMa(a).then(function(){w1b(a);a.cdr.detectChanges()}):w1b(a)},YLa=function(a,b){var c;b=(null==(c=b.template)?void 0:c.templateId)||0;return a.paths.getBaseUrl()+"/"+a.paths.createIssue()+"?component="+a.componentId+"&template="+b};
gX.prototype.openEditor=function(a){var b=this;this.currentIndex=void 0===a?-1:a;if(0>this.currentIndex){this.currentTemplate=y1b(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();hX(this);this.cdr.detectChanges();var c;null==(c=document.getElementById("template-name"))||c.focus()}else z1b(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=y1b(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
hX(b);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var z1b=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},t1b=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,A1b(a)):b()},A1b=function(a){CC(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(Ef(a.destroyed$)).subscribe(function(b){void 0!==b&&x1b(a,b)})},w1b=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},y1b=function(a,b){return new YW(a.customFieldIds,b)};
gX.prototype.loadCustomFields=function(){var a=this;this.customFieldRows=[];this.customFieldIds={};return this.supportCustomFields?this.componentActions.get(this.componentId).then(function(b){b=n(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 X0b(c,"TEXT"===c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){wJ(a.butterBar,"Unable to load custom fields")}):
Promise.resolve()};gX.prototype.loadTemplates=function(){var a=this;this.templates=[];return this.templatesApi.query(this.componentId).then(function(b){a.templates=b;b=n(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(){wJ(a.butterBar,"Unable to load templates")})};
var s1b=function(a){hX(a);a.defaultIndex=a.templates.findIndex(function(b){return b.default})},hX=function(a){if(0>a.currentIndex)a.templateRows=a.templates.map(function(e,f){return new XW(f,e)}),a.currentTemplate&&(a.currentTemplateRow=new XW(-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 XW(f,e)}));a.currentTemplate&&(a.currentTemplateRow=
new XW(b,a.currentTemplate),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new XW(b+f+1,e)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},B1b=function(a,b,c){return z1b(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})},VLa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],
c=b.name,lj(kj(c))&&(c="(unnamed template)"),b.default||(b=B1b(a,b,function(d){d.default=!0}),vJ(a.butterBar,"Changing default template..."),b.then(function(){vJ(a.butterBar,"Changed default template to "+c)},function(d){wJ(a.butterBar,"Error while changing default message"+(Wn(d)?": "+Xn(d):"."))}),Mo(a.analytics,"template","changeDefault")))}};gX.\u0275fac=function(a){return new (a||gX)(B(IC),B(qH,2),B(oK),B(cK),B(TI),B(VG),B(pI),B(uJ),B(BK),B(fQ),B(ZR),B(QN),B(eJ),B(NG))};
gX.\u0275cmp=u({type:gX,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(zg(n1b,5),zg(o1b,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:[mg([qH]),Of],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(";"),["class","cell-1",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-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"],["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"],[3,"defaultAccessLimitLevel","updatedAccessLimitLevel"],["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&&(E(0,"div")(1,"div",0),Q(2," A template is a set of default values for new issues created in this component. "),E(3,"a",1),Q(4,"Learn more"),G()(),E(5,"table",2)(6,"tr")(7,"th"),Q(8,"TEMPLATE"),G(),E(9,"th",3),Q(10,"DEFAULT"),G(),H(11,"th",3)(12,"th",3),G(),P(13,tMa,3,
2,"tr",4),G(),E(14,"div",5)(15,"b-button",6),M("onAction",function(){return u1b(b)}),Q(16," Create New "),G()(),P(17,uMa,7,3,"ng-template",null,7,Hg),P(19,vMa,9,4,"ng-template",null,8,Hg),G());a&2&&(A(3),D("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",le),A(10),D("ngForOf",b.templateRows))},dependencies:[FL,fy,gy,iy,jy,ky,KT,fh,Ty,Ky,Ry,aX,pW,ZW,fU,pC,JC,LC,MC,fX,lS,GT,tF,QG,oF,mF,nF,bX],encapsulation:2});
var iX=function(){};iX.\u0275fac=function(a){return new (a||iX)};iX.\u0275mod=Yc({type:iX});iX.\u0275inj=Ic({imports:[vy,IO]});
var jX=function(a,b){this.hotlists=a;this.userAccess=b;this.id$=new W.ReplaySubject(1);this.removeHotlist=new sx;this.removable=!0;this.hotlist$=this.id$.pipe(Df(this.hotlists.watch));this.isDisabled$=(0,W.combineLatest)([this.id$,this.id$.pipe(Df(this.hotlists.isSaving$))]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return null==c?!1:d?!0:!1}))};
jX.prototype.ngOnInit=function(){var a=this;this.removable$="check-acl"===this.removable?this.id$.pipe(Df(function(b){return TJ(a.userAccess,"appender","hotlists/"+b)})):(0,W.of)(this.removable)};ni.Object.defineProperties(jX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});jX.\u0275fac=function(a){return new (a||jX)(B(sK),B(SJ))};
jX.\u0275cmp=u({type:jX,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&&(E(0,"b-hotlist-chip",0),M("removeHotlist",function(){null==b.idInternal?ll("Missing id"):b.removeHotlist.emit()}),U(1,"async"),U(2,"async"),U(3,"async"),G());if(a&2){var c;D("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:[aX,ny],encapsulation:2,changeDetection:0});
var kX=function(){};kX.\u0275fac=function(a){return new (a||kX)};kX.\u0275mod=Yc({type:kX});kX.\u0275inj=Ic({imports:[vy,TM,OM,uF,AF]});
var lX=function(){};lX.\u0275fac=function(a){return new (a||lX)};lX.\u0275mod=Yc({type:lX});lX.\u0275inj=Ic({imports:[vy,AF,uF,pF,$G]});
var mX=function(){};mX.\u0275fac=function(a){return new (a||mX)};mX.\u0275mod=Yc({type:mX});mX.\u0275inj=Ic({imports:[XB,HB,HB]});
var nX=function(){};nX.\u0275fac=function(a){return new (a||nX)};nX.\u0275mod=Yc({type:nX});nX.\u0275inj=Ic({imports:[GL,vy,LT,fz,kX,UW,iX,gU,AF,NC,mX,mS,vL,HT,xR,sC,uG,$G,pF,lX]});
var oX=function(a,b,c,d,e){this.appSearchState=b;this.analytics=c;this.domSafe=d;this.currentTracker=e;this.enableEstado=Cq(a,"enableEstado")};oX.prototype.openInEstado=function(){Mo(this.analytics,"listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};oX.\u0275fac=function(a){return new (a||oX)(p(NG),p(IM),p(BK),p(RN),p(LJ))};oX.\u0275prov=Hc({token:oX,factory:oX.\u0275fac,providedIn:"root"});
var pX=function(a){Y.call(this,a)};X(pX,Y);pX.prototype.getMetric=function(){return qj(this,1,0)};pX.prototype.getMatcher=function(){return Pi(this,2)};pX.prototype.setMatcher=function(a){m(this,2,a)};
var C1b=[1,2,3],kSa=new Map([[1,"Assignment"],[2,"Response"],[3,"Closure"]]),D1b=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),oSa=new Map([[0,"Calendar"],[1,"Calendar"],[2,"Business"]]);
var Um=function(a){Y.call(this,a)};X(Um,Y);Um.prototype.getComponentId=function(){return Aj(this,1)};Um.prototype.setComponentId=function(a){return Fb(this,1,a,0)};Um.prototype.getEffectiveSloEditPolicy=function(){return qj(this,2,0)};
var E1b=function(a){Y.call(this,a)};X(E1b,Y);E1b.messageId="b.GetComponentSloEditPolicyResponse";
var F1b=function(a){Y.call(this,a)};X(F1b,Y);F1b.prototype.getTeamSloEditPolicy=function(){return Ub(this,FI,1)};F1b.messageId="b.GetTeamSloEditPolicyResponse";
var qX=function(a){Y.call(this,a,-1,G1b)};X(qX,Y);g=qX.prototype;g.getSloId=function(){return uj(this,1)};g.setSloId=function(a){return m(this,1,a)};g.getVersion=function(){return Ji(this,2)};g.setVersion=function(a){return m(this,2,a)};g.getVersionOrUndefined=function(){return uv(this,2)};g.getName=function(){return Pi(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};
g.getDescription=function(){return Pi(this,4)};g.setDescription=function(a){return m(this,4,a)};g.hasDescription=function(){return Oi(this,4)};g.getParentId=function(){return uj(this,5)};g.setParentId=function(a){m(this,5,a)};var Ht=function(a){return Nb(a,pX,6)};qX.prototype.getIsArchived=function(){return oj(this,8)};qX.prototype.setIsArchived=function(a){m(this,8,a)};var G1b=[6,7];qX.messageId="b.SloState";
var I1b=function(a){Y.call(this,a,-1,H1b)};X(I1b,Y);var H1b=[1];I1b.messageId="b.SloSearchResponse";
var J1b=function(a){Y.call(this,a)};X(J1b,Y);J1b.prototype.getTeamSloEditPolicy=function(){return Ub(this,FI,1)};J1b.messageId="b.UpdateTeamSloEditPolicyResponse";
var rX=function(a,b){this.activeSession=a;this.executor=b};g=rX.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:qX})};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:I1b}).pipe(C(function(b){return Nb(b,qX,1)}))};
g.create=function(a){return this.executor.post({url:"action/slos",body:a,responseConstructor:qX})};g.update=function(a){var b=a.getSloId();return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:qX})};rX.\u0275fac=function(a){return new (a||rX)(p(NG),p(lH))};rX.\u0275prov=Hc({token:rX,factory:rX.\u0275fac,providedIn:"root"});var sX=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=sX.prototype;g.get=function(a){var b=this.slosCache.get(a);return void 0!==b?b:this.slosCache.put(String(a),(0,W.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,W.firstValueFrom)(this.observableSlosService.getOwnedSlos())};g.search=function(a){return(0,W.firstValueFrom)(this.observableSlosService.search(a))};g.create=function(a){return(0,W.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,W.firstValueFrom)(this.observableSlosService.update(a))};
sX.\u0275fac=function(a){return new (a||sX)(p(BI),p(rX))};sX.\u0275prov=Hc({token:sX,factory:sX.\u0275fac,providedIn:"root"});
var tX=function(a,b){this.sloStatusHelpersService=a;this.dateFormatter=b;this.timeDisplayText="--";this.objectiveDisplayText=null;this.iconName="slo-status-no-data"};tX.prototype.getIconName=function(a){return K1b.has(a)?K1b.get(a):"slo-status-no-data"};
var L1b=function(a,b,c){a.iconName=a.getIconName(b);c=null!==c?aMb(1E3*c).match(/^(\d+\s\D+)(?:\s|$)/)[1]:"";switch(b){case "COMPLETED":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"Issue assigned":"RESPONSE"===a.sloMetricDescription?"Response recorded":"CLOSURE"===a.sloMetricDescription?"Issue closed":"fulfilled";break;case "SNOOZED_NEAR":case "SNOOZED_HEALTHY":case "HEALTHY":case "NEAR":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" to assign":"RESPONSE"===a.sloMetricDescription?
c+" to respond":"CLOSURE"===a.sloMetricDescription?c+" to close":c+" left";break;case "OUT_OF_SLO":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?c+" overdue for assignment":"RESPONSE"===a.sloMetricDescription?c+" overdue for response":"CLOSURE"===a.sloMetricDescription?c+" overdue for closure":c+" overdue";break;case "NO_DATA":a.timeDisplayText="ASSIGNMENT"===a.sloMetricDescription?"No assignment SLO":"RESPONSE"===a.sloMetricDescription?"No response SLO":"CLOSURE"===a.sloMetricDescription?
"No closure SLO":"--";break;default:ll("unknown status type: "+b)}};
tX.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&xQ(this.sloBounds)){var b=this.sloBounds.getStartTime().getSeconds(),c=Ub(this.sloBounds,Cj,3).getSeconds();(b=c-b)?this.objectiveDisplayText=aMb(1E3*b):this.objectiveDisplayText=null;b=this.sloBounds;xQ(b)&&vj(b,Cj,2)&&0!==Ub(b,Cj,2).getSeconds()&&Ub(b,Cj,2).getSeconds()<=Date.now()/1E3?(c=Ub(this.sloBounds,Cj,2).getSeconds(),L1b(this,"COMPLETED",a-c)):c<a?L1b(this,"OUT_OF_SLO",a-c):(b=this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil),
a=c-a,L1b(this,259200<a?b?"SNOOZED_HEALTHY":"HEALTHY":b?"SNOOZED_NEAR":"NEAR",a))}else L1b(this,"NO_DATA",null),this.objectiveDisplayText=null};tX.\u0275fac=function(a){return new (a||tX)(B(wQ),B(eO))};
tX.\u0275cmp=u({type:tX,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloSnoozeUntil:"sloSnoozeUntil",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[ed],decls:5,vars:5,consts:[[3,"ngClass","svgIcon"],[1,"slo-time-indicator-text"],[1,"slo-status-text"],[4,"ngIf"]],template:function(a,b){a&1&&(H(0,"mat-icon",0),E(1,"span",1)(2,"span",2),Q(3),P(4,wMa,2,1,"span",3),G()());a&2&&(D("ngClass",b.iconName)("svgIcon",
b.iconName),Uf("aria-label","--"===b.timeDisplayText?"No SLO data":""),A(3),T("",b.timeDisplayText," "),A(1),D("ngIf",b.includeObjective&&b.objectiveDisplayText))},dependencies:[ey,gy,yD],styles:[".slo-time-indicator-text[_ngcontent-%COMP%]   span.slo-status-text[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}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 K1b=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 uX=function(a){this.sloStatusHelpersService=a;this.includeNoSlo=!1};uX.prototype.ngOnInit=function(){M1b(this);this.hasSlo=!!this.sloStatus&&yQ(this.sloStatus)};uX.prototype.ngOnChanges=function(){M1b(this)};var M1b=function(a){a.sloStatus&&(a.assignmentSlo=N1b(cm(Ub(a.sloStatus,Ol,1))),a.responseSlo=N1b(cm(Ub(a.sloStatus,Ol,2))),a.closureSlo=N1b(cm(Ub(a.sloStatus,Ol,3))))};uX.prototype.isSloSnoozed=function(){return this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil)};var N1b=function(a){if(xQ(a))return a};
uX.\u0275fac=function(a){return new (a||uX)(B(wQ))};
uX.\u0275cmp=u({type:uX,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[ed],decls:3,vars:3,consts:[[4,"ngIf"],["sloMetricDescription","ASSIGNMENT",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","RESPONSE",3,"sloSnoozeUntil","sloBounds","includeObjective"],["sloMetricDescription","CLOSURE",3,"sloSnoozeUntil","sloBounds","includeObjective"]],template:function(a,
b){a&1&&(P(0,xMa,2,3,"div",0),P(1,yMa,2,3,"div",0),P(2,zMa,2,3,"div",0));a&2&&(D("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),A(1),D("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),A(1),D("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[gy,tX],encapsulation:2,changeDetection:0});
var vX=function(a,b,c,d){this.sloStatusHelpersService=a;this.paths=b;this.analytics=c;this.sloApi=d};vX.prototype.ngOnInit=function(){var a;if(a=!!this.sloStatus)a:switch(a=this.sloStatus,this.onlyShowMetric){case "ASSIGNMENT":a=xQ(Ub(a,Ol,1));break a;case "RESPONSE":a=xQ(Ub(a,Ol,2));break a;case "CLOSURE":a=xQ(Ub(a,Ol,3));break a;default:a=yQ(a)}this.hasSlo=a;"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),O1b(this)):this.editSloLink=null};
vX.prototype.trackOpenSlo=function(){Mo(this.analytics,Aq.EDIT_SLO,"open","fromSloStatusCard")};var O1b=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.getName()}).catch(function(){a.sloName=null})};vX.\u0275fac=function(a){return new (a||vX)(B(wQ),B(pI),B(BK),B(sX))};
vX.\u0275cmp=u({type:vX,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",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",
"sloSnoozeUntil","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&&(fg(),E(0,"span",0),gg(1),G(),E(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),P(7,AMa,2,3,"div",5),P(8,DMa,3,2,"div",6),P(9,GMa,4,2,"span",7),G()()()());if(a&2){var c=O(3);D("onedevHovercardTrigger",c);A(7);D("ngIf",b.hasSlo);A(1);D("ngIf",!b.hasSlo);A(1);D("ngIf",b.editSloLink)}},dependencies:[gy,iM,mM,uX],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}\n/*# sourceMappingURL=slo_status_card.css.map */"]});
var wX=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};wX.\u0275fac=function(a){return new (a||wX)(B(HC))};
wX.\u0275cmp=u({type:wX,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&&(E(0,"h1",0),Q(1),G(),E(2,"mat-dialog-content")(3,"b-custom-field-picker",1),M("fieldSelected",function(c){return b.selectedCustomField=c}),
G()(),E(4,"mat-dialog-actions")(5,"button",2),Q(6," Cancel "),G(),E(7,"button",3),Q(8," Add "),G()());a&2&&(A(1),T("Insert custom field column next to ",b.column.fullLabel,""),A(2),D("filter",b.isLegalColumn),A(4),D("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[pC,JC,KC,LC,MC,rU],encapsulation:2});
var P1b="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".split(" ");
var xX=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)};xX.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var Q1b={issueId:{defaultSortDirection:"DESC",label:"ID"},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"}},R1b=function(a){if("CUSTOM_FIELD"===a.type)return new xX({name:a.customFieldId?
String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:void 0!==a.customFieldId,tooltip:""});a=Vi(a.type);"canonicalIssueId"===a&&(a="duplicateOfIssueId");return P1b.includes(a)?yX(a):null},T1b=function(a){return S1b(a.map(R1b).filter(function(b){return!!b}))},U1b=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:Xi(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})},S1b=function(a){return Wj(a,function(b){return b.name})},yX=function(a){var b={name:a,label:a.toUpperCase()},c=Q1b[a];c?Object.assign(b,c):P1b.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new xX(b)};
var zX=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};zX.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var V1b=function(){this.bindings=[]};V1b.prototype.off=function(){for(var a=n(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var W1b=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new V1b;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()}};
W1b.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(){X1b(a,"dragstart",a.onDragTargetDragstart);X1b(a,"dragenter",a.onDragTargetDragenter);X1b(a,"dragend",a.onDragTargetDragend);X1b(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new zX(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new zX(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new zX(a.mask,"drop",a.onMaskDrop))})};var X1b=function(a,b,c){a.eventBindings.bindings.push(new zX(a.element,b,Jq("th.drag-target",c)))};W1b.prototype.tearDown=function(){this.eventBindings.off()};
var Y1b=["table"],Z1b=["defaultHeaderCellTemplate"],$1b=["defaultViewCellTemplate"],a2b=["dataRows"],KMa=function(a){return{column:a}},NMa=function(a,b,c){return{row:a,column:b,index:c}},AX=function(a,b){var c=this;this.activeSession=a;this.ngZone=b;this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new sx;this.rowClick=new sx;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new sx;this.focusedRowIndexChange=new sx;this.afterViewInit=
new sx;this.enableDragDropHeader=!0;this.readUnreadOptOut=Cq(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(d,e){var f=[].concat(r(c.columns));d=f.splice(d,1)[0];f.splice(e,0,d);c.columns=f;c.columnsChange.emit([].concat(r(c.columns)))};this.onTdClickableClick=Jq("td.clickable",function(d,e){if(("mouseup"!==d.type||1===d.button)&&!hLb(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})}})};
AX.prototype.ngOnInit=function(){this.enableDragDropHeader&&b2b(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};var b2b=function(a){a.dragDropHeaderLogic=new W1b({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()};
AX.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;null!=b&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(Pya(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};AX.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
AX.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 c2b=function(a){return a.columns.map(function(b){b=b.name;return null!=b?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};AX.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
AX.prototype.focus=function(){if(null!=this.focusedRowIndex&&null!=this.dataRows){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};AX.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};AX.\u0275fac=function(a){return new (a||AX)(B(NG),B(Mf))};
AX.\u0275cmp=u({type:AX,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(zg(Y1b,7),zg(Z1b,7),zg($1b,7),zg(a2b,5,Rd));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:[ed],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&&(E(0,"table",0,1),M("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),E(2,"colgroup"),P(3,IMa,1,3,"col",2),G(),E(4,"thead")(5,"tr",3),P(6,LMa,2,4,"ng-container",4),G()(),E(7,"tbody"),P(8,QMa,2,1,"ng-container",5),G()(),P(9,RMa,2,1,"ng-template",null,6,Hg),P(11,SMa,2,2,"ng-template",null,7,Hg));a&2&&(A(3),D("ngForOf",b.columns),A(3),D("ngForOf",b.columns),A(2),D("ngIf",c2b(b)))},
encapsulation:2});var BX=function(a,b){this.templateRef=a;this.popGrid=b};BX.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};BX.\u0275fac=function(a){return new (a||BX)(B(vg),B(AX))};BX.\u0275dir=u({type:BX,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var CX=function(a,b){this.templateRef=a;this.popGrid=b};
CX.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};CX.\u0275fac=function(a){return new (a||CX)(B(vg),B(AX))};CX.\u0275dir=u({type:CX,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var DX=function(a,b){this.templateRef=a;this.popGrid=b};DX.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};DX.\u0275fac=function(a){return new (a||DX)(B(vg),B(AX))};
DX.\u0275dir=u({type:DX,selectors:[["","forHeaderCellDefault",""]]});
var EX=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new sx};EX.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?"ASC"===this.sort.direction?a+", sorted ascending":a+", sorted descending":a};EX.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
EX.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a="ASC"===this.sort.direction?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};EX.\u0275fac=function(a){return new (a||EX)};
EX.\u0275cmp=u({type:EX,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&&(E(0,"div",0),M("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),H(1,"span",1),Q(2),G());a&2&&(Zf("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),Uf("aria-label",b.ariaLabel()),A(2),T(" ",b.columnLabel," "))},encapsulation:2});
var FX=function(a,b){this.elementRef=a;this.grid=b};FX.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}}};FX.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
FX.\u0275fac=function(a){return new (a||FX)(B(Rd),B(AX,8))};
FX.\u0275cmp=u({type:FX,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"]],template:function(a,b){a&1&&(E(0,"div",0),
P(1,TMa,1,5,"b-sortable-header",1),P(2,UMa,2,2,"div",2),G());a&2&&(A(1),D("ngIf",b.column.sortable),A(1),D("ngIf",!b.column.sortable))},dependencies:[gy,tF,EX],encapsulation:2});
var aNa=function(a,b){return{columns:a,before:b}},d2b=function(){return{before:!1}},e2b=function(){return{before:!0}},GX=function(a,b,c,d,e,f){Z.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 sx;this.onAddTeamColumn=new sx;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=MG.listViewPreferences;b.preferences$.pipe(Ef(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||MG.listViewPreferences})};X(GX,Z);GX.\u0275dir=Z.\u0275dir;GX.prototype.ngOnChanges=function(a){a.selectedColumns&&f2b(this)};
var g2b=function(a){a.selectedColumnsChange.emit([].concat(r(a.selectedColumns)));f2b(a)},WMa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=XMa(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||vJ(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(sf(),Ef(a.destroyed$)).subscribe(function(){Mo(a.analytics,"preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||vJ(a.butterBar,"Display preference saved.",
4E3)},function(){a.activeSession.isAnonymous()||wJ(a.butterBar,"Display preference could not be saved.")})},dNa=function(a,b){a.hotkeys.pause();CC(a.matDialog.open(wX,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Ef(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},f2b=function(a){for(var b={},c=n(a.selectedColumns),d=c.next();!d.done;d=
c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!Iba(b,f.name)});c=[].concat(r(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(r(d),r(c));a.currentAvailableItems.sort(function(f,h){return gv(f instanceof xX?f.fullLabel:f.label,h instanceof xX?h.fullLabel:
h.label)});a.isRemovable=h2b(a)};GX.prototype.isIssueGridColumn=function(a){return a instanceof xX};GX.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,g2b(this),!0}return!1};
GX.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new xX({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(r(this.selectedColumns));this.selectedColumns.splice(b,0,a);g2b(this);return!0};
var h2b=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};GX.\u0275fac=function(a){return new (a||GX)(B(IC),B(aI),B(uJ),B(BK),B(iI),B(NG))};
GX.\u0275cmp=u({type:GX,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&zg(nF,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:[Of,ed],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",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData",4,"ngIf"],["mat-menu-item",
"",3,"matTooltip","click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"div",1),H(2,"pop-grid-default-th",2),G(),P(3,VMa,2,4,"div",3),E(4,"mat-menu",4,5),P(6,YMa,4,3,"button",6),P(7,ZMa,1,0,"mat-divider",7),E(8,"button",8),M("click",function(){return b.remove()}),Q(9," Remove column "),G(),E(10,"button",9),Q(11," Add column right "),G(),E(12,"button",9),Q(13," Add column left "),G()(),E(14,"mat-menu",null,10),P(16,eNa,4,1,"ng-template",11),G(),E(17,
"mat-menu",null,12),P(19,gNa,1,1,"ng-template",11),G()());if(a&2){var c=O(15);A(2);D("column",b.column);A(1);D("ngIf",!0);A(3);D("ngForOf",b.column.moreOptions);A(1);D("ngIf",b.column.moreOptions.length);A(1);D("disabled",!b.isRemovable);A(2);D("matMenuTriggerFor",c)("matMenuTriggerData",ng(9,d2b));A(2);D("matMenuTriggerFor",c)("matMenuTriggerData",ng(10,e2b))}},dependencies:[fy,gy,oF,mF,nF,lF,WG,tF,QG,FX],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}  .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%)}\n/*# sourceMappingURL=column_picker.css.map */']});
var k2b=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=Jq("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=Jq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){i2b(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=Jq("tr",function(){b.draggedRow&&(i2b(b.draggedRow),i2b(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=Jq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=Jq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=Jq(".row-dropzone",function(c){i2b(b.dragTargetRow);j2b(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=Jq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=Jq(".row-dropzone",function(c){j2b(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()})};
k2b.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");j2b(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)})};
k2b.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 i2b=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},j2b=function(a){a.dropzone.style.display="none"};
var HX=function(a){this.sloStatusHelpersService=a;this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};HX.prototype.ngOnInit=function(){l2b(this)};HX.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&l2b(this)};var l2b=function(a){var b=sOb(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
HX.\u0275fac=function(a){return new (a||HX)(B(wQ))};
HX.\u0275cmp=u({type:HX,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[ed],decls:1,vars:4,consts:[[3,"sloBounds","sloMetricDescription","sloSnoozeUntil","includeObjective"]],template:function(a,b){a&1&&H(0,"b-slo-time-indicator",0);a&2&&D("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloSnoozeUntil",b.sloSnoozeUntil)("includeObjective",
b.includeObjective)},dependencies:[tX],encapsulation:2,changeDetection:0});
var IX=function(){};IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275cmp=u({type:IX,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(E(0,"span"),H(1,"mat-icon",0),Q(2,"Archived "),G())},dependencies:[yD],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 JX=function(){};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=Yc({type:JX});JX.\u0275inj=Ic({imports:[vy,uF]});
var m2b=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],KX=function(){this.compactMode=this.labelOnlyMode=!1};KX.prototype.ngOnInit=function(){};KX.\u0275fac=function(a){return new (a||KX)};
KX.\u0275cmp=u({type:KX,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&&(fg(m2b),E(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),gg(5),G()()(),E(6,"div",4)(7,"span",5),gg(8,1),G()()());if(a&2){var c=O(2),d;A(3);Uf("aria-label",b.hovercardAriaLabel);A(3);D("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);A(1);Zf("compact-chip",b.compactMode);D("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[ey,iM,mM],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 LX=function(a){this.documentationLinks=a;this.documentationLink=Hu()};LX.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=Vo(Nl(this.retentionState.scheduledDeletionTime)):this.retentionExpireTime=void 0};LX.\u0275fac=function(a){return new (a||LX)(B(QN))};
LX.\u0275cmp=u({type:LX,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[ed],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mode","timestamp"],["target","_blank",3,"href"]],template:function(a,b){a&1&&P(0,hNa,9,5,"ng-container",0);a&2&&D("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[gy,fO],encapsulation:2});
var MX=function(a){this.dateFormatter=a;this.compactMode=!1;this.text=""};MX.prototype.ngOnChanges=function(){var a;null!=(null==(a=this.retentionState)?void 0:a.scheduledDeletionTime)?(a=Vo(Nl(this.retentionState.scheduledDeletionTime)),this.text=C1a(a,!this.compactMode)):this.text=""};MX.\u0275fac=function(a){return new (a||MX)(B(eO))};
MX.\u0275cmp=u({type:MX,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[ed],decls:1,vars:1,template:function(a,b){a&1&&Q(0);a&2&&kg(b.text)},encapsulation:2});
var NX=function(){this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};NX.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=jNa(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};NX.\u0275fac=function(a){return new (a||NX)(B(QN))};
NX.\u0275cmp=u({type:NX,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[ed],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,iNa,5,7,"b-base-chip",0);a&2&&D("ngIf",b.showRetentionInfo)},dependencies:[gy,KX,MX,LX],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 QNa=function(a,b,c){return{low:a,high:b,p0:c}},wOa=function(a){return{id:a}},bPa=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},n2b=function(){return[]},OX=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){var J=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=t;this.paths=x;this.errorHandler=y;this.$log=F;this.domSafe=K;this.STATUS_ICON=
RAb;this.STATUS_FULL_TEXT=GG;this.STATUS_TERSE=CG;this.lastCheckedIndex=null;this.focusedRowIndexChange=new sx;this.columns=[];this.columnsChange=new sx;this.enableColumnSaving=!1;this.sort=null;this.sortChange=new sx;this.rowClick=new sx;this.init=new sx;this.onRowDragDrop=new sx;this.onNextPage=new sx;this.onPrevPage=new sx;this.selectionCallbacks=[];this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=Cq(this.activeSession,"enableAggregationRules");this.destroyed$=new W.ReplaySubject(1);this.starInProgress=
{};this.readUnreadOptOut=Cq(this.activeSession,"readUnreadOptOut");b=Ga(P1b);Cq(a,"enableCollaborators")||(Ea(b,"collaborator"),Ea(b,"collaboratorCount"));a.isInternalSession()||(Ea(b,"minSlo"),Ea(b,"responseSlo"),Ea(b,"assignmentSlo"),Ea(b,"closureSlo"),Ea(b,"deletionTime"),Ea(b,"team"),Ea(b,"estimate"),Ea(b,"estimateTotalOpen"),Ea(b,"estimateTotalComplete"));this.availableColumns=b.map(yX);this.dragDropLogic=new k2b({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(R){return o2b(J,
R)},onRowDragDrop:function(R){J.onRowDragDrop.emit(R)}})};g=OX.prototype;g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=Qma((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(r(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(r(c)))}if(a.searchResults||a.columns)for(b=n(this.columns),c=b.next();!c.done;c=b.next())"TEAM"===c.value.label&&p2b(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}))||[]);hna(a,d)||PX(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.convertIssueStatusStrToTag=function(a){return Ym[a]};g.selectAll=function(){if(this.searchResults){for(var a=n(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}PX(this)};
var q2b=function(a){if(a.searchResults){for(var b=n(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}PX(a)};OX.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};var oNa=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1};
OX.prototype.someIssuesSelected=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};OX.prototype.getHeaderCheckboxState=function(){if(!this.searchResults)return"unchecked";for(var a=!0,b=!1,c=n(this.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected?b=!0:a=!1;return a?"checked":b?"indeterminate":"unchecked"};
OX.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};var s2b=function(a){if(r2b(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),PX(a))}};
OX.prototype.toggleAllIssueSelection=function(){if(this.searchResults){for(var a=!this.someIssuesSelected(),b=n(this.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=a;this.cdr.detectChanges();PX(this)}};
var t2b=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()&&NFb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},u2b=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),
a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&NFb(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},QX=function(a,b){b=void 0===b?{}:b;if(r2b(a)&&null!=a.focusedRowIndex&&a.searchResults){var c=a.searchResults.issues[a.focusedRowIndex];c&&(b.openInNewTab?a.domSafe.openInNewTab(a.paths.editIssue(c.issueId)):a.bLocation.url(a.paths.editIssue(c.issueId)))}},v2b=function(a,b){a.selectionCallbacks.push(b);
b()};OX.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=n(this.searchResults.issues.slice(d,e));for(e=d.next();!e.done;e=d.next())e.value.selected=!a;PX(this)}c.selected=!c.selected;this.lastCheckedIndex=b;PX(this)};
var PX=function(a){a=n(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},w2b=function(a){r2b(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},x2b=function(a,b){b=void 0===b?!0:b;var c=a.getSelectedIssues();if(0!==c.length){for(var d=n(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();HK(a.issueFridge,c.map(function(f){return f.issueId}),{markRead:b}).then(function(f){for(var h=n(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=n(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()})}};
OX.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,LHb(this.issueFridge,String(a.issueId),a.starred).pipe(sf(),Ef(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()}))};
OX.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var r2b=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},o2b=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},p2b=function(a){if(a.searchResults){for(var b=new Set,c=n(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,FIb(a.teamsService,[].concat(r(b))).pipe(Ef(a.destroyed$)).subscribe(function(e){e=
rj(e,1,NI);if(a.searchResults)for(var f=n(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);"0"!==k&&e.has(k)&&(h.team=e.get(k).getName())}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};g=OX.prototype;g.isIssueRow=function(){return!0};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)};
OX.\u0275fac=function(a){return new (a||OX)(B(NG),B(qH,2),B(Rd),B($K),B(Mf),B(aI),B(sK),B(FK),B(oI),B(iJ),B(pI),B(xJ),B(WH),B(RN))};
OX.\u0275cmp=u({type:OX,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&zg(AX,7);if(a&2){var c;yg(c=Bg())&&(b.grid=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},features:[mg([qH]),
ed],decls:49,vars:51,consts:[[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",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"],["issueWithHovercard",""],[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"],["tabindex","-1",1,"row-issue-id",3,"href"],[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"],[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","sloSnoozeUntil",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil"],[3,"sloStatus","sloSnoozeUntil"],[3,"sloId","sloStatus","sloSnoozeUntil",
"onlyShowMetric",4,"ngIf"],[3,"sloId","sloStatus","sloSnoozeUntil","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&&(E(0,"div")(1,"pop-grid",0),M("columnsChange",function(c){b.columns=c;b.columnsChange.emit(c);b.cdr.detectChanges()})("focusedRowIndexChange",function(c){b.focusedRowIndex=c;return b.focusedRowIndexChange.emit(b.focusedRowIndex)})("sortChange",function(c){return b.sortChange.emit(c)})("rowClick",function(c){return b.rowClick.emit(c)}),P(2,lNa,2,2,"th",1),P(3,nNa,2,2,"th",2),P(4,qNa,2,2,"th",3),P(5,sNa,2,2,"th",4),P(6,uNa,2,2,"th",4),P(7,yNa,2,2,"th",5),P(8,ANa,2,1,"td",
6),P(9,CNa,2,1,"td",7),P(10,ENa,2,1,"td",8),P(11,GNa,2,1,"td",9),P(12,INa,2,1,"td",10),P(13,KNa,2,1,"td",11),P(14,PNa,2,3,"td",12),P(15,SNa,2,1,"td",13),P(16,UNa,2,1,"td",14),P(17,$Na,2,1,"td",15),P(18,bOa,2,1,"td",16),P(19,fOa,2,1,"td",17),P(20,jOa,2,1,"td",17),P(21,nOa,2,1,"td",17),P(22,pOa,2,1,"td",17),P(23,rOa,2,1,"td",17),P(24,tOa,2,1,"td",17),P(25,zOa,2,1,"td",17),P(26,EOa,2,1,"td",17),P(27,IOa,2,1,"td",17),P(28,KOa,2,1,"td",18),P(29,MOa,2,1,"td",18),P(30,OOa,2,1,"td",18),P(31,QOa,2,1,"td",
18),P(32,SOa,2,1,"td",17),P(33,UOa,2,1,"td",17),P(34,WOa,2,1,"td",17),P(35,YOa,2,1,"td",17),P(36,$Oa,2,1,"td",17),P(37,cPa,2,5,"td",19),P(38,fPa,2,1,"td",20),P(39,iPa,2,1,"td",20),P(40,lPa,2,1,"td",20),P(41,oPa,2,1,"td",20),P(42,rPa,2,1,"td",17),P(43,vPa,2,1,"td",17),P(44,xPa,2,1,"td",17),P(45,zPa,2,1,"td",17),P(46,BPa,2,1,"td",17),G()(),P(47,DPa,5,2,"ng-template",null,21,Hg));a&2&&(A(1),D("list",(null==b.searchResults?null:b.searchResults.issues)||ng(50,n2b))("columns",b.columns)("focusedRowIndex",
b.focusedRowIndex)("scrollContainer",".bv2-view")("sort",b.sort)("rowLabelRenderer",b.issueDescription),A(1),D("forHeaderCell","focused"),A(1),D("forHeaderCell","draghandle"),A(1),D("forHeaderCell","selected"),A(1),D("forHeaderCell","starred"),A(1),D("forHeaderCell","position"),A(2),D("forViewCell","focused"),A(1),D("forViewCell","draghandle"),A(1),D("forViewCell","selected"),A(1),D("forViewCell","starred"),A(1),D("forViewCell","position"),A(1),D("forViewCell","issueId"),A(1),D("forViewCell","title"),
A(1),D("forViewCell","priority"),A(1),D("forViewCell","severity"),A(1),D("forViewCell","status"),A(1),D("forViewCell","type"),A(1),D("forViewCell","reporter"),A(1),D("forViewCell","assignee"),A(1),D("forViewCell","verifier"),A(1),D("forViewCell","cc"),A(1),D("forViewCell","changelist"),A(1),D("forViewCell","postmortem"),A(1),D("forViewCell","blockingIssueId"),A(1),D("forViewCell","blockedByIssueId"),A(1),D("forViewCell","duplicateOfIssueId"),A(1),D("forViewCell","createdTime"),A(1),D("forViewCell",
"modifiedTime"),A(1),D("forViewCell","resolvedTime"),A(1),D("forViewCell","verifiedTime"),A(1),D("forViewCell","foundInVersion"),A(1),D("forViewCell","targetedToVersion"),A(1),D("forViewCell","verifiedInVersion"),A(1),D("forViewCell","inProd"),A(1),D("forViewCell","archived"),A(1),D("forViewCell","componentPath"),A(1),D("forViewCell","minSlo"),A(1),D("forViewCell","responseSlo"),A(1),D("forViewCell","assignmentSlo"),A(1),D("forViewCell","closureSlo"),A(1),D("forViewCell","deletionTime"),A(1),D("forViewCell",
"team"),A(1),D("forViewCell","estimate"),A(1),D("forViewCell","estimateTotalOpen"),A(1),D("forViewCell","estimateTotalComplete"))},dependencies:[IX,ey,fy,gy,my,iy,jy,ky,VB,yD,AX,FX,BX,CX,DX,tX,vX,fO,HX,WP,jX,NX,bS,sR,dM,iM,jM,mM,kM,vW,TT,GX,lL,oL,kL,rL,nL],encapsulation:2,changeDetection:0});
var RX=new xX({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),y2b=new xX({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),SX=new xX({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),TX=new xX({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),z2b=new xX({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});
var UX=function(a,b,c){Z.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new sx;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,t=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(t,"close",{panelClass:"error"})}};X(UX,Z);UX.\u0275dir=Z.\u0275dir;UX.\u0275fac=function(a){return new (a||UX)(B(rJ),B(GW),B(bJ))};
UX.\u0275cmp=u({type:UX,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[Of],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&&(E(0,"button",0),M("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),Q(1," Add Issue(s) "),G())},dependencies:[pC,tF],encapsulation:2});
var VX=function(a,b,c,d){Z.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new W.ReplaySubject(1);this.hotlist$=this.id$.pipe(Df(function(f){return e.fridge.watchOne(f)}),Af({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(C(function(f){return!(null==f||!f.archived)}),rf());this.archiveActionLabel$=this.archived$.pipe(C(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(C(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(Xn(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(Ef(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};X(VX,Z);VX.\u0275dir=Z.\u0275dir;
VX.prototype.isThinking=function(a){return this.fridge.isThinking(a)};VX.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var B2b=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Co("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){A2b(a,b)}}):A2b(a,b)}},A2b=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
VX.\u0275fac=function(a){return new (a||VX)(B(sK),B(rJ),B(UL),B(eJ))};
VX.\u0275cmp=u({type:VX,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[Of,ed],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(E(0,"button",0),M("click",function(){return B2b(b)}),U(1,"async"),Q(2),U(3,"async"),G());if(a&2){var c;D("disabled",b.isThinking(b.id))("matTooltip",null!==(c=V(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");A(2);T(" ",V(3,5,b.archiveActionLabel$)," ")}},dependencies:[pC,
tF,ny],encapsulation:2});
var WX=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){JW.call(this,a,b,c,d,e,f,h,k,q,t,F,K);this.estadoService=x;this.refreshMonitor=y;this.init=new sx;this.onRefresh=new sx;this.isHotlistAdmin=!1;this.onExportCsv=new sx;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!a.currentTracker.inTracker;this.enableBulkEditUi=Cq(this.activeSession,"enableBulkEditUi");this.controllerName="gridControls"};X(WX,JW);
WX.\u0275dir=JW.\u0275dir;g=WX.prototype;g.ngOnInit=function(){this.init.emit(this)};g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&v2b(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 C2b=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};
WX.\u0275fac=function(a){return new (a||WX)(B(qH,2),B(NG),B(BK),B(iI),B(VG),B(ZR),B(fQ),B(LR),B(IC),B(WH),B(oX),B(DK),B(GW),B(aI))};
WX.\u0275cmp=u({type:WX,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[mg([qH]),Of,ed],decls:11,vars:8,consts:[["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"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,
"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&&(E(0,"b-button",0),M("onAction",function(){return b.refresh()}),H(1,"b-icon",1),G(),P(2,EPa,1,1,"b-app-bar-bulk-edit-menus",2),P(3,FPa,1,2,"b-copy-issue-id-button",3),P(4,GPa,2,2,"div",4),P(5,JPa,3,2,"ng-container",5),P(6,LPa,3,3,"b-button",6),E(7,"b-app-bar-more-menu",7),M("exportCsvClicked",
function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return W0b(b)}),G(),E(8,"b-state-modal",8),M("save",function(){return U0b(b)})("close",function(){return b.hotkeys.unpause()}),G(),P(9,QPa,11,6,"ng-template",null,9,Hg));a&2&&(A(2),D("ngIf",b.hasSelectedIssues()),A(1),D("ngIf",b.hasSelectedIssues()),A(1),D("ngIf",b.enableBulkEditUi&&b.hasSelectedIssues()),A(1),D("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),A(1),D("ngIf",b.enableEstadoInAppBar),A(1),D("showExportCsv",b.isNonPublicSession)("showFlagIssuesAsSpam",
C2b(b)),A(1),D("externalWarnings",b.externalWarnings))},dependencies:[YG,XG,FL,hW,fy,gy,sR,HR,VX,UX,pW,QG,pC,JC,KC,LC,MC,jW,iW],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});
var D2b=["multiUserInput"],XX=function(a,b,c,d,e,f){Z.call(this);var h=this;this.element=a;this.accessPolicyConverter=b;this.principalTypes=c;this.activeSession=d;this.documentationLinks=e;this.appEvents=f;this.usersChange=new sx(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.ariaLabel="";this.isValid=new sx;this.typedText="";this.items=[];this.chipifyFn=function(){E2b(h)};this.additionalContactsFn=function(){return F2b(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=""}))};X(XX,Z);XX.\u0275dir=Z.\u0275dir;
XX.prototype.ngOnInit=function(){var a=this;this.validators=Object.assign({},{validateGaia:function(b,c){return G2b(c)},validateInternalAccessLevel:function(b,c){return H2b(a,c)},validateExternalAccessLevel:function(b,c){return I2b(a,c)}},this.customValidators)};XX.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=J2b(this,this.users),YX(this)};
var YX=function(a){var b=[].concat(r(a.items)),c=K2b(b),d=L2b(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Ri(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
XX.prototype.validate=function(a,b,c){for(var d=new Set,e=n(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=n(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=n(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=n(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return 0===this.violations.size};
var TPa=function(a){!a.isWidgetDisabled()&&M2b(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},RPa=function(a){Lq(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};XX.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var M2b=function(a){var b,c;return 0>a.maxUserAllowed||(null!=(c=null==(b=a.users)?void 0:b.length)?c:0)<a.maxUserAllowed};
XX.prototype.removeItem=function(a){this.isWidgetDisabled()||!Lq(this,a)||this.items[a].isReadonly||(RPa(this),this.items.splice(a,1),YX(this))};XX.prototype.setAccessLevel=function(a){this.accessLevel=a};
var F2b=function(a){return N2b(a).map(function(b){return{text:jna(b),id:a.accessPolicyConverter.accessPolicyPrincipalToString({alias:b})}})},N2b=function(a){if(!a.includeAliases||PG(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},E2b=function(a){setTimeout(function(){a.typedText&&ia(a.typedText,",")&&UPa(a,a.typedText.split(",")[0].trim())})},UPa=function(a,
b){b&&(b=MQb.test(b)?O2b(a,b):P2b(a,b),a.items.push(b));a.typedText="";YX(a)},Lq=function(a,b){return 0<=b&&b<a.items.length},O2b=function(a,b){var c=void 0===c?!1:c;var d=Km(b);if(void 0===d.alias)throw Error("pd`"+b);b=d.alias;d=jna(b);return new ZX(4,b,d,null,c,a)},Q2b=function(a,b){b=fp(b);var c=new ZX(3,b,b,null,!1,a);oH(a.principalTypes,b,!0).then(function(d){c.detailedUserType=qj(d,2,0);YX(a)});return c},R2b=function(a,b){var c=void 0===c?!1:c;b=fp(b);var d=new ZX(2,b,b,null,c,a);oH(a.principalTypes,
b,!0).then(function(e){d.detailedUserType=qj(e,2,0);YX(a)});return d},P2b=function(a,b){var c=void 0===c?!1:c;b=fp(b);var d=new ZX(0,b,b,null,c,a);oH(a.principalTypes,b,!0).then(function(e){d.principalType=qj(e,1,0);d.detailedUserType=qj(e,2,0);YX(a)});return d},S2b=function(a,b,c){return new ZX(0,"",b,c,!0,a)};XX.prototype.getAccessLevel=function(){return this.accessLevel};XX.prototype.getAppName=function(){return this.activeSession.getAppName()};
XX.prototype.onKeyDown=function(a){8===a.keyCode?Lq(this,this.selectedChipIndex)?(Lq(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?Lq(this,this.selectedChipIndex)&&Lq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):TPa(this)};
var J2b=function(a,b){b=(b||[]).map(function(d){return T2b(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 S2b(a,d.displayText,d.values.map(function(e){return T2b(a,e)}))});return[].concat(r(c),r(b))}return b},T2b=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("ge`"+b);var d=Number(c[0]);if(2!==d&&3!==d&&4!==d)throw Error("ge`"+b);return 4===d?O2b(a,b):2===d?R2b(a,c[1]):
Q2b(a,c[1])},K2b=function(a){return(a||[]).filter(function(b){return 0!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},L2b=function(a){return(a||[]).filter(function(b){return 0!==b.detailedUserType}).map(function(b){return b.detailedUserType+":"+b.value})},G2b=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},H2b=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},I2b=function(a,b){return"EXTERNAL_PARTNER"!==
a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};XX.\u0275fac=function(a){return new (a||XX)(B(Rd),B(nS),B(nH),B(NG),B(QN),B(eJ))};
XX.\u0275cmp=u({type:XX,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&zg(D2b,5);if(a&2){var c;yg(c=Bg())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&M("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:[Of,ed],decls:11,vars:10,consts:[[1,"bv2-multi-user-input",3,"click"],["class","bv2-user-chip",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"],[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&&(E(0,"div",0),M("click",function(){return TPa(b)}),E(1,"div"),P(2,
SPa,2,9,"div",1),P(3,VPa,2,5,"input",2),G()(),E(4,"div",3),P(5,WPa,4,1,"span",4),P(6,XPa,2,0,"span",4),P(7,YPa,2,0,"span",4),P(8,ZPa,2,0,"span",4),P(9,$Pa,2,0,"span",4),P(10,aQa,2,0,"span",4),G());a&2&&(Zf("focused",b.isFocused),A(2),D("ngForOf",b.items),A(1),D("ngIf",M2b(b)),A(2),D("ngIf",b.violations.has("noRestrictedPlusGroups")),A(1),D("ngIf",b.violations.has("validateGaia")),A(1),D("ngIf",b.violations.has("validateInternalAccessLevel")),A(1),D("ngIf",b.violations.has("validateExternalAccessLevel")),
A(1),D("ngIf",b.violations.has("sloLeadNotUser")),A(1),D("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}\n/*# sourceMappingURL=multi_user_input.css.map */"]});
var ZX=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType=0;this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=ZX.prototype;
g.getTooltip=function(){if(4!==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("he`"+this.value);}};
g.isGroupChip=function(){return 3===this.principalType};g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return 3===this.detailedUserType||4===this.detailedUserType||this.isPublicChip()};g.isNonGaiaChip=function(){return 1===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 2===this.principalType};
var $X=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)};$X.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var aY=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new W.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};$X.prototype.canDeactivate=function(a,b,c,d){a:{a=bG(c.url).getPath()===bG(d.url).getPath();b=n(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?U2b()?(this.checks=[],!0):!1:!0};var U2b=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
$X.\u0275fac=function(a){return new (a||$X)};$X.\u0275prov=Hc({token:$X,factory:$X.\u0275fac,providedIn:"root"});
var V2b=function(a){return{displayText:"Admins",values:a}},W2b=function(a){return[a]},X2b=function(a){return{displayText:"Appenders",values:a}},Y2b=Co("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?"),bY=function(a,b,c,d,e,f,h,k,q){Z.call(this);var t=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 W.ReplaySubject(1);this.idSubject$=ml(this.id$.pipe(Ef(this.destroyed$)));this.acl$=this.id$.pipe(Df(function(x){return t.hotlistAccessPolicyFridge.watchOne(x)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=lp(this.links);this.validity={};this.isValid=function(){return Object.values(t.validity).every(Boolean)};this.isInvalid=function(){return!t.isValid()};
this.allAppenders=[];this.onPressSave=function(){Z2b(t)?t.dialog.open({title:"Change Hotlist Admins",content:Y2b,isDestructive:!0,onConfirm:t.doSave}):t.doSave()};this.doSave=function(){var x=t.idSubject$.value;if(null!=x){var y=Z2b(t);x={id:x,admins:zra(t.admins),appenders:zra(t.appenders),editors:null,readers:zra(t.readers),inheritance:null,implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};
t.hotlistAccessPolicyFridge.save(x).subscribe({next:t.didSave(y,x.id),error:t.gotErr})}};this.didSave=function(x,y){return function(){t.snackBar.open("Access control saved",void 0,{duration:2500});t.events.hotlistChanged.next();t.permissions.poke(y);x&&t.doStar()}};this.gotErr=function(x){t.snackBar.open(Xn(x)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var x=t.idSubject$.value;x&&t.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:x,userLogin:t.activeSession.getUserEmail()}).then(function(){t.events.hotlistChanged.next()})};
this.onPressRevert=function(){t.resetEdits()};this.gotAcl=function(x){t.latestPolicy=x;var y,F,K;t.latestCompactPolicy={admins:yra(null==(y=t.latestPolicy)?void 0:y.admins),appenders:yra(null==(F=t.latestPolicy)?void 0:F.appenders),readers:yra(null==(K=t.latestPolicy)?void 0:K.readers)};t.resetEdits()};this.isChanged=function(){var x=t.latestCompactPolicy,y;if(!Ri(null!=(y=x.admins)?y:[],t.admins))return!0;var F;if(!Ri(null!=(F=x.appenders)?F:[],t.appenders))return!0;var K;return Ri(null!=(K=x.readers)?
K:[],t.readers)?!1:!0};this.hasNoChanges=function(){return!t.isChanged()};this.acl$.pipe(Ef(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(aY(e,this.isChanged,!1))};X(bY,Z);bY.\u0275dir=Z.\u0275dir;var $2b=function(a){return[].concat(r(new Set([].concat(r(a.admins),r(a.appenders)))))};bY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
bY.prototype.resetEdits=function(){var a;this.admins=[].concat(r(null!=(a=this.latestCompactPolicy.admins)?a:[]));var b;this.appenders=[].concat(r(null!=(b=this.latestCompactPolicy.appenders)?b:[]));var c;this.readers=[].concat(r(null!=(c=this.latestCompactPolicy.readers)?c:[]));this.allAppenders=$2b(this)};
var Z2b=function(a){var b=a.admins,c,d=null!=(c=a.latestCompactPolicy.admins)?c:[];a=a.activeSession.getUserEmail();a=void 0===a?"":a;Rna(b,d)?b=!1:(a="2:"+a,d=d.includes(a),b=!b.includes(a),b=d&&b);return b};bY.\u0275fac=function(a){return new (a||bY)(B(lK),B(QN),B(rJ),B(eJ),B($X),B(UL),B(WK),B(oK),B(NG))};
bY.\u0275cmp=u({type:bY,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Of,ed],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&&(E(0,"form",0)(1,"label"),Q(2,"Admins"),G(),E(3,"p",1),Q(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),G(),E(5,"b-multi-user-input",2),M("usersChange",function(c){b.admins=c;b.allAppenders=$2b(b)})("isValid",
function(c){return b.validity.admins=c}),G(),E(6,"label"),Q(7,"View and append"),G(),E(8,"p",1),Q(9,"Reorder hotlist, add/remove issues"),G(),E(10,"b-multi-user-input",3),M("usersChange",function(c){b.appenders=c;b.allAppenders=$2b(b)})("isValid",function(c){return b.validity.appenders=c}),G(),E(11,"label"),Q(12,"View only"),G(),E(13,"p",1),Q(14,"View the hotlist"),G(),E(15,"b-multi-user-input",4),M("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),G()(),
E(16,"p"),Q(17," See "),E(18,"a",5),Q(19,"access control documentation"),G(),Q(20," for an explanation of the settings.\n"),G(),P(21,bQa,5,4,"div",6));a&2&&(A(5),Zf("disabled",b.isReadOnly),D("users",b.admins),A(5),Zf("disabled",b.isReadOnly),D("users",b.appenders)("includeAliases",!0)("containerChips",og(18,W2b,og(16,V2b,b.admins))),A(5),Zf("disabled",b.isReadOnly),D("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",og(22,W2b,og(20,X2b,b.allAppenders))),A(3),D("href",
b.accessControlLink,le),A(3),D("ngIf",!b.isReadOnly))},dependencies:[gy,Sy,Ly,Py,pC,tF,XX],styles:["[_nghost-%COMP%] {\n      display: block;\n      max-width: 600px;\n      padding: 16px; \n    }\n    label[_ngcontent-%COMP%] {\n      font-weight: bold;\n      line-height: 2em;\n    }"]});
var a3b=["hotlistName"],cY=function(a,b,c,d){Z.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new W.ReplaySubject(1);this.hotlist$=this.id$.pipe(Df(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(Xn(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!Ri(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(Ef(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(aY(d,
this.isChanged,!1))};X(cY,Z);cY.\u0275dir=Z.\u0275dir;cY.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};cY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};cY.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=Si(a))?b:{}};cY.\u0275fac=function(a){return new (a||cY)(B(sK),B(rJ),B(eJ),B($X))};
cY.\u0275cmp=u({type:cY,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&zg(a3b,5);if(a&2){var c;yg(c=Bg())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Of,ed],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&&(E(0,"form",0)(1,"label",1),Q(2,"Name"),G(),E(3,"input",
2,3),M("ngModelChange",function(c){return b.localEdits.name=c}),G(),E(5,"label",4),Q(6,"Description"),G(),E(7,"textarea",5),M("ngModelChange",function(c){return b.localEdits.description=c}),Q(8,"  "),G(),P(9,cQa,7,7,"div",6),G());a&2&&(A(3),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),A(4),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),A(2),D("ngIf",!b.isReadOnly))},dependencies:[gy,Sy,fh,Ky,Ly,bz,Ry,Py,pC,tF,VX,ny],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)}\n/*# sourceMappingURL=edit_hotlist_basic.css.map */"]});
var dY=function(a,b){Z.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new W.ReplaySubject(1);this.hotlist$=this.id$.pipe(Df(function(d){return c.hotlists.watchOne(d)}))};X(dY,Z);dY.\u0275dir=Z.\u0275dir;dY.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};dY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};dY.\u0275fac=function(a){return new (a||dY)(B(sK),B(lK))};
dY.\u0275cmp=u({type:dY,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[Of,ed],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&&(E(0,"header",0)(1,"h2")(2,"span",1),Q(3),G(),P(4,dQa,2,1,"ng-container",2),U(5,"async"),G(),P(6,eQa,2,0,"strong",3),U(7,"async"),P(8,fQa,1,0,"b-spinner",2),G());if(a&2){var c;A(3);T(" Hotlist ",b.id,": ");
A(1);D("ngIf",V(5,4,b.hotlist$));A(2);D("ngIf",null==(c=V(7,6,b.hotlist$))?null:c.archived);A(2);D("ngIf",b.isThinking(b.id))}},dependencies:[gy,fM,ny],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});
var eY=function(a){Z.call(this);this.activeSession=a;this.URLS=lu;this.id$=new W.ReplaySubject(1);this.enableBulkEditUi=Cq(this.activeSession,"enableBulkEditUi")};X(eY,Z);eY.\u0275dir=Z.\u0275dir;eY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};eY.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};eY.\u0275fac=function(a){return new (a||eY)(B(NG))};
eY.\u0275cmp=u({type:eY,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[Of,ed],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&&(E(0,"section",0)(1,"b-button",1),M("onAction",function(){return b.onPressBack()}),H(2,"b-icon",2),G(),E(3,"a",3),Q(4," View Issues "),G(),P(5,gQa,2,3,"hotlist-add-issue-btn",4),G());a&2&&(A(3),D("href",b.URLS.HOTLIST_VIEW(b.id),le),A(2),D("ngIf",b.enableBulkEditUi))},dependencies:[gy,qC,tF,FL,QG,UX,ny],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var b3b={403:"You do not have permission to view this Hotlist.",404:"This Hotlist does not exist."},fY=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(C(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(C(function(e){var f;return null!=(f=e.status)?f:-1}),C(function(e){var f;return null!=
(f=b3b[e])?f:"unknown error"}),Cf(void 0));this.tabIndex=0};fY.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};fY.\u0275fac=function(a){return new (a||fY)(B(tQ),B(NJ),B(WK),B(sK))};
fY.\u0275cmp=u({type:fY,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,iQa,13,14,"ng-container",0),U(1,"async"),P(2,jQa,7,1,"ng-container",0),U(3,"async"));a&2&&(D("ngIf",void 0===V(1,2,b.hotlistErrorMsg$)),A(2),D("ngIf",V(3,
4,b.hotlistErrorMsg$)))},dependencies:[gy,YV,XV,AW,xN,bY,cY,dY,eY,ny],encapsulation:2});
var gY=function(){};gY.\u0275fac=function(a){return new (a||gY)};gY.\u0275cmp=u({type:gY,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,kQa,3,1,"b-callout",0);a&2&&D("ngIf",b.error)},dependencies:[gy,fH,gH],encapsulation:2});
var hY=function(){};hY.\u0275fac=function(a){return new (a||hY)};hY.\u0275mod=Yc({type:hY});hY.\u0275inj=Ic({imports:[vy,HL]});
var iY=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};iY.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!Ao(this.email)};iY.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};iY.\u0275fac=function(a){return new (a||iY)(B(NG))};
iY.\u0275cmp=u({type:iY,selectors:[["b-group-email-card"]],inputs:{email:"email"},ngContentSelectors:["*"],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["content",""],[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&&(fg(),P(0,qQa,17,5,"ng-container",0),P(1,rQa,1,0,"ng-template",null,1,Hg));if(a&2){var c=O(2);D("ngIf",!!Ao(b.email))("ngIfElse",c)}},dependencies:[gy,my,yD,iM,mM],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}\n/*# sourceMappingURL=group_email_card.css.map */"]});
var jY=function(){};jY.\u0275fac=function(a){return new (a||jY)};jY.\u0275mod=Yc({type:jY});jY.\u0275inj=Ic({imports:[vy,uF,TM]});
var jia=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}},kY=function(a){Z.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 sx;this.chipClear=new sx;this.chipRemove=new sx};X(kY,Z);kY.\u0275dir=Z.\u0275dir;
g=kY.prototype;g.isPublicChip=function(){return 4===this.principalType&&["public_non_google","public"].includes(this.value)};g.isNonGaiaChip=function(){return 1===this.principalType};g.isContainerChip=function(){return null!==this.nestedChips};g.isUserChip=function(){return 2===this.principalType};g.isGroupChip=function(){return 3===this.principalType};g.isDomainChip=function(){return 4===this.principalType&&["googlers_unrestricted","google_domain"].includes(this.value)};
g.isExternalChip=function(){return 3===this.detailedUserType||4===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(4!==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("he`"+this.value);}};
var c3b=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};kY.\u0275fac=function(a){return new (a||kY)(B(NG))};
kY.\u0275cmp=u({type:kY,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:[Of],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","-1","class","user-chip-x",3,"matTooltip","click",4,"ngIf"],["class","bv2-user-chip-nested-content-container",4,"ngIf"],[3,"svgIcon"],[3,"email"],["role","button","tabindex","-1",1,"user-chip-x",3,"matTooltip","click"],["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&&(E(0,"span",0),M("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),E(1,"span",1),P(2,sQa,1,1,"mat-icon",2),G(),E(3,"div",3),P(4,tQa,2,2,"b-person-hovercard",4),P(5,uQa,2,2,"b-group-email-card",4),P(6,vQa,2,1,"div",5),G(),P(7,wQa,2,2,"div",6),P(8,
yQa,7,1,"div",7),G());a&2&&(D("ngClass",kia(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),A(2),D("ngIf",c3b(b)),A(2),D("ngIf",b.isUserChip()),A(1),D("ngIf",b.isGroupChip()),A(1),D("ngIf",!b.isUserChip()&&!b.isGroupChip()),A(1),D("ngIf",!b.isReadonly&&!b.isWidgetDisabled),A(1),D("ngIf",b.isContainerChip()))},dependencies:[ey,fy,gy,tF,yD,WP,iY,kY],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}\n/*# sourceMappingURL=contact_chip.css.map */"]});
var lY=function(){};lY.\u0275fac=function(a){return new (a||lY)};lY.\u0275mod=Yc({type:lY});lY.\u0275inj=Ic({imports:[vy,fz,uG,uF,bR,jY,vL,HT,NR]});Yca(XX,[fy,gy,fh,Ky,Ry,GT,MR,kY]);
var mY=function(){};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275mod=Yc({type:mY});mY.\u0275inj=Ic({providers:[{provide:D0b,useValue:{enabled:!0}}],imports:[vy,fz,AF,uF,uG,bW,GL,qJ,CW,$G,RM,hY,lY,HW,JN]});
var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=Yc({type:nY});nY.\u0275inj=Ic({imports:[bH,GL,RW,vy,DR,KR,mY,UW,$G,AF,NC,uG,TW,SW]});
var oY=function(a,b,c,d,e){Z.call(this);this.element=a;this.bLocation=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=Ul;this.hotlists=[];this.registerKeys()};X(oY,Z);oY.\u0275dir=Z.\u0275dir;g=oY.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=jI(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))};
oY.\u0275fac=function(a){return new (a||oY)(B(Rd),B(oI),B(pI),B(iI),B(qH,2))};
oY.\u0275cmp=u({type:oY,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[mg([qH]),Of],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&&(E(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),E(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," Hotlist name "),G()()()(),E(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),G()()()(),E(14,"th")(15,
"div",3)(16,"div",4)(17,"div",5),Q(18," Admins "),G()()()(),E(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),Q(23," ID "),G()()()()()(),E(24,"tbody"),P(25,BQa,11,9,"tr",6),G()());a&2&&(A(25),D("ngForOf",b.hotlists))},dependencies:[fy,gy],encapsulation:2});
var pY=function(){};pY.\u0275fac=function(a){return new (a||pY)};pY.\u0275mod=Yc({type:pY});pY.\u0275inj=Ic({imports:[vy]});
var qY=function(a,b){this.bLocation=a;this.butterBar=b},d3b=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(wJ(a.butterBar,"Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};qY.prototype.getCount=function(){var a=d3b(this,"c");return a?Xi(a):null};var e3b=function(a){return(a=d3b(a,"p"))?Xi(a):null};qY.prototype.getQuery=function(){return d3b(this,"q")};
qY.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(jj).filter(fm):null};qY.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(kna).filter(fm):null};
var rY=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 f3b(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return f3b(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)},f3b=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};qY.\u0275fac=function(a){return new (a||qY)(p(oI),p(uJ))};qY.\u0275prov=Hc({token:qY,factory:qY.\u0275fac,providedIn:"root"});
var sY=function(a){Y.call(this,a)};X(sY,Y);sY.prototype.setCustomField=function(a){return Vb(this,1,a)};sY.messageId="b.CustomFieldResponse";
var tY=function(){},uY=function(a){this.executor=a};X(uY,tY);uY.prototype.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:sY}).then(pra)};uY.prototype.create=function(a,b){b=sra(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:sY}).then(pra)};
uY.prototype.update=function(a,b,c){b=Number(b);c=sra(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:sY}).then(pra)};uY.prototype.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};uY.\u0275fac=function(a){return new (a||uY)(p(mH))};uY.\u0275prov=Hc({token:uY,factory:uY.\u0275fac,providedIn:"root"});
var vY=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};vY.prototype.fetch=function(a,b){a=this.getParameters(a,void 0===b?null:b);return{searchPreferences:np({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
vY.prototype.getParameters=function(a,b){var c=this,d=b?function(){return g3b(b)}:function(){return h3b(c)},e=b?function(){return i3b(b)}:function(){return j3b(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return wY(k)}).then(null,d).then(function(k){return wY(k)}).then(null,Wv(a.displayColumns)).then(function(k){return k3b(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return wY(k)}).then(null,e).then(function(k){return wY(k)}).then(null,
Wv(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return wY(k)}).then(null,function(){return l3b(c)}).then(function(k){return wY(k)}).then(null,Wv(a.resultsPerPage)),h=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return wY(k)}).then(null,function(){return m3b(b,function(k){return k.query})}).then(null,Wv(a.query));a=e3b(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:a}};
var wY=function(a){return null==a?Promise.reject(null):a},g3b=function(a){return m3b(a,function(b){return b.displayColumn}).then(function(b){return n3b(b)})},i3b=function(a){return m3b(a,function(b){return b.sortOrder}).then(function(b){return o3b(b)})},j3b=function(a){return(0,W.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return wY(b)}).then(function(b){return o3b(b)})},h3b=function(a){return(0,W.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return wY(b)}).then(function(b){return n3b(b)})},
l3b=function(a){return(0,W.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(C(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return wY(b)})},m3b=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},n3b=function(a){if(!a||!a.length)return null;a=Wj(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new ij({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},o3b=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new mj(new ij(b.column),b.order):new mj(new ij(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},k3b=function(a,b){if(!b)return Promise.resolve([]);for(var c={},d=[],e=n(b),f=e.next();!f.done;f=e.next())f=f.value,f.customFieldId&&f.isCustomField()&&(f.customFieldName?c[f.customFieldId]=
f.customFieldName:d.push(a.customFieldApi.get(f.customFieldId).then(function(h){c[h.customFieldId]=h.name})));a=function(){for(var h=n(b),k=h.next();!k.done;k=h.next())if(k=k.value,k.isCustomField()&&!k.customFieldName){var q=c[k.customFieldId];k.customFieldName=q?q:"Custom field "+k.customFieldId}return b};return Promise.all(d).then(a,a)};vY.\u0275fac=function(a){return new (a||vY)(p(qY),p(aI),p(tY))};vY.\u0275prov=Hc({token:vY,factory:vY.\u0275fac,providedIn:"root"});
var xY=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J){Z.call(this);var R=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=t;this.domSafe=x;this.timeout=y;this.hotkeys=F;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 sx;this.resultsLoaded=new sx;this.selectionChange=new sx;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 S;null==(S=R.issuesGrid)||t2b(S)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",
onPress:function(){var S;null==(S=R.issuesGrid)||u2b(S)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var S;null==(S=R.issuesGrid)||s2b(S)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var S;null==(S=R.issuesGrid)||w2b(S)}},{keys:[gk("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var S;null==(S=R.issuesGrid)||x2b(S,!0)}},{keys:[gk("u")],displayAs:"Shift+u",description:"Mark as unread",
onPress:function(){var S;null==(S=R.issuesGrid)||x2b(S,!1)}},{keys:[hk("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var S;null==(S=R.issuesGrid)||S.selectAll()}},{keys:[hk("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var S;null==(S=R.issuesGrid)||q2b(S)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(S){var aa=K.document.activeElement;
if(1===S&&"A"===(null==aa?void 0:aa.tagName))if(aa.href)S=R.paths.getBaseUrl(),Zi(aa.href,S)?b.url(aa.href.slice(S.length)):R.domSafe.openInNewTab(aa.href);else{var ba;null==(ba=R.issuesGrid)||QX(ba)}else{var ka;null==(ka=R.issuesGrid)||QX(ka)}}}];this.destroyed$.subscribe(function(){var S;null==(S=R.unregisterHotkeys)||S.call(R)})};X(xY,Z);xY.prototype.columnsChange=function(a){this.issueColumns=a};xY.prototype.ngOnInit=function(){this.getIssues();p3b(this)};
var p3b=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=jI(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},jRa=function(a,b){a.issuesGrid=b;v2b(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=xY.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=jj(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new mj(d,"ASC"==b?"ASCENDING":"DESCENDING");Fa(this.sortPreferences,function(f){return Ri(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):Vi(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Ri(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(r(b),r(T1b(a)));this.initialIssueColumns=Si(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(Mo(this.analytics,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(){kJ(this.issuePagination);this.getIssues()};g.exportCsv=function(){SN(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 jJ(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):
e&&b.errorHandler.errorHandler(null,e)});return np({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=Si(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.focusedIssueIndex_;-1!=
h&&(b.focusedRowIndex=h-f.startIndex)})})};g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:q3b,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=U1b(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):r3b).length)).map(function(c){return new ij(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;vJ(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Si(a.issueColumns);a.initialSortPreferences=Si(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){Mo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(r(this.initialIssueColumns||[]));this.initialSortPreferences&&!Ri(this.initialSortPreferences,this.sortPreferences)&&(za(this.sortPreferences),cv(jaa,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Ri(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Ri(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 r3b};
g.getSearchParams=function(a){a=Si(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.url();return a};
ni.Object.defineProperties(xY.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ri(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,Mo(this.analytics,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&&p3b(this)},get:function(){return this.focusedRowIndexInternal}},
isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var r3b=[RX,SX,TX],q3b="priority type title assignee status issueId modifiedTime".split(" ").map(jj);xY.\u0275fac=function(a){return new (a||xY)(B(qH),B(oI),B(WH),B(NG),B(uJ),B(BK),B(iJ),B(vY),B(pI),B(xJ),B(RN),B(jH),B(iI),B(Window),B(IM))};
xY.\u0275dir=u({type:xY,viewQuery:function(a,b){a&1&&zg(OX,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:[Of]});
var yY=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};yY.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Co("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)}})};yY.\u0275fac=function(a){return new (a||yY)(B(UL),B(eJ))};
yY.\u0275cmp=u({type:yY,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&&(E(0,
"div")(1,"button",0),H(2,"mat-icon",1),G(),E(3,"mat-menu",null,2),P(5,GQa,6,4,"ng-template",3),G()());if(a&2){var b=O(4);A(1);D("matMenuTriggerFor",b)}},dependencies:[gy,oF,mF,nF,lF,yD,pC],encapsulation:2});var zY=function(){};zY.\u0275fac=function(a){return new (a||zY)};zY.\u0275mod=Yc({type:zY});zY.\u0275inj=Ic({imports:[vy,pF,uF,AF]});
var AY=function(){};AY.\u0275fac=function(a){return new (a||AY)};AY.\u0275mod=Yc({type:AY});AY.\u0275inj=Ic({imports:[vy,uF]});
var BY=function(){};BY.\u0275fac=function(a){return new (a||BY)};BY.\u0275mod=Yc({type:BY});BY.\u0275inj=Ic({imports:[vy,AY]});
var CY=function(){};CY.\u0275fac=function(a){return new (a||CY)};CY.\u0275mod=Yc({type:CY});CY.\u0275inj=Ic({imports:[vy,TM,BY]});
var DY=function(){};DY.\u0275fac=function(a){return new (a||DY)};DY.\u0275mod=Yc({type:DY});DY.\u0275inj=Ic({imports:[vy,AY]});
var EY=function(){};EY.prototype.getValue=function(){return this.row[this.column.name]||""};EY.prototype.isCustomField=function(){return this.column.isCustomField};
EY.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 wm(a);Ri(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};EY.\u0275fac=function(a){return new (a||EY)};
EY.\u0275cmp=u({type:EY,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,HQa,2,2,"span",0),P(1,IQa,1,1,"b-custom-field-value-display",1));a&2&&(D("ngIf",!b.isCustomField()),A(1),D("ngIf",b.isCustomField()))},dependencies:[gy,tU],encapsulation:2,changeDetection:0});
var FY=function(){};FY.\u0275fac=function(a){return new (a||FY)};FY.\u0275mod=Yc({type:FY});FY.\u0275inj=Ic({imports:[vy,uG,uU]});Yca(AX,[fy,gy,my,FX,EY]);
var GY=function(){};GY.\u0275fac=function(a){return new (a||GY)};GY.\u0275mod=Yc({type:GY});GY.\u0275inj=Ic({imports:[vy,TM]});
var HY=function(){};HY.\u0275fac=function(a){return new (a||HY)};HY.\u0275mod=Yc({type:HY});HY.\u0275inj=Ic({imports:[vy,GY,AO]});
var IY=function(){};IY.\u0275fac=function(a){return new (a||IY)};IY.\u0275mod=Yc({type:IY});IY.\u0275inj=Ic({imports:[JX,vy,pF,aH,uG,AF,NC,YB,$G,uF,FY,AY,CY,AO,DY,vL,bR,kX,HY,fS,DR,PM,sU,TM,xW,UT]});
var JY=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
JY.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,t=b[c],x=b[d].position;naa(b,c,d);null==f||f();vJ(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,t.issueId,x).then(function(){for(var y=k,F=n(b),K=F.next();!K.done;K=F.next())K.value.position=y,y+=q?-1:1;null==f||f();vJ(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
JY.\u0275fac=function(a){return new (a||JY)(p(TI),p(uJ),p(eJ))};JY.\u0275prov=Hc({token:JY,factory:JY.\u0275fac,providedIn:"root"});
var s3b=["actionsMenuIconButton"],KY=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};KY.prototype.trackByIndex=function(a){return a};KY.prototype.onAction=function(a,b){return Pe(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);Ve(c)})};KY.prototype.ngOnInit=function(){};KY.\u0275fac=function(a){return new (a||KY)};
KY.\u0275cmp=u({type:KY,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&zg(s3b,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,JQa,3,4,"button",0),E(1,"mat-menu",null,1)(3,"div",2),P(4,KQa,2,1,"div",3),P(5,YQa,3,2,"ng-container",4),G()());a&2&&(D("ngIf",0<b.menuItems.length),A(4),D("ngIf",b.header),A(1),D("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[oF,
mF,nF,ey,fy,gy,yD,pC,tF],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}\n/*# sourceMappingURL=actions_menu.css.map */"],changeDetection:0});
var LY=function(a){this.buttonRef=a;this.toRefocus=!1};LY.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}))};LY.\u0275fac=function(a){return new (a||LY)(B(Rd))};
LY.\u0275dir=u({type:LY,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[ed]});
var MY=function(){this.pageChange=new sx;this.resultsPerPageChange=new sx;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};MY.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var t3b=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
ni.Object.defineProperties(MY.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}})}}});MY.\u0275fac=function(a){return new (a||MY)};
MY.\u0275cmp=u({type:MY,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&&(E(0,"div",0),P(1,ZQa,1,1,"b-actions-menu",1),P(2,$Qa,6,3,"span",2),E(3,"button",3),M("click",function(){return t3b(b)})("keydown.enter",function(c){t3b(b);return c.stopPropagation()}),H(4,"mat-icon",4),G(),E(5,"button",5),M("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),H(6,"mat-icon",6),G()());a&2&&(A(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),A(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length),A(1),D("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),A(2),D("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[gy,pC,yD,KY,LY],encapsulation:2});
var NY=function(){};NY.\u0275fac=function(a){return new (a||NY)};NY.\u0275mod=Yc({type:NY});NY.\u0275inj=Ic({imports:[pF,vy,uF,AF,uG]});
var OY=function(){};OY.\u0275fac=function(a){return new (a||OY)};OY.\u0275mod=Yc({type:OY});OY.\u0275inj=Ic({});
var PY=function(){};PY.\u0275fac=function(a){return new (a||PY)};PY.\u0275mod=Yc({type:PY});PY.\u0275inj=Ic({imports:[vy,AF,uF,NY,OY]});
var QY=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa){xY.call(this,c,e,f,h,k,q,t,x,y,d,F,J,R,S,aa);this.hotlists=a;this.hotlistApi=b;this.appEvents=K;this.resource=null};X(QY,xY);QY.\u0275dir=xY.\u0275dir;g=QY.prototype;g.ngOnInit=function(){xY.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?xY.prototype.setSort.call(this,a,b,!1):xY.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"});vJ(a.butterBar,'Saved changes to hotlist "'+b.name+'".');Mo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});wJ(this.butterBar,"Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},xY.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?u3b:v3b};g.getSearchParams=function(a){a=xY.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;Mo(c.analytics,c.ANALYTICS_CATEGORY,"issueDragDrop")})};QY.\u0275fac=function(a){return new (a||QY)(B(JY),B(TI),B(qH,2),B(xJ),B(oI),B(WH),B(NG),B(uJ),B(BK),B(iJ),B(vY),B(pI),B(RN),B(eJ),B(jH),B(iI),B(hJ),B(IM))};
QY.\u0275cmp=u({type:QY,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[mg([qH]),Of],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&&(E(0,"div",0)(1,"div",1)(2,"div",2),P(3,aRa,2,0,"div",3),P(4,bRa,2,0,"div",3),P(5,eRa,8,5,"div",3),G(),P(6,fRa,5,0,"div",4),E(7,"b-pagination",5),
M("pageChange",function(c){return b.goToPage(c.page)}),G()(),P(8,lRa,4,3,"div",3),G());a&2&&(Uf("aria-busy",b.isLoading),A(3),D("ngIf",!b.resource&&!b.isLoading),A(1),D("ngIf",!b.resource&&b.isLoading),A(1),D("ngIf",b.resource),A(1),D("ngIf",b.hasParamChanges()),A(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),A(1),D("ngIf",b.resource))},dependencies:[gy,OX,pC,tF,MY,yY,fM],encapsulation:2});var v3b=[RX,SX,TX,z2b],u3b=[RX,y2b,SX,TX,z2b],RY=function(){};
RY.\u0275fac=function(a){return new (a||RY)};RY.\u0275mod=Yc({type:RY});RY.\u0275inj=Ic({imports:[vy,IY,AF,uG,PY,zY,RM]});
var SY=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R){xY.call(this,b,d,e,f,h,k,q,t,x,c,y,F,K,J,R);this.savedSearchApi=a;this.resource=null};X(SY,xY);SY.\u0275dir=xY.\u0275dir;SY.prototype.ngOnInit=function(){xY.prototype.ngOnInit.call(this)};SY.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};SY.prototype.saveResource=function(){return Promise.resolve()};
SY.\u0275fac=function(a){return new (a||SY)(B(GM),B(qH,2),B(xJ),B(oI),B(WH),B(NG),B(uJ),B(BK),B(iJ),B(vY),B(pI),B(RN),B(jH),B(iI),B(hJ),B(IM))};
SY.\u0275cmp=u({type:SY,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[mg([qH]),Of],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&&(E(0,"div",0)(1,"div",1)(2,"div",2),P(3,mRa,2,0,"div",3),P(4,nRa,2,0,"div",3),P(5,qRa,8,5,"div",4),G(),E(6,"b-pagination",5),M("pageChange",function(c){return b.goToPage(c.page)}),G()(),P(7,vRa,4,3,"div",3),G());a&2&&(Uf("aria-busy",b.isLoading),A(3),D("ngIf",!b.resource&&!b.isLoading),A(1),D("ngIf",!b.resource&&b.isLoading),A(1),D("ngIf",b.resource),A(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),A(1),D("ngIf",b.resource))},
dependencies:[gy,OX,tF,MY,yY,fM],encapsulation:2});var TY=function(){};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275mod=Yc({type:TY});TY.\u0275inj=Ic({imports:[vy,IY,uG,PY,zY,RM]});
var UY=function(){};UY.\u0275fac=function(a){return new (a||UY)};UY.\u0275mod=Yc({type:UY});UY.\u0275inj=Ic({});
var VY=function(){this.label="Team"};VY.prototype.ngOnInit=function(){};VY.\u0275fac=function(a){return new (a||VY)};
VY.\u0275cmp=u({type:VY,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&&(E(0,"div",0)(1,"span",1),P(2,wRa,3,3,"span",2),G()());a&2&&(Uf("aria-label",b.label),A(2),D("ngForOf",b.teamPath))},dependencies:[fy,QH],encapsulation:2});
var WY=function(){};WY.\u0275fac=function(a){return new (a||WY)};WY.\u0275mod=Yc({type:WY});WY.\u0275inj=Ic({imports:[vy,UH,ST]});
var XY=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};XY.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};XY.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};XY.\u0275fac=function(a){return new (a||XY)(B(Rd))};XY.\u0275dir=u({type:XY,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[ed]});var YY=function(){};YY.\u0275fac=function(a){return new (a||YY)};YY.\u0275mod=Yc({type:YY});YY.\u0275inj=Ic({});
var w3b=["form"],x3b=["numberInput"],y3b=/^\d+\.?\d*$/,z3b={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},ZY=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new sx;this.displayUnits=0;this.timeUnitEnum=z3b};
ZY.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()})};ZY.prototype.ngAfterViewInit=function(){};
ZY.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))};ZY.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};ZY.\u0275fac=function(a){return new (a||ZY)};
ZY.\u0275cmp=u({type:ZY,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(zg(w3b,7),zg(x3b,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:12,vars:7,consts:[["form","ngForm"],[1,"duration-picker-form"],["color","accent","appearance","outline"],["matInput","","type","number","step","1","min","0","name","numbers","placeholder",
"---",3,"ngModel","disabled","keydown","paste"],["numberInput",""],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){a&1&&(E(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"input",3,4),M("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");y3b.test(d)||c.preventDefault()}),G()(),E(6,"mat-form-field",2)(7,"mat-select",5)(8,"mat-option",6),Q(9,"days"),G(),E(10,"mat-option",
6),Q(11,"year(s)"),G()()()()());a&2&&(A(4),D("ngModel",b.displayNumber)("disabled",b.disabled),Uf("aria-label",b.ariaLabel),A(3),D("ngModel",b.displayUnits)("disabled",b.disabled),A(1),D("value",b.timeUnitEnum.DAYS),A(2),D("value",b.timeUnitEnum.YEARS))},dependencies:[Sy,fh,Ty,Ky,Ly,az,Ry,Py,XC,$C,wR,rC],styles:["[_nghost-%COMP%]     .duration-picker-form{display:flex;flex-direction:row;width:250px}[_nghost-%COMP%]     .duration-picker-form .mat-form-field{min-width:70px;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-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 $Y=function(){};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275mod=Yc({type:$Y});$Y.\u0275inj=Ic({imports:[vy,fz,aD,YC,xR,YY]});
var aZ=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};aZ.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};aZ.prototype.onNoClick=function(){this.dialogRef.close(!1)};aZ.\u0275fac=function(a){return new (a||aZ)(B(EC),B(HC),B(QN))};
aZ.\u0275cmp=u({type:aZ,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&&(E(0,"h1",0),Q(1),G(),E(2,"div",1)(3,"p"),Q(4,
" The "),E(5,"strong"),Q(6),G(),Q(7," field will change state from "),E(8,"strong"),Q(9),G(),Q(10," to "),E(11,"strong"),Q(12),G(),Q(13,". "),G(),P(14,xRa,6,2,"p",2),E(15,"p"),Q(16,"Are you sure?"),G()(),E(17,"div",3)(18,"button",4),M("click",function(){return b.onNoClick()}),Q(19," Cancel "),G(),E(20,"button",5),Q(21," Confirm "),G()());a&2&&(A(1),T("Field State Change for ",b.data.fieldName,""),A(5),kg(b.data.fieldName),A(3),kg(b.data.oldFieldState),A(3),kg(b.data.newFieldState),A(2),D("ngIf",b.data.noteText),
A(6),D("mat-dialog-close",!0))},dependencies:[gy,pC,JC,KC,LC,MC],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});
var A3b=["fieldStateMenuButton"],B3b=function(a){return{"mat-stroked-button":a}},bZ=function(a){this.dialog=a;this.fieldName="";this.fieldState=1;this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new sx;this.FieldStateProto=ira;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."}};bZ.prototype.ngOnInit=function(){this.updateMenuButton()};
bZ.prototype.ngOnChanges=function(){this.updateMenuButton()};
var D3b=function(a,b){b!==a.fieldState&&(a.confirmationDialog?C3b(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},C3b=function(a,b){var c=2===b||1===b&&!a.enabledOnParent,d=1!==a.fieldState&&1===b,e=void 0;2!==a.fieldState&&(1!==a.fieldState||a.enabledOnParent)&&c?e=a.msgs.becomesHiddenWarning:d&&(e=a.msgs.becomesInheritedWarning);CC(a.dialog.open(aZ,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:E3b(a,a.fieldState),newFieldState:E3b(a,b),noteText:e}})).pipe(sf()).subscribe(function(f){f?
(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};bZ.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=E3b(this,this.fieldState)};var E3b=function(a,b){switch(b){case 1:return a.defaultLabel;case 2:return a.msgs.hiddenName;case 3:return a.msgs.visibleName;default:Ai(b,"Unknown FieldState.")}};bZ.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};
bZ.\u0275fac=function(a){return new (a||bZ)(B(IC))};
bZ.\u0275cmp=u({type:bZ,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&zg(A3b,5,Rd);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:[ed],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&&(E(0,"div")(1,"button",0,1)(3,"div",2),H(4,"span",3)(5,"b-icon",4),G()()(),E(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),M("click",function(){return D3b(b,b.FieldStateProto.INHERIT)}),H(11,"b-icon",9),E(12,"div",10),Q(13),G(),E(14,"div",11),Q(15),G()()(),H(16,"mat-divider"),E(17,"button",12),M("click",function(){return D3b(b,b.FieldStateProto.DISABLED)}),E(18,"div",13)(19,"div",
14),H(20,"b-icon",9),E(21,"div",10),Q(22),G(),E(23,"div",11),Q(24),G()()()(),E(25,"button",12),M("click",function(){return D3b(b,b.FieldStateProto.ENABLED)}),E(26,"div",13)(27,"div",14),H(28,"b-icon",9),E(29,"div",10),Q(30),G(),E(31,"div",11),Q(32),G()()()()()());if(a&2){var c=O(7);A(1);D("ngClass",og(16,B3b,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);A(3);D("innerHTML",b.menuLabel,ke);A(6);Zf("b-menu-item-checked",b.fieldState===b.FieldStateProto.INHERIT);A(3);T(" ",b.defaultLabel,
" ");A(2);T(" ",b.msgs.inheritDescription," ");A(2);Zf("b-menu-item-checked",b.fieldState===b.FieldStateProto.DISABLED);A(5);T(" ",b.msgs.hiddenName," ");A(2);T(" ",b.msgs.hiddenDescription," ");A(1);Zf("b-menu-item-checked",b.fieldState===b.FieldStateProto.ENABLED);A(5);T(" ",b.msgs.visibleName," ");A(2);T(" ",b.msgs.visibleDescription," ")}},dependencies:[ey,pC,WG,oF,mF,nF,QG],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 cZ=function(){};cZ.\u0275fac=function(a){return new (a||cZ)};cZ.\u0275mod=Yc({type:cZ});cZ.\u0275inj=Ic({imports:[vy,AF,NC,aH,pF,$G,GL]});
var dZ=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};dZ.prototype.close=function(){this.dialogRef.close(!1)};dZ.\u0275fac=function(a){return new (a||dZ)(B(HC),B(EC))};
dZ.\u0275cmp=u({type:dZ,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&&(E(0,"h1",0),Q(1,"Unsubscribe From Issue"),G(),E(2,"mat-dialog-content")(3,"div",1),Q(4," Are you sure you would like to unsubscribe from the following issue? "),
G(),H(5,"br"),E(6,"div",2)(7,"a",3)(8,"span"),Q(9),G()(),Q(10," - "),E(11,"span"),Q(12),G()(),H(13,"br"),E(14,"div",1),Q(15," By unsubscribing, you will no longer receive email updates about this issue. "),G()(),E(16,"mat-dialog-actions")(17,"button",4),M("click",function(){return b.close()}),Q(18," Cancel "),G(),E(19,"button",5),M("click",function(){b.dialogRef.close(!0)}),Q(20," Unsubscribe "),G()());a&2&&(A(7),hg("href","/issues/",b.issueId,"",le),A(2),T("b/",b.issueId,""),A(3),kg(b.issueTitle))},
dependencies:[KC,LC,MC,pC],encapsulation:2});
var F3b=function(a,b){return{small:a,medium:b}},G3b=function(a){return{black:a}},eZ=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 sx;this.showNotificationSettings=new sx;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=yAb;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"}]])};eZ.prototype.ngOnInit=function(){H3b(this)};eZ.prototype.ngOnChanges=function(){this.updateMenuButton()};eZ.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};eZ.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var H3b=function(a){var b,c;Pe(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():Re(d,(0,W.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress)return(b=d.yieldResult)?Re(d,(0,W.firstValueFrom)(CC(a.matDialogService.open(dZ,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3):d.return();if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),Mo(a.analytics,Aq.EDIT_ISSUE,"unsubscribeUsingDialog");
Ve(d)})};ni.Object.defineProperties(eZ.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});eZ.\u0275fac=function(a){return new (a||eZ)(B(NG),B(IC),B(FK),B(BK),B(tQ))};
eZ.\u0275cmp=u({type:eZ,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[ed],decls:63,vars:31,consts:[["mat-button","",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=v();E(0,"div")(1,"button",0)(2,"div",1);H(3,"b-icon",2);P(4,yRa,3,1,"ng-container",
3);G()()();E(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7);M("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)});H(10,"b-icon",8);E(11,"div",9);Q(12," Default ");G();E(13,"div",10);Q(14," receive emails based on your default settings. ");G()();H(15,"mat-divider",11);E(16,"button",12);M("click",function(h){return b.showNotificationSettings.emit(h)});H(17,"b-icon",13);G()();H(18,"mat-divider");E(19,"div",14)(20,"button",15);M("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)});
E(21,"div",16);H(22,"b-icon",8);E(23,"div",9);Q(24," All Updates ");G();E(25,"div",10);Q(26," receive emails for major and minor updates. ");G()()();E(27,"button",17);M("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)})("focus",function(){w(c);var h=O(29);return z(h.toggle(!0))})("blur",function(){w(c);var h=O(29);return z(h.toggle(!1))});E(28,"xap-bubble",18,19);H(30,"mat-icon",20);P(31,zRa,13,0,"ng-template",null,21,Hg);G()()();E(33,"div",14)(34,
"button",22);M("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)});E(35,"div",16);H(36,"b-icon",8);E(37,"div",9);Q(38," Major Updates ");G();E(39,"div",10);Q(40," receive emails for major updates only. ");G()()();E(41,"button",17);M("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)})("focus",function(){w(c);var h=O(43);return z(h.toggle(!0))})("blur",function(){w(c);var h=O(43);return z(h.toggle(!1))});
E(42,"xap-bubble",18,23);H(44,"mat-icon",20);P(45,ARa,15,0,"ng-template",null,24,Hg);G()()();E(47,"button",25);M("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)});E(48,"div",14)(49,"div",16);H(50,"b-icon",8);E(51,"div",9);Q(52," Closure Only ");G();E(53,"div",10);Q(54," only receive emails when the issue is closed. ");G()()()();E(55,"button",25);M("click",function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)});E(56,"div",
14)(57,"div",16);H(58,"b-icon",8);E(59,"div",9);Q(60," None ");G();E(61,"div",10);Q(62," unsubscribe from further email updates. ");G()()()()()()}if(a&2){var d=O(6),e=O(32),f=O(46);A(1);Zf("icon-only",b.iconOnly);D("ngClass",pg(26,F3b,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",d)("disabled",b.isAnonymous);Uf("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);A(2);D("name",b.menuIcon)("ngClass",og(29,G3b,"notifications-off"===
b.menuIcon));A(1);D("ngIf",!b.iconOnly);A(5);Zf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);A(6);D("vertical",!0);A(5);Zf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);A(7);Uf("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.");
A(1);D("panelTemplate",e)("overlayPositions",b.bubblePosition);A(6);Zf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);A(7);Uf("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.");A(1);D("panelTemplate",f)("overlayPositions",b.bubblePosition);A(5);Zf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);
A(8);Zf("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[ey,gy,pC,WG,oF,mF,nF,QG,rR,yD],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 fZ=function(){};fZ.\u0275fac=function(a){return new (a||fZ)};fZ.\u0275mod=Yc({type:fZ});fZ.\u0275inj=Ic({imports:[vy,AF,aH,pF,$G,GL,CR,uF]});
var gZ=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new sx;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},I3b=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()};
gZ.prototype.displayFn=function(a){return(null==a?void 0:a.getName())||(null==a?void 0:a.getSloId())||""};gZ.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.getSloId();this.onSloSelect.emit(a);this.cdr.detectChanges()};
ni.Object.defineProperties(gZ.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=(new qX).setSloId(b.internalBoundId)}):(this.dropdownChoices=[],this.selectedSlo=null)}}});gZ.\u0275fac=function(a){return new (a||gZ)(B(sX),B(qH,2))};
gZ.\u0275cmp=u({type:gZ,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[mg([qH])],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=v();E(0,"div",0)(1,"input",1,2);M("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){w(c);var e=O(2);return z(I3b(b,e.value))})("input",function(){w(c);var e=O(2);return z(I3b(b,e.value))});G();E(3,"mat-autocomplete",3,4);M("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(5,BRa,2,2,"mat-option",5);G()()}if(a&
2){var d=O(4);A(1);D("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);A(2);D("displayWith",b.displayFn);A(2);D("ngForOf",b.dropdownChoices)}},dependencies:[fy,qM,pM,rC,fh,Ky,Ry],encapsulation:2});
var hZ=function(){};hZ.\u0275fac=function(a){return new (a||hZ)};hZ.\u0275mod=Yc({type:hZ});hZ.\u0275inj=Ic({imports:[vy,rM,fz]});
var J3b=function(a){return{"empty-list-field-indication":a}},iZ=function(a){this.documentationLinks=a;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new sx;this.validChange=new sx;this.RetentionSelection=DAb};
iZ.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};Mq(this)};iZ.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);Mq(this)};
var Mq=function(a){var b=a.validChange,c=b.emit,d;if(d=Oq(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!K3b(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||L3b(a));c.call(b,d)};iZ.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var Oq=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)},Nq=function(a){return a?Wo(a):"[unset period]"},L3b=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},GRa=function(a){if(!Oq(a)||L3b(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 "+Nq(e):"Restricted+ retention must not exceed Restricted retention."},K3b=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},JRa=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};iZ.\u0275fac=function(a){return new (a||iZ)(B(QN))};
iZ.\u0275cmp=u({type:iZ,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&&(E(0,"mat-radio-group",0),M("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),E(1,"p")(2,"b"),Q(3,"Issue Retention"),G()(),E(4,"mat-radio-button",1),Q(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),G(),E(6,"mat-radio-button",2),Q(7," Custom retention period "),P(8,CRa,2,0,"span",3),P(9,DRa,4,
3,"div",4),G(),E(10,"mat-radio-button",5),Q(11),P(12,ERa,13,0,"div",6),G()(),E(13,"mat-radio-group",7),M("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);Mq(b)}),E(14,"p"),H(15,"br"),E(16,"b"),Q(17,"Restricted Comments/Attachments Retention "),G(),E(18,"a",8),Q(19,"Learn more "),G()(),E(20,"mat-radio-button",1),Q(21," Buganizer default retention period : 60 days "),P(22,FRa,2,0,"span",3),
G(),E(23,"mat-radio-button",9),Q(24," Custom retention period "),P(25,HRa,2,1,"span",3),P(26,KRa,16,7,"div",4),G(),E(27,"mat-radio-button",5),Q(28," Match Issue Retention "),P(29,LRa,3,0,"div",10),G()());a&2&&(D("ngClass",og(28,J3b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),A(4),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),A(2),D("value",b.RetentionSelection.CUSTOM_PERIOD),
A(2),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),A(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),A(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),A(1),T(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),A(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
A(1),D("ngClass",og(30,J3b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),A(5),D("rel",b.EXTERNAL_LINK_REL),Uf("href",b.documentationLinks.getRestrictedAccessHelpLink(),le),A(2),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),A(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&K3b(b)),A(1),D("aria-label","Custom Retention Period,"+
GRa(b))("disabled",!Oq(b))("value",b.RetentionSelection.CUSTOM_PERIOD),A(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!L3b(b)),A(1),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),A(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),A(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&JRa(b)))},dependencies:[ey,gy,Ky,Ry,eX,fX,ZY],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 jZ=function(){};jZ.\u0275fac=function(a){return new (a||jZ)};jZ.\u0275mod=Yc({type:jZ});jZ.\u0275inj=Ic({imports:[vy,fz,mX,$Y]});
var M3b=function(){this.type="component";this.includeChildren=!1},N3b=function(){this.type="tracker"},O3b=function(){this.type="team";this.includeChildren=!1},P3b=function(){this.type="hotlist"},Q3b=function(){this.type="savedsearch"},R3b=function(){this.type="customfield"};
var S3b=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},T3b="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),U3b=T3b.concat("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(" ")),
V3b="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),W3b="(?:\\s|^)(-?)(customfield\\d+|"+U3b.join("|")+")(:|>|<|>=|<=|=)";
var kZ=function(a,b,c,d,e,f,h,k,q){Z.call(this);var t=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 X3b(t,x)}},{updateHeader:function(x){return Y3b(t,x)}},{updateHeader:function(x){return Z3b(t,x)}},{updateHeader:function(x){return $3b(t,x)}},{updateHeader:function(x){return a4b(t,
x)}},{updateHeader:function(x){return b4b(t,x)}},{updateHeader:function(x){return c4b(t,x)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new W.Subject;this.refreshRequest$=new W.Subject;this.refreshRequest$.pipe(of(250),Ef(this.destroyed$)).subscribe(function(x){d4b(t,x.currentRequestIndex,x.currentSearchContext)});this.sessionIsInternal=q.isInternalSession();a=new Set(U3b);Cq(q,"enableCollaborators")||(a.delete("collaborator"),a.delete("collaboratorcount"));
this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(q=n(V3b),b=q.next();!b.done;b=q.next())a.delete(b.value);this.isTrackerSearchEnabled()||a.delete("trackerid");this.atoms=Object.freeze(a);this.atomsWithoutOp=Object.freeze(new Set(["customfield"]))};X(kZ,Z);kZ.\u0275dir=Z.\u0275dir;kZ.prototype.isTrackerSearchEnabled=function(){return this.currentTracker.enableTrackers&&!this.currentTracker.inTracker};
var d4b=function(a,b,c){for(var d=!1,e=!1,f=[],h=n(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,r(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()})},X3b=
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 e4b(a,b);switch(b.label.val){case "archived":return Promise.resolve(Rq(f4b,b.value,!0));case "componentid":case "c":return g4b(a,b);case "deleted":return h4b(b);case "deletionreason":return Promise.resolve(Rq(i4b,b.value,!0));case "hotlistid":case "h":return j4b(a,b);case "savedsearchid":return k4b(a,b);case "status":case "is":return Promise.resolve(Rq(l4b,
b.value,!0));case "trackerid":return m4b(a,b);case "teamid":return n4b(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(Rq(o4b,b.value,!0));case "severity":case "s":return Promise.resolve(Rq(p4b,b.value,!0));case "inprod":case "star":case "mute":return h4b(b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=NRa(b.value.val),e=n(a.atoms),f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&Zi(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 gv(k.name,q.name)});return Promise.resolve(c)},e4b=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if("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 Rq(d,b.value,!1,!1)}):Promise.reject(null)};kZ.prototype.matchType=function(a){return Promise.resolve(Rq(q4b,a.value,!0))};
var h4b=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(Rq([{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))},g4b=function(a,b){var c=b.value.val;if(!c||Qq(c,!0))return Promise.reject(null);var d=a.currentTracker.getTrackerId();return a.componentActions.search(c,
!1,Ho(d)?void 0:[d]).then(function(e){var f=[],h={};e=n(e);for(var k=e.next();!k.done;h={$jscomp$loop$prop$component$1964:h.$jscomp$loop$prop$component$1964,$jscomp$loop$prop$startIdx$1965:h.$jscomp$loop$prop$startIdx$1965,$jscomp$loop$prop$endIdx$1966:h.$jscomp$loop$prop$endIdx$1966},k=e.next())h.$jscomp$loop$prop$component$1964=k.value,k=h.$jscomp$loop$prop$component$1964.componentId,h.$jscomp$loop$prop$startIdx$1965=b.value.idx,h.$jscomp$loop$prop$endIdx$1966=h.$jscomp$loop$prop$startIdx$1965+
c.length,k={componentId:k,name:h.$jscomp$loop$prop$component$1964.name,description:h.$jscomp$loop$prop$component$1964.description,trackId:"component:"+k,accessLimit:h.$jscomp$loop$prop$component$1964.accessLimit,trackerId:h.$jscomp$loop$prop$component$1964.trackerId,completionCfg:{type:"component",startIdx:h.$jscomp$loop$prop$startIdx$1965,endIdx:h.$jscomp$loop$prop$endIdx$1966,completionValue:""+k,matchingString:c},componentPath:h.$jscomp$loop$prop$component$1964.componentPathInfo.componentPathId.map(function(q){return function(t,
x){return{trackId:"subcomponent:"+t,id:""+t,name:String(q.$jscomp$loop$prop$component$1964.componentPathInfo.componentPathName[x]),completionCfg:{type:"component",completionValue:String(t),startIdx:q.$jscomp$loop$prop$startIdx$1965,endIdx:q.$jscomp$loop$prop$endIdx$1966}}}}(h))},f.push(k);return f})},n4b=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||Qq(c,!0))return Promise.reject(null);var d=dk();aL(a.teamsService,c).pipe(Ef(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=
f+c.length,k=[],q={};e=n(e.getTeamSuggestionsList());for(var t=e.next();!t.done;q={$jscomp$loop$prop$pathNames$1968:q.$jscomp$loop$prop$pathNames$1968},t=e.next())t=t.value,q.$jscomp$loop$prop$pathNames$1968=t.getPathNamesList(),t={trackId:"team:"+t.getId(),name:t.getName(),id:t.getId(),label:"Team "+t.getId(),pathIds:t.getPathIdsList(),pathNames:t.getPathNamesList(),description:t.getDescription(),completionCfg:{type:"team",startIdx:f,endIdx:h,completionValue:String(t.getId()),matchingString:c},teamPath:t.getPathIdsList().map(function(x){return function(y,
F){return{trackId:"team:"+y,id:y,name:x.$jscomp$loop$prop$pathNames$1968[F],completionCfg:{type:"team",completionValue:String(y),startIdx:f,endIdx:h}}}}(q))},k.push(t);d.resolve(k)},function(){d.reject()});return d.promise},Y3b=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new M3b;b=b.value.val;return Qq(b,!0)?(fv(b,"+")&&(b=b.slice(0,b.length-1),c.includeChildren=!0),a.componentActions.get(Number(b)).then(function(d){c.component=d;return c})):
Promise.resolve(c)},a4b=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||"trackerid"!==b.label.val)return Promise.reject(null);var c=new N3b,d=dk();b=b.value.val;Qq(b)?a.trackerFridge.watchOne(b).pipe(Ef(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},c4b=function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);var c=new O3b,d=dk(),e=b.value.val;Qq(e,!0)?(fv(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=
!0),aL(a.teamsService,e).pipe(Ef(a.destroyed$)).subscribe(function(f){f=f.getTeamSuggestionsList();0<f.length?(f=f[0],c.team={pathNames:f.getPathNamesList(),name:f.getName(),description:f.getDescription()}):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},Z3b=function(a,b){if(!b.label||"hotlistid"!==b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new P3b;b=b.value.val;
return Qq(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},$3b=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new Q3b;b=b.value.val;return Qq(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},b4b=function(a,b){if(b.label&&b.label.customFieldId)var c=b.label.customFieldId;else if(Zi(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&
(c=b[1]),vo("search-usage","customfield");else return Promise.reject(null);var d=new R3b;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},m4b=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||Qq(c,!0))return Promise.reject(null);var d=dk();a.trackerFridge.watchMany({filter:c,pageSize:5}).pipe(Ef(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=n(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},j4b=function(a,b){return Qq(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 Rq(c,b.value,!1,!0)})},k4b=function(a,
b){return Qq(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 Rq(c,b.value,!1,!0)})};kZ.\u0275fac=function(a){return new (a||kZ)(p(oK),p(KJ),p(LJ),p(tY),p(TI),p(GM),p(ZR),p($K),p(NG))};kZ.\u0275prov=Hc({token:kZ,factory:kZ.\u0275fac,providedIn:"root"});
var l4b="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return Sq(a,"status","Status","status")}),q4b="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return Sq(a,"bugType","Type","type")}),o4b=["p0","p1","p2","p3","p4"].map(function(a){return Sq(a,"priority","Priority","priority")}),p4b=["s0","s1",
"s2","s3","s4"].map(function(a){return Sq(a,"severity","Severity","severity")}),f4b=["all","true","false"].map(function(a){return Sq(a,"archived","Archived","archived")}),i4b=["abuse","pii","user_request","retention"].map(function(a){return Sq(a,"deletionReason","Deletion Reason","deletionreason")});
var lZ=function(a){this.cdr=a;this.optionsChange=new sx};lZ.prototype.ngOnInit=function(){ORa(this)};
var ORa=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},PRa=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},r4b=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);PRa(a)},s4b=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(", ")};lZ.\u0275fac=function(a){return new (a||lZ)(B(qH,2))};
lZ.\u0275cmp=u({type:lZ,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[mg([qH])],decls:15,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","label","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","label","change","click"],[1,"bv2-property-picker-error-message"]],template:function(a,b){a&1&&
(E(0,"div")(1,"button",0)(2,"div",1)(3,"span",2),Q(4),Q(5," \u00a0 "),G(),H(6,"mat-icon",3),G()(),E(7,"mat-menu",null,4)(9,"div",5),M("click",function(d){return r4b(b,d)}),E(10,"b-checkbox",6),M("change",function(d){b.selectAllValue=d;return r4b(b)}),G()(),H(11,"mat-divider"),P(12,QRa,3,3,"div",7),U(13,"keyvalue"),G(),P(14,RRa,2,1,"div",8),G());if(a&2){var c=O(8);A(1);Zf("ng-invalid",!!b.errorString);D("matMenuTriggerFor",c);A(3);T(" ",s4b(b)," ");A(5);Uf("aria-checked",b.selectAllValue);A(1);D("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue)("label",b.selectAllText);A(2);D("ngForOf",V(13,10,b.options.propertyValues));A(2);D("ngIf",!!b.errorString)}},dependencies:[fy,gy,RO,oF,mF,nF,WG,pC,yD,sy],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var t4b=function(a,b){this.displayString=a;this.value=b},u4b=function(a){this.propertyValues=a},v4b=function(a){for(var b=n(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},rSa=function(a){for(var b=n(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};u4b.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};
var mZ=function(){};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275mod=Yc({type:mZ});mZ.\u0275inj=Ic({imports:[vy,SO,pF,aH,AF,uF]});
var w4b=function(a,b){this.name=a;this.secondsPerUnit=b},Tq=new w4b("minute",60),Uq=new w4b("hour",3600),Vq=new w4b("day",86400),nZ=function(){this.errorString=null;this.objectiveDurationChange=new sx;this.objectiveBusinessDaysChange=new sx;this.intervalUnit=Vq};nZ.prototype.ngOnInit=function(){x4b(this)};nZ.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&x4b(this)};
var URa=function(a,b){b=b.name;1!==Xi(a.intervalString)&&(b+="s");return b},x4b=function(a){2!=a.dayType&&y4b(a,Vq)||y4b(a,Uq)||y4b(a,Tq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},y4b=function(a,b){var c=a.objectiveDuration.getSeconds();return 0==c%b.secondsPerUnit?(c/=b.secondsPerUnit,0!=c||""!=a.intervalString?(a.intervalString=""+c,a.intervalUnit=b):(2==a.dayType?[Tq,Uq]:[Tq,Uq,Vq]).includes(a.intervalUnit)||(a.intervalUnit=b),!0):!1},
SRa=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);WRa(a);XRa(a)},WRa=function(a){a.objectiveDuration.setSeconds(a.intervalUnit.secondsPerUnit*(Xi(a.intervalString)||0));a.objectiveDurationChange.emit(a.objectiveDuration)},XRa=function(a){a.objectiveBusinessDays=Xi(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};nZ.\u0275fac=function(a){return new (a||nZ)};
nZ.\u0275cmp=u({type:nZ,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[ed],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,YRa,6,6,"span",0),P(1,bSa,3,2,"span",1));a&2&&(D("ngIf",!b.isDisabled),A(1),D("ngIf",b.isDisabled))},dependencies:[fy,
gy,fh,Ky,Ry,wR,rC],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}\n/*# sourceMappingURL=slo_objective_selector.css.map */']});
var oZ=function(){this.typeStringToJSPB=new Map([["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]]);this.jspbTypeToString=new Map([[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"]]);
this.priorityStringToJSPB=new Map([["P0",1],["P1",2],["P2",3],["P3",4],["P4",5]]);this.jspbPriorityToString=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"]]);this.postmortemValuesToCanonical=new Map([["TRUE","ANY"],["FALSE","NONE"],["ANY","ANY"],["NONE","NONE"]]);this.canonicalGroupQueryKeywordToQueryValue=new Map([["ANY","any"],["NONE","none"]])},C4b=function(a,b){var c=new z4b,d=A4b(b,"type",function(f){var h=f.toUpperCase(),k=new B4b;a.typeStringToJSPB.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=n(d.values);for(d=e.next();!d.done;d=e.next())c.types.push(a.typeStringToJSPB.get(d.value));d=A4b(b,"priority",function(f){var h=f.toUpperCase(),k=new B4b;a.priorityStringToJSPB.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=n(d.values);for(d=e.next();!d.done;d=e.next())c.priorities.push(a.priorityStringToJSPB.get(d.value));b=A4b(b,"postmortem",function(f){var h=
f.toUpperCase(),k=new B4b;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=n(b.values),d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},A4b=function(a,b,c){var d=new D4b;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};oZ.\u0275fac=function(a){return new (a||oZ)(p(VG),p(NG))};oZ.\u0275prov=Hc({token:oZ,factory:oZ.\u0275fac,providedIn:"root"});var z4b=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},D4b=function(){this.values=[];this.error=""},B4b=function(){this.error=this.value=""};
var pZ=function(){};pZ.prototype.validate=function(a){for(var b={},c=n(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275dir=u({type:pZ,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[mg([{provide:Ey,useExisting:pZ,multi:!0}])]});
var qZ=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new sx;this.onValidation=new sx;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=[0].concat(C1b);this.dayTypes=[1,2];C1b.map(function(d,e){return[d,e]});this.selectedMetric=0;this.selectedDayType=1;this.selectedMetric=
this.metricChoices[0];this.selectedDayType=1;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.anyNoneDisplayValues=new Map([["ANY","Has postmortem"],["NONE","No postmortem"]]);this.canPerformActions=!0},MSa=function(a,b,c){Wq(a);a=n(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},PSa=function(a,b,c){c=SSa(a,b,c);var d=c.newOffset;c.valid&&(Wq(a),Ea(a.collection,b),Ea(a.boundCollection,b.sloElement),a.collection.splice(d,
0,b),a.boundCollection.splice(d,0,b.sloElement),E4b(a))},SSa=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},Wq=function(a){a=n(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},F4b=function(a,b){var c=b.map(function(d){return new rZ(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},xSa=function(a,b){return 0!==b&&a.constants.protoIssueTypesDisplayNames.has(b)?a.constants.protoIssueTypesDisplayNames.get(b):
" - "},CSa=function(a,b){return 0!==b&&a.constants.protoIssuePrioritiesDisplayNames.has(b)?a.constants.protoIssuePrioritiesDisplayNames.get(b):" - "},sSa=function(a,b){Wq(a);Ea(a.collection,b);Ea(a.boundCollection,b.sloElement);E4b(a)},eSa=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Co("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];
E4b(a)},onDismiss:function(){}});b.stopPropagation()},cSa=function(a,b){var c=new rZ(new pX,a,!0);MSa(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);E4b(a)};qZ.prototype.onDrop=function(a){PSa(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var E4b=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
ni.Object.defineProperties(qZ.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){F4b(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=n(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});qZ.\u0275fac=function(a){return new (a||qZ)(B(VG),B(oZ),B(UL))};
qZ.\u0275cmp=u({type:qZ,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","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&&(E(0,"div",0)(1,"div")(2,"div")(3,"label",1),Q(4,"Rules"),G(),E(5,"a",2),H(6,"b-icon",3),G(),P(7,fSa,6,3,"span",4),G(),E(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),Q(12,"Order"),G(),E(13,"th",8),Q(14,"Type"),G(),E(15,"th",9),Q(16,"Priority"),G(),E(17,"th",10),Q(18,"Postmortem"),G(),E(19,"th",11),Q(20,"Metric"),G(),E(21,"th",12),Q(22,"Objective"),G(),E(23,"th",13),Q(24," Day Type "),G(),H(25,"th",14),G()(),
P(26,VSa,2,3,"tbody",15),G(),E(27,"div"),P(28,WSa,2,0,"div",16),G()()());a&2&&(A(6),D("name","help-outline")("size","small"),A(1),D("ngIf",!b.isDisabled),A(19),D("ngIf",b.collection&&0!=b.collection.length),A(2),D("ngIf",!b.collection||0==b.collection.length))},dependencies:[fy,gy,pZ,cU,dU,Ky,bz,Ry,QG,XC,oF,mF,nF,wR,rC,tF,lZ,nZ],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)}\n/*# sourceMappingURL=slo-elements-picker.css.map */']});
var rZ=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.isEditing_=!1;this.objectiveValid=!0;this.validatePriorityPicker=function(){var e=v4b(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=v4b(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=v4b(d.postmortemPickerValues)?null:"Postmortem can't be empty";d.postmortemPickerValid=null===e;return e};this.validateObjective=function(e,f){if(2!=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.getMatcher();this.selectedMetric=a.getMetric();this.selectedDayType=qj(a,4,0)||1;this.selectedObjectiveDuration=G4b(Ub(a,Ml,3));this.selectedObjectiveBusinessDays=Ji(a,5);this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return H4b(d,e)}};I4b(this);this.typePickerValues=J4b(this.controllerReference.sloParseService.jspbTypeToString.keys(),function(e){return 0===d.parseResult.types.length||
d.parseResult.types.includes(e)},function(e){return xSa(d.controllerReference,e)});this.priorityPickerValues=J4b(this.controllerReference.sloParseService.jspbPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return CSa(d.controllerReference,e)});this.postmortemPickerValues=J4b(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();H4b(this,this.selectedMetric)},G4b=function(a){return a?a:(new Ml).setSeconds(86400)};rZ.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var H4b=function(a,b){b=0!==b;return a.metricSelectorValid=b};
rZ.prototype.stopEditing=function(){if(this.isEditing_&&(this.isValid()||this.isNewElement)){this.controllerReference.openRow=null;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.isEditing_=this.isNewElement=!1;this.canEdit=!0;K4b(this);m(this.sloElement,1,this.selectedMetric);m(this.sloElement,4,this.selectedDayType);Vb(this.sloElement,3,this.selectedObjectiveDuration);m(this.sloElement,5,this.selectedObjectiveBusinessDays);I4b(this)}};
var K4b=function(a){var b=L4b(a.typePickerValues),c=L4b(a.priorityPickerValues),d=L4b(a.postmortemPickerValues);b=M4b(b,function(f){return a.controllerReference.sloParseService.jspbTypeToString.get(Xi(f))});c=M4b(c,function(f){return a.controllerReference.sloParseService.jspbPriorityToString.get(Xi(f))});d=M4b(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.setMatcher(a.matcherText)},L4b=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},M4b=function(a,b){if(0===a.length)return"";if(1===a.length)return b(a[0]);var c=[];a=n(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
rZ.prototype.startEditing=function(){if(!this.isEditing_){this.controllerReference.canPerformActions=!1;this.controllerReference.openRow=this;var a=this.controllerReference;a.canPerformActions=!a.openRow;this.canEdit=!1;this.isEditing_=!0;I4b(this)}};var I4b=function(a){a.parseResult=C4b(a.controllerReference.sloParseService,a.matcherText)},J4b=function(a,b,c){var d={};a=n(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new t4b(h,f)}return new u4b(d)};
var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=Yc({type:sZ});sZ.\u0275inj=Ic({imports:[vy,fz,xR]});
var tZ=function(){};tZ.\u0275fac=function(a){return new (a||tZ)};tZ.\u0275mod=Yc({type:tZ});tZ.\u0275inj=Ic({imports:[vy]});
var uZ=function(){};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275mod=Yc({type:uZ});uZ.\u0275inj=Ic({imports:[vy,tZ,eU,fz,$G,YC,pF,xR,uG,mZ,sZ]});
var vZ=function(a,b,c,d,e){Z.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};X(vZ,Z);vZ.\u0275dir=Z.\u0275dir;g=vZ.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=jI(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].getName()};g.editSlo=function(a){this.location.path(this.paths.editSlo(a.getSloId()))};
vZ.\u0275fac=function(a){return new (a||vZ)(B(Rd),B(qH,2),B(oI),B(pI),B(iI))};
vZ.\u0275cmp=u({type:vZ,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[mg([qH]),Of],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&&(E(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),E(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),Q(8," SLO name "),G()()()(),E(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),Q(13," Description "),G()()()()()(),E(14,"tbody"),P(15,XSa,7,7,"tr",6),G()());a&2&&(A(15),D("ngForOf",b.slos))},dependencies:[fy],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 wZ=function(){};wZ.\u0275fac=function(a){return new (a||wZ)};wZ.\u0275mod=Yc({type:wZ});wZ.\u0275inj=Ic({imports:[vy]});
var xZ=function(a,b){this.log=a;this.dateFormatter=b},O4b=function(a,b){var c=JPb(b.getAddMask()),d=JPb(b.getRemoveMask()),e={author:b.getAuthor(),timestamp:b.getTimestamp(),diffs:[]},f=b.getAdd()||new qX;b=b.getRemove()||new qX;for(var h=n(new Set([].concat(r(c),r(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=D1b.get(q);if("name"===q){var t=oR(d,q,b.getName());q=oR(c,q,f.getName());e.diffs.push(pR(k,t,q))}else if("description"===q)t=oR(d,q,b.getDescription()),q=oR(c,q,f.getDescription()),
e.diffs.push(pR(k,t,q));else if("parentId"===q)t=oR(d,q,String(b.getParentId())),q=oR(c,q,String(f.getParentId())),e.diffs.push(pR(k,t,q));else if("elements"===q){var x=Ht(b);t=Ht(f);x=KPb(d,q,x.map(function(y){return N4b(y)}));q=KPb(c,q,t.map(function(y){return N4b(y)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:x,added:q}})}else a.log.error("Unsupported diff field.")}return e},N4b=function(a){var b=a.getMatcher(),c=kSa.get(a.getMetric()),d=oSa.get(qj(a,4,0)),e=[];0<Ji(a,5)&&
e.push(Ji(a,5)+" day"+(1<Ji(a,5)?"s":""));0<Ub(a,Ml,3).getSeconds()&&e.push(aMb(1E3*Ub(a,Ml,3).getSeconds()));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};xZ.\u0275fac=function(a){return new (a||xZ)(p(WH),p(eO))};xZ.\u0275prov=Hc({token:xZ,factory:xZ.\u0275fac,providedIn:"root"});
var P4b={label:"Starts On",value:"STARTS_ON"},Q4b={label:"Assignment ETA",value:"ASSIGNMENT_ETA"},R4b={label:"Response ETA",value:"RESPONSE_ETA"},S4b={label:"Closure ETA",value:"CLOSURE_ETA"},T4b=[P4b,Q4b,R4b,S4b],yZ=function(){this.snoozeUntilCommit=new sx;this.closePicker=new sx;this.currentSnoozeType=new Qy(P4b);this.isShowingEtaViewAs=!1;this.snoozeTypeChoices=T4b};
yZ.prototype.ngOnChanges=function(a){if(a.snoozeUntil){var b,c;if(c=this.snoozeUntil){var d=new Xo;d.setTime(1E3*c.getSeconds());c=d}else c=null;this.currentPickerDate=null!=(b=c)?b:void 0}a.sloStatus&&(this.sloStatus?(this.snoozeTypeChoices=[P4b],xQ(Ub(this.sloStatus,Ol,1))&&this.snoozeTypeChoices.push(Q4b),xQ(Ub(this.sloStatus,Ol,2))&&this.snoozeTypeChoices.push(R4b),xQ(Ub(this.sloStatus,Ol,3))&&this.snoozeTypeChoices.push(S4b),this.isShowingEtaViewAs=yQ(this.sloStatus)):(this.snoozeTypeChoices=
T4b,this.isShowingEtaViewAs=!1))};yZ.prototype.setDate=function(a){this.currentPickerDate=a};yZ.\u0275fac=function(a){return new (a||yZ)(B(wQ))};
yZ.\u0275cmp=u({type:yZ,selectors:[["snooze-date-time-picker"]],inputs:{snoozeUntil:"snoozeUntil",sloStatus:"sloStatus"},outputs:{snoozeUntilCommit:"snoozeUntilCommit",closePicker:"closePicker"},features:[mg([qH]),ed],decls:3,vars:2,consts:[[3,"clickOutside"],[3,"date","dateSelectionChange","saveClicked","cancelClicked"],[4,"ngIf"],[3,"formControl"],["tabindex","0"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(a,b){a&1&&(E(0,"div",0),M("clickOutside",function(){b.closePicker.emit()}),
E(1,"b-date-time-picker-content",1),M("dateSelectionChange",function(c){return b.setDate(c)})("saveClicked",function(){var c=b.snoozeUntilCommit,d=c.emit;var e=(e=b.currentPickerDate)?(new Cj).setSeconds(e.getTime()/1E3):null;d.call(c,{date:null!=e?e:null,snoozeType:b.currentSnoozeType.value.value});b.closePicker.emit()})("cancelClicked",function(){b.closePicker.emit()}),P(2,ZSa,8,3,"ng-container",2),G()());a&2&&(A(1),D("date",b.currentPickerDate),A(1),D("ngIf",b.isShowingEtaViewAs))},dependencies:[fy,
gy,TO,hO,Ky,Xy,XC,wR,vR,rC],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{position:absolute;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}\n/*# sourceMappingURL=snooze_date_time_picker.css.map */"],changeDetection:0});
var zZ=function(){};zZ.\u0275fac=function(a){return new (a||zZ)};zZ.\u0275mod=Yc({type:zZ});zZ.\u0275inj=Ic({imports:[vy,UO,HO,gz,xR]});
var AZ=function(){};AZ.\u0275fac=function(a){return new (a||AZ)};AZ.\u0275mod=Yc({type:AZ});AZ.\u0275inj=Ic({imports:[vy,VN,AF,NC]});
var W4b=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=n(U4b);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?bj(f):""}):e="string"===typeof d?bj(d):"";this.templateAttributes[c]=e}b=n(V4b);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=n(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),lj(c)||(this.templateCustomFields[b[0]]=c)},Y4b=function(a){return 0!==Object.keys(a.templateCustomFields||{}).length||X4b.some(function(b){return null!=a.templateAttributes[b]})},c5b=function(a,b,c){null!=c&&(Z4b(a,c),$4b(a,b,c),a5b(b,c));c=n(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=n(d.value);d=e.next().value;e=e.next().value;b5b[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},$4b=function(a,b,c){null==b.customField&&(b.customField=
[]);for(var d={},e=n(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e={};f=n(Object.entries(a.templateCustomFields));for(var h=f.next();!h.done;e={$jscomp$loop$prop$customFieldId$1970:e.$jscomp$loop$prop$customFieldId$1970},h=f.next()){var k=n(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$customFieldId$1970=Xi(h);k={customFieldId:e.$jscomp$loop$prop$customFieldId$1970,value:k};h=a.getCustomFieldValue(k,c);null!=d[e.$jscomp$loop$prop$customFieldId$1970]?
(k=b.customField.findIndex(function(q){return function(t){return t.customFieldId===q.$jscomp$loop$prop$customFieldId$1970}}(e)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
W4b.prototype.getCustomFieldValue=function(a,b){var c=new wm(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=AEb(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=BEb(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 AEb(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 BEb(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};W4b.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var Z4b=function(a,b){a.templateCustomFields=Zb(a.templateCustomFields,function(c,d){return!!b[d]})},a5b=function(a,b){if(null!=a.customField){var c={};a=n(a.customField);for(var d=a.next();!d.done;c={$jscomp$loop$prop$allowedValues$1972:c.$jscomp$loop$prop$allowedValues$1972},d=a.next()){d=d.value;var e=b[d.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){c.$jscomp$loop$prop$allowedValues$1972=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(d.repeatedEnumValue=
d.repeatedEnumValue||{values:[]},d.repeatedEnumValue.values=d.repeatedEnumValue.values.filter(function(h){return function(k){return h.$jscomp$loop$prop$allowedValues$1972.includes(k)}}(c)),!d.repeatedEnumValue.values.length&&f&&(d.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):c.$jscomp$loop$prop$allowedValues$1972.includes(d.enumValue)||(d.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},d5b=function(a){if(a)return(Array.isArray(a)?a.map(function(b){return Xi(b)}):[Xi(a)]).filter(function(b){return!isNaN(b)})},
e5b=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!gv(c,b)})},f5b=new VG,g5b=f5b.priorities,h5b=f5b.severities,i5b=f5b.issueTypes,U4b="title type priority severity assignee verifier reporter cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),V4b=["inProd"],X4b="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),BZ={},b5b=(BZ.cc=function(a,b){if(b){b="string"===typeof b?b.split(","):b;a.ccUsers||(a.ccUsers=
[]);b=n(b);for(var c=b.next();!c.done;c=b.next())(c=c.value.trim())&&a.ccUsers.push(Zl(c));a.ccUsers=Wma(a.ccUsers)}else a.ccUsers=[]},BZ.title=function(a,b){"string"===typeof b&&(a.title=b)},BZ.assignee=function(a,b){$Sa(b,function(c){a.assigneeUser=c})},BZ.reporter=function(a,b){$Sa(b,function(c){a.reporterUser=c})},BZ.verifier=function(a,b){$Sa(b,function(c){a.verifierUser=c})},BZ.hotlistIds=function(a,b){if(b=d5b(b)){a.hotlistId||(a.hotlistId=[]);b=n(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},
BZ.blockingIssueIds=function(a,b){if(b=d5b(b))a.blockingIssueId=b.map(String)},BZ.blockedByIssueIds=function(a,b){if(b=d5b(b))a.blockedByIssueId=b.map(String)},BZ.foundIn=function(a,b){"string"===typeof b&&(a.foundInVersion=b.split(","))},BZ.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},BZ.inProd=function(a,b){a.inProd="true"===b},BZ.priority=function(a,b){if(b=e5b(g5b,b))a.priority=qu(b)},BZ.severity=function(a,b){if(b=e5b(h5b,b))a.severity=GAb(b)},BZ.type=function(a,
b){if(b=e5b(i5b,b))a.type=FAb(b)},BZ);
var CZ=function(a,b){this.issueRelationshipApi=a;this.issueApi=b};
CZ.prototype.bulkEdit=function(a){var b=this,c,d,e,f,h,k,q,t,x,y,F,K;return Pe(function(J){switch(J.nextAddress){case 1:c=100;d=a.actions[0];e=String(d.value);f=a.issueIds;h=d.actionType;if("ADD"!==h&&"REMOVE"!==h)throw Error("je");k={};q=[];t=[];x=0;case 2:if(!(x<f.length)){J.jumpTo(4);break}y=f.slice(x,x+c);Qe(J,5);return"ADD"===h?(F=y.map(function(R){return NK(new MK,Number(R))}),Re(J,(0,W.firstValueFrom)(jIb(b.issueRelationshipApi,e,F)),8)):Re(J,(0,W.firstValueFrom)(kIb(b.issueRelationshipApi,
e,y)),8);case 8:return Re(J,b.issueApi.batchGetIssues(y).then(function(R){return R.map(function(S){return k[S.issueId]=S})}),11);case 11:Wu(J,3);break;case 5:K=Ue(J);if(!Wn(K))throw K;t.push(K);q.push.apply(q,r(y));case 3:x+=c;J.jumpTo(2);break;case 4:return J.return({finishedIssues:k,notFinishedIssueIds:q,errors:t})}})};CZ.\u0275fac=function(a){return new (a||CZ)(p(TK),p(bJ))};CZ.\u0275prov=Hc({token:CZ,factory:CZ.\u0275fac,providedIn:"root"});
var DZ=function(a,b){Z.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};X(DZ,Z);DZ.\u0275dir=Z.\u0275dir;DZ.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()}))};DZ.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};DZ.prototype.hasPreviousPage=function(){return 1<this.history.length};
var EZ=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("/")};DZ.\u0275fac=function(a){return new (a||DZ)(p(ZH),p(oI))};DZ.\u0275prov=Hc({token:DZ,factory:DZ.\u0275fac,providedIn:"root"});
var FZ=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},j5b=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&fv(d,"id=")||fv(d,"bugId="))d+=c;SN(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};FZ.\u0275fac=function(a){return new (a||FZ)(p(oI),p(tQ),p(RN))};FZ.\u0275prov=Hc({token:FZ,factory:FZ.\u0275fac,providedIn:"root"});
var GZ=function(a,b){Z.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||(wHb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(){c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++}};X(GZ,Z);GZ.\u0275dir=Z.\u0275dir;
GZ.prototype.install=function(){var a=this;zK()&&(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(hf(function(b){return"visible"!==b}),sf()).subscribe(function(){a.tabWasHidden=!0})))};
var k5b=function(a,b){wHb(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)&&zK())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)}}};GZ.\u0275fac=function(a){return new (a||GZ)(p(ZH),p(HZ))};
GZ.\u0275prov=Hc({token:GZ,factory:GZ.\u0275fac,providedIn:"root"});var HZ=function(a){var b=this;this.window=a;this.visibilityState$=(0,W.fromEvent)(this.window.document,"visibilityChange").pipe(Cf(void 0),C(function(){return b.currentVisibility}))};ni.Object.defineProperties(HZ.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});HZ.\u0275fac=function(a){return new (a||HZ)(p(hJ))};
HZ.\u0275prov=Hc({token:HZ,factory:HZ.\u0275fac,providedIn:"root"});
var l5b=RegExp("action/issues/([0-9]+)/"),m5b=new Md("ETAG_URL_TRANSFORMERS"),IZ=function(a){this.transformers=a;this.etagStore={};this.IF_MATCH_METHODS=["POST","PUT","DELETE"]};IZ.prototype.intercept=function(a,b){if(this.IF_MATCH_METHODS.includes(a.method)){var c=this.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}if(c=l5b.exec(a.url))this.issueId=c[1];return n5b(this,a,b)};
var n5b=function(a,b,c){return c.handle(b).pipe(Ff(function(d){if(d instanceof qD){var e=d.headers;e.has("etag")&&a.setEtag(b,e.get("etag"));d=d.body;if(d instanceof yFb&&a.issueId)for(d=n(Nb(d,Kn,1)),e=d.next();!e.done;e=d.next()){e=n(e.value.getAttachmentsList());for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.hasEtag()){var h=a.issueId,k=f.getAttachmentId();h=new nD("GET","action/issues/"+h+"/attachments/"+k);a.setEtag(h,f.getEtag())}}}}))};
IZ.prototype.setEtag=function(a,b){null!=b&&(a=o5b(this,a),this.etagStore[a]=b)};IZ.prototype.getEtag=function(a){a=o5b(this,a);return this.etagStore[a]};var o5b=function(a,b){b=b.url;var c;a=n(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};IZ.\u0275fac=function(a){return new (a||IZ)(p(m5b,8))};IZ.\u0275prov=Hc({token:IZ,factory:IZ.\u0275fac,providedIn:"root"});var p5b={provide:sD,useClass:IZ,multi:!0};
var q5b={provide:m5b,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},r5b={provide:m5b,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};
var JZ=function(a){this.activeSession=a};JZ.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)};JZ.\u0275fac=function(a){return new (a||JZ)(p(NG))};JZ.\u0275prov=Hc({token:JZ,factory:JZ.\u0275fac,providedIn:"root"});var s5b={provide:sD,useClass:JZ,multi:!0};
var KZ=function(){};KZ.\u0275fac=function(a){return new (a||KZ)};KZ.\u0275mod=Yc({type:KZ});KZ.\u0275inj=Ic({providers:[{provide:OJ,useClass:QJ},{provide:fOb,useClass:lQ},{provide:mQ,useClass:nQ},{provide:JGb,useClass:YJ},{provide:KGb,useClass:XJ},{provide:cK,useClass:eK},{provide:tY,useClass:uY},{provide:zL,useClass:BL},{provide:bJ,useClass:dJ},{provide:bN,useClass:cN},{provide:oK,useClass:rK},{provide:pK,useClass:qK}],imports:[vy]});
var t5b=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=t5b.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 ft=function(a){Y.call(this,a)};X(ft,Y);ft.prototype.getEntryPoint=function(){return qj(this,5,0)};ft.prototype.setEntryPoint=function(a){return m(this,5,a)};
var gt=function(a){Y.call(this,a)};X(gt,Y);gt.prototype.getEntryPoint=function(){return qj(this,1,0)};gt.prototype.setEntryPoint=function(a){return m(this,1,a)};
var Ss=function(a){Y.call(this,a)};X(Ss,Y);var Ir=function(a){return Ub(a,Ts,2)};Ss.prototype.getSessionState=function(){return Ub(this,LZ,3)};Ss.prototype.setSessionState=function(a){Vb(this,3,a)};Ss.prototype.hasSessionState=function(){return vj(this,LZ,3)};var Us=function(a){Y.call(this,a)};X(Us,Y);g=Us.prototype;g.getPersonLoggingId=function(){return l(this,1)};g.setPersonLoggingId=function(a){m(this,1,a)};g.getFieldLoggingId=function(){return l(this,2)};
g.setFieldLoggingId=function(a){m(this,2,a)};g.setFieldValue=function(a){return m(this,3,a)};g.clearFieldValue=function(){return qv(this,3)};g.getName=function(){return l(this,4)};g.setName=function(a){return m(this,4,a)};g.hasName=function(){return Oi(this,4)};g.getNameOrUndefined=function(){return vv(this,4)};g.getContactId=function(){return l(this,5)};g.setContactId=function(a){m(this,5,a)};g.hasContactId=function(){return Oi(this,5)};g.getProfileId=function(){return l(this,6)};
g.getProfileId_legacyNullable=function(){return l(this,6)};g.setProfileId=function(a){return m(this,6,a)};g.hasProfileId=function(){return Oi(this,6)};g.getFieldType=function(){return l(this,7)};g.getIsPlaceholder=function(){return oj(this,10,!1)};g.setIsPlaceholder=function(a){m(this,10,a)};g.getGroupId=function(){return l(this,11)};g.setGroupId=function(a){m(this,11,a)};g.hasGroupId=function(){return Oi(this,11)};var Ts=function(a){Y.call(this,a)};X(Ts,Y);g=Ts.prototype;
g.getProvenance=function(){return qj(this,3,0)};g.setProvenance=function(a){return m(this,3,a)};g.getContext=function(){return qj(this,5,0)};g.getExistingSelectionsCount=function(){return Ji(this,6,0)};g.setExistingSelectionsCount=function(a){m(this,6,a)};var LZ=function(a){Y.call(this,a)};X(LZ,Y);LZ.prototype.getQuery=function(){return Pi(this,1,"")};LZ.prototype.setQuery=function(a){return m(this,1,a)};LZ.prototype.clearQuery=function(){qv(this,1)};
LZ.prototype.hasQuery=function(){return Oi(this,1)};var u5b=function(a,b){m(a,3,b)};LZ.prototype.getAffinityVersion=function(){return l(this,7)};LZ.prototype.setAffinityVersion=function(a){m(this,7,a)};var v5b=function(a){var b=zRb();m(a,8,b)};g=LZ.prototype;g.getSources=function(){return Ub(this,ft,10)};g.getInstanceId=function(){return Pi(this,11,"")};g.setInstanceId=function(a){return m(this,11,a)};g.clearInstanceId=function(){qv(this,11)};g.hasInstanceId=function(){return Oi(this,11)};
g.getInstanceIdOrUndefined=function(){return vv(this,11)};
var MZ=function(a,b){this.name_=b||"";this.address=a||""},w5b=/"/g,x5b=/\\"/g,y5b=/\\/g,z5b=/\\\\/g,A5b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),B5b=new RegExp("["+Hba({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");MZ.prototype.getName=function(){return this.name_};MZ.prototype.getAddress=function(){return this.address};MZ.prototype.setName=function(a){this.name_=a};MZ.prototype.toString=function(){return C5b(this,'()<>@:\\".[],;')};
var C5b=function(a,b){var c=a.getName();c=c.replace(w5b,"");a:{for(var d=c,e=0;e<b.length;e++)if(ia(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(y5b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};MZ.prototype.isValid=function(){return A5b.test(this.address)};
var F5b=function(a){var b=D5b;a=a.replace(B5b,"");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||E5b(f,h))f=k;else{q='">)]'.charAt(q);for(var t=f.indexOf(q,h+1);0<=t&&E5b(f,t);)t=f.indexOf(q,t+1);f=0<=t?f.substring(h,t+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=ew(c);c=xpb(c,"'");c=xpb(c,'"');c=c.replace(x5b,'"');c=c.replace(z5b,"\\");d=ew(d);return new b(d,
c)},E5b=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 D5b=function(a,b){MZ.call(this,a,b)};ev(D5b,MZ);var G5b=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}$");D5b.prototype.isValid=function(){return H5b(this.address)};var H5b=function(a){return null==a?!1:G5b.test(a)};D5b.prototype.toString=function(){return C5b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};
var I5b=/[^a-z0-9]+/ig,J5b=[9,11,10,12,13,14,15,16,19],K5b=[9,19,11],L5b=[1,6],M5b=[2,7],N5b=[3,8],O5b=[1,2,6,7,8,9,11,10,12,13,14,15,16,18,19],yVa=[3,4,5,17,20],vs=function(a,b,c){this.type_=a;this.value_=Xq(b);this.originalValue_=Xq(void 0===c?b:c)};vs.prototype.getType=function(){return this.type_};vs.prototype.getValue=function(){return this.value_};vs.prototype.getOriginalValue=function(){return this.originalValue_};
var Pr=function(a){return J5b.includes(a.getType())},Qr=function(a){return K5b.includes(a.getType())},ms=function(a,b){switch(a){case 1:return ss(b);case 6:return new vs(6,Xq(b).toLowerCase(),b);case 2:return IVa(b);case 7:return JVa(b);case 3:return ns(b);case 8:return new vs(8,Xq(b).toLowerCase(),b);case 5:return new vs(5,Xq(b).toLowerCase(),b);case 4:return xVa(b);case 9:return XVa(b);case 12:return new vs(12,Xq(b),b);case 13:return new vs(13,Xq(b),b);case 14:return new vs(14,Xq(b),b);case 15:return new vs(15,
Xq(b),b);case 16:return new vs(16,Xq(b),b);case 10:return new vs(10,Xq(b),b);case 11:return new vs(11,Xq(b),b);case 18:return os(b);case 19:return new vs(19,Xq(b),b);case 20:return new vs(20,Xq(b),b);case 17:return P5b;default:return new vs(0,b)}},ss=function(a){return new vs(1,Xq(a).toLowerCase(),a)},IVa=function(a){var b=Xq(a).toLowerCase().replace(I5b,"");return new vs(2,b,a)},ns=function(a){var b=Xq(a).toLowerCase();return"me"===b?P5b:new vs(3,b,a)},xVa=function(a){return new vs(4,Xq(a).toLowerCase(),
a)},JVa=function(a){var b=Xq(a).toLowerCase().replace(I5b,"");return new vs(7,b,a)},XVa=function(a){return new vs(9,Xq(a).toLowerCase(),a)},os=function(a){return new vs(18,Xq(a),a)},Q5b=function(a){var b=a.indexOf(":");return ms(0<b?parseInt(a.substring(0,b),10):0,a.substring(b+1))};vs.prototype.toString=function(){return this.getType()+":"+this.getValue()};vs.prototype.equals=function(a){return a?this===a?!0:this.getType()===a.getType()&&this.getValue()===a.getValue():!1};
var xs=ms(0,""),P5b=new vs(17,"me");
var Es=function(a){Y.call(this,a,2)};X(Es,Y);
var Os=function(a){Y.call(this,a)};X(Os,Y);g=Os.prototype;g.getType=function(){return qj(this,1,0)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getValue=function(){return Pi(this,2,"")};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return Oi(this,2)};
var NZ=function(a){Y.call(this,a)};X(NZ,Y);g=NZ.prototype;g.getEnableClearcut=function(){return oj(this,1,!1)};g.setEnableClearcut=function(a){return m(this,1,a)};g.getClientId=function(){return qj(this,2,0)};g.setClientId=function(a){return m(this,2,a)};g.getSocialApplication=function(){return l(this,3)};g.getComponentFlow=function(){return qj(this,4,0)};g.setComponentFlow=function(a){return m(this,4,a)};g.getInterfaceType=function(){return qj(this,5,0)};
g.setInterfaceType=function(a){return m(this,5,a)};
var OZ=function(a){Y.call(this,a)};X(OZ,Y);
var PZ=function(a){Y.call(this,a)};X(PZ,Y);PZ.prototype.getApplication=function(){return qj(this,1,0)};PZ.prototype.setApplication=function(a){return m(this,1,a)};PZ.prototype.getApplicationOrUndefined=function(){return uv(this,1)};PZ.prototype.getIsEnabled=function(){return oj(this,2,!1)};
var R5b=function(a){Y.call(this,a)};X(R5b,Y);g=R5b.prototype;g.getClearcut=function(){return Ub(this,NZ,1)};g.setClearcut=function(a){Vb(this,1,a)};g.hasClearcut=function(){return vj(this,NZ,1)};g.getExperiments=function(){return Ub(this,PZ,2)};g.setExperiments=function(a){Vb(this,2,a)};g.hasExperiments=function(){return vj(this,PZ,2)};
var S5b=function(){var a=Oo(R5b,"[[true,49,740,4]]");a.hasClearcut()||a.setClearcut(new NZ);a.hasExperiments()||a.setExperiments(new PZ);this.internal=a};
var eTa=function(a){this.root=a;this.length=0};g=eTa.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("ke");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("ke");var b=this.getItems();this.root.removeChild(b[a]);--this.length};
g.clear=function(){nE(this.root);this.length=0};g.getRoot=function(){return this.root};
var cTa=function(a){return Rr('<ul id="'+Sr(a.id)+'" peoplekit-id="'+Sr("rymPhb")+'" role="listbox" class="'+Sr("peoplekitComponentsListImplList")+'"></ul>')};
var dTa=ir.getInstance();
var T5b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};T5b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};T5b.prototype.preventDefault=function(){this.event.preventDefault()};
var gTa=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=br(this)};g=gTa.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 T5b(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new T5b(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 rTa=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(r(a));this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=rTa.prototype;
g.remove=function(a,b){var c=-1;a=n(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(r(b)));c?(U5b(this),V5b(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.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:U5b(this);W5b(this);break;case 3:W5b(this);break;case 1:a=iTa(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=iTa(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);V5b(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=n(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.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();U5b(this);this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(r(this.secondaryEventTargets));b=n(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 W5b=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},U5b=function(a){for(var b=n(a.activeItems),c=b.next();!c.done;c=b.next())c.value.deactivate();a.activeItems.clear()},V5b=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 X5b=function(a){this.delegate=a};g=X5b.prototype;g.prev=function(a){a=this.delegate.prev(a);Y5b(this);return a};g.next=function(a){a=this.delegate.next(a);Y5b(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);Y5b(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);Y5b(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.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 Y5b=function(a){if(a=a.delegate.getSpotlitItem())if(a=a.getRoot(),hv){var b=yUb(a);BUb(a,b)}else a.scrollIntoView({block:"nearest"})};
var DTa=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=DTa.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("ke");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("ke");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 Z5b=function(a,b,c,d){this.loggingToken=d;(new t5b(a)).setDisplayName(b).forceDisplayNameOverride_=c};Z5b.prototype.getLoggingToken=function(){return this.loggingToken};
var QZ=function(a){this.delegate_=a};g=QZ.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 dr=function(a){this.delegate_=a};X(dr,QZ);g=dr.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 $5b=function(){};$5b.prototype.getDisplayNameMatches=function(){return[]};$5b.prototype.getDisplayValueMatches=function(){return[]};$5b.prototype.getGivenNameMatches=function(){return[]};var a6b=new $5b;
var jTa=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=jTa.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("me");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return a6b};g.getExtendedData=function(){return null};
var b6b=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 rs=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=rs.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 c6b=(new rs).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),d6b=new rs;
var RZ=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_="";this.name_=null;this.photo_=Pr(this.id_)?d6b:c6b;this.tags_=[];this.sourceIds_=yVa.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(ns(this.id_.getOriginalValue()));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=b6b.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=RZ.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_=Pr(this.id_)?d6b:c6b};g.getTagList=function(){return this.tags_};var CVa=function(a,b){a.tags_=b||[]};g=RZ.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 Ss};g.getIsMe=function(){return this.isMe_};var BVa=function(a,b){a.isMe_=b;return a};g=RZ.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 Ns=function(a,b){a.originatingField_=b;return a},ps=function(a){return new RZ(a)};RZ.prototype.getExtendedData=function(){return this.extendedData_};var EVa=function(a,b){a.extendedData_=b};
var e6b=function(a){this.internalId=a;this.displayNameOverride="";this.forceDisplayNameOverride=!1;a=ps(this.internalId).setDataSource(3);this.internalResult=new dr(er(0,[a]));this.internalSelectionToken=new Z5b(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=e6b.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};
g.isPlaceholder=function(){return!0};
var pTa=function(a,b){this.root=a;this.options=b};g=pTa.prototype;g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.spotlight=function(){};g.getRoot=function(){return this.root};g.getSelection=function(){return new e6b(os(this.options.id))};g.toggleSelection=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
var oTa=function(a){var b=a.keyboardShortcut,c=a.densityClass,d=a.id,e=a.iconUrl;a=a.label;Array.isArray(b);b='<div role="menuitem" id="'+Sr(d)+'" peoplekit-id="'+Sr("UhZROb")+'" class="'+Sr("peoplekitComponentsContextmenuitemImplMenuItem")+" "+Sr(c)+'"><div class="'+Sr("peoplekitComponentsContextmenuitemImplRow")+'">'+(e?'<img class="'+Sr("peoplekitComponentsContextmenuitemImplIcon")+" "+Sr("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+Sr(QTb(e))+'" draggable="false" alt=""/>':"")+'<div class="'+
Sr("peoplekitComponentsContextmenuitemImplLabel")+" "+Sr("peoplekitComponentsContextmenuitemImplCenter")+'">'+iT(a)+"</div>"+(0<jT(b).length?'<div class="'+Sr("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+Sr("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">'+iT(jT(b).join("+"))+"</span></div>":"")+"</div></div>";return Rr(b)};
var kTa=ir.getInstance();
var f6b=["pk-select","pk-deselect","pk-click","pk-input"],g6b=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);
var lTa=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 jr=function(a,b){this.ariaParent=a;this.delegate=b};g=jr.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),hI(this.ariaParent,a)):hI(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.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 h6b=Object.freeze(new nr(NaN,NaN)),i6b=Object.freeze(new uT(NaN,NaN,NaN,NaN)),rr=function(a,b,c){this.root=a;this.requestHide=b;this.options=c;this.lastPosition=h6b;this.lastBounds=i6b;this.anchorUpdateTimer=new zE(15);this.eventHandler=br(this);this.attach()};rr.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return j6b(a)})};rr.prototype.isShown=function(){return"none"!=this.root.style.display};
rr.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};rr.prototype.show=function(a){this.anchor=a;this.lastPosition=h6b;this.lastBounds=i6b;yT(this.root,!0);j6b(this);this.anchorUpdateTimer.start()};
var j6b=function(a){var b;if((b=a.anchor)&&!(b=!a.lastPosition.equals(xT(a.anchor)))){b=a.lastBounds;var c=kr(a.root);b=!(b==c||b&&c&&b.left==c.left&&b.width==c.width&&b.top==c.top&&b.height==c.height)}if(b)if(c=a.anchor,b=kr(c),(c=lr(c))&&b.intersection(uTa(c))){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;qr(b,"","");b.style.height=wT("",!0);var h=xTa(c,e,b,f,d);c=xTa(c,f,b,e,d);h.height>=c.height||
!d?ATa(b,h):ATa(b,c);a.lastPosition=xT(a.anchor);a.lastBounds=kr(a.root)}else a.requestHide()};rr.prototype.hide=function(){this.root.style.cssText="";yT(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=h6b;this.lastBounds=i6b};
var k6b=new UD;k6b.altKey=!0;k6b.keyCode=39;
var l6b=function(){OD.call(this)};X(l6b,OD);l6b.prototype.init=function(){};new l6b;
var m6b=!hv&&!baa(),n6b=function(a,b){if(/-[a-z]/.test(b))return null;if(m6b&&a.dataset){if(caa()&&!(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 sr=function(a,b,c,d,e){var f=this;this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=BTa(this.root,function(){f.hide()},{});this.navigatable=sTa(c);this.navigationEventHandler=hTa({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=br(this);this.eventHandler.listen(this.root,"mouseover",
function(h){h.stopPropagation()});this.eventHandler.listen(this.root,"mouseout",function(h){h.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(h){h.stopPropagation()});this.hide()};
sr.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=qTa(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(cr("pk-click",e))}d.stopPropagation();o6b(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
sr.prototype.show=function(){for(var a=n(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)};sr.prototype.hide=function(){this.popup.hide();this.navigatable.reset();this.navigationEventHandler.detach();for(var a=n(this.afterHideCallbacks.values()),b=a.next();!b.done;b=a.next())b=b.value,b()};
sr.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(cr("pk-click",c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);o6b(this,b);this.hide();a.stopPropagation()}}};
var p6b=function(a,b){a.itemSelectedCallbacks.add(b)},q6b=function(a,b){a.afterHideCallbacks.add(b)},o6b=function(a,b){a=n(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};sr.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 CTa=function(){return Rr('<div peoplekit-id="'+Sr("xl07Ob")+'" class="'+Sr("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};
var SZ=function(a){this.delegate=a};g=SZ.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.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 tr=function(){this.theme=this.density=0};tr.prototype.getDensity=function(){return this.density};tr.prototype.setDensity=function(a){this.density=a};tr.prototype.getTheme=function(){return this.theme};tr.prototype.setTheme=function(a){this.theme=a};
var Or=function(a,b){this.delegate=a;var c=this;this.appearanceConfig=b;this.contextMenuContainer=$q(a.getRoot(),"QL45qe");this.eventHandler=br(this);this.eventHandler.listen(document,"click",function(d){c.contextMenuContainer.contains(d.target)||TZ(c)})};X(Or,SZ);
Or.prototype.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.activate();this.contextMenu&&TZ(this);this.contextMenu=ETa(this.contextMenuContainer,this.getRoot(),this.getRoot(),this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(mTa(a));p6b(this.contextMenu,function(d){switch(d.id){case "ENOWEf":break;default:throw Error("oe`"+d.id);}TZ(c)});q6b(this.contextMenu,function(){TZ(c);b()});this.contextMenu.show();return function(){TZ(c)}};
Or.prototype.dispose=function(){this.eventHandler.removeAll();SZ.prototype.dispose.call(this)};var TZ=function(a){var b;null==(b=a.contextMenu)||b.dispose();a.contextMenu=void 0;a.deactivate()};
var r6b=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|(work\\.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)?\\.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"),s6b=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,t6b=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,u6b=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;
var v6b=/\/\/lh[3-6]\./,w6b=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!(r6b.test(e)||s6b.test(e)||t6b.test(e)||u6b.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(v6b,"//lh3.");return(new TP(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 GTa=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=Rr;var h='<div class="'+Sr("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Sr(nT(d))+"px; height: "+Sr(nT(d))+'px"><div peoplekit-id="'+Sr("YLEF4c")+'" class="'+Sr("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Sr(nT(d))+"px; height: "+Sr(nT(d))+'px">';Array.isArray(b);1==jT(b).length?(Array.isArray(b),b=Rr('<div class="'+Sr("peoplekitComponentsAvatarImplContainer")+
'">'+UZ(b[0],c,d,e,f)+"</div>")):2==jT(b).length?(Array.isArray(b),b=Rr('<div class="'+Sr("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'">'+UZ(b[0],c,d,e,f)+"</div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'">'+UZ(b[1],c,d,e,f)+"</div></div>")):3==jT(b).length?(Array.isArray(b),b=Rr('<div class="'+Sr("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'">'+UZ(b[0],c,d,e,f)+
"</div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[1],c,Math.round(.5*d),e,f)+"</div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=Rr('<div class="'+Sr("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[0],
c,Math.round(.5*d),e,f)+"</div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[1],c,Math.round(.5*d),e,f)+"</div>"+VZ()+'<div class="'+Sr("peoplekitComponentsAvatarImplRow")+'">'+UZ(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=Rr(b);return a(h+b+'</div><div peoplekit-id="'+Sr("Btuy5e")+'" class="'+
Sr("peoplekitComponentsAvatarImplAvatarBadge")+'">'+Rr('<img class="'+Sr("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Sr("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},UZ=function(a,b,c,d,e){var f=OTb(w6b(a,c,c,e));f=BTb(f);a=OTb(w6b(a,d,d,e));a=BTb(a);b=OTb(w6b(b,c,c,e));b=BTb(b);f='<div peoplekit-id="'+Sr("IHgMKc")+'" class="'+Sr("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Sr("HiaYvf")+'" class="'+Sr("peoplekitComponentsAvatarImplImage")+'" style="width: '+
Sr(nT(c))+"px; height: "+Sr(nT(c))+'px;" data-preload-src="'+Sr(a)+'" data-src="'+Sr(f)+'" data-backup-src="'+Sr(b)+'" draggable="false" alt="">';c=Rr('<svg xmlns="http://www.w3.org/2000/svg" height="'+Sr(c)+'px" viewBox="0 0 24 24" width="'+Sr(c)+'px" class="'+Sr("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 Rr(f+c+"</div>")},VZ=function(){return Rr('<div class="'+Sr("peoplekitComponentsAvatarImplDivider")+'"></div>')};
var x6b=new Map([[0,"light_theme"],[1,"dark_theme"]]);
var y6b=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),z6b=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),ITa=function(a,b){this.appearance=b;this.root=a;A6b(this)};g=ITa.prototype;
g.setBadge=function(a){var b=$q(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=y6b.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(x6b.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=z6b.get(a.badgeType)||"";d=$q(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 A6b=function(a){var b={};a=n(Array.from(a.root.querySelectorAll('[peoplekit-id="IHgMKc"]')));for(var c=a.next();!c.done;b={$jscomp$loop$prop$img$1980:b.$jscomp$loop$prop$img$1980,$jscomp$loop$prop$src$1978:b.$jscomp$loop$prop$src$1978,$jscomp$loop$prop$imageRoot$1982:b.$jscomp$loop$prop$imageRoot$1982,$jscomp$loop$prop$backupSrc$1981:b.$jscomp$loop$prop$backupSrc$1981},c=a.next())b.$jscomp$loop$prop$imageRoot$1982=c.value,b.$jscomp$loop$prop$img$1980=$q(b.$jscomp$loop$prop$imageRoot$1982,"HiaYvf"),
c=n6b(b.$jscomp$loop$prop$img$1980,"preloadSrc"),b.$jscomp$loop$prop$src$1978=n6b(b.$jscomp$loop$prop$img$1980,"src"),b.$jscomp$loop$prop$backupSrc$1981=n6b(b.$jscomp$loop$prop$img$1980,"backupSrc"),FTa(b.$jscomp$loop$prop$src$1978)?b.$jscomp$loop$prop$img$1980.src=b.$jscomp$loop$prop$src$1978:FTa(c)?(b.$jscomp$loop$prop$img$1980.src=c,Xt(function(d){return function(){d.$jscomp$loop$prop$img$1980.src=d.$jscomp$loop$prop$src$1978}}(b),0)):(b.$jscomp$loop$prop$imageRoot$1982.classList.add("isLoading"),
b.$jscomp$loop$prop$img$1980.onload=function(d){return function(){d.$jscomp$loop$prop$imageRoot$1982.classList.remove("isLoading")}}(b),b.$jscomp$loop$prop$img$1980.onerror=function(d){return function(){d.$jscomp$loop$prop$img$1980.getAttribute("src")===d.$jscomp$loop$prop$backupSrc$1981?(d.$jscomp$loop$prop$img$1980.onerror=null,d.$jscomp$loop$prop$imageRoot$1982.classList.remove("isLoading"),d.$jscomp$loop$prop$imageRoot$1982.classList.add("isNotLoaded")):d.$jscomp$loop$prop$img$1980.src=d.$jscomp$loop$prop$backupSrc$1981}}(b),
b.$jscomp$loop$prop$img$1980.src=b.$jscomp$loop$prop$src$1978)};
var bUa=function(a){a=a.memberCount;return(new dO("{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)},aUa=function(a){a=a.memberNames;Array.isArray(a);return jT(a).join(", ")};
var Br=function(a){Y.call(this,a)};X(Br,Y);Br.prototype.getRequestType=function(){return l(this,1)};Br.prototype.setRequestType=function(a){return m(this,1,a)};
var B6b=function(){var a=new Br,b=new OZ;this.experimentFlags_=Vb(a,107,b)};B6b.prototype.getExperimentFlags=function(){return this.experimentFlags_};B6b.prototype.getExperimentIds=function(){return[]};
var bs=function(a,b){this.cache=b;this.overriddenExperiments=Ub(a,OZ,3)||new OZ};bs.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:Ub(a,OZ,107))||new OZ;a=this.overriddenExperiments;if(nj(a,3)){var c=oj(a,3,!1);m(b,3,c)}nj(a,4)&&(a=oj(a,4,!0),m(b,4,a));return b};bs.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};
var Yr=function(a){Y.call(this,a)};X(Yr,Y);g=Yr.prototype;g.getCacheStaleSec=function(){return Ji(this,4,14400)};g.getCacheExpiredSec=function(){return Ji(this,5,1209600)};g.getRpcTimeoutSec=function(){return Ji(this,7,60)};g.getApiKey=function(){return Pi(this,8,"")};g.setApiKey=function(a){return m(this,8,a)};g.getEnableClearcut=function(){return oj(this,13,!0)};g.setEnableClearcut=function(a){return m(this,13,a)};
var C6b=function(){};C6b.prototype.getExperimentFlags=function(){return new Br};C6b.prototype.getExperimentIds=function(){return[]};
var $r=function(){};$r.prototype.prefetch=function(){};$r.prototype.loadExperiments=function(){return new C6b};
var WZ=function(a){Y.call(this,a)};X(WZ,Y);WZ.prototype.getVersion=function(){return l(this,1)};WZ.prototype.setVersion=function(a){return m(this,1,a)};WZ.prototype.getVersionOrUndefined=function(){return sv(this,1)};
var XZ=function(a){Y.call(this,a)};X(XZ,Y);g=XZ.prototype;g.getApplication=function(){return l(this,1)};g.setApplication=function(a){return m(this,1,a)};g.getApplicationOrUndefined=function(){return uv(this,1)};g.getVersion=function(){return l(this,2)};g.setVersion=function(a){return m(this,2,a)};g.getVersionOrUndefined=function(){return sv(this,2)};
var D6b=function(a){Y.call(this,a)};X(D6b,Y);g=D6b.prototype;g.getRequestType=function(){return qj(this,1,0)};g.setRequestType=function(a){return m(this,1,a)};g.getProfileId=function(){return l(this,2)};g.getProfileId_legacyNullable=function(){return l(this,2)};g.setProfileId=function(a){return m(this,2,a)};g.hasProfileId=function(){return Oi(this,2)};g.getCaller=function(){return Ub(this,WZ,3)};g.setCaller=function(a){return Vb(this,3,a)};g.getInstanceId=function(){return l(this,4)};
g.setInstanceId=function(a){return m(this,4,a)};g.clearInstanceId=function(){qv(this,4)};g.hasInstanceId=function(){return Oi(this,4)};g.getInstanceIdOrUndefined=function(){return vv(this,4)};g.getClient=function(){return Ub(this,XZ,5)};g.setClient=function(a){return Vb(this,5,a)};g.hasClient=function(){return vj(this,XZ,5)};
var yr=function(a){Y.call(this,a)};X(yr,Y);yr.prototype.getErrorType=function(){return qj(this,2,1)};yr.prototype.setErrorType=function(a){return m(this,2,a)};yr.prototype.getErrorMessage=function(){return l(this,3)};yr.prototype.setErrorMessage=function(a){m(this,3,a)};
var Ar=function(a){Y.call(this,a,-1,E6b)};X(Ar,Y);g=Ar.prototype;g.getExperimentFlags=function(){return Ub(this,Br,1)};g.setExperimentFlags=function(a){return Vb(this,1,a)};g.hasExperimentFlags=function(){return vj(this,Br,1)};g.getError=function(){return Ub(this,yr,2)};g.setError=function(a){Vb(this,2,a)};g.hasError=function(){return vj(this,yr,2)};g.getSource=function(){return l(this,3)};g.setSource=function(a){return m(this,3,a)};g.hasSource=function(){return nj(this,3)};
g.getInstanceId=function(){return l(this,4)};g.setInstanceId=function(a){return m(this,4,a)};g.clearInstanceId=function(){qv(this,4)};g.hasInstanceId=function(){return Oi(this,4)};g.getInstanceIdOrUndefined=function(){return vv(this,4)};g.getExperimentIdsList=function(){return Li(this,5)};g.setExperimentIdsList=function(a){return Bb(this,5,a)};var E6b=[5];
var YZ=function(a,b){this.client_=a;this.runtime_=b;xr();this.apiKey_=a.getApiKey();this.apiRoot_=l(this.client_,10)||rDa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};YZ.prototype.getClient=function(){return this.client_};YZ.prototype.getApiKey=function(){return this.apiKey_};
var G6b=function(a){Y.call(this,a,-1,F6b)};X(G6b,Y);g=G6b.prototype;g.getExperimentFlags=function(){return Ub(this,Br,1)};g.setExperimentFlags=function(a){return Vb(this,1,a)};g.hasExperimentFlags=function(){return vj(this,Br,1)};g.getObfuscatedGaiaId=function(){return l(this,2)};g.getObfuscatedGaiaId_legacyNullable=function(){return l(this,2)};g.setObfuscatedGaiaId=function(a){m(this,2,a)};g.getExperimentIdsList=function(){return Li(this,3)};g.setExperimentIdsList=function(a){return Bb(this,3,a)};
var H6b=function(a){return Oo(G6b,a)},F6b=[3];
var I6b=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},J6b=function(a,b,c){a=a.now_()-1E3*c;return b>a};I6b.prototype.getCacheState=function(a){var b=Ji(this.clientConfig_.getClient(),3,1800);if(J6b(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(J6b(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return J6b(this,a,b)?3:4};
var zr=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};X(zr,Error);
var K6b=function(a,b){b=void 0===b?null:b;var c=OTa(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},L6b=new zr(6);
var M6b=function(){};
var ZZ=function(){};ev(ZZ,M6b);ZZ.prototype.getCount=function(){for(var a=0,b=n(this),c=b.next();!c.done;c=b.next())a++;return a};ZZ.prototype[Symbol.iterator]=function(){return rEb(this.__iterator__(!0)).toEs6()};ZZ.prototype.clear=function(){var a=Array.from(this);a=n(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};
var N6b=function(a){this.storage_=a};ev(N6b,ZZ);g=N6b.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 tI;d.next=function(){if(b>=c.length)return qEb;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 QTa=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};ev(QTa,N6b);
var $Z=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};ev($Z,ZZ);$Z.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};$Z.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};$Z.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
$Z.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new tI;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 Dr=function(a,b){var c=void 0,d=void 0;b=void 0===b?new QTa:b;c=void 0===c?FE:c;d=void 0===d?Txb:d;this.clientConfig_=a;this.transformer_=new I6b(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new $Z(this.localStorage_,this.prefix_)};
Dr.prototype.set=function(a,b){var c=K6b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw L6b;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
Dr.prototype.get=function(a){a=K6b(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:H6b(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};Dr.prototype.delete=function(a){this.storage_.remove(a);return!0};
Dr.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 Er=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new I6b(this.clientConfig_);this.cache_=b};Er.prototype.set=function(a,b){var c=K6b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw L6b;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
Er.prototype.get=function(a){a=K6b(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};Er.prototype.delete=function(a){this.cache_.delete(a);return!0};Er.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};
var O6b=function(){};g=O6b.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};
var P6b=function(a){Y.call(this,a)};X(P6b,Y);g=P6b.prototype;g.getCaller=function(){return Ub(this,WZ,1)};g.setCaller=function(a){return Vb(this,1,a)};g.getClient=function(){return Ub(this,XZ,2)};g.setClient=function(a){return Vb(this,2,a)};g.hasClient=function(){return vj(this,XZ,2)};
var Q6b=function(a){Y.call(this,a)};X(Q6b,Y);g=Q6b.prototype;g.getRequestType=function(){return l(this,1)};g.setRequestType=function(a){return m(this,1,a)};g.setProperties=function(a){return Vb(this,3,a)};g.getInstanceId=function(){return l(this,4)};g.setInstanceId=function(a){return m(this,4,a)};g.clearInstanceId=function(){qv(this,4)};g.hasInstanceId=function(){return Oi(this,4)};g.getInstanceIdOrUndefined=function(){return vv(this,4)};
var R6b=new DF("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",Q6b,G6b,function(a){return a.serialize()},H6b);
var S6b=function(a){this.client_=new lG({format:"jspb"});this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};S6b.prototype.getExperimentFlags=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},R6b)};
var a_=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new O6b};a_.prototype.getMetric=function(){return this.metric_};a_.prototype.send=function(a){var b=this,c;return Pe(function(d){var e=(new P6b).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new Q6b).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
a_.prototype.close=function(){};a_.prototype.processResponse=function(a){return a};
var T6b=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var U6b=function(a,b){this.config_=a;this.request_=b;this.resolver_=new T6b;this.rpcPromise_=null;this.state_=0};g=U6b.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_=bxb(new yE),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resultPromise();var b=qDa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=lxb(exb([b,uxb(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 yE?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=sp("result.error.code",a)||a.status,c=Number(c),c=LRb.has(c)?LRb.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 V6b=Symbol("pe"),W6b=function(){};W6b.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[V6b]=d)}return c})};
var b_=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};b_.prototype.getMetric=function(){return this.metric_};b_.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
b_.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[V6b]||0}};b_.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 X6b=function(a){this.config_=a;this.pendingRpcs_=new Set},c_=function(a,b){b=new b_(b);b=new U6b(a.config_,b);a.pendingRpcs_.add(b);Y6b(a,b);return b.resultPromise()},Y6b=function(a,b){Pe(function(c){if(1==c.nextAddress)return Qe(c,2,3),Re(c,b.send(),3);if(2!=c.nextAddress)return Se(c),a.pendingRpcs_.delete(b),Te(c,0);Ue(c);return c.jumpTo(3)})};
var STa=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new X6b(a);this.rpcClient_=new S6b(this.clientConfig_.apiRoot_)},$6b=function(a,b){var c,d,e,f;return Pe(function(h){switch(h.nextAddress){case 1:var k=Z6b(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new a_(b,a.rpcClient_);Qe(h,2,3);e=c_(a.dispatcher_,d);k=Z6b(b);a.inflightRequests_.set(k,e);
return Re(h,e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Se(h);k=Z6b(b);a.inflightRequests_.delete(k);Te(h,0);break;case 2:throw Ue(h),Error("qe");}})},Z6b=function(a){a=OTa(a);if(!a)throw L6b;return a};
var a7b=function(a){Y.call(this,a)};X(a7b,Y);g=a7b.prototype;g.getInstanceId=function(){return l(this,1)};g.setInstanceId=function(a){return m(this,1,a)};g.clearInstanceId=function(){qv(this,1)};g.hasInstanceId=function(){return Oi(this,1)};g.getInstanceIdOrUndefined=function(){return vv(this,1)};g.getRequestId=function(){return l(this,2)};g.getRequestType=function(){return l(this,4)};g.setRequestType=function(a){return m(this,4,a)};g.getSourceType=function(){return l(this,6)};
g.setSourceType=function(a){return m(this,6,a)};g.getClient=function(){return l(this,7)};g.setClient=function(a){return m(this,7,a)};g.hasClient=function(){return nj(this,7)};g.getErrorType=function(){return l(this,8)};g.setErrorType=function(a){return m(this,8,a)};
var TTa=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=ct(new dt,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(456799336).setEnableClearcut(b.getEnableClearcut())};g=TTa.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Xa");};g.createStatusMetric=function(){throw Error("Xa");};g.createErrorMetric=function(){throw Error("Xa");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(1E3*b.duration());m(a,3,b);return a};
var d_=function(a,b){this.metrics_=a;this.state_=new QS(b);this.label_="total";this.source=b};d_.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};d_.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};
var UTa=function(a,b){this.worker_=a;this.metrics_=ds(b)},b7b=function(a,b){var c=new a7b,d=xr();c=m(c,2,d).setRequestType(a.getRequestType());return m(c,5,b).setClient(a.getClient().getApplication())};
UTa.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return Pe(function(k){if(1==k.nextAddress)return d=b7b(a,b),e=new d_(c.metrics_,d),e.start(),Re(k,c.worker_.updateExperimentsCache(a,b),2);f=k.yieldResult;d.setSourceType(f.getSource());d.setInstanceId(f.getInstanceId());(h=f.getError())&&d.setErrorType(h.getErrorType());e.stop();return k.return(f)})};
UTa.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=b7b(a,b),d=new d_(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);c.setSourceType(a.getSource());c.setInstanceId(a.getInstanceId());(b=a.getError())&&c.setErrorType(b.getErrorType());d.stop();return a};
var c7b=function(a){this.timer=a;this.count=0},WTa=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*Ji(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new ar(this)};WTa.prototype.updateExperimentsCache=function(a,b){try{return d7b(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(Cr(c))}};WTa.prototype.getCachedExperiments=function(a,b){try{return d7b(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return Cr(c)}};
var d7b=function(a,b){var c=OTa(b);if(!c)throw new zr(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new zE(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=Ji(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new c7b(d))}a.refreshers_.get(c)};
var e7b=function(){},VTa=function(a,b){this.cache_=a;this.loader_=b};
VTa.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return Pe(function(k){if(1==k.nextAddress){e=d=null;try{d=f7b(c,a)}catch(y){e=y}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));Qe(k,3);return Re(k,g7b(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,t=e;t=void 0===t?null:t;var x=(new Ar).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceId());t&&x.setError(PTa(t));return q.call(k,
x)}h=Ue(k);return k.return(Cr(h))})};VTa.prototype.getCachedExperiments=function(a){try{var b=f7b(this,a);if(b){var c=(new Ar).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&g7b(this,a).catch(e7b);return c}g7b(this,a).catch(e7b);return Cr()}catch(d){return Cr(d)}};
var f7b=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof zr)throw d;throw new zr(3);}},g7b=function(a,b){var c,d;return Pe(function(e){if(1==e.nextAddress)return Qe(e,2),b.hasInstanceId()||b.setInstanceId(xr()),Re(e,$6b(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Ue(e);if(d instanceof zr)throw d;throw new zr(2);})};
var RTa;
var h7b=function(a){this.clientConfig_=a;this.worker_=XTa(this.clientConfig_)};h7b.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};
var as=function(){this.peopleApiEnv_=4};as.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};as.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
var i7b=function(a,b){this.client_=a;this.request_=b;this.response_=null};i7b.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};i7b.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};
var Zr=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=456799336};Zr.prototype.prefetch=function(a){var b=new YZ(this.clientConfig_,new as);a=j7b(this,a,"");XTa(b).updateExperimentsCache(a,2)};Zr.prototype.loadExperiments=function(a,b,c){var d=new YZ(this.clientConfig_,b),e=j7b(this,a,c);XTa(d).updateExperimentsCache(e,2);b=new h7b(new YZ(this.clientConfig_,b));a=j7b(this,a,c);return new i7b(b,a)};
var j7b=function(a,b,c){var d=(new WZ).setVersion(a.version_);b=(new XZ).setApplication(b);return(new D6b).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};
var Fr=new bs(new PZ,new B6b);
var $Ta=ir.getInstance();
var dUa=ir.getInstance();
var k7b=new gD(FO.WEEKDAY_MONTH_DAY_MEDIUM),l7b=new gD(7);new gD(FO.WEEKDAY_MONTH_DAY_MEDIUM);
var m7b=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);
var n7b=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText;a=a.styleClass;return Rr('<div class="'+Sr("peoplekitComponentsTagTag")+" "+(a?Sr(a):"")+'" peoplekit-id="'+Sr("mQXP")+'">'+(b?'<img class="'+Sr("peoplekitComponentsTagIcon")+'" src="'+Sr(QTb(b))+'" alt="'+Sr(c)+'"><div'+(d?"":' class="'+Sr("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Sr("peoplekitComponentsTagText")+'">'+iT(c)+"</div></div>":'<div class="'+Sr("peoplekitComponentsTagText")+'">'+iT(c)+"</div>")+"</div>")};
var Gr=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;o7b(this,{tags:d});aTa(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){o7b(h,k)})};g=Gr.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.getRoot=function(){return this.root};
g.getSelection=function(){throw Error("se");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=$q(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("re");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 "+l7b.format(c):"Out of office - back on "+k7b.format(c);rE(b,String(c));this.root.classList.add("isOutOfOffice")}else rE(b,
""),this.root.classList.remove("isOutOfOffice")}};g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:m7b.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=$q(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=Bp(n7b,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 o7b=function(a,b){for(var c=n(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};Gr.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};Gr.prototype.dispose=function(){};
var Tr=function(a,b,c,d,e){this.delegate=Hr(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new e6b(xs)};X(Tr,SZ);Tr.prototype.getAllIds=function(){return[this.id]};Tr.prototype.getSelection=function(){return this.selection};
var p7b=function(a,b,c,d,e,f,h){c=void 0===c?"":c;d=void 0===d?!1:d;return Rr('<div role="option" class="'+Sr("peoplekitComponentsResultlistitemResultListItem")+" "+Sr(c)+'" id="'+Sr(a)+'" peoplekit-id="'+Sr(a)+'" aria-disabled="'+Sr(d)+'" aria-selected="false"><div class="'+Sr("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Sr("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Sr(b)+'">'+iT(e)+'</div><div class="'+Sr("peoplekitComponentsResultlistitemCenter")+
'">'+iT(f)+'</div><div class="'+Sr("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+Sr("QChpEe")+'">'+iT(h)+'</div></div><div peoplekit-id="'+Sr("Z306Oe")+'" class="'+Sr("peoplekitComponentsResultlistitemOutOfOffice")+'"></div><div peoplekit-id="'+Sr("QL45qe")+'"></div></div>')},q7b=function(a,b,c,d){return Rr('<div class="'+Sr("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Sr("peoplekitComponentsResultlistitemLabel")+" "+Sr("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+Sr("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+Sr(b)+'" translate="no">'+iT(ETb(a))+'</div><div peoplekit-id="'+Sr("x00ATb")+'" class="'+Sr("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Sr("peoplekitComponentsResultlistitemSublabel")+" "+Sr("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Sr("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Sr(b)+'"'+(d?"":' translate="no"')+">"+iT(ETb(c))+
"</div></div>":"")+"</div>")},r7b=function(a){return Rr('<div class="'+Sr("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+Sr("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Sr("d6MZcd")+'"></div>'+(a?iT(a):"")+"</div>")},s7b=function(){var a=Rr,b='<div class="'+Sr("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Sr("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=Rr('<svg viewBox="0 0 24 24" class="'+(Sr("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(r7b(kT(b+c+"</div></div>")))},t7b=function(){return Rr('<img class="'+Sr("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Sr("SC3Htd")+'" alt="" src=""/>')};
var sUa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return Rr(p7b(a.id,b,"isDisabled "+a.densityClass,!0,kT(""+r7b()),kT(""+q7b(c,b,d,f)),kT('<div class="'+Sr("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+iT(e)+"</div>")))};
var Mr=function(a){this.delegate=a;var b=this;this.eventHandler=br(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};X(Mr,SZ);Mr.prototype.onClick=function(){this.toggleSelection()};
var fUa=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("te");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new Z5b(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=fUa.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.result=function(){return this.internalResult};
g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.isPlaceholder=function(){return!1};
var e_=function(a,b,c,d,e,f){this.delegate=Hr(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new e6b(xs)};X(e_,SZ);e_.prototype.getAllIds=function(){return[this.id]};e_.prototype.toggleSelection=function(){for(var a=n(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=gUa(b.value),this.selectionsState.select(b);this.root.dispatchEvent(cr("pk-select",this.root))};e_.prototype.getSelection=function(){return this.selection};
var u7b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Rr(p7b(a.id,b,a.densityClass,void 0,kT(""+r7b()),kT(""+q7b(c,b,d,e)),kT(""+t7b())))};
var Nr=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&v7b(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){v7b(c,d)};w7b(this.selectionsState,this.onDeselectionCallback);x7b(this.selectionsState,this.onSelectionCallback)};X(Nr,SZ);
Nr.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=cr("pk-deselect",a)}else a=this.getRoot(),a=cr("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var v7b=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};Nr.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};
var Lr=function(a,b,c,d,e,f){this.delegate=Hr(a,b,d,e,f,[2]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||gUa(b,b.getDisplayName())};X(Lr,SZ);Lr.prototype.getAllIds=function(){return[this.id]};Lr.prototype.getSelection=function(){return this.selection};
var qUa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Rr(p7b(a.id,b,a.densityClass,void 0,kT(""+s7b()),kT(""+q7b(c,b,d,e)),kT(""+t7b())))};
var y7b=function(a,b,c,d,e,f){this.delegate=Hr(a,b,d,e,f,[]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||gUa(b)};X(y7b,SZ);y7b.prototype.getAllIds=function(){return[this.id]};y7b.prototype.getSelection=function(){return this.selection};
var z7b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return Rr(p7b(a.id,b,a.densityClass,void 0,kT(""+s7b()),kT(""+q7b(c,b,d,e)),kT(""+t7b())))};
var lUa=function(a,b,c,d,e,f){var h=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableNavigationFocus=e;this.internalIsDisabled=!1;this.eventHandler=br(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var q;null==(q=h.onClick)||q.call(h,k)});this.disableNavigationFocus?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){h.activate()}),this.eventHandler.listen(this.root,"blur",function(){h.deactivate()}))};g=lUa.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&&(a.hideTooltip(),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&&this.tooltip.showTooltip()};g.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};g.isActive=function(){return this.root.classList.contains("isFocused")};
var A7b=0;
var iUa=function(a){var b=a.icon,c=a.ariaLabel,d="";c=(a=a.tooltipLabel?"tt-c"+A7b++:"")?' data-tooltip-id="'+Sr(a)+'" aria-labelledby="'+Sr(a)+'"':c?' aria-label="'+Sr(c)+'"':"";d+='<button class="'+Sr("peoplekitComponentsButtonIconIconButton")+'"'+c+">"+Rr('<span role="button"><img src="'+Sr(QTb(b))+'" draggable="false" aria-hidden="true" alt=""/></span>')+"</button>";return Rr(d)};
var B7b=["mouseover","focusin","touchstart"],C7b=["mouseleave","blur","touchend","click"],Jr=function(a,b,c){var d=this;this.tooltip=a;this.showDelay=void 0===b?500:b;this.hideDelay=void 0===c?300:c;this.isDisplayedInternal=!1;this.eventHandler=br(this);this.tooltipService=BTa(this.tooltip,function(){d.hideTooltip()},{anchorCorner:3,popupCorner:2})},kUa=function(a,b){if(a.anchor)throw Error("ue");a.anchor=b;for(var c=n(B7b),d=c.next();!d.done;d=c.next())a.eventHandler.listen(b,d.value,function(){D7b(a)});
E7b(a)};Jr.prototype.showTooltip=function(){if(!this.anchor)throw Error("ve");this.isDisplayedInternal||(this.tooltipService.show(this.anchor),window.clearTimeout(this.showTimeout),this.showTimeout=void 0,this.isDisplayedInternal=!0)};Jr.prototype.hideTooltip=function(){this.isDisplayedInternal&&(this.tooltipService.hide(),window.clearTimeout(this.hideTimeout),this.hideTimeout=void 0,this.isDisplayedInternal=!1)};Jr.prototype.getRoot=function(){return this.tooltip};
var D7b=function(a){void 0===a.showTimeout&&(window.clearTimeout(a.hideTimeout),a.hideTimeout=void 0,a.showTimeout=window.setTimeout(function(){a.showTooltip()},a.showDelay))},F7b=function(a){void 0===a.hideTimeout&&(window.clearTimeout(a.showTimeout),a.showTimeout=void 0,a.hideTimeout=window.setTimeout(function(){a.hideTooltip()},a.hideDelay))},E7b=function(a){if(a.anchor){for(var b=n(C7b),c=b.next();!c.done;c=b.next())a.eventHandler.listen(a.anchor,c.value,function(){F7b(a)});a.eventHandler.listen(window,
"touchmove",function(){F7b(a)});a.eventHandler.listen(window,"focus",function(d){d.target!==a.anchor&&F7b(a)});a.eventHandler.listen(window,"blur",function(d){d.target===window&&a.hideTooltip()})}};
var jUa=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes,f=Rr;a='<div id="'+Sr(a.id)+'" class="'+Sr("peoplekitComponentsTooltipImplTooltip")+(d?" "+Sr(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+Sr(c)+'"':"");e?(hT(e,uTb)?e=e.getContent():(e=String(e),e=UTb.test(e)?e:"zSoyz"),hT(e,uTb)&&(e=e.getContent()),e=(e&&!e.startsWith(" ")?" ":"")+e):e="";return f(a+e+">"+iT(b)+"</div>")};
var nUa=function(a,b,c){this.delegate=a;for(var d=this,e=$q(a.getRoot(),"QChpEe");e.firstChild;)e.removeChild(e.firstChild);this.secondaryActionButton=mUa(e,Object.assign({},{disableNavigationFocus:!0,density:b.getDensity()},c));this.buttonRoot=this.secondaryActionButton.getRoot();this.buttonRoot.style.display="none";this.buttonRoot.id=a.getRoot().id+"-2ab";gI(this.buttonRoot,"hidden","true");gr(this.buttonRoot,163534,["impression","pk-click"]);this.secondaryActionButton.onClick=function(f){var h;
null==(h=c.onClick)||h.call(c,f);d.buttonRoot.dispatchEvent(cr("pk-click",d.buttonRoot))};this.eventHandler=br(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};X(nUa,SZ);g=nUa.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,d=9===a.event.keyCode;if(d&&!a.event.shiftKey&&!this.secondaryActionButton.isActive())this.secondaryActionButton.activate(),a.stopPropagation(),a.preventDefault();else if(d&&this.secondaryActionButton.isActive())this.secondaryActionButton.deactivate(),a.stopPropagation(),a.preventDefault();else if(c||b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};
g.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();SZ.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 G7b=new Map([[1,rUa()],[4,rUa()],[5,tUa(1)],[6,tUa(2)],[2,function(a){var b=a.result;var c=a.selectionsState;var d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomization,h=eUa(b,d,f,a.isRightToLeft,oj(a.clientConfig.internal,6,!1),wr(e.getDensity())),k=Bp(z7b,h);gr(k,25285,["impression","pk-select","pk-deselect"],[hUa(b.getPrimaryTarget().getLoggingToken())]);var q=$q(k,"d6MZcd"),t=vr(e.getDensity()),x;f=null!=(x=f.backupAvatarUrl)?x:"";e=ur(q,h.photos,t,t,e,f);b=new y7b(k,b,c,d,h.tags,e);
c=new Mr(new Nr(b,c));return pUa(c,a)}],[3,function(a){var b=a.result;var c=a.selectionsState,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomization,h=eUa(b,d,f,a.isRightToLeft,oj(a.clientConfig.internal,6,!1),wr(e.getDensity())),k=Bp(u7b,h);gr(k,25285,["impression","pk-select","pk-deselect"],[hUa(b.getPrimaryTarget().getLoggingToken())]);var q=$q(k,"d6MZcd"),t=vr(e.getDensity()),x;f=null!=(x=f.backupAvatarUrl)?x:"";e=ur(q,h.photos,t,t,e,f);b=new Mr(new e_(k,b,c,d,h.tags,e));return pUa(b,a)}]]);
var vUa=function(a,b,c,d,e,f,h){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.interactions=h;this.results=[];this.intelligentCollection=f.create();this.navigatable=new X5b(new rTa(this.results))};g=vUa.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=n(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.selectionsState,e=this.resultConfig,f=this.appearanceConfig,h=this.clientConfig,k=zT(this.list.getRoot()),q=this.interactions,t=e.getResultCustomizationCallback()(c,b),x=!!d.get(c.getPrimaryTarget().getId());var y=c;var F=e;if(t.shouldDisable)y=6;else{var K=y.getPrimaryTarget().getId();y=Qr(K)?3:Pr(K)?2:x&&!F.getAllowResultDeselection()?5:1===y.getTargetList().length?1:1<y.getTargetList().length?4:0}y=G7b.get(y);
if(!y)throw Error("we");c=y({result:c,selectionsState:d,resultConfig:e,appearanceConfig:f,clientConfig:h,isRightToLeft:k,interactions:q,resultCustomization:t});this.list.append(c.getRoot());this.register(c)}};g.clear=function(){this.list.clear();this.navigatable.clear();this.intelligentCollection.clear();for(var a=n(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};
var uUa=function(a){a=a.header;return Rr('<div peoplekit-id="'+Sr("aittld")+'">'+(0<jT(a).length?'<div class="'+Sr("peoplekitUiResultlistHeader")+'">'+iT(a)+"</div>":"")+'<div peoplekit-id="'+Sr("tjneg")+'"></div></div>')},H7b=function(a){a=a.name;return Rr('<div class="'+Sr("peoplekitUiResultlistGroup")+'">'+iT(a)+"</div>")};
var Vr=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};Vr.prototype.append=function(a,b){a=n(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);e&&(e=Bp(H7b,{name:e}),this.list.append(e));this.renderedGroups.add(d)}this.delegate.append([c],b)}};Vr.prototype.clear=function(){this.renderedGroups.clear();this.delegate.clear()};
Vr.prototype.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};Vr.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Ur=function(a,b){this.delegate=a;this.interactions=b};Ur.prototype.append=function(a,b){a=n(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.delegate.append([c],b),this.interactions.display(c)};Ur.prototype.clear=function(){this.delegate.clear()};Ur.prototype.reset=function(a){this.delegate.reset(a)};Ur.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var es=function(a){this.label=a};es.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};es.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};es.prototype.reset=function(){};
var fs=function(a){this.label=a};fs.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};fs.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};fs.prototype.reset=function(){};
var I7b=function(a,b){jr.call(this,a,b)};X(I7b,jr);I7b.prototype.onKeyDown=function(a){if(9===a.event.keyCode){var b=this.getSpotlitItem();if(b){b=b.getRoot();var c=b.querySelector('[id="'+(b.id+'-2ab"]'));if(c){var d=this.ariaParent;var e=NDb(d,"activedescendant");d=fE(d).getElementById(e);hI(this.ariaParent,d===c?b:c)}}}jr.prototype.onKeyDown.call(this,a)};
var dVa=function(a,b,c,d,e,f,h){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=h;this.count=0;this.attached=!1;this.navigatable=new I7b(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=hTa({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},{shouldReactToHomeEnd:!1});this.eventHandler=br(this);Yq(this.root,0)};g=dVa.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");Yq(this.root,1);this.count=0;if(a){var f=J7b(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=J7b(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};
g.attach=function(){this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(a){a.preventDefault();a.stopPropagation()}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();Yq(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});this.attach();this.count+=e.length;e=!1;0<this.count?(e=!0,this.root.classList.remove("noResults")):a.getIsLastCallback()&&(e=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:this.count,hasContent:e});a.getIsLastCallback()?Yq(this.root,0===a.getCode()?2:3,a.getCode()):Yq(this.root,4);(d||this.config.getAutoActivateFirstSuggestion())&&
0<this.count&&!this.navigatable.getSpotlitItem()&&this.navigatable.next(0);c.stop()};g.onKeyDown=function(a){var b=13===a.event.keyCode;if(9===a.event.keyCode&&!a.event.shiftKey||b)if(b=this.navigatable.getActiveItems(),b.length){b=n(b);for(var c=b.next();!c.done;c=b.next())c.value.toggleSelection();a.preventDefault();a.stopPropagation()}};g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};
var YUa=function(){var a=Rr,b='<div class="'+Sr("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Sr("yDHfq")+'"><div class="'+Sr("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=kT('<div peoplekit-id="'+Sr("tjneg")+'"></div>');c=Rr('<div tabindex="-1" class="'+Sr("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+Sr("I8ejUe")+'">'+iT(c)+"</div>");b=b+c+'</div><div class="'+Sr("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c='<div class="'+
Sr("peoplekitComponentsCircularprogressCircularProgress")+(" "+Sr("isActive"))+'" data-loadingmessage="'+Sr("Loading...")+'" data-active="true" dir="ltr"><div class="'+Sr("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Sr("vyyg5")+'">'+iT("Loading...")+'</div><div class="'+Sr("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Sr("peoplekitComponentsCircularprogressColorOne")+
" "+Sr("exportColorOne")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressRight")+
'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Sr("peoplekitComponentsCircularprogressColorTwo")+" "+Sr("exportColorTwo")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+
Sr("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressRight")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Sr("peoplekitComponentsCircularprogressColorThree")+
" "+Sr("exportColorThree")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressRight")+
'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Sr("peoplekitComponentsCircularprogressColorFour")+" "+Sr("exportColorFour")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+
Sr("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div><div class="'+Sr("peoplekitComponentsCircularprogressCircleClipper")+" "+Sr("peoplekitComponentsCircularprogressRight")+'"><div class="'+Sr("peoplekitComponentsCircularprogressCircle")+" "+Sr("exportCircle")+'"></div></div></div></div></div>';c=Rr(c);return a(b+c+"</div></div>")},ZUa=function(){return Rr('<div class="'+Sr("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};
var aVa=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Sr("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Sr(a)+'"':"")+'><p class="'+Sr("peoplekitComponentsNoResultsMessageHeader")+'">';b=iT(b?b:"No results");a=a+b+"</p>";if((c instanceof Cp?c.getContent():c)||(d instanceof Cp?d.getContent():d))a+='<p class="'+Sr("peoplekitComponentsNoResultsMessageExplanation")+'">',c&&(c=iT(c),a=a+c+(d?" ":"")),d&&
(a+='<a jsname="'+Sr("viORvd")+'" class="'+Sr("peoplekitComponentsNoResultsMessageLearnMoreLink")+'" target="_blank" href="'+Sr(OTb(d))+'">',d=iT(e?e:"Learn more"),a+=d,a+="</a>"),a+="</p>";a+="</div>";return Rr(a)};
var $Ua=function(a,b){this.parent=a;this.config=b};$Ua.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=Bp(aVa,a);this.parent.appendChild(this.root);return!0};
var cVa=function(){};cVa.prototype.update=function(){return!1};
var bVa=function(){};bVa.prototype.update=function(){return!0};
var eVa=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=BTa(this.root,function(){f.hide()},{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=br(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.hide()};
this.attach()};g=eVa.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;x7b(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("le`"+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("le`"+c);}}this.root.style.width=wT(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("le`"+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 XUa=function(){return Rr('<div class="'+Sr("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Sr("noeiCf")+'" style="display: none;"></div>')};
var K7b=function(){this.batches=new Map};K7b.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 AUa=function(a,b){this.service=a;this.resolveComponents=b};
AUa.prototype.update=function(a){var b=this;a=n([].concat(r(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=n(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){L7b(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){L7b(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var L7b=function(a,b,c){b=n(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=n(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};
var M7b=new Set([1,3,20]),N7b=function(a){var b=this;this.idToComponent=new Map;this.updater=BUa(a,function(c){return b.resolveComponents(c)})};g=N7b.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return M7b.has(h.getType())})});a=[];b=n(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=n(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){var b={};a=n(a);for(var c=a.next();!c.done;b={$jscomp$loop$prop$component$1984:b.$jscomp$loop$prop$component$1984},c=a.next()){b.$jscomp$loop$prop$component$1984=c.value;c=n(b.$jscomp$loop$prop$component$1984.getAllIds());for(var d=c.next();!d.done;d=c.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.$jscomp$loop$prop$component$1984}}(b)))}}};
g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};g.refresh=function(a){var b=new K7b;a=n(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=n(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 f_=function(){};f_.prototype.append=function(){};f_.prototype.remove=function(){};f_.prototype.refresh=function(){};f_.prototype.clear=function(){};
var WUa=function(a){this.peopleIntelligence=a};WUa.prototype.create=function(){return this.peopleIntelligence?new N7b(this.peopleIntelligence):new f_};
var RUa=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);
var O7b=function(){this.label="";this.type=0};g=O7b.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 g_=function(){this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};g_.prototype.getAllowResultDeselection=function(){return!1};g_.prototype.getWarnForExternalSelections=function(){return!1};g_.prototype.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g_.prototype.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
var P7b=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.noResultsMessage=null;this.environmentConfig=a;this.grouping=new O7b;this.result=new g_;this.appearance=new tr};g=P7b.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.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.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 Q7b=function(a){this.environmentConfig=a;this.autocomplete=new P7b(a)};g=Q7b.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.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.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 R7b=Object.freeze(new Map([[5,1]]));
var h_=function(){this.entryPoint_=0};h_.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};h_.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};h_.prototype.serialize=function(){return[this.entryPoint_].toString()};var S7b=Object.freeze(new h_);
var i_=function(){this.originator_=0};i_.prototype.setOriginator=function(a){this.originator_=a;return this};i_.prototype.getOriginator=function(){return this.originator_};
var SUa=function(a,b,c){var d=this;this.reporter=a.getReporter((new h_).setPeoplekitEntryPoint(c));x7b(b,function(e,f,h){d.select(e,h)},0);w7b(b,function(e,f,h){d.deselect(e,h)},0);T7b(b,function(e,f,h,k){d.replace(e,k)})};g=SUa.prototype;g.display=function(a){this.reporter.reportDisplay(CUa(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(Kr([a]),(new i_).setOriginator(R7b.get(b)||0));break;case 6:this.reporter.reportExternalSelect(Kr([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Kr([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(Kr(a))};g.save=function(a){this.reporter.reportSave(Kr(a))};g.send=function(a){this.reporter.reportSend(Kr(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};
var U7b=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};U7b.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=Xt(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};U7b.prototype.cancel=function(){Yt(this.timerId);this.isBatchingInternal=!1};
var lVa=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 U7b;x7b(this.selectionsState,function(){V7b(h)})};g=lVa.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){var b=void 0===b?[]:b;b=b.length?b:this.selectionsState.asArray();var c=this.interactions;switch(a){case 1:c.reporter.reportProceed(Kr(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(Kr(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 W7b=function(a,b){a.selectionChangedListeners.push(b)},V7b=function(a){a.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=n(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};
var QUa=function(){return Rr('<div peoplekit-id="'+Sr("nVhUhf")+'"></div>')};
var X7b=function(a){Y.call(this,a)};X(X7b,Y);g=X7b.prototype;g.getClientId=function(){return l(this,1)};g.setClientId=function(a){return m(this,1,a)};g.getEntryPoint=function(){return l(this,5)};g.setEntryPoint=function(a){return m(this,5,a)};g.getSocialClient=function(){return Ub(this,xS,2)};g.setSocialClient=function(a){return Vb(this,2,a)};g.setVersionName=function(a){return m(this,3,a)};g.getBaselineCl=function(){return l(this,4)};g.setBaselineCl=function(a){return m(this,4,a)};
g.hasBaselineCl=function(){return zj(this,4)};g.getComponentFlow=function(){return l(this,7)};g.setComponentFlow=function(a){return m(this,7,a)};
var Y7b=function(a){Y.call(this,a)};X(Y7b,Y);
var Z7b=function(a){Y.call(this,a)};X(Z7b,Y);g=Z7b.prototype;g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return nj(this,1)};g.getValue=function(){return Aj(this,2,1)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return zj(this,2)};
var j_=function(a){Y.call(this,a)};X(j_,Y);j_.prototype.getLabel=function(){return l(this,1)};j_.prototype.setLabel=function(a){return m(this,1,a)};j_.prototype.hasLabel=function(){return Oi(this,1)};j_.prototype.getCause=function(){return l(this,2)};
var $7b=function(a){Y.call(this,a)};X($7b,Y);g=$7b.prototype;g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return nj(this,1)};g.setLatencyUsec=function(a){m(this,2,a)};g.getCacheStatus=function(){return l(this,3)};g.setCacheStatus=function(a){return m(this,3,a)};
var k_=function(a){Y.call(this,a)};X(k_,Y);k_.prototype.getInterfaceType=function(){return l(this,1)};k_.prototype.setInterfaceType=function(a){return m(this,1,a)};
var a8b=function(a){Y.call(this,a)};X(a8b,Y);g=a8b.prototype;g.getCount=function(){return Ub(this,Z7b,3)};g.setCount=function(a){return Vb(this,3,a)};g.getLatency=function(){return Ub(this,$7b,4)};g.setLatency=function(a){return Vb(this,4,a)};g.getError=function(){return Ub(this,j_,5)};g.setError=function(a){Vb(this,5,a)};g.hasError=function(){return vj(this,j_,5)};
var c8b=function(a){Y.call(this,a,-1,b8b)};X(c8b,Y);c8b.prototype.setElementIndex=function(a){m(this,2,a)};var b8b=[3];
var l_=function(a){Y.call(this,a)};X(l_,Y);l_.prototype.getClientInterface=function(){return Ub(this,X7b,3)};l_.prototype.setClientInterface=function(a){return Vb(this,3,a)};l_.prototype.getMetadata=function(){return Ub(this,Y7b,4)};l_.prototype.setMetadata=function(a){Vb(this,4,a)};
var TUa=function(a){this.logContext=bt(ct(new dt,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplication()).setEnvironment(0).setVersion("1.0").setBaselineCl(456799336).setEnableClearcut(a.getEnableClearcut()),Fr.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=TUa.prototype;g.getLogContext=function(){return this.logContext};g.createCountMetric=function(){throw Error("Xa");};g.createStatusMetric=function(){throw Error("Xa");};
g.createLatencyMetric=function(a,b){b=b.source();a=(new l_).setClientInterface((new X7b).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersion()).setBaselineCl(this.getLogContext().getBaselineCl()).setComponentFlow(this.componentFlow));return Vb(a,2,b)};g.createErrorMetric=function(){throw Error("Xa");};
var d8b=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new a8b;a=m(a,1,4);var c=new k_;b=m(c,2,2).setInterfaceType(b);this.dataEntry=Vb(a,2,b).setLatency((new $7b).setLabel(8));this.state=new QS(this.dataEntry)};d8b.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
d8b.prototype.stop=function(a){a=void 0===a?function(){}:a;this.metrics.stop(this.state,this.label);var b=RS(this.state,this.label),c;null==(c=this.dataEntry.getLatency())||c.setLatencyUsec(b);a(b);var d;null!=(d=Ub(this.dataEntry,k_,2))&&m(d,3,this.count);this.metrics.latency(this.state);++this.count};
var VUa=function(a,b){this.metrics=a;this.userInterfaceType=b};
var UUa=function(a){this.trackers=a},J7b=function(a){a=a.trackers;return new d8b(a.metrics,a.userInterfaceType)};
var m_=function(){this.itemsByPriority=[]};m_.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};m_.prototype.remove=function(a){for(var b=n(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};m_.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(r(a))})};
var cs=function(){this.selectionCallbacks=new m_;this.deselectionCallbacks=new m_;this.selectionReplacedCallbacks=new m_;this.selectionAttemptedCallbacks=new m_;this.selectionsState=[]};
cs.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 Wr(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;0<=b?(this.selectionsState.splice(b,0,a),Wr(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),Wr(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
cs.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),Wr(a,d,b,this.deselectionCallbacks.asArray()))};cs.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 x7b=function(a,b,c){a.selectionCallbacks.add(b,void 0===c?2:c)},w7b=function(a,b,c){a.deselectionCallbacks.add(b,void 0===c?2:c)},T7b=function(a,b){a.selectionReplacedCallbacks.add(b,0)};g=cs.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;DUa(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 Wr(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])};
var js=function(){};js.prototype.start=function(){};js.prototype.stop=function(){};
var e8b=function(a){this.userAction=a};
var is=function(a){this.visualElementRoot=a;this.syntheticVisualElements=new Map;a=fr(this.visualElementRoot);this.syntheticRoot=EUa(a);this.syntheticVisualElements.set(a.id,this.syntheticRoot)};
is.prototype.insert=function(a){a=n(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=fr(b);if(c&&!this.syntheticVisualElements.has(c.id)){c=this.visualElementRoot;var d=[];if(c.contains(b)){for(;b&&b!==c;)b.hasAttribute("pk-log")&&d.push(b),b=b.parentElement;b&&b.hasAttribute("pk-log")&&d.push(b)}b=d;b.reverse();for(c=1;c<b.length;c++){var e=fr(b[c]);this.syntheticVisualElements.has(e.id)||(d=EUa(e),this.syntheticVisualElements.set(e.id,d),e=fr(b[c-1]),this.syntheticVisualElements.get(e.id).appendChild(d))}}}};
is.prototype.remove=function(a){a=n(a);for(var b=a.next();!b.done;b=a.next())if(b=fr(b.value)){var c=this.syntheticVisualElements.get(b.id);this.syntheticVisualElements.delete(b.id);c&&c.parentElement&&c.parentElement.removeChild(c)}};is.prototype.getRoot=function(){return this.syntheticRoot};is.prototype.getElement=function(a){return this.syntheticVisualElements.get(a)};
var iVa=function(a,b){this.syntheticTree=a;this.tracker=b;this.delayedImpression=new uUb(this.impress,15,this)};iVa.prototype.impress=function(){var a=this.tracker,b=this.syntheticTree.getRoot();var c=void 0===c?!1:c;b=f8b(a.traverser_,b);g8b(a,b,new uT(0,0,0,0));c&&h8b(a,b,new uT(0,0,0,0))};iVa.prototype.dispose=function(){this.delayedImpression.dispose()};
var jVa=function(a,b){this.root=a;this.visualElementHandler=b;this.eventHandler=br(this)};
jVa.prototype.observe=function(){var a=this;this.mutationObserver||(this.mutationObserver=new MutationObserver(function(b){b=n(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"childList"===c.type){var d=FUa(c.removedNodes);d.length&&a.visualElementHandler.syntheticTree.remove(d);c=FUa(c.addedNodes);c.length&&(d=a.visualElementHandler,d.syntheticTree.insert(c),d.delayedImpression.start())}}),this.mutationObserver.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,
f6b,function(b){b.stopPropagation();var c=a.visualElementHandler,d=b.type;if(b=fr(b.target))if(b=c.syntheticTree.getElement(b.id),d=g6b.get(d),b&&d&&(c=c.tracker,d=new e8b(d),(b=n_(c.visualElementProvider_,b))&&b.impressionEventID))for(b=c.eventHandler_.interactionEvent(b,d),d=0;d<b.length;++d)c.metadataHandler_.addEventMetadata(b[d]),c.zwiebackId_&&m(b[d],28,c.zwiebackId_),c.transport_&&VE(c.transport_,b[d])}))};
jVa.prototype.dispose=function(){var a;null==(a=this.mutationObserver)||a.disconnect();this.eventHandler.removeAll();this.visualElementHandler.dispose()};
var kVa=function(a){this.visualElementObserver=a};kVa.prototype.start=function(){this.visualElementObserver.observe()};kVa.prototype.stop=function(){this.visualElementObserver.dispose()};
for(var i8b={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"}},GUa=KUa(i8b),j8b=new Map,k8b=n(Object.keys(i8b)),l8b=k8b.next();!l8b.done;l8b=k8b.next()){var m8b=l8b.value;j8b.set(i8b[m8b].xid,i8b[m8b].string)}
var IUa=KUa({TRACK:{string:"track",xid:"u014N"},INDEX:{string:"index",xid:"cQYSPc"},MUTABLE:{string:"mutable",xid:"dYFj7e"},TEST_CODE:{string:"tc",xid:"DM6Eze"}});
var o_=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_=[]},n8b=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=o_.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 o8b=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};o_.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?HUa(a):a};o_.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?JUa(a):a};
var p8b=function(a){o_.call(this,a)};X(p8b,o_);
var p_=function(a){Y.call(this,a)};X(p_,Y);var q8b=function(a,b){if(null!=b){var c={timeUsec:Xb(l(b,1)),serverIp:Xb(l(b,2)),processId:Xb(l(b,3))};a&&(c.$jspbMessageInstance=b);return c}},r8b=[p_,1,gob,2,job,3,job];
var q_=function(a){Y.call(this,a)};X(q_,Y);var s8b=function(a,b){if(null!=b){var c={base:q8b(a,Ub(b,p_,1)),clientCounter:Xb(l(b,2))};a&&(c.$jspbMessageInstance=b);return c}},t8b=[q_,1,lob,r8b,2,gob];
var r_=function(a){Y.call(this,a,-1,u8b)};X(r_,Y);r_.prototype.getOffset=function(){return Ji(this,2,0)};r_.prototype.setOffset=function(a){m(this,2,a)};var u8b=[1],v8b=[r_,1,hob,2,Av];
var s_=function(a){Y.call(this,a)};X(s_,Y);s_.prototype.setVeIndex=function(a){m(this,1,a)};var w8b=function(a,b){m(a,2,b)};s_.prototype.setElementIndex=function(a){m(this,5,a)};s_.prototype.getResultIndex=function(){return Ji(this,6,-1)};s_.prototype.setResultIndex=function(a){m(this,6,a)};var x8b=[s_,1,Av,11,Av,15,lob,v8b,2,Av,8,Av,5,Av,6,Av,7,Av,9,Av,10,kob,12,iob,13,lob,t8b,14,Av];
var t_=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};t_.prototype.getTag=function(){return this.veTag_};t_.prototype.getElement=function(){return this.el_};var z8b=function(a){var b=y8b++;a.traversalOrder_=b};t_.prototype.setParent=function(a){this.parent_=a};t_.prototype.getParent=function(){return this.parent_};
var fVa=function(a){Y.call(this,a)};X(fVa,Y);g=fVa.prototype;g.getClientId=function(){return l(this,1)};g.setClientId=function(a){return m(this,1,a)};g.getEntryPoint=function(){return l(this,2)};g.setEntryPoint=function(a){return m(this,2,a)};g.getApplication=function(){return l(this,3)};g.setApplication=function(a){return m(this,3,a)};g.getApplicationOrUndefined=function(){return uv(this,3)};g.setVersionName=function(a){return m(this,4,a)};g.getBaselineCl=function(){return l(this,5)};
g.setBaselineCl=function(a){return m(this,5,a)};g.hasBaselineCl=function(){return zj(this,5)};g.getMetadata=function(){return Ub(this,Y7b,6)};g.setMetadata=function(a){Vb(this,6,a)};
var gVa=function(a){this.context_=a};gVa.prototype.createNewTag=function(a){return new p8b(a)};gVa.prototype.addEventMetadata=function(a){PE(a,this.context_.serialize())};
var A8b=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};
var u_=function(){};u_.prototype.impressionEvent=function(){return[]};u_.prototype.interactionEvent=function(){return[]};u_.prototype.visibilityEvent=function(){return[]};
var w_=function(){if(!v_){var a=v_=new p_,b=1E3*Date.now();m(a,1,b);m(v_,2,0);m(v_,3,0)}a=new q_;a=Vb(a,1,v_);b=++B8b;return m(a,2,b)},B8b=0,v_=void 0;
var x_=function(a){Y.call(this,a,1)};X(x_,Y);
var y_=function(a){Y.call(this,a)};X(y_,Y);
var z_=function(a){Y.call(this,a)};X(z_,Y);z_.prototype.getEvent=function(){return Hl(this,p_,1,C8b)};z_.prototype.setVed=function(a){return um(this,5,A_,a)};var C8b=[1,3,4],A_=[2,5];
var B_=function(a){Y.call(this,a,7)};X(B_,Y);g=B_.prototype;g.getTarget=function(){return Ub(this,z_,1)};g.setTarget=function(a){return Vb(this,1,a)};g.getType=function(){return qj(this,2,0)};g.setType=function(a){return m(this,2,a)};g.hasType=function(){return nj(this,2)};
var E8b=function(a){Y.call(this,a,-1,D8b)};X(E8b,Y);var D8b=[1];
var G8b=function(a){Y.call(this,a,-1,F8b)};X(G8b,Y);G8b.prototype.getOffset=function(){return Ji(this,2,0)};G8b.prototype.setOffset=function(a){m(this,2,a)};var F8b=[1];
var H8b=function(a){Y.call(this,a)};X(H8b,Y);H8b.prototype.getEventId=function(){return Hl(this,p_,1,I8b)};H8b.prototype.setEventId=function(a){Dm(this,1,I8b,a)};var I8b=[1,2],J8b=[3,6];
var K8b=function(a){Y.call(this,a)};X(K8b,Y);
var C_=function(a){Y.call(this,a,233,L8b)};X(C_,Y);C_.prototype.setUiType=function(a){return m(this,1,a)};C_.prototype.setElementIndex=function(a){m(this,3,a)};var M8b=function(a,b){Bb(a,4,b)};C_.prototype.getResultIndex=function(){return l(this,7)};C_.prototype.setResultIndex=function(a){m(this,7,a)};C_.prototype.setVisible=function(a){return m(this,6,a)};
var N8b={},L8b=[4],O8b=function(a,b){if(null!=b){var c=Xb(l(b,1)),d=Ji(b,3,-1),e=Xb(Li(b,4)),f=Xb(l(b,5)),h=Xb(l(b,7));var k=Ub(b,H8b,11);if(null!=k){var q=q8b(a,k.getEventId()),t=s8b(a,Hl(k,q_,2,I8b)),x=Ji(k,rm(k,J8b,3),-1);var y=Hl(k,G8b,6,J8b);if(null!=y){var F={identifierBaseList:Xb(Li(y,1)),offset:Ji(y,2,0)};a&&(F.$jspbMessageInstance=y);y=F}else y=void 0;q={eventId:q,clientEventId:t,featureIndex:x,featureOffsetIdentifier:y};a&&(q.$jspbMessageInstance=k);k=q}else k=void 0;q=qj(b,6,0);t=Xb(l(b,
17));x=Ji(b,149,-1);y=Ub(b,K8b,232);if(null!=y){F=Ub(y,z_,1);if(null!=F){var K=q8b(a,F.getEvent()),J=s8b(a,Hl(F,q_,3,C8b)),R=Xb(Qs(F,4,C8b));var S=Hl(F,s_,2,A_);if(null!=S){var aa=Ji(S,1,-1),ba=Ji(S,11,-1);var ka=Ub(S,r_,15);if(null!=ka){var wa={baseList:Xb(Li(ka,1)),offset:Ji(ka,2,0)};a&&(wa.$jspbMessageInstance=ka);ka=wa}else ka=void 0;aa={veIndex:aa,nonArchivalVeIndex:ba,veOffsetIdentifier:ka,veType:Xb(l(S,2)),odelaySeLinker:Xb(l(S,8)),elementIndex:Ji(S,5,-1),resultIndex:Ji(S,6,-1),pageStart:Xb(l(S,
7)),resultGroupElementIndex:Ji(S,9,-1),doNotLogUrl:oj(S,10,!1),resultFprint:Xb(l(S,12)),veEventId:s8b(a,Ub(S,q_,13)),youtubeVeCounter:Ji(S,14,-1)};a&&(aa.$jspbMessageInstance=S);S=aa}else S=void 0;K={event:K,clientEvent:J,ei:R,rootVe:S,ved:Xb(Qs(F,5,A_))};a&&(K.$jspbMessageInstance=F);F=K}else F=void 0;F={reference:F};a&&(F.$jspbMessageInstance=y);y=F}else y=void 0;c={uiType:c,elementIndex:d,containsElementsList:e,targetUrl:f,resultIndex:h,featureTreeRef:k,visible:q,language:t,adImpressionIndex:x,
dataElement:y};Cba(b,c,N8b,a);a&&(c.$jspbMessageInstance=b);return c}};
var D_=function(a){Y.call(this,a,17,P8b)};X(D_,Y);g=D_.prototype;g.setVed=function(a){return m(this,11,a)};g.setUiType=function(a){return m(this,1,a)};g.setVeIndex=function(a){m(this,2,a)};g.getResultIndex=function(){return Ji(this,7,-1)};g.setResultIndex=function(a){m(this,7,a)};g.setElementIndex=function(a){m(this,8,a)};g.getImageUrl=function(){return l(this,9)};var Q8b=function(a,b){Mb(a,14,b)},P8b=[14];
var E_=function(a){Y.call(this,a,-1,R8b)};X(E_,Y);E_.prototype.getEventId=function(){return Ub(this,q_,1)};E_.prototype.setEventId=function(a){Vb(this,1,a)};var R8b=[2];
var S8b=function(){};S8b.prototype.createNewTag=function(a){return new o_(a)};S8b.prototype.addEventMetadata=function(){};
var F_=function(a){Y.call(this,a,-1,T8b)};X(F_,Y);var U8b=function(a,b){Mb(a,1,b)};F_.prototype.addPath=function(a,b){return rq(this,1,C_,a,b)};var T8b=[1];
var V8b=Tb(100,{coreGraftMetadata:0},F_,function(a,b){if(null!=b){var c={pathList:Wb(Nb(b,C_,1),O8b,a)};a&&(c.$jspbMessageInstance=b);return c}});
var G_=function(a){Y.call(this,a)};X(G_,Y);var W8b=function(a){var b=Date.now().toString();m(a,1,b)};
var H_=function(a){Y.call(this,a)};X(H_,Y);H_.prototype.getTimestamp=function(){return Ub(this,G_,1)};H_.prototype.setTimestamp=function(a){return Vb(this,1,a)};H_.prototype.hasTimestamp=function(){return vj(this,G_,1)};var X8b=function(a,b){if(null!=b){var c=b.getTimestamp();if(null!=c){var d={clientWallClockTimestamp:Xb(l(c,1))};a&&(d.$jspbMessageInstance=c);c=d}else c=void 0;c={timestamp:c};a&&(c.$jspbMessageInstance=b);return c}};
var Y8b=Tb(126,{coreInteractionMetadata:0},H_,X8b);
var Z8b=Tb(618,{coreVeMetadata:0},H_,X8b);N8b[618]=Z8b;
var gs=function(a,b,c){this.enableAncestryLogging_=void 0===a?!0:a;this.enableAncestryLoggingForGrafts_=void 0===c?!1:c;this.enableBatching_=void 0===b?!1:b};X(gs,u_);gs.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=$8b(this,c,b);b=this.enableBatching_?a9b(this,d,b):b9b(this,d,b);return a.concat(b)};
gs.prototype.interactionEvent=function(a,b){var c=new OE,d=new E_,e=w_();d.setEventId(e);e=new D_;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);Q8b(m(e,3,b.userAction),this.getAncestry_(a));a.getTag();this.setTimestamp(e);b=new y_;Vb(b,1,a.impressionEventID);Vb(d,3,a.impressionEventID);Vb(d,4,e);Vb(d,9,b);JSON.stringify(null,null,1);QE(c,d.serialize());return[c]};
gs.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 t=new F_;this.enableAncestryLoggingForGrafts_&&U8b(t,this.getAncestry_(f));if(f.neverShown||n8b(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new B_;h.setType(1);var x=c9b(f);h.setTarget(x);x=h;var y=Date.now();m(x,4,y);this.enableAncestryLoggingForGrafts_&&V8b.setExtensionFn(h,t);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||
h||(h=new B_,h.setType(2),x=c9b(f),h.setTarget(x),x=h,y=Date.now(),m(x,4,y),this.enableAncestryLoggingForGrafts_&&V8b.setExtensionFn(h,t),q.push(h),f.hidden=!0);d.set(k,q)}a=n(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new E8b,Mb(e,1,f),f=new E_,k=w_(),q=new y_,Vb(q,1,b),f.setEventId(k),Vb(f,3,b),Vb(f,7,e),Vb(f,9,q),b=new OE,JSON.stringify(null,null,1),QE(b,f.serialize()),c.push(b));return c};
gs.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=wUb(b,new uT(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var $8b=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={$jscomp$loop$prop$impressionEventID$1986:e.$jscomp$loop$prop$impressionEventID$1986,$jscomp$loop$prop$clientVeProto$1987:e.$jscomp$loop$prop$clientVeProto$1987,$jscomp$loop$prop$testCodes$1988:e.$jscomp$loop$prop$testCodes$1988},f--){e.$jscomp$loop$prop$clientVeProto$1987=new E_;e.$jscomp$loop$prop$testCodes$1988=[];e.$jscomp$loop$prop$impressionEventID$1986=w_();e.$jscomp$loop$prop$clientVeProto$1987.setEventId(e.$jscomp$loop$prop$impressionEventID$1986);
var h=new y_;Vb(h,1,e.$jscomp$loop$prop$impressionEventID$1986);Vb(e.$jscomp$loop$prop$clientVeProto$1987,9,h);if(h=lyb(window.location.href,"ved"))h=(new D_).setVed(h),Vb(e.$jscomp$loop$prop$clientVeProto$1987,4,h);b[f].forEach(function(k){return function(q,t){t.impressionEventID=k.$jscomp$loop$prop$impressionEventID$1986;t.rootImpressionEventID=k.$jscomp$loop$prop$impressionEventID$1986;var x=this.getVisualElementLiteProto_(t);q.length&&M8b(x,q);q=t.getElement();this.isVisible_(q,c)?(t.neverShown=
!1,t.hidden=!1):x.setVisible(1);this.setTimestamp(x);rq(k.$jscomp$loop$prop$clientVeProto$1987,2,C_,x);k.$jscomp$loop$prop$testCodes$1988=k.$jscomp$loop$prop$testCodes$1988.concat(t.getTag().testCodes_)}}(e),a);h=new OE;JSON.stringify(null,null,1);QE(h,e.$jscomp$loop$prop$clientVeProto$1987.serialize());Bb(h,20,e.$jscomp$loop$prop$testCodes$1988);d.push(h)}return d},a9b=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(t,x){var y=0,F=[],K=new E_,J=[],R=w_();K.setEventId(R);Vb(K,3,x);var S=new y_;Vb(S,1,x);Vb(K,9,S);for(S=0;S<t.length;S++)for(var aa=t[S],ba=aa.keys(),ka=ba.next().value,wa=aa.get(ka),Aa={},Ka=0;Ka<wa.length;Aa={$jscomp$loop$prop$startingOffset$1990:Aa.$jscomp$loop$prop$startingOffset$1990,$jscomp$loop$prop$cloneTreeRootIndex$1991:Aa.$jscomp$loop$prop$cloneTreeRootIndex$1991},++Ka){var Ja=ka;Aa.$jscomp$loop$prop$cloneTreeRootIndex$1991=0;Aa.$jscomp$loop$prop$startingOffset$1990=
wa[Ka];var Jb=aa.size;Ka!=wa.length-1&&(Jb=wa[Ka+1]);for(var ub=Aa.$jscomp$loop$prop$startingOffset$1990;ub<Jb;++ub){var fb=ba.next().value;ub==Aa.$jscomp$loop$prop$startingOffset$1990&&(Ja=fb,Aa.$jscomp$loop$prop$cloneTreeRootIndex$1991=y);fb.impressionEventID=R;fb.rootImpressionEventID=x;fb.traversalOrder_=y;var pa=aa.get(fb),xa=this.getVisualElementLiteProto_(fb);pa.length&&M8b(xa,pa.map(function(Ca){return function(Za){return Za-Ca.$jscomp$loop$prop$startingOffset$1990+Ca.$jscomp$loop$prop$cloneTreeRootIndex$1991}}(Aa)));
pa=fb.getElement();this.isVisible_(pa,c)?(fb.neverShown=!1,fb.hidden=!1):xa.setVisible(1);this.setTimestamp(xa);rq(K,2,C_,xa);J=J.concat(fb.getTag().testCodes_);y++}Jb=new B_;Jb.setType(3);ub=c9b(ka);Jb.setTarget(ub);ub=new z_;fb=new s_;xa=new F_;fb.setVeIndex(Ja.traversalOrder_);w8b(fb,Ja.getTag().visualElementID_);Dm(ub,2,A_,fb);Vb(Jb,3,ub);this.enableAncestryLoggingForGrafts_&&(U8b(xa,this.getAncestry_(Ja)),V8b.setExtensionFn(Jb,xa));F.push(Jb)}F.length&&(t=new E8b,Mb(t,1,F),Vb(K,7,t));F=new OE;
JSON.stringify(null,null,1);QE(F,K.serialize());Bb(F,20,J);d.push(F)},a);return d},b9b=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),t={},x=0;x<q.length;t={$jscomp$loop$prop$startingOffset$1993:t.$jscomp$loop$prop$startingOffset$1993},++x){t.$jscomp$loop$prop$startingOffset$1993=q[x];var y=f.size;x!=q.length-1&&(y=q[x+1]);var F=new E_,K=[],J=w_(),R=new y_;Vb(R,1,k.impressionEventID);F.setEventId(J);Vb(F,3,k.impressionEventID);m(F,5,3);Vb(F,
9,R);R=new D_;k.serverVed_?R.setVed(k.serverVed_):R.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);Q8b(R,a.getAncestry_(k));Vb(F,4,R);for(R=t.$jscomp$loop$prop$startingOffset$1993;R<y;++R){var S=h.next().value;S.impressionEventID=J;S.rootImpressionEventID=k.rootImpressionEventID;void 0!=S.traversalOrder_&&(S.traversalOrder_-=t.$jscomp$loop$prop$startingOffset$1993);var aa=f.get(S),ba=a.getVisualElementLiteProto_(S);aa.length&&M8b(ba,aa.map(function(ka){return function(wa){return wa-
ka.$jscomp$loop$prop$startingOffset$1993}}(t)));aa=S.getElement();a.isVisible_(aa,c)?(S.neverShown=!1,S.hidden=!1):ba.setVisible(1);a.setTimestamp(ba);rq(F,2,C_,ba);K=K.concat(S.getTag().testCodes_)}y=new OE;JSON.stringify(null,null,1);QE(y,F.serialize());Bb(y,20,K);d.push(y)}return d};gs.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};
gs.prototype.getVisualElementLiteProto_=function(a){var b=(new C_).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());o8b(a.getTag(),b);return b};var c9b=function(a){var b=new z_;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new s_;Dm(b,3,C8b,a.impressionEventID);c.setVeIndex(a.traversalOrder_);w8b(c,a.getTag().visualElementID_);Dm(b,2,A_,c)}return b};
gs.prototype.setTimestamp=function(a){if(a instanceof D_&&(!Ub(a,x_,15)||!Ub(a,x_,15).getExtension(Y8b))){var b=new H_,c=new G_,d=Ub(a,x_,15);d||(d=new x_);W8b(c);b.setTimestamp(c);Y8b.setExtensionFn(d,b);Vb(a,15,d)}a instanceof C_&&(b=new H_,c=new G_,W8b(c),b.setTimestamp(c),Z8b.setExtensionFn(a,b))};
var d9b=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 e9b=function(){},f9b=[[],[]],g9b=0,h9b=!1,i9b=null,j9b=0,k9b=0,l9b=0,I_=0,m9b=0,J_=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.context_=a;this.state_ctor_=e9b};J_.prototype.measure=function(a){this.measure_=a;return this};J_.prototype.mutate=function(a){this.mutate_=a;return this};J_.prototype.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
J_.prototype.build=function(){return n9b({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var n9b=function(a,b){var c=m9b++,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=g9b,!a.runInCurrentFrameIfPossible||0==I_||a.measure&&1!=I_||(h=(h+1)%2),f9b[h].push(f));return o9b()}},p9b=function(a,b){h9b=!1;var c={};I_=
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,fa(f)}}}I_=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){fa(f)}}0<j9b&&1<b&&(a=b-j9b,500>a&&(d9b++,100<a&&k9b++,l9b<a&&(l9b=a)));j9b=h9b&&1<b?b:0},o9b=function(){h9b||(h9b=!0,i9b=new Promise(function(a){window.requestAnimationFrame(function(b){var c=
f9b[g9b];g9b=(g9b+1)%2;try{p9b(c,b)}finally{I_=0,c.length=0}a()})}));return i9b};
var q9b=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},n_=function(a,b){var c=b.LSWHIf||null,d;!(d=c&&!c.getTag().isMutable())&&(d=c&&c.getTag().isMutable())&&(d=b.getAttribute("jslog"),d=!(!d||lj(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=r9b(a,d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new t_(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(zv.length){var f=zv.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new fob(c);try{var k=nba(x8b);var q=oba(new k.ctor,h,k);break b}finally{h.free()}q=void 0}e=Ub(q,q_,13)}catch(t){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},r9b=function(a,b){if(lj(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(!lj(f)){var h=ypb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(lj(f)||lj(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("ze");if(!j8b.has(k))throw Error("Ae`"+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)};q9b.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?JUa(a):a};
q9b.prototype.setComponentID=function(a){this.componentID_=a};q9b.prototype.getComponentID=function(){return this.componentID_};
var s9b=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},f8b=function(a,b){return t9b(a,b).filter(function(c){return null!=n_(this.visualElementProvider_,c)},a)},u9b=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={$jscomp$loop$prop$parent$1995:e.$jscomp$loop$prop$parent$1995},++f){var h=n_(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.$jscomp$loop$prop$parent$1995=void 0,NUa(b[f],function(k){return function(q){q=
n_(c,q);return null!=q?(k.$jscomp$loop$prop$parent$1995=q,!0):!1}}(e)),e.$jscomp$loop$prop$parent$1995?d&&d.has(e.$jscomp$loop$prop$parent$1995)||(d=new Map,a.unshift(d),d.set(e.$jscomp$loop$prop$parent$1995,[]),y8b=1):(d=new Map,a.unshift(d),y8b=0),z8b(h),h.setParent(e.$jscomp$loop$prop$parent$1995),d.set(h,[]),e.$jscomp$loop$prop$parent$1995&&d.get(e.$jscomp$loop$prop$parent$1995).push(h.traversalOrder_))}return a},v9b=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return n_(c,
d)})},t9b=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},y8b=0;
var w9b=function(a,b,c){OD.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};X(w9b,OD);g=w9b.prototype;g.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:this.doAction_()};g.stop=function(){this.timer_&&(Yt(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(){OD.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_=Xt(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};
var x9b=function(a,b){QD.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};X(x9b,QD);
var y9b=function(a){wp.call(this);this.domHelper_=a||zp();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=xp(this.domHelper_.document_,this.eventType_,bv(this.handleChange_,this))};ev(y9b,wp);g=y9b.prototype;g.getBrowserEventType_=Up(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((kv?"Webkit":jv?"Moz":hv?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=Up(function(){return vUb("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=Up(function(){return vUb("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new x9b(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){bE(this.eventKey_);y9b.superClass_.disposeInternal.call(this)};
var K_=function(a,b,c,d,e){var f=this,h=void 0===d?{}:d,k=void 0===h.backgroundJobDeferrer?void 0:h.backgroundJobDeferrer;d=void 0===h.expectXidTagComponents?!1:h.expectXidTagComponents;h=void 0===h.traverseShadowDom?!1:h.traverseShadowDom;ar.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new S8b;this.visualElementProvider_=new q9b(this.metadataHandler_,this.expectXidTagComponents_);this.transport_=c;this.maybeXidEventLabel_("generic_click");this.root_=this.domHelper_=
this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new y9b;this.logImpressionsTask_=(new J_(this)).measure(k?function(){return k().then(f.handleImpressions_.bind(f))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();new w9b(this.logImpressionsTask_,500,this);this.traverser_=new s9b(this.visualElementProvider_,h);this.impressionListeners_=[];this.eventBuilder_ instanceof u_&&(this.eventHandler_=this.eventBuilder_);this.zwiebackId_=e};ev(K_,ar);
K_.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};K_.prototype.log=function(a){this.transport_&&VE(this.transport_,a)};var z9b=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};K_.prototype.getIndex=function(a){return a.getTag().getIndex()};var A9b=function(a){return a.map(function(b){return b.getTag().visualElementID_})};g=K_.prototype;
g.getMetadata=function(a,b){var c=new C_;o8b(a.getTag(),c);for(a=0;a<b.length;++a)o8b(b[a].getTag(),c);return c};g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;NUa(a,function(d){if(!pE(d))return!1;d=n_(c,d);null!=d&&b.push(d);return!1});return b};
g.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=f8b(this.traverser_,this.root_);if(this.eventHandler_){var c=this.domHelper_.getViewportSize();c=new uT(0,
0,c.width,c.height);g8b(this,b,c);h8b(this,b,c);z9b(this)}else{c=[];var d=this.domHelper_.getViewportSize();d=new uT(0,0,d.width,d.height);for(var e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=n_(this.visualElementProvider_,f))&&n8b(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)if(d=c[b],!d.loggedImpression_){e=this.getAncestry_(d.getElement());var h=A9b(e);f=this.getIndex(d);var k=new c8b;k=m(k,4);var q=d.getTag().visualElementID_;k=m(k,1,q);h=Bb(k,3,h);null!=f&&h.setElementIndex(f);
f=new A8b;f.ve_metadata=this.getMetadata(d,e);f.global_metadata=this.invariantData_;f.client_info=this.appInfo_;e=h;e=PE(new OE,e.serialize());e=Bb(e,20,f.testCodes);this.transport_&&VE(this.transport_,e);z9b(this);d.loggedImpression_=!0}}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
g.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return"true"==a.getAttribute("ve-visible");a=a.getBoundingClientRect();return(b=wUb(b,new uT(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?HUa(a):a};
var g8b=function(a,b,c){b=u9b(a.traverser_,b);if(b.length)for(c=a.eventHandler_.impressionEvent(b,c),b=0;b<c.length;++b)a.metadataHandler_.addEventMetadata(c[b]),m(c[b],28,a.zwiebackId_),a.transport_&&VE(a.transport_,c[b])},h8b=function(a,b,c){b=v9b(a.traverser_,b);c=a.eventHandler_.visibilityEvent(b,c);if(c.length)for(b=0;b<c.length;++b)a.metadataHandler_.addEventMetadata(c[b]),a.zwiebackId_&&m(c[b],28,a.zwiebackId_),a.transport_&&VE(a.transport_,c[b])};
var hs=function(a,b,c,d,e,f,h,k,q,t){e=void 0===e?!1:e;q=void 0===q?!1:q;b=k?k:new HRb(b,c,d,void 0,void 0,void 0,f);K_.call(this,a,h||null,b,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:q},t);this.clearcut_=b;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0};ev(hs,K_);hs.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};
hs.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};hs.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};
var Xr=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=Xr.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.clone=function(){var a=new Xr;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.primingTimeoutMillis_=this.primingTimeoutMillis_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;return a};
var kt=function(a){Y.call(this,a)};X(kt,Y);var L_=function(a,b){return m(a,1,b)};kt.prototype.getProvenance=function(){return qj(this,2,0)};kt.prototype.setProvenance=function(a){return m(this,2,a)};kt.prototype.getCode=function(){return qj(this,3,0)};kt.prototype.setCode=function(a){return m(this,3,a)};
var M_=function(a){Y.call(this,a)};X(M_,Y);M_.prototype.getSource=function(){return Ub(this,kt,1)};M_.prototype.setSource=function(a){return Vb(this,1,a)};M_.prototype.hasSource=function(){return vj(this,kt,1)};var N_=function(a,b){return m(a,2,b)},O_=function(a,b){return m(a,3,b)};
var B9b=function(){this.filter_=null};B9b.prototype.getFilter=function(){return this.filter_};B9b.prototype.setFilter=function(a){this.filter_=a;return this};
var C9b=function(a){Y.call(this,a)};X(C9b,Y);g=C9b.prototype;g.getEnd=function(){return Ji(this,2,0)};g.setEnd=function(a){return m(this,2,a)};g.getTotalItems=function(){return Ji(this,3,0)};g.setTotalItems=function(a){return m(this,3,a)};g.getCode=function(){return qj(this,4,2)};g.setCode=function(a){return m(this,4,a)};g.getCacheState=function(){return Ub(this,M_,5)};g.setCacheState=function(a){return Vb(this,5,a)};g.hasCacheState=function(){return vj(this,M_,5)};
var D9b=function(a,b){this.results_=a;this.metadata_=b};D9b.prototype.getResults=function(){return this.results_};D9b.prototype.getMetadata=function(){return this.metadata_};
var E9b=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=E9b.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 E9b).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};
var F9b=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new M_};g=F9b.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 G9b=function(a,b){this.results_=a;this.metadata_=b};G9b.prototype.getResults=function(){return this.results_};G9b.prototype.getMetadata=function(){return this.metadata_};
var P_=function(a){Y.call(this,a)};X(P_,Y);g=P_.prototype;g.getQuery=function(){return Pi(this,1,"")};g.setQuery=function(a){return m(this,1,a)};g.clearQuery=function(){qv(this,1)};g.hasQuery=function(){return Oi(this,1)};g.getIsFirstCallback=function(){return oj(this,2,!1)};g.setIsFirstCallback=function(a){return m(this,2,a)};g.getIsLastCallback=function(){return oj(this,3,!1)};g.setIsLastCallback=function(a){return m(this,3,a)};g.setCallbackNumber=function(a){return m(this,4,a)};
g.getNextPageToken=function(){return Pi(this,5,"")};g.getCode=function(){return qj(this,6,2)};g.setCode=function(a){return m(this,6,a)};g.getCacheState=function(){return Ub(this,M_,7)};g.setCacheState=function(a){return Vb(this,7,a)};g.hasCacheState=function(){return vj(this,M_,7)};
var Q_=function(a,b){this.results_=a;this.metadata_=b};Q_.prototype.getResults=function(){return this.results_};Q_.prototype.getMetadata=function(){return this.metadata_};
var H9b={create:function(a,b,c,d,e){e=void 0===e?new Xr:e;return PUa(a,b,c,d,new S5b,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return PUa(a,b,c,d,new S5b,e)},createConfig:function(a){return new Q7b(a)}};
var $s=function(a){Y.call(this,a)};X($s,Y);g=$s.prototype;g.getTimestamp=function(){return Aj(this,1)};g.setTimestamp=function(a){return m(this,1,a)};g.hasTimestamp=function(){return zj(this,1)};g.getAffinityVersion=function(){return Ji(this,2)};g.setAffinityVersion=function(a){m(this,2,a)};g.getTotalItems=function(){return Ji(this,3)};g.setTotalItems=function(a){return m(this,3,a)};g.getNextPageToken=function(){return Pi(this,4)};
var R_=function(){this.bits_=[]};g=R_.prototype;g.and=function(a){for(var b=new R_,c=n(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 R_,c=n(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=n(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};R_.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 nVa=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),pVa=/^[<"']|[>"']$/g,ks=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"),I9b=/[^a-z0-9]+/gi,oVa=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};
var J9b=function(a,b){this.key=a;this.terms=qVa(b)};
var S_=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new R_:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};S_.prototype.cloneNode=function(a){for(var b=[],c=n(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new S_(b)};
S_.prototype.getMatches=function(a){for(var b=[],c=n(this.prefix_?this.matchIndices_:sVa(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};
S_.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=n(h.prefix_?h.matchIndices_:sVa(h.items_.length)),q=k.next();!q.done;q=k.next()){var t=h;q=q.value;for(var x=t.prefix_+"\ufdc7",y=n(t.items_[q].terms),F=y.next();!F.done;F=y.next())F=F.value,F.length<=t.prefix_.length||F<t.prefix_||F>x||(F=F.charAt(t.prefix_.length),t.childNodes_[F]||(t.childNodes_[F]=new S_(t.items_,t.prefix_+F)),t.childNodes_[F].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||T_;if(d===T_)break}return d}).reduce(function(c,d){return c.and(d)}):this};var K9b=function(a){a.isExpanded_=!1;for(var b=n(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&K9b(c)};S_.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new S_(this.items_,"\u2026",a)};S_.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new S_(this.items_,"\u2026",a)};var T_=new S_([]);
T_.isExpanded_=!0;
var U_=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};U_.prototype.getExpiry=function(){return this.expiry_};U_.prototype.getValue=function(){return this.value_};U_.prototype.isExpired=function(){return this.expiry_<Date.now()};U_.prototype.isStale=function(){return this.stale_<Date.now()};
var L9b=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=L9b.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=n(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=n(this.items_),c=b.next();!c.done;c=b.next()){var d=n(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var M9b=function(){var a=new L9b(function(){return 1E3<a.size()});return a};
var N9b=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new L9b(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=N9b.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 V_=function(a,b){return new N9b(a,function(c){var d=Date.now()+b;return new U_(d,c,d)})};
var W_=function(a){Y.call(this,a,-1,O9b)};X(W_,Y);g=W_.prototype;g.getCacheSize=function(){return Ji(this,3,500)};g.setCacheSize=function(a){m(this,3,a)};g.hasCacheSize=function(){return nj(this,3)};g.getCacheStaleSec=function(){return Jl(this,4,86400)};g.getCacheExpiredSec=function(){return Jl(this,5,1209600)};g.getRpcTimeoutSec=function(){return Jl(this,12,60)};var O9b=[24,25];
var uVa=new Set([10,11]);
var P9b=function(a){this.interleaveGroups_=oj(a,33,!1)},X_=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=vVa(d,e,f,!0);break a;default:d=wVa(d,e,f)}}return d}).map(function(d){return String(d.id)})};
var Q9b=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new P9b(e);this.indexes_=V_(Ji(e,8,250),1E3*Jl(e,9,3600));this.maxResults_=Ji(e,2,5)};g=Q9b.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d;return Pe(function(e){switch(e.nextAddress){case 1:c=L_(new kt,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(L_(c,!1));Qe(e,2);return Re(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;Wu(e,3);break;case 2:return Ue(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new $s),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.canSkipFetch_=function(a){return a.isSuggestQuery()||this.indexes_.has(a.getPrefix())?!0:!1};g.index=function(a,b){var c=X_(this.ranker_,b,1);b=n(b);for(var d=b.next();!d.done;d=b.next())d=d.value,this.targetFactory_.processItem(d),this.storage_.store(1,d);c=Y_(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)};g.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector())};
var R9b=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};R9b.prototype.getStageType=function(){return 2};R9b.prototype.index_=function(a,b){for(var c=n(a),d=c.next();!d.done;d=c.next())this.targetFactory_.processItem(d.value);S9b(this.indexer_,a,b)};
R9b.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,t,x;return Pe(function(y){switch(y.nextAddress){case 1:return c=new Map,d=L_(new kt,!0).setProvenance(7).setCode(0),e=3===a.queryScope(),f=T9b(a),Qe(y,2),Re(y,b.adapter_.lookup(f),4);case 4:h=y.yieldResult;Wu(y,3);break;case 2:return Ue(y),d.setCode(13),a.notify(c,[],d),y.return();case 3:b.index_(h,e);k=n(f);for(q=k.next();!q.done;q=k.next())t=q.value,(x=b.indexer_.load(t,a.getFormat(),a.getResultFilter(),!0,!1,a.getOptions().useOriginalDisplayValue_))&&
c.set(t,x);a.notify(c,[],d);Ve(y)}})};
var U9b=function(a,b){this.metrics_=a;this.state_=new QS(b);this.source=b;this.label_="total"};U9b.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};U9b.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};
var V9b=function(a,b){this.metrics_=a;this.state_=new QS(b);this.source=b};V9b.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};
var W9b=function(a,b){this.metrics_=a;this.state_=new QS(b);this.source=b};W9b.prototype.report=function(){this.metrics_.error(this.state_)};
var Z_=function(a){Y.call(this,a)};X(Z_,Y);g=Z_.prototype;g.getClientInterface=function(){return Ub(this,zS,1)};g.setClientInterface=function(a){return Vb(this,1,a)};g.getEventType=function(){return l(this,3)};g.setEventType=function(a){return m(this,3,a)};g.getCacheStatus=function(){return Ub(this,X9b,12)};g.setCacheStatus=function(a){return Vb(this,12,a)};g.getCount=function(){return Ub(this,Y9b,4)};g.setCount=function(a){return Vb(this,4,a)};g.getLatency=function(){return Ub(this,a0,5)};
g.setLatency=function(a){return Vb(this,5,a)};g.getError=function(){return Ub(this,b0,6)};g.setError=function(a){Vb(this,6,a)};g.hasError=function(){return vj(this,b0,6)};g.setRpcRequest=function(a){return Vb(this,7,a)};g.setRpcResponse=function(a){return Vb(this,8,a)};g.setApiCall=function(a){return Vb(this,9,a)};g.setApiResult=function(a){return Vb(this,10,a)};var X9b=function(a){Y.call(this,a)};X(X9b,Y);var Y9b=function(a){Y.call(this,a)};X(Y9b,Y);g=Y9b.prototype;
g.getDataSource=function(){return l(this,3)};g.setDataSource=function(a){return m(this,3,a)};g.hasDataSource=function(){return nj(this,3)};g.getType=function(){return l(this,4)};g.setType=function(a){return m(this,4,a)};g.hasType=function(){return nj(this,4)};g.getValue=function(){return Aj(this,2,1)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return zj(this,2)};g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};
g.hasLabel=function(){return Oi(this,1)};var a0=function(a){Y.call(this,a)};X(a0,Y);g=a0.prototype;g.getType=function(){return l(this,3)};g.setType=function(a){return m(this,3,a)};g.hasType=function(){return nj(this,3)};g.setLatencyUsec=function(a){m(this,2,a)};g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return Oi(this,1)};var b0=function(a){Y.call(this,a)};X(b0,Y);g=b0.prototype;g.setStatusCode=function(a){m(this,5,a)};
g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return Oi(this,1)};g.getCause=function(){return l(this,2)};g.getType=function(){return l(this,3)};g.setType=function(a){return m(this,3,a)};g.hasType=function(){return nj(this,3)};var c0=function(a){Y.call(this,a)};X(c0,Y);c0.prototype.getLabel=function(){return l(this,1)};c0.prototype.setLabel=function(a){return m(this,1,a)};c0.prototype.hasLabel=function(){return nj(this,1)};
var Z9b=function(a){Y.call(this,a)};X(Z9b,Y);g=Z9b.prototype;g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return nj(this,1)};g.getStatus=function(){return l(this,2)};g.setStatus=function(a){return m(this,2,a)};g.hasStatus=function(){return nj(this,2)};g.setLatencyUsec=function(a){m(this,3,a)};g.getErrorCode=function(){return l(this,4)};g.setStatusCode=function(a){m(this,7,a)};g.setBlockedUsec=function(a){return m(this,8,a)};
var Is=function(a){Y.call(this,a)};X(Is,Y);var $9b=function(a){Y.call(this,a)};X($9b,Y);g=$9b.prototype;g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};g.hasLabel=function(){return nj(this,1)};g.getItemCount=function(){return l(this,2)};g.setItemCount=function(a){return m(this,2,a)};g.hasItemCount=function(){return nj(this,2)};g.getLookupInfo=function(){return Ub(this,Is,3)};g.setLookupInfo=function(a){return Vb(this,3,a)};
g.hasLookupInfo=function(){return vj(this,Is,3)};g.getQueryLength=function(){return l(this,4)};g.setQueryLength=function(a){return m(this,4,a)};g.hasQueryLength=function(){return nj(this,4)};g.getQueryScope=function(){return qj(this,5,0)};g.setQueryScope=function(a){return m(this,5,a)};g.hasQueryScope=function(){return nj(this,5)};var a$b=function(a){Y.call(this,a)};X(a$b,Y);g=a$b.prototype;g.getLabel=function(){return l(this,1)};g.setLabel=function(a){return m(this,1,a)};
g.hasLabel=function(){return nj(this,1)};g.getStatus=function(){return l(this,2)};g.setStatus=function(a){return m(this,2,a)};g.hasStatus=function(){return nj(this,2)};g.setLatencyUsec=function(a){m(this,3,a)};g.getResultIndex=function(){return l(this,4)};g.setResultIndex=function(a){m(this,4,a)};g.getDataSource=function(){return l(this,7)};g.setDataSource=function(a){return m(this,7,a)};g.hasDataSource=function(){return nj(this,7)};g.getItemCount=function(){return l(this,8)};
g.setItemCount=function(a){return m(this,8,a)};g.hasItemCount=function(){return nj(this,8)};g.getLookupInfo=function(){return Ub(this,Is,10)};g.setLookupInfo=function(a){return Vb(this,10,a)};g.hasLookupInfo=function(){return vj(this,Is,10)};g.setStatusCode=function(a){m(this,11,a)};g.getQueryLength=function(){return l(this,13)};g.setQueryLength=function(a){return m(this,13,a)};g.hasQueryLength=function(){return nj(this,13)};g.getQueryScope=function(){return qj(this,14,0)};
g.setQueryScope=function(a){return m(this,14,a)};g.hasQueryScope=function(){return nj(this,14)};
var Hs=function(a){Y.call(this,a)};X(Hs,Y);Hs.prototype.getEventType=function(){return qj(this,1,0)};Hs.prototype.setEventType=function(a){return m(this,1,a)};var Js=function(a,b){return m(a,2,b)},ZVa=function(a,b){return m(a,3,b)};g=Hs.prototype;g.getErrorType=function(){return qj(this,6,0)};g.setErrorType=function(a){return m(this,6,a)};g.getIdType=function(){return qj(this,8,0)};g.setIdType=function(a){m(this,8,a)};g.getResultIndex=function(){return Ji(this,9,0)};
g.setResultIndex=function(a){m(this,9,a)};g.getToken=function(){return Pi(this,10,"")};g.setToken=function(a){return m(this,10,a)};g.getCacheState=function(){return Ub(this,M_,11)};g.setCacheState=function(a){return Vb(this,11,a)};g.hasCacheState=function(){return vj(this,M_,11)};g.getQueryLength=function(){return l(this,14)};g.setQueryLength=function(a){return m(this,14,a)};g.hasQueryLength=function(){return nj(this,14)};g.getItemCount=function(){return l(this,15)};
g.setItemCount=function(a){return m(this,15,a)};g.hasItemCount=function(){return nj(this,15)};g.getLookupInfo=function(){return Ub(this,Is,16)};g.setLookupInfo=function(a){return Vb(this,16,a)};g.hasLookupInfo=function(){return vj(this,Is,16)};g.getQueryScope=function(){return l(this,17)};g.setQueryScope=function(a){return m(this,17,a)};g.hasQueryScope=function(){return nj(this,17)};
var b$b=function(a,b){this.delegate_=a;this.trackers_=b};b$b.prototype.search=function(a){var b=this,c,d;return Pe(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Qe(e,2,3),Re(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Se(e);c.stop();Te(e,0);break;case 2:throw d=Ue(e),b.trackers_.error(36,11).report(),d;}})};
b$b.prototype.lookup=function(a){var b=this,c,d;return Pe(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Qe(e,2,3),Re(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Se(e);c.stop();Te(e,0);break;case 2:throw d=Ue(e),b.trackers_.error(37,11).report(),d;}})};
var c$b=function(a,b){this.delegate_=a;this.trackers_=b};c$b.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
c$b.prototype.warmUpCache=function(){var a=this,b,c;return Pe(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Qe(d,2,3),Re(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Se(d);b.stop();Te(d,0);break;case 2:throw c=Ue(d),a.trackers_.error(35,11).report(),c;}})};c$b.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
var d$b=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new P9b(e);this.index_=T_};g=d$b.prototype;g.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};g.flush=function(){this.index_=T_};
g.fetch=function(a){var b=this,c,d;return Pe(function(e){switch(e.nextAddress){case 1:c=L_(new kt,!0).setProvenance(7).setCode(0);if(b.index_!=T_&&!b.adapter_.needsWarmUp())return e.return(L_(c,!1));Qe(e,2);return Re(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;Wu(e,3);break;case 2:return Ue(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new $s),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.index=function(a,b){a=X_(this.ranker_,b,1);b=n(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.targetFactory_.processItem(c),this.storage_.store(1,c);this.index_=Y_(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 d0=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};d0.prototype.getErrorType=function(){return this.errorType_};
var e0=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=e0.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 e$b=function(){},f$b=function(a){var b=[];a=n(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=n(c.getTargetList()),h=f.next();!h.done;h=f.next())h=zVa(c,h.value,7),e.push(String(h.id)),h.coalescedKeys=e,d||(d=h),b.push(h);d&&Pr(d.id)&&(e=void 0,d.totalMemberCount=null!=(e=c.getTotalMemberCount())?e:void 0,d.memberKeys=c.getMemberList().map(function(k){for(var q=n(k.getTargetList()).next();!q.done;)return k=zVa(k,q.value,8),b.push(k),String(k.id)}))}return b},g$b=function(a){a=
a.getResultList();return f$b(a)};
var f0=function(a){Y.call(this,a)};X(f0,Y);f0.prototype.getQuery=function(){return Pi(this,2,"")};f0.prototype.setQuery=function(a){return m(this,2,a)};f0.prototype.clearQuery=function(){qv(this,2)};f0.prototype.hasQuery=function(){return Oi(this,2)};
var h$b=function(a,b){this.provider_=a;this.itemFactory_=b};h$b.prototype.search=function(a,b){var c=this,d;return Pe(function(e){if(1==e.nextAddress){if(1>b)e=e.return([]);else{var f=c.provider_,h=f.search;var k=(new f0).setQuery(a);k=m(k,1,b);e=Re(e,h.call(f,k),2)}return e}d=e.yieldResult;return e.return(g$b(d))})};h$b.prototype.lookup=function(a){var b=this,c;return Pe(function(d){if(1==d.nextAddress)return a.length?Re(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(g$b(c))})};
var i$b=function(a,b){this.provider_=a;this.itemFactory_=b};i$b.prototype.getPosition=function(){return this.provider_.getPosition()};i$b.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};i$b.prototype.warmUpCache=function(){var a=this,b;return Pe(function(c){if(1==c.nextAddress)return Re(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(g$b(b))})};
var j$b=new d0(68,69,38);
var k$b=function(){};k$b.prototype.processItem=function(){};var l$b=new k$b;
var qs=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=qs.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 m$b=function(){this.iconUrl_=this.altText_=""},DVa=function(a){var b=new m$b;b.altText_=a||"";return b};m$b.prototype.getIconUrl=function(){return this.iconUrl_};m$b.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};
var n$b=function(a){this.delegate_=a};n$b.prototype.processItem=function(a){a.target=FVa(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};
var o$b=function(){};
o$b.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 e$b;var t=void 0===t?l$b:t;t=new n$b(t);for(var x=[],y=n(k.staticDataProviders_.reverse()),F=y.next();!F.done;F=y.next()){var K=F=F.value;K=new c$b(K,c);K=new d$b(new i$b(K,q),t,f,d,b);K=new e0(K,c,j$b);switch(F.getPosition()){case 1:x.push(K);break;case 2:h.push(K);break;default:throw Error("Be");
}}x.length&&h.splice.apply(h,[0,0].concat(r(x)));k=n(k.dynamicDataProviders_);for(x=k.next();!x.done;x=k.next())y=x=x.value,y=new b$b(y,c),y=new Q9b(new h$b(y,q),t,f,d,b),y=new e0(y,c,j$b),h.push(y),x=new b$b(x,c),a.push(new R9b(new h$b(x,q),t,e))}};
var g0=function(a){Y.call(this,a,-1,p$b)};X(g0,Y);g0.prototype.getEnableClearcut=function(){return oj(this,1,!1)};g0.prototype.setEnableClearcut=function(a){return m(this,1,a)};g0.prototype.getSocialApplication=function(){return qj(this,2,0)};var p$b=[5,6];
var h0=function(a){Y.call(this,a)};X(h0,Y);h0.prototype.getApplication=function(){return qj(this,1,0)};h0.prototype.setApplication=function(a){return m(this,1,a)};h0.prototype.getApplicationOrUndefined=function(){return uv(this,1)};h0.prototype.getIsEnabled=function(){return oj(this,2,!1)};
var i0=function(a){Y.call(this,a)};X(i0,Y);i0.prototype.getApiKey=function(){return Pi(this,1,"")};i0.prototype.setApiKey=function(a){return m(this,1,a)};
var j0=function(a){Y.call(this,a,-1,q$b)};X(j0,Y);j0.prototype.getClientId=function(){return Pi(this,1,"CLIENT_UNSPECIFIED")};j0.prototype.setClientId=function(a){return m(this,1,a)};j0.prototype.getAffinityType=function(){return Pi(this,4,"AFFINITY_TYPE_UNKNOWN")};j0.prototype.setAffinityType=function(a){return m(this,4,a)};var q$b=[7,8];
var r$b=function(a){Y.call(this,a)};X(r$b,Y);g=r$b.prototype;g.getClient=function(){return Ub(this,W_,1)};g.setClient=function(a){return Vb(this,1,a)};g.hasClient=function(){return vj(this,W_,1)};g.getGapi=function(){return Ub(this,i0,2)};g.getPeopleApi=function(){return Ub(this,j0,3)};g.getClearcut=function(){return Ub(this,g0,4)};g.setClearcut=function(a){Vb(this,4,a)};g.hasClearcut=function(){return vj(this,g0,4)};g.getExperiments=function(){return Ub(this,h0,5)};
g.setExperiments=function(a){Vb(this,5,a)};g.hasExperiments=function(){return vj(this,h0,5)};
var s$b=function(a){Y.call(this,a,1)};X(s$b,Y);
var t$b=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]},u$b=function(a){var b=new t$b;b.dynamicDataProviders_=a;return b};
var w$b=function(a){Y.call(this,a,-1,v$b)};X(w$b,Y);g=w$b.prototype;g.getExperimentIdsList=function(){return Li(this,1)};g.setExperimentIdsList=function(a){return Bb(this,1,a)};g.getProfileId=function(){return l(this,2)};g.getProfileId_legacyNullable=function(){return l(this,2)};g.setProfileId=function(a){return m(this,2,a)};g.hasProfileId=function(){return Oi(this,2)};var v$b=[1];
var x$b=function(){},y$b=function(){return!1},z$b=function(){this.experiments_=new w$b;this.peopleApiEnv_=4;this.delegatorId_="";this.onAuthError_=x$b;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=y$b;this.customDataConfig_=null;this.isOrgStateEnabled_=!1};g=z$b.prototype;g.getUserEmail=function(){return""};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.getApiKey=function(){return this.apiKey_};g.setApiKey=function(a){this.apiKey_=a;return this};var A$b=function(a,b){a.customDataConfig_=b};
var k0=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new z$b;a=this.getPeopleApi();Li(a,7).length||Bb(a,7,[2,8,1,7,10,11]);Ki(a,8).length||Xl(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=n(Ki(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":Gb(a,8,c+".metadata.verified")}};k0.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new W_);return this.delegate_.getClient()};
k0.prototype.getGapi=function(){if(!vj(this.delegate_,i0,2)){var a=this.delegate_,b=new i0;Vb(a,2,b)}return this.delegate_.getGapi()};k0.prototype.getPeopleApi=function(){if(!vj(this.delegate_,j0,3)){var a=this.delegate_,b=new j0;Vb(a,3,b)}return this.delegate_.getPeopleApi()};k0.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new g0);return this.delegate_.getClearcut()};
var B$b=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new h0);return a.delegate_.getExperiments()};k0.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var C$b=function(a){a=a.getClient();return Ji(a,6,500)?Math.min(Math.round(Ji(a,6,500)/4),500):500};
var et=null;
var D$b=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};D$b.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};
var l0=function(a){Y.call(this,a)};X(l0,Y);l0.prototype.getDescription=function(){return l(this,6)};l0.prototype.setDescription=function(a){return m(this,6,a)};l0.prototype.hasDescription=function(){return Oi(this,6)};
var E$b=function(a){Y.call(this,a)};X(E$b,Y);
var zs=function(a){Y.call(this,a,5)};X(zs,Y);g=zs.prototype;g.getIsPlaceholder=function(){return As(this,2)};g.setIsPlaceholder=function(a){m(this,2,a)};g.getContactId=function(){return l(this,4)};g.setContactId=function(a){m(this,4,a)};g.hasContactId=function(){return zj(this,4)};
var F$b={},G$b=function(a,b){if(null!=b){var c=Ub(b,l0,1);if(null!=c){var d=Xb(l(c,4)),e=Xb(l(c,1)),f=Xb(l(c,2)),h=Xb(l(c,3)),k=Xb(l(c,5)),q=Xb(l(c,6)),t=Xb(l(c,7));var x=Ub(c,nob,8);if(null!=x){var y=Hl(x,oob,1,qob);if(null!=y){var F={};a&&(F.$jspbMessageInstance=y);y=F}else y=void 0;F=Hl(x,pob,2,qob);if(null!=F){var K=F.getCustomerId();if(null!=K){var J={customerId:Xb(l(K,1))};a&&(J.$jspbMessageInstance=K);K=J}else K=void 0;K={customerId:K};a&&(K.$jspbMessageInstance=F);F=K}else F=void 0;y={consumerInfo:y,
customerInfo:F};a&&(y.$jspbMessageInstance=x);x=y}else x=void 0;d={entityType:d,presence:e,memberCount:f,avatarUrl:h,developerName:k,description:q,dndState:t,organizationInfo:x};a&&(d.$jspbMessageInstance=c);c=d}else c=void 0;d=Xb(As(b,2));e=Ub(b,E$b,3);null!=e?(f={actorId:Xb(l(e,1)),subtitle:Xb(l(e,2))},a&&(f.$jspbMessageInstance=e),e=f):e=void 0;c={dynamiteExtendedData:c,isPlaceholder:d,paisaExtendedData:e,contactId:Xb(l(b,4))};Cba(b,c,F$b,a);a&&(c.$jspbMessageInstance=b);return c}};
var TVa=Tb(417869898,{clientSpecificData:0},zs,G$b);
var Cs=function(a){Y.call(this,a)};X(Cs,Y);var H$b=function(a,b){if(null!=b){var c={grammaticalGender:Xb(l(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var PVa=Tb(417866180,{peopleStackFieldData:0},Cs,H$b);
var I$b=function(a){Y.call(this,a)};X(I$b,Y);g=I$b.prototype;g.getIdCase=function(){return ym(this,m0)};g.getProfileId=function(){return Pi(this,rm(this,m0,1))};g.setProfileId=function(a){return um(this,1,m0,a)};g.hasProfileId=function(){return null!=Qs(this,1,m0)};g.getEmail=function(){return Pi(this,rm(this,m0,2))};g.setEmail=function(a){return um(this,2,m0,a)};g.hasEmail=function(){return null!=Qs(this,2,m0)};g.getPhone=function(){return Pi(this,rm(this,m0,3))};
g.setPhone=function(a){return um(this,3,m0,a)};g.hasPhone=function(){return null!=Qs(this,3,m0)};var m0=[1,2,3],J$b=function(a,b){if(null!=b){var c={profileId:Xb(Qs(b,1,m0)),email:Xb(Qs(b,2,m0)),phone:Xb(Qs(b,3,m0))};a&&(c.$jspbMessageInstance=b);return c}};
var Fs=function(a){Y.call(this,a,-1,K$b)};X(Fs,Y);Fs.prototype.getHiddenKeysList=function(){return Nb(this,I$b,3)};var K$b=[3],L$b=function(a,b){if(null!=b){var c={hideType:Xb(l(b,1)),hiddenKeysList:Wb(b.getHiddenKeysList(),J$b,a),familyStatus:Xb(l(b,2)),birthdayStatus:Xb(l(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var UVa=Tb(417869137,{peopleStackPersonData:0},Fs,L$b);
var M$b=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},RVa=function(a){if(!a)return 0;a=Array.from(a).map(M$b);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};
var GVa=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 n0=function(a){Y.call(this,a)};X(n0,Y);g=n0.prototype;g.getLoggingId=function(){return Ms(this,1)};g.setLoggingId=function(a){m(this,1,jb(a,!1))};g.getValue=function(){return iu(this,2)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return nj(this,2)};var N$b=function(a,b){if(null!=b){var c={loggingId:Eba(b.getLoggingId()),value:Xb(iu(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var O$b=function(a){Y.call(this,a)};X(O$b,Y);g=O$b.prototype;g.getValue=function(){return l(this,1)};g.setValue=function(a){return m(this,1,a)};g.hasValue=function(){return Oi(this,1)};g.getGivenName=function(){return l(this,2)};g.setGivenName=function(a){return m(this,2,a)};g.hasGivenName=function(){return Oi(this,2)};g.getFamilyName=function(){return l(this,3)};g.setFamilyName=function(a){return m(this,3,a)};g.hasFamilyName=function(){return Oi(this,3)};
g.getSourceType=function(){return l(this,4)};g.setSourceType=function(a){return m(this,4,a)};
var P$b=function(a){Y.call(this,a)};X(P$b,Y);g=P$b.prototype;g.getUrl=function(){return l(this,1)};g.setUrl=function(a){return m(this,1,a)};g.hasUrl=function(){return Oi(this,1)};g.getType=function(){return l(this,2)};g.setType=function(a){return m(this,2,a)};g.hasType=function(){return nj(this,2)};g.getGlyph=function(){return l(this,3)};g.setGlyph=function(a){return m(this,3,a)};
var o0=function(a){Y.call(this,a)};X(o0,Y);g=o0.prototype;g.getPhoto=function(){return Ub(this,P$b,1)};g.setPhoto=function(a){Vb(this,1,a)};g.hasPhoto=function(){return vj(this,P$b,1)};g.getName=function(){return Ub(this,O$b,2)};g.setName=function(a){return Vb(this,2,a)};g.hasName=function(){return vj(this,O$b,2)};g.getAffinity=function(){return Ub(this,n0,3)};g.hasAffinity=function(){return vj(this,n0,3)};g.getPrimary=function(){return As(this,4)};
var Q$b=function(a,b){if(null!=b){var c=b.getPhoto();if(null!=c){var d={url:Xb(l(c,1)),type:Xb(l(c,2)),glyph:Xb(l(c,3))};a&&(d.$jspbMessageInstance=c);c=d}else c=void 0;d=b.getName();if(null!=d){var e={value:Xb(l(d,1)),givenName:Xb(l(d,2)),familyName:Xb(l(d,3)),sourceType:Xb(l(d,4))};a&&(e.$jspbMessageInstance=d);d=e}else d=void 0;c={photo:c,name:d,affinity:N$b(a,b.getAffinity()),primary:Xb(As(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var p0=function(a){Y.call(this,a)};X(p0,Y);
var q0=function(a){Y.call(this,a,-1,R$b)};X(q0,Y);q0.prototype.getApplication=function(){return qj(this,1,0)};q0.prototype.setApplication=function(a){return m(this,1,a)};q0.prototype.getApplicationOrUndefined=function(){return uv(this,1)};var Ls=function(a){Y.call(this,a)};X(Ls,Y);Ls.prototype.getState=function(){return l(this,2)};var R$b=[2],S$b=function(a,b){if(null!=b){var c={contextType:Xb(l(b,1)),state:Xb(l(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var r0=function(a){Y.call(this,a,-1,T$b)};X(r0,Y);r0.prototype.getValue=function(){return l(this,1)};r0.prototype.setValue=function(a){return m(this,1,a)};r0.prototype.hasValue=function(){return Oi(this,1)};var s0=function(a){Y.call(this,a)};X(s0,Y);s0.prototype.getStatus=function(){return l(this,2)};s0.prototype.setStatus=function(a){return m(this,2,a)};s0.prototype.hasStatus=function(){return nj(this,2)};
var T$b=[2],U$b=function(a,b){if(null!=b){var c={expirationTimestampSeconds:Xb(l(b,1)),status:Xb(l(b,2)),configurationName:Xb(l(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var ts=function(a){Y.call(this,a)};X(ts,Y);g=ts.prototype;g.getProfileId=function(){return l(this,1)};g.getProfileId_legacyNullable=function(){return l(this,1)};g.setProfileId=function(a){return m(this,1,a)};g.hasProfileId=function(){return Oi(this,1)};g.getEmail=function(){return Qs(this,2,ws)};g.setEmail=function(a){return um(this,2,ws,a)};g.hasEmail=function(){return null!=Qs(this,2,ws)};g.getPhone=function(){return Qs(this,3,ws)};g.setPhone=function(a){return um(this,3,ws,a)};
g.hasPhone=function(){return null!=Qs(this,3,ws)};var ws=[2,3];
var t0=function(a){Y.call(this,a)};X(t0,Y);t0.prototype.getDisplayValue=function(){return l(this,1)};t0.prototype.getOriginalValue=function(){return l(this,3)};
var ys=function(a){Y.call(this,a)};X(ys,Y);g=ys.prototype;g.getIdCase=function(){return ym(this,u0)};g.getProfileId=function(){return Qs(this,1,u0)};g.getProfileId_legacyNullable=function(){return Qs(this,1,u0)};g.setProfileId=function(a){return um(this,1,u0,a)};g.hasProfileId=function(){return null!=Qs(this,1,u0)};g.getContactId=function(){return Qs(this,2,u0)};g.setContactId=function(a){um(this,2,u0,a)};g.hasContactId=function(){return null!=Qs(this,2,u0)};
var u0=[1,2],V$b=function(a,b){if(null!=b){var c={profileId:Xb(Qs(b,1,u0)),contactId:Xb(Qs(b,2,u0))};a&&(c.$jspbMessageInstance=b);return c}};
var Gs=function(a){Y.call(this,a,-1,W$b)};X(Gs,Y);g=Gs.prototype;g.getValueCase=function(){return ym(this,us)};g.getDisplayInfo=function(){return Ub(this,o0,1)};g.hasDisplayInfo=function(){return vj(this,o0,1)};g.getEmail=function(){return Hl(this,r0,2,us)};g.setEmail=function(a){return Dm(this,2,us,a)};g.hasEmail=function(){return un(this,r0,2,us)};g.getPhone=function(){return Hl(this,t0,3,us)};g.setPhone=function(a){return Dm(this,3,us,a)};g.hasPhone=function(){return un(this,t0,3,us)};
g.getIsSelf=function(){return As(this,6)};g.getTypeLabel=function(){return l(this,10)};
var W$b=[5],us=[2,3,4],X$b=function(a,b){if(null!=b){var c=Q$b(a,b.getDisplayInfo());var d=b.getEmail();if(null!=d){var e=Xb(l(d,1)),f=Wb(Nb(d,s0,2),U$b,a);var h=Ub(d,p0,3);if(null!=h){var k={smtpServerSupportsTls:Xb(As(h,1)),usesConfusingCharacters:Xb(As(h,2))};a&&(k.$jspbMessageInstance=h);h=k}else h=void 0;k=Ub(d,q0,4);if(null!=k){var q={application:qj(k,1,0),stateStatusList:Wb(Nb(k,Ls,2),S$b,a)};a&&(q.$jspbMessageInstance=k);k=q}else k=void 0;e={value:e,certificatesList:f,securityInfo:h,internalExternal:k};
a&&(e.$jspbMessageInstance=d);d=e}else d=void 0;e=b.getPhone();null!=e?(f={displayValue:Xb(l(e,1)),canonicalValue:Xb(l(e,2)),originalValue:Xb(l(e,3))},a&&(f.$jspbMessageInstance=e),e=f):e=void 0;f=Hl(b,ts,4,us);null!=f?(h={profileId:Xb(l(f,1)),email:Xb(Qs(f,2,ws)),phone:Xb(Qs(f,3,ws))},a&&(h.$jspbMessageInstance=f),f=h):f=void 0;c={displayInfo:c,email:d,phone:e,inAppTarget:f,sourceIdsList:Wb(Nb(b,ys,5),V$b,a),isSelf:Xb(As(b,6)),isGoogleGroup:Xb(As(b,7)),isPersonal:Xb(As(b,8)),peopleStackFieldExtendedData:H$b(a,
Ub(b,Cs,9)),typeLabel:Xb(l(b,10)),isBlocked:Xb(As(b,11))};a&&(c.$jspbMessageInstance=b);return c}};
var v0=function(a){Y.call(this,a,-1,Y$b)};X(v0,Y);v0.prototype.getDisplayInfo=function(){return Ub(this,o0,1)};v0.prototype.hasDisplayInfo=function(){return vj(this,o0,1)};v0.prototype.getMembersList=function(){return Nb(this,Gs,2)};v0.prototype.getLabelId=function(){return l(this,3)};var Y$b=[2];
var $$b=function(a){Y.call(this,a,-1,Z$b)};X($$b,Y);$$b.prototype.getHiddenKeysList=function(){return Nb(this,I$b,3)};var Z$b=[3];
var w0=function(a){Y.call(this,a,-1,aac)};X(w0,Y);w0.prototype.getAffinity=function(){return Ub(this,n0,2)};w0.prototype.hasAffinity=function(){return vj(this,n0,2)};
var aac=[1],bac=function(a,b){if(null!=b){var c=N$b(a,b.getAffinity()),d=Wb(Nb(b,Gs,1),X$b,a),e=G$b(a,Ub(b,zs,3));var f=Ub(b,$$b,4);if(null!=f){var h={hideType:Xb(l(f,1)),hiddenKeysList:Wb(f.getHiddenKeysList(),J$b,a),familyStatus:Xb(l(f,2))};a&&(h.$jspbMessageInstance=f);f=h}else f=void 0;c={affinity:c,contactMethodsList:d,clientSpecificData:e,peopleStackExtendedData:f,peopleStackPersonExtendedData:L$b(a,Ub(b,Fs,5))};a&&(c.$jspbMessageInstance=b);return c}};
var dac=function(a){Y.call(this,a,-1,cac)};X(dac,Y);var cac=[2];
var Ps=function(a){Y.call(this,a)};X(Ps,Y);Ps.prototype.getIdCase=function(){return ym(this,Rs)};var Rs=[1],eac=function(a,b){if(null!=b){var c={rosterEmail:Xb(Qs(b,1,Rs))};a&&(c.$jspbMessageInstance=b);return c}};
var fac=function(a){Y.call(this,a)};X(fac,Y);
var hac=function(a){Y.call(this,a,-1,gac)};X(hac,Y);g=hac.prototype;g.getDisplayInfo=function(){return Ub(this,o0,1)};g.hasDisplayInfo=function(){return vj(this,o0,1)};g.getMembersList=function(){return Nb(this,w0,2)};g.getGroupId=function(){return l(this,4)};g.setGroupId=function(a){m(this,4,a)};g.hasGroupId=function(){return Oi(this,4)};var gac=[2,6];
var x0=function(a){Y.call(this,a)};X(x0,Y);x0.prototype.getGroup=function(){return Hl(this,hac,2,y0)};x0.prototype.setGroup=function(a){Dm(this,2,y0,a)};
var y0=[1,2,3],iac=function(a,b){if(null!=b){var c=bac(a,Hl(b,w0,1,y0));var d=b.getGroup();if(null!=d){var e=Q$b(a,d.getDisplayInfo()),f=Wb(d.getMembersList(),bac,a),h=Xb(l(d,3)),k=Xb(l(d,4)),q=Xb(l(d,5)),t=Wb(Nb(d,Ps,6),eac,a);var x=Ub(d,fac,7);if(null!=x){var y=Ub(x,Cj,1);if(null!=y){var F={seconds:Aj(y,1),nanos:Ji(y,2)};a&&(F.$jspbMessageInstance=y);y=F}else y=void 0;y={endtimeUtc:y};a&&(y.$jspbMessageInstance=x);x=y}else x=void 0;y=Ub(d,dac,8);null!=y?(F={creator:bac(a,Ub(y,w0,1)),ownersList:Wb(Nb(y,
w0,2),bac,a)},a&&(F.$jspbMessageInstance=y),y=F):y=void 0;e={displayInfo:e,membersList:f,fullGroupSize:h,groupId:k,groupType:q,groupAlternateIdList:t,groupEndtime:x,groupAdministration:y};a&&(e.$jspbMessageInstance=d);d=e}else d=void 0;e=Hl(b,v0,3,y0);null!=e?(f={displayInfo:Q$b(a,e.getDisplayInfo()),membersList:Wb(e.getMembersList(),X$b,a),labelId:Xb(l(e,3))},a&&(f.$jspbMessageInstance=e),e=f):e=void 0;c={person:c,group:d,contactLabel:e};a&&(c.$jspbMessageInstance=b);return c}};
var Ks=function(a){Y.call(this,a)};X(Ks,Y);g=Ks.prototype;g.getIdCase=function(){return ym(this,z0)};g.getEmail=function(){return Qs(this,1,z0)};g.setEmail=function(a){return um(this,1,z0,a)};g.hasEmail=function(){return null!=Qs(this,1,z0)};g.getPhone=function(){return Qs(this,2,z0)};g.setPhone=function(a){return um(this,2,z0,a)};g.hasPhone=function(){return null!=Qs(this,2,z0)};g.getProfileId=function(){return Qs(this,3,z0)};g.getProfileId_legacyNullable=function(){return Qs(this,3,z0)};
g.setProfileId=function(a){return um(this,3,z0,a)};g.hasProfileId=function(){return null!=Qs(this,3,z0)};var z0=[1,2,3];
var A0=function(a){Y.call(this,a,-1,jac)};X(A0,Y);A0.prototype.getAffinityVersion=function(){return l(this,1)};A0.prototype.setAffinityVersion=function(a){m(this,1,a)};A0.prototype.getAffinityType=function(){return l(this,4)};A0.prototype.setAffinityType=function(a){return m(this,4,a)};var kac=function(a){Y.call(this,a)};X(kac,Y);var jac=[3],lac=function(a,b){if(null!=b){var c={featureType:qj(b,1,0),weight:Jl(b,2,0),exponent:Jl(b,3,1)};a&&(c.$jspbMessageInstance=b);return c}};
var B0=function(a){Y.call(this,a,-1,mac)};X(B0,Y);var mac=[1];
var oac=function(a){Y.call(this,a,-1,nac)};X(oac,Y);var pac=function(a){Y.call(this,a)};X(pac,Y);pac.prototype.getId=function(){return Ub(this,Ks,1)};pac.prototype.setId=function(a){return Vb(this,1,a)};var nac=[1],qac=[2,3];
var rac=function(a){this.leanResponseProcessorConfig_=a},sac=function(a,b,c){switch(ym(b,y0)){case 1:return VVa(Hl(b,w0,1,y0),c,a.leanResponseProcessorConfig_);case 2:return WVa(b.getGroup(),c,a.leanResponseProcessorConfig_);case 3:return YVa(Hl(b,v0,3,y0),c);default:return[]}},tac=function(a,b,c){return Nb(b,x0,1).flatMap(function(d){return sac(a,d,c)})};
var aWa=new Map([[0,1],[1,2],[2,3],[3,4]]);
var C0=function(a){Y.call(this,a)};X(C0,Y);C0.prototype.setDevice=function(a){return m(this,1,a)};
var uac=function(a){Y.call(this,a)};X(uac,Y);g=uac.prototype;g.getAffinityType=function(){return l(this,1)};g.setAffinityType=function(a){return m(this,1,a)};g.getQuery=function(){return l(this,2)};g.setQuery=function(a){return m(this,2,a)};g.clearQuery=function(){qv(this,2)};g.hasQuery=function(){return Oi(this,2)};g.setClientInformation=function(a){Vb(this,3,a)};
var vac=new DF("/peoplestack.PeopleStackAutocompleteService/Autocomplete",uac,B0,function(a){return a.serialize()},function(a){return Oo(B0,a)});
var wac=function(a){Y.call(this,a)};X(wac,Y);g=wac.prototype;g.getAffinityType=function(){return l(this,1)};g.setAffinityType=function(a){return m(this,1,a)};g.setClientInformation=function(a){Vb(this,2,a)};g.getName=function(){return l(this,3)};g.setName=function(a){return m(this,3,a)};g.hasName=function(){return Oi(this,3)};g.getNameOrUndefined=function(){return vv(this,3)};
var D0=function(a){Y.call(this,a)};X(D0,Y);D0.prototype.getGroup=function(){return Ub(this,hac,1)};D0.prototype.setGroup=function(a){Vb(this,1,a)};
var xac=new DF("/peoplestack.PeopleStackAutocompleteService/CreateGroup",wac,D0,function(a){return a.serialize()},function(a){return Oo(D0,a)});
var E0=function(a){Y.call(this,a,-1,yac)};X(E0,Y);E0.prototype.getAffinityType=function(){return l(this,1)};E0.prototype.setAffinityType=function(a){return m(this,1,a)};E0.prototype.setClientInformation=function(a){Vb(this,2,a)};var zac=function(a,b){Mb(a,3,b)},yac=[3];
var Aac=new DF("/peoplestack.PeopleStackAutocompleteService/Lookup",E0,oac,function(a){return a.serialize()},function(a){return Oo(oac,a)});
var F0=function(a){Y.call(this,a)};X(F0,Y);F0.prototype.getAffinityType=function(){return l(this,1)};F0.prototype.setAffinityType=function(a){return m(this,1,a)};F0.prototype.setClientInformation=function(a){Vb(this,2,a)};
var Bac=function(a){Y.call(this,a)};X(Bac,Y);
var Cac=new DF("/peoplestack.PeopleStackAutocompleteService/Warmup",F0,Bac,function(a){return a.serialize()},function(a){return Oo(Bac,a)});
var Dac=function(a){var b={unaryInterceptors:[new W6b]};b=b||{};b.format="jspb";this.client_=new lG(b);this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};Dac.prototype.autocomplete=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},vac)};Dac.prototype.lookup=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Aac)};
Dac.prototype.createGroup=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},xac)};
var G0=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;e?a=$Va(e):(a=new Hs,ZVa(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=qj(c.getPeopleApi(),5,0)};G0.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};G0.prototype.send=function(a){var b=new uac;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new C0).setDevice(1));return this.grpcClient_.autocomplete(b,a)};
G0.prototype.processResponse=function(a){var b=tac(this.leanResponseProcessor_,a,this.provenance_),c=new $s;vj(a,A0,2)&&c.setAffinityVersion(Ub(a,A0,2).getAffinityVersion());return{data:b,metadata:c}};G0.prototype.close=function(){};
var H0=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;a=new Hs;ZVa(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=qj(c.getPeopleApi(),5,0)};H0.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};
H0.prototype.send=function(a){var b=this,c=new E0;c.setAffinityType(this.affinity_).setClientInformation((new C0).setDevice(1));zac(c,this.keys_.map(function(d){return gWa(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
H0.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=n(Nb(a,pac,1));for(var e=a.next();!e.done;e=a.next())if(e=e.value,un(e,x0,2,qac)){var f=sac(b,Hl(e,x0,2,qac),c);switch(e.getId().getIdCase()){case 1:d.set(e.getId().getEmail(),f);break;case 2:d.set(e.getId().getPhone(),f);break;case 3:d.set(e.getId().getProfileId(),f)}}return{data:d,metadata:new $s}};H0.prototype.close=function(){};
var Eac=function(a){Y.call(this,a)};X(Eac,Y);
var Fac=Tb(342338249,{leanOfflineData:0},Eac,function(a,b){if(null!=b){var c=Ub(b,B0,1);if(null!=c){var d=Wb(Nb(c,x0,1),iac,a);var e=Ub(c,A0,2);if(null!=e){var f={affinityVersion:Xb(l(e,1)),affinityThreshold:Xb(iu(e,2)),featureList:Wb(Nb(e,kac,3),lac,a),affinityType:Xb(l(e,4))};a&&(f.$jspbMessageInstance=e);e=f}else e=void 0;d={resultsList:d,affinityResponseContext:e};a&&(d.$jspbMessageInstance=c);c=d}else c=void 0;c={leanAutocomplete:c};a&&(c.$jspbMessageInstance=b);return c}});
var Gac=function(){};Gac.prototype.write=function(a,b){var c=new Eac;b=Vb(c,1,b);Fac.setExtensionFn(a,b)};Gac.prototype.read=function(a){return(a=a.getExtension(Fac))?Ub(a,B0,1):null};
var I0=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=$Va("");this.trackers_=c;this.affinity_=qj(b.getPeopleApi(),5,0)};I0.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};I0.prototype.send=function(a){var b=new F0;b.setAffinityType(this.affinity_).setClientInformation((new C0).setDevice(1));var c=this.grpcClient_;return mG(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Cac)};
I0.prototype.processResponse=function(){return{data:[],metadata:new $s}};I0.prototype.close=function(){};
var Hac=new xzb;
var J0=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};J0.prototype.send=function(a){var b=this;return Pe(function(c){return b.runtimeConfig_.isOffline_()?c.return(Hac):c.return(b.delegate_.send(a))})};J0.prototype.getMetric=function(){return this.delegate_.getMetric()};J0.prototype.processResponse=function(a){return a===Hac?this.offlineResponse_:this.delegate_.processResponse(a)};J0.prototype.close=function(a){this.delegate_.close(a)};
var Iac={data:[],metadata:m(new $s,5,!0)},Jac={data:new Map,metadata:m(new $s,5,!0)};m(new $s,5,!0);m(new $s,5,!0);
var Kac=function(a){Y.call(this,a)};X(Kac,Y);g=Kac.prototype;g.getTimestamp=function(){return Aj(this,1)};g.setTimestamp=function(a){return m(this,1,a)};g.hasTimestamp=function(){return zj(this,1)};g.getOwner=function(){return Pi(this,2)};g.setOwner=function(a){return m(this,2,a)};var Lac=Tb(342656659,{metadata:0},Kac,function(a,b){if(null!=b){var c={timestamp:Xb(l(b,1)),owner:Xb(l(b,2))};a&&(c.$jspbMessageInstance=b);return c}});
var K0=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null},Mac=function(a){var b,c;return Pe(function(d){if(1==d.nextAddress)return Qe(d,2),Re(d,a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Lac);c=a.offlineMetadata_?Q5b(a.offlineMetadata_.getOwner()):xs;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):
d.return(null)}Ue(d);return d.return(null)})};
K0.prototype.send=function(a){var b=this,c,d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:return Qe(k,2),Re(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Hac){k.jumpTo(5);break}return Re(k,Mac(b),6);case 6:return e=k.yieldResult,k.return(e||Hac);case 5:return setTimeout(function(){var q=new s$b;Ds(q,Lac,(new Kac).setTimestamp(d).setOwner(String(b.owner_)));b.offlineDataTransformer_.write(q,c);b.offlineStorage_.store(q)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=
Ue(k),Re(k,Mac(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};K0.prototype.getMetric=function(){return this.delegate_.getMetric()};K0.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};K0.prototype.close=function(a){this.delegate_.close(a)};
var Nac=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(7===b.runtimeConfig_.getPeopleApiEnv()?Pi(b.getGapi(),2,""):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new X6b(b);b=rDa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Dac(b);this.offlineDataTransformer_=
new Gac;a=oj(a.getClient(),22,!1);this.leanResponseProcessor_=new rac({allowEmptyTargets:a})};g=Nac.prototype;
g.loadRankedItems=function(){var a=new G0(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new J0(a,this.config_.runtimeConfig_,Iac);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=ss(e),b=Ji(b.getPeopleApi(),14,5E3),a=new K0(a,d,c,e,b))}return c_(this.dispatcher_,a)};
g.warmUpServer=function(){var a=new I0(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new J0(a,this.config_.runtimeConfig_,Iac);return c_(this.dispatcher_,a)};g.loadAutocompleteItems=function(a){a=a.getPrefix();a=new G0(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a);a=new J0(a,this.config_.runtimeConfig_,Iac);return c_(this.dispatcher_,a)};
g.loadLookupItems=function(a,b){a=new H0(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new J0(a,this.config_.runtimeConfig_,Jac);return c_(this.dispatcher_,a)};g.loadContactItems=function(){};
var hWa=new Map([[1,1],[2,2]]);
var kWa=new Map([[3,3],[1,2],[2,1]]),Oac=new Map([[2,1],[4,2],[3,3],[1,4]]),Pac=function(a){this.delegate_=a};
Pac.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=ps(a.id).setValue(c);if(Nb(b,s0,2).length||vj(b,p0,3)){var d=1;if(Nb(b,s0,2).length){var e=Nb(b,s0,2)[0];l(e,1);d=Oac.get(e.getStatus())||d}vj(b,p0,3)&&(e=Ub(b,p0,3),As(e,1));4===(void 0===d?1:d)&&Date.now()}vj(b,q0,4)&&(b=iWa(Ub(b,q0,4)),c.orgState_=b);As(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getDisplayValue()||l(b,2)||"";b=ps(a.id).setValue(b);break;case 4:b=Hl(a.contactMethod,ts,4,us);b=mWa(a,b);break;default:b=ps(a.id||xs)}b.setDataSource(a.dataSource||0);a.containerIds&&(b.sourceIds_=a.containerIds||[]);BVa(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(jWa(Dba(Ms(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&lWa(b,a.contactMethod.getDisplayInfo());Oi(a.contactMethod,10)&&CVa(b,[DVa(a.contactMethod.getTypeLabel())]);a.target=b}else a.group?
nWa(a,a.group.getDisplayInfo()):a.contactLabel&&nWa(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 Qac=function(a,b){this.metrics_=a;this.state_=new QS(b)};g=Qac.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();m(d,13,b)}c&&(b=this.state_.source(),m(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};
var L0=function(a){this.metrics_=a};L0.prototype.error=function(a,b){var c=this.metrics_,d=new Hs;a=d.setEventType(3).setErrorType(a);m(a,7,b);return new W9b(c,d)};L0.prototype.latency=function(a){var b=this.metrics_,c=new Hs,d=c.setEventType(2);m(d,5,a);return new d_(b,c)};L0.prototype.count=function(a){var b=this.metrics_,c=new Hs,d=c.setEventType(1);m(d,4,a);return new V9b(b,c)};var M0=function(a,b){return new U9b(a.metrics_,b)};L0.prototype.rpc=function(a){return new Qac(this.metrics_,a)};
var Rac=function(a,b){this.ranker_=new P9b(a.getClient());this.loader_=new Nac(a,b);b=l$b;b=void 0===b?l$b:b;this.targetFactory_=new D$b(a,new Pac(b))};
var Sac=function(){this.cacheConfigurators_=[];this.grpcClient_=null};
var oWa=function(a){this.delegate_=a};X(oWa,QZ);
var Tac=function(a){this.keys_=new Set(a)};Tac.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};Tac.prototype.isDone=function(){return!this.keys_.size};
var Uac=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new Tac(a)};Uac.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};Uac.prototype.isDone=function(){return this.delegate_.isDone()};var Vac=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};
var Wac=new kt,Xac=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=V_(Ji(c,31,5),1E3*Jl(c,32,3600))};g=Xac.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return Pe(function(h){if(1==h.nextAddress){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return h.return(Wac);d=c.ids.map(function(k){if(O5b.includes(Q5b(k).getType()))return k;var q=N0(b.itemResolver_,k);return q?String(q.id):k});e=new Uac(d);return Re(h,Yac(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=h.yieldResult;b.indexes_.set(c.cacheKey,f);return h.return(Wac)})};
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)||T_).search(a.getTerms()).getMatches(a.getCollector()).map(pWa)};g.index=function(){};
var Zac=new d0(60,61,34);
var $ac=function(){};$ac.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();oj(a,30,!1)&&(b=new Xac(b,d,a),c=new e0(b,c,Zac),e.unshift(c))};
var abc=function(){return Date.now()},bbc=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=bbc.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_()};
var rWa=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),qWa=new Map([[1,7],[2,5]]);
var cbc=function(a,b){this.delegate_=a;this.extendedData_=b};X(cbc,QZ);cbc.prototype.getExtendedData=function(){return this.extendedData_};
var dbc=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=Qr(this.group_.getId())?this.members_.length:c;this.resultType_=b6b.get(this.group_.getTargetType())||0};g=dbc.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("me");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return a6b};g.getExtendedData=function(){return null};
var ebc=function(a){this.delegate_=a};g=ebc.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 tWa=function(a,b){this.delegate_=a;this.loggingToken_=b};X(tWa,ebc);tWa.prototype.getLoggingToken=function(){return this.loggingToken_};
var fbc=function(a){this.itemResolver_=a};fbc.prototype.create=function(a,b){var c=this,d=Q5b(a);a=N0(this.itemResolver_,a);if(!a)return null;if(Pr(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 N0(c.itemResolver_,h)}).filter(Boolean):[a];return gbc(f,d,b)};
var gbc=function(a,b,c){var d=[],e=0,f=null,h=null;a=n(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,t=q.getId().equals(b);if(!e||t)e=q.getResultType();q=uWa(q,k.provenance,c);t?(h=void 0,f=null!=(h=k.totalMemberCount)?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=er(e,d,f);return h?new cbc(b,h):b};
fbc.prototype.createGroup=function(a,b,c){c=uWa(a.target,a.provenance,c);var d,e=null!=(d=a.totalMemberCount)?d:null;b=new dr(new dbc(c,null!=b?b:[],null!=e?e:null));return(a=a.resultExtendedData)?new cbc(b,a):b};
var vWa=[1,2,3,4,5,6,9,7,8],hbc=function(a,b){this.targetFactory_=a;this.resultFactory_=new fbc(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?abc:d;this.expiry_=new bbc(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=V_(Ji(b,6,500),1E3*Ji(b,7,43200));this.idTypes_=new Set(Li(b,25))};hbc.prototype.load=function(a,b){var c;return null!=(c=this.resultFactory_.create(a,b))?c:null};
var N0=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};g=hbc.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.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};
g.store=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?"":d;if(!this.idTypes_.size||!O5b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),h=(b.containerIds||[]).map(String),k=ibc(this,a,f);jbc(this,a,f,b,c)&&(k(f,b),e=!0);h=n(h);for(var q=h.next();!q.done;q=h.next())q=q.value,jbc(this,a,q,b,c)&&(k(q,b),e=!0);b.isMe&&(h=String(P5b),jbc(this,a,h,b,c)&&(k(h,b),e=!0));d&&f!==d&&jbc(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var jbc=function(a,b,c,d,e){var f=N0(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?!0:f.id.equals(d.id)?xWa(d)&&!xWa(f)||kbc(a,f)<kbc(a,d)||wWa(d)<wWa(f)||18===d.id.getType()&&18===f.id.getType()?!0:!1:String(d.id)===c},kbc=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},ibc=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 lbc=function(a){this.qos=a};lbc.prototype.getIndex=function(){return String(this.qos)};var mbc=new lbc(1),nbc=new lbc(2);
var obc=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},qbc=function(a){if(a.isCompleted_)return Promise.resolve(L_(new kt,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){pbc(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
obc.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var pbc=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,nbc).then(function(e){if(b!==a.requestId_)d(L_(new kt,!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);e=n(e.data);for(f=e.next();!f.done;f=e.next())a.storage_.store(1,f.value);a.nextPageToken_?pbc(a,b,c,d):(a.totalItems_=a.contacts_.length,c(L_(new kt,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?
e:13;d(L_(new kt,!0).setProvenance(5).setCode(e))})};
obc.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(),L_(new kt,!1).setProvenance(5).setCode(0)):qbc(this).then(function(q){d(k(),q)},function(q){q instanceof kt||(q=(new kt).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};
var zWa=function(a,b){this.delegate_=a;this.displayValue_=b};X(zWa,ebc);zWa.prototype.getDisplayValue=function(){return this.displayValue_};
var Vs=function(a,b){this.delegate_=a;this.targets_=b};X(Vs,QZ);Vs.prototype.getTargetList=function(){return this.targets_};
var rbc=function(a,b,c,d){this.format=b;this.listener=c;this.options=d;this.notFoundIds=new Map;this.callbackNumber=0;this.remainingIds=new Map(a.map(function(e){return[String(e),e]}))};g=rbc.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 T9b=function(a){return Array.from(a.remainingIds.values())};
rbc.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||0!==c.getCode()){a=AWa(a,this.options);for(var d=n(a.keys()),e=d.next();!e.done;e=d.next())this.remainingIds.delete(String(e.value));d=n(b);for(e=d.next();!e.done;e=d.next()){e=e.value;var f=String(e);this.notFoundIds.set(f,e);this.remainingIds.delete(f)}d=(new F9b).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode());d.notFoundIdList_=b;b=new G9b(a,
d);this.callbackNumber++;this.listener(b,c)}};
var sbc=function(a,b){this.stages=a;this.indexer=b};sbc.prototype.flush=function(){this.indexer.flush()};
sbc.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,t,x;return Pe(function(y){switch(y.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new rbc(a,b,c,d),k=new Set,1!==h.queryScope()&&2!==h.queryScope()||k.add(2),3===h.queryScope()&&k.add(1),q=n(e.stages),t=q.next();case 2:if(t.done){y.jumpTo(4);break}x=t.value;if(h.isDone()||h.isCancelled()){y.jumpTo(4);break}if(k.has(x.getStageType())){y.jumpTo(3);break}return Re(y,x.lookup(h),3);case 3:t=q.next();y.jumpTo(2);break;case 4:return h.isDone()||
h.notify(new Map,T9b(h),L_((new kt).setProvenance(10),!1).setCode(0)),e.indexer.compact(),y.return()}})};
var tbc=function(a,b){this.delegate_=a;this.name_=b};X(tbc,ebc);tbc.prototype.getName=function(){return this.name_};
var O0=function(){};O0.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 dr(new Vs(a,c))};O0.prototype.reset=function(){};
var Ws=function(a){this.types_=a};X(Ws,O0);Ws.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};Ws.prototype.reset=function(){};var CWa=function(a){this.sourceIds_=a.filter(function(b){return yVa.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return O5b.includes(b.getType())}).map(String)};X(CWa,O0);CWa.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 EWa=function(a){this.filters_=a};EWa.prototype.filterResult=function(a){for(var b=n(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};EWa.prototype.reset=function(a){for(var b=n(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var ubc=Xs();
var vbc=function(){};vbc.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!a.isEmailAddress())return null;b=ps(ss(b)).setValue(b).setDataSource(3);b=er(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};vbc.prototype.createFromLookupId=function(a){if(1!==a.getType()||!H5b(a.getValue()))return null;a=ps(a).setValue(a.getOriginalValue()).setDataSource(3);return er(a.getResultType(),[a],null)};
var wbc=function(){};wbc.prototype.createFromQuery=function(){return null};wbc.prototype.createFromLookupId=function(){return null};var xbc=new wbc;
var P0=function(a,b){this.storage=a;a=b.getClient();this.placeholderFactory=oj(a,21,!1)?new vbc:xbc;this.notFoundIds=V_(Ji(a,10,500),1E3*Jl(a,11,600))};P0.prototype.compact=function(){this.notFoundIds.compact()};P0.prototype.flush=function(){this.notFoundIds.clear()};P0.prototype.store=function(a,b,c,d){if(!oj(c,5))for(m(c,5,!0),b=n(b),c=b.next();!c.done;c=b.next()){var e=n(c.value);c=e.next().value;e=e.next().value;c=String(ms(a,String(c)));S9b(this,e,d,c)}};
var S9b=function(a,b,c,d){c&&(b=b.reverse());b=n(b);for(var e=b.next();!e.done;e=b.next())a.storage.store(2,e.value,c,d)};P0.prototype.load=function(a,b,c,d,e,f){var h=String(a);b=this.storage.load(h,b);f&&b&&(b=DWa(a).filterResult(b));e&&!b&&(b=this.placeholderFactory.createFromLookupId(a));return b?c?c.filterResult(b):b:(d||this.notFoundIds.set(h,h),null)};
var ybc={ids:[],cacheKey:"",primingTimeoutMillis:0};
var zbc=function(){};zbc.prototype.loadOrSkip=function(){return null};zbc.prototype.resultCount=function(){return 0};zbc.prototype.isDone=function(){return!0};var Abc=new zbc;
var Bbc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Abc;this.boostKey_=ybc;this.listener_=function(){}};g=Bbc.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 Cbc=new Bbc;
var Dbc=function(){this.fetchDone_=Promise.resolve((new kt).setCode(0))};g=Dbc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var Ebc=new Dbc;
var Fbc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||Ebc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
Fbc.prototype.prefetch=function(a){var b=this,c,d,e,f,h;return Pe(function(k){if(1==k.nextAddress)return Re(k,b.primary_.fetch(a),2);if(3!=k.nextAddress){c=k.yieldResult;if(0!==c.getCode())return k.return(c);d=n(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?Re(k,Promise.all(h),3):k.jumpTo(3)}return k.return(c)})};
Fbc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new kt).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});2!==a.queryScope()&&c.push.apply(c,r(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Gbc=function(a){var b=[a.primary_].concat(r(a.prefetched_.filter(function(d){return d!==a.primary_})),r(a.lazyLoaded_)).reverse();b=n(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Hbc=function(a,b){var c=[];a=n(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,r(d.search(b)))}return c},Jbc=function(a,b,c){var d,e,f,h;return Pe(function(k){if(1==k.nextAddress){if(2===b.queryScope())return k.return();d=a.lazyLoaded_[a.lazyLoaded_.length-
1];e=n(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():Re(k,Ibc(h,b,c,d===h),3)}f=e.next();return k.jumpTo(2)})},Ibc=function(a,b,c,d){var e,f;return Pe(function(h){if(1==h.nextAddress)return 1===b.queryScope()?(e=L_((new kt).setProvenance(6).setCode(0),!1),h.jumpTo(2)):Re(h,a.fetch(b),3);2!=h.nextAddress&&(e=h.yieldResult);if(b.isCancelled())return h.return();f=a.search(b);c(f,e,d);Ve(h)})};
var Kbc=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=Kbc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
g.warmUpCache=function(){Q0(this,Cbc);return this.cacheWarming_&&this.storage_.getExpiry().isExpired()?this.cacheWarming_:Promise.resolve(O_(N_((new M_).setSource(L_(new kt,!1).setProvenance(1).setCode(0)),R0(this)),R0(this)))};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:c=N_(new M_,R0(b));Q0(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return Re(k,b.cacheWarming_,2);case 2:return Qe(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),Re(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new kt).setProvenance(2).setCode(0),k.return(O_(c.setSource(e),R0(b)));case 5:Se(k);b.sessionWarming_=
null;Te(k,0);break;case 4:return f=Ue(k),h=f instanceof kt?f:(new kt).setProvenance(2).setCode(13),k.return(Promise.reject(O_(c.setSource(h),R0(b))))}})};
g.search=function(a){var b=this,c,d,e,f,h;return Pe(function(k){switch(k.nextAddress){case 1:Lbc(b);Qe(k,2);d=R0(b);Q0(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 Re(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return Re(k,b.sessionWarming_,4);case 4:return c||(c=O_(N_((new M_).setSource(L_(new kt,!1).setProvenance(1).setCode(0)),d),R0(b)),Q0(b,
a)),Re(k,Mbc(b,a,c),10);case 10:Wu(k,0);break;case 2:f=Ue(k);if(a.isCancelled())return k.return();f instanceof M_?c=f:(h=f instanceof kt?f:(new kt).setCode(13),O_(c.setSource(h),R0(b)));a.getListener()(new Q_([],(new P_).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));Ve(k)}})};
var Mbc=function(a,b,c){var d,e,f,h;return Pe(function(k){if(1==k.nextAddress){if(b.isCancelled())return k.return();d=Hbc(a.prefixSearch_,b);e=(new P_).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new Q_(d,e));if(e.getIsLastCallback())return k.return();f=!1;return Re(k,Jbc(a.prefixSearch_,b,function(q,t,x){t=(new P_).setIsLastCallback(x).setQuery(b.getPrefix()).setCode(t.getCode()).setCacheState(O_(N_((new M_).setSource(t),
uv(c,2)),R0(a)));b.getListener()(new Q_(q,t));t.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(h=(new P_).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(O_(N_((new M_).setSource((new kt).setProvenance(10).setCode(0)),uv(c,2)),R0(a))),b.getListener()(new Q_([],h)));Ve(k)})};
Kbc.prototype.lookup=function(a,b,c){var d=this;Lbc(this);Q0(this,Cbc);var e=N_(new M_,R0(this));this.lookupCache_.lookup(a,qj(this.clientInfo_,17,1),function(f,h){e.setSource(h);O_(e,R0(d));f.getMetadata().setCacheState(e);b(f)},c)};
Kbc.prototype.list=function(a,b,c,d){var e=this;Q0(this,Cbc);var f=N_(new M_,R0(this));this.listCache_.list(a,b,qj(this.clientInfo_,18,1),function(h,k){var q=h.results;var t=new C9b;t=m(t,1,h.begin);c(new D9b(q,t.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(O_(f.setSource(k),R0(e)))))},d)};
var Q0=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&Nbc(a),!a.cacheWarming_)){var c=R0(a);a.cacheWarming_=new Promise(function(d,e){var f,h,k,q;return Pe(function(t){switch(t.nextAddress){case 1:return f=N_(new M_,c),Qe(t,2,3),Re(t,a.prefixSearch_.prefetch(b),5);case 5:h=t.yieldResult,O_(f,R0(a)).setSource(h),d(f);case 3:Se(t);a.cacheWarming_=null;Te(t,0);break;case 2:k=Ue(t),q=k instanceof kt?k:(new kt).setCode(13),
O_(f,R0(a)).setSource(q),e(f),t.jumpTo(3)}})})}},R0=function(a){return a.storage_.getExpiry().getStatus()},Nbc=function(a){Gbc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},Lbc=function(a){var b=1===R0(a)?1:2;a.trackers_.count(b).increment()};
var Obc=function(a){this.itemResolver_=a},Pbc=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(I9b).filter(Boolean),q=k.length-1;if(0<q){var t=k.join(".");k.push(k.join("-"));for(k.push(t);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(nVa,""));"+"===e[0]&&k.push("+"+k[0]);h.call(f,c,r(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&10!==d.getTargetType())for(b=n(b.memberKeys),d=b.next();!d.done;d=b.next())(d=N0(a.itemResolver_,d.value))&&Pbc(a,d,c);return c};
var Qbc=new E9b,Rbc=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new Obc(a);this.trieRoots_=new Map},Yac=function(a,b,c,d){var e=(a.trieRoots_.get(c)||T_).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=Vac(b).map(Q5b);a.lookupCache_.lookup(q,c,function(t){var x=Array.from(t.getResults().keys(),String);x=Sbc(a,x);Array.prototype.push.apply(e.items_,
x);K9b(e);t.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},Qbc)});return GWa(h,e,d)},Y_=function(a,b){a=Sbc(a,b);return new S_(a)},Sbc=function(a,b){var c=[];b=n(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=N0(a.itemResolver_,d);e&&(e=Pbc(a.indexer_,e),c.push(new J9b(d,e)))}return c};
var Tbc=function(){this.queryId_=0};Tbc.prototype.getQueryId=function(){return this.queryId_};
var Ubc=function(a){this.delegate=a};g=Ubc.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(){return this.delegate.warmUpCache()};g.warmUpSession=function(a){var b=this;return Pe(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return Pe(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 Vbc=function(){this.delegate=ubc};Vbc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};Vbc.prototype.reset=function(a){this.delegate.reset(a)};var Wbc=function(a,b){a.delegate=null!=b?b:ubc};
var Xbc=function(a){this.delegate=a};g=Xbc.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 S0=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};S0.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};S0.prototype.resultCount=function(){return this.count_};S0.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};
var Ybc=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();0<c.limit&&(d=new S0(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?Xs.apply(null,r(d)):null;var f;this.scope=null!=(f=c.scope)?f:a.queryScope()};X(Ybc,Xbc);g=Ybc.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 Zbc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};X(Zbc,Ubc);
Zbc.prototype.search=function(a){var b=this,c,d,e,f,h,k;return Pe(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(t){return!c.has(t.visibility)}),e=d.map(function(t,x){return new Ybc(a,b.originalFilter,t,x===d.length-1)}),f=n(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}Wbc(b.filterInterceptor,k.getResultFilter());return Re(q,b.delegate.search(k),
3);case 3:h=f.next();q.jumpTo(2);break;case 4:return q.return()}})};
var T0=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=qVa([b]);this.id_=ss(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 qs).setDisplayName(c),q=h.getPrimaryTarget();h=yWa(h,new tbc(q,k))}return h});e=new Q_(f,e.getMetadata());a.getListener()(e)}};X(T0,Xbc);T0.prototype.getPrefix=function(){return this.query_};T0.prototype.getTerms=function(){return this.terms_};
T0.prototype.getListener=function(){return this.listener_};
var $bc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new Tbc;this.clientInfo_=c};g=$bc.prototype;g.warmUpSession=function(a){a=acc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=acc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=acc(this.queryFactory_,a,this.querySession_,c,b);oj(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=F5b(b),c.isValid()||(c=F5b(b+">")),a=c.isValid()&&c.getName()?new T0(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("Xa");};g.getSessionState=function(){throw Error("Xa");};
var U0=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=oj(c,34,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new Vbc;e.setFilter(q);e=new Zbc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};U0.prototype.warmUpCache=function(){return this.cache_.warmUpCache()};U0.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};U0.prototype.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};
U0.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new $bc(a,this.queryFactory_,this.clientInfo_)};
var bcc=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_=HWa(this,f);this.isEmailAddress_=null};g=bcc.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_=H5b(this.prefix_));return this.isEmailAddress_};g.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};
var ccc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};ccc.prototype.getFormat=function(){return this.format_};ccc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};ccc.prototype.queryScope=function(){return this.queryScope_};
var V0=function(){this.foundKeys_=new Set};X(V0,O0);V0.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};V0.prototype.has=function(a){return this.foundKeys_.has(a)};V0.prototype.add=function(a){this.foundKeys_.add(a)};V0.prototype.reset=function(){this.foundKeys_.clear()};
var dcc=function(a){this.delegate_=a;this.filter_=new V0};dcc.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=n(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};dcc.prototype.resultCount=function(){return this.delegate_.resultCount()};dcc.prototype.isDone=function(){return this.delegate_.isDone()};
var ecc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};ecc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};ecc.prototype.resultCount=function(){return this.delegate_.resultCount()};ecc.prototype.isDone=function(){return this.delegate_.isDone()};
var fcc=function(a,b){this.storage_=a;this.format_=b};fcc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};fcc.prototype.resultCount=function(){return 0};fcc.prototype.isDone=function(){return!1};
var gcc=[198,230,306,307,338,339],hcc=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)"+Do(b),"g")})},IWa=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=ls(oVa(b)).replace(pVa,"").toUpperCase().toLowerCase(),e=d.indexOf("@");a=n(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++):gcc.includes(f)&&e.push(a);b=n(c);for(a=b.next();!a.done;a=b.next()){a=a.value;f=n(d);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]++,h<a[1]&&a[1]++;f=n(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 Ys=function(a,b){this.start_=a;this.end_=b};Ys.prototype.getStart=function(){return this.start_};Ys.prototype.getEnd=function(){return this.end_};
var Zs=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Zs.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Zs.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Zs.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};
var W0=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new W0(c,b)});this.matchInfo_=null};X(W0,QZ);W0.prototype.getMemberList=function(){return this.memberList_};W0.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=JWa(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};
var icc=function(a,b){this.delegate_=a;this.matcher_=new hcc(b)};icc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new W0(a,this.matcher_):null};icc.prototype.resultCount=function(){return this.delegate_.resultCount()};icc.prototype.isDone=function(){return this.delegate_.isDone()};
var jcc=/\s+/g,kcc=function(a,b){this.clientInfo_=a;this.storage_=b},acc=function(a,b,c,d,e){var f=qVa([b]);b=(b||"").replace(jcc," ").trim();var h=!f.length,k=h?qj(a.clientInfo_,15,1):qj(a.clientInfo_,16,1);h=h?Ji(a.clientInfo_,1,5):Ji(a.clientInfo_,2,5);var q=d.boostIds_;var t=d.primingTimeoutMillis_;if(q.length){q=q.map(String);var x=RVa(q)+":"+q.length;t={ids:q,cacheKey:x,primingTimeoutMillis:t}}else t=ybc;q=d.getFilter();a=new fcc(a.storage_,k);q&&(a=new ecc(a,q,b));a=new dcc(a);a=new S0(a,h);
a=f.length?new icc(a,f):a;d=d.getQueryScope();c=new ccc(k,c,d);return new bcc(c,b,f,a,t,e,q)};
var lcc=function(a){this.fetcher=a};lcc.prototype.getStageType=function(){return 2};lcc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,t,x;return Pe(function(y){switch(y.nextAddress){case 1:c=LWa(T9b(a)),d=n(c),e=d.next();case 2:if(e.done){y.jumpTo(4);break}f=e.value;h=n(f);k=h.next().value;q=h.next().value;t=k;x=q;if(!t){y.jumpTo(3);break}return Re(y,b.fetcher.fetch(x,t,a.getFormat(),function(F,K,J){a.notify(F,K,J)},a.getOptions()),3);case 3:e=d.next();y.jumpTo(2);break;case 4:return y.return()}})};
var mcc=function(a,b){this.delegate=a;this.maxLookupChunkSize=C$b(b)};mcc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return Pe(function(t){switch(t.nextAddress){case 1:var x=f.maxLookupChunkSize;if(a.length)if(a.length<=x)x=[a];else{for(var y=[],F=0;F<a.length;F+=x){var K=a.slice(F,F+x);K.length&&y.push(K)}x=y}else x=[];h=n(x);k=h.next();case 2:if(k.done){t.jumpTo(4);break}q=k.value;return Re(t,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();t.jumpTo(2);break;case 4:return t.return()}})};
var ncc=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
ncc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,t,x,y,F,K,J,R,S,aa,ba;return Pe(function(ka){switch(ka.nextAddress){case 1:return h=3===b?4:3,k=L_((new kt).setProvenance(h),!0).setCode(0),q=!0,Qe(ka,2),Re(ka,f.loader.loadLookupItems(b,a.map(function(wa){return wa.getOriginalValue()}),nbc),4);case 4:t=ka.yieldResult;q=oj(t.metadata,5);x=3===e.getQueryScope();try{f.indexer.store(b,t.data,t.metadata,x)}catch(wa){f.trackers.error(21,10).report(),k.setCode(13),q=!0}Wu(ka,3);break;case 2:y=Ue(ka),
F=Number(y),k.setCode(isFinite(F)&&F?F:13),q=!0;case 3:K=[];J=new Map;R=n(a);for(S=R.next();!S.done;S=R.next())aa=S.value,(ba=f.indexer.load(aa,c,e.getFilter(),q,!0,e.useOriginalDisplayValue_))?J.set(aa,ba):K.push(aa);d(J,K,k);return ka.return()}})};
var occ=function(a){this.indexer=a};occ.prototype.getStageType=function(){return 1};
occ.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return Pe(function(q){c=new Map;d=[];e=n(T9b(a));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getResultFilter(),!0,!1,a.getOptions().useOriginalDisplayValue_))c.set(h,k);else{var t=b.indexer;a:switch(h.getType()){case 1:case 6:var x=H5b(h.getValue().trim());break a;case 2:case 7:x=h.getValue().replace(I5b,"");x=3<=x.length&&"0"<=x[0]&&"9">=x[0];break a;default:x=!0}(x?t.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,
d,L_((new kt).setProvenance(6),!1).setCode(0));return q.return()})};
var pcc=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"),qcc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.placeholderFactory_=oj(e,21,!1)?new vbc:xbc;this.indexes_=V_(Ji(e,8,250),1E3*Jl(e,9,3600));this.notFound_=V_(Ji(e,10,500),1E3*Jl(e,11,600))};g=qcc.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 Pe(function(f){switch(f.nextAddress){case 1:c=L_(new kt,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(mbc).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(L_(c,!1));Qe(f,2);return Re(f,b.loader_.loadAutocompleteItems(a,nbc),4);case 4:d=f.yieldResult;Wu(f,3);break;case 2:return e=Ue(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(!oj(c,5))if(m(c,5,!0),b.length){c=X_(this.ranker_,b,1);b=n(b);for(var d=b.next();!d.done;d=b.next())this.storage_.store(1,d.value);c=Y_(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
g.canSkipFetch_=function(a){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(pcc))break;if(this.notFound_.has(c))return!0}return!1};
var rcc=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=rcc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return Pe(function(h){switch(h.nextAddress){case 1:return c=L_(new kt,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?nbc:mbc,Qe(h,2),Re(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;Wu(h,3);break;case 2:return f=Ue(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())||T_).search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!oj(c,5)){m(c,5,!0);a=1!==this.coalescedSortOrder_?X_(this.ranker_,b,this.coalescedSortOrder_):null;var d=X_(this.ranker_,b,1);this.storage_.flush();b=n(b);for(var e=b.next();!e.done;e=b.next())this.storage_.store(1,e.value);this.storage_.markAsFresh(c);c=Y_(this.trieFactory_,d);a=a?Y_(this.trieFactory_,a):c;this.indexes_.set(1,c);this.indexes_.set(2,a)}};
var scc=new d0(27,32,33),tcc=new d0(24,23,20);
var ucc=function(){};ucc.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_,t=a.clientConfig.getClient();if(0<t.getCacheSize()){var x=qj(t,19,1);x=new rcc(e,q,f,c,x);x=new e0(x,b,tcc);h.push(x);k.push(new occ(d))}0<Ji(t,2,5)&&(c=new qcc(e,q,f,c,t),b=new e0(c,b,scc),h.push(b));h=new ncc(a.trackers,a.loader,a.indexer);h=new mcc(h,a.clientConfig);k.push(new lcc(h))};
var vcc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};vcc.prototype.getId=function(){return this.id_};vcc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var X0=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};X0.prototype.getIdType=function(){return this.idType_};X0.prototype.getOptions=function(){return this.options_};
X0.prototype.getKeys=function(){var a=this;return this.ids_.map(function(b){return new vcc(a.getIdType(),b,a.getOptions())})};var wcc=function(a,b){a.ids_=b;return a};X0.prototype.setIdType=function(a){this.idType_=a};X0.prototype.setOptions=function(a){this.options_=a;return this};X0.prototype.clone=function(){var a=this.getIdType(),b=this.getOptions();return new X0(a,this.ids_,b)};
var Y0=function(a,b){this.ids_=new Set(b.ids_);this.parameters_=b.clone();this.loader_=a;this.resolver_=new T6b;this.isSent_=!1};Y0.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(wcc(this.parameters_,a)).then(this.resolver_.resolve,this.resolver_.reject)}};Y0.prototype.promise=function(){return this.resolver_.promise};
Y0.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.ids_.length+this.ids_.size>b)return!1;a=n(a.ids_);for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};
var xcc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=C$b(c);this.lastRequestCreationTime_=0};
xcc.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 Y0(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Xt(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},30<d?0:30)}return this.batchedRequest_.promise()};
var ycc=function(a,b){this.delegate_=a;this.inflightRequests_=M9b();this.tracker_=b};
ycc.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=n(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=wcc(a.clone(),d);var q=new Y0(this.delegate_,k);q.send();c.add(q);a=n(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 t=n(k.getKeys()),x=t.next();!x.done;x=t.next())b.inflightRequests_.delete(x.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(t){return t.promise()})).then(function(t){return q?q.promise().then(function(x){return MWa(t,x.metadata)}):MWa(t)})};
var zcc=function(a){this.peopleLoader_=a};zcc.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.ids_,a.getOptions())};
var Acc=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};Acc.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new zcc(this.peopleLoader_);b=new xcc(b,this.tracker_,this.clientConfig_);b=new ycc(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};
var Bcc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new Acc(this.delegate_,this.trackers_,c)},Ccc=function(a,b,c,d){var e,f;return Pe(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 Re(h,f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Se(h);a.searchRequests_.delete(e);
return Te(h,0)})};g=Bcc.prototype;g.loadRankedItems=function(a){var b=this;return Ccc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};g.warmUpServer=function(a){var b=this;return Ccc(this,82,"",function(){return b.delegate_.warmUpServer(a)})};g.loadAutocompleteItems=function(a,b){var c=this;return Ccc(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};g.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new X0(a,b,c))};
g.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var Dcc=function(){return Date.now()},Ecc=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*Jl(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*Jl(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};g=Ecc.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 Z0=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};Z0.prototype.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};Z0.prototype.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};Z0.prototype.cancel=function(){this.delegate_.cancel();return this};Z0.prototype.getReporter=function(a){a=void 0===a?S7b:a;return this.delegate_.getReporter(a)};
var Fcc=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=Qr(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};X(Fcc,QZ);Fcc.prototype.getMemberList=function(){return this.members_};Fcc.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};
var Gcc=function(a){this.filter_=a};Gcc.prototype.filterResult=function(a){var b=this;if(!Qr(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 dr(new Fcc(a,c))};Gcc.prototype.reset=function(a){this.filter_.reset(a)};var at=function(a){this.filter_=Xs(a,new Gcc(a))};at.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
at.prototype.reset=function(a){this.filter_.reset(a)};
var a1=function(a){this.delegate_=a};a1.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof M_&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};a1.prototype.lookup=function(a,b,c){c=void 0===c?new E9b:c;c.setFilter(NWa(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
a1.prototype.list=function(a,b,c,d){d=void 0===d?new B9b:d;d.setFilter(NWa(d.getFilter()));this.delegate_.list(a,b,c,d);return this};a1.prototype.beginSession=function(a,b){b=void 0===b?new Xr:b;b=b.clone();b.setFilter(NWa(b.getFilter()));var c=this.delegate_.beginSession(b);return new Z0(c,a,b)};
var Hcc=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]]),Icc=new Map([[2,13],[3,6]]),Jcc=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 OWa=new Map([[1,1],[2,3],[3,5]]),Kcc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[10,20]]),Lcc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[10,20]]),Mcc=function(a,b){this.logContext_=QWa(a,b)};g=Mcc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new Z_;switch(d.getEventType()){case 1:d=e.setCount;b=qj(b.source(),4,0);var f=new Y9b;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=qj(b.source(),3,0);d=new c0;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=qj(b,2,0);f=new $9b;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 Z_;switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=qj(f,3,0);var k=qj(f,13,0)||0;k=Icc.get(k)||Hcc.get(c)||0;var q=RS(b,"blocked"),t=RS(b,"network"),x=RS(b,"processed");b=new Z9b;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(t);m(b,9,x);b.setStatusCode(c);Ji(f,12,0)&&(c=Ji(f,12,0),m(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();k=qj(h,2,0);f=new a$b;
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=RS(b,"total"),f.setLatencyUsec(b));c=Jcc.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=PWa(l(b,2)),m(f,5,c),c=PWa(l(b,3)),m(f,6,c),c=f.setDataSource,h=b.getSource(),b=!oj(h,1),h=h.getProvenance(),b=
(b?Lcc.get(h):Kcc.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 Z_;d.setClientInterface(a);a=d.setLatency;var e=qj(b.source(),5,0);if(37===e||38===e||40===e){e=qj(b.source(),5,0);var f=RS(b,"LATENCY_A");b=RS(b,"LATENCY_B");b=null!=f&&null!=b?f-b:NaN;f=new a0;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=RS(b,"total"),f=new a0,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 Z_;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=qj(e,7,0);var f=new b0;f.setType(b);m(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};
var b1=function(a){this.delegate=a};b1.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};b1.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};b1.prototype.list=function(a,b,c,d){this.delegate.list(a,b,c,d)};b1.prototype.beginSession=function(a){return this.delegate.beginSession(a)};
var Ncc=function(a){this.delegate=a};g=Ncc.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()};
var Occ=function(a,b){this.delegate_=a;this.trackers_=b};g=Occ.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=void 0===b?new i_: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();Pcc(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);Pcc(this)};g.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);Pcc(this)};g.reportSend=function(a){this.delegate_.reportSend(a);Pcc(this)};var Pcc=function(a){a=a.trackers_;var b=new Hs;Js(b.setEventType(6),3);M0(a,b).call()};
var c1=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};X(c1,Ncc);
c1.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=M0(this.trackers_,fWa(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(t){throw c.trackers_.error(22,11).report(),t;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
c1.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=M0(this.trackers_,eWa(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),t=q.getCacheState();h.source.setCacheState(t);h.source.setItemCount(k.getResults().length);h.result(t.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;}};c1.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new Occ(a,this.trackers_)};
var d1=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=new Hs;Js(b.setEventType(6),1);M0(a,b).call()};X(d1,b1);
d1.prototype.warmUpCache=function(){var a=this,b=M0(this.trackers_,dWa());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof M_?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new M_).setSource((new kt).setCode(2)));return Promise.reject(c)})};
d1.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=M0(this.trackers_,bWa(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),t=q.getCacheState();h.source.setCacheState(t);h.source.setItemCount(k.getResults().size);for(var x=0,y=0,F=0,K=n(k.getResults().keys()),J=K.next();!J.done;J=K.next()){var R=J.value;L5b.includes(R.getType())?x++:M5b.includes(R.getType())?y++:N5b.includes(R.getType())&&F++}var S=0;K=R=0;var aa=n(q.notFoundIdList_);for(J=aa.next();!J.done;J=
aa.next())J=J.value,L5b.includes(J.getType())?S++:M5b.includes(J.getType())?R++:N5b.includes(J.getType())&&K++;J=h.source.getLookupInfo();x=m(J,2,x);y=m(x,1,y);F=m(y,3,F);F=m(F,5,S);F=m(F,4,R);m(F,6,K);h.result(t.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(ba){throw d.trackers_.error(8,11).report(),ba;}finally{q.stop()}},
c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};d1.prototype.list=function(a,b,c,d){var e=this;try{var f=M0(this.trackers_,cWa());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;}};
d1.prototype.beginSession=function(a){var b=this.trackers_,c=new Hs;Js(c.setEventType(6),2);M0(b,c).call();a=this.delegate_.beginSession(a);return new c1(a,this.trackers_)};
var Qcc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Qcc.prototype.report=function(a){var b=SS(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=n(a);for(b=a.next();!b.done;b=a.next())TS(this.clearcut_,b.value)};
var Rcc=function(a){this.clearcut_=a};Rcc.prototype.report=function(a){this.clearcut_.report(a)};
var Scc=function(a){this.writer_=a},Ucc=function(a,b,c){var d=new AS,e=a.writer_,f=d.getMetadata()||new BS;d.setMetadata(f);var h=Ir(b)||new Ts;a=Ub(b,Us,1)||new Us;e.metadataStateWriter_.write(f,h,(oj(a,9,!0)?Ji(h,2,0):Ji(h,1,0))||0,Tcc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=Ub(d,CS,4)||new CS;Vb(d,4,b);Ub(d,CS,4).setType(uv(a,7));d.setLoggingId(vv(a,2));return d};
var Vcc=function(){};
Vcc.prototype.create=function(a,b,c){var d=new ZQb,e=Aj(b,3,0);m(d,1,e);e=Aj(b,4,0);m(d,2,e);e=Aj(b,5,0);m(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersion());e=new WQb;Vb(e,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new XQb;d=wDa(Jl(b,9,0)-Jl(b,8,0));m(f,2,d);d=new yS;Vb(d,1,e);Vb(d,6,f);e=new YQb;if(f=Aj(b,6,0)){m(e,3,1E3*f);var h=1E3*(Date.now()-f);m(e,2,h)}m(e,1,!!f);Vb(d,3,e);d.setAffinityVersion(b.getAffinityVersion());b=
new UQb;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};
var Wcc=function(){};Wcc.prototype.extractPersonEventSource=function(a){return l(RWa(a),4)};Wcc.prototype.extractFieldEventSource=function(a){return l(RWa(a),3)};
var Xcc=function(){};Xcc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new ft;return(a.getQuery()||"").length?l(b,2):l(b,4)};Xcc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new ft;return(a.getQuery()||"").length?l(b,1):l(b,3)};
var Ycc=function(){};Ycc.prototype.extractPersonEventSource=function(a){return l(SWa(a),4)};Ycc.prototype.extractFieldEventSource=function(a){return l(SWa(a),3)};
var Zcc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};
var $cc=new Map([[1,11],[2,12],[0,0]]),adc=function(){};adc.prototype.write=function(a,b,c){var d=new DS;m(d,1,c);c=new FS;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Vb(a,8,c);b=[$cc.get(b.getContext())];Bb(a,3,b)};
var bdc=new Map([[1,5],[2,4],[3,6],[7,13]]),cdc=function(){};cdc.prototype.write=function(a,b,c,d){var e=new DS;m(e,1,c);a.setPosition(e);c=bdc.get(b.getProvenance())||0;d||1===qj(b,4,0)?c=3:2===qj(b,4,0)&&(c=10);Bb(a,3,[c])};
var ddc=new Set([9,1,2]),edc=function(){};edc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&ddc.has(d))c=new CS,1!==l(b,7)&&7!==l(b,7)||c.setEmail(vv(b,3)),2!==l(b,7)&&5!==l(b,7)||c.setPhone(vv(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Vb(a,4,c),c=new ES,c.setName(b.getNameOrUndefined()),b=a.getMetadata()||new BS,Vb(b,2,c),a.setMetadata(b)};
var fdc=function(a){var b=new edc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Tcc=function(a){var b;return(null==(b=Ub(a,Us,1))?0:b.getIsPlaceholder())?!0:!1};
var it=function(a){Y.call(this,a,-1,gdc)};X(it,Y);g=it.prototype;g.getEventType=function(){return l(this,1)};g.setEventType=function(a){return m(this,1,a)};g.getSessionState=function(){return Ub(this,LZ,2)};g.setSessionState=function(a){Vb(this,2,a)};g.hasSessionState=function(){return vj(this,LZ,2)};var WWa=function(a,b){Vb(a,4,b)},gdc=[3];
var hdc=new Set([8]),idc=function(){this.defaultEntityFactory_=new Scc(new fdc(new cdc));this.contextualEntityFactory_=new Scc(new fdc(new adc));this.extensionFactory_=new Vcc;this.defaultEventSourceExtractor_=new Xcc;this.additionEventSourceExtractor_=new Wcc;this.replacementEventSourceExtractor_=new Ycc};
idc.prototype.create=function(a,b){var c=b.getSessionState()||new LZ,d=b.getEventType();b=Nb(b,Ss,3);var e=ht(b,UWa);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(r(ht(f,TWa).values())):[];b=b?[].concat(r(ht(b,TWa).values())):[];e=e?[].concat(r(ht(e,TWa).values())):[];f=new Zcc(f,b,e);b=[];var h=n(f.defaultTokenGroups_);for(e=h.next();!e.done;e=h.next())b.push.apply(b,r(jdc(this,a,d,e.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));h=n(f.additionTokenGroups_);for(e=h.next();!e.done;e=
h.next())b.push.apply(b,r(jdc(this,a,d,e.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));f=n(f.replacementTokenGroups_);for(e=f.next();!e.done;e=f.next())b.push.apply(b,r(jdc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var jdc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(x){var y=new AS,F=h.writer_,K=y.getMetadata()||new BS;y.setMetadata(K);var J=Ir(x)||new Ts,R=Ub(x,Us,1)||new Us;F.metadataStateWriter_.write(K,J,Ji(J,2,0)||0,Tcc(x));F.contactInfoWriter_.write(y,R,c,J.getProvenance()||0);y.setLoggingId(vv(R,1));x=Ub(y,CS,4)||new CS;Vb(y,4,x);x.setType(uv(R,8));return y});k.push(kdc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=n(d);for(var t=d.next();!t.done;t=d.next())t=
t.value,vj(t,Us,1)&&hdc.has(Ub(t,Us,1).getFieldType())||q.push(Ucc(h,t,c));q.length&&k.push(kdc(a,b,c,f.extractFieldEventSource(e),q,e));return k},kdc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);Mb(a,2,e);return a};
var ldc=function(a,b){this.logContext_=bt(ct(new dt,"PeopleStore.BigBug").setLogSource(qj(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(456799336).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(r(a.runtimeConfig_.getExperiments().getExperimentIdsList()),r(et?et.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new idc};ldc.prototype.getLogContext=function(){return this.logContext_};
var mdc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};mdc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new ldc(this.clientConfig_,a),a=new Rcc(new Qcc(JRb(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};
var ndc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=ndc.prototype;g.reportDisplay=function(a){e1(this,jt(a,1))};g.reportSelect=function(a,b){b=void 0===b?new i_:b;if(0!==b.getOriginator())for(var c=n(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!vj(d,Ts,2)){var e=new Ts;Vb(d,2,e)}d=Ir(d);m(d,4,b.getOriginator())}b=Aj(this.sharedSessionState_,4,0)+1;m(this.sharedSessionState_,4,b);e1(this,jt(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=n(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!vj(c,Ts,2)){var d=new Ts;Vb(c,2,d)}c=Ir(c);m(c,4,2)}b=Aj(this.sharedSessionState_,4,0)+1;m(this.sharedSessionState_,4,b);e1(this,jt(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){e1(this,jt(a,17,this.sharedSessionState_))};g.reportProceed=function(a){e1(this,jt(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new it;a=a.clone();b.setSessionState(a);b.setEventType(7);WWa(b,a.getSources());e1(this,[b])};g.reportSave=function(a){e1(this,jt(a,9,this.sharedSessionState_))};g.reportSecondaryAction=function(a){e1(this,jt(a,19,this.sharedSessionState_))};g.reportSend=function(a){e1(this,jt(a,8,this.sharedSessionState_,!0))};var e1=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};
var f1=function(a,b,c){this.delegate_=this.delegate=a;this.sharedSessionState_=c;m(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};X(f1,Ncc);f1.prototype.suggest=function(a,b){var c=this;u5b(this.sharedSessionState_,Aj(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");v5b(d);var e=0;this.delegate_.suggest(function(f){e=odc(c,f.getResults(),XWa(f),d,e);a(f)},b)};
f1.prototype.search=function(a,b,c){var d=this;u5b(this.sharedSessionState_,Aj(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);v5b(e);var f=0;this.delegate_.search(a,function(h){f=odc(d,h.getResults(),XWa(h),e,f);b(h)},c)};f1.prototype.getReporter=function(a){return new ndc(this.reportingFactory_.create(a),this.sharedSessionState_)};f1.prototype.getSessionState=function(){return this.sharedSessionState_};
var odc=function(a,b,c,d,e){var f=zRb();m(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();m(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=n(b);for(f=a.next();!f.done;f=a.next()){b=0;f=n(f.value.getTargetList());for(var h=f.next();!h.done;h=f.next()){h=h.value.getLoggingToken();var k=Ir(h)||new Ts;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());m(k,2,e);m(k,1,b);Vb(h,2,k);h.setSessionState(d);b++}e++}return e};
var pdc=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=xr();this.clearcutConfig_=c};X(pdc,b1);
pdc.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 kt;h=c.getOriginator();e=n(e);for(var k=e.next();!k.done;k=e.next()){k=n(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var t=Ir(q)||new Ts;7!==t.getProvenance()&&t.setProvenance(f.getProvenance());m(t,4,h);Vb(q,2,t)}}b(d)},c)};
pdc.prototype.beginSession=function(a){var b=new LZ,c=qdc(this,a);Vb(b,10,c);c=rdc(this,a);Vb(b,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new f1(a,this.reportingFactory_,b)};
var qdc=function(a,b){a=Nb(a.clearcutConfig_,ft,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new ft},rdc=function(a,b){a=Nb(a.clearcutConfig_,gt,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new gt};
var sdc={create:function(a){var b=Oo(r$b,'[[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]]]]');a=new k0(b,a);a.runtimeConfig_.getExperiments().getProfileId()?B$b(a).getIsEnabled()?(b=Oo(Yr,'[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'),b=new Zr(b,
1)):b=new $r:b=new $r;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;et=b.loadExperiments(B$b(a).getApplication(),(new as).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new Sac;b.cacheConfigurators_.push(new o$b);c=b;c=void 0===c?new Sac:c;b=a.getClearcut();b=new Mcc(b,a.runtimeConfig_);b=ds(b);b=new L0(b);d=new Rac(a,b);var e=c;c=a.getClient();c=new hbc(d.targetFactory_,c);var f=void 0===f?Dcc:f;f=new Ecc(d.loader_,a,f);f=new Bcc(f,b,a);var h=[new ucc,new $ac].concat(r(e.cacheConfigurators_)),
k=[],q=[],t=new P0(c,a);e=new sbc(q,t);d={clientConfig:a,trackers:b,storage:c,indexer:t,loader:f,loaderFactory:d,trieFactory:new Rbc(c,e,b),prefixCaches:k,lookupStages:q};h=n(h);for(q=h.next();!q.done;q=h.next())q.value.configure(d);d=new Fbc(k);f=new Kbc(a,b,d,e,new obc(f,c),c);d=a.getClient();c=new kcc(d,c);d=a.getClient();f=new U0(f,c,d);c=new mdc(a);a=a.getClearcut();f=new pdc(f,c,a);f=new d1(f,b);return new a1(f)}};
var g1=function(){};g1.\u0275fac=function(a){return new (a||g1)};g1.\u0275cmp=u({type:g1,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&&(fg(),P(0,YWa,1,0,"div",0),P(1,ZWa,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),A(1),D("ngIf",b.isReady))},dependencies:[gy],encapsulation:2});
var h1=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new W.ReplaySubject(1);this.accessCheckIsThinking$=new W.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(Df(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(Df(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return TJ(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,W.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;return!d&&!e}),Cf(!1));this.manageComponentLink=""};h1.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};h1.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
h1.\u0275fac=function(a){return new (a||h1)(B(ZJ),B(SJ))};
h1.\u0275cmp=u({type:h1,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[ed],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),U(1,"async"),P(2,$Wa,3,4,"a",1),U(3,"async"),P(4,aXa,2,1,"ng-template",null,2,Hg),G());if(a&2){var c=O(5);D("isReady",V(1,3,b.isReady$));A(2);D("ngIf",V(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[gy,g1,ny],encapsulation:2});
var i1=function(){};i1.\u0275fac=function(a){return new (a||i1)};
i1.\u0275cmp=u({type:i1,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[1,"p-chip",3,"ngClass"]],template:function(a,b){a&1&&(E(0,"span",0),Q(1),G());a&2&&(a=b.issuePriority,a=null==a||"PRIORITY_UNSPECIFIED"===a||0===a?"":"P0"===a||1===a?"priority-1":"P1"===a||2===a?"priority-2":"P2"===a||3===a?"priority-3":"P3"===a||4===a?"priority-4":"P4"===a||5===a?"priority-5":Ai(a),D("ngClass",a),A(1),b=b.issuePriority,T(" ",null==b?"--":"string"===typeof b?
MAb[b]:LAb[b]," "))},dependencies:[ey],styles:["\n/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});
var j1=function(){this.showIssueMetadataContainer=!1;this.manageComponentLink=""};
ni.Object.defineProperties(j1.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=Vo(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=QAb[a.type],this.issueStatus=xl[a.status],this.issuePriority=a.priority,this.issueSeverity=OAb[a.severity],this.issueComponentId=String(a.componentId)}}});
j1.\u0275fac=function(a){return new (a||j1)};
j1.\u0275cmp=u({type:j1,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"],[4,"ngIf"],[3,"componentId"],[3,"teamId"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"h3",1),Q(2," Access is denied to this issue "),G(),P(3,dXa,33,11,"ol",2),G());a&2&&(A(3),D("ngIf",b.showIssueMetadataContainer))},dependencies:[gy,
h1,i1,TT,qy],styles:[".b-access-denied[_ngcontent-%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}"],changeDetection:0});
var k1=function(){};k1.\u0275fac=function(a){return new (a||k1)};k1.\u0275mod=Yc({type:k1});k1.\u0275inj=Ic({imports:[vy]});
var l1=function(){};l1.\u0275fac=function(a){return new (a||l1)};l1.\u0275mod=Yc({type:l1});l1.\u0275inj=Ic({imports:[vy,k1]});
var m1=function(){};m1.\u0275fac=function(a){return new (a||m1)};m1.\u0275mod=Yc({type:m1});m1.\u0275inj=Ic({imports:[vy]});
var n1=function(){};n1.\u0275fac=function(a){return new (a||n1)};n1.\u0275mod=Yc({type:n1});n1.\u0275inj=Ic({imports:[vy,l1,m1,UT]});
var tdc=Symbol("Ce"),o1=function(a){this.ruleConfigService=a};o1.prototype.build=function(a){if(a.customField)var b="DATE"===a.customField.type?new p1(a,q1(this.ruleConfigService)):"ENUM"===a.customField.type?new r1(a,q1(this.ruleConfigService)):"NUMERIC"===a.customField.type?new s1(a,q1(this.ruleConfigService)):new t1(a,q1(this.ruleConfigService));else b=a.label.field,b=q1(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||u1)(a,q1(this.ruleConfigService));b[tdc](a);return b};
var FYa=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};o1.\u0275fac=function(a){return new (a||o1)(p(v1))};o1.\u0275prov=Hc({token:o1,factory:o1.\u0275fac,providedIn:"root"});
var udc=["OR","AND","NAND"],vdc=["OR","NAND"],wdc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),xdc=["AND","OR","NAND"],ydc=["OR","LT","GT","LE","GE"],u1=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};u1.prototype[tdc]=function(a){this.initType(a);this.initValues(a)};
u1.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]};u1.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var zdc=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}};
u1.prototype.toString=function(){var a=zdc(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=Adc(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var Adc=function(a){var b=a.label.field;a:{var c=a.ruleConfigLookup[b];if(c&&(c=c.queryLabel,null!=c)){b=c;break a}b=Vi(b).toLowerCase()}return b+(a.label.customFieldId||"")};
u1.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};u1.prototype.getWidgetType=function(){return"default"};u1.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};u1.prototype.getLegalTypes=function(){return udc};var Bdc=[],w1=function(a,b){u1.call(this,a,b);this.enumValues={}};X(w1,u1);g=w1.prototype;g.getLegalTypes=function(){return vdc};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=n(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=n(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[eXa(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(Zb(this.enumValues,function(a){return a}))};g.getOptions=function(){return Bdc};var Cdc=maa().map(function(a){return{id:"p"+a,label:"P"+a}}),Ddc=function(a,b){w1.call(this,a,b)};X(Ddc,w1);
Ddc.prototype.getOptions=function(){return Cdc};var Edc=maa().map(function(a){return{id:"s"+a,label:"S"+a}}),Fdc=function(a,b){w1.call(this,a,b)};X(Fdc,w1);Fdc.prototype.getOptions=function(){return Edc};
var Gdc=[{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"}],Hdc=function(a,b){w1.call(this,a,b)};X(Hdc,w1);Hdc.prototype.getOptions=function(){return Gdc};
var Idc=[{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"}],Jdc=function(a,b){w1.call(this,a,b)};X(Jdc,w1);Jdc.prototype.getOptions=function(){return Idc};
var Kdc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Ldc=function(a,b){w1.call(this,a,b)};X(Ldc,w1);Ldc.prototype.getOptions=function(){return Kdc};var r1=function(a,b){w1.call(this,a,b);this.allowedValues=[]};X(r1,w1);r1.prototype[tdc]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:eXa(b)}});w1.prototype[tdc].call(this,a)};
r1.prototype.valuesToStrings=function(){return Object.keys(Zb(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};r1.prototype.getOptions=function(){return this.allowedValues};var st=function(a,b){u1.call(this,a,b);this.csv=""};X(st,u1);st.prototype.getWidgetType=function(){return"csv"};st.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};st.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};
var x1=function(a,b){st.call(this,a,b)};X(x1,st);x1.prototype.getWidgetType=function(){return"id"};x1.prototype.valuesToStrings=function(){return st.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(Xi(a))})};var Mdc=function(a,b){st.call(this,a,b)};X(Mdc,x1);Mdc.prototype.getLegalTypes=function(){return vdc};var y1=function(a,b){st.call(this,a,b)};X(y1,st);y1.prototype.getWidgetType=function(){return"user"};
var z1=function(a,b){st.call(this,a,b)};X(z1,y1);z1.prototype.getLegalTypes=function(){return vdc};var p1=function(a,b){u1.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};X(p1,u1);var kYa=function(a){return a&&"string"===typeof a?a:""};p1.prototype.initType=function(a){u1.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":fv(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};
p1.prototype.getWidgetType=function(){return"date"};p1.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=Ndc(b),"RANGE"===this.type||"NRANGE"===this.type)this.dateTo=Ndc(a.values[0].simpleValues[1].value)}};
p1.prototype.valuesToStrings=function(){if("DURATION"===this.type||"NDURATION"===this.type){var a=Xi(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if("RANGE"===this.type||"NRANGE"===this.type){a=this.dateFrom&&Odc(this.dateFrom)||(new Wi).toIsoString(!0);var b=this.dateTo&&Odc(this.dateTo)||(new Wi).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&Odc(this.dateFrom)||(new Wi).toIsoString(!0)]};
var Pdc=function(a){var b=String(a.getMonth()+1),c=String(a.getDate());return b+"/"+c+"/"+String(a.getFullYear())},Ndc=function(a){var b=new Xo(2E3);a=bj(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match(qvb);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 cD("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new cD("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(svb);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(rvb)){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 t=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,t);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 Pdc(c?b:null)},Odc=function(a){a=a.split("/").map(Number);return(new Wi(a[2],a[0]-1,a[1])).toIsoString(!0)};p1.prototype.getLegalTypes=function(){return wdc};var A1=function(a,b){u1.call(this,a,b)};X(A1,u1);A1.prototype.getWidgetType=function(){return"bool"};
A1.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"};A1.prototype.toString=function(){return Adc(this)+":"+("OR"===this.type)};A1.prototype.getLegalTypes=function(){return vdc};var B1=function(a,b){u1.call(this,a,b)};X(B1,u1);B1.prototype.getWidgetType=function(){return"boolwithall"};
B1.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")};B1.prototype.toString=function(){var a=Adc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
B1.prototype.getLegalTypes=function(){return xdc};var t1=function(a,b){u1.call(this,a,b)};X(t1,u1);t1.prototype.getWidgetType=function(){return"text"};t1.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}})};t1.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};
var C1=function(a,b){u1.call(this,a,b)};X(C1,u1);C1.prototype.getWidgetType=function(){return"component"};C1.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};fv(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};C1.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var Qdc=function(a,b){u1.call(this,a,b)};X(Qdc,u1);Qdc.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};fv(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};Qdc.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Rdc=function(a,b){u1.call(this,a,b)};X(Rdc,u1);Rdc.prototype.getWidgetType=function(){return"tracker"};
var Sdc=function(a,b){u1.call(this,a,b)};X(Sdc,Qdc);Sdc.prototype.getWidgetType=function(){return"team"};var Tdc=function(a,b){u1.call(this,a,b)};X(Tdc,u1);Tdc.prototype.getWidgetType=function(){return"hotlist"};var Udc=function(a,b){u1.call(this,a,b)};X(Udc,u1);Udc.prototype.getWidgetType=function(){return"savedsearch"};var s1=function(a,b){st.call(this,a,b)};X(s1,st);s1.prototype.getWidgetType=function(){return"number"};s1.prototype.getLegalTypes=function(){return ydc};
var Vdc=function(a,b){p1.call(this,a,b)};X(Vdc,p1);Vdc.prototype.initType=function(a){p1.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var D1={},Wdc=(D1.ATTACHMENT={ruleCtor:t1,name:"Attachment name"},D1.COMMENT={ruleCtor:t1},D1.TITLE={ruleCtor:t1},D1.ASSIGNEE={ruleCtor:z1},D1.MODIFIER={ruleCtor:y1},D1.REPORTER={ruleCtor:z1},D1.VERIFIER={ruleCtor:z1},D1.CC={ruleCtor:y1},D1.COMPONENT_ID={ruleCtor:C1,name:"Component"},D1.TRACKER_ID={ruleCtor:Rdc,name:"Tracker"},D1.TYPE={ruleCtor:Hdc},D1.STATUS={ruleCtor:Jdc},D1.PRIORITY={ruleCtor:Ddc},D1.SEVERITY={ruleCtor:Fdc},D1.BLOCKED_BY_ID={ruleCtor:x1},D1.BLOCKING_ID={ruleCtor:x1},D1.PARENT_ID=
{ruleCtor:x1},D1.CANONICAL_ID={ruleCtor:Mdc},D1.ID={ruleCtor:Mdc},D1.FOUND_IN={ruleCtor:st},D1.TARGETED_TO={ruleCtor:st},D1.VERIFIED_IN={ruleCtor:st},D1.CL={ruleCtor:st,name:"Changelists"},D1.MODIFIED={ruleCtor:p1},D1.RESOLVED={ruleCtor:Vdc},D1.CREATED={ruleCtor:p1},D1.VERIFIED={ruleCtor:Vdc},D1.DELETION_TIME={ruleCtor:p1,name:"Deletion time"},D1.SAVED_SEARCH_ID={ruleCtor:Udc,name:"Saved search"},D1.HOTLIST_ID={ruleCtor:Tdc,name:"Hotlist"},D1.STAR={ruleCtor:A1,name:"Starred"},D1.MUTE={ruleCtor:A1,
name:"Muted"},D1.IN_PROD={ruleCtor:A1,name:"In production"},D1.CC_COUNT={ruleCtor:s1},D1.DUPLICATE_COUNT={ruleCtor:s1},D1.VOTE_COUNT={ruleCtor:s1},D1.COMMENT_COUNT={ruleCtor:s1},D1.LAST_MODIFIER={ruleCtor:z1,name:"Last Modified By"},D1.COMMENTER={ruleCtor:y1},D1.LAST_COMMENTER={ruleCtor:z1},D1.ARCHIVED={ruleCtor:B1},D1.IS_DELETED={ruleCtor:A1,name:"Deleted",queryLabel:"deleted"},D1.DELETION_REASON={ruleCtor:Ldc,name:"Deletion reason"},D1._TEXT_={ruleCtor:t1,queryLabel:"",name:"All fields"},D1),Xdc=
Object.assign({},Wdc,{EFFORT_LABEL:{ruleCtor:st},MENTION:{ruleCtor:y1},MIN_SLO_TARGET:{ruleCtor:p1,name:"Nearest SLO",queryLabel:"nearestslo"},POSTMORTEM:{ruleCtor:st,name:"Postmortems"},TEAM_ID:{ruleCtor:Sdc,name:"Team"}}),v1=function(a){this.activeSession=a},q1=function(a){return a.activeSession.isExternalSession()?Wdc:Xdc};v1.\u0275fac=function(a){return new (a||v1)(p(NG))};v1.\u0275prov=Hc({token:v1,factory:v1.\u0275fac,providedIn:"root"});
var lt=function(a){Y.call(this,a,-1,Ydc)};X(lt,Y);lt.prototype.getType=function(){return qj(this,1,0)};lt.prototype.setType=function(a){return m(this,1,a)};lt.prototype.hasType=function(){return nj(this,1)};var sXa=function(a){Y.call(this,a,-1,Zdc)};X(sXa,Y);g=sXa.prototype;g.getType=function(){return qj(this,1,0)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getValuesList=function(){return Nb(this,$dc,2)};g.setValuesList=function(a){Mb(this,2,a)};
g.getLabel=function(){return Ub(this,aec,4)};g.setLabel=function(a){return Vb(this,4,a)};g.hasLabel=function(){return vj(this,aec,4)};var $dc=function(a){Y.call(this,a,-1,bec)};X($dc,Y);g=$dc.prototype;g.getType=function(){return qj(this,1,0)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getValuesList=function(){return Nb(this,$dc,2)};g.setValuesList=function(a){Mb(this,2,a)};var kXa=function(a){Y.call(this,a)};X(kXa,Y);g=kXa.prototype;
g.getType=function(){return qj(this,1,0)};g.setType=function(a){return m(this,1,a)};g.hasType=function(){return nj(this,1)};g.getValue=function(){return Pi(this,2)};g.setValue=function(a){return m(this,2,a)};g.hasValue=function(){return Oi(this,2)};var aec=function(a){Y.call(this,a)};X(aec,Y);g=aec.prototype;g.getField=function(){return qj(this,1,0)};g.setField=function(a){m(this,1,a)};g.getCustomFieldId=function(){return uj(this,2)};g.setCustomFieldId=function(a){return m(this,2,a)};
g.hasCustomFieldId=function(){return tj(this,2)};var Ydc=[2],Zdc=[2],bec=[2,3];lt.messageId="b.QueryBuilderResponse";
var pXa=function(a){Y.call(this,a)};X(pXa,Y);pXa.messageId="b.SyntaxErrorResponse";
var cec=function(a){Y.call(this,a)};X(cec,Y);cec.prototype.getKindCase=function(){return ym(this,qXa)};var qXa=[1,2];cec.messageId="b.QueryBuilderResponseOrError";
var E1=function(a){this.executor=a},dec=function(a,b){b=ao(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:cec}).then(tXa).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(fXa)});return c})};E1.\u0275fac=function(a){return new (a||E1)(p(mH))};E1.\u0275prov=Hc({token:E1,factory:E1.\u0275fac,providedIn:"root"});
var F1=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new sx;this.onEmptyQuery=new sx;this.searchQuery$=new W.Subject;this.teamSuggestions$=this.searchQuery$.pipe(of(300),rf(),Df(function(c){return aL(b.teamsService,c)}),C(function(c){return xXa(c)}))};F1.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};F1.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};
F1.prototype.displayFn=function(a){return a?a.name:""};F1.prototype.ngAfterViewInit=function(){};F1.\u0275fac=function(a){return new (a||F1)(B($K))};
F1.\u0275cmp=u({type:F1,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&zg(pM,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=v();E(0,"div",0)(1,"input",1,2);M("click",function(){w(c);var e=O(2);return z(b.search(e.value))})("input",
function(){w(c);var e=O(2);return z(b.search(e.value))});G();E(3,"mat-autocomplete",3,4);M("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(5,wXa,6,8,"mat-option",5);U(6,"async");G()()}if(a&2){var d=O(4);A(1);ig("placeholder",b.placeholder);D("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);Uf("aria-disabled",b.disabled);A(2);D("panelWidth",b.panelWidth)("displayWith",b.displayFn);A(2);D("ngForOf",V(6,8,b.teamSuggestions$))}},dependencies:[fy,gy,qM,pM,rC,tF,
fh,Ky,Ry,ny,uy],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 mt=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 eec(a.slice(0,e+1),b.slice(0,e+1))})},eec=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};
var G1=function(a){var b=this;this.trackerFridge=a;this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new sx;this.searchQuery$=new W.Subject;this.trackerSuggestions$=this.searchQuery$.pipe(of(300),rf(),Df(function(c){return b.trackerFridge.watchMany({filter:c,pageSize:5})}),C(function(c){return c.results}));this.displayFn=function(c){return c?c.name:""}};G1.prototype.ngAfterViewInit=function(){};G1.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
G1.prototype.search=function(a){this.searchQuery$.next(a)};G1.\u0275fac=function(a){return new (a||G1)(B(KJ))};
G1.\u0275cmp=u({type:G1,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&zg(pM,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=v();E(0,"input",0,1);M("click",function(){w(c);var e=O(1);return z(b.search(e.value))})("input",function(){w(c);var e=O(1);return z(b.search(e.value))});G();E(2,"mat-autocomplete",2,3);M("optionSelected",function(e){return b.updateSelectionOnChange(e)});P(4,yXa,3,2,"mat-option",4);U(5,"async");G()}if(a&
2){var d=O(3);D("placeholder",b.placeholder)("ngModel",b.selectedTracker)("disabled",b.disabled)("matAutocomplete",d);Uf("aria-disabled",b.disabled);A(2);D("displayWith",b.displayFn);A(2);D("ngForOf",V(5,7,b.trackerSuggestions$))}},dependencies:[fy,qM,pM,rC,fh,Ky,Ry,ny],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 H1=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J){Z.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=t;this.componentActions=x;this.teamsService=y;this.searchRuleConfigService=F;this.searchRuleFactory=K;this.cdr=J;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=fec;this.globalTypeLabels=gec;this.state="INIT"};X(H1,Z);H1.\u0275dir=Z.\u0275dir;
var hec=function(a){var b=[];Yb(q1(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,dwa(d)]))},a);b.sort(function(c,d){return kaa(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};H1.prototype.schedule=function(a){this.subscriptions.add(W.asyncScheduler.schedule(a))};H1.prototype.ngOnInit=function(){this.cdr.detectChanges()};
H1.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=hec(this))};
var kec=function(a,b){a.reset();b?iec(a,b):(a.expressions=jec.map(function(c){return FYa(a.searchRuleFactory,c)}),a.state="SUCCESS");a.userApi.getUserSavedSearches().then(function(c){a.userSavedSearches=c;c=n(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=n(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()},iec=function(a,b){dec(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",Mo(a.analytics,"adv-search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return lec(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=n(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state="NOT_REPRESENTABLE",
Mo(a.analytics,"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()})},lec=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?mec(a,b.label.customFieldId).then(function(c){b.customField=
c;return nec(a,b)}):Promise.resolve(nec(a,b))},mec=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},nec=function(a,b){b="ERR"===b.type?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;oec(a,b);return b},oec=function(a,b){switch(b.label.field){case "COMPONENT_ID":var c=n(b.values);for(b=c.next();!b.done;b=c.next())b=iw(b.value.value),a.components[b]||a.fetchComponent(b);break;case "TRACKER_ID":if(a.isTrackerSearchEnabled)for(c=
n(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.trackers[b]||pec(a,b);break;case "TEAM_ID":if(a.sessionIsInternal)for(c=n(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.teams[b]||qec(a,b);break;case "SAVED_SEARCH_ID":c=n(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=n(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})}};H1.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.components[a]=c})};
var pec=function(a,b){a.trackerFridge.watch(b).pipe(Ef(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},qec=function(a,b){aL(a.teamsService,b).pipe(C(function(c){return c.getTeamSuggestionsList()}),nf(function(){return(0,W.of)([])}),Ef(a.destroyed$)).subscribe(function(c){0<c.length?(c=c[0],a.teams[b]={id:c.getId(),pathNames:c.getPathNamesList(),name:c.getName(),description:c.getDescription()}):a.teams[b]={id:b,pathNames:[b],name:b,description:""}})},rec=function(a){var b="AND"===a.expressionType?
" ":" | ";return qnb(a.expressions.map(function(c){return c.label?c.toString():""}),Yob).join(b)};H1.prototype.getState=function(){return this.state};H1.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var IYa=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=FYa(a.searchRuleFactory,d.field),GYa(a,a.expressions[b]));a.cdr.detectChanges()},GYa=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c||"tracker"===c?pt(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=Pdc(new Wi)),b.dateTo||(b.dateTo=Pdc(new Wi)))};H1.prototype.removeExpression=function(a){Ea(this.expressions,a);this.cdr.detectChanges()};
var pt=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?OXa(a,c):"TRACKER_ID"===b.label.field?VXa(a,c):"TEAM_ID"===b.label.field?bYa(a,c):rt(a,c);a.cdr.detectChanges()},ot=function(a,b,c){Ea(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},rt=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},OXa=function(a,b){rt(a,b);a.componentUnderEdit=b.value?Si(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},
VXa=function(a,b){rt(a,b);a.trackerUnderEdit=b.value?Si(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},bYa=function(a,b){rt(a,b);a.teamUnderEdit=b.value?Si(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},qt=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},dYa=function(a,b){Mo(a.analytics,Aq.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;qt(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};H1.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]};
H1.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||a:""};
var gec={AND:"Match all (AND)",OR:"Match any (OR)"},fec={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"}},jec=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];H1.\u0275fac=function(a){return new (a||H1)(B(BK),B(oK),B(tY),B(GM),B(TI),B(KJ),B(E1),B(NG),B(Rd),B(xJ),B(ZR),B($K),B(v1),B(o1),B(qH,2))};
H1.\u0275cmp=u({type:H1,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},features:[mg([qH]),Of,ed],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-enum-rule",4,"ngIf"],[4,"ngIf"],["class","bv2-adv-search-chip-container",4,"ngIf"],[1,"bv2-adv-search-enum-rule"],["class","bv2-adv-search-enum-item",
4,"ngFor","ngForOf"],[1,"bv2-adv-search-enum-item"],[3,"checked","label","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"],[1,"bv2-adv-search-chip-container"],["class","bv2-adv-search-chip bv2-adv-search-chip-text",4,"ngFor","ngForOf"],["mat-stroked-button","","class","bv2-adv-search-chip-add-btn",3,"click",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-chip-text"],[1,"bv2-adv-search-chip-content"],["aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],["mat-stroked-button",
"",1,"bv2-adv-search-chip-add-btn",3,"click"],[4,"ngFor","ngForOf"],["class","bv2-adv-search-chip bv2-adv-search-component-chip",4,"ngIf"],[1,"bv2-adv-search-chip","bv2-adv-search-component-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"],["role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"title","click"],[3,"svgIcon"],["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-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,LYa,11,6,"div",0);a&2&&D("ngIf","SUCCESS"===b.getState())},dependencies:[fy,gy,GT,rU,fh,Ky,cz,Ry,ZW,pC,XC,yD,oF,mF,nF,wR,rC,RO,F1,G1,oU,sy,oL,pL],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%}']});
var I1=function(){};I1.\u0275fac=function(a){return new (a||I1)};I1.\u0275mod=Yc({type:I1});I1.\u0275inj=Ic({imports:[vy,rM,iN,uG,fz]});
var J1=function(){};J1.\u0275fac=function(a){return new (a||J1)};J1.\u0275mod=Yc({type:J1});J1.\u0275inj=Ic({imports:[vy,rM,iN,uG,fz]});
var K1=function(){};K1.\u0275fac=function(a){return new (a||K1)};K1.\u0275mod=Yc({type:K1});K1.\u0275inj=Ic({imports:[vy,HT,sU,fz,iX,AF,YC,uF,aD,pF,xR,SO,vL,I1,J1,qU]});
var sec=function(a){Y.call(this,a)};X(sec,Y);g=sec.prototype;g.getState=function(){return qj(this,2,0)};g.getTitle=function(){return Pi(this,4)};g.setTitle=function(a){return m(this,4,a)};g.getDescription=function(){return Pi(this,5)};g.setDescription=function(a){return m(this,5,a)};g.hasDescription=function(){return Oi(this,5)};g.getLearnMoreLink=function(){return Pi(this,6)};g.setLearnMoreLink=function(a){m(this,6,a)};
var uec=function(a){Y.call(this,a,-1,tec)};X(uec,Y);var tec=[1];uec.messageId="b.ListBeapFeaturesResponse";
var L1=function(a){this.executor=a};L1.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:uec}).pipe(C(function(a){return Nb(a,sec,1)}))};L1.\u0275fac=function(a){return new (a||L1)(p(lH))};L1.\u0275prov=Hc({token:L1,factory:L1.\u0275fac,providedIn:"root"});
var M1=function(a){JJ.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+Ji(b,1)}};X(M1,JJ);M1.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(C(function(a){return{results:a}}))};M1.\u0275fac=function(a){return new (a||M1)(p(L1))};M1.\u0275prov=Hc({token:M1,factory:M1.\u0275fac,providedIn:"root"});
var N1=function(a){this.beapFridge=a};N1.prototype.getFeature=function(a){return vec(this,"ALL").pipe(C(function(b){return b.find(function(c){return Ji(c,1)===a})}))};var vec=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?1:2;return a.beapFridge.watchMany({}).pipe(C(function(e){return e.results.filter(function(f){return c?!0:qj(f,3,0)===d})}))};N1.prototype.refresh=function(){this.beapFridge.pokeMany({})};N1.\u0275fac=function(a){return new (a||N1)(p(M1))};
N1.\u0275prov=Hc({token:N1,factory:N1.\u0275fac,providedIn:"root"});
var O1=function(){};O1.\u0275fac=function(a){return new (a||O1)};
O1.\u0275cmp=u({type:O1,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,MYa,1,0,"div",1),P(2,NYa,1,0,"div",2),L());a&2&&(D("ngSwitch",b.featureStage),A(1),D("ngSwitchCase","TEAM_FOOD"),A(1),D("ngSwitchCase","EARLY_ACCESS"))},dependencies:[iy,jy],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});
var P1=function(a){var b=this;this.beapService=a;this.experimentId$=new W.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(Df(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(C(function(c){if(!c)return"UNKNOWN";c=qj(c,3,0);return 1===c?"TEAM_FOOD":2===c?"EARLY_ACCESS":"UNKNOWN"}))};P1.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};P1.prototype.ngOnInit=function(){};P1.\u0275fac=function(a){return new (a||P1)(B(N1))};
P1.\u0275cmp=u({type:P1,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[ed],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(H(0,"b-feature-stage-label",0),U(1,"async"));if(a&2){var c;D("featureStage",null!==(c=V(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[O1,ny],encapsulation:2});
var Q1=function(){};Q1.\u0275fac=function(a){return new (a||Q1)};Q1.\u0275mod=Yc({type:Q1});Q1.\u0275inj=Ic({imports:[vy]});
var R1=function(){};R1.\u0275fac=function(a){return new (a||R1)};R1.\u0275mod=Yc({type:R1});R1.\u0275inj=Ic({imports:[vy,Q1]});
var S1=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},OYa=function(a){lq(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};S1.\u0275fac=function(a){return new (a||S1)(B(RN))};
S1.\u0275cmp=u({type:S1,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,PYa,3,3,"button",0),P(1,QYa,2,1,"button",1));a&2&&(D("ngIf",!b.menuMode),A(1),D("ngIf",b.menuMode))},dependencies:[gy,yD,pC,mF,tF],styles:["[_nghost-%COMP%] { display: flex; }"]});
var T1=function(a,b,c){Z.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=Cq(a,"enableWhatsNewDialog");this.enableBeap=Cq(a,"enableBeap")};X(T1,Z);T1.\u0275dir=Z.\u0275dir;g=T1.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(Ef(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})};T1.\u0275fac=function(a){return new (a||T1)(B(NG),B(eJ),B(aI))};
T1.\u0275cmp=u({type:T1,selectors:[["b-app-settings-menu"]],features:[Of],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&&(E(0,"button",0),H(1,"mat-icon",1),G(),E(2,"mat-menu",null,2)(4,"div",3),Q(5,"Display Density"),G(),E(6,"button",4),M("click",function(){return b.setDensity("COMFORTABLE")}),E(7,"span",5),H(8,"mat-icon",6),G(),Q(9," Comfortable "),G(),E(10,"button",7),M("click",function(){return b.setDensity("COZY")}),E(11,"span",5),H(12,"mat-icon",6),G(),Q(13," Cozy "),G(),E(14,"button",8),M("click",function(){return b.setDensity("COMPACT")}),E(15,"span",5),H(16,"mat-icon",6),G(),Q(17," Compact "),G(),H(18,"mat-divider"),
E(19,"button",9),M("click",function(d){return b.browseComponents(d)}),Q(20,"Browse components"),G(),E(21,"button",9),M("click",function(d){return b.manageHotlists(d)}),Q(22,"Manage hotlists"),G(),P(23,RYa,2,0,"button",10),E(24,"button",9),M("click",function(d){b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey})}),Q(25,"Settings"),G(),P(26,SYa,3,0,"a",11),P(27,TYa,3,1,"ng-container",12),G());if(a&2){var c=O(3);D("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);A(6);
Zf("b-menu-item-checked","COMFORTABLE"===b.density);Uf("aria-checked","COMFORTABLE"===b.density);A(4);Zf("b-menu-item-checked","COZY"===b.density);Uf("aria-checked","COZY"===b.density);A(4);Zf("b-menu-item-checked","COMPACT"===b.density);Uf("aria-checked","COMPACT"===b.density);A(12);D("ngIf",b.enableBeap);A(1);D("ngIf",b.enableWhatsNewDialog)}},dependencies:[gy,oF,mF,nF,pC,WG,tF,yD,S1,PN,O1],encapsulation:2,changeDetection:0});
var U1=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};U1.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();wec(this)};var wec=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};U1.\u0275fac=function(a){return new (a||U1)(B(oN))};
U1.\u0275cmp=u({type:U1,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&&(E(0,"button",0),M("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&YE(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());SKb(c,!c.clientDarkmodeSubject.getValue());wec(b)}),
H(1,"mat-icon",1),G());a&2&&(A(1),D("svgIcon",b.iconName))},dependencies:[pC,yD,tF],encapsulation:2});
var V1=function(a,b,c,d){this.session=a;this.userFeedback=b;this.domSafe=c;this.docLinks=d;this.enableWhatsNewDialog=Cq(a,"enableWhatsNewDialog");this.majorReleaseNotesUpdated=Cq(a,"majorReleaseNotesUpdated")};V1.\u0275fac=function(a){return new (a||V1)(B(NG),B(qN),B(RN),B(QN))};
V1.\u0275cmp=u({type:V1,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&&(H(0,"theme-change-btn"),P(1,UYa,1,1,"b-whats-new-button",0),P(2,VYa,2,0,"button",1),E(3,"button",2),M("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)}),H(4,"mat-icon",3),G(),H(5,"b-app-settings-menu"));a&2&&(A(1),D("ngIf",b.enableWhatsNewDialog))},
dependencies:[gy,pC,tF,yD,S1,PN,U1,T1],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)}\n/*# sourceMappingURL=app_actions.css.map */"],changeDetection:0});
var W1=function(a,b){this.currentTracker=a;this.appSearchState=b;this.isTrackerExpanded=!1};W1.\u0275fac=function(a){return new (a||W1)(B(LJ),B(IM))};
W1.\u0275cmp=u({type:W1,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&&(E(0,"button",0),M("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),H(1,"mat-icon",1),G(),E(2,"mat-menu",2,3)(4,"span",4),Q(5,"Select a tracker"),G(),P(6,WYa,4,4,"button",5),G());if(a&2){var c=O(3);D("matMenuTriggerFor",c);Uf("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");A(6);D("ngForOf",
b.associatedTrackers)}},dependencies:[fy,pC,yD,oF,mF,nF,tF],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}\n/*# sourceMappingURL=tracker_switcher.css.map */"],
changeDetection:0});
var YYa=function(a){return[a]},ZYa=function(){return[]},X1=function(a){this.activeSession=a;this.clickMenu=new sx;this.showMenu=!1;this.clickLogo=new sx;this.chips=[]};X1.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};X1.\u0275fac=function(a){return new (a||X1)(B(NG))};
X1.\u0275cmp=u({type:X1,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&&(fg(),P(0,XYa,2,0,"button",0),E(1,"a",1),M("click",function(){return b.clickLogo.emit()}),H(2,"img",2)(3,"img",3),E(4,"h1"),Q(5),G()(),gg(6),P(7,$Ya,2,5,"output",4));a&2&&(D("ngIf",b.showMenu),A(1),Uf("href",b.href?b.href:void 0,le),A(1),D("src",b.imgSrc,le),A(1),D("src",b.imgSrcDark||b.imgSrc,le),A(2),kg(b.name),A(2),D("ngForOf",b.chips))},dependencies:[ey,fy,gy,pC,yD],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}\n/*# sourceMappingURL=app_logo.css.map */'],
changeDetection:0});
var xec=function(){return[]},Y1=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};Y1.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"})};
Y1.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};Y1.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:Ai(this.frontendAccessMode,"unknown frontend access mode.")}};
ni.Object.defineProperties(Y1.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"}}});Y1.\u0275fac=function(a){return new (a||Y1)(B(eJ))};
Y1.\u0275cmp=u({type:Y1,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[ed],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(E(0,"app-logo",0),M("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),P(1,aZa,1,1,"tracker-switcher",
1),G());if(a&2){var c;D("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark);A(1);D("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:ng(6,xec)).length)}},dependencies:[gy,X1,W1],encapsulation:2,changeDetection:0});
var Z1=function(){this.isActive=!1;this.optionClicked=new sx};Z1.prototype.ngOnInit=function(){};Z1.prototype.onClick=function(){this.optionClicked.emit(this.index)};Z1.\u0275fac=function(a){return new (a||Z1)};
Z1.\u0275cmp=u({type:Z1,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&M("click",function(){return b.onClick()});a&2&&Zf("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&&(fg(),E(0,"div",0),gg(1),G())},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%}\n/*# sourceMappingURL=app_search_auto_complete_option.css.map */"],
changeDetection:0});
var a2=function(a,b){this.ref=a;this.hostElement=b;this.items=[];this.header=null;this.itemSelected=new sx;this.activeItemChanged=new sx;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team tracker".split(" ")};a2.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};a2.prototype.ngAfterViewInit=function(){};var BZa=function(a){var b=N(3);JZa(a);b.itemSelected.emit(a)};
a2.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(),yec(this))};
a2.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(),yec(this))};var zec=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};a2.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var Aec=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}},yec=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&BUb(b.nativeElement,a.hostElement.nativeElement)},JZa=function(a){uo(Aq.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};a2.\u0275fac=function(a){return new (a||a2)(B(qH,2),B(Rd))};
a2.\u0275cmp=u({type:a2,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&zg(Z1,5,Rd);if(a&2){var c;yg(c=Bg())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[mg([qH]),ed],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,vZa,
7,6,"div",0),E(1,"div",1),P(2,KZa,9,11,"b-app-search-auto-complete-option",2),G());a&2&&(D("ngIf",b.header&&b.header.type),A(2),D("ngForOf",b.items))},dependencies:[fy,gy,sR,bS,Z1,oy],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}\n/*# sourceMappingURL=app_search_auto_complete_list.css.map */"],
changeDetection:0});
var Bec=["box"],Cec=["initialFocus"],Dec=["finalFocus"],b2=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 sx;this.onAdvancedSearchClose=new sx;this.onAdvancedSearchSubmit=new sx;this.onSaveSearch=new sx;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";
this.destroyed$=new W.Subject;this.currentQuery$=this.appSearchState.queryState$.pipe(C(function(d){return d.query}));this.autoCompleteItemSelected$=new W.Subject;this.isAnonymous=this.activeSession.isAnonymous()};
b2.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Gf(this.currentQuery$),Ef(this.destroyed$)).subscribe(function(b){var c=n(b);b=c.next().value;c=c.next().value;b=b.completionCfg;a.appSearchState.queryState$.next({query:c.slice(0,b.startIdx)+b.completionValue+c.slice(b.endIdx),cursorPosition:null!=b.cursorIdx?b.cursorIdx:null==b.startIdx?b.completionValue.length:b.startIdx+b.completionValue.length,setViaInteraction:!1});a.inputBox.nativeElement.focus()})};
b2.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(hf(function(b){return!b.setViaInteraction}),Ef(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,$Tb(b)&&(b.selectionStart=c,b.selectionEnd=c))})};b2.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var Eec=function(a){a.appSearchState.searchTriggered$.next("keyboard")},Fec=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};
b2.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!c2(this))return;Gec(this);break;case "ArrowUp":if(!c2(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!c2(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!c2(this)){Fec(this,this.inputBox.nativeElement.value);return}zec(this.acList);break;case "ArrowLeft":Fec(this,this.inputBox.nativeElement.value);return;case "Enter":c2(this)?null!=this.acList.activeItemIndex?zec(this.acList):
Eec(this):Eec(this);break;default:return}a.preventDefault();a.stopPropagation()};b2.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Hec(this)};b2.prototype.getCursorPosition=function(){var a=aUb(this.inputBox.nativeElement,!0)[0];if(a===aUb(this.inputBox.nativeElement,!1)[1])return a};
var Gec=function(a){"auto_complete"===a.dropdownStatus&&(a.dropdownStatus="closed")},Hec=function(a){"advanced_search"===a.dropdownStatus&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},c2=function(a){return"auto_complete"===a.dropdownStatus&&0<a.autoCompleteItems.length},Iec=function(a){return"auto_complete"===a.dropdownStatus&&null!=a.autoCompleteHeader},Jec=function(a){return"advanced_search"===a.dropdownStatus};
b2.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",Hec(this))};var Kec=function(a,b){b.shiftKey&&"Tab"===b.key&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},LZa=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};b2.\u0275fac=function(a){return new (a||b2)(B(QN),B(IM),B(NG))};
b2.\u0275cmp=u({type:b2,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(zg(a2,7),zg(Bec,5),zg(Cec,7,Rd),zg(Dec,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",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"],[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=v();fg();E(0,"div",0);M("clickOutside",function(){Gec(b)});E(1,"div",1)(2,"button",2);M("click",function(){return Eec(b)});H(3,"mat-icon",3);G();E(4,"textarea",4,5);M("keydown",function(d){return b.handleKeydown(d)})("input",
function(){w(c);var d=O(5);return z(Fec(b,d.value))})("click",function(){w(c);var d=O(5);return z(Fec(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});G();E(6,"button",6);M("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});H(7,"mat-icon",7);G()();E(8,"aside",8)(9,"b-app-search-auto-complete-list",9);M("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});G();E(10,"div",10)(11,"div",11)(12,"button",12,13);M("keydown",function(d){return Kec(b,
d)})("click",function(){return Hec(b)});H(14,"mat-icon",14);G()();E(15,"div",15);gg(16);G();E(17,"div",16)(18,"button",17);M("click",function(){return b.submitAdvancedSearch()});Q(19," Search ");G();E(20,"a",18);Q(21,"Search help ");H(22,"mat-icon",19);G();P(23,MZa,5,2,"div",20);G()()()()}a&2&&(Zf("dropdown-opened",c2(b)||Iec(b)||Jec(b)),A(1),Zf("hidden",Jec(b)),A(3),D("placeholder",b.placeholder),Uf("aria-activedescendant",Aec(b.acList))("aria-expanded",c2(b)||Iec(b)),A(4),Zf("advanced-search-open",
Jec(b)),A(1),Zf("hidden",!(c2(b)||Iec(b))),D("items",b.autoCompleteItems)("header",b.autoCompleteHeader),A(1),Zf("hidden",!Jec(b)),A(2),D("disabled",b.isSearchDisabled),A(6),D("disabled",b.isSearchDisabled),A(2),Uf("href",b.searchHelpLink,le),A(3),D("ngIf",!b.isAnonymous))},dependencies:[gy,iB,pC,tF,yD,fh,Ky,Ry,TO,PC,a2],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%}.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}\n/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});
var d2=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new sx;this.searchBoxOnAdvancedSearchClose=new sx;this.searchBoxOnAdvancedSearchSubmit=new sx;this.searchBoxOnSaveSearch=new sx};d2.\u0275fac=function(a){return new (a||d2)(B(LJ))};
d2.\u0275cmp=u({type:d2,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:6,vars:12,consts:[[3,"environmentType","frontendAccessMode","tracker","associatedTrackers"],[3,"placeholder","autoCompleteItems","autoCompleteHeader","isSearchDisabled","onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch"]],template:function(a,b){a&1&&(fg(),H(0,"b-app-logo",0),U(1,"async"),U(2,"async"),E(3,"b-app-search-box",1),M("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)}),gg(4),G(),H(5,"b-app-actions"));a&2&&(D("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",V(1,8,b.currentTracker.tracker$))("associatedTrackers",V(2,10,b.currentTracker.associatedTrackers$)),A(3),D("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",
b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[Y1,V1,b2,ny],styles:["[_nghost-%COMP%]{display:flex;align-items:center}b-app-search-box[_ngcontent-%COMP%]{display:flex;flex-grow:1;justify-content:center}\n/*# sourceMappingURL=app_top_bar.css.map */"],changeDetection:0});
var e2=function(){};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275mod=Yc({type:e2});e2.\u0275inj=Ic({imports:[vy,NC,AF,QM]});
var f2=function(){};f2.\u0275fac=function(a){return new (a||f2)};f2.\u0275mod=Yc({type:f2});f2.\u0275inj=Ic({imports:[vy,AF,uF,pF,uG]});
var g2=function(){};g2.\u0275fac=function(a){return new (a||g2)};g2.\u0275mod=Yc({type:g2});g2.\u0275inj=Ic({imports:[vy,uF,AF,pF,uG]});
var h2=function(){};h2.\u0275fac=function(a){return new (a||h2)};h2.\u0275mod=Yc({type:h2});h2.\u0275inj=Ic({imports:[vy,AF,uF,uG]});
var i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=Yc({type:i2});i2.\u0275inj=Ic({providers:[oN]});
var j2=function(){};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275mod=Yc({type:j2});j2.\u0275inj=Ic({imports:[vy,AF,uF,uG,i2]});
var k2=function(){};k2.\u0275fac=function(a){return new (a||k2)};k2.\u0275mod=Yc({type:k2});k2.\u0275inj=Ic({imports:[vy,pF,AF,aH,uG,uF,pB,fz,UO,g2,UN,h2,DR,RC,Q1,j2,e2,f2,fS]});
var l2=function(){};l2.\u0275fac=function(a){return new (a||l2)};l2.\u0275mod=Yc({type:l2});l2.\u0275inj=Ic({imports:[vy,AF,NC]});
var m2=function(){};m2.\u0275fac=function(a){return new (a||m2)};m2.\u0275mod=Yc({type:m2});m2.\u0275inj=Ic({imports:[vy,fz,AF,aD,YC,NC,qU]});
var n2=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 sx;this.selectedChange=new sx;this.cardTitleChange=new sx;this.onSaveButtonClicked=new sx;this.onCancelButtonClicked=
new sx;this.isInheritedChange=new sx;this.isExpanded=!1};n2.prototype.expand=function(){this.isExpanded=!0};n2.prototype.collapse=function(){this.isExpanded=!1};n2.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};n2.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};n2.\u0275fac=function(a){return new (a||n2)};
n2.\u0275cmp=u({type:n2,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&&(fg(),E(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),M("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),G(),P(3,NZa,3,3,"ng-container",3),E(4,"button",4),M("click",function(){b.isExpanded?b.collapse():b.expand()}),P(5,OZa,1,0,"mat-icon",5),P(6,PZa,1,0,"mat-icon",6),G(),P(7,UZa,3,7,"ng-template",null,
7,Hg),G(),P(9,VZa,2,0,"div",8),P(10,$Za,9,6,"div",9),G());if(a&2){var c=O(8);Uf("aria-expanded",b.isExpanded);A(2);Zf("expanded-checkbox",b.isExpanded);D("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);A(1);D("ngIf",!b.isExpanded)("ngIfElse",c);A(1);D("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");Uf("aria-label",b.isExpanded?"Collapse editor":"Expand editor");A(1);D("ngIf",b.isExpanded);A(1);D("ngIf",!b.isExpanded);A(3);D("ngIf",b.isExpanded);A(1);D("ngIf",b.isExpanded)}},
dependencies:[ey,fy,gy,fh,Ky,bz,cz,Ry,fN,pC,jS,yD,XC,VC,wR,vR,rC,WG,$C,tF],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 o2=function(){};o2.\u0275fac=function(a){return new (a||o2)};o2.\u0275mod=Yc({type:o2});o2.\u0275inj=Ic({imports:[vy,fz,iN,AF,kS,uF,xR,aH,aD,uG]});
var Mec=function(a){Y.call(this,a,-1,Lec)};X(Mec,Y);Mec.prototype.setFieldIdList=function(a){return Mb(this,1,a)};var Lec=[1];Mec.messageId="b.ReorderFieldsRequest";
var Oec=function(a){Y.call(this,a,-1,Nec)};X(Oec,Y);Oec.prototype.setFieldIdList=function(a){return Mb(this,1,a)};var Nec=[1];Oec.messageId="b.ReorderFieldsResponse";
var p2=function(a){this.executor=a};p2.prototype.updateCustomFieldState=function(a,b,c){var d=new tm;d.setCustomFieldId(b);var e=new DI;Vb(e,1,d);e.setStateOnIssues(c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:DI})};p2.prototype.reorder=function(a,b){b=(new Mec).setFieldIdList(b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:Oec})};p2.\u0275fac=function(a){return new (a||p2)(p(lH))};
p2.\u0275prov=Hc({token:p2,factory:p2.\u0275fac,providedIn:"root"});
var Pec=["SILENT","MINOR","MAJOR"];
var Qec=["fieldStateMenu"],d_a=function(a){return{type:a}},q2=function(a,b,c,d,e,f,h,k,q,t,x){Z.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=t;this.appEvents=x;this.FieldType=pVb;this.ListFieldType=iWb;this.getSingleEditFieldType=qVb;this.getListFieldType=jWb;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=Pec;Object.keys(ira).slice(0).filter(function(F){return"UNSPECIFIED"!==F});this.componentId=Xi(this.routeParams.componentId);this.subscriptions.add(aY(b,function(){return y.hasUnsavedChanges()},!0))};X(q2,Z);q2.\u0275dir=Z.\u0275dir;
q2.prototype.ngOnInit=function(){this.loadCustomFields()};q2.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};
q2.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||U2b())this.editableField=Si(this.customFields[a]),this.originalEditableFieldValue=Si(this.editableField),this.serverError=null,this.setType(this.editableField.type),h_a(this,this.editableField.allowedValue)};
var t_a=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Co("Deleting a custom field is permanent and will remove display of this custom field on all issues in this component and child components. Are you sure you want to delete this field?"),onConfirm:function(){a.doDelete(c)}})};
q2.prototype.doDelete=function(a){var b=this;vJ(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId);Mo(b.analytics,"customField","delete");vJ(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
q2.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId);a.loadCustomFields();Mo(a.analytics,"customField",d)},c=function(e){a.serverError=Xn(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)};
q2.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId,a.customFieldId,b).pipe(Ef(d.destroyed$)).subscribe(function(){a:{switch(b){case 1:var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case 2:h="Disabled";break a;case 3:h="Enabled";break a}h=void 0}Mo(d.analytics,"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(){return e(void 0)})},function(h){d.serverError=Xn(h);d.isLoading=!1;f(h)})})};q2.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var k_a=function(a,b){var c=a.editableField.type;a.editableField.typedDefaultValue=new wm({customFieldId:a.editableField.customFieldId,textValue:"TEXT"===c?b:void 0,dateValue:"DATE"===c?b:void 0,enumValue:"ENUM"===c?b:void 0,numericValue:"NUMERIC"===c?b:void 0,repeatedTextValue:"REPEATED_TEXT"===c?{values:b}:void 0,repeatedDateValue:"REPEATED_DATE"===c?{values:b}:void 0,repeatedEnumValue:"REPEATED_ENUM"===c?{values:b}:void 0,repeatedNumericValue:"REPEATED_NUMERIC"===c?{values:b}:void 0})};
q2.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 h_a=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}}):[]};q2.prototype.hasUnsavedChanges=function(){return this.editableField&&!Ri(this.editableField,this.originalEditableFieldValue)?!0:!1};
q2.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 gv(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 z_a=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};q2.prototype.trackClick=function(a){Mo(this.analytics,"editComponent","click",a)};
var l_a=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};q2.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};q2.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
q2.\u0275fac=function(a){return new (a||q2)(B(tY),B($X),B(uJ),B(BK),B(tQ),B(ZR),B(p2),B(QN),B(pI),B(UL),B(eJ))};
q2.\u0275cmp=u({type:q2,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&zg(Qec,5);if(a&2){var c;yg(c=Bg())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[Of,ed],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&&(E(0,"div",0),P(1,q_a,68,32,"div",1),P(2,r_a,2,1,"div",2),P(3,F_a,26,7,"div",3),G());a&2&&(A(1),D("ngIf",b.editableField&&!b.isLoading),A(1),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading))},dependencies:[ey,fy,gy,Sy,fh,Ky,Ly,bz,Ry,Py,fU,KT,QG,bZ,iM,jM,mM,kM,tR,tF,
oF,mF,nF,lF,pC,XY,tU,fM,QH,lL,kL,nL],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 r2=function(){};r2.\u0275fac=function(a){return new (a||r2)};r2.\u0275mod=Yc({type:r2});r2.\u0275inj=Ic({imports:[vy,fz,gU,LT,$G,cZ,TM,ER,uG,pF,AF,xR,YY,uU,vL,RM,UH]});
var s2=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new sx;this.addRow=new sx;this.optionsChange=new sx};s2.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};s2.prototype.drop=function(a){Mp(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};s2.\u0275fac=function(a){return new (a||s2)};
s2.\u0275cmp=u({type:s2,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&&(E(0,"div",0)(1,"div",1)(2,"span",2),Q(3," Dropdown value "),G()(),E(4,"div",3)(5,"span",4),Q(6," Average days "),G(),H(7,"mat-icon",5),G()(),E(8,"div",6),M("cdkDropListDropped",function(c){return b.drop(c)}),P(9,H_a,12,13,"div",7),G(),P(10,I_a,2,0,"button",8));a&2&&(A(2),Zf("muted",b.disabled),A(3),Zf("muted",b.disabled),A(2),D("matTooltip","All estimated effort types map to an average number of days."),A(2),D("ngForOf",b.options),A(1),D("ngIf",!b.disabled))},dependencies:[fy,gy,XC,$C,pC,
yD,tF,cU,dU,XT],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 t2=function(){this.disabled=!1;this.valueChange=new sx};t2.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};t2.\u0275fac=function(a){return new (a||t2)};
t2.\u0275cmp=u({type:t2,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&&(E(0,"div",0)(1,"div",1)(2,"span",2),Q(3," Time "),G(),E(4,"span",3),Q(5,"1"),G()(),E(6,"div",1)(7,"div",4)(8,"span",5),Q(9," Average days "),G(),H(10,"mat-icon",6),G(),E(11,"mat-form-field",
7)(12,"input",8,9),M("change",function(d){return b.onValueChange(d)}),G()()()());if(a&2){var c=O(13);A(2);Zf("muted",b.disabled);A(6);Zf("muted",b.disabled);A(2);D("matTooltip","All estimated effort types map to an average number of days.");A(1);D("appearance",c.focused?"standard":"none");A(1);D("disabled",b.disabled)("value",b.value)}},dependencies:[XC,$C,yD,tF],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 v2=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new sx;this.configurationOptions=[Rec,Sec,u2];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=bEb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=Cq(this.activeSession,"enableAggregationRules")};
v2.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&Gl(this.effortSpec)&&(this.originalSelectedEffortConfig=u2)};v2.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=this.effortSpec.clone(),this.setValues(this.effortSpec))};
v2.prototype.setValues=function(a){if(Gl(a)){this.selectedEffortConfig=u2;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=Hl(b,Al,4,Il))?void 0:Jl(c,1))?d:1}Kl(a)&&(this.selectedEffortConfig=void 0,this.enumSpecOptions=Nb(Ll(a),Cl,1).map(function(f){return{label:f.getLabel(),value:f.getValue()}}));var e;this.inherit=null!=(e=a.getInherit())?e:!1;this.name=""===a.getName()?"Estimated effort":a.getName();if(Kl(a)||Gl(a))this.estimatedEffortFieldEnabled=!0;qj(a,
6,0)!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=qj(a,6,0))};var Tec=function(a){var b,c,d;if((null==(b=a.effortSpec)?0:Kl(b))&&!a.selectedEffortConfig||(null==(c=a.selectedEffortConfig)?void 0:c.displayText)===Rec.displayText||(null==(d=a.selectedEffortConfig)?void 0:d.displayText)===Sec.displayText)return"enum";var e;return(null==(e=a.selectedEffortConfig)?void 0:e.displayText)===u2.displayText?"numeric":"empty"};
v2.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};v2.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=n(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 Uec=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};v2.\u0275fac=function(a){return new (a||v2)(B(NG))};
v2.\u0275cmp=u({type:v2,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[ed],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&&(E(0,"b-collapsible-card",0),M("cardTitleChange",function(c){return b.name=c})("dropdownSelectionChanged",function(c){b.selectedEffortConfig=
c;c.displayText===Rec.displayText?(b.enumSpecOptions=[].concat(r(Vec)),b.name="Story points"):c.displayText===Sec.displayText?(b.enumSpecOptions=[].concat(r(Wec)),b.name="T-shirt sizes"):c.displayText===u2.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){var c=new zl;if(b.estimatedEffortFieldEnabled){c.setName(b.name).setInherit(b.inherit);b.enableAggregationRules&&Dl(c,6,b.selectedAggregationRule);b.originalEffortSpec&&0!==
b.originalEffortSpec.getCustomFieldId()&&c.setCustomFieldId(b.originalEffortSpec.getCustomFieldId());var d;if((null==(d=b.selectedEffortConfig)?void 0:d.displayText)===u2.displayText)yqa(c,zqa(new Al,b.numericSpecMultiplier));else if(0<b.enumSpecOptions.length){d=[];for(var e=n(b.enumSpecOptions),f=e.next();!f.done;f=e.next())f=f.value,f.label&&null!==f.value&&d.push((new Cl).setLabel(f.label).setValue(f.value));Aqa(c,Bqa(new Bl,d))}}else c.setName("").setInherit(!1);b.updateEffortSpec.emit(c)})("selectedChange",
function(c){b.estimatedEffortFieldEnabled=c;b.estimatedEffortFieldEnabled||Uec(b)})("onCancelButtonClicked",function(){b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,Uec(b))})("isInheritedChange",function(c){(c=c.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:(new zl).setName("Estimated effort")),b.effortSpec=b.parentEffortSpec,b.effortSpec||Uec(b)):b.effortSpec&&(b.setValues(new zl),
Uec(b));b.inherit=c}),E(1,"div",1),P(2,K_a,2,1,"ng-container",2),P(3,L_a,2,2,"ng-container",2),P(4,M_a,1,0,"ng-container",2),G(),P(5,N_a,23,13,"div",3),G(),P(6,O_a,1,2,"ng-template",null,4,Hg));a&2&&(D("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),A(1),D("ngSwitch",Tec(b)),A(1),D("ngSwitchCase","enum"),A(1),D("ngSwitchCase","numeric"),A(1),D("ngSwitchCase","empty"),A(1),D("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[gy,my,iy,jy,XC,qC,yD,n2,tF,wR,vR,rC,s2,t2,w2]},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 Vec=[{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}],Wec=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],Rec={displayText:"Story points",icon:"story-point-24px"},Sec={displayText:"T-shirt sizes",icon:"t-shirt-24px"},u2={displayText:"Time",icon:"time-24px"},w2=function(){};
w2.prototype.transform=function(a){switch(a){case 2:return"Max Point";default:return"Simple Sum"}};w2.\u0275fac=function(a){return new (a||w2)};w2.\u0275pipe=$c({name:"aggregationRuleText",type:w2,pure:!0});
var x2=function(){this.disabled=!1;this.updateComponent=new sx};x2.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.effortSpecJspb=El(this.effortSpec));a.parentEffortSpec&&this.parentEffortSpec&&(this.parentEffortSpecJspb=El(this.parentEffortSpec))};x2.\u0275fac=function(a){return new (a||x2)};
x2.\u0275cmp=u({type:x2,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},features:[ed],decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","disabled","updateEffortSpec"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"div",1),Q(2,"Once activated, standard fields appear in the right panel of all issues."),G(),E(3,"b-estimated-effort-config",
2),M("updateEffortSpec",function(c){b.updateComponent.emit(c)}),G()());a&2&&(A(3),D("effortSpec",b.effortSpecJspb)("parentEffortSpec",b.parentEffortSpecJspb)("disabled",b.disabled))},dependencies:[v2],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});
var y2=function(){};y2.\u0275fac=function(a){return new (a||y2)};y2.\u0275mod=Yc({type:y2});y2.\u0275inj=Ic({imports:[vy,aD,AF,uF,iN,o2,uG,xR,eU]});
var z2=function(){};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275mod=Yc({type:z2});z2.\u0275inj=Ic({imports:[vy,o2,y2]});
var Xec={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};
var A2=function(a,b,c,d,e,f,h,k,q,t){Z.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=t;this.teamSuggestionIds=[];this.header="";this.teamOptions=[];this.teamAction="CHANGE";this.WarningType=Xec;this.warningType=a.warningType;this.componentId=a.componentId;this.parentComponentId=a.parentComponentId;this.teamSuggestionIds=a.teamSuggestionIds;
this.selectedTeam=new Yec(this.teamSuggestionIds[0]||"0",[]);this.componentSetting=this.pathBuilder.editComponent(this.componentId,"basic");this.suggestedTeams$=FIb(this.teamsService,this.teamSuggestionIds).pipe(C(function(y){var F=[];y=rj(y,1,NI);for(var K=n(x.teamSuggestionIds),J=K.next();!J.done;J=K.next())J=J.value,y.has(J)&&F.push(new Yec(J,Ki(y.get(J),6)));return F}),Cf([]));this.myTeams$=aL(this.teamsService,"").pipe(C(function(y){var F=[];y=y.getTeamSuggestionsList();y=n(y);for(var K=y.next();!K.done;K=
y.next())K=K.value,F.push(new Yec(K.getId(),K.getPathNamesList()));return F}));(0,W.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(C(function(y){var F=n(y);y=F.next().value;F=F.next().value;return[].concat(r(y),r(F))}),C(fBb(function(y){return y.teamId})),Ef(this.destroyed$)).subscribe(function(y){x.teamOptions=y;x.selectedTeam=y[0]})};X(A2,Z);A2.\u0275dir=Z.\u0275dir;
A2.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
A2.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;Zec(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):Zec(this,"0",this.selectedTeam.teamId);else{var b=Si(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});GDb(this.userPreferencesManager,b).pipe(Ef(this.destroyed$)).subscribe(function(){Mo(a.analytics,
Aq.TEAM_WARNING,"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var Zec=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);Mo(a.analytics,Aq.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)})};
A2.prototype.selectOption=function(a){this.selectedTeam=a};A2.prototype.trackClick=function(a){Mo(this.analytics,Aq.TEAM_WARNING,"click",a)};A2.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};A2.\u0275fac=function(a){return new (a||A2)(B(HC),B(EC),B($W),B($K),B(ZR),B(aI),B(rJ),B(BK),B(xJ),B(ZJ))};
A2.\u0275cmp=u({type:A2,selectors:[["b-team-warning-dialog"]],features:[Of],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&&(E(0,"h1",0),Q(1),G(),P(2,Q_a,5,1,"div",1),
P(3,R_a,5,1,"div",1),P(4,S_a,7,1,"mat-radio-group",2),P(5,W_a,6,6,"div",3),E(6,"mat-dialog-actions")(7,"button",4),Q(8," Cancel "),G(),E(9,"button",5),M("click",function(){return b.confirm()}),Q(10," Confirm "),G()());a&2&&(A(1),kg(b.header),A(1),D("ngIf",b.warningType===b.WarningType.MISSING),A(1),D("ngIf",b.warningType===b.WarningType.DELETED),A(1),D("ngIf",b.warningType===b.WarningType.MISSING),A(1),D("ngIf",0<b.teamOptions.length))},dependencies:[gy,Ky,Ry,pC,qC,JC,KC,LC,MC,yD,eX,fX,tF,yO],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 Yec=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};
var B2=function(a,b){Z.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new sx};X(B2,Z);B2.\u0275dir=Z.\u0275dir;B2.prototype.ngOnInit=function(){};B2.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")};
B2.prototype.openDialog=function(){var a=this;Mo(this.analytics,Aq.TEAM_WARNING,"open");CC(this.matDialogService.open(A2,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.getTeamId())})}})).pipe(Ef(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};B2.\u0275fac=function(a){return new (a||B2)(B(IC),B(BK))};
B2.\u0275cmp=u({type:B2,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[Of,ed],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(E(0,"b-callout",0)(1,"b-callout-body"),Q(2),G(),P(3,X_a,3,1,"b-callout-actions",1),G());
a&2&&(A(2),T(" ",b.warningMessage," "),A(1),D("ngIf",!b.messageOnly))},dependencies:[FL,fH,gH,gy],encapsulation:2});
var C2=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new sx;this.inherit=!1;this.selectedTeam$=new W.Subject;this.teamIdChanged$=new W.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(C(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),Cf(""));this.teamFromId$=this.teamIdChanged$.pipe(Df(function(c){return"0"===
c?(0,W.of)(new mt([c],[""],"")):b.teamsService.getTeam(c).pipe(C(function(d){return new mt([],Ki(d,6),d.getDescription())}),nf(function(){return(0,W.of)(new mt([c],[c],""))}))}));this.displayedTeam$=(0,W.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(Df(function(c){return"0"===c?(0,W.of)("MISSING"):b.teamsService.getTeam(c).pipe(C(function(d){return d.getDeleted()?"DELETED":"VALID"}))}))};
C2.prototype.updateSelectionOnChange=function(a){uo(Aq.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);$ec(this)};var $ec=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};C2.prototype.ngOnInit=function(){Object.assign({},this.model);$ec(this)};var tt=function(a){return a.model.id&&"0"!==a.model.id};
C2.prototype.getMomaTeamLink=function(){return tt(this)?"https://moma.corp.google.com/team/"+this.model.id:null};C2.\u0275fac=function(a){return new (a||C2)(B($K))};
C2.\u0275cmp=u({type:C2,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&&(E(0,"div"),P(1,Z_a,2,1,"ng-container",0),U(2,"async"),P(3,$_a,3,2,"div",1),E(4,"div",2)(5,"label",3),Q(6,"Team selection"),G(),E(7,"b-team-picker",4),M("onTeamSelect",
function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);$ec(b)}),U(8,"async"),U(9,"async"),G(),P(10,b0a,2,1,"ng-container",5),G()(),P(11,d0a,1,1,"ng-template",null,6,Hg));if(a&2){var c=O(12);A(1);D("ngIf",V(2,7,b.warningType$));A(2);D("ngIf",!b.isTopLevel);A(4);D("placeholder",V(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",V(9,11,b.displayedTeam$));A(3);D("ngIf",b.useInternalLink)("ngIfElse",c)}},
dependencies:[gy,fN,tF,F1,B2,yD,qC,QH,ny],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 D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=Yc({type:D2});D2.\u0275inj=Ic({imports:[GL,HL,vy,fz,AF,NC,uF,mX,qJ,uG,NO]});
var E2=function(){};E2.\u0275fac=function(a){return new (a||E2)};E2.\u0275mod=Yc({type:E2});E2.\u0275inj=Ic({imports:[vy,rM,iN,uG,I1,D2,fz,uF,AF,UH]});
var F2=function(a){this.documentationLinks=a};F2.\u0275fac=function(a){return new (a||F2)(B(QN))};
F2.\u0275cmp=u({type:F2,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&&(E(0,"h1",0),Q(1,"Apply component retention settings?"),G(),E(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. "),G(),E(5,"a",2),Q(6,"Learn more"),G()(),E(7,"div",3)(8,"button",4),Q(9," Cancel "),G(),E(10,"button",5),Q(11," OK "),G()());a&2&&(A(5),D("href",Hu(),le),A(3),D("mat-dialog-close",!1),A(2),D("mat-dialog-close",!0))},dependencies:[JC,KC,LC,MC,pC],encapsulation:2});
var G2=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};G2.\u0275fac=function(a){return new (a||G2)(B(HC),B(QN))};
G2.\u0275cmp=u({type:G2,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&&(E(0,"h1",0),Q(1),G(),E(2,"div",1)(3,"span"),Q(4," Please select the reason for deleting this attachment. "),E(5,"a",2),Q(6," \u00a0Learn more "),G()(),E(7,"mat-radio-group",3),M("ngModelChange",function(c){return b.selectedReason=c}),P(8,f0a,3,4,"mat-radio-button",4),G()(),E(9,"div",5)(10,"button",6),Q(11," Cancel "),G(),E(12,"button",7),Q(13," Delete "),G()());a&2&&(A(1),T("Delete attachment ",b.attachmentId,""),A(4),D("href",
pLb(b.documentationLinks),le),A(2),D("ngModel",b.selectedReason),A(1),D("ngForOf",b.deletionReasons),A(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[fy,gy,JC,KC,LC,MC,pC,Ky,Ry,eX,fX],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});
var H2=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};H2.\u0275fac=function(a){return new (a||H2)(B(HC),B(QN))};
H2.\u0275cmp=u({type:H2,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&&(E(0,"h1",0),Q(1),G(),E(2,"div",1)(3,"label"),Q(4,"Please select the reason for deleting this comment."),G(),E(5,"a",2),Q(6," \u00a0Learn more "),G(),E(7,"mat-radio-group",3),M("ngModelChange",function(c){return b.selectedReason=c}),P(8,h0a,3,4,"mat-radio-button",4),G()(),E(9,"div",5)(10,"button",6),Q(11," Cancel "),G(),E(12,"button",7),Q(13," Delete "),G()());a&2&&(A(1),lg("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),A(4),D("href",pLb(b.documentationLinks),le),A(2),D("ngModel",b.selectedReason),A(1),D("ngForOf",b.deletionReasons),A(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[fy,gy,JC,KC,LC,MC,pC,Ky,Ry,eX,fX],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});
var I2=function(a,b){this.documentationLinks=a;this.activeSession=b;this.REMOVAL_URL=i0a(this.activeSession.isInternalSession())};I2.\u0275fac=function(a){return new (a||I2)(B(QN),B(NG))};
I2.\u0275cmp=u({type:I2,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&&(E(0,"h1",0),Q(1,"Report spam?"),G(),E(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, "),E(5,"a",2),Q(6,"see here"),G(),Q(7,". "),G(),H(8,"p"),E(9,"p"),Q(10," To delete PII or other sensitive content, "),E(11,"a",2),Q(12,"file a support request"),G(),Q(13,". "),G()(),E(14,"div",3)(15,"button",4),Q(16," Cancel "),G(),E(17,"button",5),Q(18," Report spam "),G()());a&2&&(A(5),D("href",nLb(b.documentationLinks),le),A(6),D("href",b.REMOVAL_URL,
le),A(4),D("mat-dialog-close",!1),A(2),D("mat-dialog-close",!0))},dependencies:[JC,KC,LC,MC,pC],encapsulation:2});
var J2=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};J2.\u0275fac=function(a){return new (a||J2)(B(QN))};
J2.\u0275cmp=u({type:J2,selectors:[["b-issue-indefinite-retention-dialog"]],decls:27,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","","label","I acknowledge",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&&(E(0,
"h1",0),Q(1,"Retain issue indefinitely?"),G(),E(2,"div",1)(3,"p"),Q(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),G(),E(5,"p")(6,"b"),Q(7,"Please note indefinite retention is not appropriate in many circumstances."),G(),H(8,"br"),Q(9," Before selecting this option, you should make sure at least one of the following is true: "),G(),E(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. "),
G(),E(13,"li"),Q(14," You have a process in place to manually delete this issue within an approved period of time. "),G(),E(15,"li"),Q(16," Legal and Privacy have approved this non-standard retention period. "),G()(),H(17,"p"),E(18,"p")(19,"a",2),Q(20,"Learn more"),G()(),E(21,"b-checkbox",3),M("change",function(c){return b.indefiniteRetentionAcknowledged=c}),G()(),E(22,"div",4)(23,"button",5),Q(24," Cancel "),G(),E(25,"button",6),Q(26," OK "),G()());a&2&&(A(19),D("href",Hu(),le),A(2),D("checked",
b.indefiniteRetentionAcknowledged),A(2),D("mat-dialog-close",!1),A(2),D("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[JC,KC,LC,MC,pC,RO],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});
var tu=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;yJ(e.errorHandler,"Fetching comment reaction responders failed\n "+
f.message);e.dialogRef.close()})};tu.\u0275fac=function(a){return new (a||tu)(B(HC),B(zL),B(xJ),B(EC))};
tu.\u0275cmp=u({type:tu,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&&(E(0,"h1",0),Q(1),G(),E(2,
"div",1)(3,"mat-tab-group",2)(4,"mat-tab"),P(5,j0a,1,1,"ng-template",3),P(6,k0a,1,0,"b-spinner",4),P(7,m0a,2,1,"ng-container",4),G()()(),E(8,"div",5)(9,"button",6),Q(10," OK "),G()());a&2&&(A(1),T("View Reactions for Comment #",b.commentNumber,""),A(5),D("ngIf",b.loadingResponders),A(1),D("ngIf",!b.loadingResponders),A(2),D("mat-dialog-close",!0))},dependencies:[fy,gy,JC,KC,LC,MC,pC,yD,fM,YV,ZV,XV],styles:["[_nghost-%COMP%]     .mat-tab-label {\n      height: 32px;\n    }\n    [_nghost-%COMP%]     .mat-tab-body-wrapper {\n      margin-top: 8px;\n    }"]});
var K2=function(){};K2.\u0275fac=function(a){return new (a||K2)};K2.\u0275mod=Yc({type:K2});K2.\u0275inj=Ic({imports:[vy,NC,AF,SO,aD,fz,YC,uF,mX,RM,bW]});
var L2=function(){};L2.\u0275fac=function(a){return new (a||L2)};L2.\u0275mod=Yc({type:L2});L2.\u0275inj=Ic({imports:[vy,fz,AF,aD,YC,NC]});
var M2=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},afc=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};M2.prototype.drop=function(a){Mp(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var n0a=function(a,b){return 0<b?(Mp(a.fields,b,b-1),a.detectChanges(),!0):!1},o0a=function(a,b){return b<a.fields.length-1?(Mp(a.fields,b,b+1),a.detectChanges(),!0):!1};M2.prototype.trackByFn=function(){return-1};M2.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.")};
M2.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();bfc(this,b);break;case "Tab":this.grabbed&&bfc(this,b);break;case "ArrowUp":cfc(this,a);break;case "ArrowDown":cfc(this,a)}};
var bfc=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."))},cfc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(n0a(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else o0a(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."))}}};M2.prototype.detectChanges=function(){this.hasChanges=!Ri(this.fields,this.originalFields)};M2.\u0275fac=function(a){return new (a||M2)(B(HC),B(EC),B(EA))};
M2.\u0275cmp=u({type:M2,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&&(E(0,"div",0)(1,"div",1)(2,"h1",2),Q(3," Reorder custom fields "),G(),E(4,"button",3),M("click",function(){return afc(b)}),H(5,"mat-icon",4),G()()(),E(6,"div",5)(7,"ol",6),M("cdkDropListDropped",function(c){return b.drop(c)}),P(8,p0a,9,7,"li",7),G()(),E(9,"div",8)(10,"button",9),M("click",function(){return b.dialogRef.close()}),Q(11," Cancel "),G(),E(12,"button",10),M("click",function(){return b.dialogRef.close(b.fields)}),Q(13," Save "),G()());a&2&&(A(8),
D("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),A(4),D("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[fy,pC,KC,LC,MC,cU,dU,XT,tF,yD],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 N2=new Md("CDK_TABLE");new Md("text-column-options");
var O2=function(a){this.template=a};O2.\u0275fac=function(a){return new (a||O2)(B(vg))};O2.\u0275dir=u({type:O2,selectors:[["","cdkCellDef",""]]});var P2=function(a){this.template=a};P2.\u0275fac=function(a){return new (a||P2)(B(vg))};P2.\u0275dir=u({type:P2,selectors:[["","cdkHeaderCellDef",""]]});var Q2=function(a){this.template=a};Q2.\u0275fac=function(a){return new (a||Q2)(B(vg))};Q2.\u0275dir=u({type:Q2,selectors:[["","cdkFooterCellDef",""]]});
var dfc=q0a(function(){}),R2=function(a){var b=dfc.call(this)||this;b._table=a;b._stickyEnd=!1;return b};X(R2,dfc);R2.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};R2.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
ni.Object.defineProperties(R2.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=rh(a);this._hasStickyChanged=b!==this._stickyEnd}}});R2.\u0275fac=function(a){return new (a||R2)(B(N2,8))};
R2.\u0275dir=u({type:R2,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,O2,5),Ag(c,P2,5),Ag(c,Q2,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:[mg([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:R2}]),Of]});
var efc=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,r(a._columnCssClassName))},S2=function(a,b){efc.call(this,a,b)};X(S2,efc);S2.\u0275fac=function(a){return new (a||S2)(B(R2),B(Rd))};S2.\u0275dir=u({type:S2,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Of]});
var T2=function(a,b){efc.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"))};X(T2,efc);T2.\u0275fac=function(a){return new (a||T2)(B(R2),B(Rd))};T2.\u0275dir=u({type:T2,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Of]});
var ffc=function(){this.tasks=[];this.endTasks=[]},gfc=new Md("_COALESCED_STYLE_SCHEDULER"),U2=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new W.Subject};U2.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};U2.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
U2.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new ffc,this._getScheduleObservable().pipe(Ef(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new ffc;for(var c=n(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=n(b.endTasks);for(d=b.next();!d.done;d=b.next())c=d.value,c()}a._currentSchedule=null}))};
U2.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,W.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(sf())};U2.\u0275fac=function(a){return new (a||U2)(p(Mf))};U2.\u0275prov=Hc({token:U2,factory:U2.\u0275fac});
var V2=function(a,b){this.template=a;this._differs=b};V2.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};V2.\u0275fac=function(a){return new (a||V2)(B(vg),B(cy))};V2.\u0275dir=u({type:V2,features:[ed]});var hfc=function(){V2.apply(this,arguments)};X(hfc,V2);hfc.\u0275dir=V2.\u0275dir;hfc.\u0275fac=V2.\u0275fac;
var ifc=q0a(hfc),W2=function(a,b,c){a=ifc.call(this,a,b)||this;a._table=c;return a};X(W2,ifc);W2.prototype.ngOnChanges=function(a){ifc.prototype.ngOnChanges.call(this,a)};W2.\u0275fac=function(a){return new (a||W2)(B(vg),B(cy),B(N2,8))};W2.\u0275dir=u({type:W2,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Of,ed]});var jfc=function(){V2.apply(this,arguments)};X(jfc,V2);jfc.\u0275dir=V2.\u0275dir;
jfc.\u0275fac=V2.\u0275fac;var kfc=q0a(jfc),X2=function(a,b,c){a=kfc.call(this,a,b)||this;a._table=c;return a};X(X2,kfc);X2.prototype.ngOnChanges=function(a){kfc.prototype.ngOnChanges.call(this,a)};X2.\u0275fac=function(a){return new (a||X2)(B(vg),B(cy),B(N2,8))};X2.\u0275dir=u({type:X2,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Of,ed]});var Y2=function(a,b,c){V2.call(this,a,b);this._table=c};X(Y2,V2);
Y2.\u0275fac=function(a){return new (a||Y2)(B(vg),B(cy),B(N2,8))};Y2.\u0275dir=u({type:Y2,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Of]});var a3=function(a){this._viewContainer=a;Z2=this};a3.prototype.ngOnDestroy=function(){Z2===this&&(Z2=null)};var Z2=null;a3.\u0275fac=function(a){return new (a||a3)(B(wg))};a3.\u0275dir=u({type:a3,selectors:[["","cdkCellOutlet",""]]});var b3=function(){};
b3.\u0275fac=function(a){return new (a||b3)};b3.\u0275cmp=u({type:b3,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&&cg(0,0)},dependencies:[a3],encapsulation:2});var c3=function(){};c3.\u0275fac=function(a){return new (a||c3)};
c3.\u0275cmp=u({type:c3,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&cg(0,0)},dependencies:[a3],encapsulation:2});var d3=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};d3.\u0275fac=function(a){return new (a||d3)(B(vg))};d3.\u0275dir=u({type:d3,selectors:[["ng-template","cdkNoDataRow",""]]});
var lfc=new Md("CDK_SPL");
var mfc=["top","bottom","left","right"],nfc=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"}},ofc=function(a,b,c){var d=[];b=n(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=n(d),k=h.next();!k.done;k=h.next())a._removeStickyStyle(k.value,c)})},pfc=function(a,b,c,d,e){e=void 0===e?!0:e;if(b.length&&a._isBrowser&&(c.some(function(F){return F})||d.some(function(F){return F}))){var f=b[0],h=f.children.length,k=a._getCellWidths(f,e),q=a._getStickyStartColumnPositions(k,c),t=a._getStickyEndColumnPositions(k,
d),x=c.lastIndexOf(!0),y=d.indexOf(!0);a._coalescedStyleScheduler.schedule(function(){var F="rtl"===a.direction,K=F?"right":"left";F=F?"left":"right";for(var J=n(b),R=J.next();!R.done;R=J.next()){R=R.value;for(var S=0;S<h;S++){var aa=R.children[S];c[S]&&a._addStickyStyle(aa,K,q[S],S===x);d[S]&&a._addStickyStyle(aa,F,t[S],S===y)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===x?[]:k.slice(0,x+1).map(function(ba,ka){return c[ka]?ba:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
y?[]:k.slice(y).map(function(ba,ka){return d[ka+y]?ba:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},qfc=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 t=e[b];q[b]=a._isNativeHtmlTable?Array.from(t.children):[t];t=t.getBoundingClientRect().height;c+=t;k[b]=t}var x=
f.lastIndexOf(!0);a._coalescedStyleScheduler.schedule(function(){for(var y=0;y<e.length;y++)if(f[y])for(var F=h[y],K=y===x,J=n(q[y]),R=J.next();!R.done;R=J.next())a._addStickyStyle(R.value,d,F,K);if("top"===d){var S;null==(S=a._positionListener)||S.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var aa;null==(aa=a._positionListener)||aa.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}})}},rfc=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=nfc.prototype;g._removeStickyStyle=function(a,b){for(var c=n(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);mfc.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=n(mfc),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 sfc=[[["caption"]],[["colgroup"],["col"]]],e3=function(a,b){this.viewContainer=a;this.elementRef=b};e3.\u0275fac=function(a){return new (a||e3)(B(wg),B(Rd))};e3.\u0275dir=u({type:e3,selectors:[["","rowOutlet",""]]});var f3=function(a,b){this.viewContainer=a;this.elementRef=b};f3.\u0275fac=function(a){return new (a||f3)(B(wg),B(Rd))};f3.\u0275dir=u({type:f3,selectors:[["","headerRowOutlet",""]]});var g3=function(a,b){this.viewContainer=a;this.elementRef=b};
g3.\u0275fac=function(a){return new (a||g3)(B(wg),B(Rd))};g3.\u0275dir=u({type:g3,selectors:[["","footerRowOutlet",""]]});var h3=function(a,b){this.viewContainer=a;this.elementRef=b};h3.\u0275fac=function(a){return new (a||h3)(B(wg),B(Rd))};h3.\u0275dir=u({type:h3,selectors:[["","noDataRowOutlet",""]]});
var i3=function(a,b,c,d,e,f,h,k,q,t,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=t;this._stickyPositioningListener=x;this._ngZone=y;this._onDestroy=new W.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 sx;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
i3.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(Ef(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
i3.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&&j3(this);this._checkStickyStates()};
i3.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();fla(this.dataSource)&&this.dataSource.disconnect(this)};
i3.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;Vtb(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();orb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&tx()?this._ngZone.onStable.pipe(sf(),
Ef(this._onDestroy)).subscribe(function(){j3(a)}):j3(this)}else this._updateNoDataRow();this.contentChanged.next()};
var tfc=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});ofc(a._stickyStyler,b,["top"]);qfc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},ufc=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});
ofc(a._stickyStyler,b,["bottom"]);qfc(a._stickyStyler,b,c,"bottom");rfc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},j3=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)ofc(a._stickyStyler,[].concat(r(b),r(c),r(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=i3.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();ut(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=ut(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=ut(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=ut(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=[];fla(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;fla(this.dataSource)?b=this.dataSource.connect(this):(0,W.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,W.of)(this.dataSource));this._renderChangeSubscription=b.pipe(Ef(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)});tfc(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)});ufc(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});pfc(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=n(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,Z2&&Z2._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 W2?c.headerCell.template:a instanceof X2?c.footerCell.template:c.cell.template}):[]};
g._applyNativeTableSections=function(){for(var a=this._document.createDocumentFragment(),b=n([{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=n(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)&&tfc(this);this._footerRowDefs.reduce(a,!1)&&ufc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,j3(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new nfc(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,W.of)()).pipe(Ef(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;j3(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;b?(a=c.createEmbeddedView(a.templateRef),c=a.rootNodes[0],1===a.rootNodes.length&&(null==c?void 0:c.nodeType)===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add("cdk-no-data-row"))):c.clear();this._isShowingNoDataRow=b}}};
ni.Object.defineProperties(i3.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=rh(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),j3(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=rh(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});i3.\u0275fac=function(a){return new (a||i3)(B(cy),B(Xx),B(Rd),Ad("role"),B(XA,8),B(li),B(hz),B(Wtb),B(gfc),B(lB),B(lfc,12),B(Mf,8))};
i3.\u0275cmp=u({type:i3,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(Ag(c,d3,5),Ag(c,R2,5),Ag(c,Y2,5),Ag(c,W2,5),Ag(c,X2,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(e3,7),zg(f3,7),zg(g3,7),zg(h3,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:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&Zf("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[mg([{provide:N2,useExisting:i3},{provide:Wtb,useClass:Utb},{provide:gfc,useClass:U2},{provide:lfc,
useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(fg(sfc),gg(0),gg(1,1),cg(2,0)(3,1)(4,2)(5,3))},dependencies:[e3,f3,g3,h3],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});
var k3=function(){};k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275mod=Yc({type:k3});k3.\u0275inj=Ic({imports:[pB]});
var l3=function(){O2.apply(this,arguments)};X(l3,O2);l3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(l3)))(b||l3)}}();l3.\u0275dir=u({type:l3,selectors:[["","matCellDef",""]],features:[mg([{provide:O2,useExisting:l3}]),Of]});var m3=function(){P2.apply(this,arguments)};X(m3,P2);m3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(m3)))(b||m3)}}();m3.\u0275dir=u({type:m3,selectors:[["","matHeaderCellDef",""]],features:[mg([{provide:P2,useExisting:m3}]),Of]});
var n3=function(){return R2.apply(this,arguments)||this};X(n3,R2);n3.prototype._updateColumnCssClassName=function(){R2.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};ni.Object.defineProperties(n3.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});n3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(n3)))(b||n3)}}();
n3.\u0275dir=u({type:n3,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[mg([{provide:R2,useExisting:n3},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n3}]),Of]});var o3=function(){S2.apply(this,arguments)};X(o3,S2);o3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(o3)))(b||o3)}}();o3.\u0275dir=u({type:o3,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Of]});
var p3=function(){T2.apply(this,arguments)};X(p3,T2);p3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(p3)))(b||p3)}}();p3.\u0275dir=u({type:p3,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Of]});
var q3=function(){return W2.apply(this,arguments)||this};X(q3,W2);q3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(q3)))(b||q3)}}();q3.\u0275dir=u({type:q3,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[mg([{provide:W2,useExisting:q3}]),Of]});var r3=function(){Y2.apply(this,arguments)};X(r3,Y2);r3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(r3)))(b||r3)}}();
r3.\u0275dir=u({type:r3,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[mg([{provide:Y2,useExisting:r3}]),Of]});var s3=function(){};X(s3,b3);s3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(s3)))(b||s3)}}();
s3.\u0275cmp=u({type:s3,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[mg([{provide:b3,useExisting:s3}]),Of],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&cg(0,0)},dependencies:[a3],encapsulation:2});var t3=function(){};X(t3,c3);t3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(t3)))(b||t3)}}();
t3.\u0275cmp=u({type:t3,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[mg([{provide:c3,useExisting:t3}]),Of],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&cg(0,0)},dependencies:[a3],encapsulation:2});
var vfc=[[["caption"]],[["colgroup"],["col"]]],u3=function(){i3.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};X(u3,i3);u3.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(u3)))(b||u3)}}();
u3.\u0275cmp=u({type:u3,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(a,b){a&2&&Zf("mat-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[mg([{provide:Wtb,useClass:Utb},{provide:i3,useExisting:u3},{provide:N2,useExisting:u3},{provide:gfc,useClass:U2},{provide:lfc,useValue:null}]),Of],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a){a&1&&(fg(vfc),gg(0),gg(1,1),cg(2,0)(3,1)(4,2)(5,3))},dependencies:[e3,f3,g3,h3],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 v3=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 sx;this.displayedColumn=["index","name","type","required","customFieldId"]},E0a=function(a){return CC(a.matDialog.open(M2,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&wfc(a,b)})},F0a=function(a){a.confirmationDialog.open({title:"Reset ordering?",content:Co("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()}})},wfc=function(a,b){Mo(a.analytics,Aq.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return(new tm).setCustomFieldId(d.customFieldId)});a.componentId?(vJ(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){vJ(a.butterBar,"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){wJ(a.butterBar,"Saving ordering failed, please refresh the page.",5E3)})):wJ(a.butterBar,"Saving ordering failed due to the undefined component id.")};
v3.prototype.reset=function(){var a=this;Mo(this.analytics,Aq.FIELD_ORDERING,"resetFields");this.componentId?(vJ(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:fFb}).subscribe(function(){vJ(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){wJ(a.butterBar,"Reset failed.")})):wJ(this.butterBar,"Reset failed due to the undefined component id.")};
v3.\u0275fac=function(a){return new (a||v3)(B(IC),B(UL),B(p2),B(BK),B(uJ))};
v3.\u0275cmp=u({type:v3,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&&(E(0,"div",0)(1,"div",1)(2,"table",2),I(3,3),P(4,r0a,2,0,"th",4),P(5,s0a,2,1,"td",5),L(),I(6,6),P(7,t0a,2,0,"th",4),P(8,u0a,2,1,
"td",5),L(),I(9,7),P(10,v0a,2,0,"th",4),P(11,w0a,3,3,"td",5),L(),I(12,8),P(13,x0a,2,0,"th",4),P(14,y0a,2,1,"td",5),L(),I(15,9),P(16,z0a,2,0,"th",4),P(17,A0a,2,1,"td",5),L(),P(18,B0a,1,0,"tr",10),P(19,C0a,1,0,"tr",11),G(),P(20,D0a,2,0,"div",12),G(),P(21,G0a,6,2,"div",13),G());a&2&&(A(2),D("dataSource",b.fields),A(16),D("matHeaderRowDef",b.displayedColumn),A(1),D("matRowDefColumns",b.displayedColumn),A(1),D("ngIf",0===b.fields.length),A(1),D("ngIf",b.isAdmin))},dependencies:[gy,pC,u3,m3,q3,n3,l3,r3,
o3,p3,s3,t3,iR],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 w3=function(){};w3.\u0275fac=function(a){return new (a||w3)};w3.\u0275mod=Yc({type:w3});w3.\u0275inj=Ic({providers:[UL],imports:[vy,AF,NC]});
var x3=function(){};x3.\u0275fac=function(a){return new (a||x3)};x3.\u0275mod=Yc({type:x3});x3.\u0275inj=Ic({imports:[k3,HB,HB]});
var y3=function(){};y3.\u0275fac=function(a){return new (a||y3)};y3.\u0275mod=Yc({type:y3});y3.\u0275inj=Ic({imports:[vy,AF,GL,NC,x3,eU,uG,$G,uF,w3,kR]});
var z3=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},I0a=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="+xfc+a.issueId+yfc;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
z3.prototype.trackClick=function(a){Mo(this.analytics,"codeMentions","clickCodeSearchLink",a)};z3.\u0275fac=function(a){return new (a||z3)(B(BK))};
z3.\u0275cmp=u({type:z3,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&&(E(0,"div",0)(1,"a",1),M("click",function(){return b.trackClick("fileName")}),Q(2),G(),P(3,H0a,2,1,"span",2),P(4,K0a,5,1,"span",2),G());a&2&&(A(1),D("href",I0a(b,b.lineNumbers),le),A(1),T(" ",b.filename," "),A(1),D("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),A(1),D("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[fy,gy],encapsulation:2});var xfc=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),yfc=encodeURIComponent("(\\b|$)");
var A3=function(){};A3.\u0275fac=function(a){return new (a||A3)};A3.\u0275mod=Yc({type:A3});A3.\u0275inj=Ic({imports:[vy]});
var B3=function(){this.isReady=!1};B3.\u0275fac=function(a){return new (a||B3)};B3.\u0275cmp=u({type:B3,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&&(fg(),P(0,L0a,1,0,"div",0),P(1,M0a,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),A(1),D("ngIf",b.isReady))},dependencies:[gy],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 C3=function(){this.warning=""};C3.\u0275fac=function(a){return new (a||C3)};
C3.\u0275cmp=u({type:C3,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&Zf("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,N0a,2,1,"svg",0);a&2&&
D("ngIf",b.warning)},dependencies:[gy,tF],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 zfc=["*",[["","actions",""]]],Afc=[[["onedev-field-label"]],[["onedev-field-value"]]],Bfc=0,D3=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+Bfc;Bfc++};D3.\u0275fac=function(a){return new (a||D3)};
D3.\u0275cmp=u({type:D3,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&Uf("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&&(fg(),E(0,"onedev-async-data-placeholder",0)(1,"span",1),gg(2),G(),H(3,"onedev-warning-icon",2),G());a&2&&(D("isReady",!b.thinking),A(1),D("matTooltip",b.labelTooltip),A(2),D("warning",
b.warning))},dependencies:[B3,tF,C3],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var E3=function(){this.thinking=!1};E3.\u0275fac=function(a){return new (a||E3)};
E3.\u0275cmp=u({type:E3,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(fg(zfc),E(0,"onedev-async-data-placeholder",0),gg(1),gg(2,1),G());a&2&&D("isReady",!b.thinking)},dependencies:[B3],encapsulation:2});var F3=function(){this.labelPosition="left"};F3.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
F3.\u0275fac=function(a){return new (a||F3)};
F3.\u0275cmp=u({type:F3,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(Ag(c,xO,5),Ag(c,D3,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&&(fg(Afc),E(0,"div",0),gg(1),gg(2,1),G());a&2&&Zf("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 Cfc=["popOverContent"],G3=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.closedWithAction=new sx;this.isOpen=!1;this.destroyed$=new W.ReplaySubject(1);this.backdropClickSubscription=W.Subscription.EMPTY};G3.prototype.ngOnInit=function(){};G3.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
G3.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(Ef(this.destroyed$)).subscribe(function(){Q0a(a)}))};G3.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var P0a=function(a){a.closedWithAction.emit(0);a.close()},Q0a=function(a){a.closedWithAction.emit(1);a.close()};g=G3.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":Q0a(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)P0a(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(P0a(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();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+this.anchor.offsetWidth});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new xz(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=xB(wB(CB(this.overlay.position(),this.anchor),!1),!1);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return uB(a,Dfc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};G3.\u0275fac=function(a){return new (a||G3)(B(DB),B(wg))};
G3.\u0275cmp=u({type:G3,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&zg(Cfc,7);if(a&2){var c;yg(c=Bg())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop"},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,"click"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&P(0,R0a,8,2,"ng-template",null,0,Hg)},dependencies:[my,oz,pC],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 Dfc=[{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 Efc=["popOver"],T0a=function(a){return{$implicit:a}},H3=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new sx;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};X(H3,xO);g=H3.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return Y0a(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=Y0a(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=Y0a(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};ni.Object.defineProperties(H3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});H3.\u0275fac=function(a){return new (a||H3)(Ad("required"))};
H3.\u0275cmp=u({type:H3,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&zg(Efc,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:[mg([{provide:xy,useExisting:Fc(function(){return H3}),multi:!0},{provide:xO,useExisting:Fc(function(){return H3}),multi:!0}]),Of],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&&(E(0,"button",0,1),M("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),E(2,"span"),P(3,U0a,2,4,"ng-container",2),P(4,V0a,1,1,"ng-template",null,3,Hg),G(),P(6,W0a,2,0,"svg",4),G(),E(7,"onedev-pop-over-edit-panel",5,6),M("closedWithAction",function(f){return b.stopEditing(f)}),G(),P(9,X0a,1,1,"ng-template",null,7,Hg));if(a&2){var c=O(1),d=
O(5),e=O(10);D("disabled",b.disabled);A(3);D("ngIf",b.valueTemplate)("ngIfElse",d);A(3);D("ngIf",!b.disabled&&b.displayEditIcon);A(1);D("anchor",c)("editorTemplate",e)}},dependencies:[gy,my,fh,Ty,Ky,Ry,G3],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 d1a=function(){return[]},I3=function(){this.disabled=this.thinking=!1;this.effortChange=new sx;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
I3.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=Ll(this.effortSpec))&&Nb(a,Cl,1)&&this.effort&&Pi(this.effort,2)?(a=Ffc(this),a="incompatible"===a?(new Cl).setLabel(Pi(this.effort,2)):a):a=void 0;this.selectedOption=a}else if("NUMERIC"===this.getFieldType()){var b,c;this.selectedNumericEstimate=(null==(b=this.effort)?0:Pi(b,2))?Number(null==(c=this.effort)?void 0:Pi(c,2)):void 0}this.fieldName=this.getFieldName();this.fieldType=this.getFieldType();
this.isCompatibleValue=Gfc(this)};I3.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c,d=new Fl,e=null!=(c=null==(b=this.effortSpec)?void 0:b.getId())?c:0;b=Fb(d,1,e,0);a=a.getLabel();this.effort=Hb(b,2,a)}this.isCompatibleValue=Gfc(this);this.effortChange.emit(this.effort)};I3.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.getName():this.effort?"Estimate "+Aj(this.effort,1):"Estimate"};
I3.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:Gl(a))return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:Kl(b))?"DROPDOWN":"UNKNOWN"};
var Gfc=function(a){var b;if(!a.effort||null==(b=a.effort)||!Pi(b,2))return!0;var c,d;if((null==(c=a.effortSpec)?void 0:c.getId())!==(null==(d=a.effort)?void 0:Aj(d,1))||"DROPDOWN"===a.fieldType&&"incompatible"===Ffc(a))return!1;var e,f;return"NUMERIC"===a.getFieldType()&&isNaN(Number(null!=(f=null==(e=a.effort)?void 0:Pi(e,2))?f:""))?!1:!0},Ffc=function(a){var b;if(null==(b=a.effort)?0:Pi(b,2)){var c,d,e,f;return null!=(f=null==(c=a.effortSpec)?void 0:null==(d=Ll(c))?void 0:null==(e=Nb(d,Cl,1))?
void 0:e.find(function(h){var k;return h.getLabel()===(null==(k=a.effort)?void 0:Pi(k,2))}))?f:"incompatible"}};I3.\u0275fac=function(a){return new (a||I3)};
I3.\u0275cmp=u({type:I3,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},features:[ed],decls:3,vars:1,consts:[[4,"ngIf"],["rawNumericValueTemplate",""],[3,"thinking","labelTooltip"],["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,g1a,16,8,"onedev-edit-field",0),P(1,j1a,3,2,"ng-template",null,1,Hg));a&2&&D("ngIf",b.effortSpec)},dependencies:[gy,iy,jy,ky,
yD,D3,E3,F3,yO,H3,iM,mM],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}\n/*# sourceMappingURL=estimated_effort_row.css.map */"]});
var J3=function(){};J3.\u0275fac=function(a){return new (a||J3)};J3.\u0275mod=Yc({type:J3});J3.\u0275inj=Ic({imports:[vy]});
var K3=function(){};K3.\u0275fac=function(a){return new (a||K3)};K3.\u0275mod=Yc({type:K3});K3.\u0275inj=Ic({imports:[vy,uG]});
var L3=function(){};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275mod=Yc({type:L3});L3.\u0275inj=Ic({imports:[J3,vy,uG,K3]});
var M3=function(){};M3.\u0275fac=function(a){return new (a||M3)};M3.\u0275mod=Yc({type:M3});M3.\u0275inj=Ic({imports:[vy,FA,GB,Cz,AF]});
var N3=function(){};N3.\u0275fac=function(a){return new (a||N3)};N3.\u0275mod=Yc({type:N3});N3.\u0275inj=Ic({imports:[vy,fz,M3]});
var O3=function(){};O3.\u0275fac=function(a){return new (a||O3)};O3.\u0275mod=Yc({type:O3});O3.\u0275inj=Ic({imports:[vy,uG,uF,L3,NO,N3,TM]});
var P3=function(a,b,c,d){Z.call(this);this.activeSession=a;this.currentTracker=b;this.clipboard=c;this.butterBar=d;this.componentId=0;this.issueTitle=this.issueId="";this.isOpen=this.disabled=this.isExternalIssue=!1;this.HOTKEYS=tH};X(P3,Z);P3.\u0275dir=Z.\u0275dir;P3.prototype.ngOnInit=function(){};var vt=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};P3.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};
P3.prototype.getAppBaseUrl=function(a){return MJ(this.currentTracker,this.issueId,this.tracker,void 0===a?!1:a)};P3.\u0275fac=function(a){return new (a||P3)(B(NG),B(LJ),B(IR),B(uJ))};
P3.\u0275cmp=u({type:P3,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&zg(tO,7);if(a&2){var c;yg(c=Bg())&&(b.trigger=c.first)}},inputs:{tracker:"tracker",componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled"},features:[Of],decls:8,vars:6,consts:[["matTooltip","Copy issue ID","disableRipple","true",1,"unstyled","square-right","issue-id",3,"click"],["matTooltip","Show links for this issue","onedevPopupPanelTrigger",
"","disableRipple","true",1,"unstyled","square-left",3,"onedevPopupPanelTriggerFor","hotkey","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","onHotkey","focus"],["issueIdField",""],[1,"muted","shortcut"],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,"hotkey","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","onHotkey","focus"],["issueUrlField",""],["mat-icon-button",
"","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"hotkey","onHotkey","click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"hotkey","onHotkey","focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"hotkey","onHotkey","click"],["type","text","readonly","","id","id-details-issue-shortlink-field",1,"value",3,"hotkey","onHotkey","focus"],
["issueShortlinkField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy shortlink","matTooltip","Copy shortlink",1,"gmat-button","copy",3,"hotkey","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","onHotkey","focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"hotkey","onHotkey",
"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"hotkey","onHotkey","focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"hotkey","onHotkey","click"]],template:function(a,b){a&1&&(E(0,"button",0),M("click",function(){b.clipboard.copy(b.issueId);vJ(b.butterBar,"Issue ID copied",2E3)}),Q(1),G(),E(2,"button",1,2),M("onHotkey",function(){b.disabled||
b.trigger.open()})("onedevPopupPanelTriggerOpened",function(){return b.isOpen=!0})("onedevPopupPanelTriggerClosed",function(){return b.isOpen=!1})("click",function(){b.disabled||b.trigger.open()}),H(4,"mat-icon",3),G(),E(5,"onedev-popup-panel",4,5),P(7,n1a,31,19,"div",6),G());if(a&2){var c=O(6);Uf("aria-label","Copy issue number "+b.issueId);A(1);kg(b.issueId);A(1);D("onedevPopupPanelTriggerFor",c)("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID);Uf("aria-label","Show links for the issue "+b.issueId);A(5);
D("ngIf",b.isOpen)}},dependencies:[oz,gy,kI,pC,yD,tF,sO,tO],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}.shortcut[_ngcontent-%COMP%]{font-family:WorkAroundWebKitAndMozilla,monospace;padding-left:8px;white-space:nowrap}button[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px}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)}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 Q3=function(){};Q3.\u0275fac=function(a){return new (a||Q3)};Q3.\u0275mod=Yc({type:Q3});Q3.\u0275inj=Ic({imports:[FA,vy,lI,AF,uF,uG,LO]});
var R3=function(a){JJ.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.getSloId()}};X(R3,JJ);g=R3.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)};
R3.\u0275fac=function(a){return new (a||R3)(p(rX))};R3.\u0275prov=Hc({token:R3,factory:R3.\u0275fac,providedIn:"root"});
var S3=function(a,b,c,d){Z.call(this);var e=this;this.userPreferencesManager=a;this.sloStatusHelpersService=b;this.paths=c;this.sloFridge=d;this.onSnoozeChange=new sx;this.providedSloId$=new W.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(Df(function(f){return e.sloFridge.watchOne(f)}));this.isDateTimePickerOpen=this.shouldShowSnoozeButton=this.isAccordionExpanded=!1};X(S3,Z);S3.\u0275dir=Z.\u0275dir;
S3.prototype.ngOnInit=function(){var a=this;Hfc(this);this.userPreferencesManager.layoutPreferences$.pipe(Ef(this.destroyed$),C(function(b){a.isAccordionExpanded=!!b.expandIssueSlo}))};S3.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);Hfc(this)};
var Hfc=function(a){a.hasSlo=!!a.sloStatus&&yQ(a.sloStatus);a.shouldShowSnoozeButton=a.isEditable&&a.hasSlo;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},Ifc=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;BDb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Ef(a.destroyed$)).subscribe();uo(Aq.ISSUE_SLO,"toggle",a.isAccordionExpanded?
"open":"close")};S3.prototype.trackOpenSlo=function(){uo(Aq.EDIT_SLO,"open","fromIssueSloBox")};S3.\u0275fac=function(a){return new (a||S3)(B(aI),B(wQ),B(pI),B(R3))};
S3.\u0275cmp=u({type:S3,selectors:[["b-issue-slo-box"]],inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSnoozeChange:"onSnoozeChange"},features:[Of,ed],decls:25,vars:29,consts:[[1,"issue-slo-box-title",3,"click"],[1,"accordion-icon"],[3,"hidden"],[3,"name","size"],[1,"slo-body"],[1,"slo-status"],[3,"sloStatus","sloSnoozeUntil","includeSloMetric","includeObjective"],
[3,"sloStatus","sloSnoozeUntil","includeNoSlo"],["mat-icon-button","",1,"expand-button","small","gmat-button",3,"color","matTooltip","click"],[1,"slo-actions",3,"hidden"],["class","slo-action",4,"ngIf"],[1,"slo-action"],["class","bv2-metadata-link bv2-metadata-tool",3,"click",4,"ngIf"],[1,"slo-start"],["cdkOverlayOrigin","",1,"bv2-metadata-link",3,"click"],["trigger","cdkOverlayOrigin"],[4,"ngIf"],["href","http://go/buganizer/guides/defer-slos","target","_blank"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin",
"cdkConnectedOverlayOpen"],["mode","date",3,"timestamp"],[3,"sloStatus","snoozeUntil","closePicker","snoozeUntilCommit"],["class","slo-link",3,"click",4,"ngIf"],[1,"slo-link",3,"click"],[1,"bv2-metadata-link","bv2-metadata-tool",3,"click"]],template:function(a,b){a&1&&(E(0,"span",0),M("click",function(){return Ifc(b)}),E(1,"label"),Q(2,"SLO Status"),G(),E(3,"span",1)(4,"span",2),H(5,"b-icon",3),G(),E(6,"span",2),H(7,"b-icon",3),G()()(),E(8,"div",4)(9,"div",5)(10,"div",2),H(11,"b-aggregated-slo-status-indicator",
6),G(),E(12,"div",2),H(13,"b-slo-status-summary",7),G(),E(14,"button",8),M("click",function(){return Ifc(b)}),E(15,"span",1)(16,"span",2),H(17,"b-icon",3),G(),E(18,"span",2),H(19,"b-icon",3),G()()()(),E(20,"div",9),P(21,r1a,10,6,"div",10),P(22,t1a,4,3,"div",10),E(23,"div",11),P(24,u1a,2,1,"a",12),G()()());a&2&&(A(4),D("hidden",b.isAccordionExpanded),A(1),D("name","arrow-down")("size","small"),A(1),D("hidden",!b.isAccordionExpanded),A(1),D("name","arrow-up")("size","small"),A(3),D("hidden",b.isAccordionExpanded),
A(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntil)("includeSloMetric",!0)("includeObjective",!0),A(1),D("hidden",!b.isAccordionExpanded),A(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntil)("includeNoSlo",!0),A(1),D("color","")("matTooltip","Toggle the detailed SLO status"),Uf("aria-label","Toggle the detailed SLO status")("aria-expanded",b.isAccordionExpanded),A(2),D("hidden",b.isAccordionExpanded),A(1),D("name","arrow-down")("size","small"),A(1),D("hidden",!b.isAccordionExpanded),
A(1),D("name","arrow-up")("size","small"),A(1),D("hidden",!b.isAccordionExpanded),A(1),D("ngIf",b.shouldShowSnoozeButton),A(1),D("ngIf",b.editSloLink),A(2),D("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[gy,tF,pC,HX,fO,uX,yZ,QG,FB,EB,ny],styles:["[_nghost-%COMP%]{display:flex;align-items:baseline;margin:8px 19px 8px 19px}[_nghost-%COMP%]:focus{outline:0}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,0);border-radius:5px;padding:4px 9px;margin:-5px -10px;border-color:#d2e3fc;border-color:var(--primary-c100)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,0);border-radius:5px;padding:3px 8px;margin:-5px -10px;border-color:#1a73e8;border-color:var(--primary)}[_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:70px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.issue-slo-box-title[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{display:none}.slo-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.slo-status[_ngcontent-%COMP%]{display:flex}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]{display:inline-block}.slo-actions[_ngcontent-%COMP%]   .slo-start[_ngcontent-%COMP%]   b-icon[_ngcontent-%COMP%]{margin-left:4px;vertical-align:top}.expand-button[_ngcontent-%COMP%]{margin-left:auto;margin-right:-6px}.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 T3=function(){};T3.\u0275fac=function(a){return new (a||T3)};T3.\u0275mod=Yc({type:T3});T3.\u0275inj=Ic({imports:[vy,uG,AF,DY,AO,BY,zZ,$G,GL,GB]});
var Jfc=function(){return{width:400}},Kfc=function(){return[]},U3=function(a,b,c,d,e,f,h,k,q){var t=this;this.bLocation=c;this.paths=d;this.analytics=e;this.currentTracker=h;this.componentActions=k;this.cdr=q;this.includeArchived$=new W.BehaviorSubject(!1);this.rootComponent$=this.currentTracker.tracker$.pipe(Df(function(x){return x?t.componentActions.get(Number(x.componentId)):(0,W.of)(void 0)}));this.topLevelComponents$=(0,W.combineLatest)([this.rootComponent$,this.includeArchived$]).pipe(Df(function(x){var y=
n(x);x=y.next().value;y=y.next().value;var F;return t.componentActions.getChildren(null!=(F=null==x?void 0:x.parentComponentId)?F:0,y,vGb(t.currentTracker))}));this.createComponentPath=lu.COMPONENT_CREATE;a.setTitle("Browse Components");b.componentId&&x1a(this,Number(b.componentId),(0,W.firstValueFrom)(this.topLevelComponents$));this.isInternalSession=f.isInternalSession()};U3.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&Mo(this.analytics,"listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var x1a=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=iaa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-1),f={0:c},h=n(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return np(f).then(function(q){for(var t=q[0],x=0,y={},F=n(e),K=F.next();!K.done;y={$jscomp$loop$prop$parentId$1832$1997:y.$jscomp$loop$prop$parentId$1832$1997},K=F.next()){y.$jscomp$loop$prop$parentId$1832$1997=K.value;K=void 0;
var J=null!=(K=t.find(function(R){return function(S){return S.componentId===R.$jscomp$loop$prop$parentId$1832$1997}}(y)))?K:null;J&&(J.children=q[y.$jscomp$loop$prop$parentId$1832$1997],J.showChildren=!0,t=J.children,x=J.componentId)}d.archived&&!a.includeArchived&&(b=x);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};ni.Object.defineProperties(U3.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});
U3.\u0275fac=function(a){return new (a||U3)(B(NJ),B(tQ),B(oI),B(pI),B(BK),B(NG),B(LJ),B(ZR),B(qH,2))};
U3.\u0275cmp=u({type:U3,selectors:[["b-list-components-page"]],features:[mg([qH])],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&&(E(0,"h2",0),Q(1,"Browse Components"),G(),E(2,"div",1)(3,"div",2),
P(4,v1a,2,1,"a",3),E(5,"button",4),Q(6," Search Components "),G(),P(7,w1a,4,6,"ng-template",null,5,Hg),P(9,y1a,3,4,"div",6),G()(),E(10,"div",7),P(11,z1a,2,0,"div",8),U(12,"async"),E(13,"component-tree-list",9),M("init",function(h){return b.componentTree=h}),U(14,"async"),U(15,"async"),G()());if(a&2){var c=O(8),d,e,f;A(4);D("ngIf",b.isInternalSession);A(1);D("xapInlineDialogClick",c)("overlaySize",ng(13,Jfc));A(4);D("ngIf",b.isInternalSession);A(2);D("ngIf",!(null!==(d=V(12,7,b.topLevelComponents$))&&
void 0!==d&&d));A(2);D("components",null!==(e=V(14,9,b.topLevelComponents$))&&void 0!==e?e:ng(14,Kfc))("includeArchived",null!==(f=V(15,11,b.includeArchived$))&&void 0!==f?f:!1)}},dependencies:[gy,fM,vM,uM,yM,lS,pC,qC,dS,oU,ny],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});
var V3=function(){};V3.\u0275fac=function(a){return new (a||V3)};V3.\u0275mod=Yc({type:V3});V3.\u0275inj=Ic({imports:[vy,RM,PM,UM,WM,rM,mS,AF,gS,qU]});
var W3=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};W3.\u0275fac=function(a){return new (a||W3)};
W3.\u0275cmp=u({type:W3,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&&(E(0,"div",0),P(1,A1a,2,1,"p",1),E(2,"ul"),P(3,B1a,2,5,"li",
2),G()());a&2&&(A(1),D("ngIf",b.displayPackageName),A(2),D("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[fy,gy,z3],encapsulation:2});
var X3=function(){};X3.\u0275fac=function(a){return new (a||X3)};X3.\u0275mod=Yc({type:X3});X3.\u0275inj=Ic({imports:[vy,A3]});
var Y3=function(){};Y3.\u0275fac=function(a){return new (a||Y3)};Y3.\u0275mod=Yc({type:Y3});Y3.\u0275inj=Ic({imports:[vy,fz,AF,NC,aD,HT,YC]});
var Lfc=function(a){Y.call(this,a)};X(Lfc,Y);g=Lfc.prototype;g.getResourcePath=function(){return Pi(this,1)};g.setResourcePath=function(a){return m(this,1,a)};g.hasResourcePath=function(){return Oi(this,1)};g.getSeverity=function(){return qj(this,2,0)};g.setSeverity=function(a){return m(this,2,a)};g.hasSeverity=function(){return nj(this,2)};g.getJudgementReason=function(){return Pi(this,3)};g.setJudgementReason=function(a){return m(this,3,a)};Lfc.messageId="b.CreateContentJudgementRequest";
var Nfc=function(a){Y.call(this,a,-1,Mfc)};X(Nfc,Y);var Mfc=[1];Nfc.messageId="b.ListContentJudgementsResponse";
var Z3=function(a){Y.call(this,a)};X(Z3,Y);Z3.prototype.getContentJudgement=function(){return Ub(this,Om,1)};Z3.prototype.setContentJudgement=function(a){return Vb(this,1,a)};Z3.messageId="b.UpdateContentJudgementRequest";
var a4=function(a){this.executor=a};a4.prototype.create=function(a,b,c){a=(new Lfc).setResourcePath(a).setSeverity(b).setJudgementReason(c);return this.executor.post({url:"action/content_judgements",body:a,responseConstructor:Om})};a4.prototype.update=function(a){var b=uj(a,1);a=(new Z3).setContentJudgement(a);return this.executor.post({url:"action/content_judgements/"+b,body:a,responseConstructor:Om})};
a4.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:Nfc})};a4.\u0275fac=function(a){return new (a||a4)(p(lH))};a4.\u0275prov=Hc({token:a4,factory:a4.\u0275fac,providedIn:"root"});
var b4=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=IEb;this.loaded=!1;this.minimumSeverity=0;this.severity=1;this.processContentJudgements=function(h){var k=0;h=n(Nb(h,Om,1));for(var q=h.next();!q.done;q=h.next())q=q.value,Pi(q,5)===f.activeSession.getUserEmail()?Ofc(f,q):q.getSeverity()>k&&(k=q.getSeverity());f.minimumSeverity=k;f.minimumSeverity>
f.severity&&(f.severity=f.minimumSeverity);f.loaded=!0};this.severity=e.severity;e.resourcePath?c.list(e.resourcePath).subscribe(this.processContentJudgements):(Ofc(this,e.contentJudgement),this.loaded=!0)};b4.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var Ofc=function(a,b){if(a.judgement=b)a.severity=b.getSeverity()},Pfc=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.";
1<a.minimumSeverity&&(b+=" You can only select a restriction level equal or greater than the severity already given by other users.");return b};b4.prototype.getContentJudgement=function(){var a=new Om;if(this.judgement){var b=uj(this.judgement,1);m(a,1,b);a.setResourcePath(this.judgement.getResourcePath())}a.setJudgementReason("None specified");a.setSeverity(this.severity);return a};
b4.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.getSeverity()!==this.severity||"None specified"!==this.judgement.getJudgementReason()){this.contentJudgements.update(this.getContentJudgement()).subscribe(function(){a.dialogRef.close({contentJudgement:a.getContentJudgement()})});
return}}this.dialogRef.close({contentJudgement:this.getContentJudgement()})};b4.prototype.onNoClick=function(){this.dialogRef.close(null)};b4.\u0275fac=function(a){return new (a||b4)(B(EC),B(QN),B(a4),B(NG),B(HC))};
b4.\u0275cmp=u({type:b4,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&&(E(0,"header",0)(1,"h1"),H(2,"mat-icon",1),E(3,"div"),Q(4," Set restriction "),G()()(),E(5,"section",2)(6,"label",3),Q(7),E(8,"a",4),Q(9," Learn More "),G()(),
E(10,"mat-radio-group",5),M("ngModelChange",function(c){return b.severity=c}),E(11,"mat-radio-button",6),Q(12," No restriction "),E(13,"div"),Q(14,' Users with "View issues" can access. '),G()(),E(15,"mat-radio-button",7),Q(16," Restricted "),E(17,"div"),Q(18,' Users with "View restricted content" can access. '),G()(),E(19,"mat-radio-button",8),Q(20," Restricted+ "),E(21,"div"),Q(22,' Users with "View restricted+ content" can access. '),G()()()(),E(23,"mat-dialog-actions")(24,"button",9),M("click",
function(){return b.onNoClick()}),Q(25," Cancel "),G(),E(26,"button",10),M("click",function(){return b.onSaveClick()}),Q(27," Set "),G()());a&2&&(A(7),T(" ",Pfc(b)," "),A(1),D("rel",b.EXTERNAL_LINK_REL),Uf("href",b.documentationLinks.getRestrictedAccessHelpLink(),le),A(2),D("ngModel",b.severity),A(1),D("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.NONE_DETECTED),A(4),D("value",b.piiSeverity.PII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.PII),
A(4),D("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.SPII),A(7),D("disabled",!b.canInteract()))},dependencies:[pC,KC,LC,MC,yD,eX,fX,Ky,Ry],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)}\n/*# sourceMappingURL=content_judgement_dialog.css.map */"]});
var c4=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=CAb;this.label="Restricted";this.contentType="item"};c4.prototype.getRetentionPeriod=function(){if(!this.retentionState||!this.retentionState.retentionPeriod)return"";var a=Eqa(this.retentionState.retentionPeriod);return a?Wo(Math.floor(1E3*a.getSeconds()/864E5)):""};
var yt=function(a){var b=new Date(864E13);if(!a.retentionState||!a.retentionState.scheduledDeletionTime)return b;a=Vo(Nl(a.retentionState.scheduledDeletionTime));return new Date(a||b)},Qfc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>Vo(Nl(a.retentionState.scheduledDeletionTime))-Date.now():!1};c4.\u0275fac=function(a){return new (a||c4)(B(QN),B(eO))};
c4.\u0275cmp=u({type:c4,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=v();E(0,"xap-bubble",0,1)(2,"div",2);M("focus",function(){w(c);var e=O(1);return z(e.toggle(!0))})("blur",function(){w(c);var e=O(1);return z(e.toggle(!1))});H(3,"mat-icon",3);Q(4);G();P(5,H1a,8,4,"ng-template",null,4,Hg);P(7,I1a,3,1,"ng-template",null,5,Hg);P(9,J1a,8,5,"ng-template",null,6,Hg);G()}if(a&2){var d=O(6);D("panelTemplate",d);A(2);Zf("warning",Qfc(b));A(1);D("svgIcon",Qfc(b)?"delete-alert":
"delete-clock");A(1);T(" ",b.label," ")}},dependencies:[gy,iy,jy,yD,rR,qy],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}\n/*# sourceMappingURL=restricted_chip.css.map */"],
changeDetection:0});
var d4=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};d4.prototype.onNoClick=function(){this.dialogRef.close(!1)};d4.\u0275fac=function(a){return new (a||d4)(B(EC),B(QN),B(HC))};
d4.\u0275cmp=u({type:d4,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&&(E(0,"h1",0),Q(1),G(),E(2,"div",1)(3,"p"),Q(4),E(5,"a",2),Q(6," Learn More "),G()()(),E(7,"div",3)(8,"button",4),M("click",function(){return b.onNoClick()}),Q(9," Cancel "),G(),E(10,"button",5),Q(11," Confirm "),G()());a&2&&(A(1),kg(b.data.title),A(3),T(" ",b.data.content," "),A(1),D("rel",b.EXTERNAL_LINK_REL),Uf("href",b.documentationLinks.getRestrictedAccessHelpLink(),le),A(5),D("mat-dialog-close",!0))},dependencies:[pC,JC,KC,LC,MC],encapsulation:2});
var e4=function(a,b){this.dialog=a;this.documentationLinks=b;this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new sx};
e4.prototype.openDialog=function(){var a=this;CC(this.dialog.open(d4,{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()})};e4.\u0275fac=function(a){return new (a||e4)(B(IC),B(QN))};
e4.\u0275cmp=u({type:e4,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&&(E(0,"span")(1,"button",0),M("click",function(){return b.openDialog()}),Q(2," Show Restricted Content "),G(),E(3,"a",1),Q(4,
" Learn More "),G()());a&2&&(A(1),D("disabled",b.disabled),A(2),D("rel",b.EXTERNAL_LINK_REL),Uf("href",b.documentationLinks.getRestrictedAccessHelpLink(),le))},dependencies:[pC],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}\n/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});
var f4=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};f4.prototype.canInteract=function(){return 2!==this.piiRetention||this.acknowledgeToMatchIssueRetention};f4.prototype.onSaveClick=function(){this.dialogRef.close(1)};f4.prototype.onNoClick=function(){this.dialogRef.close(0)};
f4.\u0275fac=function(a){return new (a||f4)(B(EC),B(QN),B(HC))};
f4.\u0275cmp=u({type:f4,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&&(E(0,"h1",0),H(1,"mat-icon",1),E(2,"div"),P(3,K1a,2,1,"span",2),P(4,L1a,2,0,"span",2),G()(),E(5,"div",3),P(6,M1a,8,1,"span",2),P(7,N1a,3,2,"span",2),E(8,"span")(9,"a",4),Q(10," Learn More "),G()()(),E(11,"div")(12,"span"),P(13,O1a,2,1,"mat-checkbox",5),G()(),E(14,"div",6)(15,"button",7),M("click",function(){return b.onNoClick()}),Q(16," Cancel "),G(),E(17,"button",8),M("click",
function(){return b.onSaveClick()}),Q(18," Save "),G()());a&2&&(A(3),D("ngIf",2===b.piiRetention),A(1),D("ngIf",2!==b.piiRetention),A(2),D("ngIf",2===b.piiRetention),A(1),D("ngIf",2!==b.piiRetention),A(2),D("rel",b.EXTERNAL_LINK_REL),Uf("href",Hu(),le),A(4),D("ngIf",2===b.piiRetention),A(4),D("disabled",!b.canInteract()))},dependencies:[gy,pC,KC,LC,MC,yD,fN,Ky,Ry],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}\n/*# sourceMappingURL=update_retention_dialog.css.map */"]});
var g4=function(){};g4.\u0275fac=function(a){return new (a||g4)};g4.\u0275mod=Yc({type:g4});g4.\u0275inj=Ic({imports:[vy,pF,AF,NC,aH,YC,pO,uG,x3,uF,mX,iN,fz,CR]});
var h4=function(){};h4.prototype.ngOnInit=function(){};h4.\u0275fac=function(a){return new (a||h4)};
h4.\u0275cmp=u({type:h4,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&&(H(0,"button",0),E(1,"mat-menu",1,2)(3,"a",3),Q(4,"Sign out or switch accounts"),G()());if(a&2){var b=O(2);D("matMenuTriggerFor",b);A(3);D("href","https://accounts.google.com/SignOutOptions?hl=en&continue="+encodeURIComponent(window.location.href),
le)}},dependencies:[oF,nF],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 i4=function(){Z.apply(this,arguments);this.trackerCheckboxValues={}};X(i4,Z);i4.\u0275dir=Z.\u0275dir;i4.prototype.ngOnChanges=function(a){if(a.currentTrackerId){this.trackerCheckboxValues={};var b;a=n(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 Rfc=function(a){return Object.keys(Zb(a.trackerCheckboxValues,function(b){return b}))};
i4.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(i4)))(b||i4)}}();
i4.\u0275cmp=u({type:i4,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},features:[Of,ed],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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),Q(4,"Select a tracker"),G(),P(5,P1a,2,0,"span",3),G(),E(6,"div",4),P(7,Q1a,3,2,"div",5),G()()());a&2&&(Zf("hidden",!(b.availableTrackers&&1<b.availableTrackers.length)),A(5),D("ngIf",0===Rfc(b).length),A(2),D("ngForOf",b.availableTrackers))},dependencies:[fy,gy,fN],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 k4=function(a,b,c,d,e,f){Z.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(Ef(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(Ef(this.destroyed$)).subscribe(function(k){k=k.newTab;Sfc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(Ef(this.destroyed$)).subscribe(function(k){Sfc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(Ef(this.destroyed$)).subscribe(function(k){k=
k.newTab;Sfc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(Ef(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(Ef(this.destroyed$)).subscribe(function(k){var q=k.newTab;Sfc(h,sqa(k.settingsTabName),q)})};X(k4,Z);k4.\u0275dir=Z.\u0275dir;var Sfc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
k4.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(sf(),Ef(this.destroyed$)).subscribe(),Mo(this.analytics,"preferences","setDisplayDensity",a))};k4.\u0275fac=function(a){return new (a||k4)(p(eJ),p(BK),p(oI),p(pI),p(aI),p(RN))};k4.\u0275prov=Hc({token:k4,factory:k4.\u0275fac,providedIn:"root"});
var l4=function(a,b,c,d,e,f,h,k,q,t,x){Z.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=t;this.appSearchState=x;this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=Cq(this.activeSession,"enableTrackersAccountHack");this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();
this.searchAcData.acRefreshed$.pipe(Ef(this.destroyed$)).subscribe(function(){y.items=y.searchAcData.items;y.acHeader=y.searchAcData.acHeader})};X(l4,Z);l4.\u0275dir=Z.\u0275dir;var Tfc=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"}};
l4.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(Ef(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("ie");e=new S3b(f,h);if(f){var k=f.slice(0,h);for(var q=!1,t=-1,x=-1;-1<(t=k.indexOf('"',t+1));)q=!q,x=t;k=q?x:-1;if(-1<k)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=MRa(f.slice(0,h)+(-1<q?k.slice(0,q):k),W3b))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},Zi(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);t=k;if("("===f.charAt(0)){b:{t=[];x=/[()]/g;for(var y;null!=(y=x.exec(f));){var F=t[t.length-1];if(F&&F!==y[0]){if(t.pop(),!t.length){t=
y.index>=h;break b}}else t.push(y[0])}t=!0}t=t?2:0}else t=T3b.includes(t.val)&&-1===f.search("^\\d")?1:0;switch(t){case 2:f=T3b.includes(k.val)?Pq(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):Pq(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=Pq(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=Pq(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:Ai(t,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=
Pq(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(C(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Gf(b),Ef(this.destroyed$)).subscribe(function(c){c=n(c);var d=c.next().value;c=c.next().value;var e=a.appSearchState;d=void 0===d?"":d;var f=dya(c),h=f.filters,k=f.text,q=f.complexSyntax,
t=f.resourceIds;f=[h,k,t].reduce(eya);h=[h?"filters":void 0,k?"text":void 0,t?"ids":void 0].filter(Boolean).join("-");q?e.track(d,"complex"):h?e.track(d,h,f):e.track(d,"UNHANDLED");d=ta(e.searchHandlerStack);void 0===d?e.$log.warn("No search function installed."):d(c)})};l4.prototype.ngAfterViewInit=function(){kec(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var Ufc=function(a){if(a.advancedSearchCtrl)return"SUCCESS"!==a.advancedSearchCtrl.getState()?a.currentQuery:rec(a.advancedSearchCtrl).trim()};
g=l4.prototype;g.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(Ufc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&kec(this.advancedSearchCtrl,this.currentQuery)};g.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next(null!=(b=null==(a=this.trackerSearchCtrl)?void 0:Rfc(a))?b:[]);this.advancedSearchCtrl&&(a=Ufc(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:Rfc(a))?b:[]);this.advancedSearchCtrl&&(a=Ufc(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=Ufc(this);void 0!==c&&(vJ(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;vJ(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));Mo(b.analytics,"savedSearches","create")}).catch(function(d){wJ(b.butterBar,Xn(d))}))}};g.isSearchDisabled=function(){return this.inTracker()&&0===Rfc(this.trackerSearchCtrl).length};
g.inTracker=function(){return!!this.trackerSearchCtrl};l4.\u0275fac=function(a){return new (a||l4)(B(NG),B(LJ),B(kZ),B(GM),B(uJ),B(oI),B(pI),B(BK),B(k4),B(eJ),B(IM))};
l4.\u0275cmp=u({type:l4,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&(zg(H1,5),zg(i4,5));if(a&2){var c;yg(c=Bg())&&(b.advancedSearchCtrl=c.first);yg(c=Bg())&&(b.trackerSearchCtrl=c.first)}},features:[Of],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&&(E(0,"b-app-top-bar",0),M("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",
function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(d){return b.saveSearch(d)}),U(1,"async"),P(2,R1a,3,6,"b-tracker-search",1),U(3,"async"),H(4,"b-advanced-search",2),U(5,"async"),P(6,S1a,4,0,"div",3),P(7,V1a,3,2,"div",4),P(8,W1a,2,0,"div",4),G(),P(9,X1a,1,0,"b-tracker-account-menu-hack",5),U(10,"async"));if(a&2){var c;D("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",
Tfc(b,V(1,12,b.currentTracker.tracker$)))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled());A(2);D("ngIf",null!==(c=V(3,14,b.currentTracker.inTracker$))&&void 0!==c?c:!1);A(2);D("isTrackerSearchEnabled",b.currentTracker.enableTrackers&&!V(5,16,b.currentTracker.inTracker$));A(2);D("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));A(1);D("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:
b.advancedSearchCtrl.getState())||"SYNTAX_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));A(1);D("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState()));A(1);D("ngIf",b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&V(10,18,b.currentTracker.inTracker$))}},dependencies:[gy,H1,i4,d2,fM,yD,h4,ny],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 m4=function(){};m4.\u0275fac=function(a){return new (a||m4)};m4.\u0275mod=Yc({type:m4});m4.\u0275inj=Ic({imports:[vy,iN]});
var n4=function(){};n4.\u0275fac=function(a){return new (a||n4)};n4.\u0275mod=Yc({type:n4});n4.\u0275inj=Ic({imports:[vy,K1,m4,k2,RM,uF,pF]});
var o4=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=Ql;this.updateDiffs=b.updateDiffs};o4.prototype.close=function(){this.dialogRef.close()};o4.\u0275fac=function(a){return new (a||o4)(B(EC),B(HC))};
o4.\u0275cmp=u({type:o4,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&&(E(0,"div",0)(1,"ul",1),P(2,f2a,10,4,"li",2),G()(),E(3,"div",3)(4,"button",4),M("click",function(){return b.close()}),Q(5," Close "),G()());a&2&&(A(2),D("ngForOf",b.updateDiffs))},dependencies:[fy,gy,pC,LC,MC,PQ,NQ,fO],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 p4=function(){};p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275mod=Yc({type:p4});p4.\u0275inj=Ic({imports:[vy,AF,NC,gR,AO]});
var q4=function(a,b){Z.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=Gh("https://www.gstatic.com/buganizer/img/v4/favicon.png")};X(q4,Z);q4.\u0275dir=Z.\u0275dir;
var Vfc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?Gh(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(C(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=Gh(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),Ef(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString())a:{if(d instanceof $v)b.href=Fi(d).toString();else{if(-1===mAb.indexOf("icon"))throw Error("Yb`icon");
d=Wja(d);if(void 0===d)break a;b.href=d}b.rel="icon"}})};q4.\u0275fac=function(a){return new (a||q4)(p(hJ),p(LJ))};q4.\u0275prov=Hc({token:q4,factory:q4.\u0275fac,providedIn:"root"});
var Wfc=/^\s*[^:/?#]+:/i,Xfc=/^#/i,r4=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"))&&!Wfc.test(d))if(Xfc.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)}}};r4.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};r4.\u0275fac=function(a){return new (a||r4)(p(oI))};r4.\u0275prov=Hc({token:r4,factory:r4.\u0275fac,providedIn:"root"});
var Yfc=[],Zfc=!1,s4=function(a,b,c,d,e,f,h,k){Z.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};X(s4,Z);s4.\u0275dir=Z.\u0275dir;s4.prototype.tearDown=function(){Z.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};s4.\u0275fac=function(a){return new (a||s4)(p(EW),p(xD),p(NG),p(DZ),p(GZ),p(r4),p(KM),p(q4))};
s4.\u0275prov=Hc({token:s4,factory:s4.\u0275fac,providedIn:"root"});
var $fc={provide:Bw,useFactory:function(a){return function(){kl("app initializer starting");Zfc||(a.iconRegistry._addSvgIconSetConfig("",new Pvb(rQb)),Zfc=!0);if(a.session.isInternalSession()){K0b(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(sf(),Ef(a.destroyed$)).subscribe();for(var b=n(Yfc),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;Cq(a.session,c.flagName)&&K0b(a.hatsService,d).pipe(sf(),Ef(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();
a.linkClickHandler.install();b=a.issueLru;gya(b.viewed,xKb());gya(b.edited,vKb());b.appEvents.issueViewed.pipe(Ef(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(Ef(b.stop$)).subscribe(b.addEdited);Vfc(a.faviconService)}},deps:[s4],multi:!0};
var t4=function(a,b){this.paths=a;this.bLocation=b};t4.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)};t4.\u0275fac=function(a){return new (a||t4)(p(pI),p(oI))};t4.\u0275prov=Hc({token:t4,factory:t4.\u0275fac,providedIn:"root"});var agc={provide:qV,useExisting:t4};
var bgc=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 "cider-next.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 u4=function(a){OD.call(this);this.errorHandlerFn_=a};ev(u4,OD);u4.prototype.wrap=function(a){return cgc(this,a)};var v4=function(a,b){return(b?"__wrapper_":"__protected_")+Ma(a)+"__"},cgc=function(a,b){var c=v4(a,!0);b[c]||((b[c]=dgc(a,b))[v4(a,!1)]=b);return b[c]},dgc=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[v4(a,!1)]=b;return c};
u4.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 egc(a);};
var fgc=function(a,b){var c=ea.window,d=c[b];if(!d)throw Error("De`"+b);c[b]=function(e,f){"string"===typeof e&&(e=cv(dnb,e));e&&(arguments[0]=e=cgc(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][v4(a,!1)]=d};u4.prototype.disposeInternal=function(){var a=ea.window;var b=a.setTimeout;b=b[v4(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[v4(this,!1)]||b;a.setInterval=b;u4.superClass_.disposeInternal.call(this)};
var egc=function(a){ca.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)};ev(egc,ca);
var w4=function(a,b,c){wp.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=ggc;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new u4(bv(this.handleException,this));fgc(this.errorHandler_,"setTimeout");fgc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ea.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&fgc(a,e)}a=this.errorHandler_;
mwb=!0;b=bv(a.wrap,a);for(c=0;c<RD.length;c++)RD[c](b);SD.push(a)}};ev(w4,wp);var hgc=function(a,b){QD.call(this,"B");this.error=a;this.context=b};ev(hgc,QD);var ggc=function(a,b,c,d){if(d instanceof Map){var e={};d=n(d);for(var f=d.next();!f.done;f=d.next()){var h=n(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;zi(a,null,b,c,e)};
w4.prototype.handleException=function(a,b){a=a.error||a;b=b?cc(b):{};a instanceof Error&&dc(b,a.__closure__error__context__984382||{});var c=Jsb(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(k){}var d=c.message.substring(0,1900);if(!(a instanceof ca)||a.reportErrorToServer){a=c.stack;try{var e=IE(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);$b(this.additionalArguments_)||(e=tqa(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=iyb(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new hgc(c,b))}catch(k){}};w4.prototype.disposeInternal=function(){yi(this.errorHandler_);w4.superClass_.disposeInternal.call(this)};
var x4=function(){this.jsBuild="491669451";this.buildLabel="buganizer.frontend_20221129.06_p0"};x4.\u0275fac=function(a){return new (a||x4)};x4.\u0275prov=Hc({token:x4,factory:x4.\u0275fac,providedIn:"root"});var y4=function(){};y4.prototype.reportingEnabled=function(){return 4!==bgc};y4.\u0275fac=function(a){return new (a||y4)};y4.\u0275prov=Hc({token:y4,factory:y4.\u0275fac,providedIn:"root"});
var z4=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new w4("/jserror",function(d,e){e.js_build=a.jsBuild;e.buildLabel=a.buildLabel;e["build-label"]=a.buildLabel;d=n(c.reportingExtensions);for(var f=d.next();!f.done;f=d.next())f.value.enhanceContext(e)},!0)};
z4.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=n(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};z4.\u0275fac=function(a){return new (a||z4)(p(x4),p(y4))};z4.\u0275prov=Hc({token:z4,factory:z4.\u0275fac,providedIn:"root"});
var A4=function(a){this._console=console;this.reporter=a};X(A4,te);A4.prototype.handleError=function(a){this.reporter.reportError(a)};A4.\u0275fac=function(a){return new (a||A4)(p(z4))};A4.\u0275prov=Hc({token:A4,factory:A4.\u0275fac,providedIn:"root"});var B4=function(a){this.activeSession=a};X(B4,y4);B4.prototype.reportingEnabled=function(){return Cq(this.activeSession,"reportErrors")};B4.\u0275fac=function(a){return new (a||B4)(p(NG))};B4.\u0275prov=Hc({token:B4,factory:B4.\u0275fac,providedIn:"root"});
var igc={provide:te,useClass:A4},jgc={provide:y4,useClass:B4},kgc={provide:x4,useValue:{jsBuild:"491669451",buildLabel:"buganizer.frontend_20221129.06_p0"}};
var C4=function(){};C4.\u0275fac=function(a){return new (a||C4)};C4.\u0275cmp=u({type:C4,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var D4=function(){};D4.\u0275fac=function(a){return new (a||D4)};D4.\u0275mod=Yc({type:D4});D4.\u0275inj=Ic({});
var E4=function(){};X(E4,LH);g=E4.prototype;g.shouldDetach=function(){return!1};g.store=function(){};g.shouldAttach=function(){return!1};g.retrieve=function(){return null};g.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Ri(a.params,b.params)};E4.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(E4)))(b||E4)}}();E4.\u0275prov=Hc({token:E4,factory:E4.\u0275fac,providedIn:"root"});
var F4=function(a){this.router=a};
F4.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=n(b.url.split("#ISSUE_HistoryHeader"));a=c.next().value;c=c.next().value;return this.router.createUrlTree([a],{fragment:c&&!isNaN(Number(c))?"comment"+c:void 0})}if(a.queryParamMap.has("showInsights")&&"1"===a.queryParamMap.get("showInsights")){b=n(b.url.split("?")).next().value;var d={};return this.router.createUrlTree([b],{queryParams:Object.assign({},wqa(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=
(c=a.fragment)?c:void 0})}return!0};F4.\u0275fac=function(a){return new (a||F4)(p(fl))};F4.\u0275prov=Hc({token:F4,factory:F4.\u0275fac,providedIn:"root"});
var lgc=/^(\d+)$/,G4=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(MBb))};G4.prototype.validate=function(a){for(var b=n(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=iw(d);if(!lgc.test(d)||isNaN(e)||!Number.isInteger(e))return wJ(this.butterBar,"The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};G4.\u0275fac=function(a){return new (a||G4)(p(uJ))};
G4.\u0275prov=Hc({token:G4,factory:G4.\u0275fac,providedIn:"root"});
var H4=function(a){this.routeParamsValidator=a};H4.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};H4.\u0275fac=function(a){return new (a||H4)(p(G4))};H4.\u0275prov=Hc({token:H4,factory:H4.\u0275fac,providedIn:"root"});
var I4=function(a,b){this.activeSession=a;this.router=b};I4.prototype.canActivate=function(){return this.activeSession.isInternalSession()?!0:this.router.createUrlTree(["issues"])};I4.\u0275fac=function(a){return new (a||I4)(p(NG),p(fl))};I4.\u0275prov=Hc({token:I4,factory:I4.\u0275fac,providedIn:"root"});
var J4=function(a,b){this.currentTracker=a;this.router=b};J4.prototype.canActivate=function(){return this.currentTracker.inTracker?this.router.createUrlTree(["issues"]):!0};J4.\u0275fac=function(a){return new (a||J4)(p(LJ),p(fl))};J4.\u0275prov=Hc({token:J4,factory:J4.\u0275fac,providedIn:"root"});
var K4=function(a){this.router=a};K4.prototype.canActivate=function(){return this.router.createUrlTree([g2a()])};K4.\u0275fac=function(a){return new (a||K4)(p(fl))};K4.\u0275prov=Hc({token:K4,factory:K4.\u0275fac,providedIn:"root"});
var L4=function(a){Z.call(this);var b=this;this.componentFridge=a;this.componentId$=new W.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(hf(function(c){return String(c.idOrKey)===b.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(hf(fm),Df(this.componentFridge.watch),hf(fm));this.component$=(0,W.merge)(this.error$,this.rawComponent$).pipe(C(function(c){return c.componentId&&c.name?c:{componentId:Number(c.idOrKey),name:"(unknown)"}}));this.isArchived$=
this.component$.pipe(C(function(c){return c.archived}));this.componentPath$=this.component$.pipe(C(function(c){return mp(c.componentPathInfo)}));this.init=new W.ReplaySubject(1);this.routes$=this.componentId$.pipe(C(function(c){return{createIssue:uqa(c),componentSettings:vl(c),recentIssues:ul(c)}}))};X(L4,Z);L4.\u0275dir=Z.\u0275dir;L4.prototype.ngOnInit=function(){var a=this;this.component$.pipe(sf(),Ef(this.destroyed$)).subscribe(function(){a.init.next()})};
ni.Object.defineProperties(L4.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});L4.\u0275fac=function(a){return new (a||L4)(B(ZJ))};
L4.\u0275cmp=u({type:L4,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[Of],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&&(E(0,"div",0)(1,
"div",1),P(2,k2a,5,6,"div",2),P(3,l2a,9,3,"ng-container",3),U(4,"async"),P(5,m2a,7,3,"div",4),U(6,"async"),G()());a&2&&(A(2),D("ngIf",!b.hidePath),A(1),D("ngIf",V(4,3,b.component$)),A(2),D("ngIf",V(6,5,b.routes$)))},dependencies:[fy,gy,yD,qC,OR,ny],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 M4=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=ul;this.createIssue=uqa;this.componentSettings=vl;this.trackerId=this.currentTracker.getTrackerId();this.includeArchived=!1;this.isThinking=!0;this.isInternalSession=this.activeSession.isInternalSession();this.placeholder$=this.currentTracker.inTracker$.pipe(C(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})};M4.prototype.back=function(){EZ(this.history)};M4.prototype.filterTrackerComponents=function(a){return Ho(this.trackerId)||a.trackerId===this.trackerId};M4.\u0275fac=function(a){return new (a||M4)(B(oK),B(DZ),B(fl),B(LJ),B(NG))};
M4.\u0275cmp=u({type:M4,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&&(E(0,"article",
0)(1,"header",1)(2,"div",2)(3,"button",3),M("click",function(){return b.back()}),H(4,"mat-icon",4),G(),E(5,"h2"),Q(6,"Components"),G()(),E(7,"div",5),P(8,n2a,2,0,"a",6),E(9,"b-slide-toggle",7),M("modelChange",function(e){return b.includeArchived=e}),G()()(),E(10,"section",8)(11,"h3"),Q(12,"Search"),G(),E(13,"b-team-component-picker",9),M("selectedComponentChange",function(e){null!=e&&Rt(b.router,vl(e.componentId).path)}),U(14,"async"),U(15,"async"),G(),E(16,"h3",10),Q(17,"Recent Components"),G(),
E(18,"div",11),P(19,r2a,4,2,"ng-container",12),U(20,"async"),G(),E(21,"p",13)(22,"a",14),Q(23,"See all Components"),G()()()());if(a&2){var c,d;A(8);D("ngIf",b.isInternalSession);A(1);D("model",b.includeArchived);A(4);D("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:"");A(6);D("ngIf",V(20,10,b.recentComponents$))}},dependencies:[pC,qC,yD,tF,fy,gy,QH,OR,oU,L4,iM,jM,mM,kM,lS,sR,bS,ny],
encapsulation:2});
var N4=function(){};N4.\u0275fac=function(a){return new (a||N4)};N4.\u0275mod=Yc({type:N4});N4.\u0275inj=Ic({imports:[vy,uF,AF,UH,PR]});
var mgc=["bookmarkGroupName"],ngc=function(a){return{"bv2-edit-resource-readonly":a}},O4=function(a,b,c,d,e,f,h,k,q,t){Z.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=t;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new Oy({name:new Qy("",Gy),description:new Qy("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(aY(q,function(){return!(!x.name()&&!x.description())},
!1))};X(O4,Z);O4.\u0275dir=Z.\u0275dir;g=O4.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});Mo(a.analytics,"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(){EZ(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:""};O4.\u0275fac=function(a){return new (a||O4)(B(oI),B(DZ),B(rJ),B(SL),B(pI),B(BK),B(NJ),B(xJ),B($X),B(eJ))};
O4.\u0275cmp=u({type:O4,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&zg(mgc,5);if(a&2){var c;yg(c=Bg())&&(b.bookmarkGroupName=c.first)}},features:[Of],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&&(E(0,"div",0)(1,"div",1)(2,"button",2),M("click",function(){return b.back()}),H(3,"mat-icon",3),G(),E(4,"h2"),Q(5,"Create a new bookmark group"),G()()(),E(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),E(10,"div",8)(11,"label",9),Q(12,"Name"),G(),H(13,"input",10,11),G(),E(15,"div",8)(16,"label",12),Q(17,"Description"),G(),E(18,"textarea",13),Q(19,"        "),G()(),E(20,"p",14),Q(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
G(),E(22,"div",15)(23,"button",16),M("click",function(){return b.save()}),Q(24," Save "),G(),E(25,"button",17),M("click",function(){return b.revertChanges()}),Q(26," Revert changes "),G()()()()());a&2&&(A(8),D("formGroup",b.bookmarkGroupUnderEdit),A(1),D("error",b.error),A(1),D("ngClass",og(7,ngc,b.isSaving)),A(3),D("disabled",b.isSaving),A(2),D("ngClass",og(9,ngc,b.isSaving)),A(3),D("disabled",b.isSaving),A(5),D("disabled",b.isSaving))},dependencies:[ey,pC,tF,yD,Sy,fh,Ky,Ly,bz,Yy,Zy,gY],encapsulation:2});
var ogc=["form"],P4=function(a,b,c,d,e,f,h,k,q,t){Z.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=t;this.parentComponentInternal=null;this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,customFieldId:null,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",
componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null},userHasEditAccess:void 0,commentEditState:void 0,defaultTemplateId:0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0"};this.sessionIsExternal=f.isExternalSession();k.parentId&&this.loadParentComponent(Xi(k.parentId));q.setTitle("Create component")};X(P4,Z);P4.\u0275dir=Z.\u0275dir;g=P4.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate()&&(vJ(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){vJ(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());Mo(a.analytics,"component","create");a.commentEditsEnabled?Mo(a.analytics,"component","comment edits enabled",
"create"):Mo(a.analytics,"component","comment edits disabled","create");setTimeout(function(){a.isSaving=!1;a.bLocation.replaceUrl(a.paths.manageComponent(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){wJ(a.butterBar,Xn(b),0);a.isSaving=!1}))};g.back=function(){EZ(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(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;pgc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;pgc(this)};var pgc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};
ni.Object.defineProperties(P4.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;pgc(this)}}});P4.\u0275fac=function(a){return new (a||P4)(B(uJ),B(pI),B(BK),B(DZ),B(oI),B(NG),B(QN),B(tQ),B(NJ),B(ZR))};
P4.\u0275cmp=u({type:P4,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&zg(ogc,5);if(a&2){var c;yg(c=Bg())&&(b.createComponentForm=c.first)}},features:[Of],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&&(E(0,"div",0)(1,"div",1)(2,"b-button",2),M("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),E(4,"div",4)(5,"h2",5),Q(6,"Create component"),G(),E(7,"div",
6)(8,"form",7,8),H(10,"b-error-banner",9),E(11,"div",10)(12,"label",11)(13,"span",12),Q(14,"Name"),G()(),E(15,"input",13),M("ngModelChange",function(c){return b.component.name=c}),G()(),E(16,"div",10)(17,"label",14)(18,"span",12),Q(19,"Description"),G()(),E(20,"textarea",15),M("ngModelChange",function(c){return b.component.description=c}),Q(21,"        "),G()(),E(22,"div",10)(23,"label",16)(24,"span",12),Q(25,"Parent Component"),G()(),E(26,"b-team-component-picker",17),M("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),G()(),E(27,"div",18)(28,"div",19)(29,"b-checkbox",20),M("change",function(c){b.commentEditsEnabled=c;return b.setCommentEditState()}),G()(),E(30,"div")(31,"strong",21),Q(32,"Editable Comments"),G(),E(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,t2a,2,1,"a",
23),G()()(),E(36,"div",10)(37,"label",24)(38,"span",12),Q(39,"Retention Settings"),G()(),E(40,"div",21)(41,"p"),Q(42,"Please choose a period of time to retain the data stored in this component."),H(43,"br"),E(44,"a",25),Q(45," Learn more "),G()()(),E(46,"div",26)(47,"b-retention-settings-form",27),M("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),G()()(),E(48,"p",28),Q(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
G(),E(50,"div",29)(51,"b-button",30),M("onAction",function(){return b.create()}),Q(52," Save "),G(),E(53,"b-button",31),M("onAction",function(){return b.back()}),Q(54," Discard "),G()()()()());a&2&&(A(8),Zf("show-errors",b.error),A(2),D("error",b.error),A(1),Zf("bv2-edit-resource-readonly",b.isSaving),A(4),D("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),A(1),Zf("bv2-edit-resource-readonly",b.isSaving),A(4),D("ngModel",b.component.description)("disabled",b.isSaving),
A(2),Zf("bv2-edit-resource-readonly",b.isSaving),A(4),D("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),A(1),Zf("bv2-edit-resource-readonly",b.isSaving),A(2),D("checked",b.commentEditsEnabled),A(6),D("ngIf",!b.sessionIsExternal),A(9),D("href",Hu(),le),A(2),Zf("bv2-edit-resource-readonly",b.isSaving),A(1),D("issueRetentionDisabled",b.isSaving)("isExternal",kW(b.parentComponent))("initialModel",b.component.retentionSettings),A(4),D("disabled",
b.isSaving||!b.componentIsValid),A(2),D("disabled",b.isSaving))},dependencies:[FL,gy,gY,XY,Sy,fh,Ky,Ly,bz,Ry,Py,QG,RO,iZ,oU],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});
var qgc=["hotlistName"],rgc=function(a){return{"bv2-edit-resource-readonly":a}},Q4=function(a,b,c,d,e,f,h,k,q,t){Z.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=t;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new Oy({name:new Qy("",Gy),description:new Qy("")});h.setTitle("Create Hotlist");this.subscriptions.add(aY(q,function(){return!(!x.name()&&!x.description())},!1))};X(Q4,Z);
Q4.\u0275dir=Z.\u0275dir;g=Q4.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});Mo(a.analytics,"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(){EZ(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:""};
Q4.\u0275fac=function(a){return new (a||Q4)(B(oI),B(DZ),B(rJ),B(TI),B(pI),B(BK),B(NJ),B(xJ),B($X),B(eJ))};
Q4.\u0275cmp=u({type:Q4,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&zg(qgc,5);if(a&2){var c;yg(c=Bg())&&(b.hotlistName=c.first)}},features:[Of],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&&(E(0,"div",0)(1,"div",1)(2,"button",
2),M("click",function(){return b.back()}),H(3,"mat-icon",3),G(),E(4,"h2"),Q(5,"Create a new hotlist"),G()()(),E(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),E(10,"div",8)(11,"label",9),Q(12,"Name"),G(),H(13,"input",10,11),G(),E(15,"div",8)(16,"label",12),Q(17,"Description"),G(),E(18,"textarea",13),Q(19,"        "),G()(),E(20,"p",14),Q(21," Advanced settings such as access controls may be defined once the hotlist is created. "),G(),E(22,"div",15)(23,"button",16),M("click",function(){return b.save()}),
Q(24," Save "),G(),E(25,"button",17),M("click",function(){return b.revertChanges()}),Q(26," Revert changes "),G()()()()());a&2&&(A(8),D("formGroup",b.hotlistUnderEdit),A(1),D("error",b.error),A(1),D("ngClass",og(7,rgc,b.isSaving)),A(3),D("disabled",b.isSaving),A(2),D("ngClass",og(9,rgc,b.isSaving)),A(3),D("disabled",b.isSaving),A(5),D("disabled",b.isSaving))},dependencies:[ey,pC,tF,yD,Sy,fh,Ky,Ly,bz,Yy,Zy,gY],encapsulation:2});
var R4=function(a,b,c){this.analytics=a;this.activeSession=b;this.hatsService=c;this.enableDupSearchControl=Cq(this.activeSession,"enableDupSearchControl");this.enableDupSearchA=Cq(this.activeSession,"enableDupSearchA");this.enableDupSearchB=Cq(this.activeSession,"enableDupSearchB");this.enableDupSearchC=Cq(this.activeSession,"enableDupSearchC");this.enableDupSearchMoma=Cq(this.activeSession,"enableDupSearchMoma");this.enableSimilarIssues=this.activeSession.isInternalSession()&&(this.enableDupSearchControl||
this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC||this.enableDupSearchMoma)};R4.prototype.triggerSimilarIssuesSurvey=function(){return K0b(this.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",sgc(this)).pipe(C(function(){}))};R4.prototype.trackTitleHoverOver=function(){Mo(this.analytics,Aq.MAGIC_BOX,"titleHoverOver",this.getGroupName())};R4.prototype.trackTitleClick=function(){Mo(this.analytics,Aq.MAGIC_BOX,"titleClick",this.getGroupName())};
var sgc=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};
R4.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":this.enableDupSearchMoma?"VariantMoma":"Control"};R4.\u0275fac=function(a){return new (a||R4)(p(BK),p(NG),p(EW))};R4.\u0275prov=Hc({token:R4,factory:R4.\u0275fac,providedIn:"root"});
var S4=function(a){Y.call(this,a,-1,tgc)};X(S4,Y);S4.prototype.setIssueIdsList=function(a){return Zm(this,1,a)};S4.prototype.addIssueIds=function(a){Gb(this,1,a)};var tgc=[1];S4.messageId="b.BatchIssueDigestRequest";
var vgc=function(a){Y.call(this,a,-1,ugc)};X(vgc,Y);vgc.prototype.getIssueDigestsList=function(){return Nb(this,$I,1)};var ugc=[1];vgc.messageId="b.BatchIssueDigestResponse";
var T4=function(a,b){this.batchApiConfig=a;this.batchApiAdapter=b;this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};T4.prototype.get=function(a){return this.adaptedGet(a).pipe(C(jsa))};T4.prototype.getAll=function(a){return this.batchApiConfig.call(a).pipe(C(u2a))};T4.\u0275fac=function(a){return new (a||T4)(p(U4),p(WJ))};T4.\u0275prov=Hc({token:T4,factory:T4.\u0275fac,providedIn:"root"});var U4=function(a){this.executor=a};
U4.prototype.call=function(a){var b=[].concat(r(a));b.sort();a=new S4;b=n(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:vgc})};U4.prototype.split=function(a,b){b=n(b.getIssueDigestsList());for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.getIssueId()===a)return c;return(new $I).setIssueId(a)};U4.\u0275fac=function(a){return new (a||U4)(p(lH))};U4.\u0275prov=Hc({token:U4,factory:U4.\u0275fac,providedIn:"root"});
var wgc=function(a){Y.call(this,a)};X(wgc,Y);g=wgc.prototype;g.getTitle=function(){return Pi(this,1)};g.setTitle=function(a){return m(this,1,a)};g.getComponentId=function(){return uj(this,2)};g.setComponentId=function(a){return m(this,2,a)};g.hasComponentId=function(){return tj(this,2)};wgc.messageId="b.MomaIssueSearchRequest";
var ygc=function(a){Y.call(this,a,-1,xgc)};X(ygc,Y);var xgc=[1];ygc.messageId="b.MomaIssueSearchResponse";
var V4=function(a){this.executor=a},zgc=function(a,b){b=m((new wgc).setTitle(b.title).setComponentId(String(b.componentId)),3,!0);return a.executor.post({url:"action/issues/momasearch",body:b,responseConstructor:ygc}).pipe(C(function(c){return Mi(c,1)}))};V4.\u0275fac=function(a){return new (a||V4)(p(lH))};V4.\u0275prov=Hc({token:V4,factory:V4.\u0275fac,providedIn:"root"});
var W4=function(a,b,c,d,e){this.paths=a;this.relatedIssuesService=b;this.experimentSupport=c;this.momaSearchApi=d;this.issueDigests=e;this.enableDupSearchControl=this.experimentSupport.enableDupSearchControl;this.enableDupSearchA=this.experimentSupport.enableDupSearchA;this.enableDupSearchB=this.experimentSupport.enableDupSearchB;this.enableDupSearchC=this.experimentSupport.enableDupSearchC;this.enableDupSearchMoma=this.experimentSupport.enableDupSearchMoma},Agc=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)};W4.prototype.hasCustomFieldValue=function(a){return a.customField?0<a.customField.map(function(b){return new wm(b)}).filter(function(b){return!b.isEmpty()}).length:!1};
W4.prototype.searchAsync=function(a,b,c){var d=this;return(0,W.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}})})};
W4.prototype.fetchIssues=function(a){if(this.enableDupSearchMoma&&a.issue.title)return Bgc(this,a.issue.title,a.componentId);if(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC){var b=a.componentId;var c=a.customFieldMap,d=a.issue;if(Agc(this,c,d)){var e=w2a(d.title||"");e=0<e.length?"title:("+e.join(" ")+")":"";var f=cm(d.componentId);e=(f?"componentid:"+f:"")+(e?" "+e:"");if(this.enableDupSearchControl)b=e;else if(f=w2a(cm(d.comment)||""),f=0<f.length?
"comment:("+f.join(" ")+")":"",e+=f?" "+f:"",this.enableDupSearchA)b=e;else{f=cm(d.type);var h=cm(d.priority);e=e+(" "+(h?"priority:"+h:""))+(" "+(f?"type:"+f:""));this.enableDupSearchB?b=e:(f=cm(d.hotlistId),e=e+(" "+(!f||1>(null==f?void 0:f.length)?"":"hotlistid:("+(f.join(" | ")+")")))+(" "+Cgc(this,c,cm(d.customField))),b=this.enableDupSearchC?e:Dgc(b))}}else b=Dgc(b);return this.searchAsync(b,a.count,a.page)}return this.searchAsync(Dgc(a.componentId),a.count,a.page)};
var Dgc=function(a){return"componentid:"+a+" status:open"},Cgc=function(a,b,c){return!c||1>(null==c?void 0:c.length)?"":c.map(function(d){return new wm(d)}).filter(function(d){return!d.isEmpty()}).map(function(d){return Egc(a,b,d)}).join(" ")},Egc=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=Fgc(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 Fgc(f)}).join(" | ")+")";break;case "REPEATED_ENUM":e='("'+c.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":e="("+c.repeatedNumericValue.values.join(" | ")+")"}return e?d+e:""},Fgc=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):""};
W4.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=a[b.customFieldId])?void 0:c.type)?d:""};var Bgc=function(a,b,c){return zgc(a.momaSearchApi,{title:b,componentId:c}).pipe(Df(function(d){return a.issueDigests.getAll(new Set(d))}),C(function(d){d=d.map(function(e){return{id:e.issueId,title:e.title,href:a.paths.editIssue(e.issueId)}});return{issues:d,numTotalResults:d.length}}))};W4.\u0275fac=function(a){return new (a||W4)(p(pI),p(sW),p(R4),p(V4),p(T4))};
W4.\u0275prov=Hc({token:W4,factory:W4.\u0275fac,providedIn:"root"});var v2a=RegExp("\\w+","g");
var X4=function(a,b,c,d){Z.call(this);this.cdr=a;this.analytics=b;this.relatedIssueFetcher=c;this.experimentSupport=d;this.refreshMagicBox=!1;this.refreshMagicBoxChange=new sx;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new sx;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.refresh$=new W.Subject;this.CATEGORIES=Aq};X(X4,Z);X4.\u0275dir=Z.\u0275dir;g=X4.prototype;g.ngOnInit=function(){var a=this;this.fetchIssues();this.refresh$.pipe(of(750),Ef(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=Agc(this.relatedIssueFetcher,this.customFieldMap,this.issue),this.headerChange.emit(this.getHeader()),this.refresh$.next());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(Ef(this.destroyed$)).subscribe(function(c){var d=c.issues;1===b.page&&(b.magicBoxIssues=[]);b.magicBoxIssues=b.enableSimilarIssues?[].concat(r(b.magicBoxIssues),r(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(Ef(this.destroyed$)).subscribe()};
g.trackTitleHoverOver=function(){this.experimentSupport.trackTitleHoverOver()};g.trackTitleClick=function(){this.experimentSupport.trackTitleClick()};g.getGroupName=function(){return this.experimentSupport.getGroupName()};X4.\u0275fac=function(a){return new (a||X4)(B(qH,2),B(BK),B(W4),B(R4))};
X4.\u0275cmp=u({type:X4,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:[mg([sW,qH]),Of,ed],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,y2a,2,2,"div",0),P(1,M2a,9,8,"ng-template",null,1,Hg));a&2&&D("ngIf",b.componentId)},dependencies:[FL,QG,fM,ey,fy,gy,vW,iM,jM,mM,kM,pC,yD],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}\n/*# sourceMappingURL=magic-box.css.map */"]});
var Ggc=["popOver"],O2a=function(a){return{$implicit:a}},Y4=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.valueChange=new sx;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};X(Y4,xO);g=Y4.prototype;g.ngOnInit=function(){};g.valueChanged=function(){return this.editingValue!==this.value};
g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue=this.value,this.popOver.open())};g.stopEditing=function(a){this.editing=!1;0===a&&(this.onChange(this.editingValue),this.value=this.editingValue,this.valueChange.emit(this.value))};g.writeValue=function(a){null!=a&&(this.val=a,this.editing||(this.editingValue=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};ni.Object.defineProperties(Y4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});Y4.\u0275fac=function(a){return new (a||Y4)(Ad("required"))};
Y4.\u0275cmp=u({type:Y4,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&zg(Ggc,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",hasBackdrop:"hasBackdrop"},outputs:{valueChange:"valueChange"},features:[mg([{provide:xy,useExisting:Fc(function(){return Y4}),
multi:!0},{provide:xO,useExisting:Fc(function(){return Y4}),multi:!0}]),Of],decls:11,vars:8,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","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"],[1,"textarea-wrapper"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange",4,"ngIf","ngIfElse"],["singleLineTemplate",""],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1",3,"ngModel","cdkAutosizeMaxRows","ngModelChange"],["spellcheck","false","autocomplete","off",3,"ngModel","ngModelChange"]],template:function(a,b){a&1&&(E(0,"button",0,1),M("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),E(2,"span"),P(3,P2a,2,4,"ng-container",2),P(4,Q2a,1,1,"ng-template",null,3,Hg),G(),P(6,R2a,2,2,"svg",4),G(),E(7,"onedev-pop-over-edit-panel",5,6),M("closedWithAction",
function(f){return b.stopEditing(f)}),G(),P(9,U2a,4,2,"ng-template",null,7,Hg));if(a&2){var c=O(1),d=O(5),e=O(10);Uf("aria-labelledby",b.labelledById);A(3);D("ngIf",b.valueTemplate)("ngIfElse",d);A(3);D("ngIf",!b.disabled);A(1);D("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)}},dependencies:[gy,my,fh,Ky,Ry,PC,G3],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 Hgc=Jh("indicatorRotate",[Mh("collapsed, void",Lh({transform:"rotate(0deg)"})),Mh("expanded",Lh({transform:"rotate(180deg)"})),Nh("expanded <=> collapsed, void => collapsed",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Igc=Jh("bodyExpansion",[Mh("collapsed, void",Lh({height:"0px",visibility:"hidden"})),Mh("expanded",Lh({height:"*",visibility:"visible"})),Nh("expanded <=> collapsed, void => collapsed",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);
var Jgc=new Md("CdkAccordion");
var Kgc=0,Z4=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=W.Subscription.EMPTY;this.closed=new sx;this.opened=new sx;this.destroyed=new sx;this.expandedChange=new sx;this.id="cdk-accordion-child-"+Kgc++;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=Z4.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)})};
ni.Object.defineProperties(Z4.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=rh(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=rh(a)}}});
Z4.\u0275fac=function(a){return new (a||Z4)(B(Jgc,12),B(Xx),B(kB))};Z4.\u0275dir=u({type:Z4,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[mg([{provide:Jgc,useValue:void 0}])]});
var a5=function(){};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275mod=Yc({type:a5});a5.\u0275inj=Ic({});
var Lgc=new Md("MAT_ACCORDION");
var Mgc=new Md("MAT_EXPANSION_PANEL");
var b5=function(a,b){this._template=a;this._expansionPanel=b};b5.\u0275fac=function(a){return new (a||b5)(B(vg),B(Mgc,8))};b5.\u0275dir=u({type:b5,selectors:[["ng-template","matExpansionPanelContent",""]]});
var Ngc=["body"],Ogc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Pgc=0,Qgc=new Md("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),c5=function(a,b,c,d,e,f,h){Z4.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new sx;this.afterCollapse=new sx;this._inputChanges=new W.Subject;this._headerId="mat-expansion-panel-header-"+Pgc++;this._bodyAnimationDone=new W.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(rf(function(q,
t){return q.fromState===t.fromState&&q.toState===t.toState})).subscribe(function(q){"void"!==q.fromState&&("expanded"===q.toState?k.afterExpand.emit():"collapsed"===q.toState&&k.afterCollapse.emit())});h&&(this.hideToggle=h.hideToggle)};X(c5,Z4);c5.\u0275dir=Z4.\u0275dir;g=c5.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(Cf(null),hf(function(){return a.expanded&&!a._portal}),sf()).subscribe(function(){a._portal=new xz(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){Z4.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};
ni.Object.defineProperties(c5.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=rh(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});c5.\u0275fac=function(a){return new (a||c5)(B(Lgc,12),B(Xx),B(kB),B(wg),B(li),B(Ew,8),B(Qgc,8))};
c5.\u0275cmp=u({type:c5,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&Ag(c,b5,5);if(a&2){var d;yg(d=Bg())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&zg(Ngc,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&&Zf("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:[mg([{provide:Lgc,useValue:void 0},{provide:Mgc,useExisting:c5}]),Of,ed],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&&(fg(Ogc),gg(0),E(1,"div",0,1),M("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),E(3,"div",2),gg(4,1),P(5,V2a,0,0,"ng-template",3),G(),gg(6,2),G());a&2&&(A(1),D("@bodyExpansion",b._getExpandedState())("id",b.id),Uf("aria-labelledby",b._headerId),A(4),D("cdkPortalOutlet",b._portal))},dependencies:[Bz],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;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}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.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}.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}.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:[Igc]},changeDetection:0});
var Rgc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sgc=si(function(){}),d5=function(a,b,c,d,e,f,h){var k=Sgc.call(this)||this;k.panel=a;k._element=b;k._focusMonitor=c;k._changeDetectorRef=d;k._animationMode=f;k._parentChangeSubscription=W.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(hf(function(t){return!(!t.hideToggle&&!t.togglePosition)})):W.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,W.merge)(a.opened,a.closed,q,a._inputChanges.pipe(hf(function(t){return!!(t.hideToggle||
t.disabled||t.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(hf(function(){return a._containsFocus()})).subscribe(function(){return tz(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};X(d5,Sgc);g=d5.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:xh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?tz(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)};ni.Object.defineProperties(d5.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
d5.\u0275fac=function(a){return new (a||d5)(B(c5,1),B(Rd),B(sz),B(Xx),B(Qgc,8),B(Ew,8),Ad("tabindex"))};
d5.\u0275cmp=u({type:d5,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&M("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(Uf("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),Yf("height",b._getHeaderHeight()),Zf("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:[Of],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&&(fg(Rgc),
E(0,"span",0),gg(1),gg(2,1),gg(3,2),G(),P(4,W2a,1,1,"span",1));a&2&&(Zf("mat-content-hide-toggle",!b._showToggle()),A(4),D("ngIf",b._showToggle()))},dependencies:[gy],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)}.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:not([aria-disabled=true]){cursor:pointer}.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,.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-description{flex-grow:2}.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}.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:[Hgc]},changeDetection:0});var e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275dir=u({type:e5,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});
var f5=function(){};f5.\u0275fac=function(a){return new (a||f5)};f5.\u0275mod=Yc({type:f5});f5.\u0275inj=Ic({imports:[vy,HB,a5,Cz]});
var Tgc=["descriptionConfirmDialog"],Y2a=function(a,b){return{partner:a,"public":b}},T3a=function(a){return{required:a}},Z3a=function(a){return{"bv2-upload-ongoing":a}},Ugc=function(a){return{submitted:a}},g5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca,Za,Da,Ab,Qa,$a,Oa){Z.call(this);var mb=this;this.ngZone=a;this.$log=b;this.$route=c;this.paths=d;this.redirectUrl=e;this.userAccess=f;this.accessPolicy=h;this.bLocation=k;this.appHistory=q;this.issueTemplate=t;
this.issueTypeDialog=x;this.componentActions=y;this.activeSession=F;this.draftStore=K;this.pageTitle=J;this.analytics=R;this.issueApi=S;this.userApi=aa;this.hotlistApi=ba;this.butterBar=ka;this.errorHandler=wa;this.matDialogService=Aa;this.appEvents=Ka;this.userPreferencesManager=ub;this.cdr=xa;this.confirmationDialogService=Ca;this.issueRelationshipsFridge=Za;this.issueFridge=Da;this.componentFridge=Ab;this.clearcut=Qa;this.currentTracker=$a;this.jspbPrincipalTypes=Oa;this.ISSUE_ID_LIST_PATTERN=
/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=Cq(this.activeSession,"enableRecaptcha")&&Cq(this.activeSession,"enableCaptchaUiMendel");this.enableIssueAccessLimits=Cq(this.activeSession,"enableIssueAccessLimits");this.hotlistMap={};this.hotlists=[];this.templateComment="";this.appliedTemplate=null;this.componentPickerTouched=this.isLoadingComponent=!1;this.availablePredefinedTemplates=
[];this.preferredTemplateId=this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.isValidating=this.isNavigatingAway=this.isSaving=this.submitRequested=this.showRecentIssuesInline=!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.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=GAb;this.FieldType=
pVb;this.initialized=!1;this.trackerComponent$=this.currentTracker.tracker$.pipe(Df(function(Ua){return Ua?mb.componentFridge.watch(Number(Ua.componentId)).pipe(Cf(void 0)):(0,W.of)(void 0)}));this.getSingleEditFieldType=qVb;this.getListFieldType=jWb;this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){mb.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){mb.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){mb.fetchUserHotlists()}));
this.subscriptions.add(this.trackerComponent$.subscribe(function(Ua){Ua&&(mb.selectedComponent||mb.componentRequestedInUrl||mb.templateIssueRequestedInUrl||mb.preferredTemplateId||Vgc(mb,Ua))}));this.enableCreateIssueWithTemplate=Cq(F,"enableCreateIssueWithTemplate");this.enableCollaborators=Cq(F,"enableCollaborators");this.frontendIsInternalOrPartner=F.isInternalSession()||OG(F);this.priorityChoices=pa.priorities.map(function(Ua){return{value:Ua,displayText:Ua}});this.severityChoices=pa.severities.map(function(Ua){return{value:Ua,
displayText:Ua}});this.issueTypeChoices=pa.editIssueTypes.map(function(Ua){return{value:Ua,displayText:yG(Ua),altText:pa.issueTypesShortDescriptions.get(Ua)}});this.urlTemplate=new W4b(Ja,b);this.piiWarningMessage=F.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.componentRequestedInUrl=Ja.component;this.templateIssueRequestedInUrl=Ja.template_issue;Ja.template&&(a=Number(Ja.template))&&(this.preferredTemplateId=a);Ja.parentIssueId&&(a=Ja.parentIssueId,this.parentIssueIds=Array.isArray(a)?a:[a]);Ja.childrenIssueIds&&(a=Ja.childrenIssueIds,this.childrenIssueIds=Array.isArray(a)?a:[a]);Ja.afterIssueId&&(a=Ja.afterIssueId,this.afterIssueId=Array.isArray(a)?a[0]:a);this.issue=Si(g4a);d4a(this.issue,this);this.audience=
2;Ja.description?this.comment=new sQ(Ja.description,!0):(a=this.draftStore.$window.sessionStorage.getItem(cp("0"))||"",this.comment=new sQ(a));this.comment.formattingMode=Wgc(this);a=Xgc(Ja);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(ub.preferences$.subscribe(function(Ua){var xb;mb.useCodefont=null!=(xb=Ua.useCodefont)?xb:mb.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=Y4b(this.urlTemplate)||
!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(jI(Jb,{title:"Create Issue Page",hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var Ua;null==(Ua=mb.hotlistPicker)||Ua.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){mb.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,Ygc(this,Number(this.componentRequestedInUrl))):(c5b(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,Zgc(this));this.originalIssueCopy=Si(this.issue);Ja.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=F.session.config.createRestrictedSubresourcesComponentWhitelist;this.subscriptions.add(aY(fb,
function(){return mb.hasUnsavedChanges()},!1))};X(g5,Z);g5.\u0275dir=Z.\u0275dir;g5.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||""!==this.recaptchaResponse};var a4a=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||a.isValidating};g5.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);$gc(this)};g5.prototype.ngOnInit=function(){this.initialized=!0};g5.prototype.unloadPageHandler=function(){$gc(this)};
var h5=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};g5.prototype.back=function(){EZ(this.appHistory)};g5.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var Vgc=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,ahc(a),a.audience=kW(a.selectedComponent)?2:1,a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?(a.judgementForNewContent=new Om,a.judgementForNewContent.setSeverity(2),a.judgementForNewContent.setJudgementReason("None Specified")):a.judgementForNewContent=
void 0):(ac(a.issue,"componentId"),a.audience=2);a.submitRequested=!1;bhc(a);a.selectedComponentProcessedPromise=Promise.all([chc(a),dhc(a)]).then(function(){});return a.selectedComponentProcessedPromise},ehc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},Z2a=function(a){return b0b(a.selectedComponent)?"External Google partners may be able to see this issue.":lW(a.selectedComponent)?
"Public users may be able to see this issue.":""},Zgc=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?wJ(a.butterBar,"Invalid template_issue specified"):(a.availableExistingIssueTemplate=new fhc(b,"issue","Issue "+b,!1),a.selectedTemplate=a.availableExistingIssueTemplate)},chc=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;lj(kj(f))&&(f=e.default?"(default template)":"(unnamed template)");return new fhc(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=n(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]);h5(a)}).catch(function(){wJ(a.butterBar,"Unable to load templates for this component")}):Promise.resolve(void 0)},dhc=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=TJ(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;h5(a)}),e=TJ(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;h5(a)});c=TJ(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;h5(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;h5(a)});return Promise.all([d,e,c,b]).then(function(){ghc(a);
h5(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
g5.prototype.getIssueTemplate=function(){var a=this;if(this.selectedTemplate){var b=function(c){var d=Object.assign(Si(g4a),c.snapshot);a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);var e=Si(d);ehc(a);f4a(a,a.issue);var f=Si(a.issue);if(a.appliedTemplate)for(var h=n(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=n(q);for(var t=q.next();!t.done;t=q.next())Xma(f[k],t.value)}else Ri(q,
f[k])&&delete f[k]}a.appliedTemplate=e;h4a(d,f);f=e.comment||"";a.comment.value!==a.templateComment&&(kOb(a.comment)||""===f||a.comment.value===f||(a.templateComment=f,hhc(a,a.comment.value)),d.comment=a.comment.value);a.templateComment=f;a.templateCommentFormattingMode=e.formattingMode?e.formattingMode:"PLAIN";d.reporterUser=Zl(a.userEmail);a.enableIssueAccessLimits&&(a.selectedAccessLimitLevel=d.issueAccessLimitLevel||"LIMIT_NONE");a.issue=d;d4a(a.issue,a);ghc(a);ehc(a);f4a(a,a.issue);a.comment.value=
a.issue.comment||"";c5b(a.urlTemplate,a.issue,a.customFieldMap);d4a(a.issue,a);a.originalIssueCopy=Si(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Si(a.issue.hotlistId);h5(a)});ihc(a);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(){h5(a)}):
"issue"===this.selectedTemplate.type&&(OGb(this.issueTemplate,String(this.selectedTemplate.id)).then(function(c){if(a.currentTracker.inTracker&&a.currentTracker.getTrackerId()!==c.trackerId)throw Error("Ee");return b(c)}).then(function(c){c&&(Ygc(a,c),h5(a))}).catch(function(c){wJ(a.butterBar,c.message)}),(0,W.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&&Mo(this.analytics,Aq.CREATE_ISSUE,"changeTemplate");bhc(this)}};g5.prototype.isValid=function(){return!(0!==a3a(this).length||0!==b3a(this).length)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!Bt(this.comment)&&!this.isValidating};
var a3a=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})},b3a=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new wm(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},z3a=function(a,b){0===b.length?a.isCollaboratorsValid=!0:PBb(a.jspbPrincipalTypes,
b,!1).then(function(c){a.invalidCollaboratorsInput=Object.entries(c).filter(function(d){d=n(d);d.next();d=d.next().value;return 2!==(null==d?void 0:qj(d,1,0))}).map(function(d){return n(d).next().value});a.isCollaboratorsValid=0===a.invalidCollaboratorsInput.length}).catch(function(c){a.isCollaboratorsValid=!1;wJ(a.butterBar,c.message)})},Et=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)},
Ct=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},Dt=function(a){return a?a.join(", "):""},ihc=function(a){if(Gba(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=g5.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 wm(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});Mo(this.analytics,Aq.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 wm(a)).getValue())?void 0:b.values)?c:null};
g.saveCommentDraft=function(){var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(cp("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=n(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();Mo(this.analytics,Aq.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;Ea(null!=(b=this.issue.hotlistId)?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.issue=Object.assign({},this.issue,{title:a})};g.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:qu(a)});var b;Mo(this.analytics,Aq.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};var u3a=function(a,b){a.issue=Object.assign({},a.issue,{type:FAb(b)});var c;Mo(a.analytics,Aq.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
g5.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)});Pa(this.selectedHotlists,function(b,c){return gv(b.name,c.name)})};
var jhc=function(a,b){var c,d,e,f,h,k,q,t,x,y,F;return Pe(function(K){switch(K.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){K.jumpTo(2);break}e=[];return 1===d.length?Re(K,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):Re(K,sIb(a.issueRelationshipsFridge,c,d),5);case 5:h=K.yieldResult;e=h.notAdded;f=h.errors;K.jumpTo(4);break;case 6:k=K.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&wJ(a.butterBar,"Unable to add "+e+" as parent(s). "+
f);case 2:q=a.childrenIssueIds;if(null==(t=q)||!t.length){K.jumpTo(7);break}return Re(K,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(J){return{issueId:J}})),8);case 8:x=K.yieldResult,y=x.notAdded,F=x.errors,y.length&&wJ(a.butterBar,"Unable to add "+y+" as children. "+F);case 7:return K.return(b)}})},Y3a=function(a,b){var c=a.issue;a.submitRequested=!0;if(a.isValid()){a.enableIssueAccessLimits&&(c.issueAccessLimitLevel=a.selectedAccessLimitLevel);c.comment=a.comment.value;c.formattingMode=
a.comment.formattingMode;var d={snapshot:c,attachments:lOb(a.comment)};a.enableRecaptcha&&(d.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(d.templateId=a.selectedTemplate.id);a.judgementForNewContent&&1!==a.judgementForNewContent.getSeverity()&&(d.contentJudgement=Cra(a.judgementForNewContent));a.canEditIssuesInComponent||(d.snapshot={title:d.snapshot.title,componentId:d.snapshot.componentId,comment:d.snapshot.comment,formattingMode:d.snapshot.formattingMode,
cc:!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]});d.snapshot=Zb(d.snapshot,function(h){return"string"!==typeof h||!lj(h)});d.snapshot.customField&&(d.snapshot.customField=d.snapshot.customField.filter(function(h){return!(new wm(h)).isEmpty()}));f4a(a,d.snapshot);d.snapshot.assigneeUser&&(d.snapshot.status="ASSIGNED");var e=function(){a.isSaving=!0;a.newIssueStarted=!1;vJ(a.butterBar,"Creating...",0);a.issueApi.createIssue(d).then(function(h){return jhc(a,
h)}).then(function(h){a.draftStore.$window.sessionStorage.removeItem(cp("0"));a.originalIssueCopy=Si(a.issue);Mo(a.analytics,Aq.CREATE_ISSUE,"create","MARKDOWN"===a.comment.formattingMode?"markdown":"non markdown");khc(a);if(b){var k;Mo(a.analytics,Aq.CREATE_ISSUE,"fileAndRedirect","component",null!=(k=c.componentId)?k:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;TJ(a.userAccess,"reader","issues/"+h.issueId).then(function(x){a.componentPickerTouched=!1;x?j5b(a.redirectUrl,a.paths.editIssue(h.issueId),
String(h.issueId)):(vJ(a.butterBar,"New issue created: "+h.issueId+" (view access not granted)",0),j5b(a.redirectUrl,a.paths.listIssues()));h5(a)}).catch(function(x){a.errorHandler.errorHandler(null,x);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var q;Mo(a.analytics,Aq.CREATE_ISSUE,"fileAndNew","component",null!=(q=c.componentId)?q:void 0);k={};XFb(a.butterBar,Fo("New issue created: ",Eo("A",(k.href=a.paths.editIssue(h.issueId),k),String(h.issueId))),0);c.title="";a.comment=new sQ(a.templateComment);
a.comment.formattingMode=a.templateCommentFormattingMode||"PLAIN";c.comment=a.comment.value;a.isSaving=!1;a.submitRequested=!1;var t;k=n(null!=(t=a.magicBoxes)?t:[]);for(t=k.next();!t.done;t=k.next())t.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=Si(a.issue)}h5(a)}).catch(function(h){403===h.status&&Wn(h)?yJ(a.errorHandler,Xn(h)):a.errorHandler.errorHandler(null,h);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1})};lhc(a).then(function(h){return h?mhc(a):Promise.resolve(!1)}).then(function(h){h&&
e()})}else{var f=document.querySelector(".bv2-view");f&&(f.scrollTop=0)}},lhc=function(a){var b=dk();!a.canEditIssuesInComponent&&!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?a.confirmationDialogService.open({title:"",content:dw("Submitting this bug report means your email address will be shared with the team that works on this product."),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):
b.resolve(!0);return b.promise},mhc=function(a){var b=dk();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):gQ(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},Ygc=function(a,b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){if(a.currentTracker.inTracker&&a.currentTracker.getTrackerId()!==c.trackerId)throw Error("Fe");Vgc(a,c);h5(a)}).catch(function(){wJ(a.butterBar,
"Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};g5.prototype.hasUnsavedChanges=function(){var a=i4a(this.issue),b=i4a(this.originalIssueCopy);return!Ri(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var q3a=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;Mo(a.analytics,Aq.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},hhc=function(a,b){CC(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(vf()).subscribe(function(c){c?(a.comment.value=a.templateComment,a.issue.comment=a.templateComment,a.originalIssueCopy.comment=a.templateComment):(a.originalIssueCopy.comment=a.templateComment,a.templateComment="")})},bhc=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)))},zt=function(a){return a.sessionIsExternal?!1:b0b(a.selectedComponent)},At=function(a){return PG(a.activeSession)?!1:lW(a.selectedComponent)},ahc=function(a){if(a.selectedComponent&&
a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=n(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=j4a(b);nhc(a)}},nhc=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=n(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 wm({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=a.issue.customField}},ghc=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)void 0!==a.ccsText?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(r(a.ccsText))):a.ccsText=[a.userEmail]};g=g5.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=n(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);h5(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&Ea(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;Mo(this.analytics,"baseIssue","createHotlist");vJ(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){vJ(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);h5(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);h5(b);return d},function(){var d=b.hotlistMap[c];ac(b.hotlistMap,c);Ea(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(){h5(b)})};
var Xgc=function(a){var b;switch((null==(b=a.format)?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},Wgc=function(a){var b;return hj(null==(b=bI(a.userPreferencesManager).textDisplayPreferences)?void 0:b.lastPublishMode)||"PLAIN"};
g5.prototype.showNewContentJudgementDialog=function(){var a=this,b,c,d=null!=(c=null==(b=this.judgementForNewContent)?void 0:b.getSeverity())?c:1;this.showContentJudgementDialog({severity:d,contentJudgement:this.judgementForNewContent,hasAclToCreate:!0}).pipe(Ef(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};g5.prototype.showContentJudgementDialog=function(a){return CC(this.matDialogService.open(b4,{panelClass:"no-jitter",width:"500px",data:a}))};
var $gc=function(a){a.componentPickerTouched&&(Mo(a.analytics,Aq.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);Mo(a.analytics,Aq.CREATE_ISSUE,"creation-abandon","new-ui")},khc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);EHb(a.analytics,"createIssue",c,"new-ui");Mo(a.analytics,Aq.CREATE_ISSUE,"createIssue","time-to-create-new-ui",c);vK(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date};
ni.Object.defineProperties(g5.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()})}}}});
g5.\u0275fac=function(a){return new (a||g5)(B(Mf),B(WH),B(jJb),B(pI),B(FZ),B(SJ),B(OJ),B(oI),B(DZ),B(fK),B(fQ),B(ZR),B(NG),B(eQ),B(NJ),B(BK),B(bJ),B(oK),B(TI),B(uJ),B(xJ),B(IC),B(eJ),B(tQ),B(iI),B(aI),B($X),B(VG),B(qH,2),B(UL),B(VK),B(FK),B(ZJ),B(uK),B(LJ),B(pH))};
g5.\u0275cmp=u({type:g5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(zg(pW,5),zg(hW,5),zg(Tgc,5),zg(c5,5),zg(X4,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&&M("unload",function(){return b.unloadPageHandler()},!1,Ud)},features:[mg([qH]),Of],decls:31,vars:18,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"],["class","bv2-create-issue-row",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"],[3,"defaultAccessLimitLevel",
"updatedAccessLimitLevel"],[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"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"supportsPreview","comment","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience","showRestrictionOptions","ngClass","commentChange","onChange","onSubmit",
"onRestrict"],["additionalToolbarItems","",3,"initialValue","change"],[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","onAction"],["format","fill","id","bv2-issue-create-start-button",3,"disabled","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"],["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"],["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-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","svgIcon","help-outline",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"],[1,"mat-elevation-z0"],[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"],[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&&(E(0,"h2",0),Q(1,"Create issue"),G(),E(2,"div",1)(3,"div",2)(4,"button",3),M("click",function(){return b.back()}),H(5,"mat-icon",4),G(),E(6,"h2"),Q(7,"Create Issue"),G(),P(8,X2a,1,2,"b-hotlist-picker",5),G()(),E(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),P(13,$2a,6,8,"div",9),P(14,h3a,4,3,"div",10),P(15,j3a,
2,1,"div",11),P(16,k3a,3,1,"div",12),E(17,"div",13)(18,"div",14)(19,"div",15)(20,"label",16),Q(21,"Component"),G()(),E(22,"div",17)(23,"b-team-component-picker",18),M("selectedComponentChange",function(d){return Vgc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=!0}),G()()(),P(24,n3a,11,5,"div",19),G(),P(25,o3a,3,0,"div",20),P(26,b4a,33,26,"div",21),G()(),E(27,"div",22)(28,"b-magic-box",23),M("headerChange",function(d){return b.magicBoxHeader=d}),G()()()(),P(29,
c4a,11,2,"ng-template",null,24,Hg));if(a&2){var c;A(8);D("ngIf",b.canEditIssuesInComponent);A(4);D("ngClass",og(16,Ugc,b.submitRequested));A(1);D("ngIf",zt(b)||At(b));A(1);D("ngIf",b.submitRequested&&!b.isValid());A(1);D("ngIf",0<b.selectedHotlists.length);A(1);D("ngIf",b.enableIssueAccessLimits);A(7);D("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);A(1);D("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);
A(1);D("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);A(1);D("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);A(2);D("componentId",null!==(c=b.issue.componentId)&&void 0!==c?c:void 0)("issueTitle",b.issue.title)("issue",b.issue)("customFieldMap",b.customFieldMap)}},dependencies:[FL,hW,FV,GT,yO,H3,UC,XY,Sy,fh,Ky,Ly,bz,dz,Ry,Py,aX,pW,QG,ZW,fU,X4,pC,
JC,KC,LC,MC,c5,d5,e5,yD,iB,oF,mF,nF,jS,tF,Y4,oU,ey,fy,gy,iW,bX,kL],styles:[".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}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var g4a={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},fhc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};
var ohc=["form"],i5=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=new qX;h.setTitle("Create SLO")};i5.prototype.ngAfterViewInit=function(){};
i5.prototype.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");vJ(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){vJ(a.butterBar,"SLO "+b.getName()+" saved.",2E3);Mo(a.analytics,"SLO","create");a.bLocation.replaceUrl(a.paths.editSlo(b.getSloId()))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};i5.prototype.back=function(){EZ(this.appHistory)};
i5.prototype.revertChanges=function(){this.sloUnderEdit.setName("");this.sloUnderEdit.setDescription("");Mb(this.sloUnderEdit,6,[])};var phc=function(a){return""!==a.sloUnderEdit.getName()||""!==a.sloUnderEdit.getDescription()||0<Ht(a.sloUnderEdit).length};i5.prototype.updateCollection=function(a){Mb(this.sloUnderEdit,6,a)};
i5.prototype.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};i5.\u0275fac=function(a){return new (a||i5)(B(oI),B(sX),B(xJ),B(pI),B(BK),B(uJ),B(NJ),B(DZ))};
i5.\u0275cmp=u({type:i5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&zg(ohc,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&&(E(0,"div",0)(1,"div",
1)(2,"b-button",2),M("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),E(4,"div",4)(5,"h2",5)(6,"span",6),Q(7,"Create a new SLO"),G()(),E(8,"div",7)(9,"form",8,9),H(11,"b-error-banner",10),E(12,"div",11)(13,"label",12),Q(14,"Name"),G(),E(15,"input",13),M("ngModelChange",function(c){return b.sloUnderEdit.setName(c)}),G()(),E(16,"div",11)(17,"label",14),Q(18,"Description"),G(),E(19,"textarea",15),M("ngModelChange",function(c){return b.sloUnderEdit.setDescription(c)}),Q(20,"        "),
G()(),E(21,"div",11)(22,"slo-elements-picker",16),M("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),G()(),E(23,"p",17),Q(24," Access controls may be defined once the slo is created. "),G(),E(25,"div",18)(26,"b-button",19),M("onAction",function(){return b.save()}),Q(27," Save "),G(),E(28,"b-button",20),M("onAction",function(){return b.revertChanges()}),Q(29," Revert changes "),G()()()()());a&2&&(A(9),Zf("show-errors",b.error),
A(2),D("error",b.error),A(1),Zf("bv2-edit-resource-readonly",b.isSaving),A(3),D("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.getName())("disabled",b.isSaving),A(1),Zf("bv2-edit-resource-readonly",b.isSaving),A(3),D("ngModel",b.sloUnderEdit.getDescription())("disabled",b.isSaving),A(3),D("isDisabled",!1)("collection",Ht(b.sloUnderEdit)),A(4),D("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),
A(2),D("disabled",!phc(b)))},dependencies:[FL,gY,XY,Sy,fh,Ky,Ly,bz,Ry,Py,QG,qZ],encapsulation:2});
var j5=function(){this.nextPanelId=1};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275prov=Hc({token:j5,factory:j5.\u0275fac,providedIn:"root"});
var k5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa){Z.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=t;this.pageTitle=x;this.dashboards=y;this.routeParams=F;this.appSearchState=J;this.userAccess=R;this.errorHandler=S;this.statusMessages=aa;this.appEvents=ba;this.hotlistFridge=ka;this.issueFridge=wa;this.ANALYTICS_CATEGORY="dashboard";this.panels=[];this.hotlistChoices=
[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.userEmail=K.getUserEmail();this.groupId=F.groupId||null};X(k5,Z);k5.\u0275dir=Z.\u0275dir;
k5.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){qhc(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){rhc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){rhc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){rhc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){rhc(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 o4a=function(a,b){var c=b.selectedIssues;if(a=shc(a,b.panelId))a.selectedIssues=null!=c?c:[]},n4a=function(a,b,c){b.focusedRowIndex=c;if(null!=c)for(a=n(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},shc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},thc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=k5.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=n(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ri(d,c)||(d&&Ea(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;Mo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");vJ(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);vJ(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;vJ(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 Map;a=n(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;za(d.hotlists);for(var e=n(d.hotlistId||[]),f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]?d.hotlists.push(this.hotlistMap[f]):c.get(f)?c.get(f).push(d):c.set(f,[d])}a={};c=n(c);for(d=c.next();!d.done;a={$jscomp$loop$prop$issueRows$1999:a.$jscomp$loop$prop$issueRows$1999},d=c.next())e=n(d.value),d=e.next().value,e=e.next().value,a.$jscomp$loop$prop$issueRows$1999=e,this.hotlistApi.get(d).then(function(h){return function(k){b.hotlistFridge.announce(k);
for(var q=n(h.$jscomp$loop$prop$issueRows$1999),t=q.next();!t.done;t=q.next())t.value.hotlists.push(k);b.addHotlist(k);b.cdr.detectChanges()}}(a)).catch(function(h){403!==h.status&&b.errorHandler.errorHandler(null,h)})};
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=n(this.panels);for(var e=b.next();!e.done;e=b.next()){e=n(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();vJ(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return HK(this.issueFridge,a[0].issueIds,{markRead:d}).then(function(k){vJ(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var q=n(c.panels),t=q.next();!t.done;t=q.next()){t=n(t.value.selectedIssues);for(var x=t.next();!x.done;x=t.next()){var y=void 0;x.value.lastViewedTime=null!=(y=k)?y:null}}}).catch(function(k){for(var q=n(c.panels),t=q.next();!t.done;t=q.next()){t=n(t.value.selectedIssues);for(var x=t.next();!x.done;x=t.next())x=x.value,x.isRead=!!x.lastViewedTime&&x.lastViewedTime>=x.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
$Nb(a).map(function(k){return k.fieldName});Mo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};vJ(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h,b).then(function(k){for(var q=n([].concat(r(c.searchPanels),r(c.hotlistPanels))),t=q.next();!t.done;t=q.next()){t=t.value;var x=k;if(t.searchResults){t.searchResults=t.searchResults.clone();for(var y=0,F=n(t.searchResults.issues),K=F.next();!K.done;K=F.next()){K=K.value;if(x.affectedIssues[K.issueId]){var J=
x.affectedIssues[K.issueId];J=hEb(J,x.componentMap[Number(ta(J.snapshot).componentId)]);J.selected=K.selected;t.searchResults.issues[y]=J;t.resultsLoaded.emit([t.searchResults.issues[y]])}y++}}}k.errors&&k.errors.length?(q=$i(k.errors,"issueId"),wJ(c.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),Mo(c.analytics,c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=dOb(c.statusMessages,h))?vJ(c.butterBar,k):vJ(c.butterBar,"Saved "+aOb(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){TJ(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 qhc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return uhc(a,c,0===d?0:void 0)})};
k5.prototype.removePanel=function(a){var b=this,c=shc(this,a);if(null!=c){vJ(this.butterBar,"Saving changes...",0);a=Si(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!vhc(b,c,e)});whc(this,a)}};
var rhc=function(a,b,c){b=thc(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=Si(a.bookmarkGroup);var e,f,h=null==(e=a.bookmarkGroup)?void 0:null==(f=e.item)?void 0:f.findIndex(function(k){return vhc(a,d,k)});void 0!==h&&(naa(b.item,h,c),whc(a,b))}}},whc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;xhc(a,a.bookmarkGroup.item);vJ(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},vhc=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}},yhc=function(a,b){return a.panels.find(function(c){return vhc(a,c,b)})},uhc=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:[]}},xhc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=yhc(a,c))?d:uhc(a,c)})};
k5.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,userLogin:this.userEmail}).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)})};
k5.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};k5.\u0275fac=function(a){return new (a||k5)(B(qH),B(pI),B(oI),B(WH),B(BK),B(bJ),B(oK),B(SL),B(TI),B(uJ),B(NJ),B(j5),B(tQ),B(NG),B(IM),B(SJ),B(xJ),B(iQ),B(eJ),B(sK),B(FK))};
k5.\u0275cmp=u({type:k5,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(zg(SY,5),zg(QY,5));if(a&2){var c;yg(c=Bg())&&(b.searchPanels=c);yg(c=Bg())&&(b.hotlistPanels=c)}},features:[mg([qH]),Of],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&&(E(0,"h2",0),Q(1,"Dashboard"),G(),E(2,"div",1)(3,"div",2),Q(4,"Bookmark groups dashboard"),G(),E(5,"b-dashboard-controls",3),M("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),G()(),E(6,"div",4),P(7,m4a,8,3,"div",5),P(8,r4a,3,3,"div",6),G());a&2&&(A(5),D("hotlistChoices",b.hotlistChoices)("panels",b.panels),A(1),D("bFocus",!0),
A(1),D("ngIf",b.bookmarkGroup),A(1),D("ngForOf",b.panels))},dependencies:[VW,dM,SY,QY,fy,gy,iy,jy,XY,tF],encapsulation:2});var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=Yc({type:l5});l5.\u0275inj=Ic({imports:[WW,PM,TY,RY,vy,YY,uG]});
var zhc=["editBookmarkGroupItemsContainer"],Ahc=["bookmarkGroupName"],Ft=function(a){return{"bv2-edit-resource-readonly":a}},S4a=function(a){return{displayText:"Admins",values:a}},R4a=function(a){return[a]},m5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka){Z.call(this);var wa=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=t;this.accessPolicyConverter=x;this.userAccess=
y;this.errorHandler=K;this.appEvents=R;this.snackBar=S;this.confirmationDialog=aa;this.cdr=ba;this.documentationLinks=ka;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=J.getUserEmail();this.accessPolicyUnderEdit=oS();this.flattenedAccessPolicy=oS();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);Bhc(this);Chc(this);Promise.all([a,b]).then(function(){var Aa;null==(Aa=wa.bookmarkGroupNameInput)||Aa.nativeElement.focus()});this.subscriptions.add(aY(F,function(){return wa.hasUnsavedChanges()},!1));F=function(){Bhc(wa)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(F));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(F));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){Chc(wa)}))};
X(m5,Z);m5.\u0275dir=Z.\u0275dir;g=m5.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(){EZ(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!Ri(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!Ri(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};
g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Si(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[Dhc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];n5(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Si(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change bookmark group admins",Co("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",Co("Do you want to archive this bookmark group?"),function(){Ehc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",Co("Do you want to unarchive this bookmark group?"),function(){Ehc(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});Fhc(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=qS(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);wJ(this.butterBar,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=pS(c);a.accessPolicyUnderEdit=Si(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var Ehc=function(a,b){var c=Si(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});Fhc(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
m5.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){Fhc(b,c);b.selectedHotlistIds=[Dhc(b.bookmarkGroup.item)];n5(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var Fhc=function(a,b){a.bookmarkGroup=b;a.bookmarkGroup.item||(a.bookmarkGroup.item=[]);a.bookmarkGroupUnderEdit=Si(a.bookmarkGroup)};
m5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=pS(c);b.accessPolicyUnderEdit=Si(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};m5.prototype.loadUserAccess=function(a){var b=this;return TJ(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var Bhc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},Chc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;n5(a);a.cdr.detectChanges()})},n5=function(a){if(a.userSavedSearches&&null!=a.bookmarkGroupUnderEdit){var b=Ghc(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return-1==b.indexOf(c.searchId)})}},
v4a=function(a,b){var c=Number(b);Fa(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});Hhc(a,c);var d;null==(d=a.editBookmarkGroupItemsContainer)||d.nativeElement.focus()},x4a=function(a,b){Fa(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});n5(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},K4a=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:Ai(b.resourceType)}},F4a=function(a,b){for(var c={},d=n(Object.entries(b.newSelectionMap)),e=d.next();!e.done;c={$jscomp$loop$prop$id$2002:c.$jscomp$loop$prop$id$2002},e=d.next()){var f=n(e.value);e=f.next().value;f=f.next().value;c.$jscomp$loop$prop$id$2002=Xi(e);f&&!b.oldSelectionMap[c.$jscomp$loop$prop$id$2002]?(I4a(a,c.$jscomp$loop$prop$id$2002),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$2002}}(c)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[c.$jscomp$loop$prop$id$2002]&&!f&&(Hhc(a,c.$jscomp$loop$prop$id$2002),Fa(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$2002}}(c)))}},I4a=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},Hhc=function(a,b){Ea(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},B4a=function(a,b){-1===Ghc(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)&&
a.bookmarkGroupUnderEdit.item.push({name:b.name,resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){n5(a)})},Ghc=function(a){return a?$i(a,"savedSearchId"):[]},Dhc=function(a){return a?$i(a,"hotlistId"):[]},G4a=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)},
H4a=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)};m5.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:Ai(a.resourceType)}};
m5.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};m5.\u0275fac=function(a){return new (a||m5)(B(tQ),B(oI),B(uJ),B(OJ),B(oK),B(SL),B(TI),B(pI),B(DZ),B(NJ),B(nS),B(SJ),B($X),B(xJ),B(NG),B(eJ),B(rJ),B(UL),B(qH,2),B(QN))};
m5.\u0275cmp=u({type:m5,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(zg(zhc,5),zg(Ahc,5),zg(XV,5,Rd));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:[mg([qH]),Of],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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),M("click",function(){return b.back()}),H(4,"mat-icon",
4),G(),P(5,s4a,2,1,"button",5),P(6,t4a,2,1,"button",5),G()()(),E(7,"div",6),P(8,T4a,48,40,"ng-container",7),G());a&2&&(A(5),D("ngIf",b.isAdmin&&!b.isArchived()),A(1),D("ngIf",b.isAdmin&&b.isArchived()),A(2),D("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[ey,fy,gy,tF,pC,YV,XV,gY,jX,pW,sM,yD,fh,Ky,bz,Ry,oF,mF,nF,lF,XX],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}\n/*# sourceMappingURL=edit_bookmark_group.css.map */"]});
var Ihc=["savedSearchNameInput"],Gt=function(a){return{"bv2-edit-resource-readonly":a}},Z4a=function(a){return{displayText:"Admins",values:a}},Y4a=function(a){return[a]},o5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa){Z.call(this);var ba=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=t;this.userAccess=y;this.errorHandler=F;this.snackBar=K;this.confirmationDialog=J;this.cdr=
R;this.accessPolicyConverter=S;this.appEvents=aa;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=oS();this.flattenedAccessPolicy=oS();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 ka;null==(ka=ba.savedSearchName)||ka.nativeElement.focus()});this.subscriptions.add(aY(x,function(){return ba.hasUnsavedChanges()},!1))};X(o5,Z);o5.\u0275dir=Z.\u0275dir;g=o5.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=Si(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=pS(c);b.accessPolicyUnderEdit=Si(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return TJ(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(){EZ(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=Si(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Si(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!Ri(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!Ri(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=Si(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("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change saved search admins",Co("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=qS(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);wJ(this.butterBar,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=pS(c);a.accessPolicyUnderEdit=Si(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);wJ(a.butterBar,Xn(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",Co("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"});WDb(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()}})};o5.\u0275fac=function(a){return new (a||o5)(B(tQ),B(oI),B(OJ),B(GM),B(pI),B(DZ),B(uJ),B(NJ),B(NG),B(QN),B($X),B(SJ),B(xJ),B(rJ),B(UL),B(qH,2),B(nS),B(eJ))};
o5.\u0275cmp=u({type:o5,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(zg(Ihc,5),zg(XV,5,Rd));if(a&2){var c;yg(c=Bg())&&(b.savedSearchName=c.first);yg(c=Bg())&&(b.tabs=c)}},features:[mg([qH]),Of],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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),M("click",function(){return b.back()}),H(4,"mat-icon",4),G(),P(5,U4a,2,1,"button",5),G()()(),E(6,"div",6),P(7,V4a,
4,0,"ng-container",7),P(8,$4a,51,38,"ng-container",7),G());a&2&&(A(5),D("ngIf",b.isAdmin),A(2),D("ngIf",!b.isLoading&&!b.savedSearch),A(1),D("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[ey,gy,tF,pC,YV,XV,gY,yD,fh,Ky,bz,Ry,XX],encapsulation:2});
var Jhc=function(a){Y.call(this,a)};X(Jhc,Y);g=Jhc.prototype;g.getAuthor=function(){return Ub(this,Wl,1)};g.setAuthor=function(a){Vb(this,1,a)};g.getTimestamp=function(){return Ub(this,Cj,2)};g.setTimestamp=function(a){return Vb(this,2,a)};g.hasTimestamp=function(){return vj(this,Cj,2)};g.getAdd=function(){return Ub(this,qX,3)};g.getRemove=function(){return Ub(this,qX,4)};g.getAddMask=function(){return Ub(this,oG,5)};g.getRemoveMask=function(){return Ub(this,oG,6)};
var Lhc=function(a){Y.call(this,a,-1,Khc)};X(Lhc,Y);Lhc.prototype.getUpdatesList=function(){return Nb(this,Jhc,1)};var Khc=[1];Lhc.messageId="b.SloHistory";
var p5=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};p5.prototype.get=function(a){var b=this.sloHistories.get(String(a));return void 0!==b?b:this.sloHistories.put(String(a),this.executor.get({url:"action/slo_updates/"+a,responseConstructor:Lhc}))};p5.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};p5.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};
p5.\u0275fac=function(a){return new (a||p5)(p(BI),p(mH))};p5.\u0275prov=Hc({token:p5,factory:p5.\u0275fac,providedIn:"root"});
var q5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka){Z.call(this);var wa=this;this.routeParams=a;this.accessPolicyConverter=b;this.bLocation=c;this.appHistory=e;this.butterBar=f;this.pageTitle=h;this.documentationLinks=q;this.userAccess=x;this.accessPolicyApi=y;this.sloApi=F;this.sloUpdatesApi=K;this.sloUpdatesService=J;this.errorHandler=R;this.matDialogService=S;this.analytics=aa;this.confirmationDialogService=ba;this.appEvents=ka;this.historyDiffs=void 0;this.isImportedFromBugScope=this.isUneditedFromBugScope=
this.elementPickerIsValid=this.isAdmin_=this.isUpdating_=this.isLoading=!1;this.selectedTabIndex=0;this.validity={};this.isInvalid=function(){return Object.values(wa.validity).some(function(Aa){return!Aa})};this.editableAccessPolicy=oS();this.flattenedAccessPolicy=oS();this.subscriptions.add(aY(t,function(){return wa.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=bo("SLO",Xi(a));if(this.sloEnabled=k.isInternalSession())this.pageTitle.setTitle("SLO Overview"),Mhc(this,a),Nhc(this,
a),Ohc(this,a),Phc(this,a);this.alertState={getValue:function(){return wa.editableCopy?1===qj(wa.editableCopy,9,0):!1},getSavedValue:function(){return wa.slo?1===qj(wa.slo,9,0):!1},setValue:function(Aa){wa.editableCopy&&m(wa.editableCopy,9,Aa?1:0)}};this.currentUserEmail=k.getUserEmail()};X(q5,Z);q5.\u0275dir=Z.\u0275dir;
q5.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)};q5.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};q5.prototype.updateCollection=function(a){this.editableCopy&&Mb(this.editableCopy,6,a)};
var Mhc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;Ht(a.slo)||Mb(a.slo,6,[]);a.editableCopy=a.slo.clone();a.pageTitle.setTitle("SLO: "+c.getName())}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})},Ohc=function(a,b){a.accessPolicyApi.get("SLO",Number(b)).then(function(c){a.flattenedAccessPolicy=pS(c);a.editableAccessPolicy=Si(a.flattenedAccessPolicy)}).catch(function(c){a.errorHandler.errorHandler(null,c)})},Qhc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=
c.getUpdatesList().map(function(d){return O4b(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})},Nhc=function(a,b){TJ(a.userAccess,"admin",bo("SLO",Xi(b))).then(function(c){a.isAdmin_=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};q5.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
q5.prototype.hasUnsavedMetadataChanges=function(){var a=this.slo,b=this.editableCopy;return!(a==b||a&&b&&a instanceof b.constructor&&Laa(a.internalArray_,b.internalArray_))};q5.prototype.hasUnsavedAccessPolicyChanges=function(){return!Ri(this.flattenedAccessPolicy,this.editableAccessPolicy)};
q5.prototype.saveMetadata=function(){var a=this;Rhc(Ht(this.slo),Ht(this.editableCopy))?Shc(this):this.confirmationDialogService.open({title:"Save SLO changes?",content:Fo(Co("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."),Eo("br"),Eo("br"),Co("Please combine changes into as few updates as possible.")),onConfirm:function(){Shc(a)},onDismiss:Xv})};
var d5a=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.setIsArchived(b);Shc(a)};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Co("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:Xv}):c()}},Rhc=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.getMetric()===e.getMetric()&&d.getMatcher()===e.getMatcher())d=Ub(d,Ml,3),e=Ub(e,
Ml,3),f=null===d&&null===e||null!==d&&null!==e&&d.getSeconds()===e.getSeconds();if(!f)return!1}return!0},Shc=function(a){var b=a.editableCopy;vJ(a.butterBar,"Saving SLO ID "+b.getSloId()+"...");a.isUpdating_=!0;a.sloApi.update(b).then(function(c){var d='Changes to SLO "'+c.getName()+'" saved.';Rhc(Ht(a.slo),Ht(a.editableCopy))||(d+=" Propagating this change may take several hours.");vJ(a.butterBar,d);a.slo=c;Ht(a.slo)||Mb(a.slo,6,[]);a.editableCopy=c.clone();a.sloUpdatesApi.invalidateCache(a.slo.getSloId());
Mo(a.analytics,Aq.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating_=!1})};
q5.prototype.saveAccessPolicy=function(){var a=this;Thc(this)?this.confirmationDialogService.open({title:"Change SLO admins",content:Co("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(){Uhc(a)},onDismiss:Xv}):Uhc(this)};
var Uhc=function(a){try{var b=qS(a.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);wJ(a.butterBar,b);return}a.isUpdating_=!0;vJ(a.butterBar,"Saving access settings...");a.accessPolicyApi.update("SLO",a.slo.getSloId(),b).then(function(c){vJ(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=pS(c);a.editableAccessPolicy=Si(a.flattenedAccessPolicy);Nhc(a,a.slo.getSloId());Mo(a.analytics,Aq.EDIT_SLO,"updateAccessPolicy")},function(c){wJ(a.butterBar,
Xn(c),0)}).finally(function(){a.isUpdating_=!1})},Phc=function(a,b){Qhc(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"===Ul(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===Ul(d.author)&&(a.isUneditedFromBugScope=!0)}})},Thc=function(a){if(Ri(a.flattenedAccessPolicy.admins,a.editableAccessPolicy.admins))return!1;var b="2:"+a.currentUserEmail;return a.flattenedAccessPolicy.admins.includes(b)&&
!a.editableAccessPolicy.admins.includes(b)};g=q5.prototype;g.revertMetadataChanges=function(){var a=this;if(Rhc(Ht(this.slo),Ht(this.editableCopy))){var b;this.editableCopy=null==(b=this.slo)?void 0:b.clone()}else this.confirmationDialogService.open({title:"Revert SLO changes?",content:Fo(Co("Revert all changes to this SLO?")),onConfirm:function(){var c;a.editableCopy=null==(c=a.slo)?void 0:c.clone()},onDismiss:Xv})};
g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Si(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating_};g.back=function(){EZ(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdmin_};
g.showUpdateHistoryModal=function(){var a=this;Qhc(this,this.slo.getSloId()).then(function(){a.matDialogService.open(o4,{width:"600px",data:{updateDiffs:a.historyDiffs}});Mo(a.analytics,Aq.UPDATE_HISTORY_MODAL,"open");Mo(a.analytics,Aq.EDIT_SLO,"viewHistory")})};q5.\u0275fac=function(a){return new (a||q5)(B(tQ),B(nS),B(oI),B(pI),B(DZ),B(uJ),B(NJ),B(NG),B(QN),B($X),B(SJ),B(OJ),B(sX),B(p5),B(xZ),B(xJ),B(IC),B(BK),B(UL),B(eJ))};
q5.\u0275cmp=u({type:q5,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&zg(XV,5,Rd);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},features:[Of],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&&(E(0,"div",0)(1,"div",1)(2,"b-button",2),M("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),E(4,"div",4),P(5,a5a,2,0,"div",5),P(6,i5a,55,31,"div",6),G());a&2&&(A(5),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading&&b.slo&&b.slo.getSloId()&&b.editableCopy))},dependencies:[FL,gy,Sy,fh,Ky,Ly,bz,Ry,Py,AW,QG,YV,XV,XX,RO,qZ,fM],encapsulation:2});
var r5=function(){this.issue=null;this.isDataLoaded=!1};r5.prototype.ngOnChanges=function(){var a;this.assignee=kwa(Ul(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};r5.\u0275fac=function(a){return new (a||r5)};
r5.\u0275cmp=u({type:r5,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[ed],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),P(1,j5a,2,2,"b-person-hovercard",1),P(2,k5a,1,0,"ng-template",null,2,Hg),G());if(a&2){var c=O(3);D("isReady",b.isDataLoaded);A(1);D("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[g1,gy,WP],encapsulation:2,changeDetection:0});
var s5=function(){this.isDataLoaded=!1};s5.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};s5.\u0275fac=function(a){return new (a||s5)};
s5.\u0275cmp=u({type:s5,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue"},features:[ed],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],["mode","datetime",3,"timestamp",4,"ngIf","ngIfElse"],["noData",""],["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),P(1,l5a,1,1,"b-formatted-date-time",1),G(),P(2,m5a,1,0,"ng-template",null,2,Hg));if(a&2){var c=O(3);D("isReady",b.isDataLoaded);A(1);D("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[g1,
gy,fO],encapsulation:2,changeDetection:0});
var t5=function(){};t5.prototype.ngOnInit=function(){};t5.\u0275fac=function(a){return new (a||t5)};t5.\u0275cmp=u({type:t5,selectors:[["b-issue-id-cell"]],inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),Q(1),G());a&2&&(D("isReady",!!b.id),A(1),T(" ",b.id," "))},dependencies:[g1],encapsulation:2,changeDetection:0});
var u5=function(){this.issue=null;this.isDataLoaded=!1};u5.prototype.ngOnChanges=function(){var a;this.reporter=kwa(Ul(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};u5.\u0275fac=function(a){return new (a||u5)};
u5.\u0275cmp=u({type:u5,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[ed],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),P(1,n5a,2,2,"b-person-hovercard",1),P(2,o5a,1,0,"ng-template",null,2,Hg),G());if(a&2){var c=O(3);D("isReady",b.isDataLoaded);A(1);D("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[g1,gy,WP],encapsulation:2,changeDetection:0});
var v5=function(){this.STATUS_FULL_TEXT=GG;this.STATUS_TERSE=CG;this.issue=null;this.isDataLoaded=!1};v5.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};v5.prototype.convertIssueStatusStrToTag=function(a){return Ym[a]};v5.\u0275fac=function(a){return new (a||v5)};
v5.\u0275cmp=u({type:v5,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[ed],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),P(1,p5a,2,5,"div",1),P(2,q5a,1,0,"ng-template",null,2,Hg),G());if(a&2){var c=O(3);D("isReady",b.isDataLoaded);A(1);D("ngIf",b.convertIssueStatusStrToTag(b.status))("ngIfElse",c)}},dependencies:[g1,gy],encapsulation:2,changeDetection:0});
var w5=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};w5.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};w5.\u0275fac=function(a){return new (a||w5)};
w5.\u0275cmp=u({type:w5,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[ed],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&&(E(0,"b-async-data-placeholder",0),P(1,r5a,1,3,"b-team-display",1),P(2,s5a,1,0,"ng-template",null,2,Hg),G());if(a&2){var c=O(3);D("isReady",b.isDataLoaded);
A(1);D("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[g1,gy,TT],encapsulation:2,changeDetection:0});
var x5=function(){this.issue=null;this.title="";this.isDataLoaded=!1;this.link={path:""}};x5.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=tl(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};x5.\u0275fac=function(a){return new (a||x5)};
x5.\u0275cmp=u({type:x5,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x"],inputs:{issue:"issue"},features:[ed],decls:4,vars:5,consts:[[1,"title","title-location",3,"isReady"],[3,"trackerId","compactMode"],[1,"hover-link","line-clamp-3",3,"routerLinkObj","keydown","click"]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),H(1,"b-tracker-chip-smart",1),E(2,"a",2),M("keydown",function(c){"Enter"===c.key&&c.stopPropagation()})("click",function(c){return c.stopPropagation()}),
Q(3),G()());a&2&&(D("isReady",b.isDataLoaded),A(1),D("trackerId",null==b.issue?null:b.issue.trackerId)("compactMode",!0),A(1),D("routerLinkObj",b.link),A(1),kg(b.title||"--"))},dependencies:[g1,OR,bS],styles:[".title[_ngcontent-%COMP%] {\n      margin-left: 4px\n      padding: 7px 0 6px 0;\n      display: flex;\n      flex-direction: row;\n      align-items: center;\n    }\n    a[_ngcontent-%COMP%] {\n      color: inherit;\n    }"],changeDetection:0});
var y5=function(){this.type=this.issue=null;this.isDataLoaded=!1};y5.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};y5.\u0275fac=function(a){return new (a||y5)};
y5.\u0275cmp=u({type:y5,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[ed],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(E(0,"b-async-data-placeholder",0),P(1,t5a,3,3,"ng-container",1),P(2,u5a,1,0,"ng-template",null,2,Hg),G());if(a&2){var c=O(3);D("isReady",b.isDataLoaded);A(1);D("ngIf",b.type)("ngIfElse",c)}},dependencies:[g1,gy,kL],encapsulation:2,changeDetection:0});
var Vhc=function(a,b){WA.call(this,a);this.directives=a;this.isEqual=b};X(Vhc,WA);var It=function(a,b){var c;return Pe(function(d){if(1==d.nextAddress)return Re(d,(0,W.firstValueFrom)(a.directives.changes.pipe(Cf(a.directives.toArray()),C(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),hf(Boolean),kf(3E3))),2);c=d.yieldResult;SA(a,c);Ve(d)})};
var z5=function(a,b){this.checker=a;this.document=b},Whc=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?Whc(a,b[c]):null;if(d)return d}return null};z5.\u0275fac=function(a){return new (a||z5)(p(iz),p(li))};z5.\u0275prov=Hc({token:z5,factory:z5.\u0275fac,providedIn:"root"});
var A5=function(a,b){this.elementRef=a;this.interactivityHelper=b};A5.prototype.ngOnInit=function(){};A5.prototype.focus=function(){var a=Whc(this.interactivityHelper,this.elementRef.nativeElement,!0);a&&a.focus()};ni.Object.defineProperties(A5.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});A5.\u0275fac=function(a){return new (a||A5)(B(Rd),B(z5))};A5.\u0275dir=u({type:A5,selectors:[["tr","row",""]],inputs:{row:"row"}});
var Xhc=Jh("indicator",[Mh("active-asc, asc",Lh({transform:"translateY(0px)"})),Mh("active-desc, desc",Lh({transform:"translateY(10px)"})),Nh("active-asc <=> active-desc",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Yhc=Jh("leftPointer",[Mh("active-asc, asc",Lh({transform:"rotate(-45deg)"})),Mh("active-desc, desc",Lh({transform:"rotate(45deg)"})),Nh("active-asc <=> active-desc",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Zhc=Jh("rightPointer",[Mh("active-asc, asc",Lh({transform:"rotate(45deg)"})),Mh("active-desc, desc",
Lh({transform:"rotate(-45deg)"})),Nh("active-asc <=> active-desc",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),$hc=Jh("arrowOpacity",[Mh("desc-to-active, asc-to-active, active",Lh({opacity:1})),Mh("desc-to-hint, asc-to-hint, hint",Lh({opacity:.54})),Mh("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Lh({opacity:0})),Nh("* => asc, * => desc, * => active, * => hint, * => void",Kh("0ms")),Nh("* <=> *",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),aic=Jh("arrowPosition",[Nh("* => desc-to-hint, * => desc-to-active",
Kh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Lh({transform:"translateY(-25%)"}),Lh({transform:"translateY(0)"})]})),Nh("* => hint-to-desc, * => active-to-desc",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Lh({transform:"translateY(0)"}),Lh({transform:"translateY(25%)"})]})),Nh("* => asc-to-hint, * => asc-to-active",Kh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Lh({transform:"translateY(25%)"}),Lh({transform:"translateY(0)"})]})),Nh("* => hint-to-asc, * => active-to-asc",
Kh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Lh({transform:"translateY(0)"}),Lh({transform:"translateY(-25%)"})]})),Mh("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Lh({transform:"translateY(0)"})),Mh("hint-to-desc, active-to-desc, desc",Lh({transform:"translateY(-25%)"})),Mh("hint-to-asc, active-to-asc, asc",Lh({transform:"translateY(25%)"}))]),bic=Jh("allowChildren",[Nh("* <=> *",[Ph("@*",Oh())])]);
var B5=function(){this.changes=new W.Subject};B5.\u0275fac=function(a){return new (a||B5)};B5.\u0275prov=Hc({token:B5,factory:B5.\u0275fac,providedIn:"root"});var cic={provide:B5,deps:[[new mw,new nw,B5]],useFactory:function(a){return a||new B5}};
var dic=new Md("MAT_SORT_DEFAULT_OPTIONS"),eic=kla(qi(function(){})),C5=function(a){var b=eic.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new W.Subject;b.start="asc";b._direction="";b.sortChange=new sx;return b};X(C5,eic);g=C5.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()};ni.Object.defineProperties(C5.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=rh(a)}}});C5.\u0275fac=function(a){return new (a||C5)(B(dic,8))};
C5.\u0275dir=u({type:C5,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:[Of,ed]});
var fic=qi(function(){}),D5=function(a,b,c,d,e,f,h,k){var q=fic.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};X(D5,fic);g=D5.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)||IA(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||HA(c,this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,W.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()})};ni.Object.defineProperties(D5.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=rh(a)}}});
D5.\u0275fac=function(a){return new (a||D5)(B(B5),B(Xx),B(C5,8),B("MAT_SORT_HEADER_COLUMN_DEF",8),B(sz),B(Rd),B(GA,8),B(dic,8))};
D5.\u0275cmp=u({type:D5,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&M("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&&(Uf("aria-sort",b._getAriaSortAttribute()),Zf("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:[Of],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&&(fg(),E(0,"div",0)(1,"div",1),gg(2),G(),P(3,v5a,6,6,"div",2),G());a&2&&(Zf("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),Uf("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),A(3),D("ngIf",b._renderArrow()))},dependencies:[gy],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:[Xhc,Yhc,Zhc,$hc,aic,bic]},changeDetection:0});
var gic="focus-indicator title type team id assignee status menu".split(" "),E5=function(a,b,c){Z.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.issueIds$=new W.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.tableColumns=gic.slice();this.activeSort$=new W.BehaviorSubject(void 0);this.rows$=this.issueIds$.pipe(ol(),C(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),Df(function(e){return(0,W.combineLatest)([d.activeSort$].concat(r(e.map(function(f){return f.issue$.pipe(Cf(null))})))).pipe(C(function(f){var h=
n(f);f=h.next().value;h=gf(h);e=e.filter(function(k){var q;return!(null==(q=d.getIssue(k))?0:q.isArchived)});return h.some(function(k){return null===k})?e:hic(d,e,f)}))}),Af({refCount:!0,bufferSize:1}));this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new Cg;this.getIssue=function(e){return nl(e.issue$)}};X(E5,Z);E5.\u0275dir=Z.\u0275dir;g=E5.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(r(this.menuItemFactory(a)))};g.ngOnInit=function(){this.initialSort&&this.initialSort.direction&&this.activeSort$.next(this.initialSort)};
g.ngAfterViewInit=function(){var a=this;(0,W.combineLatest)([this.rows$,this.displayedRows.changes.pipe(Cf(void 0))]).pipe(Ef(this.destroyed$)).subscribe(function(b){b=n(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=RA(new Vhc(this.correctedDisplayedRows,S5a))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=ql(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?lq(this.domSafe,b):Rt(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};g.onSortChange=function(a){this.activeSort$.next(a)};
var hic=function(a,b,c){if(!c||!c.direction)return b;switch(c.active){case "status":return kua(a.getIssue)(b,c.direction);case "assignee":return lua(a.getIssue)(b,c.direction);case "reporter":return nua(a.getIssue)(b,c.direction);case "type":return mua(a.getIssue)(b,c.direction);case "createdTime":return oua(a.getIssue)(b,c.direction);default:return b}};ni.Object.defineProperties(E5.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}}});
E5.\u0275fac=function(a){return new (a||E5)(B(FK),B(fl),B(RN))};
E5.\u0275cmp=u({type:E5,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&zg(A5,5);if(a&2){var c;yg(c=Bg())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",tableColumns:"tableColumns"},features:[Of],decls:35,vars:10,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","status"],["mat-header-cell","","mat-sort-header","status",4,"matHeaderCellDef"],
["matColumnDef","team"],["matColumnDef","createdTime"],["mat-header-cell","","mat-sort-header","createdTime",4,"matHeaderCellDef"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","selectionPreventsClick","","class","clickable",3,"row","click","mouseup","focusin","keydown",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["tabindex","-1","mat-cell",""],["mat-cell",""],[3,"id"],[3,"issue"],["mat-header-cell","","mat-sort-header","type"],["mat-header-cell","",
"mat-sort-header","assignee"],["mat-header-cell","","mat-sort-header","reporter"],["mat-header-cell","","mat-sort-header","status"],["mat-header-cell","","mat-sort-header","createdTime"],["buttonLabel","More options",3,"menuItems","click"],["mat-header-row",""],["mat-row","","selectionPreventsClick","",1,"clickable",3,"row","click","mouseup","focusin","keydown"]],template:function(a,b){a&1&&(E(0,"table",0),M("matSortChange",function(e){return b.onSortChange(e)}),U(1,"async"),U(2,"async"),I(3,1),P(4,
w5a,1,0,"th",2),P(5,x5a,1,0,"td",3),L(),I(6,4),P(7,y5a,2,0,"th",2),P(8,z5a,2,1,"td",5),L(),I(9,6),P(10,A5a,2,0,"th",2),P(11,B5a,3,3,"td",5),L(),I(12,7),P(13,C5a,2,0,"th",8),P(14,D5a,3,3,"td",5),L(),I(15,9),P(16,E5a,2,0,"th",10),P(17,F5a,3,3,"td",5),L(),I(18,11),P(19,G5a,2,0,"th",12),P(20,H5a,3,3,"td",5),L(),I(21,13),P(22,I5a,2,0,"th",14),P(23,J5a,3,3,"td",5),L(),I(24,15),P(25,K5a,2,0,"th",2),P(26,L5a,3,3,"td",5),L(),I(27,16),P(28,M5a,2,0,"th",17),P(29,N5a,3,3,"td",5),L(),I(30,18),P(31,O5a,1,0,"th",
2),P(32,P5a,2,1,"td",5),L(),P(33,Q5a,1,0,"tr",19),P(34,R5a,1,1,"tr",20),G());if(a&2){var c,d;D("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=V(1,6,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=V(2,8,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");A(33);D("matHeaderRowDef",b.tableColumns);A(1);D("matRowDefColumns",b.tableColumns)}},dependencies:[C5,D5,u3,m3,q3,n3,l3,r3,o3,p3,s3,t3,KY,HN,r5,u5,t5,v5,w5,x5,y5,s5,A5,ny],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%]{width: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 F5=function(a,b,c,d){Z.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=yQb;this.TEA_LIGHT=xQb;this.getStatus=function(f){return f.snapshot[0].status};this.STATUS_FULL_TEXT=GG;this.STATUS_TERSE=CG;this.id$=ml(this.bestRoute.paramMap.pipe(C(function(f){return $l(f.get("issueId"))}),hf(fm),Ef(this.destroyed$)));this.searchUrl$=this.id$.pipe(C(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=this.id$.pipe(Df(this.issues.watch));
this.blockingIds$=this.issue$.pipe(C(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(Df(this.issues.watchSet));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(C(function(f){return f.filter(jo)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(C(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(C(function(f){return f.filter(function(h){return iua(h)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(C(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(){var h=e.id$.value;null!=h&&GK(e.issues,"REMOVE","BLOCKING",String(h),[String(f)]).catch(e.gotErr)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(f){var h=e.id$.value;null!=h&&GK(e.issues,"ADD","BLOCKING",
String(h),f).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(Xn(f)||"Error with network request","close",{panelClass:"error"})}};X(F5,Z);F5.\u0275dir=Z.\u0275dir;F5.prototype.convertIssueStatusStrToTag=function(a){return Ym[a]};var T5a=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)};
ni.Object.defineProperties(F5.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});F5.\u0275fac=function(a){return new (a||F5)(B(Fk),B(FK),B(GW),B(rJ))};
F5.\u0275cmp=u({type:F5,selectors:[["ng-component"]],features:[Of],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&&(E(0,"section",0),P(1,g6a,4,2,"ng-container",1),U(2,"async"),G(),P(3,h6a,2,0,"aside",2),U(4,"async"));a&2&&(A(1),D("ngIf",V(2,2,b.blockingIds$)),A(2),D("ngIf",V(4,4,b.thinking$)))},dependencies:[fy,gy,QH,pC,qC,tF,fM,E5,ny],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 G5=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new sx;this.title=""};G5.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};G5.\u0275fac=function(a){return new (a||G5)};
G5.\u0275cmp=u({type:G5,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[ed],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&&(E(0,"div",0),P(1,i6a,2,3,"button",1),P(2,j6a,1,0,"div",2),H(3,"b-issue-title-cell",3),G());a&2&&(Yf("margin-left",24*b.level,"px"),A(1),D("ngIf",b.expandable),A(1),D("ngIf",!b.expandable),A(1),D("issue",b.issue))},dependencies:[gy,QG,pC,x5],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 iic=["theInput"],H5=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new sx;this.commit=new sx};H5.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};H5.\u0275fac=function(a){return new (a||H5)};
H5.\u0275cmp=u({type:H5,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&zg(iic,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&&(E(0,"input",0,1),M("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),G());a&2&&(Zf("readonly",b.readonly)("override",b.readonly),D("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[fh,Ky,Ry],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 I5=function(){};I5.\u0275fac=function(a){return new (a||I5)};I5.\u0275mod=Yc({type:I5});I5.\u0275inj=Ic({imports:[k1,vy,fz,$G,AF,bR,vL,AO,UT,PR,fS]});
var J5=function(){};J5.\u0275fac=function(a){return new (a||J5)};J5.\u0275mod=Yc({type:J5});J5.\u0275inj=Ic({providers:[cic],imports:[vy,HB]});
var K5=function(){};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275mod=Yc({type:K5});K5.\u0275inj=Ic({imports:[FA,vA,Vz,vy,fz,AF,uF,J5,x3,bW,uG,gz,UH,NY,k1,GL,JN,RM,I5]});
var L5=function(){};L5.\u0275fac=function(a){return new (a||L5)};L5.\u0275mod=Yc({type:L5});L5.\u0275inj=Ic({imports:[Vz,vA,fz,gz,UH,AF,bW,uG,uF,xW,TM,JN,RM,K5]});
var M5=function(a,b,c,d){this.issueFridge=a;this.relationshipsFridge=b;this.issuePicker=c;this.butterBar=d;this.editIssueDependencies=oqa;this.parentIds$=new W.ReplaySubject(1);this.parents$=this.parentIds$.pipe(Df(this.issueFridge.watchSet));this.isThinking$=new W.BehaviorSubject(!1);this.parentNames$=this.parents$.pipe(C(p6a));this.parentIdAndNames$=(0,W.combineLatest)([this.parentIds$,this.parentNames$])},kic=function(a){!0!==a.isThinking$.getValue()&&null!=a.issueId&&a.issuePicker.open({title:"Add Parent to b/"+
a.issueId,allowMultipleIds:!1,edgeType:"parent"},function(b){jic(a,a.issueId,b)})},jic=function(a,b,c){var d=n(c).next().value,e,f,h,k;Pe(function(q){if(1==q.nextAddress){e=d;if(!e)return q.return();a.isThinking$.next(!0);return Re(q,a.relationshipsFridge.assignParentToOneIssue(e,b),2)}if(3!=q.nextAddress)return f=q.yieldResult,h=f.errors,(null==(k=h)?0:k.length)?(wJ(a.butterBar,"Could not add parent"),q.jumpTo(3)):Re(q,a.issueFridge.poke(b),3);a.isThinking$.next(!1);Ve(q)})};
ni.Object.defineProperties(M5.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(null!=a){this.issueId=a.issueId;var b;this.parentIds$.next(null!=(b=a.parentIssueIds)?b:[])}}}});M5.\u0275fac=function(a){return new (a||M5)(B(FK),B(VK),B(GW),B(uJ))};
M5.\u0275cmp=u({type:M5,selectors:[["related-parents-compact"]],inputs:{issue:"issue"},decls:8,vars:8,consts:[["class","inline-block margin-s-right",4,"ngIf","ngIfElse"],["mat-stroked-button","","type","button","title","Add a parent to this issue",1,"gmat-button","small","add",3,"click"],[1,"pos-fill","centered-inside"],["loadingNames",""],[1,"inline-block","margin-s-right"],["class","muted",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"muted"],[1,"subtle-link",3,"routerLink","onedevHovercardTrigger"],["issueHovercard",
"onedevHovercard"],[3,"onedevIsHovercardReady","issueId","childContextId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId","childContextId"],["cardBody",""],[1,"inline-block","margin-s-right","muted"]],template:function(a,b){a&1&&(P(0,n6a,3,2,"section",0),U(1,"async"),E(2,"button",1),M("click",function(){return kic(b)}),U(3,"async"),Q(4," Add parent "),H(5,"b-spinner",2),G(),P(6,o6a,2,0,"ng-template",null,3,Hg));if(a&2){var c=O(7);D("ngIf",V(1,4,b.parentIdAndNames$))("ngIfElse",
c);A(2);Zf("thinking",V(3,6,b.isThinking$))}},dependencies:[fy,gy,QH,vW,iM,jM,mM,kM,pC,fM,ny],styles:["[_nghost-%COMP%] {\n      display: inline-block;\n    }\n    .add[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: none;\n    }\n    .add.thinking[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%] {\n      display: flex; \n    }\n    .add.thinking[_ngcontent-%COMP%] {\n      color: transparent; \n    }\n    .issue-editor-false   [_nghost-%COMP%]     button.add {\n      display: none;\n    }"],
changeDetection:0});
var lic="focus-indicator title type team id assignee status menu".split(" "),mic="focus-indicator drag-handle title type id assignee status menu".split(" ");
var N5=function(a,b,c,d){Z.call(this);var e=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.blockerIssueIds$=new W.BehaviorSubject([]);this.tableColumns=lic;this.initialSort={active:"status",direction:"asc"};this.getMenuItems=function(f){return[{type:"action",label:"Remove blocker",action:function(){nic(e,f)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var f=n(e.blockerIssueIds$.value),
h=f.next();!h.done;h=f.next())e.issueFridge.poke(h.value)}))};X(N5,Z);N5.\u0275dir=Z.\u0275dir;N5.prototype.ngOnInit=function(){};var nic=function(a,b){var c;Pe(function(d){if(1==d.nextAddress){Mo(a.analytics,Aq.EDIT_ISSUE,"update","remove-blocker");Qe(d,2);var e=GK(a.issueFridge,"REMOVE","BLOCKED_BY",a.issueId,[b]);return Re(d,e,4)}if(2!=d.nextAddress)return Wu(d,0);c=Ue(d);wJ(a.butterBar,"Could not remove blocker "+b+". "+(Wn(c)?Xn(c):c));Ve(d)})};
ni.Object.defineProperties(N5.prototype,{blockerIds:{configurable:!0,enumerable:!0,set:function(a){this.blockerIssueIds$.next(null!=a?a:[])}}});N5.\u0275fac=function(a){return new (a||N5)(B(FK),B(uJ),B(BK),B(DK))};
N5.\u0275cmp=u({type:N5,selectors:[["b-blockers-table"]],inputs:{blockerIds:"blockerIds",issueId:"issueId"},features:[Of],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","menuItemFactory","initialSort"]],template:function(a,b){a&1&&(P(0,q6a,2,4,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.blockerIssueIds$))},dependencies:[gy,E5,ny],encapsulation:2,changeDetection:0});
var O5=function(){this.EMPTY_BLOCKER_LIGHT=sQb;this.EMPTY_BLOCKER_DARK=tQb;this.EMPTY_CHILD_LIGHT=uQb;this.EMPTY_CHILD_DARK=vQb};O5.\u0275fac=function(a){return new (a||O5)};
O5.\u0275cmp=u({type:O5,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&&(E(0,"h1",0),Q(1,"About Dependencies"),G(),E(2,"div",1)(3,"div",2),H(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),G(),E(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. "),E(11,"a",6),Q(12,"Learn more"),G()()()(),E(13,"div",7)(14,
"button",8),Q(15,"Ok"),G()());a&2&&(A(4),D("src",b.EMPTY_CHILD_LIGHT,le),A(1),D("src",b.EMPTY_BLOCKER_LIGHT,le),A(1),D("src",b.EMPTY_CHILD_DARK,le),A(1),D("src",b.EMPTY_BLOCKER_DARK,le))},dependencies:[pC,JC,KC,LC,MC],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 oic={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},P5=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=oic};P5.\u0275fac=function(a){return new (a||P5)(B(HC),B(pI))};
P5.\u0275cmp=u({type:P5,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&&(E(0,"h1",0),Q(1,"Archive with all descendant issues?"),G(),
E(2,"div",1),Q(3),H(4,"br")(5,"br"),E(6,"a",2),Q(7,"View all descendant issues"),G(),H(8,"br"),E(9,"a",3),Q(10,"Learn more"),G()(),E(11,"div",4)(12,"button",5),Q(13,"Cancel"),G(),E(14,"button",5),Q(15," Just this one "),G(),E(16,"button",6),Q(17," Archive all "),G()());a&2&&(A(3),T(" 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? "),A(3),ig("href",b.descendantIssuesUrl,
le),A(6),D("matDialogClose",b.ActionType.CANCEL),A(2),D("matDialogClose",b.ActionType.ARCHIVE_ONE),A(2),D("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[pC,JC,KC,LC,MC],encapsulation:2});var Q5=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};
Q5.prototype.submitArchivalState=function(a,b){var c=this;return Pe(function(d){if(1==d.nextAddress)return b?Re(d,c.archive(a),5):Re(d,c.editIssueService.unarchive(a),0);c.issueFridge.poke(a);c.eventsForIssueFridge.poke(a);Ve(d)})};
Q5.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,t,x,y;return Pe(function(F){if(1==F.nextAddress)return Re(F,Promise.all([b.getDescendants(a),(0,W.firstValueFrom)(b.issueFridge.watch(a))]),2);c=F.yieldResult;d=n(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;t=q.childToParents;x=q.completeResult;y=[].concat(r(t.keys()));t.set(a,k.parentIssueIds||[]);return 0===y.length?F.return(pic(b,a,t)):x?F.return(qic(b,a,y,t)):F.return(ric(b,a,t))})};
var qic=function(a,b,c,d){var e,f,h;return Pe(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},Re(k,(0,W.firstValueFrom)(CC(a.dialog.open(P5,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(sic(a,[b].concat(r(c)),d));case "ARCHIVE_ONE":return k.return(pic(a,b,d));case "CANCEL":return k.return();default:return k.return(Ai(h))}})},sic=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];tic(a,
c);vJ(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){vJ(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){wJ(a.butterBar,e);uic(a,c)})},pic=function(a,b,c){tic(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){vJ(a.butterBar,"Archived successfully.")}).catch(function(d){wJ(a.butterBar,d);uic(a,c)})},ric=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues\uff1f",
content:Fo(Co("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."),Eo("BR",{}),Eo("BR",{}),Eo("A",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Eo("BR",{}),Eo("A",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")),cancelButtonText:"Cancel",confirmButtonText:"Just this one",onConfirm:function(){pic(a,
b,c).then(d)},onDismiss:d})})},tic=function(a,b){b=n(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=n(c.value);c=d.next().value;d=d.next().value;d=n(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},uic=function(a,b){b=[].concat(r(b.values())).flat();b=n(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
Q5.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,t,x,y,F,K;return Pe(function(J){if(1==J.nextAddress)return Re(J,(0,W.firstValueFrom)(pIb(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;h=n(d);for(k=h.next();!k.done;k=h.next()){q=k.value;t=n(q.relatedChildren);for(x=t.next();!x.done;x=t.next())y=x.value,F=void 0,K=null!=(F=f.get(y.targetIssueId))?F:[],K.push(q.issueId),f.set(y.targetIssueId,K);q.totalChildCount===q.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};Q5.\u0275fac=function(a){return new (a||Q5)(p(bJ),p(IC),p(UL),p(VK),p(FK),p(hK),p(pI),p(uJ),p(HQ))};Q5.\u0275prov=Hc({token:Q5,factory:Q5.\u0275fac,providedIn:"root"});
var R5=function(a){this.pathToAncestor=a},Lt=function(a){return new R5(a.split(">"))},vic=function(a,b){return new R5([].concat(r(a.pathToAncestor),[b]))};R5.prototype.hash=function(){return this.pathToAncestor.join(">")};R5.prototype.equals=function(a){return!!a&&Ri(this.pathToAncestor,a.pathToAncestor)};var wic=function(a,b){a=n(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=n(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
R5.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};R5.prototype.some=function(a){return this.pathToAncestor.some(a)};R5.prototype.toString=function(){return this.hash()};
ni.Object.defineProperties(R5.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 R5(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});
var S5=function(){var a=this;this.draftRows=new Map;this.changed$=new W.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};S5.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:vic(a,d),level:a.size-1,issue$:(0,W.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};
S5.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};S5.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=n(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 xic=function(a,b){return Pe(function(c){return c.return((0,W.firstValueFrom)(a.changed$.pipe(Cf(a.draftRows),C(function(d){return![].concat(r(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),hf(Boolean),C(function(){}))))})};S5.prototype.isSaving=function(){return[].concat(r(this.draftRows.values())).flat().some(function(a){return a.saving})};S5.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(r(c),[b]));this.changed$.next(this.draftRows)};
var yic={defaultExpandedChildren:0,defaultExpansionLevel:0,maxExpansion:Infinity},zic=function(){var a={defaultExpansionLevel:3,defaultExpandedChildren:10,maxExpansion:500};this.config=a=void 0===a?yic:a;this.expansionState={};this.changed$=new W.ReplaySubject(1)},Aic=function(a,b){b=b.hash();return a.expansionState[b]},T5=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},Bic=function(a,b,c){var d=!1;c=n(c);for(var e=c.next();!e.done;e=
c.next()){e=e.value;var f=vic(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===Aic(a,e)&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=n(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=n(k.value);var q=k.next().value;k=k.next().value;q=Lt(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new R5(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!Aic(a,
b)){var t;a.expansionState[b.hash()]=null!=(t=a.config.defaultExpandedChildren)?t:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};
var U5=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Zl(this.activeSession.getUserEmail())},Dic=function(a,b){var c,d,e;return Pe(function(f){if(1==f.nextAddress)return Re(f,Cic(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(Vta(d,e))})},Fic=function(a,b){var c;return Pe(function(d){if(1==d.nextAddress)return Re(d,Eic(a,b),2);c=d.yieldResult;return d.return({snapshot:[c],
issueId:"",userData:void 0,aggregatedData:void 0,accessLimit:void 0,visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[]})})},Gic=function(a,b,c){var d;return Pe(function(e){if(1==e.nextAddress)return Re(e,Eic(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
U5.prototype.create=function(a){var b=this,c,d;return Pe(function(e){return 1==e.nextAddress?Re(e,b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,Re(e,b.issueFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var Eic=function(a,b){var c,d,e,f,h;return Pe(function(k){if(1==k.nextAddress)return Re(k,(0,W.firstValueFrom)(a.issueFridge.watch(b).pipe(hf(fm))),2);if(3!=k.nextAddress)return c=k.yieldResult,Re(k,Cic(a,String(c.snapshot[0].componentId)),3);d=k.yieldResult;e=d.component;f=d.defaultTemplate;if(f){var q={};f.snapshot.priority&&(q.priority=f.snapshot.priority);f.snapshot.severity&&(q.severity=f.snapshot.severity);f.snapshot.type&&(q.type=f.snapshot.type)}else q={};if(c){var t={};c.snapshot[0].priority&&
(t.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(t.severity=c.snapshot[0].severity);c.snapshot[0].type&&(t.type=lIb[c.snapshot[0].type])}else t={};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]},t,q,Hic(e,f));return k.return(h)})},Hic=function(a,b){var c=[],d,e,f={};a=n(null!=(e=null==(d=a.componentPathInfo)?
void 0:d.allCustomField)?e:[]);for(d=a.next();!d.done;f={$jscomp$loop$prop$customField$2004:f.$jscomp$loop$prop$customField$2004},d=a.next())if(f.$jscomp$loop$prop$customField$2004=d.value,f.$jscomp$loop$prop$customField$2004.required){e=void 0;d=null!=(e=f.$jscomp$loop$prop$customField$2004.typedDefaultValue)?e:new wm({customFieldId:f.$jscomp$loop$prop$customField$2004.customFieldId});var h=e=void 0,k=void 0,q=null!=(k=null==(e=b)?void 0:null==(h=e.snapshot.customField)?void 0:h.find(function(t){return function(x){return x.customFieldId===
t.$jscomp$loop$prop$customField$2004.customFieldId}}(f)))?k:d;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},Cic=function(a,b){var c,d,e,f,h,k;return Pe(function(q){if(1==q.nextAddress)return Re(q,Promise.all([(0,W.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,W.firstValueFrom)(a.componentFridge.watch(b).pipe(hf(fm)))]),2);c=q.yieldResult;d=n(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};
U5.\u0275fac=function(a){return new (a||U5)(p(bJ),p(NG),p(FK),p(ZJ),p(gK))};U5.\u0275prov=Hc({token:U5,factory:U5.\u0275fac,providedIn:"root"});
var Kic=function(a,b,c,d,e,f,h,k,q,t,x){var y=this;this.rootIssueId=a;this.analytics=b;this.butterBar=c;this.issueFridge=d;this.issuePicker=e;this.issueRelationshipsFridge=f;this.paths=h;this.router=k;this.issueCreationService=q;this.clearcut=t;this.refreshMonitor=x;this.expansion=new zic;this.draftRows=new S5;this.refetchingAll$=new W.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Df(function(){y.refetchingAll$.next(!0);var F=nl(y.rows$),K=[];if(!F)return Promise.resolve();
K.push(y.issueRelationshipsFridge.pokeMany({type:"descendants",ids:new Set([y.rootIssueId]),depth:3}));F=n(F);for(var J=F.next();!J.done;J=F.next())J=J.value,"data"===J.type&&K.push(y.issueFridge.poke(J.id)),1<J.level&&K.push(y.issueRelationshipsFridge.poke(J.id));return Promise.all(K).then(function(){y.refetchingAll$.next(!1)})}));this.rows$=(0,W.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,W.scheduled)((0,W.of)({}),W.asapScheduler)).pipe(Df(function(){return pIb(y.issueRelationshipsFridge,
y.rootIssueId,3)}),Df(function(){for(var F=new Map,K=n(Object.entries(y.expansion.expansionState)),J=K.next();!J.done;J=K.next()){J=n(J.value);var R=J.next().value;J=J.next().value;R=Lt(R).nodeId;var S=void 0;J=Math.max(J,null!=(S=F.get(R))?S:0);F.set(R,J)}return Iic(y,F)}),C(function(F){return Jic(y,F)}),Af({refCount:!0,bufferSize:1}));this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(hf(fm));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new R5([this.rootIssueId]),
expandedCount:500,issue$:W.NEVER,hasChildren$:W.NEVER};this.supportsOneLineCreation=(0,W.firstValueFrom)(this.rootIssue$).then(function(F){return Go(F.snapshot[0].componentId)}).then(function(F){return Dic(y.issueCreationService,F)});this.isOneLineCreationSupported=function(){return y.supportsOneLineCreation}},Lic=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k;Pe(function(q){switch(q.nextAddress){case 1:return d=b.nodeId,Re(q,(0,W.firstValueFrom)(a.issueFridge.watch(d)),2);
case 2:return(e=q.yieldResult)?Re(q,a.supportsOneLineCreation,3):q.return();case 3:f=q.yieldResult;if(!f){q.jumpTo(4);break}return Re(q,Fic(a.issueCreationService,d),5);case 5:return h=q.yieldResult,q.return(a.draftRows.create(b,h,c));case 4:return Re(q,Rt(a.router,a.paths.createIssue({component:e.snapshot[0].componentId,parentIssueId:e.issueId,redirectUrl:oqa(a.rootIssueId),afterIssueId:null==(k=c)?void 0:k.afterIssueId})),6);case 6:return q.return()}})};
Kic.prototype.addExistingChild=function(a){var b=this,c,d,e,f;Pe(function(h){if(1==h.nextAddress)return Re(h,(0,W.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 Re(h,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return Pe(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k);Mo(b.analytics,Aq.EDIT_ISSUE,"add","existing-child-issue");
return Re(q,op(),2)}a&&T5(b.expansion,a.ancestorChain,500);Ve(q)})}),0)})};Kic.prototype.saveDraft=function(a){var b=this,c;return Pe(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return Re(d,Mic(b,a),2)}return(c=d.yieldResult)?d.return(Nic(b,a,c)):d.return()})};
var Mic=function(a,b){var c,d,e,f;return Pe(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Qe(h,2),Re(h,Gic(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;Wu(h,3);break;case 2:return f=Ue(h),wJ(a.butterBar,"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);EHb(a.analytics,"createIssue",q,"from-tree");Mo(a.analytics,
Aq.CREATE_ISSUE,"createIssue","time-to-create-from-tree",q);vK(a.clearcut,k,"createIssue-fromTree")}T5(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var t=n(k.draftRows.values()),x=t.next();!x.done;x=t.next()){x=n(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)}})},Nic=function(a,b,c){var d,e,f,h,k,q;return Pe(function(t){if(1==t.nextAddress)return d=b.ancestorChain.parentNodeId,
f=null!=(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?t.jumpTo(2):Re(t,xic(a.draftRows,f),2);if(4!=t.nextAddress)return Re(t,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=t.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&wJ(a.butterBar,"Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);Ve(t)})},Iic=function(a,b,c){c=void 0===c?0:c;return(0,W.combineLatest)([a.rootIssueId].concat(r(b.keys())).map(function(d){return a.refetchingAll$.pipe(hf(function(e){return!e}),
Df(function(){return oIb(a.issueRelationshipsFridge,d)}))})).pipe(C(function(d){return d.filter(Boolean)}),Df(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(1===c)return(0,W.of)(e);d=Oic(a,e,c);d=new Map(d.map(function(f){return[f,10]}));return Iic(a,d,c+1).pipe(C(function(f){var h=new Map(e);f=n(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=n(k.value);k=q.next().value;q=q.next().value;h.set(k,q)}return h}))}))},Oic=function(a,b,c){var d=[];a=[{id:a.rootIssueId,
level:-1}];for(var e={};0<a.length;){e.$jscomp$loop$prop$current$2006=a.pop();e.$jscomp$loop$prop$current$2006.level===c&&d.push(e.$jscomp$loop$prop$current$2006.id);if(!(e.$jscomp$loop$prop$current$2006.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$current$2006.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,r(k.map(function(q){return function(t){return{id:t.targetIssueId,level:q.$jscomp$loop$prop$current$2006.level+1}}}(e))))}e={$jscomp$loop$prop$current$2006:e.$jscomp$loop$prop$current$2006}}return d},
Jic=function(a,b){for(var c=[],d=[a.ROOT_ROW],e={};0<d.length;){e.$jscomp$loop$prop$parentRow$2008=d.pop();if("load-more-children"===e.$jscomp$loop$prop$parentRow$2008.type||"draft-issue"===e.$jscomp$loop$prop$parentRow$2008.type)c.push(e.$jscomp$loop$prop$parentRow$2008);else{e.$jscomp$loop$prop$parentRow$2008.id!==a.rootIssueId&&c.push(e.$jscomp$loop$prop$parentRow$2008);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$parentRow$2008.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,
e.$jscomp$loop$prop$parentRow$2008.expandedCount);e.$jscomp$loop$prop$childrenLevel$2009=e.$jscomp$loop$prop$parentRow$2008.level+1;e.$jscomp$loop$prop$parentRow$2008.expandedCount&&f.length<k.length&&(h=vic(e.$jscomp$loop$prop$parentRow$2008.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.$jscomp$loop$prop$childrenLevel$2009,parentIssue$:e.$jscomp$loop$prop$parentRow$2008.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(t){var x=
vic(q.$jscomp$loop$prop$parentRow$2008.ancestorChain,t.targetIssueId),y=t.targetIssueId,F=q.$jscomp$loop$prop$childrenLevel$2009,K=a.issueRelationshipsFridge.watch(t.targetIssueId).pipe(C(bva));var J=q.$jscomp$loop$prop$childrenLevel$2009;var R=x.nodeId,S=Aic(a.expansion,x);if(void 0!==S)J=S;else if(1>J){var aa,ba;J=Math.min(10,null!=(ba=null==(aa=b.get(R))?void 0:aa.relatedChildren.length)?ba:0)}else J=0;return{type:"data",id:y,level:F,hasChildren$:K,ancestorChain:x,expandedCount:J,issue$:a.issueFridge.watch(t.targetIssueId)}}}(e));
d.push.apply(d,r(Pic(a,k,e.$jscomp$loop$prop$parentRow$2008.ancestorChain).reverse()))}e={$jscomp$loop$prop$parentRow$2008:e.$jscomp$loop$prop$parentRow$2008,$jscomp$loop$prop$childrenLevel$2009:e.$jscomp$loop$prop$childrenLevel$2009}}return c},Pic=function(a,b,c){var d=[].concat(r(b));c=a.draftRows.get(c);a={};c=n(c);for(var e=c.next();!e.done;a={$jscomp$loop$prop$draft$2012:a.$jscomp$loop$prop$draft$2012},e=c.next())a.$jscomp$loop$prop$draft$2012=e.value,b.some(function(f){return function(h){return h.id===
f.$jscomp$loop$prop$draft$2012.issueId}}(a))||(e=d.findIndex(function(f){return function(h){return h.id===f.$jscomp$loop$prop$draft$2012.afterDraftId||h.id===f.$jscomp$loop$prop$draft$2012.afterIssueId}}(a)),d.splice(-1===e?d.length:e+1,0,a.$jscomp$loop$prop$draft$2012));return d};
Kic.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return Pe(function(k){if(1==k.nextAddress)return 0===b.length?k.return():Re(k,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 wJ(c.butterBar,"Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return Xn(q)}))),k.return();Ve(k)})};
var V5=function(a,b,c,d,e,f,h,k,q,t){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=t};V5.prototype.create=function(a){return new Kic(a,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};
V5.\u0275fac=function(a){return new (a||V5)(p(BK),p(uJ),p(FK),p(GW),p(VK),p(pI),p(fl),p(U5),p(uK),p(DK))};V5.\u0275prov=Hc({token:V5,factory:V5.\u0275fac,providedIn:"root"});
var W5=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new W.Subject;this.onRowsMoved$=new W.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=Zob(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=s6a(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 t=(k=null==(t=f.querySelector(".title-location"))?void 0:t.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;t=f.offsetLeft+t;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=t+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-t+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};Qic(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(){Ric(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,Sic(e.rowSelectionModel),"mouse",4);Ric(e)})})};
W5.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(Mt(c));Tic(this.rowSelectionModel);Uic(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=n(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var Vic=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)},Wic=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=n(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)}};
W5.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)}};
W5.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?Vic(this,a):(b=c&&b.row.level<Kt(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
W5.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=Mt(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":Vic(this,b);break;case "ArrowRight":Wic(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
W5.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=Mt(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:r6a(d)})})}};
var Ric=function(a){for(var b=n(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=n(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},Qic=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 Mt(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},Uic=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(Cf(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=n(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 X5=function(a){Z.call(this);var b=this;this.analytics=a;this.dragStarted$=new W.Subject;this.onRowsMoved$=new W.Subject;(0,W.merge)(this.dragStarted$,this.onRowsMoved$).pipe(kqa(),Ef(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Wj(c.map(function(e){return e.event.origin}),Vj);c=1===c.length?c[0]:"mixed";Mo(b.analytics,Aq.EDIT_ISSUE,"reorderChildren",c);EHb(b.analytics,"reorderChildren",d,c)})};X(X5,Z);X5.\u0275dir=Z.\u0275dir;
X5.\u0275fac=function(a){return new (a||X5)(p(BK))};X5.\u0275prov=Hc({token:X5,factory:X5.\u0275fac,providedIn:"root"});
var Y5=function(){this.changed$=new W.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};Y5.prototype.init=function(a){this.visibleRows=a};Y5.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var W6a=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(Cf(a.selectedRowHashes),C(function(f){return f.has(b.hash())}),rf(),Af({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
Y5.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};Y5.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var Tic=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=n(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Lt(e.value);for(var f=n(b),h=f.next();!h.done;h=f.next())h=h.value,wic(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},Sic=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(r(a.selectedRowHashes.values())).map(function(f){return Lt(f)}).map(function(f){return f.nodeId})),d=[];a=n(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};
ni.Object.defineProperties(Y5.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(r(this.selectedRowHashes)).map(function(a){return Lt(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});
var Xic=function(){return["focus-indicator","load-more-children"]},Z5=Aq.EDIT_ISSUE,Yic={type:"data",id:"",issue$:W.NEVER,hasChildren$:W.NEVER,ancestorChain:new R5([]),level:0,expandedCount:0},$5=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){Z.call(this);var J=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=t;this.cdr=x;this.relationsTableModelFactory=y;this.liveAnnouncer=
F;this.clearcut=K;this.isClosed=iua;this.tableColumns=mic;this.trackBy=function(R,S){return S.ancestorChain.hash()+S.type};this.isLoadMoreRow=function(R,S){return"load-more-children"===S.type};this.isDataRow=function(R,S){return"data"===S.type};this.isDraftRow=function(R,S){return"draft-issue"===S.type};this.selectionModel=new Y5;this.hasLogged=!1;this.correctedDisplayedRows=new Cg;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(R){var S;return(null!=(S=nl(J.rows$))?
S:[]).findIndex(function(aa){return Jt(aa,R)})};this.showError=function(R){return function(S){wJ(J.butterBar,R+". "+(Wn(S)?Xn(S):S))}};this.subscriptions.add(aY(k,function(){return J.tableModel.draftRows.isSaving()||J.issueRelationshipsFridge.isSaving()},!1))};X($5,Z);$5.\u0275dir=Z.\u0275dir;
$5.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId);this.rows$=(0,W.scheduled)([this.tableModel.rows$,(0,W.of)([Yic])],W.asyncScheduler).pipe(bf(1),Af({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(Df(function(c){return(0,W.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),of(0,W.asapScheduler));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();Zic(a,c)}));this.rowReorderingModel=
new W5(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?R6a(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,Aic(c,d)||T5(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return Pe(function(e){if(1==e.nextAddress)return tIb(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")),Bic(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),Re(e,(0,W.firstValueFrom)(a.correctedDisplayedRows.changes.pipe(C(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})}),hf(Boolean),kf(6E4))),2);d=e.yieldResult;
d.focus();Ve(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
var Zic=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;oHb(a.clearcut,"view-relations-"+(d?"all-loaded":"some-loaded"));Mo(a.analytics,Z5,"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,oHb(a.clearcut,"view-relations-"+(.5<b?"most-estimated":"most-unestimated")),Mo(a.analytics,Z5,"view-relations","ratio-estimated",b))}};
$5.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,W.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(Ef(this.destroyed$)).subscribe(function(b){b=n(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=RA(new Vhc(this.correctedDisplayedRows,
Jt))};$5.prototype.toggleExpansion=function(a){T5(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};$5.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(Mo(this.analytics,Z5,"navigate","to-child-issue"),b=ql(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?lq(this.domSafe,b):Rt(this.router,b))};
var R6a=function(a,b){var c;return Pe(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),T5(a.tableModel.expansion,b.ancestorChain.parentChain,500),Re(d,op(),2);a.focusManager.setActiveItem(c);Ve(d)})};
$5.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:!nl(a.hasChildren$),action:function(){var c=sl({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 Pe(function(c){if(1==c.nextAddress)return Re(c,
op(),2);$ic(b,a);Ve(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 Pe(function(c){if(1==c.nextAddress)return Re(c,op(),2);ajc(b,a);Ve(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(){Wic(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){Vic(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(){bjc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
$5.prototype.saveDraft=function(a){var b=this,c,d;return Pe(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);return Re(e,(0,W.firstValueFrom)(b.displayedRows.changes.pipe(C(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),hf(Boolean),kf(6E4))),2)}c=e.yieldResult;Jt(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);Ve(e)})};
var Z6a=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;Jt(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},$ic=function(a,b){Lic(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},ajc=function(a,b){"data"===b.type?Lic(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):Lic(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};$5.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var cjc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};$5.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
$5.prototype.onRowKeydown=function(a,b){var c=this,d;return Pe(function(e){if(1==e.nextAddress){c.focusManager.onKeydown(b);c.rowReorderingModel.onKeydown(b);switch(b.keyCode){case 39:case 37:if(b.ctrlKey)return e.return();"data"===a.type&&(c.toggleExpansion(a),b.preventDefault());"load-more-children"===a.type&&(R6a(c,a),b.preventDefault());break;case 13:return e.jumpTo(2)}return e.jumpTo(0)}if(4!=e.nextAddress)return"BUTTON"!==b.target.tagName||b.shiftKey||b.metaKey?Re(e,c.tableModel.isOneLineCreationSupported(),
4):e.return();(d=e.yieldResult)&&("data"===a.type||"draft-issue"===a.type&&a.saving)&&(b.shiftKey&&"data"===a.type?$ic(c,a):ajc(c,a),b.preventDefault());return e.jumpTo(0)})};
var bjc=function(a,b){var c,d;Pe(function(e){if(1==e.nextAddress)return Mo(a.analytics,Z5,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),Re(e,(0,W.firstValueFrom)(a.rows$.pipe(C(function(f){return!f.find(function(h){return"data"===h.type&&h.id===b.id})}),hf(Boolean),kf(6E4))),2);Jt(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);Ve(e)})};
$5.prototype.unlinkFromParent=function(a){var b=this,c,d;return Pe(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;Mo(b.analytics,Z5,"update","unlink-child-issue");return Re(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){vJ(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};$5.\u0275fac=function(a){return new (a||$5)(B(VK),B(fl),B(uJ),B(BK),B(Q5),B(Mf),B(Rd),B($X),B(RN),B(X5),B(qH),B(V5),B(EA),B(uK))};
$5.\u0275cmp=u({type:$5,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&zg(A5,5);if(a&2){var c;yg(c=Bg())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId"},features:[mg([qH]),Of],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"],["mat-header-row",
"",4,"matHeaderRowDef"],["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","componentBlur","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"],["buttonLabel","More options",3,"menuItems","click"],["mat-cell","",1,"text-center"],["mat-icon-button","","class","gmat-button medium","aria-label","Save",3,"matTooltip","click",4,"ngIf",
"ngIfElse"],["saving",""],["mat-icon-button","","aria-label","Save",1,"gmat-button","medium",3,"matTooltip","click"],["svgIcon","save",1,"icon-s"],[3,"isReady"],["format","flat",3,"onAction"],[1,"title-location"],["placeholder","Start typing the title...",3,"value","readonly","valueChange","commit"],["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","componentBlur","focusin"]],template:function(a,b){a&1&&(E(0,"table",0),I(1,1),P(2,t6a,1,0,"th",2),P(3,u6a,2,0,"td",3),L(),I(4,4),P(5,v6a,1,0,"th",2),P(6,w6a,3,0,"td",5),L(),I(7,6),P(8,x6a,2,0,"th",2),P(9,y6a,2,1,"td",7),L(),I(10,8),P(11,z6a,2,0,"th",2),P(12,A6a,2,0,"td",7),L(),I(13,9),P(14,B6a,2,0,"th",2),P(15,C6a,4,8,"td",7),L(),I(16,10),P(17,D6a,2,0,"th",2),P(18,E6a,3,3,"td",7),L(),I(19,11),P(20,F6a,2,0,"th",2),P(21,G6a,3,3,"td",7),L(),I(22,12),P(23,
H6a,2,0,"th",2),P(24,I6a,3,3,"td",7),L(),I(25,13),P(26,J6a,2,0,"th",2),P(27,K6a,3,3,"td",7),L(),I(28,14),P(29,L6a,1,0,"th",2),P(30,M6a,2,1,"td",7),L(),I(31,15),P(32,N6a,1,0,"th",2),P(33,Q6a,4,2,"td",16),L(),I(34,17),P(35,S6a,6,7,"td",18),L(),I(36,19),P(37,T6a,2,0,"th",2),P(38,U6a,2,4,"td",18),L(),P(39,V6a,1,0,"tr",20),P(40,X6a,3,12,"tr",21),P(41,Y6a,1,4,"tr",22),P(42,$6a,1,2,"tr",23),G(),H(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(D("dataSource",b.rows$)("trackBy",b.trackBy),A(39),D("matHeaderRowDef",
b.tableColumns),A(1),D("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),A(1),D("matRowDefColumns",ng(9,Xic))("matRowDefWhen",b.isLoadMoreRow),A(1),D("matRowDefColumns",cjc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[oz,gy,pC,yD,u3,m3,q3,n3,l3,r3,o3,p3,s3,t3,tF,KY,g1,FL,G5,r5,t5,v5,w5,y5,H5,HN,zN,fM,A5,ny],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%]{width: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 Nt=function(a){Y.call(this,a,-1,djc)};X(Nt,Y);Nt.prototype.getFilename=function(){return Pi(this,1)};Nt.prototype.setFilename=function(a){m(this,1,a)};var djc=[2];
var d7a=function(a){Y.call(this,a,-1,ejc)};X(d7a,Y);var ejc=[2];
var gjc=function(a){Y.call(this,a,-1,fjc)};X(gjc,Y);var fjc=[3];gjc.messageId="b.MentionSearchResult";
var a6=function(a){this.executor=a};a6.\u0275fac=function(a){return new (a||a6)(p(mH))};a6.\u0275prov=Hc({token:a6,factory:a6.\u0275fac,providedIn:"root"});
var b6=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},hjc=function(a,b){var c="https://todo.corp.google.com/?issue="+b;a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=KHb(a.refreshMonitor,(0,W.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:gjc}).then(e7a).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(Cf({loadingState:"LOADING",
link:c}))).pipe(Af({refCount:!0,bufferSize:1})));return a.cachedEntry};b6.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)};b6.prototype.trackSqueegeeClick=function(){Mo(this.analytics,"codeMentions","clickSqueegeeLink")};b6.\u0275fac=function(a){return new (a||b6)(p(a6),p(DK),p(BK))};b6.\u0275prov=Hc({token:b6,factory:b6.\u0275fac,providedIn:"root"});
var c6=function(a,b,c,d,e,f){var h=this;this.paramsService=a;this.issueRelationshipsFridge=b;this.issueFridge=c;this.codeMentions=d;this.issueApi=e;this.eventsForIssue=f;this.id$=fL(this.paramsService,"issueId").pipe(qf(1E3),rf());this.issue$=this.id$.pipe(Df(this.issueFridge.watch));this.issueEvents$=this.id$.pipe(Df(this.eventsForIssue.watch),C(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.blockerIssueIds$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:
k.snapshot[0].blockedByIssueId)?q:[]}),rf(Ri));this.blockedIssueIds$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockingIssueId)?q:[]}),rf(Ri));this.childrenIds$=this.id$.pipe(Df(this.issueRelationshipsFridge.watch),C(function(k){var q;return null!=(q=null==k?void 0:k.relatedChildren.map(function(t){return t.targetIssueId}))?q:[]}));this.duplicateIssueIds$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].duplicateIssueId)?q:[]}),
rf(Ri));this.blockersDualCount$=(0,W.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(Df(function(k){var q=n(k);k=q.next().value;q=q.next().value;return ijc(h,k,q,"BLOCKED_BY")}),Af({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(C(Ot),Af({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,W.combineLatest)([this.id$,this.blockedIssueIds$]).pipe(Df(function(k){var q=n(k);k=q.next().value;q=q.next().value;return ijc(h,k,q,"BLOCKING")}),Af({bufferSize:1,refCount:!0}));
this.countBlockedDisplay$=this.blockedDualCount$.pipe(C(Ot),Af({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,W.combineLatest)([this.id$,this.childrenIds$]).pipe(Df(function(k){var q=n(k);k=q.next().value;q=q.next().value;return ijc(h,k,q,"CHILDREN")}),Af({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(C(Ot),Af({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,W.combineLatest)([this.childrenDualCount$,this.blockersDualCount$]).pipe(C(function(k){var q=
n(k);k=q.next().value;q=q.next().value;var t=k.open.count+q.open.count,x=k.total.count+q.total.count;return{open:k.open.exact&&q.open.exact?Qt(t):Qt(100),total:k.total.exact&&q.total.exact?Qt(x):Qt(100)}}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(C(Ot),Af({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,W.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(Df(function(k){var q=n(k);k=q.next().value;q=q.next().value;return ijc(h,k,q,"DUPLICATE")}),Af({bufferSize:1,
refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(C(function(k){return k.total}),C(Pt),Af({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(C(function(k){var q;return null!=(q=null==k?void 0:k.relatedLinks)?q:[]}),C(function(k){return Qt(k.length)}),C(Pt),Af({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(hf(fm),Df(function(k){return hjc(h.codeMentions,k)}),C(function(k){var q,t;return Qt(null!=(t=null==(q=k.mentions)?void 0:q.totalMentions)?
t:0)}),C(Pt),Af({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(C(function(k){return Qt(k.filter(fo).length)}),C(Pt),Af({bufferSize:1,refCount:!0}))},ijc=function(a,b,c,d){return b&&0!==c.length?99<c.length?a.issueApi.listIssues(g7a(b,d),{p:1,count:100}).then(function(e){e=e.issues.filter(jo).filter(ko).length;return{open:Qt(e),total:Qt(c.length)}}):a.issueFridge.watchSet(c).pipe(C(function(e){return{open:Qt(e.filter(jo).filter(ko).length),total:Qt(c.length)}})):(0,W.of)({open:{count:0,
exact:!0},total:{count:0,exact:!0}})};c6.\u0275fac=function(a){return new (a||c6)(p(eL),p(VK),p(FK),p(b6),p(bJ),p(hK))};c6.\u0275prov=Hc({token:c6,factory:c6.\u0275fac,providedIn:"root"});
var d6=function(a,b,c,d,e,f,h,k,q,t,x,y,F){Z.call(this);var K=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=t;this.counts=x;this.matDialog=y;this.errorHandler=F;this.EMPTY_BLOCKER_LIGHT=sQb;this.EMPTY_BLOCKER_DARK=tQb;this.EMPTY_CHILD_LIGHT=uQb;this.EMPTY_CHILD_DARK=vQb;this.isThinking$=(0,W.combineLatest)([this.issueFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(C(function(J){return J.some(Boolean)}));
this.issueId$=this.brain.id$.pipe(hf(fm),C(Go));this.issue$=this.brain.issueJs$.pipe(hf(fm));this.blockerIds$=this.issue$.pipe(C(function(J){var R,S,aa;return null!=(aa=null==(R=J.issue.snapshot[0])?void 0:null==(S=R.blockedByIssueId)?void 0:S.map(String))?aa:[]}));this.parentIds$=this.issue$.pipe(C(function(J){var R;return null!=(R=J.issue.parentIssueIds)?R:[]}));this.blockerIssues$=this.blockerIds$.pipe(Df(this.issueFridge.watchSet));this.blockersCount$=this.blockerIssues$.pipe(C(function(J){return J.filter(ko).length}));
this.childrenIds$=this.issueId$.pipe(Df(this.issueRelationshipsFridge.watch),C(function(J){var R;return null!=(R=null==J?void 0:J.relatedChildren.map(function(S){return S.targetIssueId}))?R:[]}));this.totalDaysOpen$=this.issue$.pipe(C(function(J){var R,S;return(null==(R=ho(J))?void 0:null==(S=R.effort)?void 0:Jl(S,4))||0}));this.totalDaysComplete$=this.issue$.pipe(C(function(J){var R,S;return(null==(R=ho(J))?void 0:null==(S=R.effort)?void 0:Jl(S,5))||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(C(function(J){return J.length}));
this.isTotalEstimatesEnabled=Cq(this.activeSession,"enableAggregationRules");this.isNonPublicSession=this.activeSession.isNonPublicSession();this.totalDaysCount$=(0,W.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(C(function(J){var R=n(J);J=R.next().value;R=R.next().value;return J+R}));this.totalDaysDisplayPercent$=z7a(this.totalDaysComplete$,this.totalDaysCount$);(0,W.combineLatest)([this.blockersCount$,this.unarchivedChildIssueCount$]).pipe(C(function(J){var R=n(J);J=R.next().value;
R=R.next().value;return J+R}));this.progressHovercardContent$=(0,W.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(C(function(J){var R=n(J);J=R.next().value;var S=R.next().value;R=R.next().value;return A7a(Math.round(100*J)/100)+" completed | "+A7a(Math.round(100*S)/100)+" open | "+R+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new W.Subject;(0,W.firstValueFrom)(Iq("b-issue-relations-table tr .mat-column-title a",
this.element.nativeElement).pipe(Ef((0,W.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var J=function(){k5b(K.routePerformance,"issue-details-w-tree")};requestAnimationFrame(J);setTimeout(J)}).catch(function(){})};X(d6,Z);d6.\u0275dir=Z.\u0275dir;
var v7a=function(a){var b,c;return Pe(function(d){if(1==d.nextAddress)return Mo(a.analytics,Aq.EDIT_ISSUE,"update","add-blocker"),Re(d,(0,W.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;return Re(d,a.issuePicker.open({title:"Add Blockers of "+c,allowMultipleIds:!0,edgeType:"blocker"},function(e){jjc(a,c,e)}),0)})};d6.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||a.addExistingChild()};
d6.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||$ic(a)};var jjc=function(a,b,c){Pe(function(d){return 0===c.length?d.return():Re(d,GK(a.issueFridge,"ADD","BLOCKED_BY",b,c).catch(function(e){zJ(a.errorHandler,e)}),0)})};d6.\u0275fac=function(a){return new (a||d6)(B(gL),B(GW),B(VK),B(FK),B(fl),B(GZ),B(Rd),B(BK),B(iL),B(NG),B(c6),B(IC),B(xJ))};
d6.\u0275cmp=u({type:d6,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&zg($5,5);if(a&2){var c;yg(c=Bg())&&(b.table=c.first)}},features:[Of],decls:46,vars:34,consts:[[1,"pos-rel","carded","margined-s","bg-main","flex-kids-y","gap-l"],[1,"parents"],[1,"table-header","muted","inline-block"],[3,"issue"],[1,"status","pos-tr","padded-s","flex-kids-x","gap-s","align-items-center"],[4,"ngIf"],["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"],[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"],["noBlockersState",""],[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"],[3,"hidden","rootIssueId",4,"ngIf"],["addBlocker",""],["addChildren",""],[4,"ngTemplateOutlet"],[3,"issueId","blockerIds",4,"ngIf","ngIfElse"],[3,"issueId","blockerIds"],[1,"muted"],[1,"emoji"],[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"],[3,"rootIssueId"],["size","small","title","Mark an existing issue as blocker.",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&&(E(0,"div",0)(1,"section",1)(2,"h4",2),Q(3,"Parent issues"),G(),Q(4,"\u00a0"),H(5,"related-parents-compact",3),U(6,"async"),G(),E(7,"p",4),P(8,h7a,1,0,"b-spinner",5),U(9,"async"),E(10,"button",6),M("click",function(){b.matDialog.open(O5,{maxWidth:"1300px",width:"90%"})}),H(11,"mat-icon",7),G()(),E(12,"section")(13,"div",8)(14,"h4",9)(15,"div",10),H(16,"mat-icon",11),G(),Q(17),U(18,"async"),G(),P(19,j7a,2,1,"ng-container",5),U(20,"async"),G(),P(21,l7a,3,4,"ng-container",5),U(22,"async"),P(23,
n7a,6,1,"ng-template",null,12,Hg),G(),E(25,"section")(26,"div",13)(27,"h4",9)(28,"div",14),H(29,"mat-icon",15),G(),Q(30),U(31,"async"),G(),P(32,p7a,2,1,"ng-container",5),U(33,"async"),U(34,"async"),G(),P(35,q7a,28,24,"div",16),U(36,"async"),U(37,"async"),P(38,r7a,2,5,"b-issue-relations-table",17),U(39,"async"),P(40,u7a,4,5,"ng-container",5),U(41,"async"),G()(),P(42,w7a,3,3,"ng-template",null,18,Hg),P(44,y7a,4,4,"ng-template",null,19,Hg));if(a&2){var c,d;A(5);D("issue",null==(c=V(6,10,b.issue$))?null:
c.issue);A(3);D("ngIf",V(9,12,b.isThinking$));A(9);T(" Blockers ",V(18,14,b.counts.countBlockersDisplay$)," ");A(2);D("ngIf",V(20,16,b.blockersCount$));A(2);D("ngIf",V(22,18,b.issueId$));A(9);T(" Child issues ",V(31,20,b.counts.countChildrenDisplay$)," ");A(2);D("ngIf",V(33,22,b.unarchivedChildIssueCount$)||0<((null==(d=V(34,24,null==b.table?null:b.table.rows$))?null:d.length)||0));A(3);D("ngIf",b.isTotalEstimatesEnabled&&V(36,26,b.unarchivedChildIssueCount$)&&V(37,28,b.totalDaysCount$));A(3);D("ngIf",
V(39,30,b.issueId$));A(2);D("ngIf",null!==V(41,32,b.unarchivedChildIssueCount$))}},dependencies:[gy,my,iM,mM,pC,yD,tF,FL,fM,M5,N5,$5,ny,ty],styles:["[_nghost-%COMP%]     h4 button{margin:-8px 0}[_nghost-%COMP%]     h4 button.gmat-button.mat-stroked-button.small{line-height:21px}.table-header[_ngcontent-%COMP%]{margin-top:0;margin-bottom:4px}.status[_ngcontent-%COMP%]   b-spinner[_ngcontent-%COMP%]{margin-top:4px}.status[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-1px}b-issue-relations-table[_ngcontent-%COMP%], b-blockers-table[_ngcontent-%COMP%]{display:block;overflow-x:auto}b-button.add[_ngcontent-%COMP%]{margin-left:16px}.emoji[_ngcontent-%COMP%]{font-size:1rem;padding:0 4px}.progress-header[_ngcontent-%COMP%]{padding-top:12px;font-size:.75rem;padding-bottom:16px}.progress[_ngcontent-%COMP%]{border-radius:6px;border:1px solid;border-color:#137333;border-color:var(--good-text);height:8px;width:132px;position:relative}.progress[_ngcontent-%COMP%] > .completion[_ngcontent-%COMP%]{background-color:#137333;background-color:var(--good-text);height:100%;border-radius:9px}.progress-hover-card[_ngcontent-%COMP%]{font-weight:bold}"],
changeDetection:0});
var e6=function(){};e6.\u0275fac=function(a){return new (a||e6)};e6.\u0275mod=Yc({type:e6});e6.\u0275inj=Ic({imports:[vy,UH,xW,TM,AF,uG,RM]});
var f6=function(){};f6.\u0275fac=function(a){return new (a||f6)};f6.\u0275mod=Yc({type:f6});f6.\u0275inj=Ic({imports:[FA,vA,Vz,vy,fz,TM,AF,NC,uF,J5,x3,bW,uG,gz,UH,NY,k1,GL,I5,JN,RM,K5,xW,e6]});
var kjc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},g6=function(a,b){Z.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_TERSE=CG;this.URLS=lu;this.ListIssuesHovercardMode=kjc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new W.ReplaySubject(1);this.init=new W.ReplaySubject(1);this.issues$=this.issueIds$.pipe(hf(fm),Df(this.issueFridge.watchSet),C(function(d){return"parent"===c.mode?d.filter(ko):d.filter(jo)}))};X(g6,Z);g6.\u0275dir=Z.\u0275dir;
g6.prototype.convertIssueStatusStrToTag=function(a){return Ym[a]};g6.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var G7a=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=n(c.entries()),f=e.next();!f.done;f=e.next()){var h=n(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}a.router.navigate([lu.ISSUE_LIST],{queryParams:{q:d}})})};
g6.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(Ef(this.destroyed$)).subscribe(function(){a.init.next()})};ni.Object.defineProperties(g6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});g6.\u0275fac=function(a){return new (a||g6)(B(FK),B(fl))};
g6.\u0275cmp=u({type:g6,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[Of],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&&(E(0,"div",0),P(1,B7a,5,3,"div",1),P(2,C7a,5,3,"div",1),P(3,J7a,4,3,"div",2),U(4,"async"),
G());a&2&&(A(1),D("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),A(1),D("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),A(1),D("ngIf",V(4,3,b.issues$)))},dependencies:[ey,fy,gy,yD,QH,pC,ny],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 h6=function(a,b){this.issueDigestsApi=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=kjc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};h6.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&ljc(this).then(function(c){b.issueIdToTitle=c})};h6.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var ljc=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,W.firstValueFrom)(a.issueDigestsApi.getAll(new Set(a.reorderedAncestors)).pipe(C(function(c){var d=new Map;c=n(c);for(var e=c.next();!e.done;e=c.next())e=e.value,d.set(e.issueId,e.title);return d})))};
h6.\u0275fac=function(a){return new (a||h6)(B(T4),B(pI))};
h6.\u0275cmp=u({type:h6,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[ed],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&&(H(0,"mat-icon",0),P(1,M7a,7,4,"ng-container",1),P(2,N7a,4,5,"ng-container",2));a&2&&(A(1),D("ngIf",1<b.multiParentIssueIds.length),A(1),D("ngForOf",b.reorderedAncestors))},dependencies:[fy,gy,yD,sV,iM,jM,mM,kM,g6],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 mjc=function(a){Y.call(this,a)};X(mjc,Y);mjc.messageId="b.CompareComponentAccessResponse";
var i6=function(a){this.executor=a};i6.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:mjc}).then(Isa)};i6.\u0275fac=function(a){return new (a||i6)(p(mH))};i6.\u0275prov=Hc({token:i6,factory:i6.\u0275fac,providedIn:"root"});
var j6=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},q8a=function(a,b,c){var d,e,f,h,k;Pe(function(q){switch(q.nextAddress){case 1:return b=String(b),BQ(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?Re(q,(0,W.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return wJ(a.butterBar,"Could not load issue "+b),q.return();e=d.snapshot[0].componentId;
f=c.componentId;return e===f?q.return():Re(q,a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return Re(q,njc(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))}})},njc=function(a,b){return new Promise(function(c){CC(a.matDialogService.open(TR,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})).subscribe(function(){c(!1)})})};
j6.\u0275fac=function(a){return new (a||j6)(p(AQ),p(FK),p(uJ),p(i6),p(IC),p(HQ))};j6.\u0275prov=Hc({token:j6,factory:j6.\u0275fac,providedIn:"root"});
var k6=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},ojc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h=b.recaptchaToken,k,q;Pe(function(t){switch(t.nextAddress){case 1:k=a.editIssueService.savingState(c);if(!e.trim())return wJ(a.butterBar,"New comment cannot be empty."),t.return();EQ(k,"commentEdit");
vJ(a.butterBar,"Saving comment edit...",0);BQ(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});Qe(t,2,3);return Re(t,a.issueCommentsService.update(c,d,e,f,h),5);case 5:vJ(a.butterBar,"Comment edit successful.",4E3),KK(a.issueFetchResponseFridge,c),IJ(a.eventsForIssueFridge,c,function(x){x.events=dua(x.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),a.eventsForIssueFridge.poke(c);case 3:Se(t);FQ(k,"commentEdit");Te(t,0);break;case 2:q=Ue(t),zJ(a.errorHandler,
q),t.jumpTo(3)}})};k6.\u0275fac=function(a){return new (a||k6)(p(xJ),p(hK),p(IK),p(zL),p(AQ),p(uJ),p(HQ))};k6.\u0275prov=Hc({token:k6,factory:k6.\u0275fac,providedIn:"root"});
var pjc=function(a,b,c){this.objectId=a;this.version=b;this.payload=c},qjc=function(){},rjc=function(a){this.timestampMicros=a};
O7a.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var sjc=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 $t=function(a){Y.call(this,a)};X($t,Y);var T7a=[1,2,3,15];
var au=function(a){Y.call(this,a,-1,tjc)};X(au,Y);var bu=function(a){Y.call(this,a)};X(bu,Y);bu.prototype.getString=function(){return Qs(this,1,du)};var tjc=[1],du=[5,4,3,6,7,2,1,8,9,10,11,12];
var Zt=function(a){Y.call(this,a)};X(Zt,Y);Zt.prototype.getName=function(){return Qs(this,1,ujc)};Zt.prototype.setName=function(a){return um(this,1,ujc,a)};Zt.prototype.hasName=function(){return null!=Qs(this,1,ujc)};Zt.prototype.getNameOrUndefined=function(){var a=Qs(this,1,ujc);return null==a?void 0:a};var ujc=[1,2];
var vjc=function(a){Y.call(this,a)};X(vjc,Y);g=vjc.prototype;g.setProject=function(a){Vb(this,1,a)};g.getOwner=function(){return Ub(this,$t,2)};g.setOwner=function(a){return Vb(this,2,a)};g.getPath=function(){return Ub(this,au,3)};g.setPath=function(a){return Vb(this,3,a)};g.hasPath=function(){return vj(this,au,3)};
var wjc=function(a){Y.call(this,a)};X(wjc,Y);g=wjc.prototype;g.setProject=function(a){Vb(this,1,a)};g.getOwner=function(){return Ub(this,$t,2)};g.setOwner=function(a){return Vb(this,2,a)};g.getPrefix=function(){return Ub(this,au,3)};g.setPrefix=function(a){Vb(this,3,a)};
var l6=function(a){Y.call(this,a)};X(l6,Y);l6.prototype.getVersion=function(){return l(this,1)};l6.prototype.setVersion=function(a){return m(this,1,a)};l6.prototype.getVersionOrUndefined=function(){return uv(this,1)};
var m6=function(a){Y.call(this,a)};X(m6,Y);m6.prototype.getHeader=function(){return Ub(this,l6,4)};m6.prototype.getPrefix=function(){return Hl(this,wjc,6,xjc)};m6.prototype.setPrefix=function(a){Dm(this,6,xjc,a)};var xjc=[2,3,6];
var yjc=function(a){Y.call(this,a)};X(yjc,Y);
var zjc=function(a){Y.call(this,a)};X(zjc,Y);zjc.prototype.getAffinitization=function(){return l(this,2)};zjc.prototype.setAffinitization=function(a){m(this,2,a)};
var Ajc=function(a){Y.call(this,a)};X(Ajc,Y);g=Ajc.prototype;g.getStreamId=function(){return l(this,1)};g.setStreamId=function(a){m(this,1,a)};g.getClose=function(){return Hl(this,Bjc,3,Cjc)};g.setClose=function(a){Dm(this,3,Cjc,a)};g.hasClose=function(){return un(this,Bjc,3,Cjc)};g.getAffinitization=function(){return l(this,4)};g.setAffinitization=function(a){m(this,4,a)};var Bjc=function(a){Y.call(this,a)};X(Bjc,Y);var Cjc=[2,3];
var n6=function(a){Y.call(this,a,-1,Djc)};X(n6,Y);n6.prototype.setRequestsList=function(a){return Mb(this,1,a)};n6.prototype.addAndReturnRequests=function(){return bob(this,1,Ajc)};var Djc=[1];
var o6=function(a){Y.call(this,a)};X(o6,Y);o6.prototype.getCode=function(){return l(this,1)};o6.prototype.setCode=function(a){return m(this,1,a)};
var p6=function(a){Y.call(this,a)};X(p6,Y);p6.prototype.getVersion=function(){return l(this,3)};p6.prototype.setVersion=function(a){return m(this,3,a)};p6.prototype.getVersionOrUndefined=function(){var a=l(this,3);return null==a?void 0:a};
var q6=function(a){Y.call(this,a)};X(q6,Y);q6.prototype.getStart=function(){return Hl(this,Ejc,1,r6)};q6.prototype.setStart=function(a){return Dm(this,1,r6,a)};q6.prototype.getChanges=function(){return Hl(this,Fjc,2,r6)};q6.prototype.hasChanges=function(){return un(this,Fjc,2,r6)};var Ejc=function(a){Y.call(this,a)};X(Ejc,Y);var Fjc=function(a){Y.call(this,a,-1,Gjc)};X(Fjc,Y);var Hjc=function(a){Y.call(this,a)};X(Hjc,Y);var r6=[1,2,3,5],Gjc=[1];
var s6=function(a){Y.call(this,a)};X(s6,Y);s6.prototype.getCode=function(){return l(this,1)};s6.prototype.setCode=function(a){return m(this,1,a)};s6.prototype.getMessage=function(){return l(this,3)};s6.prototype.setMessage=function(a){return m(this,3,a)};
var Ijc=function(a){Y.call(this,a)};X(Ijc,Y);g=Ijc.prototype;g.getStreamId=function(){return l(this,1)};g.setStreamId=function(a){m(this,1,a)};g.getClose=function(){return Hl(this,t6,3,Jjc)};g.setClose=function(a){Dm(this,3,Jjc,a)};g.hasClose=function(){return un(this,t6,3,Jjc)};var t6=function(a){Y.call(this,a)};X(t6,Y);t6.prototype.getStatus=function(){return Ub(this,s6,1)};t6.prototype.setStatus=function(a){return Vb(this,1,a)};t6.prototype.hasStatus=function(){return vj(this,s6,1)};
var Jjc=[2,3];
var u6=function(a){Y.call(this,a,-1,Kjc)};X(u6,Y);u6.prototype.getStatus=function(){return Ub(this,o6,2)};u6.prototype.setStatus=function(a){return Vb(this,2,a)};u6.prototype.hasStatus=function(){return vj(this,o6,2)};var Kjc=[1];
var Ljc=function(){QD.call(this,"F")};ev(Ljc,QD);var Mjc=function(){QD.call(this,"E")};ev(Mjc,QD);
var Njc=function(a,b){this.path=a;this.authMethod=b},v6=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new ar;this.channel=this.createWebChannel(e)};
v6.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,"C",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,
"D",function(){b.channelStatusHandler.onClose((new w6(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"F",function(c){(c=c.data)&&1===c.length&&b.channelMessageHandler(new u6(c[0]))});this.channelHandler.listen(a,"E",function(c){b.channelStatusHandler.onError(c,(new w6(b.channel.channel_)).getLastStatusCode());0!==c.status&&(b.state=2)});return a};
v6.prototype.open=function(){0===this.state&&(this.state=1,this.channel.open())};v6.prototype.close=function(){2!==this.state&&this.channel.close()};v6.prototype.send=function(a){a=a.serialize();this.channel.send(a)};
var Ojc,Pjc=(new l6).setVersion(7);Ojc=m(Pjc,2,5);
var fu=function(a){this.rep=a};fu.prototype.equals=function(a){return this.rep===a.rep};
var Qjc=function(){var a=8;a=void 0===a?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};Qjc.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 eu=function(a,b){this.seconds=a;this.nanos=b},V7a=function(a){var b=new Cj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Z7a=function(a){try{var b=a.getSeconds(),c=a.getNanos();if(-62135596800>b)throw Error("Ge`"+b);if(253402300800<=b)throw Error("He`"+b);if(0>c)throw Error("Ie`"+c);if(1E9<=c)throw Error("Je`"+c);if(!Number.isInteger(b))throw Error("Ke`"+b);if(!Number.isInteger(c))throw Error("Le`"+c);return new eu(b,c)}catch(d){return null}};
eu.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};
var cu=function(a,b){this.low_=a|0;this.high_=b|0},x6=function(a){return 4294967296*a.high_+(a.low_>>>0)};g=cu.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("Me`"+a);if(this.isSafeInteger()){var b=x6(this);return 10==a?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=y6(c,c/4294967296);c=z6(this,d);var e=Math,f=e.abs;d=c.multiply(d);d=this.add(A6(d));e=f.call(e,x6(d));f=10==a?""+e:e.toString(a);f.length<b&&(f="0000000000000".slice(f.length-b)+f);e=x6(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 A6=function(a){var b=~a.low_+1|0;return y6(b,~a.high_+!b|0)};
cu.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 y6((h&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};
cu.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 t=(q>>>16)+d*a;var x=t>>>16;t=(t&65535)+e*k;x+=t>>>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 y6((t&65535)<<16|q&65535,y<<16|x&65535)};
var z6=function(a,b){if(b.isZero())throw Error("Ne");if(0>a.high_){if(a.equals(B6)){if(b.equals(Rjc)||b.equals(Sjc))return B6;if(b.equals(B6))return Rjc;var c=a.high_;c=y6(a.low_>>>1|c<<31,c>>1);c=z6(c,b).shiftLeft(1);if(c.equals(C6))return 0>b.high_?Rjc:Sjc;var d=b.multiply(c);a=a.add(A6(d));return c.add(z6(a,b))}return 0>b.high_?z6(A6(a),A6(b)):A6(z6(A6(a),b))}if(a.isZero())return C6;if(0>b.high_)return b.equals(B6)?C6:A6(z6(a,A6(b)));for(d=C6;0<=a.compare(b);){c=Math.max(1,Math.floor(x6(a)/x6(b)));
var e=Math.ceil(Math.log(c)/Math.LN2);e=48>=e?1:Math.pow(2,e-48);for(var f=D6(c),h=f.multiply(b);0>h.high_||0<h.compare(a);)c-=e,f=D6(c),h=f.multiply(b);f.isZero()&&(f=Rjc);d=d.add(f);a=a.add(A6(h))}return d};cu.prototype.and=function(a){return y6(this.low_&a.low_,this.high_&a.high_)};cu.prototype.or=function(a){return y6(this.low_|a.low_,this.high_|a.high_)};cu.prototype.xor=function(a){return y6(this.low_^a.low_,this.high_^a.high_)};
cu.prototype.shiftLeft=function(a){a&=63;if(0==a)return this;var b=this.low_;return 32>a?y6(b<<a,this.high_<<a|b>>>32-a):y6(0,b<<a-32)};
var D6=function(a){return 0<a?0x7fffffffffffffff<=a?Tjc:new cu(a,a/4294967296):0>a?-0x7fffffffffffffff>=a?B6:A6(new cu(-a,-a/4294967296)):C6},y6=function(a,b){return new cu(a,b)},hu=function(a,b){if("-"==a.charAt(0))return A6(hu(a.substring(1),b));var c=parseInt(a,b||10);if(9007199254740991>=c)return new cu(c%4294967296|0,c/4294967296|0);if(0==a.length)throw Error("Oe");if(0<=a.indexOf("-"))throw Error("Pe`"+a);b=b||10;if(2>b||36<b)throw Error("Me`"+b);c=D6(Math.pow(b,8));for(var d=C6,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(D6(Math.pow(b,f))).add(D6(h)):(d=d.multiply(c),d=d.add(D6(h)))}return d},C6=y6(0,0),Rjc=y6(1,0),Sjc=y6(-1,-1),Tjc=y6(4294967295,2147483647),B6=y6(0,2147483648);
var St=function(a,b){this.value=a;this.isDecreasing=!!b};
St.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 cu)b=a.value instanceof cu?this.value.equals(a.value):!1;else if(this.value instanceof fu)b=a.value instanceof fu?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 eu?a.value instanceof eu?this.value.equals(a.value):!1:!1;return b};var gu=function(a,b){this.parts=a;this.isPrivate=b},X7a=function(){for(var a=[],b=n(Uc.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof St?a.push(c):a.push(new St(c));return new gu(a,!1)};
gu.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 Ujc=function(){},Wt=function(a,b){this.apiKey=a;this.authUser=b};Wt.prototype.getHeaders=function(){var a={},b;(b=up([]))?(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};Wt.prototype.getQueryParameters=function(){return{key:this.apiKey}};Wt.prototype.domainType=function(){return 0};Wt.prototype.usesCredentialedRequests=function(){return!0};var Ut=function(a){this.oauthTokens=a};
Ut.prototype.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};Ut.prototype.getQueryParameters=function(){return{}};Ut.prototype.domainType=function(){return 1};Ut.prototype.usesCredentialedRequests=function(){return!0};var Vt=function(a,b){this.apiKey=a;this.appAuthTokens=b};Vt.prototype.getHeaders=function(){return{}};Vt.prototype.getQueryParameters=function(){return{key:this.apiKey}};Vt.prototype.domainType=function(){return 1};
Vt.prototype.usesCredentialedRequests=function(){return!1};
var Vjc={send:function(a,b,c,d,e,f,h){zi(a,b,c,d,e,f,h)}};
var Wjc=function(a,b,c){this.code=a;this.message=b;this.status=c},Xjc=function(a){var b=void 0===b?Vjc:b;this.baseUri=a;this.xhrIo=b};Xjc.prototype.post=function(a,b,c,d){d=void 0===d?{}:d;return this.request("POST",a,b,c,d)};
Xjc.prototype.request=function(a,b,c,d,e){var f=this,h=new Ep(this.baseUri);h.setPath(b);if(e.queryParams){b=n(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var q=n(k.value);k=q.next().value;q=q.next().value;ZF(h,k,q)}}var t={"Content-type":"application/json+protobuf"};Object.assign(t,e.extraHeaders);var x=c.serialize();return new Promise(function(y,F){var K;f.xhrIo.send(h,function(){var J=-1===this.getStatus()?void 0:this.getStatus();if(this.isSuccess())try{y(Oo(d,this.getResponseText()))}catch(R){F(new Wjc(4,
"Failed to deserialize response from "+h+": "+this.getResponseText(),J))}else F(new Wjc(this.getLastErrorCode(),this.getLastError(),J))},a,x,t,null!=(K=e.timeoutMs)?K:2E4,e.withCredentials)})};
var Yjc=null,Zjc=function(){return Yjc=Yjc||new wp},$jc=function(a){QD.call(this,"serverreachability",a)};ev($jc,QD);var E6=function(a){var b=Zjc();b.dispatchEvent(new $jc(b,a))},akc=function(a,b){QD.call(this,"statevent",a);this.stat=b};ev(akc,QD);var F6=function(a){var b=Zjc();b.dispatchEvent(new akc(b,a))},bkc=function(a,b,c){QD.call(this,"timingevent",a);this.size=b;this.rtt=c};ev(bkc,QD);
var ckc=function(a,b,c){var d=Zjc();d.dispatchEvent(new bkc(d,a,b,c))},G6=function(a,b){if("function"!==typeof a)throw Error("Re");return ea.setTimeout(function(){a()},b)};
var H6=function(){this.redactEnabled_=!0};H6.prototype.disableRedact=function(){this.redactEnabled_=!1};
var dkc=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 t=k[q].split("=");if(1<t.length){var x=t[0];t=t[1];var y=x.split("_");h=2<=y.length&&"type"==y[1]?h+(x+"="+t+"&"):h+(x+"=redacted&")}}}else h=null;else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})},ekc=function(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})},I6=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+fkc(a,c)+(d?" "+d:"")})},gkc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};H6.prototype.debug=function(){};H6.prototype.info=function(){};H6.prototype.warning=function(){};
var fkc=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 FE(c)}catch(q){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};
var J6=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 ar(this);this.timeout_=45E3;a=ak?125:void 0;this.pollingTimer_=new zE(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 hkc},hkc=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},ikc=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"}},
jkc={},kkc={};J6.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};J6.prototype.setTimeout=function(a){this.timeout_=a};J6.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};J6.prototype.getPendingMessages=function(){return this.pendingMessages_};
var mkc=function(a,b,c){a.type_=1;a.baseUri_=aG(b.clone());a.postData_=c;a.decodeChunks_=!0;lkc(a,null)},lkc=function(a,b){a.requestStartTime_=Date.now();K6(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 hkc;a.xmlHttp_=nkc(a.channel_,c?b:null,!a.postData_);0<a.readyStateChangeThrottleMs_&&(a.readyStateChangeThrottle_=new w9b(bv(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?cc(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));E6(1);dkc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
J6.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)};J6.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?okc(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),pkc(this)}finally{}};
var okc=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(3>b||3==b&&!ak&&!pkc(a))){a.cancelled_||4!=b||7==c||(8==c||0>=d?E6(3):E6(2));qkc(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=rkc(a);pkc(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=200==e;ekc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
skc(a))I6(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,tkc(a,d);else{a.successful_=!1;a.lastError_=3;F6(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");L6(a);M6(a);return}a.decodeChunks_?(ukc(a,b,c),ak&&a.successful_&&3==b&&vkc(a)):(I6(a.channelDebug_,a.rid_,c,null),tkc(a,c));4==b&&L6(a);a.successful_&&!a.cancelled_&&(4==b?wkc(a.channel_,a):(a.successful_=!1,K6(a)))}else a.xmlHttp_.getResponseHeaders(),
400==e&&0<c.indexOf("Unknown SID")?(a.lastError_=3,F6(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,F6(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),L6(a),M6(a)}},skc=function(a){return a.xmlHttp_&&(a=Bi(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!lj(a)?a:null},rkc=function(a){if(!xkc(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 L6(a),M6(a),"";a.fetchResponseState_.textDecoder=new ea.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},pkc=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},
xkc=function(a){return a.xmlHttp_?"GET"==a.verb_&&2!=a.type_&&a.channel_.usesFetchStreams_:!1},ukc=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=ykc(a,c),e==kkc){4==b&&(a.lastError_=4,F6(14),d=!1);I6(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==jkc){a.lastError_=4;F6(15);I6(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else I6(a.channelDebug_,a.rid_,e,null),tkc(a,e);xkc(a)&&e!=kkc&&e!=jkc&&(a.fetchResponseState_.responseBuffer=
"",a.xmlHttpChunkStart_=0);4!=b||0!=c.length||a.fetchResponseState_.responseArrivedForFetch||(a.lastError_=1,F6(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),zkc(b),b.bpDetectionDone_=!0,F6(11))):(I6(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),L6(a),M6(a))};
J6.prototype.pollResponse_=function(){if(this.xmlHttp_){var a=this.xmlHttp_.getReadyState(),b=this.xmlHttp_.getResponseText();this.xmlHttpChunkStart_<b.length&&(qkc(this),ukc(this,a,b),this.successful_&&4!=a&&K6(this))}};
var vkc=function(a){a.eventHandler_.listen(a.pollingTimer_,"tick",a.pollResponse_);a.pollingTimer_.start()},ykc=function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(-1==d)return kkc;c=Number(b.substring(c,d));if(isNaN(c))return jkc;d+=1;if(d+c>b.length)return kkc;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};J6.prototype.cancel=function(){this.cancelled_=!0;L6(this)};
var K6=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;Akc(a,a.timeout_)},Akc=function(a,b){if(null!=a.watchDogTimerId_)throw Error("Se");a.watchDogTimerId_=G6(bv(a.onWatchDogTimeout_,a),b)},qkc=function(a){a.watchDogTimerId_&&(ea.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
J6.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();0<=a-this.watchDogTimeoutTime_?(gkc(this.channelDebug_,this.requestUri_),2!=this.type_&&(E6(3),F6(17)),L6(this),this.lastError_=2,M6(this)):(this.channelDebug_.warning("WatchDog timer called too early"),Akc(this,this.watchDogTimeoutTime_-a))};
var M6=function(a){a.channel_.isClosed()||a.cancelled_||wkc(a.channel_,a)},L6=function(a){qkc(a);yi(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()}};J6.prototype.getLastError=function(){return this.lastError_};J6.prototype.getLastStatusCode=function(){return this.lastStatusCode_};J6.prototype.getRequestId=function(){return this.rid_};J6.prototype.getXhr=function(){return this.xmlHttp_};
var tkc=function(a,b){try{var c=a.channel_;if(0!=c.state_&&(c.backChannelRequest_==a||Bkc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&Bkc(c.forwardChannelRequestPool_,a)&&3==c.state_){try{var d=c.wireCodec_.parser_.parse(b)}catch(ba){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_)Ckc(c),Dkc(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");Ekc(c);F6(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_=G6(bv(c.onBackChannelDead_,c),6E3))}}if(1>=Fkc(c.forwardChannelRequestPool_)&&
c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(ba){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),N6(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&Ckc(c),!lj(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 t=k[4];null!=t&&(c.serverVersion_=t,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 F=Bi(y,"X-Client-Wire-Protocol");if(F){var K=h.forwardChannelRequestPool_;b=F;!K.requestPool_&&(ia(b,"spdy")||ia(b,"quic")||ia(b,"h2"))&&(K.maxSize_=K.maxPoolSizeConfigured_,K.requestPool_=new Set,K.request_&&(K.addRequest(K.request_),
K.request_=null))}if(h.httpSessionIdParam_){var J=Bi(y,"X-HTTP-Session-Id");J?(h.httpSessionId_=J,ZF(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 R=d=h,S=Gkc(R,R.supportsCrossDomainXhrs_?h.hostPrefix_:null,h.path_);R.channelDebug_.debug("GetBackChannelUri: "+
S);d.backChannelUri_=S;if(b.initialResponseDecoded_){h.channelDebug_.debug("Upgrade the handshake request to a backchannel.");Hkc(h.forwardChannelRequestPool_,b);d=b;var aa=h.backChannelRequestTimeoutMs_;aa&&d.setTimeout(aa);d.watchDogTimerId_&&(qkc(d),K6(d));h.backChannelRequest_=b}else Ikc(h);0<c.outgoingMaps_.length&&Jkc(c)}else"stop"!=k[0]&&"close"!=k[0]||N6(c,7);else 3==c.state_&&("stop"==k[0]||"close"==k[0]?"stop"==k[0]?N6(c,7):c.disconnect():"noop"!=k[0]&&c.handler_&&c.handler_.channelHandleArray(k),
c.backChannelRetryCount_=0)}E6(4)}catch(ba){}};
var Kkc=function(a,b){this.mapId=a;this.map=b;this.context=null};
var O6=function(a){this.maxPoolSizeConfigured_=a||10;ea.PerformanceNavigationTiming?(a=ea.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(ea.chrome&&ea.chrome.loadTimes&&ea.chrome.loadTimes()&&ea.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;1<this.maxSize_&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},Lkc=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1};O6.prototype.getMaxSize=function(){return this.maxSize_};var Fkc=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},Bkc=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1};O6.prototype.addRequest=function(a){this.requestPool_?this.requestPool_.add(a):this.request_=a};var Hkc=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
O6.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=n(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
O6.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=n(this.requestPool_.values()),c=b.next();!c.done;c=b.next())a=a.concat(c.value.getPendingMessages());return a}return Ga(this.pendingMessages_)};var Mkc=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};
var Okc=function(a,b){var c=new H6;c.debug("TestLoadImage: loading "+a);if(ea.Image){var d=new Image;d.onload=cv(Nkc,c,d,"TestLoadImage: loaded",!0,b);d.onerror=cv(Nkc,c,d,"TestLoadImage: error",!1,b);d.onabort=cv(Nkc,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=cv(Nkc,c,d,"TestLoadImage: timeout",!1,b);ea.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},Nkc=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 Pkc=function(){this.replacer_=void 0};Pkc.prototype.stringify=function(a){return ea.JSON.stringify(a,this.replacer_)};Pkc.prototype.parse=function(a){return ea.JSON.parse(a,void 0)};
var Qkc=function(){this.parser_=new Pkc},Rkc=function(a,b,c){var d=c||"";try{QF(a,function(e,f){var h=e;La(e)&&(h=FE(e));b.push(d+f+"="+encodeURIComponent(h))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};
var P6=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},Q6=function(a){this.clientVersion_=22;this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new H6;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_=P6("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_=P6("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=P6("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=P6("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
P6("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 O6(a&&a.concurrentRequestLimit);this.wireCodec_=new Qkc;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.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=
!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};Q6.prototype.channelVersion_=8;Q6.prototype.state_=1;
Q6.prototype.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");F6(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=Gkc(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;Jkc(this)};
Q6.prototype.disconnect=function(){this.channelDebug_.debug("disconnect()");Skc(this);if(3==this.state_){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();ZF(b,"SID",this.sid_);ZF(b,"RID",a);ZF(b,"TYPE","terminate");R6(this,b);a=new J6(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=aG(b.clone());b=!1;ea.navigator&&ea.navigator.sendBeacon&&(b=ea.navigator.sendBeacon(a.baseUri_.toString(),""));!b&&ea.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=nkc(a.channel_,null),a.xmlHttp_.send(a.baseUri_));
a.requestStartTime_=Date.now();K6(a)}Tkc(this)};var Dkc=function(a){a.backChannelRequest_&&(zkc(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},Skc=function(a){Dkc(a);a.backChannelTimerId_&&(ea.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);Ckc(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&("number"===typeof a.forwardChannelTimerId_&&ea.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};g=Q6.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 Jkc=function(a){Lkc(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,uE(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},Vkc=function(a,b){if(Fkc(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.getMaxSize()-(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_=G6(bv(a.onStartForwardChannelTimer_,a,b),Ukc(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
Q6.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 J6(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=cc(c),dc(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=Wkc(this,b,d);e=this.forwardChannelUri_.clone();ZF(e,"RID",a);0<this.clientVersion_&&ZF(e,"CVER",this.clientVersion_);this.httpSessionIdParam_&&
ZF(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);R6(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+encodeURIComponent(String(Szb(c)))+"&"+d:this.httpHeadersOverwriteParam_&&eG(e,this.httpHeadersOverwriteParam_,c));this.forwardChannelRequestPool_.addRequest(b);this.blockingHandshake_&&ZF(e,"TYPE","init");this.fastHandshake_?(ZF(e,"$req",d),ZF(e,"SID","null"),b.decodeInitialResponse_=!0,mkc(b,e,null)):mkc(b,e,d);this.state_=2}}else 3==this.state_&&(a?Xkc(this,a):0==this.outgoingMaps_.length?
this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Lkc(this.forwardChannelRequestPool_)||(Xkc(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Xkc=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();ZF(d,"SID",a.sid_);ZF(d,"RID",c);ZF(d,"AID",a.lastArrayId_);R6(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&eG(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new J6(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=Wkc(a,c,1E3);c.setTimeout(Math.round(.5*
a.forwardChannelRequestTimeoutMs_)+Math.round(.5*a.forwardChannelRequestTimeoutMs_*Math.random()));a.forwardChannelRequestPool_.addRequest(c);mkc(c,d,b)},R6=function(a,b){a.extraParams_&&Yb(a.extraParams_,function(c,d){ZF(b,d,c)});a.handler_&&QF({},function(c,d){ZF(b,d,c)})},Wkc=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?bv(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 t=e[q].mapId,x=e[q].map;t-=f;if(0>t)f=Math.max(0,e[q].mapId-100),k=!1;else try{Rkc(x,h,"req"+t+"_")}catch(y){d&&d(x)}}if(k){d=h.join("&");break a}}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return d},Ikc=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,uE(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},Ekc=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||3<=a.backChannelRetryCount_)return!1;a.channelDebug_.debug("Going to retry GET");
a.backChannelAttemptId_++;a.backChannelTimerId_=G6(bv(a.onStartBackChannelTimer_,a),Ukc(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
Q6.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;Ykc(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_=G6(bv(this.onBpDetectionTimer_,this),a)}};
Q6.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;F6(10);Dkc(this);Ykc(this)}else this.channelDebug_.warning("Invalid operation.")};
var zkc=function(a){null!=a.bpDetectionTimerId_&&(a.channelDebug_.debug("Cancel the BP detection timer."),ea.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},Ykc=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new J6(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();ZF(b,"RID","rpc");ZF(b,"SID",a.sid_);ZF(b,"CI",a.enableStreaming_?"0":"1");ZF(b,"AID",a.lastArrayId_);ZF(b,"TYPE","xmlhttp");R6(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&eG(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=aG(b.clone());c.postData_=null;c.decodeChunks_=!0;lkc(c,d);a.channelDebug_.debug("New Request created")};
Q6.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};Q6.prototype.onBackChannelDead_=function(){null!=this.deadBackChannelTimerId_&&(this.deadBackChannelTimerId_=null,Dkc(this),Ekc(this),F6(19))};
var Ckc=function(a){null!=a.deadBackChannelTimerId_&&(ea.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},wkc=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){Ckc(a);zkc(a);a.backChannelRequest_=null;var d=2}else if(Bkc(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),Hkc(a.forwardChannelRequestPool_,b),d=1;else return;if(0!=a.state_)if(b.successful_)1==d?(ckc(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),Jkc(a)):Ikc(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: "+ikc(f,a.errorResponseStatusCode_)});if(1==d&&Vkc(a,b)||2==d&&Ekc(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&0<c.length&&Mkc(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:N6(a,5);break;case 4:N6(a,10);break;case 3:N6(a,6);break;default:N6(a,2)}}},Ukc=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},N6=function(a,b){a.channelDebug_.info("Error code "+b);if(2==b){var c=null;a.handler_&&(c=null);var d=bv(a.testNetworkCallback_,a);c||(c=new Ep("//www.google.com/images/cleardot.gif"),ea.location&&"http"==ea.location.protocol||RF(c,"https"),aG(c));
Okc(c.toString(),d)}else F6(2);a.onError_(b)};Q6.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),F6(2)):(this.channelDebug_.info("Failed to ping google.com"),F6(1))};Q6.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);Tkc(this);Skc(this)};
var Tkc=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}),Ia(a.nonAckedMapsAtChannelClose_,b),Ia(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ga(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
Gkc=function(a,b,c){var d=bG(c);""!=d.getDomain()?(b&&SF(d,b+"."+d.getDomain()),TF(d,d.port_)):(d=ea.location,d=Qzb(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&ZF(d,b,c);ZF(d,"VER",a.channelVersion_);R6(a,d);return d},nkc=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("Te");b=c&&a.usesFetchStreams_&&!a.xmlHttpFactory_?new KE(new LF({streamBinaryChunks:!0})):new KE(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};Q6.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var Zkc=function(){};g=Zkc.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 $kc=function(){if(hv&&!(10<=Number(lv)))throw Error("Ue");};$kc.prototype.createWebChannel=function(a,b){return new S6(a,b)};
var S6=function(a,b){wp.call(this);this.channel_=new Q6(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)&&!lj(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!lj(b)&&(this.channel_.httpSessionIdParam_=b,Iba(this.messageUrlParams_,b)&&ac(this.messageUrlParams_,b));this.channelHandler_=new T6(this)};ev(S6,wp);
S6.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};S6.prototype.close=function(){this.channel_.disconnect()};S6.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__=FE(a),a=c);b.outgoingMaps_.push(new Kkc(b.nextMapId_++,a));3==b.state_&&Jkc(b)};
S6.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;S6.superClass_.disposeInternal.call(this)};var alc=function(a){Ljc.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)?bc(b,this.metadataKey):b}else this.data=a};ev(alc,Ljc);
var blc=function(a){Mjc.call(this);this.status=1;this.errorCode=a};ev(blc,Mjc);var T6=function(a){this.channel_=a};ev(T6,Zkc);T6.prototype.channelOpened=function(){this.channel_.dispatchEvent("C")};T6.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new alc(a))};T6.prototype.channelError=function(a){this.channel_.dispatchEvent(new blc(a))};T6.prototype.channelClosed=function(){this.channel_.dispatchEvent("D")};var w6=function(a){this.channel_=a};w6.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};
w6.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};w6.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};
var clc=function(){this.changeList=[]};clc.prototype.add=function(a){this.changeList.push(a)};
var dlc=function(a,b){this.authMethod=b;this.jspbClient=new Xjc(a)},elc=function(a,b){var c,d,e,f,h;return Pe(function(k){if(1==k.nextAddress){c=new yjc;Vb(c,1,b);var q=a.jspbClient,t=q.post;var x=a.authMethod;x={queryParams:x.getQueryParameters(),extraHeaders:x.getHeaders(),withCredentials:x.usesCredentialedRequests()};return Re(k,t.call(q,"/punctual/v1/chooseServer",c,zjc,x),2)}d=k.yieldResult;e=l(d,1);if(null==e)throw Error("Ve");return k.return({gsessionid:e,affinitization:null!=(f=d.getAffinitization())?
f:0,initialConnectionDelayMillis:null!=(h=l(d,3))?h:0})})},flc=function(a,b,c){this.project=a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},U6=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 W.Subject;this.streamNumber=0;this.rawStatus=new W.Subject;this.status=new W.BehaviorSubject(new FF);this.skipBackoff=new Qjc;this.recentResyncs=
[];this.hasConnected=!1;this.rawStatus.pipe(Gga(function(d){return 0===d.getCode()?Promise.resolve():new Promise(function(e){Xt(e,500)})})).subscribe(this.status);this.delayGenerator=new O7a;this.reconnectHint=b?b.pipe(nf(function(){return W.NEVER}),Ega(W.NEVER)):W.NEVER;glc(this)},hlc=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 Ep}var h=f.clone().setPath("/punctual/multi-watch/channel"),k=new Njc(h.toString(),
e);return{serverChooser:new dlc(f,e),channelCreator:function(q,t,x){q=new v6(q,t,k,function(y,F){return(new $kc).createWebChannel(y,F)},x);q.open();return q}}});return new U6(d,c,b)};U6.prototype.handleClose=function(a,b){var c=this.causalStreams.get(a)||this.limboStreams.get(a)||this.nonCausalStreams.get(a);c&&(0===b.getCode()?c.observer.complete():c.observer.error(b),this.causalStreams.delete(a),this.limboStreams.delete(a),this.nonCausalStreams.delete(a))};
var ilc=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},jlc=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 gu&&d instanceof gu?c.equals(d):!1;return d})};U6.prototype.onOpen=function(){var a=new FF;a.setCode(0);try{this.rawStatus.next(a)}catch(b){}};U6.prototype.onClose=function(){this.channelState=void 0;glc(this)};
U6.prototype.onError=function(a,b){a=new FF;a.setCode(Q7a(b));try{this.rawStatus.next(a)}catch(c){}a=n(this.causalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=n(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var mlc=function(a,b,c){if(a.channelState){var d=klc(c.project,c.interestSet);c instanceof llc&&(m(d,1,c.knowledgeTimestamp.toString()),m(d,8,c.knowledgeTimestampChosenByPunctual));m(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new n6;var e=c.addAndReturnRequests();e.setStreamId(b.toString());Dm(e,2,Cjc,d);e.setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},klc=function(a,b){var c=new m6;c=Vb(c,4,Ojc);if(b instanceof gu){var d=new vjc;null!=a&&d.setProject(S7a(a));
d.setOwner(U7a(b));d.setPath(W7a(b));Dm(c,2,xjc,d)}else d=new wjc,null!=a&&d.setProject(S7a(a)),d.setOwner(U7a(b.root)),d.setPrefix(W7a(b.root)),c.setPrefix(d);return c},nlc=function(a,b){var c=new n6,d=c.addAndReturnRequests();d.setStreamId(b.toString());d.setClose(new Bjc);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},glc=function(a){var b=sjc(a.delayGenerator);R7a(b).pipe(cha(a.reconnectHint.pipe(vf(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){olc(a,c.serverChooser).then(function(d){Xt(function(){a.hasConnected=!0;plc(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(){glc(a)})},function(c){var d=new FF;d.setCode(13);d.setMessage(c.toString());a.rawStatus.next(d)})})},olc=function(a,b){var c,d,e,f,h,k;return Pe(function(q){if(1==q.nextAddress)return Re(q,qlc(a),2);c=q.yieldResult;d=
n(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return(elc(b,klc(h,k)))})},qlc=function(a){var b,c,d,e,f,h,k;return Pe(function(q){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=n(b);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=n(e.values()),h=f.next();!h.done;)return k=h.value,q.return([k.project,k.interestSet]);return Re(q,nqb(Mw(a.newStreamSubject).pipe(vf())),1)})},plc=function(a,b,c){a.channelState={channel:b(function(f){for(var h=n(Nb(f,Ijc,1)),k=h.next();!k.done;k=h.next()){var q=
k.value;if(k=q.getStreamId())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 t=Hl(q,q6,2,Jjc);if(t)switch(ym(t,r6)){case 1:q=a;if(t=q.causalStreams.get(k)){try{t.observer.next(new qjc)}catch(R){}q.causalStreams.delete(k);q.limboStreams.set(k,t.start())}break;case 3:a:{if(q=Hl(t,Hjc,3,r6))if(q=l(q,1)){var x=new rjc(hu(q));break a}x=void 0}if(x&&(q=a,t=k,k=x,(x=q.limboStreams.get(t))?(x=x.advance(k.timestampMicros),q.limboStreams.delete(t),
q.nonCausalStreams.set(t,x),q=x):q=q.nonCausalStreams.get(t),q)){t=q;x=k.timestampMicros;x>t.knowledgeTimestamp&&(t.knowledgeTimestamp=x,t.knowledgeTimestampChosenByPunctual=!0);try{q.observer.next(k)}catch(R){}}break;case 2:k=a.nonCausalStreams.get(k)||a.limboStreams.get(k);if(!k)break;q=k.interestSet;if(x=t.getChanges()){t=new clc;x=n(Nb(x,p6,1));for(var y=x.next();!y.done;y=x.next()){var F=y.value,K=Ub(F,au,6);y=F.getVersion();if(K&&y){var J=void 0;F=null==(J=Ms(F,2))?void 0:Y7a(J);J=null===F?
void 0:F;(K=$7a(q,K))&&t.add(new pjc(K,hu(y),J))}}q=t}else q=void 0;if(q)for(q=n(q.changeList),t=q.next();!t.done;t=q.next()){t=t.value;t=new pjc(t.objectId,t.version,t.payload);try{k.observer.next(t)}catch(R){}}break;case 5:if(q=a,k=q.causalStreams.get(k)||q.limboStreams.get(k)||q.nonCausalStreams.get(k)){k instanceof llc&&(ilc(q),(t=jlc(q,k))?(t.hasRecurred=!0,t.knowledgeTimestamp=k.knowledgeTimestamp,t.resyncMillis=Date.now()):q.recentResyncs.push(new flc(k.project,k.interestSet,k.knowledgeTimestamp)));
try{k.observer.complete()}catch(R){}}}}}if(f.hasStatus())switch(f.getStatus().getCode()){case 1:h=n(a.causalStreams.values());for(f=h.next();!f.done;f=h.next())f.value.streamInitiationReason=3;h=n(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=n(b);for(c=b.next();!c.done;c=b.next()){var d=n(c.value);c=d.next().value;d=d.next().value;mlc(a,c,d)}b=n(a.limboStreams);for(c=b.next();!c.done;c=b.next())c=n(c.value),c.next(),c.next().value.observer.complete();a.limboStreams.clear();var e=a.channelState;Xt(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
U6.prototype.watch=function(a,b){var c=this;b=void 0===b?{}:b;return new W.Observable(function(d){var e=++c.streamNumber,f,h=null!=(f=b.projectOverride)?f:c.defaultProject;d=new rlc(d,h,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});mlc(c,e,d);return function(){nlc(c,e)}})};
U6.prototype.watchWithStartTime=function(a,b,c){var d=this;c=void 0===c?{}:c;return new W.Observable(function(e){var f=++d.streamNumber,h,k=null!=(h=c.projectOverride)?h:d.defaultProject,q=new llc(e,k,a,b,!1);ilc(d);if((e=jlc(d,q))&&(e.hasRecurred||0>=b.compare(e.knowledgeTimestamp))){var t=!0;Xt(function(){t&&q.observer.complete()},6E4);return function(){t=!1}}d.nonCausalStreams.set(f,q);d.newStreamSubject.next({});mlc(d,f,q);return function(){nlc(d,f)}})};
var rlc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};rlc.prototype.start=function(){return new slc(this.observer,this.project,this.interestSet)};var slc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};slc.prototype.advance=function(a){return new llc(this.observer,this.project,this.interestSet,a,!0)};
var llc=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 tlc={firstPartyUri:new Ep("https://signaler-pa.clients6.google.com"),thirdPartyUri:new Ep("https://signaler-pa.googleapis.com")},ulc={firstPartyUri:new Ep("https://punctual-dev.corp.google.com"),thirdPartyUri:new Ep("https://signaler-staging.sandbox.google.com")},vlc=new Map(Object.entries({prod:tlc,ytprod:{firstPartyUri:new Ep("https://signaler-pa.youtube.com"),thirdPartyUri:new Ep("https://signaler-pa.googleapis.com")},dev:ulc}));
var wlc=function(a){this.projectPath=a;this.authParams=new Ujc};wlc.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};wlc.prototype.setAuthUser=function(a){this.authParams.authUser=a;return this};
wlc.prototype.build=function(){var a=P7a(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("We`"+b);var c=b.substring(10).split("/");if(2!==c.length)throw Error("Xe`"+b);b=n(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Ep(decodeURIComponent(c.substring(7))),c={firstPartyUri:c,thirdPartyUri:c};else{var d=vlc.get(c);if(!d)throw Error("Ye`"+c);c=d}return hlc(c,a,this.reconnectHint,b)};
var xlc={watch:function(){return(0,W.of)()},watchWithStartTime:function(){return(0,W.of)()},status:(0,W.of)()},V6=function(a){this.activeSession=a;if(this.activeSession.isInternalSession()&&Cq(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 wlc(b)).setApiKey(a).build()}else this.punctualClient=xlc},ylc=function(a,b){return a.punctualClient.watch(X7a("new-comment-issue",b)).pipe(hf(function(c){return c instanceof pjc}))};V6.\u0275fac=function(a){return new (a||V6)(p(NG))};V6.\u0275prov=Hc({token:V6,factory:V6.\u0275fac,providedIn:"root"});
var W6=function(a){this.punctualService=a;this.stream=new W.Subject;this.isPaused=!1;this.closeStream$=new W.Subject};W6.prototype.resume=function(){this.isPaused=!1};var zlc=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new W.Subject,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};W6.prototype.watch=function(a){var b=this;return ylc(this.punctualService,a).pipe(hf(function(){var c=!b.isPaused;b.resume();return c}),of(1E3),Ef(this.closeStream$))};
W6.\u0275fac=function(a){return new (a||W6)(p(V6))};W6.\u0275prov=Hc({token:W6,factory:W6.\u0275fac,providedIn:"root"});
var Alc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};
var X6=function(a){this.matDialog=a};X6.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(Y6,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,audience:b,id:null!=c.unlinkifiedComment?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:c.formattingMode||"PLAIN"}});return(0,W.firstValueFrom)(CC(this.dialog))};X6.\u0275fac=function(a){return new (a||X6)(p(IC))};X6.\u0275prov=Hc({token:X6,factory:X6.\u0275fac,providedIn:"root"});
var Y6=function(a,b,c,d,e){Z.call(this);var f=this;this.activeSession=a;this.origComment=b;this.dialogService=c;this.dialogRef=d;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=Cq(this.activeSession,"enableRecaptcha")&&Cq(this.activeSession,"enableCommentEditCaptchaUi");this.recaptchaResponse="";this.newComment=
Object.assign({},this.origComment);this.subscriptions.add(aY(e,function(){return f.isModified()},!1))};X(Y6,Z);Y6.\u0275dir=Z.\u0275dir;g=Y6.prototype;g.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Ef(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Ef(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!Ri(this.newComment,this.origComment)};g.closeDialogForSave=function(){if(this.isModified()){this.enableRecaptcha&&(this.newComment.recaptchaToken=this.recaptchaResponse);var a;null==(a=this.dialogService.dialog)||a.close(this.newComment)}};
Y6.\u0275fac=function(a){return new (a||Y6)(B(NG),B(HC),B(X6),B(EC),B($X))};
Y6.\u0275cmp=u({type:Y6,selectors:[["ng-component"]],features:[Of],decls:18,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","audience","contentChange","onSubmit"],[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",
"click"],[3,"comment","issueId","audience","formattingMode"],[1,"recaptcha-container"],[3,"onUpdate"]],template:function(a,b){a&1&&(E(0,"h1",0),Q(1),G(),E(2,"section",1)(3,"p",2),Q(4," Editing comments will not permanently remove old ones from database history. "),H(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),E(7,"a",3),Q(8," file a support request."),G()(),E(9,"b-comment-draft",4),M("contentChange",function(c){return b.newComment.text=c})("onSubmit",function(){return b.closeDialogForSave()}),
G(),E(10,"b-markdown-toggle",5),M("change",function(c){return b.newComment.formattingMode=c}),G(),P(11,a8a,1,4,"b-live-preview",6),G(),P(12,b8a,3,0,"section",7),E(13,"footer",8)(14,"button",9),Q(15," Cancel "),G(),E(16,"button",10),M("click",function(){return b.closeDialogForSave()}),Q(17," Save "),G()());a&2&&(A(1),lg("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),A(6),D("href",b.contentRemovalRequestLink,le),A(2),D("content",b.newComment.text)("audience",b.origComment.audience),
A(1),Zf("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),D("initialValue",b.origComment.formattingMode),A(1),D("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),A(1),D("ngIf",b.enableRecaptcha),A(2),D("mat-dialog-close",void 0),A(2),D("disabled",!b.isModified()||!b.isCaptchaValid()))},dependencies:[JC,KC,LC,MC,gy,pC,FV,EV,fW,iW],styles:[".recaptcha-container[_ngcontent-%COMP%]{float:right;padding-top:8px}\n/*# sourceMappingURL=edit_comment_dialog.css.map */"],
changeDetection:0});
var Z6=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka){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=t;this.confirmationDialogService=x;this.issueComments=y;this.errorHandler=F;this.issueFetchResponseFridge=K;this.eventsForIssueFridge=J;this.componentFridge=R;this.commentFormatter=S;this.confirmNoAccessService=aa;this.activeSession=
ba;this.appEvents=ka;this.issuePicker=wa;this.eventsForIssueWatcher=Aa;this.issueInteractionsTracking=Ka},wu=function(a,b,c){var d,e,f,h;return Pe(function(k){if(1==k.nextAddress){d=a.editIssueService.savingState(b);if(d.get("commentEdit"))return k.return();a.butterBar.dismiss();f=null!=(e=a.issuePermissionService.audience())?e:2;return Re(k,a.editCommentDialogService.show(b,f,c),2)}h=k.yieldResult;if(null==h)return k.return();ojc(a.issueCommentService,{issueId:b,newCommentId:h.id,newComment:h.text,
newCommentFormattingMode:h.formattingMode,recaptchaToken:h.recaptchaToken});Ve(k)})},Clc=function(a,b,c){var d,e,f;return Pe(function(h){if(1==h.nextAddress)return c?Re(h,Blc(a,b),2):h.return();if(3!=h.nextAddress)return d={title:"Choose target issue",defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResourceId:Number(b),currentResourceType:"issue",edgeType:"copyComment"},Re(h,a.issuePicker.open(d),3);e=h.yieldResult;if(null==(f=e)?0:f.length){var k=e[0],q=a.paths.editIssue(k.resourceId,{template_issue:b,
template_comment:c,do_attribution:!0});Mo(a.analytics,Aq.EDIT_ISSUE,"copyComment",k.relations.join(",")||"NONE");a.domSafe.openInNewTab(q)}Ve(h)})},Blc=function(a,b){var c,d,e,f,h,k,q,t,x,y,F,K,J,R,S;return Pe(function(aa){if(1==aa.nextAddress)return Re(aa,(0,W.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=aa.nextAddress){c=aa.yieldResult;if(!c)return aa.return([]);e=null!=(d=c.snapshot[0].duplicateIssueId)?d:[];h=null!=(f=c.snapshot[0].blockingIssueId)?f:[];q=null!=(k=c.snapshot[0].blockedByIssueId)?
k:[];return Re(aa,(0,W.firstValueFrom)(a.issueFridge.watchSet(Wj([].concat(r(e),r(h),r(q)),Vj))),3)}t=aa.yieldResult;x=new Map(t.map(function(ba){return[ba.issueId,ba]}));y=function(ba){return x.get(ba)};F=q.map(y).filter(fm).map(Dlc("BLOCKED_BY"));K=h.map(y).filter(fm).map(Dlc("BLOCKING"));J=e.map(y).filter(fm).map(Dlc("DUPLICATE"));R=[].concat(r(F),r(K),r(J));S=c8a(R);return aa.return(S)})},Flc=function(a,b,c){var d;return Pe(function(e){return 1==e.nextAddress?c?Re(e,hJb(a.confirmationDialogService,
{title:"Restore comment # "+c+"?",content:Co("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?Re(e,Elc(a,b,c),0):e.return()})},Elc=function(a,b,c){var d,e;return Pe(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();vJ(a.butterBar,"Restoring comment...",0);Qe(f,2,3);EQ(d,"commentUndelete");return Re(f,a.issueComments.undelete(b,c),5);case 5:vJ(a.butterBar,"Comment restored successfully.");case 3:Se(f);
FQ(d,"commentUndelete");KK(a.issueFetchResponseFridge,b);a.eventsForIssueFridge.poke(b);Te(f,0);break;case 2:e=Ue(f),vJ(a.butterBar,"Comment restoration failed."),zJ(a.errorHandler,e),f.jumpTo(3)}})},Ilc=function(a,b,c,d){var e,f,h,k;return Pe(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():Re(q,Glc(a,b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),Re(q,(0,W.firstValueFrom)(CC(a.matDialogService.open(H2,
{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(h=q.yieldResult)?Re(q,Hlc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},Hlc=function(a,b,c,d,e){var f,h;return Pe(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Qe(k,2,3);vJ(a.butterBar,"Deleting comment...",0);EQ(f,"commentDelete");return Re(k,a.issueComments.delete(b,c,d,e),5);case 5:vJ(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),
a.eventsForIssueFridge.poke(b);case 3:Se(k);FQ(f,"commentDelete");KK(a.issueFetchResponseFridge,b);Te(k,0);break;case 2:h=Ue(k),vJ(a.butterBar,"Comment deletion failed."),zJ(a.errorHandler,h),k.jumpTo(3)}})},Glc=function(a,b){var c,d,e,f,h,k,q,t;return Pe(function(x){switch(x.nextAddress){case 1:return Re(x,(0,W.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 Re(x,
(0,W.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=x.yieldResult;case 3:return h=f,k=new Alc("Other","USER_REQUEST"),h&&"DISABLED"!==h.commentEditState||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),q=new Alc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(q.enabled=!1,q.disabledReason="available on Public components"),t=new Alc("Personally Identifiable Information","PII"),x.return([t,q,k])}})},Jlc=function(a,b,c){var d,e;return Pe(function(f){if(1==
f.nextAddress)return d=hL(a.issuePermissionService,Ul(c.userPerformingActionUser)),Mo(a.analytics,Aq.RESTRICTED_CONTENT,"updateContentJudgement","comment"),Re(f,a.showContentJudgementDialog({severity:Mm(Nm(c.commentContentVerdict)),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:Lm(e.contentJudgement.getSeverity())}},KK(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),
HK(a.issueFridge,[b],{markRead:!0});Ve(f)})};Z6.prototype.showContentJudgementDialog=function(a){return(0,W.firstValueFrom)(CC(this.matDialogService.open(b4,{panelClass:"no-jitter",width:"500px",data:a})))};
var Klc=function(a,b,c){var d;return Pe(function(e){if(1==e.nextAddress)return Re(e,(0,W.firstValueFrom)(CC(a.matDialogService.open(f4,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(1===d)})},Llc=function(a,b,c,d){var e;Pe(function(f){if(1==f.nextAddress){if(null==d)return f.return();Mo(a.analytics,Aq.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return Re(f,a.showContentJudgementDialog({severity:Mm(Nm(d.contentVerdict)),resourcePath:"issues/"+b+
"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:Lm(e.contentJudgement.getSeverity())}},KK(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),HK(a.issueFridge,[b],{markRead:!0});Ve(f)})};
Z6.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,t;Pe(function(x){if(1==x.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return x.return();e=W;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=G2;return Re(x,Glc(c,a),3)}return 2!=x.nextAddress?Re(x,f.call(e,CC(k.call(h,q,{width:"560px",data:{deletionReasons:x.yieldResult,attachmentId:b.attachmentId}}))),2):(t=x.yieldResult)?Re(x,OOb(c.editIssueService,a,b,t.value),0):x.jumpTo(0)})};
var Mlc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return Pe(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.showImplicitAccessIndicator())return q.return(!0);Qe(q,2);return Re(q,(0,W.firstValueFrom)(d_b(a.commentFormatter,{comment:e.value,issueId:c,audience:null!=(f=a.issuePermissionService.audience())?f:2,formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"})),4)}if(2!=q.nextAddress)return h=q.yieldResult,
q.return(qQ(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Ue(q);zJ(a.errorHandler,k);return q.return(!1)})},Nlc=function(a,b){b=void 0===b?"comment":b;var c,d;return Pe(function(e){if((c=a.issuePermissionService.accessLevel())&&"INTERNAL"===c||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||OG(a.activeSession))return e.return(!0);switch(b){case "comment":d=Co("Commenting on this bug report means your email address will be shared with the team that works on this product.");
break;case "reaction":d=Co("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:Ai(b)}return e.return(hJb(a.confirmationDialogService,{title:"",content:d}))})};
Z6.prototype.submitCommentBox=function(a,b){var c=this,d,e,f,h,k,q;return Pe(function(t){if(1==t.nextAddress){d=c.editIssueService.issueCommentDraft(a).comment();e=c.editIssueService.savingState(a);f=c.editIssueService.editableIssue(a);if(!c.issuePermissionService.hasAclToComment()||!mOb(d)||e.get("comment"))return t.return();EQ(e,"comment");h=function(){FQ(e,"comment")};return Re(t,Mlc(c,{issueId:a,componentId:String(f.componentId),comment:d}),2)}if(3!=t.nextAddress)return k=t.yieldResult,k?Re(t,
Nlc(c),3):(h(),t.return());q=t.yieldResult;if(!q)return h(),t.return();Mo(c.analytics,Aq.EDIT_ISSUE,"addComment","MARKDOWN"===d.formattingMode?"markdown":"non markdown");BQ(c.issueInteractionsTracking,a);c.eventsForIssueWatcher.isPaused=!0;return t.return(c.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(a,b).finally(function(){h();c.appEvents.commentSubmitted.next(a);c.appEvents.scrollToCommentBox.next()}))})};
Z6.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return Pe(function(q){if(1==q.nextAddress)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=null!=(f=null==(e=d)?void 0:e.getSeverity())?f:1,Re(q,b.showContentJudgementDialog({severity:h,contentJudgement:d,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.userDefinedJudgementForNewContent$.next(k.contentJudgement);Ve(q)})};
Z6.prototype.updateCommentReaction=function(a){var b=this,c;return Pe(function(d){return 1==d.nextAddress?a.hasReacted?Re(d,Nlc(b,"reaction"),3):d.jumpTo(2):2==d.nextAddress||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};Z6.\u0275fac=function(a){return new (a||Z6)(p(HQ),p(uJ),p(iL),p(k6),p(X6),p(FK),p(IC),p(pI),p(BK),p(RN),p(UL),p(zL),p(xJ),p(IK),p(hK),p(ZJ),p(DV),p(pQ),p(NG),p(eJ),p(GW),p(W6),p(AQ))};Z6.\u0275prov=Hc({token:Z6,factory:Z6.\u0275fac,providedIn:"root"});
var Dlc=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]}}};
var $6=function(a,b,c){this.editIssueService=a;this.issuePicker=b;this.analytics=c},Olc=function(a,b){var c,d,e,f,h,k,q;return Pe(function(t){if(1==t.nextAddress)return b=String(b),c=a.editIssueService.editableIssue(b),d=c.status,c.setStatus("DUPLICATE"),e={title:"Mark issue as duplicate of:",currentResourceId:Number(b),currentResourceType:"issue",componentId:c.componentId,allowMultipleIds:!1,edgeType:"canonical"},f=(new Date).getTime(),Re(t,a.issuePicker.open(e),2);h=t.yieldResult;if(null==(k=h)||
!k.length)return c.status=d,t.return();q=(new Date).getTime()-f;Mo(a.analytics,Aq.ISSUE_PICKER,"duplicate duration","<"+Math.min(2*Math.ceil(q/2E3),600)+"s",q);Mo(a.analytics,Aq.EDIT_ISSUE,"setCanonicalIssue");return t.return(GOb(a.editIssueService,b,String(h.map(function(x){return x.resourceId})[0])))})};$6.\u0275fac=function(a){return new (a||$6)(p(HQ),p(GW),p(BK))};$6.\u0275prov=Hc({token:$6,factory:$6.\u0275fac,providedIn:"root"});
var a7=function(a,b){var c=this;this.componentFridge=a;this.issueEditComponentService=b;this.componentId$=new W.ReplaySubject(1);this.viewOnly=!1;this.compactMode$=new W.BehaviorSubject(!1);this.editing=!1;this.component$=this.componentId$.pipe(Df(function(d){return c.componentFridge.watch(d).pipe(Cf(void 0))}));this.isArchived$=this.component$.pipe(C(function(d){return null==d?void 0:d.archived}));this.componentPath$=(0,W.combineLatest)([this.componentId$,this.component$,this.compactMode$]).pipe(C(function(d){var e=
n(d);d=e.next().value;var f=e.next().value;e=e.next().value;if(null==f)return mp({componentPathId:[Number(d)]});d=mp(f.componentPathInfo);if(e){f=[];e=0;for(var h=d.length-1;0<=h;h--){var k=d[h],q=h===d.length-1?48:32;if(e>=q)break;var t=String(k.name),x=void 0;if(e+[].concat(r(t)).length>q){var y=q-e;q="";t=void 0===t?"":t;y=void 0===y?48:y;q=void 0===q?"...":q;x=[].concat(r(t));x.length<=y||(t=y-[].concat(r(q)).length,t=x.slice(-t).join(""),null!=String.prototype.trimStart&&(t=t.trimStart()),t=
q+t);x=!0}e+=[].concat(r(t)).length;f.unshift(Object.assign({},k,{name:t,isTruncated:x}));if(x)break}d.length>f.length&&(f[0].isSpliced=!0);d=f}return d}));this.isEmpty$=this.component$.pipe(C(function(d){return!d}));this.isThinkingAndEmpty$=(0,W.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;return d&&e}));this.isReady$=this.isThinkingAndEmpty$.pipe(C(function(d){return!d}))};a7.prototype.ngOnInit=function(){};
ni.Object.defineProperties(a7.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)}}});a7.\u0275fac=function(a){return new (a||a7)(B(ZJ),B(j6))};
a7.\u0275cmp=u({type:a7,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"],["svgIcon","folder","title","Component folder path",1,"icon-xs"],["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","Change Component","matTooltip","Change Component","target","_blank",3,"routerLinkObj",4,"ngIf"],[1,"component-path"],[4,"ngFor","ngForOf"],["href","javascript:void(0);","title","Show all Components","class","subtle-link",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",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","Change Component","matTooltip","Change 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,p8a,10,11,"b-async-data-placeholder",0),P(1,r8a,2,5,"ng-template",null,1,Hg));if(a&2){var c=O(2);D("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[g1,fy,gy,pC,qC,yD,oU,iM,jM,mM,kM,tF,L4,OR,ny],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}.pop-out-btn[_ngcontent-%COMP%]{margin-left:0;margin-right:16px}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}"],
changeDetection:0});
var b7=function(a,b){this.paths=a;this.activeSession=b;this.isCompact=!1;this.starClicked=new sx;this.currentUserEmail=this.activeSession.getUserEmail()};b7.prototype.ngOnInit=function(){};b7.prototype.isDirectAdmin=function(a){return a?Rl(a.adminUsers).includes(this.currentUserEmail):!1};b7.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};b7.\u0275fac=function(a){return new (a||b7)(B(pI),B(NG))};
b7.\u0275cmp=u({type:b7,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,u8a,9,4,"div",0);a&2&&D("ngIf",b.hotlist)},dependencies:[gy,yD,QH,dM,tF,ny],encapsulation:2,changeDetection:0});
var Plc=function(){this.tokens=new Map};Plc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};Plc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new Qlc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var Qlc=function(a){this.sortedEntries=a};
Qlc.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};Qlc.prototype.search=function(a){var b=new Set;a=n(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=n(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var Rlc=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(r(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};
var Slc=function(a){this.hotlists=a;var b=new Plc,c=new Plc;a=n(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())?Yya(d.name.toLowerCase()):[];f=n(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())?Yya(d.description.toLowerCase()):[];f=n(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]}))};
Slc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=n(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;(dna(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=Yya(a);d=n(Rlc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=n(Rlc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return Tlc(this,b)};var Tlc=function(a,b){return[].concat(r(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};
var c7=function(){this.innerHeight$=(0,W.concat)((0,W.defer)(function(){return(0,W.of)(window.innerHeight)}),(0,W.fromEvent)(window,"resize").pipe(C(function(){return window.innerHeight})))};c7.\u0275fac=function(a){return new (a||c7)};c7.\u0275prov=Hc({token:c7,factory:c7.\u0275fac,providedIn:"root"});
var d7=function(a,b,c,d,e,f,h,k,q,t,x,y){Z.call(this);var F=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.activeSession=q;this.userApi=t;this.windowHeight=x;this.permissionsFridge=y;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new W.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(of(100),Cf(""));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 Oy({name:new Qy("",Gy),description:new Qy("")});this.currentUserEmail=this.activeSession.getUserEmail();this.starredHotlists=new DQ;this.isSavingStar=new DQ;this.userHotlists$=eHb(this.hotlistFridge);this.issueHotlists$=
this.hotlistFridge.watchSet(Array.from(this.data.selectedHotlistIds));this.combineHotlistsWithPermissions=C(function(K){var J=F.permissionsFridge.watchSet(K.map(function(R){return"hotlists/"+R.hotlistId}));return K.map(function(R,S){return Object.assign({},R,{permissions$:J.pipe(C(function(aa){return aa[S]}))})})});this.hotlists$=(0,W.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(C(function(K){var J=n(K);K=J.next().value;J=J.next().value;return[].concat(r(K),r(J))}),C(fBb(function(K){return K.hotlistId})),
C(function(K){return K.filter(fm)}),C(function(K){return K.sort(M8a)}),C(function(K){return K.sort(function(J,R){var S=F.selectedHotlistIds;J=S.has(J.hotlistId);R=S.has(R.hotlistId);return J&&R?0:J?-1:R?1:0})}),this.combineHotlistsWithPermissions,Af({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(C(function(K){return new Slc(K)}),Af({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new W.Subject;this.matchedHotlists$=(0,W.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,
this.hotlists$]).pipe(C(function(K){var J=n(K);K=J.next().value;var R=J.next().value;J=J.next().value;return""!==K.trim()?R.search(K):J}),Af({bufferSize:1,refCount:!0}));this.visibleHotlists$=(0,W.combineLatest)([this.matchedHotlists$,(0,W.merge)(this.matchedHotlists$.pipe(C(function(){return!1})),this.forceShowOverflow$)]).pipe(C(function(K){var J=n(K);K=J.next().value;J=J.next().value;return 200<K.length&&!J?K.slice(0,200):K}),Af({bufferSize:1,refCount:!0}));this.isOverflowMode$=(0,W.combineLatest)([this.matchedHotlists$,
this.visibleHotlists$]).pipe(C(function(K){var J=n(K);K=J.next().value;J=J.next().value;return K.length!==J.length}));this.showLoadById$=this.query$.pipe(C(function(K){K=K.trim();return!F.allHotlistIds.has(Number(K))&&dna(K)}));this.showCreateNew$=(0,W.combineLatest)([this.query$,this.matchedHotlists$]).pipe(C(function(K){var J=n(K);K=J.next().value;J=J.next().value;return N8a(K,J)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(C(function(K){return Math.max(1,Math.floor(.5*
K/24))}),rf());this.compactNumberOfHotlistsToShow$.pipe(C(function(K){return 24*K}));this.subscriptions.add(this.hotlists$.subscribe(function(K){F.hotlists=K;K=n(K);for(var J=K.next();!J.done;J=K.next())F.allHotlistIds.add(J.value.hotlistId)}))};X(d7,Z);d7.\u0275dir=Z.\u0275dir;d7.prototype.ngOnInit=function(){var a=this;Ulc(this);this.query$.pipe(Ef(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
var I8a=function(a,b){b.options.forEach(function(d){d.selected?a.selectedHotlistIds.add(d.value):a.selectedHotlistIds.delete(d.value)});b=Rma(a.originalIds,a.selectedHotlistIds);a.pristine=!b;var c=n(O8a(b));b=c.next().value;c=c.next().value;a.saveBtnLabel=b;a.saveBtnTooltip=c},ku=function(a){a.dialogRef.close(a.selectedHotlistIds)},A8a=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},Vlc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?
void 0:b.value)?a:""},z8a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=A8a(a),c=Vlc(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)})},Ulc=function(a){a.userApi.getUserSidebar().then(function(b){a.starredHotlists.clear();
for(var c=n(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=n(b.bookmarkGroups||[]);for(c=b.next();!c.done;c=b.next())for(c=n(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)})};
d7.prototype.toggleStar=function(a){var b=this,c,d,e;return Pe(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a,userLogin:b.currentUserEmail};Qe(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),Re(f,b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return Re(f,b.userApi.saveFavorite(d),3);case 3:Se(f);b.isSavingStar.delete(a);Te(f,4);break;case 2:e=Ue(f);zJ(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),
b.appEvents.favoritesModified.next(),Ulc(b),Ve(f)}})};var D8a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);ku(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};d7.prototype.trackByHotlistId=function(a,b){return b.hotlistId};d7.\u0275fac=function(a){return new (a||d7)(B(EC),B(HC),B(pI),B(sK),B(TI),B(rJ),B(eJ),B(xJ),B(NG),B(oK),B(c7),B(WK))};
d7.\u0275cmp=u({type:d7,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&M("keydown.meta.enter",function(){return ku(b)})("keydown.shift.enter",function(){return ku(b)})("keydown.control.enter",function(){return ku(b)})},features:[Of],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,w8a,2,1,"ng-container",
0),E(1,"mat-dialog-actions")(2,"button",1),M("click",function(){b.dialogRef.close()}),Q(3," Cancel "),G(),P(4,y8a,2,1,"ng-container",0),G(),P(5,B8a,2,1,"ng-template",null,2,Hg),P(7,C8a,2,5,"ng-template",null,3,Hg),P(9,K8a,15,9,"ng-template",null,4,Hg),P(11,L8a,14,1,"ng-template",null,5,Hg));if(a&2){var c=O(8),d=O(10);D("ngIf",b.showCreateNewPane)("ngIfElse",d);A(4);D("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:[fy,gy,my,yD,JC,KC,LC,MC,pC,nO,oO,Sy,fh,Ky,Ly,bz,Yy,Zy,tF,b7,ny],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}\n/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});
var e7=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},Wlc=function(a,b){var c,d,e,f,h,k,q,t;return Pe(function(x){switch(x.nextAddress){case 1:return Re(x,(0,W.firstValueFrom)(b),2);case 2:return c=x.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?Re(x,a.openModal(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);Qe(x,4,5);return Re(x,NHb(a.issueFridge,
q,h,k),5);case 5:Se(x);a.eventsForIssueFridge.poke(q);Te(x,0);break;case 4:t=Ue(x),zJ(a.errorHandler,t),x.jumpTo(5)}})};e7.prototype.openModal=function(a){var b=this,c,d,e,f;return Pe(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:a},ariaLabel:"Search for Hotlists"},d=b.dialog.open(d7,c),Re(h,(0,W.firstValueFrom)(CC(d)),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=Rma(new Set(a),new Set(e));return h.return(Promise.resolve(f))})};
e7.\u0275fac=function(a){return new (a||e7)(p(IC),p(FK),p(hK),p(xJ))};e7.\u0275prov=Hc({token:e7,factory:e7.\u0275fac,providedIn:"root"});
var f7=function(a,b,c){this.issueFridge=a;this.hotlistFridge=b;this.hotlistPicker=c;this.issueId$=new W.ReplaySubject(1);this.issue$=this.issueId$.pipe(Df(this.issueFridge.watch));this.hotlistsOnIssue$=this.issue$.pipe(C(function(d){var e;return null!=(e=null==d?void 0:d.snapshot[0].hotlistId)?e:[]}));this.count$=this.hotlistsOnIssue$.pipe(C(function(d){return null==d?void 0:d.length}),Cf(0));this.label$=this.count$.pipe(C(function(d){return 0<d?"Hotlists ("+d+")":"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;
this.HOTKEYS=tH};f7.prototype.onClick=function(){Wlc(this.hotlistPicker,this.issue$)};ni.Object.defineProperties(f7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});f7.\u0275fac=function(a){return new (a||f7)(B(FK),B(sK),B(e7))};
f7.\u0275cmp=u({type:f7,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&&(E(0,"button",0),M("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),U(1,"async"),Q(2),U(3,"async"),G());a&2&&(D("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",V(1,3,b.isDisabled$)),A(2),T(" ",V(3,5,b.label$),"\n"))},dependencies:[kI,pC,
ny],encapsulation:2});
var g7=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new sx;this.PANEL_OPTIONS=Xlc};g7.\u0275fac=function(a){return new (a||g7)};
g7.\u0275cmp=u({type:g7,selectors:[["b-insights-graph-menu"]],inputs:{availablePanels:"availablePanels",iconOnly:"iconOnly",buttonClassname:"buttonClassname"},outputs:{openSidebar:"openSidebar"},decls:19,vars:11,consts:[["mat-button","",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"],["mat-button","","aria-label","Open insights types menu",1,"menu-button","gmat-button","square-left",3,"ngClass","disabled","matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-xs"],["xPosition","before"],["panelsMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"]],template:function(a,
b){a&1&&(E(0,"button",0),M("click",function(){b.openSidebar.emit({panel:void 0})}),qd(),E(1,"svg",1)(2,"g",2),H(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),G()(),P(13,P8a,2,1,"ng-container",13),G(),rd(),E(14,"button",14),H(15,"mat-icon",15),G(),E(16,"mat-menu",16,17),P(18,Q8a,2,2,"button",18),G());if(a&2){var c=O(17);Zf("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size);
A(13);D("ngIf",!b.iconOnly);A(1);Zf("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size)("matMenuTriggerFor",c);A(4);D("ngForOf",b.PANEL_OPTIONS)}},dependencies:[ey,fy,gy,pC,oF,mF,nF,yD],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}.menu-button[_ngcontent-%COMP%]{padding-left:4px}.main-button[disabled][_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{filter:grayscale(1);opacity:.5}mat-icon[_ngcontent-%COMP%]{line-height:0}.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 Xlc=[{panel:"deployments",label:"Deployment Status"},{panel:"incidents",label:"Incident Context"}];
var Ylc=new Md("DevopsGraphLogger",{providedIn:"root",factory:function(){return ll}}),Zlc=new Md("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return Pe(function(b){switch(b.nextAddress){case 1:return Qe(b,2),Re(b,UAb(),4);case 4:a=b.yieldResult;Wu(b,3);break;case 2:return Ue(b),b.return();case 3:return Qe(b,5),Re(b,a.loadGraph(),7);case 7:Wu(b,6);break;case 5:return Ue(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});
var $lc=function(a){return["PROD","NIGHTLY"].includes(a)?"production":"autopush"},h7=function(a,b,c,d){var e=this;this.session=a;this.theme=b;this.logger=c;this.graphBuilder=d;this.open$=new W.Subject;this.close$=new W.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()};
h7.prototype.init=function(){var a=this,b,c,d,e,f;return Pe(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():Re(h,a.graphBuilder,2);c=h.yieldResult;d=$lc(a.session.getEnvironmentType());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")});Ve(h)})};var amc=function(a,b){var c;return Pe(function(d){switch(d.nextAddress){case 1:return Qe(d,2),Re(d,a.init(),4);case 4:return null==a.graphService?d.return(new Set):Re(d,a.graphService.getAvailableIssueContexts(Number(b)),6);case 6:return d.return(d.yieldResult);case 5:Wu(d,0);break;case 2:return c=Ue(d),a.logger(c),d.return(new Set)}})};
h7.prototype.openSidebar=function(a,b){var c=this,d;return Pe(function(e){switch(e.nextAddress){case 1:return Re(e,c.init(),2);case 2:if(!c.graphController)return e.return();Qe(e,3);return Re(e,c.graphController.openIssueContext(Number(a),b),5);case 5:Wu(e,0);break;case 3:d=Ue(e),c.logger(d),Ve(e)}})};
h7.prototype.close=function(){var a=this,b;return Pe(function(c){switch(c.nextAddress){case 1:return Re(c,a.init(),2);case 2:if(!a.graphController)return c.return();Qe(c,3);return Re(c,a.graphController.close(),5);case 5:Wu(c,0);break;case 3:b=Ue(c),a.logger(b),Ve(c)}})};h7.\u0275fac=function(a){return new (a||h7)(p(NG),p(oN),p(Ylc),p(Zlc))};h7.\u0275prov=Hc({token:h7,factory:h7.\u0275fac,providedIn:"root"});
var i7=function(a,b,c,d,e,f,h){Z.call(this);var k=this;this.devopsGraph=a;this.paramsService=b;this.analytics=c;this.butterBar=d;this.router=e;this.route=f;this.activeSession=h;this.id$=fL(this.paramsService,"issueId").pipe(rf());this.contexts$=this.id$.pipe(Df(function(q){return Pe(function(t){return null!=k.devopsGraph.getContainer()&&q?t.return(amc(k.devopsGraph,q).then(function(x){return{issueId:q,availablePanels:x}})):t.return(void 0)})}),Af({refCount:!1,bufferSize:1}));this.availablePanels$=
this.contexts$.pipe(C(function(q){return q?q.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(C(function(q){return!!q&&0<q.availablePanels.size&&k.activeSession.isInternalSession()&&null!=k.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(C(function(q){return!!q&&0<q.availablePanels.size&&k.activeSession.isInternalSession()&&null!=k.devopsGraph.getContainer()&&q.availablePanels.has("deployments")}));this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(q){if(q){q=
q.availablePanels;k.track("ingress-view-"+(0<q.size?"enabled":"disabled"));q.has("deployments")&&k.track("ingress-view-deployments-enabled");q.has("incidents")&&k.track("ingress-view-incidents-enabled");var t=k.paramsService.params.showInsights;t&&("default"===t?0<q.size?k.openSidebar():wJ(k.butterBar,"Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):q.has(t)?k.openSidebar(t):wJ(k.butterBar,"Could not open "+t+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else k.devopsGraph.close()}));
this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){bmc(k,null)}))};X(i7,Z);i7.\u0275dir=Z.\u0275dir;i7.prototype.openSidebar=function(a){var b=this,c,d,e,f,h;return Pe(function(k){c=nl(b.contexts$);if(!c)return k.return();d=c;e=d.issueId;f=d.availablePanels;bmc(b,null!=(h=a)?h:"default");("incidents"===a||!a&&1===f.size&&f.has("incidents"))&&to("g3g.incidentSidebarOpened")(!0);return k.return(b.devopsGraph.openSidebar(e,{panel:a}))})};
i7.prototype.track=function(a){Mo(this.analytics,"sidebar",a)};var bmc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};i7.\u0275fac=function(a){return new (a||i7)(p(h7),p(eL),p(BK),p(uJ),p(fl),p(Fk),p(NG))};i7.\u0275prov=Hc({token:i7,factory:i7.\u0275fac,providedIn:"root"});
var j7=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};j7.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};j7.\u0275fac=function(a){return new (a||j7)(B(i7))};
j7.\u0275cmp=u({type:j7,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,S8a,3,3,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.availablePanels$))},dependencies:[gy,g7,ny],encapsulation:2,changeDetection:0});
var cmc=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()}}}},dmc=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},emc=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)}}},fmc=function(a,b){if(b.isInternal&&!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 k7=function(a,b,c,d,e,f,h){var k=this;this.errorHandler=a;this.issueApi=b;this.issueFridge=c;this.issuePermissionService=d;this.snackBar=e;this.dialogRef=f;this.data=h;this.defaultAccessLimitLevel="LIMIT_NONE";this.testUsers=[];this.showImplicitAccessIndicator$=this.issuePermissionService.showImplicitAccessIndicator$;this.issueId=this.data.issueId;this.issue$=this.issueFridge.watch(this.issueId);this.currentAccessLimitLevel$=this.issue$.pipe(C(function(q){var t;return null!=(t=null==q?void 0:
q.snapshot[0].issueAccessLimitLevel)?t:k.defaultAccessLimitLevel}));this.updatedAccessLimitLevel$=new W.BehaviorSubject(this.defaultAccessLimitLevel);this.hasSelectionChanged$=(0,W.combineLatest)([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(C(function(q){var t=n(q);q=t.next().value;t=t.next().value;return q!==t}));this.expandedAccessTooltip$=this.showImplicitAccessIndicator$.pipe(C(function(q){return q?"This component has expanded access enabled. Verifiers and assignees 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.didSave=function(){k.snackBar.open("Successfully saved access level",void 0,{duration:2500});k.issueFridge.poke(k.issueId)}};g=k7.prototype;g.manageComponentRouterLink=function(a){return{path:"/components/"+a+"/manage"}};g.closeDialog=function(){this.dialogRef.close()};g.onEnter=function(){this.onPressSave()};g.onEscape=function(){this.dialogRef.close()};
g.onPressSave=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,cm(this.updatedAccessLimitLevel$.value)).then(function(b){a.didSave(b)},function(b){zJ(a.errorHandler,b)})};g.onPressCancel=function(){this.dialogRef.close()};k7.\u0275fac=function(a){return new (a||k7)(B(xJ),B(bJ),B(FK),B(iL),B(rJ),B(EC),B(HC))};
k7.\u0275cmp=u({type:k7,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&M("keydown.escape",function(){return b.onEscape()})},decls:32,vars:30,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",1,"icon-s","valign-middle",
3,"matTooltip"],[3,"defaultAccessLimitLevel","updatedAccessLimitLevel"],[1,"limit-users-title"],["idForInputBox","Issue Editors","ariaLabel","Issue Editors",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Issue Contributors","ariaLabel","Issue Contributors",3,"users","includeAliases","includeViewAliases"],["idForInputBox","Issue Viewers","ariaLabel","Issue Viewers",3,"users","includeAliases","includeViewAliases"],["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"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"span",1),H(2,"mat-icon",2),G(),E(3,"h1",3),Q(4,"Issue access level"),G()(),H(5,"b-component-breadcrumb-chip",4),E(6,"span",5),U(7,"async"),E(8,"span",6),Q(9,"Expanded access"),G(),H(10,"mat-icon",7),U(11,"async"),G(),E(12,"b-issue-access-limits-dropdown",8),M("updatedAccessLimitLevel",function(e){b.updatedAccessLimitLevel$.next(e)}),U(13,
"async"),G(),E(14,"div")(15,"div",9),Q(16,"Users who can edit, comment, and view"),G(),H(17,"b-multi-user-input",10),G(),E(18,"div")(19,"div",9),Q(20,"Users who can comment and view"),G(),H(21,"b-multi-user-input",11),G(),E(22,"div")(23,"div",9),Q(24,"Users who can only view"),G(),H(25,"b-multi-user-input",12),G(),E(26,"div",13)(27,"button",14),M("click",function(){return b.onPressCancel()}),Q(28," Cancel "),G(),E(29,"button",15),M("click",function(){return b.onPressSave()}),U(30,"async"),Q(31," Save "),
G()());if(a&2){var c,d;A(5);D("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",!0)("popoutLink",b.manageComponentRouterLink)("viewOnly",!0);A(1);Zf("expanded-access-on",V(7,22,b.showImplicitAccessIndicator$));A(4);D("matTooltip",null!==(c=V(11,24,b.expandedAccessTooltip$))&&void 0!==c?c:"");A(2);D("defaultAccessLimitLevel",null!==(d=V(13,26,b.currentAccessLimitLevel$))&&void 0!==d?d:b.defaultAccessLimitLevel);A(5);D("users",b.testUsers)("includeAliases",!1)("includeViewAliases",
!1);Uf("disabled",!0);A(4);D("users",b.testUsers)("includeAliases",!1)("includeViewAliases",!1);Uf("disabled",!0);A(4);D("users",b.testUsers)("includeAliases",!1)("includeViewAliases",!1);Uf("disabled",!0);A(4);D("disabled",!V(30,28,b.hasSelectionChanged$))}},dependencies:[bX,a7,pC,MC,yD,tF,XX,ny],styles:[".issue-limits-dialog-title-txt[_ngcontent-%COMP%]{display:inline;padding:0 20px;font-size:1.4rem;line-height:2rem}.limit-users-title[_ngcontent-%COMP%]{font-weight:400;color:#202124;color:var(--text-default);padding-bottom:5px}.bv2-issue-limits-title[_ngcontent-%COMP%]{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)}.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(--red-50);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(--green-50)}.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}.edit-btn[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%], a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.limits-dropdown[_ngcontent-%COMP%]{padding:20px 0}.expanded-access-txt[_ngcontent-%COMP%], .issue-limits-component-id[_ngcontent-%COMP%]{padding:5px}\n/*# sourceMappingURL=issue_access_limits_dialog.css.map */"]});
var l7=function(a){this.dialog=a};l7.prototype.open=function(a){this.dialog.open(k7,{panelClass:"no-jitter",data:a})};l7.\u0275fac=function(a){return new (a||l7)(p(IC))};l7.\u0275prov=Hc({token:l7,factory:l7.\u0275fac,providedIn:"root"});
var m7=function(a,b,c){Z.call(this);var d=this;this.fridge=a;this.permissionsFridge=b;this.issueLimits=c;this.disabled=!1;this.issueId$=new W.ReplaySubject(1);this.issue$=this.issueId$.pipe(Df(this.fridge.watchOne));this.permissions$=this.issueId$.pipe(Df(function(e){return d.permissionsFridge.watchOne("issues/"+e)}));this.canEdit$=this.permissions$.pipe(C(function(e){return!(null==e||!e.writer)}),Cf(!0))};X(m7,Z);m7.\u0275dir=Z.\u0275dir;
var X8a=function(a){var b;return Pe(function(c){if(1==c.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!nl(a.canEdit$)?c.return():Re(c,(0,W.firstValueFrom)(a.issue$),2);b=c.yieldResult;if(null==b)return c.return();a.issueLimits.open({componentId:b.snapshot[0].componentId,issueId:b.issueId});Ve(c)})};ni.Object.defineProperties(m7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});
m7.\u0275fac=function(a){return new (a||m7)(B(FK),B(WK),B(l7))};
m7.\u0275cmp=u({type:m7,selectors:[["issue-limits-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[Of],decls:4,vars:6,consts:[["mat-stroked-button","","title","Set/View Limits on this issue",1,"gmat-button","small",3,"disabled","click"]],template:function(a,b){a&1&&(E(0,"button",0),M("click",function(){return X8a(b)}),U(1,"async"),Q(2),U(3,"async"),G());a&2&&(D("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!V(1,2,b.canEdit$)),A(2),T(" ",V(3,4,b.canEdit$)?"Set access level":
"View access level"," "))},dependencies:[pC,ny]});
var gmc=function(a){return{isDupe:a}},n7=function(a,b,c,d,e){Z.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 W.ReplaySubject(1);this.issue$=this.issueId$.pipe(Df(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(C(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(Df(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(C(function(h){return!(null==h||!h.writer)}),Cf(!0));this.didChooseCanonical=function(h){return function(k){(k=k[0])&&OHb(f.fridge,k,h).then(function(){f.eventsForIssueFridge.poke(h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open(Xn(h)||"Error with network request","close",{panelClass:"error"})}};
X(n7,Z);n7.\u0275dir=Z.\u0275dir;
var T8a=function(a){var b,c;return Pe(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!nl(a.canEdit$)?d.return():Re(d,(0,W.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,Re(d,(0,W.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?hmc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId,edgeType:"canonical"},a.didChooseCanonical(c.issueId));
Ve(d)})},hmc=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)};ni.Object.defineProperties(n7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});n7.\u0275fac=function(a){return new (a||n7)(B(FK),B(WK),B(GW),B(rJ),B(hK))};
n7.\u0275cmp=u({type:n7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[Of],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,U8a,3,5,"button",0),U(1,"async"));a&2&&D("ngIf",og(3,gmc,V(1,1,b.isDupe$)))},dependencies:[gy,pC,ny]});
var o7=function(){this.label=""};o7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};o7.\u0275fac=function(a){return new (a||o7)};
o7.\u0275cmp=u({type:o7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&zg(mM,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&&(E(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),
P(4,W8a,2,1,"ng-container",3),G()()(),H(5,"mat-icon",4));if(a&2){var c=O(1);A(2);Uf("aria-label",b.label);A(2);D("ngIf",b.content);A(1);D("onedevHovercardTrigger",c)}},dependencies:[gy,my,yD,iM,mM],encapsulation:2});var p7=function(){};p7.\u0275fac=function(a){return new (a||p7)};p7.\u0275mod=Yc({type:p7});p7.\u0275inj=Ic({imports:[vy,uF,TM]});
var q7=function(a,b,c,d,e,f,h,k,q){Z.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 W.ReplaySubject(1);this.HOTKEYS=tH;this.enableIssueAccessLimits=Cq(this.activeSession,"enableIssueAccessLimits");this.issue$=this.issueId$.pipe(Df(this.issueFridge.watch));this.issueDerivedProperties$=this.issue$.pipe(C(function(t){var x,y,F,
K,J,R,S;return{modifiedTimeMilliseconds:null!=(null==t?void 0:null==(x=t.aggregatedData)?void 0:x.modifiedTimeMicros)?t.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:null!=(R=null==t?void 0:null==(y=t.userData)?void 0:y.voted)?R:!1,voteCount:null!=(S=null==t?void 0:null==(F=t.aggregatedData)?void 0:F.voteCount)?S:0,notificationSubscription:cm(null==t?void 0:null==(K=t.userData)?void 0:K.notificationSubscription),retentionState:null==t?void 0:null==(J=t.aggregatedData)?void 0:J.retentionState}}));
this.menuItems$=imc(this);this.state$=(0,W.combineLatest)([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(C(function(t){var x=n(t);t=x.next().value;var y=x.next().value;x=x.next().value;return Object.assign({},{issueId:t},y,{menuItems:x})}))};X(q7,Z);q7.\u0275dir=Z.\u0275dir;g=q7.prototype;
g.updateSubscription=function(a){var b=this,c;return Pe(function(d){if(1==d.nextAddress)return(c=nl(b.issueId$))?Re(d,b.editIssueService.updateSubscription(c,a),2):d.return();Mo(b.analytics,Aq.EDIT_ISSUE,"updateSubscription",a);Ve(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 Pe(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():Re(d,(0,W.firstValueFrom)(CC(b.matDialogService.open(J2,{maxWidth:560}))),2):(c=d.yieldResult)?Re(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return Pe(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():Re(d,(0,W.firstValueFrom)(CC(b.matDialogService.open(F2,{maxWidth:560}))),2):(c=d.yieldResult)?Re(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return Pe(function(d){return 1==d.nextAddress?Re(d,(0,W.firstValueFrom)(CC(b.matDialogService.open(I2,{maxWidth:560}))),2):(c=d.yieldResult)?Re(d,MOb(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var imc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(i0a(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c=nl(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=nl(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=nl(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=nl(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};
return(0,W.combineLatest)([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(C(function(c){var d=n(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:Iva(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:Gva(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:Lva(c),retentionState:Ova(c)};return[emc(b,d),fmc(b,d),dmc(b,d),cmc(b,d)].filter(fm)}))};
ni.Object.defineProperties(q7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});q7.\u0275fac=function(a){return new (a||q7)(B(FK),B(iL),B(NG),B(eJ),B(Q5),B(RN),B(HQ),B(IC),B(BK))};
q7.\u0275cmp=u({type:q7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&zg(o7,5);if(a&2){var c;yg(c=Bg())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[Of],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueId","voteCount","upvoted"],[3,"issueId"],[3,"issueId","hotkey","onHotkey"],["smartDupeBtn",""],[3,"issueId","hotkey","onHotkey",4,"ngIf"],["matTooltip","Notification menu","aria-label","Notification menu",3,"subscription","issueId","iconOnly","subscriptionChange","showNotificationSettings"],
["buttonClassname","small",3,"iconOnly"],["mat-icon-button","","aria-label","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",""],["issueLimitsBtn",""],["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,c9a,16,14,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.state$))},dependencies:[uW,fy,gy,o7,kI,j7,pC,yD,oF,mF,nF,tF,eZ,MX,LX,m7,n7,f7,ny],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 jmc=["issueTitleEl"],kmc=["issueTitleInputEl"],f9a=function(a){return{"width.px":a}},r7=function(){this.disabled=!1;this.updateTitle=new sx;this.isEditMode=!1;this.editModeWidth=0};r7.prototype.ngDoCheck=function(){lmc(this)};
var h9a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode&&setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0)},mmc=function(a,b){a.isEditMode=!1;lmc(a);if(b)a.updateTitle.emit(b.trim());else{var c;b=null==(c=a.issueTitleEl)?void 0:c.nativeElement.textContent;a.updateTitle.emit(b.trim())}},e9a=function(a,b){if(b)"Enter"===b.key?mmc(a,b.target.value):("Escape"===b.key||"Esc"===b.key)&&h9a(a);else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;mmc(a,b)}},
lmc=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};ni.Object.defineProperties(r7.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=null!=a?a:void 0;this.titleTruncated=Uo(a,300);this.isLongTitle=null==a?!1:300<=a.length}}});r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=u({type:r7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(zg(jmc,5),zg(kmc,5));if(a&2){var c;yg(c=Bg())&&(b.issueTitleEl=c.first);yg(c=Bg())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{updateTitle:"updateTitle"},decls:3,vars:3,consts:[["class","heading-m",4,"ngIf"],[3,"ngStyle",4,"ngIf"],["mat-icon-button","","class","small","matTooltip","Edit issue title","aria-label","Edit issue title",3,"disabled","click",
4,"ngIf"],[1,"heading-m"],["issueTitleEl",""],[3,"ngStyle"],["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"]],template:function(a,b){a&1&&(P(0,d9a,3,2,"h3",0),P(1,g9a,3,4,"mat-form-field",1),P(2,i9a,2,1,"button",2));a&2&&(D("ngIf",!b.isEditMode),A(1),D("ngIf",b.isEditMode),A(1),
D("ngIf",b.hasAclToEdit))},dependencies:[gy,ly,pC,yD,tF,XC,$C],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}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}"]});
var s7=function(a,b,c,d,e,f,h,k,q){Z.call(this);var t=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 W.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(rf(),Df(function(x){return x?x.changed$:(0,W.of)(null)}));this.issueIds$=this.searchResults$.pipe(C(function(x){var y;return null!=(y=null==x?
void 0:x.issues.map(function(F){return F.id}).map(Go))?y:[]}),rf(Ri));this.issues$=this.issueIds$.pipe(Df(function(x){return(0,W.combineLatest)(x.map(function(y){return t.issueFridge.watch(y,{trustUncertainMemory:!0})}))}),Df(function(x){return(0,W.combineLatest)(x.map(function(y){return t.componentFridge.watch(String(null==y?void 0:y.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(C(function(F){return{issue:y,component:F}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(C(function(x){var y;return null!=(y=null==x?void 0:x.totalText)?y:""}));this.backNavigationLabel$=this.searchResults$.pipe(C(function(x){return(null==x?0:x.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,W.combineLatest)([this.searchResults$,this.issueId$]).pipe(C(function(x){var y=n(x);x=y.next().value;y=y.next().value;var F;return null!=(F=y&&(null==x?void 0:sI(x,y)))?F:-1}));this.hasPreviousIssue$=(0,W.combineLatest)([this.searchResults$,this.issueId$]).pipe(C(function(x){var y=
n(x);x=y.next().value;y=y.next().value;var F;if(F=y)null==x?x=0:(y=sI(x,y),x=null==y||-1===y?!1:y>x.startIndex||1<x.params.page),F=x;return!!F}));this.hasNextIssue$=(0,W.combineLatest)([this.searchResults$,this.issueId$]).pipe(C(function(x){var y=n(x);x=y.next().value;y=y.next().value;var F;if(F=y)null==x?x=0:(y=sI(x,y),x=null==y||-1===y?!1:y<x.endIndex||x.params.page<x.numPages),F=x;return!!F}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){nmc(t)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(x){t.issueId=
x;nmc(t)}));this.subscriptions.add(this.issues$.subscribe(function(x){var y=t.internalSearchResults$.value;y&&kEb(y,x.filter(function(F){var K=F.component;return F.issue&&K}))}))};X(s7,Z);s7.\u0275dir=Z.\u0275dir;
var omc=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)},m9a=function(a){var b=nl(a.hasNextIssue$),c=nl(a.issueIndex$);b&&c&&pmc(a,c+1)},l9a=function(a){var b=nl(a.hasPreviousIssue$),c=nl(a.issueIndex$);b&&c&&pmc(a,c-1)},nmc=function(a){var b,c,d;Pe(function(e){if(1==e.nextAddress)return Re(e,MFb(a.issuePagination).catch(j9a),2);b=e.yieldResult;
a.internalSearchResults$.next(null!=(c=b)?c:null);if(!b||!a.issueId)return e.return();d=sI(b,a.issueId);return-1===d?e.jumpTo(0):Re(e,NFb(a.issuePagination,d).catch(j9a),0)})},pmc=function(a,b){NFb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){wJ(a.butterBar,"Can't find issue id for index '"+b+"'")})};s7.\u0275fac=function(a){return new (a||s7)(p(gL),p(iJ),p(FK),p(ZJ),p(AQ),p(oI),p(pI),p(DK),p(uJ))};s7.\u0275prov=Hc({token:s7,factory:s7.\u0275fac,providedIn:"root"});
var n9a=function(a){return{"invisible zero-width":a}},t7=function(a){this.currentSearchResults=a;this.HOTKEYS=tH};t7.\u0275fac=function(a){return new (a||t7)(B(s7))};
t7.\u0275cmp=u({type:t7,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,o9a,9,12,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.currentSearchResults.issueIndex$))},dependencies:[ey,gy,kI,pC,yD,tF,ny],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}\n/*# sourceMappingURL=pagination_one_issue.css.map */"],
changeDetection:0});
var u7=function(a){this.documentationLinks=a};u7.\u0275fac=function(a){return new (a||u7)(B(QN))};
u7.\u0275cmp=u({type:u7,selectors:[["b-access-limits-chip"]],decls:11,vars:2,consts:[["role","button",1,"chippy","rounded","nowrap","access-limited",3,"onedevHovercardTrigger"],["svgIcon","encrypted_24px",1,"icon-s","valign-middle"],["card","onedevHovercard"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(E(0,"button",0),H(1,"mat-icon",1),Q(2," Limited Access\n"),G(),E(3,"onedev-hovercard",null,2)(5,"div",3)(6,
"div",4)(7,"span",5),Q(8," Issue access is limited. "),E(9,"a",6),Q(10," Learn more"),G()()()()());if(a&2){var c=O(4);D("onedevHovercardTrigger",c);A(9);D("href",b.documentationLinks.getIssueAccessLimit(),le)}},dependencies:[yD,iM,mM],styles:[".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}.bubble[_ngcontent-%COMP%]{width:300px}"],changeDetection:0});
var v7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(C(function(b){return null==b?void 0:b.issue}),hf(fm));this.retentionState$=this.issue$.pipe(C(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(C(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),hf(fm));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),hf(fm));this.issueAccessLimitLevel$=this.issue$.pipe(C(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.state$=(0,W.combineLatest)([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.accessLevel$]).pipe(C(function(b){var c=n(b);b=c.next().value;var d=c.next().value,e=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:jNa(b),isShowingPublicPartner:"INTERNAL"!==c,modifiedTime:e,accessLevel:c}}))};v7.\u0275fac=function(a){return new (a||v7)(B(gL))};
v7.\u0275cmp=u({type:v7,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,"retentionState","compactMode","modifiedTime",4,"ngIf"],[3,"accessLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(P(0,t9a,2,1,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.state$))},dependencies:[u7,gy,sR,NX,ny],encapsulation:2});
var w7=function(a){this.teamsService=a;this.onTeamLoaded=new W.ReplaySubject(1);this.teamName$=new W.BehaviorSubject("");this.isTeamLoaded=!1};w7.prototype.ngOnChanges=function(a){var b=this;a.teamId&&null!==this.teamId&&(0===this.teamId?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):this.teamsService.getTeam(String(this.teamId)).pipe(sf(),C(function(c){return c.getName()})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
w7.\u0275fac=function(a){return new (a||w7)(B($K))};
w7.\u0275cmp=u({type:w7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[ed],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&&(E(0,"b-async-data-placeholder",0),P(1,u9a,4,4,"div",1),U(2,
"async"),G(),E(3,"onedev-hovercard",null,2),I(5),H(6,"b-team-card",3),L(),G());if(a&2){var c;D("isReady",b.isTeamLoaded);A(1);D("ngIf",V(2,4,b.teamName$));A(5);D("componentId",null==b.componentId?null:b.componentId.toString())("teamId",null!==(c=null==b.teamId?null:b.teamId.toString())&&void 0!==c?c:"0")}},dependencies:[gy,yD,g1,iM,mM,RT,ny],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});
var x7=function(a,b,c,d,e,f,h){Z.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 W.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=kjc;this.blockedIdsToUrlQuery=function(q){if(!(2>q.length))return{q:"blockingid:"+k.issueId}};this.HOTKEYS=tH;this.issue$=
this.issueId$.pipe(Df(this.issueFridge.watch));this.issueTitle$=this.issue$.pipe(C(function(q){return null==q?void 0:q.snapshot[0].title}));this.starred$=this.issue$.pipe(C(function(q){var t;return cm(null==q?void 0:null==(t=q.userData)?void 0:t.starred)}));this.componentId$=this.issue$.pipe(C(function(q){return cm(null==q?void 0:q.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(C(function(q){return cm(null==q?void 0:q.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(C(function(q){return!!(q&&
0<q.size)}));this.teamId$=this.issue$.pipe(C(function(q){var t;return cm(null==q?void 0:null==(t=q.aggregatedData)?void 0:t.teamId)}));this.blockedByids$=this.issue$.pipe(C(function(q){var t;return null!=(t=null==q?void 0:q.snapshot[0].blockedByIssueId)?t:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(Df(this.issueFridge.watchSet),C(function(q){return q.filter(jo)}),C(function(q){return q.length}));ml(this.issuesBlockedByCount$.pipe(C(F9a),Ef(this.destroyed$)),"Blocked");this.blockedByids$.pipe(C(G9a));
this.blockedByids$.pipe(C(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(C(function(q){return(null==q?void 0:q.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(C(function(q){return k.computeStatusCssClass(q)}));this.prettyStatus$=this.status$.pipe(hf(fm),C(function(q){return xl[q]}));this.statusIsFeatured$=this.status$.pipe(C(function(q){return!!KAb[q]}));this.toggleStar=function(){var q=
!!nl(k.starred$);k.starToggleDisabled=!0;LHb(k.issueFridge,k.issueId,!q).pipe(vf(),Ef(k.destroyed$)).subscribe(function(){k.starToggleDisabled=!1})};this.toggleStarDebounced=Yv(this.toggleStar,1E3)};X(x7,Z);x7.\u0275dir=Z.\u0275dir;var qmc=function(a,b){a.editTitleDisabled=!0;MHb(a.issueFridge,a.issueId,b).pipe(Ef(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;a.eventsForIssueFridge.poke(a.issueId)})};
x7.prototype.computeStatusCssClass=function(a){return null===a||void 0===a?"":"status-"+Ym[a]};x7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};ni.Object.defineProperties(x7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});x7.\u0275fac=function(a){return new (a||x7)(B(FK),B(iL),B(fl),B(DK),B(s7),B(LJ),B(hK))};
x7.\u0275cmp=u({type:x7,selectors:[["issue-header"]],inputs:{issueId:"issueId"},features:[Of],decls:40,vars:46,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"],[3,"title","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","tracker","componentId","issueTitle","isExternalIssue"],[3,"ancestors","issueId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","tracker",
"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&&(E(0,"div",0),U(1,"async"),U(2,"async"),U(3,"async"),H(4,"aside",1),U(5,"async"),U(6,"async"),E(7,"div",2)(8,"div",3),P(9,w9a,2,1,"ng-container",4),U(10,"async"),P(11,z9a,4,7,"ng-template",null,5,Hg),P(13,
B9a,4,7,"ng-template",null,6,Hg),G(),E(15,"div",7),H(16,"b-pagination-one-issue"),G()(),E(17,"div",8)(18,"div",9)(19,"div",10)(20,"button",11),M("onHotkey",function(){return omc(b.currentSearchResults)})("click",function(){return omc(b.currentSearchResults)}),U(21,"async"),U(22,"async"),H(23,"mat-icon",12),G(),E(24,"button",13),M("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),H(25,"mat-icon",14),G(),E(26,"b-star-toggle",15),M("starClicked",function(){return b.toggleStar()})("onHotkey",
function(){return b.toggleStarDebounced()}),U(27,"async"),G()(),H(28,"issue-chip-indicators"),G(),E(29,"div",16)(30,"issue-title",17),M("updateTitle",function(e){return qmc(b,e)}),U(31,"async"),U(32,"async"),G(),P(33,D9a,3,2,"div",18),U(34,"async"),E(35,"onedev-hovercard",null,19),P(37,E9a,4,7,"ng-container",20),G(),H(38,"issue-actions",21)(39,"issue-actions",22),G()()());if(a&2){var c=O(14),d;Zf("overline",V(1,22,b.statusIsFeatured$))("color-field",V(2,24,b.statusIsFeatured$));ig("ngClass",V(3,26,
b.statusCssClass$));A(4);jg("title","[",V(5,28,b.prettyStatus$),"] ",V(6,30,b.issueTitle$),"");A(5);D("ngIf",V(10,32,b.hasAncestors$))("ngIfElse",c);A(11);D("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=V(21,34,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");Uf("aria-label",V(22,36,b.currentSearchResults.backNavigationLabel$));A(4);D("hotkey",b.HOTKEYS.REFRESH_ISSUE);A(2);D("starred",V(27,38,b.starred$))("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);A(4);
D("title",V(31,40,b.issueTitle$))("disabled",b.editTitleDisabled)("hasAclToEdit",V(32,42,b.issuePermissionService.hasAclToEdit$));A(3);D("ngIf",V(34,44,b.issuesBlockedByCount$));A(5);D("issueId",b.issueId);A(1);D("issueId",b.issueId)}},dependencies:[h6,ey,gy,my,a7,kI,iM,jM,mM,kM,P3,r7,g6,pC,yD,tF,dM,w7,t7,q7,v7,ny],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 y7=function(a,b){var c=this;this.currentTracker=a;this.trackerFridge=b;this.issueTrackerId$=new W.BehaviorSubject("");this.showTrackerBanner$=(0,W.combineLatest)([this.issueTrackerId$,this.currentTracker.trackerId$]).pipe(C(function(d){var e=n(d);d=e.next().value;e=e.next().value;return c.currentTracker.enableTrackers&&!!Ho(e)&&!Ho(d)}));this.tracker$=this.issueTrackerId$.pipe(Df(function(d){return!c.currentTracker.enableTrackers||Ho(d)?(0,W.of)(void 0):c.trackerFridge.watch(d)}));this.trackerRedirectUrl$=
this.tracker$.pipe(C(function(d){return MJ(c.currentTracker,String(c.issueId),d)}))};ni.Object.defineProperties(y7.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(null!=a?a:"")}}});y7.\u0275fac=function(a){return new (a||y7)(B(LJ),B(KJ))};
y7.\u0275cmp=u({type:y7,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,H9a,7,6,"div",0),U(1,"async"),U(2,"async"));a&2&&D("ngIf",V(1,1,b.showTrackerBanner$)&&V(2,3,b.tracker$))},dependencies:[gy,qC,ny],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 z7=function(a,b,c){var d=this;this.currentTracker=a;this.trackerFridge=b;this.activeSession=c;this.trackerId$=new W.BehaviorSubject("");this.tracker$=this.trackerId$.pipe(Df(function(e){return Ho(e)?(0,W.of)(void 0):d.trackerFridge.watch(e)}));this.trackerName$=this.tracker$.pipe(C(function(e){return e?e.name:d.activeSession.getAppName()}));this.currentTrackerLogo$=this.currentTracker.tracker$.pipe(C(function(e){return d.getLogoUrl(e)}));this.trackerLogo$=this.tracker$.pipe(C(function(e){return d.getLogoUrl(e)}));
this.trackerRedirectUrl$=this.tracker$.pipe(C(function(e){var f="";d.issue&&(f=String(d.issueId));d.component&&(f="components/"+d.componentId);return e?MJ(d.currentTracker,f,e):MJ(d.currentTracker,f)}))};z7.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:""};
z7.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId||"");a.component&&this.component&&this.trackerId$.next(this.component.trackerId||"")};
ni.Object.defineProperties(z7.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 QAb[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 xl[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}}});z7.\u0275fac=function(a){return new (a||z7)(B(LJ),B(KJ),B(NG))};
z7.\u0275cmp=u({type:z7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},features:[ed],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,J9a,15,13,"div",0);a&2&&D("ngIf",b.showResourceContainer)},dependencies:[gy,qC,yD,tF,ny],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 rmc=[[["",8,"value-action"]]],A7=function(a,b){Z.call(this);var c=this;this.jspbPrincipalTypes=b;this.readonly=!1;this.collaborators=[];this.collaboratorsUsers=[];this.listFieldDisabled=!1;this.teamId="";this.isCollapsible=!1;this.valuesChange=new sx;this.ListFieldType=iWb;this.userPrincipalValidator=function(d){var e,f,h;return Pe(function(k){if(1==k.nextAddress){if(!d)return k.return("This field is required");e=d.split(",").map(function(q){return q.trim()}).filter(Boolean);return Re(k,PBb(c.jspbPrincipalTypes,
e,!1),2)}f=k.yieldResult;h=e.find(function(q){var t;return 2!==(null==(t=f[q])?void 0:qj(t,1,0))});return k.return(h?"You can only add users to collaborators.":"")})};this.enableCollaborators=Cq(a,"enableCollaborators")};X(A7,Z);A7.\u0275dir=Z.\u0275dir;A7.\u0275fac=function(a){return new (a||A7)(B(NG),B(pH))};
A7.\u0275cmp=u({type:A7,selectors:[["b-collaborators-field"]],inputs:{readonly:"readonly",collaborators:"collaborators",collaboratorsUsers:"collaboratorsUsers",listFieldDisabled:"listFieldDisabled",teamId:"teamId",isCollapsible:"isCollapsible"},outputs:{valuesChange:"valuesChange"},features:[mg([qH]),Of],ngContentSelectors:[".value-action"],decls:1,vars:1,consts:[[4,"ngIf"],[1,"full-width",3,"defaultLineCount","readonly","additionAllowed","title","type","isUser","values","users","inputValidator",
"listFieldDisabled","teamId","isExpanded","collapsiblePanelTitle","isCollapsible","iconName","tooltip","valuesChange"],[1,"value-action"]],template:function(a,b){a&1&&(fg(rmc),P(0,K9a,4,16,"ng-container",0));a&2&&D("ngIf",b.enableCollaborators||0<b.collaborators.length)},dependencies:[fU,gy],encapsulation:2});var B7=function(){};B7.\u0275fac=function(a){return new (a||B7)};B7.\u0275mod=Yc({type:B7});B7.\u0275inj=Ic({imports:[gU,vy,uG]});
var C7=function(){var a=this;this.pressed=new sx;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"}};C7.\u0275fac=function(a){return new (a||C7)};
C7.\u0275cmp=u({type:C7,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&&(E(0,"button",0),M("click",function(){return b.pressed.emit()}),Q(1,"Insights "),qd(),E(2,"svg",1)(3,"g",2),H(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),G()()());a&2&&(D("title",b.getTooltip())("disabled",b.disabled),Uf("aria-label",b.getTooltip()))},dependencies:[pC],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}\n/*# sourceMappingURL=insights_graph_btn.css.map */"],
changeDetection:0});
var smc=new Md("PeoplekitClientConfig"),tmc=function(a){this.matcher=a};tmc.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};tmc.prototype.reset=function(){};
var vmc=function(a){var b=new umc;this.apiEnv_=a;this.experimentsConfig_=b};
var umc=function(){};umc.prototype.getProfileId=function(){return""};
var D7=function(a,b){null!=b||(b=Rc(Mf));var c=new z$b;a.peopleApiEnv&&c.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(c.customAuthHeaders_=a.customAuthHeaders);a.profileId&&c.getExperiments().setProfileId(a.profileId);a.dynamicDataProviders&&A$b(c,u$b(a.dynamicDataProviders));b=b.runOutsideAngular(function(){var d=a.peopleStoreClient.create(c);d.warmUpCache();return{peopleStore:d,environmentConfig:new vmc(c.getPeopleApiEnv())}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};
D7.\u0275fac=function(a){return new (a||D7)(p(smc),p(Mf))};D7.\u0275prov=Hc({token:D7,factory:D7.\u0275fac});
var E7=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 sx;this.sessionOptions=(new Xr).setFilter(wmc);this.inputSearchDelay=200;this.destroyed$=new W.ReplaySubject(1);this.inputChanged$=new W.ReplaySubject(1)};E7.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
E7.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);L9a(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=kxa(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});W7b(this.autocomplete,function(c){a.selectionChange.emit(c)});this.inputChanged$.pipe(of(this.inputSearchDelay)).subscribe(function(){a.search()})};E7.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
E7.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};E7.\u0275fac=function(a){return new (a||E7)(B(smc),B(li),B(D7),B(Rd),B(Mf),B(tw))};
E7.\u0275dir=u({type:E7,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&M("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 wmc=BWa(1);
var xmc=["popOver"],ymc=["inputBox"],F7=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},zmc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new sx;this.inputValue="";this.sessionOptions=Amc};F7.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
F7.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},zmc,this.defaultAutocompleteConfig,this.autocompleteConfig))};F7.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};F7.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};F7.\u0275fac=function(a){return new (a||F7)(B(Bmc,8))};
F7.\u0275cmp=u({type:F7,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:[ed],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&&(E(0,"onedev-pop-over-edit-panel",0,1),M("closedWithAction",function(d){return b.onPopOverClose(d)}),G(),P(2,M9a,2,3,"ng-template",null,2,Hg));if(a&2){var c=O(3);D("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[fh,Ky,Ry,G3,E7],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 Bmc=new Md("user-picker-autocomplete-config"),zmc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},Amc=(new Xr).setFilter(Xs(BWa(1),new tmc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));
var O9a=function(a){return{$implicit:a}},Cmc=0,G7=function(){this.val="";this.disabled=!1;this.emailChange=new sx;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+Cmc;this.onChange=function(){};this.onTouched=function(){};Cmc++};X(G7,xO);g=G7.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};
ni.Object.defineProperties(G7.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});G7.\u0275fac=function(a){return new (a||G7)};
G7.\u0275cmp=u({type:G7,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&zg(F7,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:[mg([{provide:xO,useExisting:Fc(function(){return G7}),multi:!0},{provide:xy,useExisting:Fc(function(){return G7}),multi:!0}]),
Of],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&&(E(0,"button",0,1),M("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),P(2,P9a,2,4,"ng-container",2),P(3,Q9a,1,1,"ng-template",null,3,Hg),P(5,R9a,2,0,"svg",4),G(),E(6,"onedev-user-picker-panel",5),M("closed",function(e){return b.onPopOverClose(e)}),G());if(a&2){var c=O(1),d=O(4);Zf("active",b.isActive());Uf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());A(2);D("ngIf",b.selectedUserTemplate)("ngIfElse",
d);A(3);D("ngIf",!b.disabled);A(1);D("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[gy,my,F7],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 Dmc=["picker"],H7=function(){this.disabled=!1;this.emailChange=new sx;this.userEmail=""};X(H7,xO);H7.prototype.openPopOver=function(){this.picker.openPopOver()};H7.prototype.isActive=function(){return this.picker.isActive()};ni.Object.defineProperties(H7.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=Ul(a)||""}}});H7.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(H7)))(b||H7)}}();
H7.\u0275cmp=u({type:H7,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&zg(Dmc,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:[mg([{provide:xO,useExisting:Fc(function(){return H7}),multi:!0}]),Of],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&&(E(0,"onedev-user-picker",0,1),M("emailChange",function(d){return b.emailChange.emit(d)}),G(),P(2,T9a,1,1,"ng-template",null,2,Hg));if(a&2){var c=O(3);D("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[gy,fR,G7],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}\n/*# sourceMappingURL=user_picker.css.map */"]});
var mu=function(a){Y.call(this,a,-1,Emc)};X(mu,Y);g=mu.prototype;g.getWorkspaceId=function(){return Aj(this,1)};g.getName=function(){return Pi(this,2)};g.setName=function(a){return Hb(this,2,a)};g.getTimeZone=function(){return Ub(this,xF,8)};g.setTimeZone=function(a){return Vb(this,8,a)};g.hasTimeZone=function(){return vj(this,xF,8)};g.getMembersList=function(){return Nb(this,Fmc,9)};g.getUpdateTime=function(){return Ub(this,Cj,12)};g.setUpdateTime=function(a){Vb(this,12,a)};
g.getBookmarkGroupId=function(){return Aj(this,14)};g.setBookmarkGroupId=function(a){Fb(this,14,a,0)};g.getTeamId=function(){return Pi(this,20)};g.setTeamId=function(a){return Hb(this,20,a)};var Fmc=function(a){Y.call(this,a)};X(Fmc,Y);Fmc.prototype.getEmail=function(){return Pi(this,1)};Fmc.prototype.setEmail=function(a){return Hb(this,1,a)};var Emc=[5,9,13,15,17,18];
var Gmc=function(a){Y.call(this,a)};X(Gmc,Y);Gmc.prototype.getWorkspaceId=function(){return Aj(this,1)};
var Hmc=new DF("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",Gmc,mu,function(a){return a.serialize()},function(a){return Oo(mu,a)});
var Imc=function(a){Y.call(this,a)};X(Imc,Y);var Kmc=function(a,b){return um(a,1,Jmc,b)},Jmc=[1,2];
var Mmc=function(a){Y.call(this,a,-1,Lmc)};X(Mmc,Y);var Lmc=[1];
var Nmc=new DF("/google.corp.devtools.worktracker.v1.WorkspaceService/List",Imc,Mmc,function(a){return a.serialize()},function(a){return Oo(Mmc,a)});
var Omc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new lG(b);this.hostname_=void 0==a?a:a.replace(/\/+$/,"")};Omc.prototype.get=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},Hmc)};Omc.prototype.list=function(a,b){return mG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},Nmc)};
var Pmc={},Qmc;Pmc.Authorization=null!=(Qmc=up([]))?Qmc:"";Pmc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";Pmc["X-Goog-AuthUser"]="0";
var I7=function(a,b){this.activeSession=a;this.clientFactory=b;this.environmentType=this.activeSession.getEnvironmentType();a:switch(this.environmentType){case "NIGHTLY":a="https://staging-worktracker-googleapis.corp.google.com";break a;case "PROD":a="https://worktracker-googleapis.corp.google.com";break a;default:a="https://autopush-worktracker-googleapis.corp.google.com"}this.client=this.clientFactory.create(a)},Rmc=function(a,b){return a.activeSession.isExternalSession()?(0,W.of)([]):(0,W.from)(a.client.list(Kmc(new Imc,
"b/"+b),Pmc)).pipe(C(U9a(b)),nf(function(){return(0,W.of)([])}))};I7.\u0275fac=function(a){return new (a||I7)(p(NG),p(J7))};I7.\u0275prov=Hc({token:I7,factory:I7.\u0275fac,providedIn:"root"});var J7=function(){};J7.prototype.create=function(a){return new Omc(a)};J7.\u0275fac=function(a){return new (a||J7)};J7.\u0275prov=Hc({token:J7,factory:J7.\u0275fac,providedIn:"root"});
var X9a=function(a){return[a]},$9a=function(){return[]},X$a=function(a){return{$implicit:a}},K7=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){var J=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=t;this.changelistApi=x;this.issueMarkAsDuplicateDialogService=y;this.analytics=F;this.issueInsightsSidebarService=K;this.issueId$=
new W.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(rf());this.issue$=this.distinctIssueId$.pipe(Df(function(R){return J.editIssueService.editableIssue$(R)}));this.enablePeoplekitAc=Cq(this.activeSession,"enablePeoplekitUserAc");this.enableCollaborators=Cq(this.activeSession,"enableCollaborators");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.showSloStatus=this.sessionIsInternal;this.showChangelists=!this.sessionIsExternal;
this.defaultAssigneeQuickActionEnabled=this.sessionIsInternal;this.HOTKEYS=tH;this.trackCustomField=function(R,S){return"{"+S.componentId+", "+S.customFieldId+"}"};this.FieldType=pVb;this.ListFieldType=iWb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isCurrentUserCollaborator$=this.issuePermissionService.isCurrentUserCollaborator$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.showImplicitAccessIndicator$=
this.issuePermissionService.showImplicitAccessIndicator$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(C(function(R){return!J.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(C(P_a));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.issueFields$=this.distinctIssueId$.pipe(C(function(R){return J.editIssueService.issueFields(R)}),Af({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=
this.issueFields$.pipe(Df(function(R){return R.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(Df(function(R){return R.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(Df(function(R){return R.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(Df(function(R){return R.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(Df(function(R){return R.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(Df(function(R){return R.isSloStatusPrimary$}));
this.hiddenCustomFields$=this.issueFields$.pipe(Df(function(R){return R.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(Df(function(R){return R.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(C(function(R){return J.editIssueService.issueQuickActions(R)}),Af({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(Df(function(R){return R.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(Df(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,W.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(C(function(R){var S=n(R);R=S.next().value;S=S.next().value;return{teamId:S?String(S):"0",componentId:R?String(R):"0"}}));this.isTeamWarningDismissed$=(0,W.combineLatest)([this.issue$,
this.userPreferencesManager.preferences$]).pipe(C(function(R){R=n(R);var S=R.next().value,aa,ba;return null==(aa=R.next().value.teamWarningPreferences)?void 0:null==(ba=aa.componentTeamWarnings)?void 0:ba.some(function(ka){return ka.componentId===S.componentId})}));this.shouldDisplayTeamSuggestions$=(0,W.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(C(function(R){var S=n(R);R=S.next().value;var aa=S.next().value;S=S.next().value;
return Cq(J.activeSession,"enableTeamSuggestions")&&R&&!aa&&("MISSING"===S||"DELETED"===S)}));this.statusChoices$=this.canonicalIssueId$.pipe(C(function(R){return[].concat(r($Db.filter(function(S){return"DUPLICATE"!==S.value})),[{value:"DUPLICATE",displayText:R?"Duplicate of "+R:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(Df(function(R){return Rmc(J.workspaceService,R)}),Af({refCount:!0,bufferSize:1}));this.pendingChangelists$=KHb(this.refreshMonitor,this.distinctIssueId$).pipe(Df(function(R){return J.changelistApi.getPendingChangelistsForIssue(R)}),
C(function(R){return R.changelistNumbers}),C(function(R){return{cls:R,hasError:!1}}),nf(function(){return(0,W.of)({cls:[],hasError:!0})}),Af({refCount:!0,bufferSize:1}));this.reconcileView={assignee:function(R){var S,aa;R.value=null!=(aa=null==(S=nl(J.issue$))?void 0:S.assignee)?aa:""},reporter:function(R){var S,aa;R.value=null!=(aa=null==(S=nl(J.issue$))?void 0:S.reporter)?aa:""},verifier:function(R){var S,aa;R.value=null!=(aa=null==(S=nl(J.issue$))?void 0:S.verifier)?aa:""},ccs:function(R){var S,
aa;R.values=null!=(aa=null==(S=nl(J.issue$))?void 0:S.cc)?aa:[]},collaborators:function(R){var S,aa;R.collaborators=null!=(aa=null==(S=nl(J.issue$))?void 0:S.collaborators)?aa:[]}}};K7.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var J$a=function(a){var b=a.issuePermissionService.isCurrentUserCCd();Mo(a.analytics,Aq.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!hL(a.issuePermissionService,e)}):[].concat(r(c.cc),[a.activeSession.getUserEmail()]);return KOb(a.editIssueService,a.issueId,d)},F$a=function(a){var b=a.issuePermissionService.isCurrentUserCollaborator();Mo(a.analytics,Aq.EDIT_ISSUE,"toggleCollaborators (appbar)",(!b).toString());
var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.collaborators.filter(function(e){return!hL(a.issuePermissionService,e)}):[].concat(r(c.collaborators),[a.activeSession.getUserEmail()]);return LOb(a.editIssueService,a.issueId,d)},pu=function(a,b){J$a(a);b.stopPropagation();b.preventDefault()},t$a=function(a,b,c){return ou(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},c$a=function(a,b,c){return e$a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},
z$a=function(a,b,c){return B$a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},M$a=function(a,b,c){return KOb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},L$a=function(a,b,c){return LOb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.collaborators(b)})},nu=function(a,b){Mo(a.analytics,Aq.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return IOb(a.editIssueService,a.issueId,b)},Kab=function(a,b){var c;
return Pe(function(d){return(c=HAb(b))?"DUPLICATE"===c?d.return(Olc(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(HOb(a.editIssueService,a.issueId,c)):d.return()})};K7.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(C(function(c){return b.editIssueService.savingState(c)}),Df(function(c){return ju(c.propertiesBeingSaved,Go(String(a)))}))};
K7.\u0275fac=function(a){return new (a||K7)(B(NG),B(HQ),B(FK),B(iL),B(gL),B(VG),B(DK),B(aI),B(QN),B(I7),B(NT),B($6),B(BK),B(i7))};
K7.\u0275cmp=u({type:K7,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[ed],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,"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","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","collaborators","collaboratorsUsers","listFieldDisabled","teamId","isCollapsible","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"],["title","CC","iconName","notifications_none_24px",
1,"full-width",3,"defaultLineCount","readonly","type","isUser","values","users","listFieldDisabled","isCollapsible","collapsiblePanelTitle","teamId","valuesChange"],["ccsField",""],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],["title","CC",1,"full-width",3,"defaultLineCount","readonly","type","isUser","values","users","listFieldDisabled","teamId","valuesChange"],[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","sloSnoozeUntil","sloId","componentId","isEditable","issueCreationTimestamp","onSnoozeChange"],[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,Lab,76,95,"ng-container",0),U(1,"async"));
a&2&&D("ngIf",V(1,1,b.issue$))},dependencies:[VT,fy,gy,my,hU,KT,I3,D3,E3,F3,kI,iM,jM,mM,kM,C7,vW,S3,fU,A7,yD,tF,AN,B2,H7,rR,AM,tL,ny],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:70px;max-width:120px;padding-right:10px}\n/*# sourceMappingURL=edit_issue_metadata.css.map */"]});
var Smc={},Tmc=(Smc.COMFORTABLE=330,Smc.COZY=300,Smc.COMPACT=270,Smc),L7=function(a){Z.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(C(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(C(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new W.Subject;this.currentSidebarWidth$=(0,W.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(Cf(void 0))]).pipe(C(function(c){var d=n(c);c=d.next().value;var e=d.next().value;d=d.next().value;return null!=d?d:null!=e?e:Tmc[null!=c?c:"COMFORTABLE"]}));(0,W.combineLatest)([this.rightSidebarWidthChanged$.pipe(rf()),this.sidebarWidthPreference$]).pipe(hf(function(c){c=n(c);var d=c.next().value;return c.next().value!==d}),Df(function(c){c=n(c);var d=c.next().value;
c.next();return BDb(b.userPreferencesManager,{rightSidebarWidth:d})}),Ef(this.destroyed$)).subscribe()};X(L7,Z);L7.\u0275dir=Z.\u0275dir;L7.prototype.ngOnInit=function(){};L7.\u0275fac=function(a){return new (a||L7)(B(aI))};
L7.\u0275cmp=u({type:L7,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[Of],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&&(E(0,"h3",0),Q(1,"Issue metadata"),G(),E(2,"b-resizable-sidebar",1),M("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),U(3,"async"),
E(4,"div",2)(5,"div",3),P(6,Mab,1,1,"edit-issue-metadata",4),G()()());if(a&2){var c;A(2);D("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=V(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);A(4);D("ngIf",b.issueId)}},dependencies:[gy,BN,K7,ny],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});
var M7=function(){};M7.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,W.concat)((0,W.defer)(function(){return(0,W.of)(document.getElementById(a))}),HMa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(C(function(){return document.getElementById(a)}))).pipe(hf(fm),sf())};M7.\u0275fac=function(a){return new (a||M7)};M7.\u0275prov=Hc({token:M7,factory:M7.\u0275fac,providedIn:"root"});
var N7=function(a){this.idWatch=a},Umc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(sf(),C(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};N7.\u0275fac=function(a){return new (a||N7)(p(M7))};N7.\u0275prov=Hc({token:N7,factory:N7.\u0275fac,providedIn:"root"});
var O7=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new W.ReplaySubject(1);var e;this.issueId=null!=(e=this.routeParams.issueId)?e:""};
O7.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(Umc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Ef(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};O7.prototype.ngOnDestroy=function(){this.destroyed$.next()};
O7.\u0275fac=function(a){return new (a||O7)(p(N7),p(pI),p(tQ),p(t4))};O7.\u0275prov=Hc({token:O7,factory:O7.\u0275fac});
var P7=function(a,b){Z.call(this);var c=this;this.el=a;this.router=b;this.router.events.pipe(hf(fqa),Ef(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(hf(hl),Ef(this.destroyed$)).subscribe(function(d){Nab(c.el.nativeElement,["scrollY",c.rememberScroll,d.url].join("-"))})};X(P7,Z);
P7.\u0275fac=function(a){return new (a||P7)(B(Rd),B(fl))};P7.\u0275dir=u({type:P7,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},features:[Of]});var Q7=function(){};Q7.\u0275fac=function(a){return new (a||Q7)};Q7.\u0275mod=Yc({type:Q7});Q7.\u0275inj=Ic({imports:[vy,UH]});
var bbb=function(){return{exact:!0}},R7=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa){Z.call(this);var Aa=this;this.paramsService=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=t;this.routerEvents=x;this.devopsGraph=y;this.refreshMonitor=F;this.eventsForIssueFridge=K;this.issueFetchResponseFridge=J;this.hotlistFridge=R;this.permissionsFridge=S;this.issueRelationshipsFridge=
aa;this.issueService=ba;this.errorHandler=ka;this.currentTracker=wa;this.id$=fL(this.paramsService,"issueId").pipe(rf());this.issue$=this.id$.pipe(Df(this.issueFridge.watch));this.issueTrackerId$=this.issue$.pipe(C(function(Ka){return null==Ka?void 0:Ka.trackerId}));this.showTrackerRedirect$=(0,W.combineLatest)([this.currentTracker.trackerId$,this.issueTrackerId$]).pipe(C(function(Ka){var Ja=n(Ka);Ka=Ja.next().value;Ja=Ja.next().value;return Aa.shouldShowTrackerRedirect(Ka,em("")(Ja))}));this.snapshot$=
this.issue$.pipe(C(function(Ka){return null==Ka?void 0:Ka.snapshot[0]}));this.archived$=this.snapshot$.pipe(C(function(Ka){return null==Ka?void 0:Ka.isArchived}));this.deleted$=this.snapshot$.pipe(C(function(Ka){return null==Ka?void 0:Ka.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(C(function(Ka){return Ka?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(C(function(Ka){return(null==Ka?void 0:Ka.isArchived)&&!(null==Ka?
0:Ka.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(C(function(Ka){return(null==Ka?void 0:Ka.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(hf(fm),C(function(Ka){return xl[Ka]}));this.issue$.pipe(C(function(Ka){var Ja;return null!=(Ja=null==Ka?void 0:Ka.snapshot[0].title)?Ja:""}));this.issuesBeingBlocked$=this.issue$.pipe(C(function(Ka){var Ja;return null!=(Ja=null==Ka?void 0:Ka.snapshot[0].blockingIssueId)?Ja:[]}),qf(1E3),Df(this.issueFridge.watchSet));this.issue$.pipe(C(function(Ka){var Ja;
return null!=(Ja=null==Ka?void 0:Ka.snapshot[0].duplicateIssueId)?Ja:[]}),qf(1E3),Df(this.issueFridge.watchSet));this.userHasReadAccess$=this.issueFetchResponseFridge.error$.pipe(C(function(Ka){if(403===Ka.status&&Aa.activeSession.isInternalSession())return!1;Aa.errorHandler.errorHandler(null,Ka);return!0}),Cf(!0),Af({refCount:!0,bufferSize:1}));this.issueMetadata$=(0,W.defer)(function(){return Aa.id$}).pipe(hf(fm),Df(function(Ka){return Aa.issueService.getMetadata(Ka)}),Af({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(r(Cq(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:
[]))};X(R7,Z);R7.\u0275dir=Z.\u0275dir;R7.prototype.shouldShowTrackerRedirect=function(a,b){return""!==a&&a!==b};
R7.prototype.ngOnInit=function(){var a=this,b,c,d;return Pe(function(e){if(1==e.nextAddress)return b=GD,c=b.assertExists,Re(e,(0,W.firstValueFrom)(a.id$),2);d=c.call(b,e.yieldResult);a.appEvents.issueViewed.next(d);a.issueInteractionsTracking.getState(d);a.subscriptions.add(aY(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(hf(fm),
sf()).subscribe(function(f){HK(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);KK(a.issueFetchResponseFridge,d);a.eventsForIssueFridge.poke(d);a.hotlistFridge.pokeMany(dHb);HK(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;uOb(f,k,"idp-time-on-page",h.variations);f.resetState(d);a.editIssueService.clear(d)});Ve(e)})};R7.\u0275fac=function(a){return new (a||R7)(B(eL),B(FK),B(NG),B(iL),B(HQ),B(c6),B(eJ),B(AQ),B($X),B(uJ),B(ZH),B(h7),B(DK),B(hK),B(IK),B(sK),B(WK),B(VK),B(CK),B(xJ),B(LJ))};
R7.\u0275cmp=u({type:R7,selectors:[["issue-details-wrapper"]],features:[mg([qH,LQ,{provide:qV,useClass:O7}]),Of],decls:10,vars:8,consts:[["class","a11y-only",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],["showIssueDetails",""],["showTrackerRedirect",""],["showNoAccessScreen",""],[1,"a11y-only"],["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"],["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"],
[4,"ngIf"],["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"],[3,"issueMetadata"]],template:function(a,b){a&1&&(P(0,Oab,2,1,"h2",0),U(1,"async"),P(2,Pab,1,0,"div",1),U(3,"async"),P(4,gbb,2,4,"ng-template",null,2,Hg),P(6,hbb,3,3,"ng-template",null,3,Hg),P(8,ibb,3,3,"ng-template",null,4,Hg));if(a&2){var c=O(5),d=O(9);D("ngIf",V(1,
4,b.id$));A(2);D("ngIf",V(3,6,b.userHasReadAccess$))("ngIfThen",c)("ngIfElse",d)}},dependencies:[fy,gy,DH,QH,RH,pC,$V,aW,AW,iB,tF,fH,gH,x7,j1,L7,P7,z7,y7,ny],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px}"]});
var S7=function(a,b){Z.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new W.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"}]}};X(S7,Z);S7.\u0275dir=Z.\u0275dir;S7.prototype.ngOnInit=function(){};
S7.prototype.removeDuplicate=function(a){var b=this,c;return Pe(function(d){if(1==d.nextAddress)return Qe(d,2),Re(d,b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return Wu(d,0);c=Ue(d);wJ(b.butterBar,"Could not remove duplicate "+a+". "+c);Ve(d)})};ni.Object.defineProperties(S7.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
S7.\u0275fac=function(a){return new (a||S7)(B(FK),B(uJ))};S7.\u0275cmp=u({type:S7,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[Of],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(P(0,jbb,2,4,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.duplicateIssueIds$))},dependencies:[gy,E5,ny],encapsulation:2,changeDetection:0});
var T7=function(a,b,c,d){Z.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.ROBOT_SLEEPING=wQb;this.id$=this.bestRoute.paramMap.pipe(C(function(f){return f.get("issueId")}),hf(fm),Ff(function(f){e.lastKnownId=f}));this.dupeUrl$=this.id$.pipe(C(function(f){return{path:"/issues",params:{q:"canonicalid:"+f}}}));this.issue$=this.id$.pipe(Df(this.issues.watch));this.duplicateIds$=this.issue$.pipe(C(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].duplicateIssueId)?
h:[]}));this.didChooseDupes=function(f){null!=e.lastKnownId&&OHb(e.issues,e.lastKnownId,f[0]).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open(Xn(f)||"Error with network request","close",{panelClass:"error"})}};X(T7,Z);T7.\u0275dir=Z.\u0275dir;T7.prototype.isThinking=function(){return this.issues.isThinking()};var kbb=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};
ni.Object.defineProperties(T7.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});T7.\u0275fac=function(a){return new (a||T7)(B(Fk),B(FK),B(GW),B(rJ))};
T7.\u0275cmp=u({type:T7,selectors:[["ng-component"]],features:[Of],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&&(E(0,"section",0),
P(1,pbb,4,2,"ng-container",1),U(2,"async"),G(),P(3,qbb,2,0,"aside",2));a&2&&(A(1),D("ngIf",V(2,2,b.duplicateIds$)),A(2),D("ngIf",b.isThinking()))},dependencies:[gy,QH,pC,qC,tF,fM,S7,ny],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 U7=function(){};U7.\u0275fac=function(a){return new (a||U7)};U7.\u0275mod=Yc({type:U7});U7.\u0275inj=Ic({imports:[vy,Vz,vA,fz,gz,UH,AF,bW,uG,uF,TM,xW,JN,RM,K5]});
var Vmc=function(a){Y.call(this,a)};X(Vmc,Y);g=Vmc.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getCommentNumber=function(){return Ji(this,2)};g.setCommentNumber=function(a){return m(this,2,a)};g.getPiiRetention=function(){return qj(this,3,0)};g.setPiiRetention=function(a){return m(this,3,a)};g.hasPiiRetention=function(){return nj(this,3)};
var V7=function(a){this.executor=a};V7.prototype.get=function(a,b,c){var d=String;a:{c=void 0===c?1:c;switch(c){case 0:case 1:c=1;break a;case 2:c=2;break a;case 3:c=3;break a;default:Ai(c)}c=void 0}return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:{"X-Restricted-Content-Limit":d(c)}},responseConstructor:ZI})};
V7.prototype.updateRetention=function(a,b,c){c=(new Vmc).setIssueId(a).setCommentNumber(b).setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:ZI})};V7.\u0275fac=function(a){return new (a||V7)(p(lH))};V7.\u0275prov=Hc({token:V7,factory:V7.\u0275fac,providedIn:"root"});
var Wmc=function(a){Y.call(this,a)};X(Wmc,Y);g=Wmc.prototype;g.getIssueId=function(){return uj(this,1)};g.setIssueId=function(a){return m(this,1,a)};g.getAttachmentId=function(){return uj(this,2)};g.setAttachmentId=function(a){m(this,2,a)};g.getPiiRetention=function(){return qj(this,3,0)};g.setPiiRetention=function(a){return m(this,3,a)};g.hasPiiRetention=function(){return nj(this,3)};
var W7=function(a){this.executor=a};W7.prototype.updateRetention=function(a,b,c){var d=new Wmc;d.setIssueId(a);d.setAttachmentId(String(b));d.setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:d,responseConstructor:Jn})};W7.\u0275fac=function(a){return new (a||W7)(p(lH))};W7.\u0275prov=Hc({token:W7,factory:W7.\u0275fac,providedIn:"root"});
var X7=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new sx};X7.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};X7.\u0275fac=function(a){return new (a||X7)};
X7.\u0275cmp=u({type:X7,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,tbb,2,3,"span",0),P(1,ubb,2,3,"a",1));a&2&&(D("ngIf",
b.isGreyedOut||!b.linkEnabled),A(1),D("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[gy],encapsulation:2,changeDetection:0});
var Y7=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R){Z.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=t;this.errorHandler=x;this.analytics=y;this.issueCommentDialogsService=F;this.issuePermissionService=K;this.editIssueService=J;this.routeParams=R;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};X(Y7,Z);Y7.\u0275dir=Z.\u0275dir;Y7.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;Xmc(this);Ymc(this)};Y7.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(Xmc(this),this.cdr.markForCheck())};
Y7.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var Xmc=function(a){a.actionMenuItems=[];Zmc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});$mc(a)&&a.actionMenuItems.push({type:"action",action:function(){NOb(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){Llc(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?2:1;Klc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&anc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
Y7.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,TJ(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};Y7.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
Y7.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var ru=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Ze");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return JE(a,"download",b)};Y7.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)};
Y7.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};Y7.prototype.getPiiSeverity=function(){var a;return Nm(null==(a=this.attachment)?void 0:a.contentVerdict)};Y7.prototype.getRestrictedLabel=function(){return Bra(this.getPiiSeverity())};
var ybb=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+Ara(a):""},xbb=function(a,b){Mo(a.analytics,Aq.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(TN,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},Zmc=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()||hL(b,a)?!0:!1:
!1:!1}else b=!1;return b},$mc=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()||hL(b,a)?!0:!1:!1:!1}else b=!1;return b};Y7.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var anc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(Mo(a.analytics,Aq.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(Ef(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=rbb(d.getPiiRetention()),a.attachment.piiRetentionState=d.hasPiiRetentionState()?sbb(d.getPiiRetentionState()):void 0);
vJ(a.butterBar,"Attachment retention updated",4E3);a.attachmentRetentionOverride=2===b?"INDEFINITE":"COMPONENT_DEFAULT";Xmc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;yJ(a.errorHandler,"Attachment retention update failed")}})):yJ(a.errorHandler,"Attachment id is missing")},Ymc=function(a){var b,c,d;Pe(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,xbb(a,d));Ve(e)})};
Y7.\u0275fac=function(a){return new (a||Y7)(B(NG),B(QN),B(RN),B(IC),B(W7),B(qH,2),B(dy),B(pI),B(SJ),B(uJ),B(xJ),B(BK),B(Z6),B(iL),B(HQ),B(tQ))};
Y7.\u0275cmp=u({type:Y7,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[mg([qH]),Of,ed],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&&(E(0,"div",0),H(1,"b-icon",1),G(),E(2,"div")(3,"div",2),Q(4),E(5,"span",3),P(6,vbb,1,3,"b-restricted-chip",4),P(7,wbb,2,3,"span",5),G()(),E(8,"div"),Q(9),P(10,zbb,2,8,"span",6),P(11,Abb,2,8,"span",6),E(12,"xap-bubble",7),P(13,Bbb,3,3,"span",8),P(14,Cbb,4,1,"ng-template",null,9,Hg),G()()());if(a&2){var c=O(15);A(4);T(" ",b.getFilename()," ");A(2);D("ngIf",b.isRestricted());
A(1);D("ngIf",0<b.actionMenuItems.length);A(2);T(" ",jwa(b.getSize())," ");A(1);var d;a=b.isActive()&&fna(null==(d=b.attachment)?void 0:d.contentType);D("ngIf",a);A(1);D("ngIf",b.isActive());A(1);D("panelTemplate",c);A(1);D("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[gy,KY,X7,QG,qC,yD,tF,c4,rR],encapsulation:2,changeDetection:0});
var bnc=["commentActionsMenu"],cnc=["editDescription"],Xbb=function(){return[]},Z7=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J){Z.call(this);var R=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=t;this.issueCommentDialogsService=x;this.issuePermissionService=y;this.commentHistoryDialogService=F;this.dateFormatter=K;this.issueFetchResponseFridge=
J;this.id$=new W.ReplaySubject(1);this.accessLevel$=this.id$.pipe(Df(this.issueFridge.watch),C(function(S){var aa;return null==S?void 0:null==(aa=S.accessLimit)?void 0:aa.accessLevel}));this.firstEvent$=new W.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(C(function(S){return S}));this.commentActionMenuItems$=new W.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode="PLAIN";this.formattingMode$=ml(this.firstEvent$.pipe(hf(fm),C(function(S){return S.formattingMode})),
"PLAIN");this.isRedacted$=this.firstEvent$.pipe(hf(fm),C(function(S){return S.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(hf(fm),C(function(S){return"DELETED"===S.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,W.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;return!(!S||aa)}));this.isRestricted$=this.firstEvent$.pipe(hf(fm),C(function(S){return Nm(S.commentContentVerdict)}),C(function(S){if(!R.isInternalSession)return!1;
switch(S){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:Ai(S)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(hf(fm),C(function(S){return S.commentRetention}));this.commentHistoryEnabled=Cq(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,W.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;return!(!(Cq(R.activeSession,"enableCommentHistoryUi")&&
0<((null==S?void 0:S.commentVersion)||0))||aa)}));this.canEditComment$=this.firstEvent$.pipe(Df(function(S){return S?R.issuePermissionService.canEditComment$(S):(0,W.of)(!1)}),Af({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!nl(R.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(Df(function(S){return S?R.mayReadPii():(0,W.of)(void 0)}));this.reporterUser$=this.id$.pipe(Df(function(S){return R.issueFridge.watch(S)}),
C(function(S){var aa;return null==S?void 0:null==(aa=S.snapshot[0])?void 0:aa.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(C($bb));this.firstEventReporterEmail$=this.firstEvent$.pipe(C(function(S){S=n((null==S?void 0:S.postDiffs)||[]);for(var aa=S.next();!aa.done;aa=S.next())if(aa=aa.value,"reporter"===aa.name)return aa.newValue||"";return""}));this.onBehalfOfEmail$=(0,W.combineLatest)([this.firstEventReporterEmail$,this.reporterUserEmailAddress$]).pipe(C(function(S){var aa=
n(S);S=aa.next().value;aa=aa.next().value;return S||aa}));this.isAuthorNotReporter$=(0,W.combineLatest)([this.onBehalfOfEmail$,this.firstEvent$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;return S!==$bb(null==aa?void 0:aa.userPerformingActionUser)}))};X(Z7,Z);Z7.\u0275dir=Z.\u0275dir;
Z7.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(Df(function(b){return(0,W.defer)(function(){return TJ(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){ll("error: ",c);return!1})})}))};
Z7.prototype.ngOnInit=function(){var a=this;dnc(this,"PLAIN");this.id$.pipe(Df(this.issueFetchResponseFridge.watch),C(function(b){return null==b?void 0:b.firstEvent}),Ef(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(Ef(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=null!=b.commentDisplayOverride;a.initializeActionsMenu()});
this.formattingMode$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.formattingMode=null!=b?b:"PLAIN";dnc(a,null!=b?b:"PLAIN")});this.issuePermissionService.canChangeCommentRetention$.pipe(Ef(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
Z7.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=nl(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){wu(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:nl(this.isRedacted$)});
nl(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&&NIb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&Ilc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&MIb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){Flc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){Jlc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&nl(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!nl(this.isDeleted$)){var d="COMPONENT_DEFAULT"===nl(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?2:1;Klc(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 dnc=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)};
Z7.prototype.updateCommentRetention=function(a){var b=this,c=nl(this.firstEvent$),d=nl(this.id$);c&&!c.commentNumber&&yJ(this.errorHandler,"Comment number is missing");Mo(this.analytics,Aq.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(Ef(this.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);vJ(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){yJ(b.errorHandler,"Comment retention update failed")}})};
Z7.prototype.loadRestrictedComment=function(a,b){var c=this;Mo(this.analytics,Aq.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=(null==b?void 0:b.commentNumber)||0;b=Mm(Nm(null==b?void 0:b.commentContentVerdict));a&&this.commentService.get(a,d,b).pipe(sf(),Ef(this.destroyed$)).subscribe(function(e){e=Gn(e);e=Object.assign({},nl(c.firstEvent$),e);c.firstEvent$.next(e);c.initializeActionsMenu()},function(e){var f;wJ(c.butterBar,"Error showing comment "+d+": "+(null==(f=e.error)?void 0:
f.message))})};Z7.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};Z7.prototype.getUserEmailIfAvailable=function(){var a;return Ul(null==(a=nl(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var Dbb=function(a){var b=nl(a.firstEvent$);b&&wu(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},Ibb=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=Ql(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",bMb(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
ni.Object.defineProperties(Z7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return nl(this.id$)}}});Z7.\u0275fac=function(a){return new (a||Z7)(B(hK),B(aI),B(FK),B(qV),B(NG),B(V7),B(xJ),B(BK),B(uJ),B(SJ),B(Z6),B(iL),B(mR),B(eO),B(IK))};
Z7.\u0275cmp=u({type:Z7,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(zg(bnc,5),zg(cnc,5));if(a&2){var c;yg(c=Bg())&&(b.commentActionsMenu=c.first);yg(c=Bg())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[Of],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",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",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,Ybb,29,24,"div",0),U(1,"async"),P(2,Zbb,1,0,"ng-template",null,1,Hg));if(a&2){var c=O(3);D("ngIf",V(1,2,b.firstEvent$))("ngIfElse",c)}},dependencies:[KY,Y7,GV,fy,gy,fO,iM,mM,MQ,pC,yD,tF,e4,OR,fM,NQ,OQ,ny],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}"]});
var $7=function(a,b,c,d){Z.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(C(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),Cf(""))};X($7,Z);$7.\u0275dir=Z.\u0275dir;
$7.prototype.onClick=function(){var a=this,b;return Pe(function(c){if(1==c.nextAddress)return a.isSaving?c.return():Re(c,(0,W.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);Ve(c)})};
$7.prototype.save=function(a){var b=this;Mo(this.analytics,Aq.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;var c=(0,W.firstValueFrom)(this.prefs.save({showFullHistory:a}));c.then(function(){b.isSaving=!1;b.cdr.markForCheck()});c.catch(function(){wJ(b.butterBar,'Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()});this.prefs.save({commentFilterPreferences:{commentFilter:a?"FULL_HISTORY":"ALL_COMMENTS"}}).pipe(Ef(this.destroyed$)).subscribe()};
$7.\u0275fac=function(a){return new (a||$7)(B(aI),B(Xx),B(BK),B(uJ))};
$7.\u0275cmp=u({type:$7,selectors:[["smart-full-history-btn"]],features:[Of],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&&(E(0,"button",0),M("click",function(){return b.onClick()}),U(1,"async"),U(2,"async"),U(3,"async"),U(4,"async"),P(5,acb,1,0,"mat-icon",1),P(6,bcb,1,0,"b-spinner",2),G());a&2&&(Zf("on",V(1,8,b.on$)),D("matTooltip",
V(2,10,b.tooltip$))("disabled",b.isSaving),Uf("aria-pressed",V(3,12,b.on$))("aria-label",V(4,14,b.tooltip$)),A(5),D("ngIf",!b.isSaving),A(1),D("ngIf",b.isSaving))},dependencies:[gy,pC,yD,tF,fM,ny],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    }"],changeDetection:0});
var a8=function(a,b,c,d,e,f,h){Z.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_TEXT=PAb;this.STATUS_JS_FULL_TEXT=xl;this.STATUS_JS_TERSE=JAb;this.DUPLICATE="DUPLICATE";this.id$=new W.ReplaySubject(1);this.issue$=this.id$.pipe(Df(this.issueFridge.watch));this.hotlistIds$=this.issue$.pipe(C(lcb));this.textOfHotlistBtn$=this.hotlistIds$.pipe(C(function(q){var t;
return null!=(t=null==q?void 0:q.length)?t:0}),C(function(q){return 5>=q?"Add Hotlist":""}));this.priority$=this.issue$.pipe(C(function(q){return null==q?void 0:q.snapshot[0].priority}),C(function(q){return Wra[q]}));this.type$=this.issue$.pipe(C(function(q){return null==q?void 0:q.snapshot[0].type}),C(function(q){return Vra[q]}));this.canonicalId$=this.issue$.pipe(C(function(q){return null==q?void 0:q.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(C(function(q){return(null==q?void 0:
q.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(C(function(q){return KAb[q]?q:void 0}));this.statusCssClass$=this.status$.pipe(C(function(q){return k.computeStatusCssClass(q)}));this.HOTKEYS=tH;this.enableCommentFilters=Cq(this.activeSession,"enableCommentFiltering")};X(a8,Z);a8.\u0275dir=Z.\u0275dir;a8.prototype.computeStatusCssClass=function(a){return null===a||void 0===a?"":"status-"+Ym[a]};
var hcb=function(a){return Pe(function(b){return Re(b,Wlc(a.hotlistPickerService,a.issue$),0)})},fcb=function(a,b){var c,d;return Pe(function(e){switch(e.nextAddress){case 1:return Re(e,(0,W.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;BQ(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});Qe(e,3,4);var f=NHb(a.issueFridge,c,[],[String(b)]);return Re(e,f,6);case 6:return Re(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Se(e);a.eventsForIssueFridge.poke(c);Te(e,
0);break;case 3:d=Ue(e),zJ(a.errorHandler,d),e.jumpTo(4)}})};ni.Object.defineProperties(a8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});a8.\u0275fac=function(a){return new (a||a8)(B(FK),B(hK),B(e7),B(AQ),B(xJ),B(EA),B(NG))};
a8.\u0275cmp=u({type:a8,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[Of],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&&(E(0,"div",0)(1,"div",1),P(2,dcb,6,10,"div",2),U(3,"async"),P(4,ecb,2,4,"span",3),U(5,"async"),H(6,"b-issue-priority-display",4),U(7,"async"),G(),P(8,icb,6,5,"div",5),U(9,"async"),P(10,jcb,2,0,"div",6),G(),E(11,"onedev-hovercard",null,7),P(13,kcb,3,4,"b-issue-card",8),G());a&2&&(A(2),D("ngIf",V(3,5,b.statusForChip$)),A(2),D("ngIf",V(5,7,b.type$)),A(2),D("issuePriority",V(7,9,b.priority$)),A(2),D("ngIf",V(9,11,b.hotlistIds$)),A(2),D("ngIf",!b.enableCommentFilters))},dependencies:[fy,
gy,kI,jX,iM,jM,mM,kM,vW,i1,pC,yD,tF,QH,$7,ny],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 enc=["commentThreadActions"],mcb=function(a,b){return[a,b]},b8=function(a,b,c,d,e,f){Z.call(this);var h=this;this.preferences=a;this.activeSession=b;this.clearcut=c;this.scrolledOnScreenService=d;this.featureTooltipService=e;this.analytics=f;this.enableCommentFilters=Cq(this.activeSession,"enableCommentFiltering");this.selectedFilter=null;this.filters=xcb(this.activeSession.isInternalSession());this.showRecentEventsFirst=!1;this.TOOLTIP_POSITIONS=DD;this.COMMENT_THREAD_ACTIONS_FEATURE_TOOLTIP_ID=
"commentThreadActionsFeatureTooltip";this.showFeatureTooltip$=aF(this.featureTooltipService,"HIDDEN",["commentThreadActionsFeatureTooltip"]).pipe(hf(function(k){return 0===k.length}),Df(function(){return Syb(h.featureTooltipService)}),qf(1E3),Df(function(){var k,q=null==(k=h.commentThreadActions)?void 0:k.nativeElement;return q?h.scrolledOnScreenService.getObservable(q):(0,W.of)(!1)}),hf(Boolean),C(function(){}))};X(b8,Z);b8.\u0275dir=Z.\u0275dir;
b8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(hf(fm),Ef(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(Ef(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=vcb(b.commentFilter):(a.selectedFilter=bI(a.preferences).showFullHistory?scb:su,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(Ef(a.destroyed$)).subscribe())})};
b8.\u0275fac=function(a){return new (a||b8)(B(aI),B(NG),B(uK),B(CN),B(ZE),B(BK))};
b8.\u0275cmp=u({type:b8,selectors:[["b-event-stream-header"]],viewQuery:function(a,b){a&1&&zg(enc,5,Rd);if(a&2){var c;yg(c=Bg())&&(b.commentThreadActions=c.first)}},features:[Of],decls:10,vars:6,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[3,"showTooltip$",4,"ngIf"],[1,"flex-kids-x",3,"onedevFeatureTooltip","hideTooltipWhenAnchorNotVisible"],["commentThreadActions",""],["appearance","outline","class","filter-select",4,"ngIf"],["mat-stroked-button","","color","primary",1,"gmat-button",
"sort-order-button",3,"click"],[4,"ngIf"],[3,"showTooltip$"],[3,"customPositions","tooltipId"],["onedevTooltipTitle",""],["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&&(E(0,
"div",0)(1,"h4",1),Q(2,"Comments"),G(),P(3,ncb,5,6,"onedev-feature-tooltip-controller",2),E(4,"div",3,4),P(6,pcb,5,3,"mat-form-field",5),E(7,"button",6),M("click",function(){to("hasClickedCommentSortBtn")(!0);var c=!b.showRecentEventsFirst;oHb(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(Ef(b.destroyed$)).subscribe()}),P(8,qcb,4,0,"ng-container",7),P(9,rcb,4,0,"ng-container",7),G()()());a&2&&(A(3),D("ngIf",b.enableCommentFilters),A(1),D("onedevFeatureTooltip",
b.COMMENT_THREAD_ACTIONS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),A(2),D("ngIf",b.enableCommentFilters),A(2),D("ngIf",!b.showRecentEventsFirst),A(1),D("ngIf",b.showRecentEventsFirst))},dependencies:[fy,gy,yD,pC,XC,wR,vR,rC,HD,bF,eF,fF],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 scb={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},su={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},tcb={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},ucb={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},wcb=[scb,su,tcb,ucb];
var c8=function(a){this.matDialogService=a;this.reactionState$=new W.ReplaySubject(1);this.issueId="";this.emails$=this.reactionState$.pipe(hf(fm),C(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(hf(fm),C(function(b){return 5<b.count}));this.overflowReactionCount$=this.reactionState$.pipe(hf(fm),hf(function(b){return 5<b.count}),C(function(b){return b.count-
5}))};ni.Object.defineProperties(c8.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});c8.\u0275fac=function(a){return new (a||c8)(B(IC))};
c8.\u0275cmp=u({type:c8,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&&(E(0,"div",0)(1,"div",1),P(2,Acb,6,5,"ng-container",2),U(3,"async"),
P(4,Bcb,6,3,"span",3),U(5,"async"),G()());a&2&&(A(2),D("ngForOf",V(3,2,b.emails$)),A(2),D("ngIf",V(5,4,b.isOverflowReactionCount$)))},dependencies:[fy,gy,ny],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});
var d8=function(){};d8.\u0275fac=function(a){return new (a||d8)};d8.\u0275cmp=u({type:d8,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,Dcb,7,2,"ng-container",0);a&2&&D("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[gy,fO],encapsulation:2,changeDetection:0});
var e8=function(){this.texts=[]};e8.prototype.getIssueId=function(a){return a.text};e8.prototype.trackByIndex=function(a){return a};e8.\u0275fac=function(a){return new (a||e8)};
e8.\u0275cmp=u({type:e8,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,Hcb,5,3,"ng-container",0);a&2&&D("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[sV,fy,iy,jy,ky,eR],encapsulation:2,changeDetection:0});
var f8=function(a){this.hotlists=a;this.HOTLIST_SEARCH=lu.HOTLIST_SEARCH};f8.\u0275fac=function(a){return new (a||f8)(B(sK))};f8.\u0275cmp=u({type:f8,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(E(0,"a",0),Q(1),U(2,"async"),G());if(a&2){var c;D("href",b.HOTLIST_SEARCH(b.id),le);A(1);kg((null==(c=V(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[ny],encapsulation:2,changeDetection:0});
var g8=function(a){var b=this;this.componentFridge=a;this.id$=new W.ReplaySubject(1);this.name$=this.id$.pipe(rf(),Df(function(c){return b.componentFridge.watchOne(c).pipe(C(function(d){var e;return d?c0b(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};g8.prototype.ngOnChanges=function(){this.id$.next(this.id)};g8.\u0275fac=function(a){return new (a||g8)(B(ZJ))};
g8.\u0275cmp=u({type:g8,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[ed],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(E(0,"span",0),Q(1),U(2,"async"),G(),E(3,"onedev-hovercard",null,1),P(5,Icb,3,2,"ng-container",2),G());if(a&2){var c=O(4);D("onedevHovercardTrigger",c);A(1);kg(V(2,2,b.name$)||b.id)}},dependencies:[iM,jM,
mM,kM,tR,ny],encapsulation:2,changeDetection:0});
var Ycb=function(a){return{"bv2-diff-newvalue-nextline":a}},rdb=function(a,b,c){return{diff:a,change:b,isLast:c}},h8=function(a,b){Z.call(this);this.activeSession=a;this.preferences=b;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=bna;this.isLinkedItemArray=$ta;this.isIssueDiff=Xta;this.isHotlistDiff=Yta};X(h8,Z);h8.\u0275dir=Z.\u0275dir;
var fnc=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)},gnc=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)};h8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(hf(fm),Ef(this.destroyed$)).subscribe(function(b){2>a.internalDiffs.length||(b&&fnc(a)||!b&&gnc(a))&&a.internalDiffs.reverse()})};h8.prototype.trackByIndex=function(a){return a};
var uu=function(a,b,c){return"<none>"===bc(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},vu=function(a,b,c){return"<none>"===bc(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};h8.prototype.asNumber=function(a){return Number(a)};
h8.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};ni.Object.defineProperties(h8.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(r(a))}}});h8.\u0275fac=function(a){return new (a||h8)(B(NG),B(aI))};
h8.\u0275cmp=u({type:h8,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[Of],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&&(E(0,"div",0),P(1,Sdb,2,1,"div",1),G(),P(2,aeb,1,1,"ng-template",null,2,Hg),P(4,beb,2,0,"ng-template",null,3,Hg));a&2&&(A(1),D("ngForOf",b.internalDiffs)("ngForTrackBy",b.trackByIndex))},dependencies:[ey,fy,gy,my,iy,jy,ky,fO,NQ,sV,f8,g8,ry],styles:["\n/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});
var i8=function(a){Z.call(this);var b=this;a.textDisplayPreferencesSubject$.pipe(Ef(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:Ai(c.commentDisplayOverride)}})};X(i8,Z);i8.\u0275dir=Z.\u0275dir;
i8.prototype.ngOnInit=function(){};i8.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";var a=this.rawComment.split("\n").slice(0,3).filter(Boolean);this.rawComment=2>a.length?Uo(this.rawComment,250):"MARKDOWN"===this.formattingMode||"MARKDOWN"===this.formattingModeOverride?a.join("\n\n"):a.join("\n");this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?1:2;this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
i8.\u0275fac=function(a){return new (a||i8)(B(aI))};
i8.\u0275cmp=u({type:i8,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",issueAccessLevel:"issueAccessLevel"},features:[Of,ed],decls:1,vars:5,consts:[[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&H(0,"b-live-preview",0);a&2&&D("comment",b.rawComment)("issueId",b.issueId)("audience",b.audience)("formattingMode",b.formattingModeOverride||b.formattingMode)("idPrefix",b.idPrefix)},dependencies:[EV],
styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});
var hnc=["commentActionsMenu"],keb=function(){return[]},zeb=function(a){return{"no-upvote-reactions":a}},j8=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa){Z.call(this);var ba=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=t;this.issueDetailsBrain=x;this.editIssueService=y;this.issuePermissionService=F;this.commentHistoryDialogService=
K;this.issueCommentDialogsService=J;this.dateFormatter=R;this.paths=S;this.domSafe=aa;this.isSummarized=!1;this.issueId$=new W.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(rf());this.event$=new W.ReplaySubject(1);this.isCommentEvent=fo;this.isNonObfuscatedEmail=Ao;this.commentActionMenuItems$=new W.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(){ba.formattingMode="PLAIN";ba.initializeActionsMenu()},label:"Classic",selected:!0},a.MARKDOWN={type:"select",action:function(){ba.formattingMode="MARKDOWN";ba.initializeActionsMenu()},label:"Markdown",selected:!1},a.LITERAL={type:"select",action:function(){ba.formattingMode="LITERAL";ba.initializeActionsMenu()},label:"Source",selected:!1},a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=
this.event$.pipe(Df(function(ka){return ba.issuePermissionService.canEditComment$(ka)}),Af({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!nl(ba.canEditComment$)};this.commentHistoryEnabled=Cq(this.activeSession,"enableCommentHistoryUi");this.commentReactionsEnabled=Cq(this.activeSession,"enableCommentReaction");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=
this.distinctIssueId$.pipe(Df(function(ka){return ba.editIssueService.editableIssue$(ka)}));this.modifiedDateDisplay$=this.event$.pipe(C(function(ka){return new Date(ka.modifiedDate)}),Df(function(ka){return bMb(ba.dateFormatter,ka)}));this.ariaLabelHeading$=(0,W.combineLatest)([this.event$,this.modifiedDateDisplay$]).pipe(C(function(ka){var wa=n(ka);ka=wa.next().value;wa=wa.next().value;if(null==ka)ka="";else{var Aa=[];ka.commentNumber&&Aa.push("Comment #"+ka.commentNumber);ka.userPerformingActionUser&&
Aa.push(Ql(ka.userPerformingActionUser));Aa.push("Modified: "+wa);ka=Aa.join(", ")}return ka}));this.ReactionType=zAb;this.upvoteReactionCount$=this.event$.pipe(C(function(ka){var wa,Aa,Ka;return null!=(Ka=null==(wa=ka.commentReactions)?void 0:null==(Aa=wa.get("UPVOTE"))?void 0:Aa.count)?Ka:0}));this.upvoteReactionCountDisplayString$=this.upvoteReactionCount$.pipe(C(function(ka){return ka&&0!==ka?999<ka?"999+":String(ka):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(C(function(ka){return 0===
ka}));this.commentReactionsHovercardConfig=Object.assign({},new GJb,{position:[EJb]});this.commentReactionIsSaving=!1;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(C(function(ka){var wa;return null!=(wa=ka.commentFilter)?wa:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(C(function(ka){return"FULL_HISTORY"===ka}));this.preEventDiffs$=(0,W.combineLatest)([this.event$,
this.showRecentEventsFirst$]).pipe(C(function(ka){ka=n(ka);var wa=ka.next().value;return ka.next().value?wa.postDiffs:wa.preDiffs}));this.postEventDiffs$=(0,W.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(C(function(ka){ka=n(ka);var wa=ka.next().value;return ka.next().value?wa.preDiffs:wa.postDiffs}));this.hasAclToUpvoteReact$=(0,W.combineLatest)([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(C(function(ka){var wa=n(ka);ka=wa.next().value;wa=wa.next().value;var Aa,
Ka;return(null==(Aa=ka.commentReactions)?void 0:null==(Ka=Aa.get("UPVOTE"))?void 0:Ka.hasReacted)||wa}));this.isShowingCommentTimestamp$=this.isFullHistoryPreference$.pipe(C(function(ka){return ka&&yu(ba)&&(0<ba.event.preDiffs.length||0<ba.event.postDiffs.length)}));this.getCommentNumberLink=function(ka){return tl(ba.issueId,{comment:ka})}};X(j8,Z);j8.\u0275dir=Z.\u0275dir;
j8.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(Ef(this.destroyed$)).subscribe(function(){fo(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,W.of)(void 0)});inc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(Ef(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(Ef(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
var inc=function(a){if(a.formattingMode){for(var b=n(Object.values(a.formattingModeMenuItems)),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.formattingModeMenuItems[a.formattingMode].selected=!0}};g=j8.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||yJ(this.errorHandler,"Comment number is missing");Mo(this.analytics,Aq.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(Ef(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:rbb(c.getPiiRetention()),commentRetentionState:c.hasPiiRetentionState()?sbb(c.getPiiRetentionState()):null});vJ(b.butterBar,
"Comment retention updated",4E3);b.commentRetentionOverride=2===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){yJ(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 Bra(Nm(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Nm(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:Ai(a)}};
g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var xu=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};
j8.prototype.loadRestrictedComment=function(){var a=this;Mo(this.analytics,Aq.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=String(this.issueId),c=this.event.commentNumber||0,d=Mm(Nm(this.event.commentContentVerdict));this.commentService.get(b,c,d).pipe(sf()).subscribe(function(e){e=Gn(e);a.deobfuscatedEvent=Object.assign({},a.event,e);a.initializeActionsMenu()},function(e){var f;wJ(a.butterBar,"Error showing comment "+c+": "+(null==(f=e.error)?void 0:f.message))})};
j8.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]}),inc(this)),this.canEditComment()&&b.push({type:"action",action:function(){wu(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Edit comment...",disabled:xu(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!xu(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:xu(this)}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){Clc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to...",disabled:xu(this)}),NIb(this.issuePermissionService,
this.event)&&b.push({type:"action",action:function(){Ilc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),MIb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Flc(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(){Jlc(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?2:1;Klc(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)};j8.prototype.getUserEmailIfAvailable=function(){return Ul(this.event.userPerformingActionUser)};var yu=function(a){return fo(a.event)&&!!a.event.unlinkifiedComment};j8.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
j8.prototype.mayReadPii=function(){var a=TJ(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){ll("error: ",b);return!1});return(0,W.from)(a)};
var xeb=function(a){a.commentReactionIsSaving=!0;var b=Aeb(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)}})},Aeb=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},yeb=function(a,b){var c;a=null==(c=
a.event.commentReactions)?void 0:c.get(b);if(!a)return"Comment reaction button";b=b.toString();1===a.count?b+=" , "+a.count+" reaction":1<a.count&&(b+=" , "+a.count+" reactions");a.hasReacted&&(b+=", reacted");return b};ni.Object.defineProperties(j8.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});
j8.\u0275fac=function(a){return new (a||j8)(B(QN),B(NG),B(qV),B(V7),B(Rd),B(SJ),B(uJ),B(xJ),B(BK),B(aI),B(gL),B(HQ),B(iL),B(mR),B(Z6),B(eO),B(pI),B(RN))};
j8.\u0275cmp=u({type:j8,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&zg(hnc,5);if(a&2){var c;yg(c=Bg())&&(b.commentActionsMenu=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},features:[Of,ed],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",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","disabled","onedevHovercardTrigger",
"onedevHovercardConfig","onedevHovercardActive","click"],["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"],["svgIcon","thumb_up_24px",1,"icon-s"],["svgIcon","thumb_up_filled_24px",1,"icon-s","has-reacted-icon"],[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,Heb,43,33,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.issue$))},dependencies:[KY,Y7,GV,ey,fy,gy,my,fO,iM,mM,h8,MQ,c4,e4,OR,PQ,OQ,fR,tF,i8,pC,yD,c8,d8,e8,ny],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}.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%]:hover:enabled{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.comment-reaction-button[_ngcontent-%COMP%]:disabled   .has-reacted-icon[_ngcontent-%COMP%]{color:rgba(26,115,232,.4);color:var(--hover-btn)}.no-upvote-reactions[_ngcontent-%COMP%]{border: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}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});
var jnc={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},k8=function(a,b,c,d,e,f,h,k,q,t){Z.call(this);var x=this;this.formattedCommentsForIssueFridge=a;this.preferences=b;this.eventsForIssue=c;this.editIssueService=d;this.dynamicScrollIntoView=e;this.bLocation=f;this.elementRef=h;this.activeSession=k;this.routerEvents=q;this.analytics=t;this.issueId$=new W.ReplaySubject(1);this.internalIssueId="";this.eventDisplayModes=jnc;this.internalEvents=[];this.showRecentEventsFirst=null;
this.currentFilterLevel="FULL_HISTORY";this.enableCommentFiltering=Cq(this.activeSession,"enableCommentFiltering");this.issue$=this.issueId$.pipe(Df(function(y){return x.editIssueService.editableIssue$(y)}));this.events$=new W.ReplaySubject(1);this.commentsToFormat$=new W.ReplaySubject(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.sendAnalytics=Yv(function(){var y=[].concat(r(document.querySelectorAll(".bv2-event-note, .bv2-event-major-status"))).map(function(F){return F.innerText}).join("").length;
Mo(x.analytics,Aq.EDIT_ISSUE,"updateCommentThread","visibleCharCount",y)},200);this.scrollToCommentOrAttachment=Yv(function(){var y=x.bLocation.hash();if(y&&x.internalEvents){var F,K=n(null!=(F=y.match(RegExp("(comment|attachment)([0-9]+)")))?F:[]);K.next();F=K.next().value;var J=K.next().value;K=F;var R=J;if("lastcomment"===y){K=gua(x.internalEvents);if(-1===K)return;R=String(K);K="comment"}K&&R&&(y=x.internalEvents.findIndex(function(S){return S.commentNumber===Number(R)}),F=-1<y,J=x.internalEvents.flatMap(function(S){return S.attachments}).some(function(S){return S.attachmentId===
Number(R)}),F||J)&&(F&&"folded"===x.eventDisplayMode.get(y)&&(x.eventDisplayMode.set(y,"full"),knc(x,y)),J&&(y=x.internalEvents.findIndex(function(S){return-1<S.attachments.findIndex(function(aa){return aa.attachmentId===Number(R)})}),x.eventDisplayMode.get(y)||(x.eventDisplayMode.set(y,"full"),knc(x,y))),Umc(x.dynamicScrollIntoView,{elementId:K+R,parentElement:x.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Ef(x.destroyed$)).subscribe())}},
200)};X(k8,Z);k8.\u0275dir=Z.\u0275dir;
k8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(hf(fm),Ef(this.destroyed$),rf()).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,lnc(a))});(0,W.combineLatest)([this.events$,this.preferences.commentFilterPreferences$]).subscribe(function(b){b=n(b);var c=b.next().value,d=b.next().value;b=[];if(a.enableCommentFiltering&&d.commentFilter)for(a.currentFilterLevel=d.commentFilter,mnc(a,c,d.commentFilter),nnc(a),c=n(a.commentNumbersDisplayed.values()),
d=c.next();!d.done;d=c.next())b.push(a.internalIssueId+"-"+d.value);else for(c=n(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(hf(fm),Ef(this.destroyed$),Df(this.formattedCommentsForIssueFridge.watchSet)).subscribe(function(b){onc(a,b)});this.routerEvents.navigationEnd$.pipe(Ef(this.destroyed$)).subscribe(function(){a.internalEvents&&0!==a.internalEvents.length&&a.scrollToCommentOrAttachment()})};
var onc=function(a,b){for(var c={$jscomp$loop$prop$i$2014:0};c.$jscomp$loop$prop$i$2014<a.internalEvents.length;c={$jscomp$loop$prop$i$2014:c.$jscomp$loop$prop$i$2014},c.$jscomp$loop$prop$i$2014++)if(Meb(a.eventDisplayMode.get(c.$jscomp$loop$prop$i$2014))&&fo(a.internalEvents[c.$jscomp$loop$prop$i$2014])){var d=b.find(function(f){return function(h){return h.id.commentId===a.internalEvents[f.$jscomp$loop$prop$i$2014].commentNumber}}(c));if(d){var e=a.internalEvents[c.$jscomp$loop$prop$i$2014];e.formattedComment=
d.formattedComment.formattedComment;e.formattingMode=d.formattedComment.formattingMode;a.internalEvents[c.$jscomp$loop$prop$i$2014]=Object.assign({},e)}}lnc(a)},mnc=function(a,b,c){a.eventDisplayMode.clear();a.commentNumbersDisplayed.clear();a.foldedCommentsCounts.clear();switch(c){case "FULL_HISTORY":for(c=0;c<b.length;c++){var d=pnc(b[c]);a.eventDisplayMode.set(c,d?"full":"hidden");fo(b[c])&&b[c].commentNumber&&d&&(d=void 0,a.commentNumbersDisplayed.add(null!=(d=b[c].commentNumber)?d:0))}break;
case "ALL_COMMENTS":for(c=0;c<b.length;c++)d=qnc(b[c]),a.eventDisplayMode.set(c,d?"full":"hidden"),fo(b[c])&&b[c].commentNumber&&d&&(d=void 0,a.commentNumbersDisplayed.add(null!=(d=b[c].commentNumber)?d:0));break;case "HUMAN_ONLY":rnc(a,b,function(e){var f;return null!=(f=e.isHumanAuthor&&e.isMajorEvent)?f:!0});break;case "TEAM_AND_ASSIGNEE":rnc(a,b,function(e){var f;return null!=(f=e.isCollaboratorAuthor&&e.isMajorEvent)?f:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),
fo(b[c])&&b[c].commentNumber&&(d=void 0,a.commentNumbersDisplayed.add(null!=(d=b[c].commentNumber)?d:0))}a.sendAnalytics()},nnc=function(a){if("FULL_HISTORY"!==a.currentFilterLevel)for(var b=0;b<a.internalEvents.length;b++){var c;if(c=fo(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"),knc(a,b))}},rnc=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;fo(b[h])&&b[h].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add(null!=(k=b[h].commentNumber)?k:0))}else{if(fo(b[h])&&b[h].commentNumber||go(b[h]))d++,f=h;e++}}if(0<d||0<e)b=1===gua(a.internalEvents)?a.showRecentEventsFirst?0:a.internalEvents.length:snc(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,
eventFoldedCount:e})},snc=function(a){return haa(a.internalEvents,function(b){var c;return null!=(c=b.isMajorEvent)?c:!1})},pnc=function(a){return fo(a)&&!!a.unlinkifiedComment||go(a)||0<a.preDiffs.length||0<a.postDiffs.length},qnc=function(a){var b;return(null!=(b=a.isMajorEvent)?b:!1)&&(fo(a)&&!!a.unlinkifiedComment||go(a)||0<a.preDiffs.length||0<a.postDiffs.length)},lnc=function(a){if(!(2>a.internalEvents.length)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=tnc(a,a.internalEvents).modifiedDate||
!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=tnc(a,a.internalEvents).modifiedDate)if(a.internalEvents.reverse(),a.enableCommentFiltering){var b;mnc(a,a.internalEvents,null!=(b=a.currentFilterLevel)?b:"FULL_HISTORY");nnc(a)}a.internalEvents&&0!==a.internalEvents.length&&a.scrollToCommentOrAttachment()}},tnc=function(a,b){var c;return null!=(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))?c:b[1]};
k8.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};k8.prototype.trackEventByVersion=function(a,b){return b.version};
var knc=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(r(a.foldedCommentsCounts.entries())).sort(function(k,q){return k[0]-q[0]})),e=n(e.entries()),f=e.next();!f.done;f=e.next())if(h=
n(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++)(fo(a.internalEvents[c])||go(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}},
Meb=function(a){return"summarized"===a||"full"===a};ni.Object.defineProperties(k8.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(r(b));b=Object.assign({},b[0],{addedAttachmentIds:[],attachments:[],commentNumber:null,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!Rna(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
k8.\u0275fac=function(a){return new (a||k8)(B(kK),B(aI),B(hK),B(HQ),B(N7),B(oI),B(Rd),B(NG),B(ZH),B(BK))};
k8.\u0275cmp=u({type:k8,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},features:[Of],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,Ieb,2,0,"aside",0),E(1,"div",1),P(2,Neb,3,2,"ng-container",2),G(),P(3,Oeb,2,0,"aside",0));a&2&&(D("ngIf",b.isLoading()&&b.showRecentEventsFirst),A(2),D("ngForOf",b.internalEvents)("ngForTrackBy",b.trackEventByVersion),A(1),D("ngIf",b.isLoading()&&!b.showRecentEventsFirst))},dependencies:[fy,gy,j8,pC,fM],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 l8=function(a,b){this.message=a;this.snackbarRef=b;this.DEFAULT_MESSAGE="New data is available. Click to refresh."};l8.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};l8.\u0275fac=function(a){return new (a||l8)(B(RFb),B(lJ))};
l8.\u0275cmp=u({type:l8,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&&(E(0,"div",0),M("click",function(){return Gta(b.snackbarRef)}),
H(1,"mat-icon",1),E(2,"p",2),Q(3),G()(),E(4,"button",3),M("click",function(c){return b.onDismiss(c)}),H(5,"mat-icon",4),G());a&2&&(A(3),T(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[yD,pC],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 m8=function(a){this.snackbar=a},unc=function(a){var b=tH.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(l8,c);return a.currentSnackBar};m8.\u0275fac=function(a){return new (a||m8)(p(rJ))};m8.\u0275prov=Hc({token:m8,factory:m8.\u0275fac,providedIn:"root"});
var n8=function(a,b,c,d,e,f,h,k,q,t,x){Z.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=t;this.appEvents=x;this.id$=new W.ReplaySubject(1);this.events$=this.id$.pipe(Df(this.eventsForIssue.watch),C(function(F){var K;return null!=(K=null==F?void 0:F.events)?K:[]}));this.issue$=
this.id$.pipe(Df(function(F){return JK(y.issueFetchResponseFridge,F)}));this.accessLevel$=this.issue$.pipe(C(function(F){var K,J;return null==F?void 0:null==(K=F.issue)?void 0:null==(J=K.accessLimit)?void 0:J.accessLevel}));this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(C(function(F){return F&&Cq(y.activeSession,"enableImageSummary")}),Cf(!0))};X(n8,Z);n8.\u0275dir=Z.\u0275dir;
n8.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=nl(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(zlc(this.eventsForIssueWatcher,nl(this.id$)).subscribe(function(){vnc(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
null==(b=a.refreshDataNotification.currentSnackBar)||b.dismiss()}));this.destroyed$.pipe(sf()).subscribe(function(){var b;null==(b=a.refreshDataNotification.currentSnackBar)||b.dismiss()})};
var vnc=function(a){Mo(a.analytics,Aq.PUSH_UPDATE,"display","comment");unc(a.refreshDataNotification)._afterDismissed.subscribe(function(b){b.dismissedByAction?(Mo(a.analytics,Aq.PUSH_UPDATE,"fetchResource","comment"),KK(a.issueFetchResponseFridge,nl(a.id$)),a.eventsForIssue.poke(nl(a.id$)),a.appEvents.scrollToCommentBox.next()):Mo(a.analytics,Aq.PUSH_UPDATE,"dismiss","comment")})};ni.Object.defineProperties(n8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
n8.\u0275fac=function(a){return new (a||n8)(B(hK),B(IK),B(aI),B(NG),B(mR),B(gL),B(xJ),B(m8),B(W6),B(BK),B(eJ))};
n8.\u0275cmp=u({type:n8,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[Of],decls:6,vars:15,consts:[[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(H(0,"b-event-stream",0),U(1,"async"),U(2,"async"),U(3,"async"),U(4,"async"),U(5,"async"));a&2&&(D("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$)),Uf("data-will-inline-screenshots",V(1,5,b.enableInlineScreenshots$)?
!0:null))},dependencies:[k8,ny],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});
var Xeb=function(a,b){return{empty:a,"never-focused":b}},o8=function(a,b,c,d,e,f,h,k,q){var t=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.issueId$=new W.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(rf());this.issue$=this.distinctIssueId$.pipe(Df(function(x){return t.editIssueService.editableIssue$(x)}));this.wasFocused=
!1;this.enableRecaptcha=Cq(this.activeSession,"enableRecaptcha")&&Cq(this.activeSession,"enableCommentPostCaptchaUi");this.recaptchaResponse$=new W.BehaviorSubject("");this.commentSubmitted=new sx;this.HOTKEYS=tH;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(C(function(x){return x.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(C(function(x){return t.editIssueService.issueCommentDraft(x)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(Df(function(x){return x.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(Df(function(x){return x.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(C(function(x){return t.editIssueService.savingState(x)}));
this.isSaving$=this.savingState$.pipe(Df(function(x){return ju(x.propertiesBeingSaved,Go("comment"))}));this.commentLimitReached$=this.events$.pipe(C(function(x){var y=t.activeSession.getCommentNumberLimit();return gua(x)>=y}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(C(function(x){return x?"The comment limit has been reached and no additional comments are permitted.":t.activeSession.isAnonymous()?"Sign in to use full features.":t.issuePermissionService.hasAclToComment()?"Add a comment.":
"You do not have access to comment on this issue."}));this.commentBoxEnabled$=(0,W.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(C(function(x){var y=n(x);x=y.next().value;var F=y.next().value;y=y.next().value;return x&&!F&&!y}));this.commentDraftUpdated$=new W.BehaviorSubject(!0);this.commentButtonEnabled$=(0,W.combineLatest)([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(C(function(x){var y=n(x);
x=y.next().value;var F=y.next().value,K=y.next().value;y=y.next().value;return x&&mOb(F)&&!K&&(!t.enableRecaptcha||""!==y)}));this.empty$=(0,W.combineLatest)([this.comment$,this.commentDraftUpdated$]).pipe(C(function(x){var y,F;return null!=(F=null==(y=n(x).next().value)?void 0:y.value)?F:""}),C(function(x){return 0===x.length}))},Qeb=function(a){var b;return Pe(function(c){b=!bI(a.userPreferencesManager).autoCcOnComment;Mo(a.analytics,Aq.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return Re(c,
(0,W.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};o8.prototype.saveCommentDraft=function(){var a=this,b;return Pe(function(c){if(1==c.nextAddress)return Re(c,(0,W.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(cp(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);Ve(c)})};
o8.prototype.submitCommentBox=function(){var a=this,b;return Pe(function(c){if(1==c.nextAddress)return b=a.enableRecaptcha?a.recaptchaResponse$.getValue():void 0,Re(c,a.issueCommentDialogsService.submitCommentBox(a.internalIssueId,b),2);a.commentSubmitted.emit();a.appEvents.recaptchaSubmitted.next();Ve(c)})};o8.prototype.showNewContentJudgementDialog=function(){var a=this;return Pe(function(b){return Re(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
ni.Object.defineProperties(o8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}}});o8.\u0275fac=function(a){return new (a||o8)(B(iL),B(aI),B(HQ),B(BK),B(eQ),B(NG),B(gL),B(Z6),B(eJ))};
o8.\u0275cmp=u({type:o8,selectors:[["b-post-comment"]],inputs:{issueId:"issueId"},outputs:{commentSubmitted:"commentSubmitted"},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","onHotkey","onChange","onFocusEvent","onSubmit","onRestrict"],["commentBox",""],["recaptchaContainer","",4,"ngIf"],["additionalToolbarItems",
"",1,"goog-inline-block"],["format","fill",3,"disabled","onAction","click"],[1,"goog-inline-block"],["class","goog-inline-block vertical-centered",4,"ngIf"],[3,"initialValue","change",4,"ngIf"],[3,"accessLevel"],["recaptchaContainer",""],[3,"onUpdate"],["label","CC Me",3,"checked","disabled","change"],[1,"goog-inline-block","vertical-centered"],["label","CC Me",3,"checked","disabled","tooltip",4,"ngIf"],["label","CC Me",3,"checked","disabled","tooltip"],[3,"initialValue","change"]],template:function(a,
b){a&1&&(P(0,Zeb,2,1,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.issue$))},dependencies:[FL,hW,FV,ey,gy,sR,kI,RO,iW,ny],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%}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}\n/*# sourceMappingURL=post_comment.css.map */"]});
var p8=function(a,b){this.issueFridge=a;this.paths=b;this.STATUS_FULL_TEXT=GG;this.STATUS_TERSE=CG;this.canonicalIssueId$=new W.BehaviorSubject("");this.canonicalIssue$=this.canonicalIssueId$.pipe(Df(this.issueFridge.watch));this.canonicalTitle$=this.canonicalIssue$.pipe(C(function(c){return null==c?void 0:c.snapshot[0].title}));this.canonicalPriority$=this.canonicalIssue$.pipe(C(function(c){return null==c?void 0:c.snapshot[0].priority}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(C(function(c){var d;
return null!=(d=null==c?void 0:c.snapshot[0].duplicateIssueId)?d:[]}));this.statusForChip$=this.canonicalIssue$.pipe(C(function(c){return null==c?void 0:c.snapshot[0].status}),C(function(c){return Ym[c]}))};g=p8.prototype;g.ngOnInit=function(){};g.dismiss=function(){};g.accept=function(){};g.reject=function(){};g.getIssueLink=function(a){return this.paths.editIssue(a)};p8.\u0275fac=function(a){return new (a||p8)(B(FK),B(pI))};
p8.\u0275cmp=u({type:p8,selectors:[["canonical-recommendation"]],inputs:{currentIssueId:"currentIssueId"},decls:2,vars:3,consts:[["class","flex-kids-y gap-s",4,"ngIf"],[1,"flex-kids-y","gap-s"],["mat-icon-button","","matTooltip","Dismiss","aria-label","Dismiss",1,"dismiss",3,"click"],["svgIcon","close"],[1,"heading","flex-kids-x","gap-xxs","align-items-center"],["svgIcon","merge_type_24px","color","primary",1,"rotate-180"],[1,"title","hover-link","overflow-ellipsis",3,"href"],[1,"info","flex-kids-x",
"gap-s","align-items-center"],[1,"hover-link",3,"href"],[3,"issuePriority"],[3,"class","title",4,"ngIf"],[4,"ngIf"],[1,"actions","flex-kids-x","gap-s","align-items-center"],["mat-button","",1,"accept","keep-focus-ring",3,"click"],["svgIcon","done",1,"icon-s"],["mat-button","",1,"gmat-button","medium",3,"click"],[3,"title"]],template:function(a,b){a&1&&(P(0,bfb,26,15,"div",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.canonicalIssueId$))},dependencies:[gy,i1,pC,yD,tF,ny],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);background-color:#f2f6ff;background-color:var(--blue-bg)}.heading[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;font-weight:500;font-size:.875rem;line-height:1.25rem}.heading[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700)}.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}.dismiss[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.accept[_ngcontent-%COMP%]{padding-right:12px;padding-left:8px;border-radius:15px;border:1px solid;height:30px;border-color:#137333;border-color:var(--green-text);color:#137333;color:var(--green-text)}[_nghost-%COMP%]     .actions .accept .mat-button-wrapper{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px}[_nghost-%COMP%]     .actions .accept.mat-button{line-height:unset}\n/*# sourceMappingURL=canonical_recommendation.css.map */"]});
var q8=function(a){this.issueReferenceResolver=a;this.userToString=Ul};q8.prototype.ngOnInit=function(){};q8.prototype.getCommentNumberLink=function(a){return tl(this.issueId,{comment:a})};q8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};q8.\u0275fac=function(a){return new (a||q8)(B(qV))};
q8.\u0275cmp=u({type:q8,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,gfb,5,3,"span",0);a&2&&D("ngForOf",b.comments)},
dependencies:[fy,gy,iM,mM,MQ,OR,jR],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 r8=function(a){Z.call(this);this.ngZone=a};X(r8,Z);r8.\u0275dir=Z.\u0275dir;var wnc=function(a,b){return(new W.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(Ef(a.destroyed$))};r8.\u0275fac=function(a){return new (a||r8)(p(Mf))};r8.\u0275prov=Hc({token:r8,factory:r8.\u0275fac,providedIn:"root"});
var xnc=["imagesSummaryWidget"],s8=function(a,b,c){var d=this;this.resizeService=a;this.router=b;this.route=c;this.imageLinks$=new W.ReplaySubject(1);this.paginate=!1;this.container$=new W.ReplaySubject(1);this.containerResize$=this.container$.pipe(C(function(e){return e.nativeElement}),Df(function(e){return wnc(d.resizeService,e)}));this.issueId$=new W.ReplaySubject(1);this.lastRenderedImageIndex$=new W.BehaviorSubject(0);this.allImages$=this.imageLinks$.pipe(C(function(e){e=e.map(function(f){if(f.comment){var h=
Wya(f.href);if(h)return{src:h,comment:f.comment}}}).filter(fm);return nfb(e)}));this.maxImagesInOneRow$=this.containerResize$.pipe(C(function(e){return Math.floor((e.width-16)/216)}),Af({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(C(function(e){return 2*e}));this.imagesToRender$=(0,W.combineLatest)([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(C(function(e){var f=n(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)}),rf())};s8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};s8.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};s8.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};ni.Object.defineProperties(s8.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return nl(this.imageLinks$)}}});
s8.\u0275fac=function(a){return new (a||s8)(B(r8),B(fl),B(Fk))};
s8.\u0275cmp=u({type:s8,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&zg(xnc,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&&(E(0,"div",null,0),P(2,mfb,3,3,"ng-container",1),U(3,"async"),G());a&2&&(A(2),D("ngIf",V(3,1,b.allImages$)))},dependencies:function(){return[q8,fy,gy,pC,GN,ny,t8]},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 t8=function(){};t8.prototype.transform=function(a){return a.split(".png")[0]};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275pipe=$c({name:"removePngExtension",type:t8,pure:!0});
var ync={IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links"},rgb=[].concat(r(Object.values(ync)));
var znc=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=zo(function(d){Mo(c.analytics,Aq.EDIT_ISSUE,"click",d)});this.recordImpressionOnce=zo(function(){Mo(c.analytics,Aq.EDIT_ISSUE,"view","SW")})},fgb=function(a,b,c){a.recordInteractionOnce(c);zu(a.issueInteractionsTracking,b,c+"-content-interacted");zu(a.issueInteractionsTracking,b,"SW-content-interacted")};
var u8=function(a){this.activeSession=a;this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.originalHref=this.redirectedHref=""};
u8.prototype.ngOnChanges=function(){var a;a:{var b=null==(a=this.sourceComment)?void 0:a.formattedComment;if(b){if(un(b,oq,2,Rn)){a=sfb(Hl(b,oq,2,Rn).getContent());break a}if(un(b,Qn,3,Rn)){a=sfb(Hl(b,Qn,3,Rn).getContent());break a}if(un(b,pq,1,Rn)){a=document.createElement("div");b=n(Nb(Hl(b,pq,1,Rn),qq,1));for(var c=b.next();!c.done;c=b.next())(c=c.value.getContent())&&a.appendChild(sfb(c));break a}}a=void 0}if(a=a&&Anc(this,a)){b=a.dataset.bOriginalHref;c=a.dataset.bRedirectedHref;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(Bnc.has(c.nodeName))break;var 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(Bnc.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&&(b=a="",Ro(this.relatedLink)?
b=a=this.relatedLink.href:To(this.relatedLink)&&(a=this.getIssueUrl(this.relatedLink.issueId),b=this.relatedLink.issueId,b=this.activeSession.isInternalSession()?ina(this.activeSession.getAppBaseUrl(),b):this.getIssueUrl(b)),this.originalHref=this.redirectedHref=a,this.isExternalLink=!1,this.rightText=this.leftText="",this.linkText=b)};
var Anc=function(a,b){if(a.relatedLink){if(To(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(r(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(Ro(a.relatedLink)){var d=a.relatedLink;return[].concat(r(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})}}};
u8.prototype.getIssueUrl=function(a){return this.activeSession.getAppBaseUrl()+a};u8.\u0275fac=function(a){return new (a||u8)(B(NG))};
u8.\u0275cmp=u({type:u8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},features:[ed],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"],["target","_blank",1,"keep-focus-ring",3,"href"],["aria-hidden",
"true",1,"muted","margin-xs-left","right"]],template:function(a,b){a&1&&(E(0,"div",0),Q(1," \u201c "),P(2,ofb,3,3,"span",1),P(3,pfb,3,3,"ng-container",2),P(4,qfb,2,2,"ng-template",null,3,Hg),P(6,rfb,2,1,"span",4),Q(7," \u201d\n"),G());if(a&2){var c=O(5);A(2);D("ngIf",b.leftText);A(1);D("ngIf",b.isExternalLink)("ngIfElse",c);A(3);D("ngIf",b.rightText)}},dependencies:[nV,gy,uL],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:200px;user-select:none}.left[_ngcontent-%COMP%]{direction:rtl;text-align:left;unicode-bidi:bidi-override}"],
changeDetection:0});var Bnc=new Set(["BR"]);
var v8=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 W.ReplaySubject(1);this.currentIssueId$=new W.ReplaySubject(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new W.BehaviorSubject(10);this.issuesMap$=this.issueReferences$.pipe(hf(fm),Df(function(h){var k=Wj(h.map(function(q){return q.issueId}),Vj);return f.issueFridge.watchSet(k).pipe(C(function(q){return new Map(q.map(function(t){return[null==
t?void 0:t.issueId.toString(),t]}))}),C(function(q){return new Map(k.map(function(t){return[t,q.get(t)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(hf(fm),C(function(h){var k=new Map;h=n(h);for(var q=h.next();!q.done;q=h.next()){q=q.value;var t=q.issueId.toString();k.has(t)?k.get(t).push(q):k.set(t,[q])}return k}));this.allMentionedIssues$=(0,W.combineLatest)([this.issueReferencesMap$,this.issuesMap$]).pipe(C(function(h){h=n(h);var k=h.next().value;h=h.next().value;return[].concat(r(h)).filter(function(q){return n(q).next().value!==
f.issueId}).map(function(q){var t=n(q);q=t.next().value;t=t.next().value;var x=k.get(q),y=null==x?void 0:x.map(function(F){var K,J,R=null==(K=F.comment)?void 0:null==(J=K.userPerformingActionUser)?void 0:J.emailAddress;return{commentNumber:F.sourceCommentNumber,author:(null==R?void 0:R.split("@")[0])+"@",issueEvent:F.comment}});return{hasViewAccess:!!t,issueId:q,shortIssueUrl:ina(f.activeSession.getAppBaseUrl(),q),sourceComments:y,title:null==t?void 0:t.snapshot[0].title,priority:t?t.snapshot[0].priority:
null,relatedLinks:x}})}));this.mentionedIssuesToRender$=(0,W.combineLatest)([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(C(function(h){var k=n(h);h=k.next().value;k=k.next().value;return f.paginate?h.slice(0,k):h.slice(0,5)}))};v8.prototype.getCommentNumberLink=function(a){return tl(this.issueId,{comment:a})};v8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
v8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};ni.Object.defineProperties(v8.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}}});v8.\u0275fac=function(a){return new (a||v8)(B(NG),B(FK),B(fl),B(Fk),B(qV))};
v8.\u0275cmp=u({type:v8,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,zfb,3,3,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.mentionedIssuesToRender$))},dependencies:function(){return[fy,gy,i1,pC,tF,u8,q8,ny,w8]},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 w8=function(){};w8.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(fm)};w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275pipe=$c({name:"toComments",type:w8,pure:!0});
var x8=function(a,b){var c=this;this.router=a;this.route=b;this.allLinks$=new W.ReplaySubject(1);this.issueId$=new W.ReplaySubject(1);this.lastRenderedRelatedLinkIndex$=new W.BehaviorSubject(10);this.paginate=!1;this.trackByHref=function(d,e){return e[0].href};this.allLinkGroups$=this.allLinks$.pipe(C(function(d){return Tna(d,function(e){return e.href})}));this.linkGroupsToRender$=(0,W.combineLatest)([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(C(function(d){var e=n(d);d=e.next().value;
e=e.next().value;return c.paginate?Hfb(d,e):6===d.length?Hfb(d,6):Hfb(d,5)}))};x8.prototype.ngOnInit=function(){};x8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};ni.Object.defineProperties(x8.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("Xa");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return nl(this.issueId$)}}});
x8.\u0275fac=function(a){return new (a||x8)(B(fl),B(Fk))};
x8.\u0275cmp=u({type:x8,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,Ffb,3,3,"ng-container",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.allLinkGroups$))},dependencies:function(){return[q8,fy,gy,pC,u8,ny,y8]},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 Gfb=eo(function(a){return Math.min.apply(Math,r(a.map(function(b){return b.sourceCommentNumber})))},bua),y8=function(){};y8.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(fm)};y8.\u0275fac=function(a){return new (a||y8)};y8.\u0275pipe=$c({name:"toComments",type:y8,pure:!0});
var z8=function(){Az.apply(this,arguments)};X(z8,Az);z8.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(z8)))(b||z8)}}();z8.\u0275dir=u({type:z8,selectors:[["","expandable-tab-content",""]],features:[Of]});var A8=function(){Az.apply(this,arguments)};X(A8,Az);A8.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(A8)))(b||A8)}}();A8.\u0275dir=u({type:A8,selectors:[["","expandable-tab-header",""]],features:[Of]});var B8=function(){Az.apply(this,arguments)};X(B8,Az);
B8.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(B8)))(b||B8)}}();B8.\u0275dir=u({type:B8,selectors:[["","expandable-tab-icon",""]],features:[Of]});var C8=function(){};C8.prototype.ngOnInit=function(){};C8.\u0275fac=function(a){return new (a||C8)};
C8.\u0275cmp=u({type:C8,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(Ag(c,A8,5,vg),Ag(c,z8,5,vg),Ag(c,B8,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 Ifb=function(a){return{tab:a}},Cnc=function(a){return{allTabsExpanded:a}},D8=function(){Z.apply(this,arguments);this.internalTabKeys$=new W.ReplaySubject(1);this.ariaLabel="";this.internalExpandedTabs=new DQ;this.expandedTabsChanged=new sx;this.contentShownChanged=new sx;this.tabs$=new W.BehaviorSubject([]);this.allTabsExpanded$=(0,W.combineLatest)([this.tabs$,this.internalExpandedTabs.value$]).pipe(C(function(a){a=n(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}};X(D8,Z);D8.\u0275dir=Z.\u0275dir;
D8.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(Cf(void 0),C(function(){return a.internalTabs.toArray()}),C(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),Df(function(b){return(0,W.combineLatest)([(0,W.of)(b),a.internalTabKeys$])}),C(function(b){b=n(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,W.combineLatest)([this.internalTabKeys$,
this.internalExpandedTabs.value$]).pipe(C(function(b){var c=n(b);b=c.next().value;c=c.next().value;return Sma(new Set(b),new Set(c))}),rf(Ri)).subscribe(function(b){a.contentShownChanged.emit(b)}))};D8.prototype.ngOnInit=function(){};D8.prototype.showAll=function(){this.internalExpandedTabs.add.apply(this.internalExpandedTabs,r(this.tabs$.value.map(function(a){return a.key})));this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
D8.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};var Pfb=function(a){var b;return Pe(function(c){if(1==c.nextAddress)return Re(c,(0,W.firstValueFrom)(a.allTabsExpanded$),2);(b=c.yieldResult)?a.hideAll():a.showAll();Ve(c)})};
ni.Object.defineProperties(D8.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(r(a)))},get:function(){var a;return null!=(a=nl(this.internalTabKeys$))?a:[]}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){this.internalExpandedTabs.reset(a)},get:function(){return[].concat(r(this.internalExpandedTabs))}}});D8.\u0275fac=function(){var a;return function(b){return(a||(a=Gd(D8)))(b||D8)}}();
D8.\u0275cmp=u({type:D8,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&Ag(c,C8,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:[Of],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"],["noTemplate",""]],template:function(a,b){a&1&&(E(0,"div",0)(1,"div",1),P(2,Ofb,8,16,"button",2),U(3,"async"),G(),P(4,Qfb,3,6,"ng-container",3),U(5,"async"),G(),E(6,"div",4),P(7,Yfb,3,3,"ng-container",5),U(8,"async"),G(),P(9,cgb,3,2,"ng-template",null,6,Hg));a&2&&(A(1),Uf("aria-label",b.ariaLabel),A(1),D("ngForOf",V(3,6,b.tabs$))("ngForTrackBy",b.trackByKey),A(2),D("ngIf",og(12,Cnc,V(5,
8,b.allTabsExpanded$))),A(3),D("ngForOf",V(8,10,b.tabs$))("ngForTrackBy",b.trackByKey))},dependencies:[fy,gy,my,pC,yD,ny],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%]: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 ggb=function(){return[]},E8=function(a,b,c,d,e,f,h){Z.call(this);var k=this;this.activeSession=a;this.userPreferencesManager=b;this.issueInteractionsTracking=c;this.issueFridge=d;this.analytics=e;this.eventsForIssueFridge=f;this.currentTracker=h;this.TabKeys=ync;this.issueId$=new W.ReplaySubject(1);this.issue$=this.issueId$.pipe(Df(function(q){return k.issueFridge.watch(q)}),hf(fm));this.commentNumberToEventMap$=this.issueId$.pipe(Df(function(q){return k.eventsForIssueFridge.watch(q)}),C(function(q){var t;
return null!=(t=null==q?void 0:q.events)?t:[]}),C(function(q){return new Map(q.filter(function(t){return!!t.commentNumber}).map(function(t){return[t.commentNumber,t]}))}));this.relatedLinks$=(0,W.combineLatest)([this.issue$,this.commentNumberToEventMap$]).pipe(C(function(q){q=n(q);var t=q.next().value,x=q.next().value,y;return(null==(y=t.relatedLinks)?void 0:y.map(function(F){return Object.assign({},F,{comment:x.get(F.sourceCommentNumber)})}))||[]}));this.imageLinks$=this.relatedLinks$.pipe(C(function(q){return q.filter(Tya)}));
this.distinctImageLinksCount$=this.imageLinks$.pipe(C(function(q){return Wj(q,function(t){return Wya(t.href)})}),C(function(q){return q.length}));this.shouldShowImages$=this.imageLinks$.pipe(C(function(q){return k.activeSession.isInternalSession()&&Cq(k.activeSession,"enableImageSummary")&&Dnc(k,q)}));this.issues$=this.relatedLinks$.pipe(C(function(q){return q.filter(To)}));this.distinctIssuesCount$=this.issues$.pipe(C(function(q){return q.filter(function(t){return t.issueId!==k.issueId})}),C(function(q){return Wj(q,
function(t){return t.issueId})}),C(function(q){return q.length}));this.shouldShowIssues$=this.distinctIssuesCount$.pipe(C(function(q){return Cq(k.activeSession,"enableRelatedIssuesWidget")&&!k.currentTracker.inTracker&&!!q}));this.otherLinks$=this.relatedLinks$.pipe(C(function(q){return q.filter(Xya)}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(C(function(q){return Wj(q,function(t){return t.href})}),C(function(q){return q.length}));this.shouldShowLinks$=this.otherLinks$.pipe(C(function(q){return Cq(k.activeSession,
"enableLinksWidget")&&k.shouldShowLinks(q)}));this.tabKeys$=(0,W.combineLatest)([this.shouldShowImages$.pipe(C(function(q){return{show:q,key:"SW-images"}})),this.shouldShowIssues$.pipe(C(function(q){return{show:q,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(C(function(q){return{show:q,key:"SW-links"}}))]).pipe(C(function(q){return q.filter(function(t){return t.show}).map(function(t){return t.key})}));this.shouldShowSummaryCard$=this.tabKeys$.pipe(C(function(q){return!!q.length}),qf(0,W.asapScheduler));
this.initiallyExpandedTabs=rgb.map(function(q){return EDb(k.userPreferencesManager,q)?void 0:q}).filter(fm);this.onTabExpanded$=new sx;this.issueSummaryTracking=new znc(this.issueInteractionsTracking,this.analytics)};X(E8,Z);E8.\u0275dir=Z.\u0275dir;
E8.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.onTabExpanded$.pipe(of(1E3),Df(function(b){var c=b.expandedTabKeys;return DDb(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=n(b),f=e.next();!f.done;f=e.next())zu(c.issueInteractionsTracking,d,f.value+"-available");0<b.size&&zu(c.issueInteractionsTracking,
d,"SW-available")}))};E8.prototype.shouldShowLinks=function(a){return 0===a.length||a.every(function(b){return 1===b.sourceCommentNumber})?!1:!0};var Dnc=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 bI(a.userPreferencesManager).showInlineImages&&b?!1:!0};ni.Object.defineProperties(E8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return nl(this.issueId$)}}});
E8.\u0275fac=function(a){return new (a||E8)(B(NG),B(aI),B(AQ),B(FK),B(BK),B(hK),B(LJ))};
E8.\u0275cmp=u({type:E8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId"},features:[Of],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&&(E(0,"h3",0),Q(1,"Issue summary"),G(),
P(2,sgb,13,5,"expandable-tabs",1),U(3,"async"));a&2&&(A(2),D("ngIf",V(3,1,b.tabKeys$)))},dependencies:[gy,C8,z8,A8,B8,D8,s8,yD,v8,x8,ny],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 Fnc=function(a){Y.call(this,a,-1,Enc)};X(Fnc,Y);var Enc=[1];Fnc.messageId="b.ListStatusUpdateHistoryResponse";
var F8=function(a){this.executor=a};F8.prototype.get=function(a,b){return this.executor.get({url:LBb(a),responseConstructor:II,options:{params:{issueCommentView:String($m[void 0===b?"MARKDOWN":b])}}}).pipe(C(ln))};
F8.prototype.update=function(a){var b=this.executor,c=b.post,d=LBb(a.issueId),e=new II;a.issueId&&e.setIssueId(a.issueId);a.updateText&&m(e,2,a.updateText);a.formattedText&&Vb(e,3,a.formattedText);a.formattingMode&&e.setFormattingMode($m[a.formattingMode]);a.author&&e.setAuthor(Yl(a.author));a.updateTime&&e.setUpdateTime(pm(a.updateTime));a.version&&e.setVersion(a.version);return c.call(b,{url:d,body:e,responseConstructor:II}).pipe(C(ln))};
F8.prototype.delete=function(a){return this.executor.delete({url:LBb(a),responseConstructor:null})};var Gnc=function(a,b){return a.executor.get({url:"action/issues/"+b+"/statusUpdateHistory",responseConstructor:Fnc,options:{params:{issueCommentView:String($m.MARKDOWN)}}}).pipe(C(function(c){return Nb(c,II,1).map(ln)}))};F8.\u0275fac=function(a){return new (a||F8)(p(lH))};F8.\u0275prov=Hc({token:F8,factory:F8.\u0275fac,providedIn:"root"});
var G8=function(a){this.matDialog=a};G8.prototype.show=function(a,b){"LITERAL"===a.formattingMode&&(a.formattingMode="PLAIN");this.dialog=this.matDialog.open(H8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{formattingAudience:b,statusUpdate:a}});return(0,W.firstValueFrom)(CC(this.dialog))};G8.\u0275fac=function(a){return new (a||G8)(p(IC))};G8.\u0275prov=Hc({token:G8,factory:G8.\u0275fac,providedIn:"root"});
var H8=function(a,b,c,d,e){Z.call(this);var f=this;this.activeSession=a;this.data=b;this.dialogService=c;this.dialogRef=d;this.CHAR_LIMIT=1E3;this.MARKDOWN="MARKDOWN";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=Si(this.origStatusUpdate);
this.subscriptions.add(aY(e,function(){return f.isModified()},!1))};X(H8,Z);H8.\u0275dir=Z.\u0275dir;var Hnc=function(a){var b,c;return null!=(c=aza(null==(b=a.newStatusUpdate)?void 0:b.updateText))?c:""};g=H8.prototype;g.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Ef(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Ef(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!Ri(this.newStatusUpdate,this.origStatusUpdate)};g.closeDialogForSave=function(){var a;null==(a=this.dialogService.dialog)||a.close(this.newStatusUpdate)};g.asNumber=function(a){return Number(a)};H8.\u0275fac=function(a){return new (a||H8)(B(NG),B(HC),B(G8),B(EC),B($X))};
H8.\u0275cmp=u({type:H8,selectors:[["ng-component"]],features:[Of],decls:18,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","contentChange","onSubmit"],["class","char-limit-warning",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,"mat-dialog-close","disabled"],[1,"char-limit-warning"],["tabindex","0",1,"clamper","line-clamp-4"],[3,"comment","issueId","formattingMode","audience"]],template:function(a,b){a&1&&(E(0,"h1",0),Q(1,"Editing Status Update"),G(),E(2,"section",1)(3,"p",2),Q(4," Editing the Status Update will not permanently remove old ones from database history. "),H(5,"br"),Q(6," For deletion of PII or other sensitive content, please "),E(7,"a",3),Q(8," file a support request. "),G()(),E(9,"b-comment-draft",
4),M("contentChange",function(c){return b.newStatusUpdate.updateText=c})("onSubmit",function(){return b.closeDialogForSave()}),G(),P(10,tgb,2,1,"p",5),E(11,"b-markdown-toggle",6),M("change",function(c){return b.newStatusUpdate.formattingMode=c}),G(),P(12,ugb,2,4,"div",7),G(),E(13,"footer",8)(14,"button",9),Q(15," Cancel "),G(),E(16,"button",10),Q(17," Save "),G()());a&2&&(A(7),D("href",b.contentRemovalRequestLink,le),A(2),$f(Hnc(b)),D("content",b.newStatusUpdate.updateText),A(1),D("ngIf",1E3<b.newStatusUpdate.updateText.length),
A(1),Zf("margin-bottom",b.newStatusUpdate.formattingMode!==b.MARKDOWN),D("initialValue",b.origStatusUpdate.formattingMode),A(1),D("ngIf",b.newStatusUpdate.formattingMode===b.MARKDOWN),A(2),D("mat-dialog-close",void 0),A(2),D("mat-dialog-close",b.newStatusUpdate)("disabled",0===b.newStatusUpdate.updateText.length||1E3<b.newStatusUpdate.updateText.length))},dependencies:[JC,KC,LC,MC,gy,pC,FV,EV,fW],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}.char-limit-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}\n/*# sourceMappingURL=edit_status_update_dialog.css.map */'],
changeDetection:0});
var I8=function(a){this.matDialog=a};I8.prototype.show=function(a){this.dialog=this.matDialog.open(J8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return(0,W.firstValueFrom)(CC(this.dialog))};I8.\u0275fac=function(a){return new (a||I8)(p(IC))};I8.\u0275prov=Hc({token:I8,factory:I8.\u0275fac,providedIn:"root"});var J8=function(a,b,c){Z.call(this);this.data=a;this.dialogService=b;this.dialogRef=c;this.statusUpdates=a.statusUpdates};X(J8,Z);J8.\u0275dir=Z.\u0275dir;
J8.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Ef(this.destroyed$)).subscribe(function(b){if("Escape"===b.key){var c;null==(c=a.dialogService.dialog)||c.close()}});this.dialogRef.backdropClick().pipe(Ef(this.destroyed$)).subscribe(function(){var b;null==(b=a.dialogService.dialog)||b.close()})};J8.\u0275fac=function(a){return new (a||J8)(B(HC),B(I8),B(EC))};
J8.\u0275cmp=u({type:J8,selectors:[["ng-component"]],features:[Of],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&&(E(0,"h1",0),Q(1,"History for Status Update"),G(),E(2,"section",1)(3,"ul",2),P(4,vgb,19,12,"li",3),G()(),E(5,"footer",4)(6,"button",5),Q(7," Close "),G()());a&2&&(A(4),D("ngForOf",b.statusUpdates),A(2),D("mat-dialog-close",void 0))},dependencies:[fy,fO,pC,JC,KC,LC,MC,WP,PQ,OQ,GQ,XP],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 Inc=["noteContainer"],Jnc={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},K8=function(a,b,c,d,e,f,h,k,q){Z.call(this);var t=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=Jnc;this.FormattingMode=vAb;this.issueId$=new W.ReplaySubject(1);this.issue$=this.issueId$.pipe(Df(this.issueFridge.watch));
this.accessLevel$=this.issue$.pipe(C(function(x){var y;return null==x?void 0:null==(y=x.accessLimit)?void 0:y.accessLevel}));this.issueTeamId$=this.issue$.pipe(C(function(x){var y;return null==x?void 0:null==(y=x.aggregatedData)?void 0:y.teamId}));this.isCollapsed=!1;this.currentUserIsAuthoritative$=(0,W.combineLatest)([this.issue$,this.issueTeamId$]).pipe(C(function(x){x=n(x);var y=x.next().value;x=x.next().value;var F=t.currentUser.email,K;y=Ql(null==(K=mo(y))?void 0:K.assigneeUser)||void 0;K=F===
y;x=t.currentUser.allTeamIds.includes(String(x));return K||x}));this.statusUpdate$=this.issue$.pipe(C(function(x){return null==x?void 0:x.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(hf(fm),C(function(x){return{unlinkifiedComment:x.updateText,formattedComment:x.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(C(function(x){var y;return null!=(y=aza(null==x?void 0:x.updateText))?y:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(C(function(x){return""===((null==x?
void 0:x.updateText)||"").trim()}));this.freshnessIndicator$=(0,W.combineLatest)([this.statusIsEmpty$,this.statusUpdate$]).pipe(C(function(x){var y=n(x);x=y.next().value;y=y.next().value;if(x)return 2;var F;x=(null==y?void 0:null==(F=y.updateTime)?void 0:F.seconds)||0;return 86400>Date.now()/1E3-x?0:1}));this.uiState$=(0,W.combineLatest)([this.currentUserIsAuthoritative$,this.statusIsEmpty$]).pipe(C(function(x){var y=n(x);x=y.next().value;y=y.next().value;return x&&y?"authoritative-team no-content":
y?"display-none no-content":"normal"}),Cf("display-none loading"));this.formattingModeOverride$=new W.BehaviorSubject(void 0);this.formattingMode$=(0,W.combineLatest)([this.statusUpdate$,this.formattingModeOverride$]).pipe(C(function(x){var y=n(x);x=y.next().value;return(y=y.next().value)?y:(null==x?void 0:x.formattingMode)||"PLAIN"}));this.menuItems$=(0,W.combineLatest)([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(C(function(x){var y=n(x),
F=y.next().value,K=y.next().value;x=y.next().value;y=y.next().value;var J=null!=K;K=K&&""!==(null==K?void 0:K.updateText);var R=[];K&&R.push({type:"submenu",label:"View as",className:"view-as-format",items:[{type:"select",label:"Classic",action:function(){t.formattingModeOverride$.next("PLAIN")},selected:"PLAIN"===y},{type:"select",label:"Markdown",action:function(){t.formattingModeOverride$.next("MARKDOWN")},selected:"MARKDOWN"===y},{type:"select",label:"Source",action:function(){t.formattingModeOverride$.next("LITERAL")},
selected:"LITERAL"===y}]});R.push({type:"action",label:"Edit Status Update",action:function(){Ggb(t)}});J&&R.push({type:"action",label:"Show editing history",action:function(){Knc(t,F)}});K&&x&&R.push({type:"action",label:"Delete Status Update",action:function(){t.confirmationDialogService.open({title:"Delete Status Update?",content:Co("\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(){t.doDelete()}})}});R.push(Lnc);return R}))};X(K8,Z);K8.\u0275dir=Z.\u0275dir;K8.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return Pe(function(d){if(1==d.nextAddress)return Re(d,(0,W.firstValueFrom)(a.uiState$.pipe(hf(function(e){return"display-none loading"!==e}))),2);b=d.yieldResult;c=Igb(b);Mo(a.analytics,Aq.ISSUE,"statusUpdateDisplay",c);Ve(d)})},1E3)};
K8.prototype.ngAfterViewInit=function(){var a;84<(null==(a=this.noteContainer)?void 0:a.nativeElement.scrollHeight)&&(this.isCollapsed=!0)};
var Ggb=function(a){var b,c,d,e,f,h,k;return Pe(function(q){switch(q.nextAddress){case 1:return Re(q,(0,W.firstValueFrom)(a.issueId$),2);case 2:return b=q.yieldResult,c={issueId:b,updateText:"",version:-1},e=null!=(d=nl(a.statusUpdate$))?d:c,Re(q,(0,W.firstValueFrom)(a.accessLevel$),3);case 3:return f=q.yieldResult,h="INTERNAL"===f?1:2,Re(q,a.editStatusUpdateDialogService.show(e,h),4);case 4:k=q.yieldResult;if(null==k)return q.return();a.statusUpdateService.update(k).subscribe(function(t){a.didSave(b,
t)},function(t){a.errorHandler.errorHandler(null,t)});Ve(q)}})},wgb=function(a){var b,c;return Pe(function(d){if(1==d.nextAddress)return Re(d,(0,W.firstValueFrom)(a.issueId$),2);b=d.yieldResult;c=nl(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)});Ve(d)})};K8.prototype.didSave=function(a,b){IJ(this.issueFridge,a,function(c){c.statusUpdate=b});this.issueFridge.poke(a)};
var Knc=function(a,b){var c;Pe(function(d){if(1==d.nextAddress)return Re(d,(0,W.firstValueFrom)(Gnc(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);Ve(d)})};K8.prototype.doDelete=function(){var a=this,b;Pe(function(c){if(1==c.nextAddress)return Re(c,(0,W.firstValueFrom)(a.issueId$),2);b=c.yieldResult;a.statusUpdateService.delete(b).subscribe(function(){IJ(a.issueFridge,b,function(d){d.statusUpdate=void 0});a.issueFridge.poke(b)});Ve(c)})};
ni.Object.defineProperties(K8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});K8.\u0275fac=function(a){return new (a||K8)(B(BK),B(UL),B(mN),B(G8),B(xJ),B(FK),B(iL),B(F8),B(I8))};
K8.\u0275cmp=u({type:K8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&zg(Inc,5);if(a&2){var c;yg(c=Bg())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},features:[Of],decls:2,vars:3,consts:[[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["svgIcon","group","color","primary",1,"margin-xs-right","shrink-0"],[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"],[4,"ngIf"],[1,"edit-info","right"],["matTooltip","Status Update actions",3,"buttonLabel","menuItems",4,"ngIf"],["class","empty-message muted",4,"ngIf"],["mat-button","","aria-label","Mark Status Update as fresh","color","primary","class","gmat-button small margin-xs-right mark-fresh",3,"click",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"],[1,"empty-message","muted"]],template:function(a,b){a&1&&(P(0,Hgb,21,21,"div",0),U(1,"async"));a&2&&D("ngIf",V(1,1,b.uiState$))},dependencies:[KY,GV,ey,gy,fO,iM,mM,MQ,pC,yD,tF,ny,jR],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}']});
var Lnc={type:"action",label:"Using the Status Update field...",action:function(){Kma(window,Gh("https://developers.google.com/issue-tracker/concepts/status-update"),"_blank")},icon:"help-outline",className:"border-top"};
var L8=function(a,b,c,d,e,f,h,k,q,t){Z.call(this);var x=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=t;this.id$=this.brain.id$;this.issueAndEvents$=(0,W.combineLatest)([this.brain.issueJs$.pipe(hf(Boolean)),this.brain.eventsJs$]);this.enableSummarySection=Cq(this.activeSession,"enableSummarySection");this.enableIDPCanonicalRecommendation=Cq(this.activeSession,
"enableIDPCanonicalRecommendation");this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(hf(fm),Df(function(y){return x.editIssueService.issueCommentDraft(y).comment$}));this.finishedRendering$=(0,W.combineLatest)([this.brain.eventsJs$.pipe(qf(0)),Iq("#AddCommentBox textarea",this.element.nativeElement)]).pipe(sf())};X(L8,Z);L8.\u0275dir=Z.\u0275dir;
L8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(hf(fm),Ef(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){Mnc(a)});Iq("#comment1 .critical-feature",this.element.nativeElement).pipe(Ef(this.destroyed$)).subscribe(function(){var b=function(){k5b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.issueAndEvents$.pipe(vf()).subscribe(function(b){var c=
n(b);b=c.next().value;c=c.next().value;Nnc(a,b,c)}));this.subscriptions.add(this.finishedRendering$.pipe(Gf(this.comment$)).subscribe(function(b){b=n(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};var Nnc=function(a,b,c){var d=b.issue,e=c.map(function(f){return f.unlinkifiedComment});b=pua(d,c).length;c=qua(d,c);e=e.filter(Boolean).length;b=5<=b||10<=e||10<=c?"collab":"other";oHb(a.clearcut,"view_idp_"+b);xo("dimension10",b)};L8.prototype.unloadPageHandler=function(){Mnc(this)};
var Mnc=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);Mo(a.analytics,Aq.EDIT_ISSUE,"scroll","commentThread",e);vK(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};
L8.\u0275fac=function(a){return new (a||L8)(B(gL),B(aI),B(wN),B(BK),B(Rd),B(HQ),B(eJ),B(GZ),B(uK),B(NG))};
L8.\u0275cmp=u({type:L8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&M("unload",function(){return b.unloadPageHandler()},!1,Ud)},features:[Of],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 padded-s-y padded-x",3,
"currentIssueId",4,"ngIf"],[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"rounded","margined-s","padded-s-y","padded-x",3,"currentIssueId"],[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&&(E(0,"div",0),P(1,Kgb,5,4,"ng-container",1),U(2,"async"),P(3,Lgb,3,5,"issue-summary-card",2),U(4,"async"),P(5,Ogb,5,5,"div",3),U(6,"async"),G());
a&2&&(D("bFocus",!0),A(1),D("ngIf",V(2,4,b.id$)),A(2),D("ngIf",b.enableSummarySection&&V(4,6,b.id$)),A(2),D("ngIf",V(6,8,b.id$)))},dependencies:[gy,p8,b8,XY,a8,Z7,n8,E8,o8,K8,ny],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}"]});
var M8=function(){};M8.\u0275fac=function(a){return new (a||M8)};M8.\u0275mod=Yc({type:M8});M8.\u0275inj=Ic({imports:[vy]});
var N8=function(){};N8.\u0275fac=function(a){return new (a||N8)};N8.\u0275mod=Yc({type:N8});N8.\u0275inj=Ic({imports:[vy,NY,M8,$G,AF,uF,uG,g4,CR]});
var O8=function(){};O8.\u0275fac=function(a){return new (a||O8)};O8.\u0275mod=Yc({type:O8});O8.\u0275inj=Ic({imports:[NY,N8,cW,vy,AO,TM,dR,AF,uF,uG,g4,PR,RM,gR]});
var P8=function(){};P8.\u0275fac=function(a){return new (a||P8)};P8.\u0275mod=Yc({type:P8});P8.\u0275inj=Ic({imports:[vy,aH,uF,NC,UH,iN,AF,pO,qJ,fz,gz,PM,uG,pB]});
var Q8=function(){};Q8.\u0275fac=function(a){return new (a||Q8)};Q8.\u0275mod=Yc({type:Q8});Q8.\u0275inj=Ic({imports:[vy,AF,uF,uG,YC,aD]});
var R8=function(a){Z.call(this);this.prefs=a};X(R8,Z);R8.\u0275dir=Z.\u0275dir;R8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(Ef(this.destroyed$)).subscribe()};R8.\u0275fac=function(a){return new (a||R8)(B(aI))};
R8.\u0275cmp=u({type:R8,selectors:[["b-toggle-code-font"]],features:[Of],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(fg(),E(0,"mat-slide-toggle",0),M("change",function(c){return b.onChange(c)}),U(1,"async"),gg(2),G());a&2&&D("checked",V(1,1,b.prefs.codeFont$))},dependencies:[jS,tF,ny],changeDetection:0});
var S8=function(){};S8.\u0275fac=function(a){return new (a||S8)};S8.\u0275mod=Yc({type:S8});S8.\u0275inj=Ic({imports:[vy,AF,iN,NC,uF,kS,qJ,uG,RM]});
var T8=function(){};T8.\u0275fac=function(a){return new (a||T8)};T8.\u0275mod=Yc({type:T8});T8.\u0275inj=Ic({providers:[e7],imports:[vy,DR,lI,kX,P8,TM,xW,Q3,m1,Q8,AF,uF,uG,UH,PM,S8]});
var U8=function(){};U8.\u0275fac=function(a){return new (a||U8)};U8.\u0275mod=Yc({type:U8});U8.\u0275inj=Ic({imports:[vy,uF,AF,YC,xR,BF]});
var V8=function(){};V8.\u0275fac=function(a){return new (a||V8)};V8.\u0275mod=Yc({type:V8});V8.\u0275inj=Ic({imports:[vy]});
var W8=function(){};W8.\u0275fac=function(a){return new (a||W8)};W8.\u0275mod=Yc({type:W8});W8.\u0275inj=Ic({imports:[vy,TM,xW,AO,gR,ER,cW]});
var X8=function(){};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275mod=Yc({type:X8});X8.\u0275inj=Ic({imports:[vy,cW]});
var Y8=function(){};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275mod=Yc({type:Y8});Y8.\u0275inj=Ic({imports:[NY,N8,cW,vy,AO,TM,W8,dR,g4,PR,gR,uG,X8,AF,uF,V8]});
var Z8=function(){};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275mod=Yc({type:Z8});Z8.\u0275inj=Ic({imports:[vy,Y8,W8,AF,uF,RM]});
var $8=function(){};$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275mod=Yc({type:$8});$8.\u0275inj=Ic({imports:[vy,uF,AF,qJ]});
var a9=function(){};a9.\u0275fac=function(a){return new (a||a9)};a9.\u0275mod=Yc({type:a9});a9.\u0275inj=Ic({imports:[cW,vy,Z8,O8,Q3,Q8,AF,uF,uG,RM,PM,$8,gR,qJ]});
var b9=function(){};b9.\u0275fac=function(a){return new (a||b9)};b9.\u0275mod=Yc({type:b9});b9.\u0275inj=Ic({imports:[GL,RW,cW,vy,DR,fz,lI,AF,iN,uF,SO,SW]});
var c9=function(){};c9.\u0275fac=function(a){return new (a||c9)};c9.\u0275mod=Yc({type:c9});c9.\u0275inj=Ic({imports:[vy,m1,AF,uF,uG]});
var d9=function(){};d9.\u0275fac=function(a){return new (a||d9)};d9.\u0275mod=Yc({type:d9});d9.\u0275inj=Ic({imports:[vy,TM,dR,kR,PR]});
var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=Yc({type:e9});e9.\u0275inj=Ic({imports:[d9,vy,TM,dR,AF,kR,PR,UH,JN]});
var f9=function(){};f9.\u0275fac=function(a){return new (a||f9)};f9.\u0275mod=Yc({type:f9});f9.\u0275inj=Ic({imports:[cW,vy,vL]});
var g9=function(){};g9.\u0275fac=function(a){return new (a||g9)};g9.\u0275mod=Yc({type:g9});g9.\u0275inj=Ic({imports:[vy,m1,AF,uG,f9,bR,PR,UH,d9]});
var h9=function(){};h9.\u0275fac=function(a){return new (a||h9)};h9.\u0275mod=Yc({type:h9});h9.\u0275inj=Ic({imports:[d9,vy,AF,f9]});
var i9=function(){};i9.\u0275fac=function(a){return new (a||i9)};i9.\u0275mod=Yc({type:i9});i9.\u0275inj=Ic({imports:[vy,AF,uF,Cz]});
var j9=function(){};j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=Yc({type:j9});j9.\u0275inj=Ic({imports:[vy,i9,e9,uF,g9,h9]});
var k9=function(){};k9.\u0275fac=function(a){return new (a||k9)};k9.\u0275mod=Yc({type:k9});k9.\u0275inj=Ic({imports:[NC,iN,vy,GB,uF,AF,cW,gW]});
var l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=Yc({type:l9});l9.\u0275inj=Ic({imports:[cW,vy]});
var m9=function(){};m9.\u0275fac=function(a){return new (a||m9)};m9.\u0275mod=Yc({type:m9});m9.\u0275inj=Ic({imports:[vy,AO,AF,NC,GB,bR,kR,l9,gR]});
var n9=function(){};n9.\u0275fac=function(a){return new (a||n9)};n9.\u0275mod=Yc({type:n9});n9.\u0275inj=Ic({imports:[NY,cW,vy,AO,k9,TM,dR,AF,uF,uG,kR,m9,l9]});
var o9=function(){};o9.\u0275fac=function(a){return new (a||o9)};o9.\u0275mod=Yc({type:o9});o9.\u0275inj=Ic({imports:[vA,Vz,fz,AF,bW,gz,UH,uF,c9,U8,YY,T8,O8,a9,j9,g9,b9,JN,n9,gR]});
var p9=function(a,b){this.issueFridge=a;this.issueDetailsBrain=b;this.ROBOT_SLEEPING=wQb;this.issue$=this.issueDetailsBrain.id$.pipe(Df(this.issueFridge.watch),hf(fm));this.relatedLinks$=this.issue$.pipe(C(function(c){return c.relatedLinks||[]}));this.issueReferences$=this.relatedLinks$.pipe(C(function(c){return c.filter(To)}));this.ids$=(0,W.combineLatest)([this.issueReferences$.pipe(C(function(c){return c.map(function(d){return d.issueId})})),this.issue$]).pipe(C(function(c){var d=n(c);c=d.next().value;
d=d.next().value;return Onc(c,d)}));this.urls$=this.relatedLinks$.pipe(C(function(c){return c.filter(Ro)}),C(function(c){return c.map(function(d){return d.href})}),C(function(c){return[].concat(r(new Set(c)))}));this.state$=(0,W.combineLatest)([this.ids$,this.urls$]).pipe(C(function(c){var d=n(c);c=d.next().value;d=d.next().value;return{ids:c,urls:d,hasNoResults:0===c.length&&0===d.length}}))},Onc=function(a,b){var c=String(b.issueId);return[].concat(r(new Set(a))).filter(function(d){return d!==c})};
p9.\u0275fac=function(a){return new (a||p9)(B(FK),B(gL))};
p9.\u0275cmp=u({type:p9,selectors:[["issue-resources"]],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/b-resources-and-links","target","_blank"],[1,"gap"],[4,"ngFor","ngForOf"],[1,"margin-bottom"],["svgIcon","info",1,"icon-s","valign-middle"],[3,"issueIds"],[3,"href","originalHref"]],
template:function(a,b){a&1&&(E(0,"section",0),P(1,Ugb,4,2,"ng-container",1),U(2,"async"),G());a&2&&(A(1),D("ngIf",V(2,1,b.state$)))},dependencies:[fy,gy,nV,E5,yD,ny],styles:["[_nghost-%COMP%]{display:block;padding:8px;word-break:break-word}ul[_ngcontent-%COMP%]{list-style:disc}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}\n/*# sourceMappingURL=issue_resources.css.map */"]});
var q9=function(){};q9.\u0275fac=function(a){return new (a||q9)};q9.\u0275mod=Yc({type:q9});q9.\u0275inj=Ic({imports:[vy,cW,K5,uF]});
var r9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=wQb;this.id$=this.brain.id$.pipe(hf(fm));this.codeMentionsState$=this.id$.pipe(Df(function(d){return hjc(c.codeMentions,d)}))};r9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};r9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};r9.\u0275fac=function(a){return new (a||r9)(B(gL),B(b6))};
r9.\u0275cmp=u({type:r9,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&&(E(0,"section",0),P(1,$gb,3,3,"ng-container",1),U(2,"async"),G());a&2&&(A(1),D("ngIf",V(2,1,b.id$)))},dependencies:[fy,gy,W3,ny],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 ahb=function(){return[]},s9=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(Df(this.issueFridge.watch),hf(fm));this.commentNumberToEventMap$=this.issue$.pipe(C(function(f){return f.issueId}),Df(function(f){return e.eventsForIssueFridge.watch(f)}),C(function(f){var h;return null!=(h=null==f?void 0:f.events)?h:[]}),C(function(f){return new Map(f.filter(function(h){return!!h.commentNumber}).map(function(h){return[h.commentNumber,
h]}))}));this.relatedLinks$=(0,W.combineLatest)([this.issue$,this.commentNumberToEventMap$]).pipe(C(function(f){f=n(f);var h=f.next().value,k=f.next().value,q;return(null==(q=h.relatedLinks)?void 0:q.map(function(t){return Object.assign({},t,{comment:k.get(t.sourceCommentNumber)})}))||[]}));this.issueReferences$=this.relatedLinks$.pipe(C(function(f){return f.filter(To)}));this.imageLinks$=this.relatedLinks$.pipe(C(function(f){return f.filter(Tya)}));this.otherLinks$=this.relatedLinks$.pipe(C(function(f){return f.filter(Xya)}))};
s9.\u0275fac=function(a){return new (a||s9)(B(NG),B(FK),B(gL),B(hK))};
s9.\u0275cmp=u({type:s9,selectors:[["b-redesigned-issue-resources"]],decls:3,vars:3,consts:[[1,"carded","bg-main"],[4,"ngIf"],[3,"issueId","imageLinks","paginate",4,"ngIf"],[1,"margin-bottom"],[3,"issueReferences","currentIssueId","paginate",4,"ngIf"],[3,"links","issueId","paginate"],[3,"issueId","imageLinks","paginate"],[3,"issueReferences","currentIssueId","paginate"]],template:function(a,b){a&1&&(E(0,"section",0),P(1,dhb,16,10,"ng-container",1),U(2,"async"),G());a&2&&(A(1),D("ngIf",V(2,1,b.issue$)))},
dependencies:[gy,v8,s8,x8,ny],styles:["h4[_ngcontent-%COMP%]{margin:16px 8px}"]});
var t9=function(){};t9.\u0275fac=function(a){return new (a||t9)};t9.\u0275mod=Yc({type:t9});t9.\u0275inj=Ic({imports:[vy,g9,e9,h9]});
var u9=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()};u9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
u9.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)})};u9.\u0275fac=function(a){return new (a||u9)(B(qH,2),B(NJ),B(oK),B(pI),B(xJ))};
u9.\u0275cmp=u({type:u9,selectors:[["list-hotlists-page"]],features:[mg([qH])],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&&(E(0,"h2",0),Q(1,"Browse Hotlists"),G(),E(2,"div",1)(3,"a",2),Q(4," Create Hotlist "),G()(),E(5,"div",3),P(6,ehb,1,1,"b-spinner",4),P(7,fhb,1,1,"b-hotlist-grid",5),G());a&
2&&(A(3),D("href",b.createHotlistPath,le),A(3),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading))},dependencies:[gy,oY,fM,qC],encapsulation:2});
var Pnc=new Set(["issueId","modifiedTime","createdTime"]),v9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb){Z.call(this);var ub=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=t;this.analytics=x;this.appSearchState=y;this.issuePagination=F;this.userPreferencesManager=K;this.urlPreferences=J;this.gridPreferencesFetcher=R;this.paths=S;this.timeout=aa;this.errorHandler=
ba;this.statusMessages=ka;this.domSafe=wa;this.appEvents=Aa;this.hotlistFridge=Ka;this.issueFridge=Ja;this.batchIssueRelationshipsService=Jb;this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.enableBatchEditParentChildRelationships=Cq(this.activeSession,"enableBatchEditParentChildRelationships");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 fb;null==(fb=ub.resultsGrid)||t2b(fb)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var fb;null==(fb=ub.resultsGrid)||u2b(fb)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var fb;null==(fb=ub.resultsGrid)||s2b(fb)}},{keys:["s"],displayAs:"s",
description:"Star/Unstar the current issue",onPress:function(){var fb;null==(fb=ub.resultsGrid)||w2b(fb)}},{keys:[gk("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var fb;null==(fb=ub.resultsGrid)||x2b(fb,!0)}},{keys:[gk("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var fb;null==(fb=ub.resultsGrid)||x2b(fb,!1)}},{keys:[hk("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var fb;null==(fb=ub.resultsGrid)||
fb.selectAll()}},{keys:[hk("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var fb;null==(fb=ub.resultsGrid)||q2b(fb)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var fb;null==(fb=ub.gridControls)||KW(fb,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var fb;null==(fb=ub.gridControls)||KW(fb,io.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var fb;
if(null!=(fb=ub.gridControls)&&fb.hasSelectedIssues()){var pa;null==(pa=fb.hotlistPicker)||pa.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var fb;null==(fb=ub.gridControls)||T0b(fb)}},{keys:["u",gk("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return ub.refreshResults()}},{keys:[hk("p","0"),hk("p","1"),hk("p","2"),hk("p","3"),hk("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(fb){ub.resultsGrid&&
ub.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+fb}],issueIds:ub.resultsGrid.getSelectedIssues().map(function(pa){return pa.issueId})}])}},{keys:["o","ENTER",qoa("ENTER")],displayAs:"o / Enter",description:"Open the current issue",onPress:function(fb){var pa=c.document.activeElement;if(1===fb&&"A"===pa.tagName)if(pa.href)fb=ub.paths.getBaseUrl(),Zi(pa.href,fb)?ub.bLocation.url(pa.href.slice(fb.length)):ub.domSafe.openInNewTab(pa.href);else{var xa;null==(xa=ub.resultsGrid)||QX(xa)}else if(2===
fb){var Ca;null==(Ca=ub.resultsGrid)||QX(Ca,{openInNewTab:!0})}else{var Za;null==(Za=ub.resultsGrid)||QX(Za)}}}]};X(v9,Z);v9.prototype.ngOnInit=function(){var a=this;Qnc(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(Ef(this.destroyed$)).subscribe(function(){Qnc(a)})};
var Rnc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(jj)};
v9.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=n(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ri(d,c)||(d&&Ea(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var Qnc=function(a){return Snc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?Tnc(a,a.searchResults.startIndex,a.searchResults.endIndex):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},Unc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},Vnc=function(a){var b,c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},Snc=function(a){var b=
dk();Unc(a)&&Vnc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},Tnc=function(a,b,c){var d=dk();Unc(a)||Wnc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},Xnc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=Fo("Number of search results exceeds "+c+" ; some matching issues may be omitted.",Eo("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),
c={},c=Eo("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=Fo(Eo("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?Fo(b,c):b,XFb(a.butterBar,b))};g=v9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=jj(a);if(d){var e=new mj(d,"ASC"===b?"ASCENDING":"DESCENDING");Fa(this.sortPreferences,function(f){return Ri(f.fieldId,e.fieldId)});!c||Pnc.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):Vi(a.fieldId.type),direction:"ASCENDING"===a.direction?"ASC":"DESC"};Ri(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){rY(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?Ync:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(r(b),r(T1b(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return jj(b.name)});rY(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(Mo(this.analytics,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?lq(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var Au=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=v9.prototype;g.refreshResults=function(){kJ(this.issuePagination);return Qnc(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=n(a[0].issueIds);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=void 0;null==(f=this.searchResults)||lEb(f,e,d)}this.cdr.detectChanges();vJ(this.butterBar,"Saving changes...",0);return HK(this.issueFridge,a[0].issueIds,{markRead:d}).then(function(k){for(var q=n(a[0].issueIds),t=q.next();!t.done;t=q.next()){t=t.value;var x=void 0,
y=void 0;null==(x=c.searchResults)||lEb(x,t,void 0,null!=(y=k)?y:null)}vJ(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(k){for(var q=n(a[0].issueIds),t=q.next();!t.done;t=q.next()){t=t.value;var x=void 0;null==(x=c.searchResults)||lEb(x,t)}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=$Nb(a).map(function(k){return k.fieldName});Mo(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};vJ(this.butterBar,
"Saving changes...",0);return 1===a.length&&1===a[0].actions.length&&"parentId"===a[0].actions[0].fieldName&&!0===this.enableBatchEditParentChildRelationships?this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(k){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var q=n(c.searchResults.issues.entries()),t=q.next();!t.done;t=q.next()){var x=n(t.value);t=x.next().value;x=x.next().value;k.finishedIssues[x.issueId]&&(t=c.searchResults.issues[t],gEb(t,k.finishedIssues[x.issueId],
null),t.selected=!0,c.loadHotlists(t),Object.assign(c.customFieldMap,t.customFieldMap))}}x=a[0];q=k.notFinishedIssueIds;t=String(x.actions[0].value);x=x.actions[0].actionType;if("ADD"!==x&&"REMOVE"!==x)throw Error("je");q.length?(wJ(c.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),Mo(c.analytics,c.ANALYTICS_CATEGORY,"bulkEditError",""+q.length)):vJ(c.butterBar,("ADD"===x?"Added child issue(s) to parent ["+t+"]":"Removed child issue(s) from parent ["+t+"]")+" 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=n(c.searchResults.issues.entries()),t=q.next();!t.done;t=q.next()){var x=n(t.value);t=x.next().value;x=x.next().value;k.affectedIssues[x.issueId]&&(x=k.affectedIssues[x.issueId],t=c.searchResults.issues[t],gEb(t,x,k.componentMap[ta(x.snapshot).componentId]),t.selected=!0,c.loadHotlists(t),
Object.assign(c.customFieldMap,t.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+($i(k.errors,"issueId").join(", ")+"."),wJ(c.butterBar,q),Mo(c.analytics,c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=dOb(c.statusMessages,h,c.customFieldMap))?vJ(c.butterBar,k):vJ(c.butterBar,"Saved "+aOb(h.bulkEditOps).length+" issue(s).");c.cdr.detectChanges()}).catch(function(k){c.errorHandler.errorHandler(null,k)})};
g.loadHotlists=function(a){var b=this;var c=a?[a]:this.searchResults?this.searchResults.issues:[];a=new Set;for(var d=n(c),e=d.next();!e.done;e=d.next())if(e=e.value,e.hotlistId){e=n(e.hotlistId);for(var f=e.next();!f.done;f=e.next())f=f.value,this.hotlistMap[f]||a.add(f)}0!==a.size&&this.hotlistApi.bulkLoad([].concat(r(a))).then(function(){for(var h={},k=n(c),q=k.next();!q.done;h={$jscomp$loop$prop$loadedHotlists$2016:h.$jscomp$loop$prop$loadedHotlists$2016},q=k.next()){q=q.value;if(!q.hotlistId)return;
h.$jscomp$loop$prop$loadedHotlists$2016=[];q.hotlists=h.$jscomp$loop$prop$loadedHotlists$2016;q=n(q.hotlistId);for(var t=q.next();!t.done;t=q.next())t=t.value,b.hotlistMap[t]?h.$jscomp$loop$prop$loadedHotlists$2016.push(b.hotlistMap[t]):b.hotlistApi.get(t).then(function(x){return function(y){b.hotlistFridge.announce(y);b.addHotlist(y);x.$jscomp$loop$prop$loadedHotlists$2016.push(y)}}(h))}b.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;Mo(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");vJ(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);vJ(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;vJ(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(){Mo(this.analytics,this.ANALYTICS_CATEGORY,"exportCsv");SN(this.domSafe,this.getCsvUrl())};
var Znc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(Ef(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;rY(a.urlPreferences,{page:1});Mo(a.analytics,a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){kl(c)})},Wnc=function(a,b,c){var d=a.issuePagination.focusedIssueIndex_;a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{OFb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},lhb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
ni.Object.defineProperties(v9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ri(this.issueColumnsInternal,a)||(Mo(this.analytics,this.ANALYTICS_CATEGORY,"columnModification",Yua(this.issueColumnsInternal.map(function(b){return b.toString()}),a.map(function(b){return b.toString()}))),this.issueColumnsInternal=a,this.saveColumns(this.issueColumns.slice(this.metaColumns.length)))}}});var Ync=[RX,SX,TX];
v9.\u0275fac=function(a){return new (a||v9)(B(qH),B(ZH),B(Window),B(oI),B(WH),B(bJ),B(oK),B(TI),B(NG),B(uJ),B(BK),B(IM),B(iJ),B(aI),B(qY),B(vY),B(pI),B(jH),B(xJ),B(iQ),B(RN),B(eJ),B(sK),B(FK),B(CZ))};v9.\u0275dir=u({type:v9,features:[Of]});
var hhb=function(){return{q:"status:open"}},w9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca){v9.call(this,a,b,c,d,f,h,k,q,e,t,x,y,F,K,J,R,S,aa,Ka,ba,ka,Jb,fb,pa,Ca);this.hotkeys=wa;this.pageTitle=Aa;this.routePerformance=Ja;this.element=ub;this.currentTracker=xa;this.ANALYTICS_CATEGORY=Aq.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1;this.SPACE_EMPTY_STATE=zQb};X(w9,v9);w9.\u0275dir=v9.\u0275dir;g=w9.prototype;
g.ngOnInit=function(){var a=this;v9.prototype.ngOnInit.call(this);this.subscriptions.add(jI(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]),wJ(this.butterBar,b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",JM(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,rY(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);JM(this.appSearchState,
this.query);b=rKb(this.appSearchState);if(0<b)return WDb(this.bLocation,this.paths.viewHotlist(b)),rY(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=sKb(this.appSearchState);if(0<b)return WDb(this.bLocation,this.paths.viewSavedSearch(b)),rY(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,W.concat)((0,W.timer)(0).pipe(Tga()),Iq("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){k5b(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:Rnc(this)}),c=b.searchPreferences.then(function(f){f=Si(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();f.trackerIds=a.appSearchState.currentTrackerScope;return jJ(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&Mo(this.analytics,this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&Mo(this.analytics,
this.ANALYTICS_CATEGORY,"searchByComponent");c.then(function(f){Xnc(a,f)}).catch(function(f){"number"===typeof f?rY(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return np({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();Mo(a.analytics,a.ANALYTICS_CATEGORY,"issueSearch",
f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")")})};g.processSearchResults=function(a){return a};g.computeQuery=function(){return this.query};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return jj(b.name)});FDb(this.userPreferencesManager,U1b(a)).pipe(Ef(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.appSearchState.currentQuery===pKb(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===qKb(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(Ef(this.destroyed$)).subscribe(function(){rY(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();lhb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
w9.\u0275fac=function(a){return new (a||w9)(B(qH),B(ZH),B(hJ),B(oI),B(NG),B(WH),B(bJ),B(oK),B(TI),B(uJ),B(BK),B(IM),B(iJ),B(aI),B(qY),B(vY),B(pI),B(jH),B(iQ),B(RN),B(iI),B(NJ),B(xJ),B(GZ),B(eJ),B(Rd),B(sK),B(FK),B(LJ),B(CZ))};
w9.\u0275cmp=u({type:w9,selectors:[["list-issues-page"]],features:[mg([qH]),Of],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"],["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","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(E(0,"h2",0),Q(1,"Issue search results"),G(),E(2,"div",1)(3,"b-grid-controls",2),M("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()}),
G(),E(4,"div",3)(5,"b-pagination",4),M("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Znc(b,c.option)}),G()()(),E(6,"div",5),P(7,ghb,4,1,"div",6),P(8,khb,7,6,"div",7),P(9,mhb,2,5,"div",8),G());a&2&&(A(3),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),A(2),D("searchResults",b.searchResults),A(1),Uf("aria-busy",b.isLoading),A(1),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading&&!b.hasResults()),A(1),D("ngIf",!b.isLoading&&b.hasResults()))},
dependencies:[WX,MY,OX,gy,fM,XY,QH,ny],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}\n/*# sourceMappingURL=list_issues.css.map */"]});var x9=function(){};x9.\u0275fac=function(a){return new (a||x9)};x9.\u0275mod=Yc({type:x9});x9.\u0275inj=Ic({imports:[nY,PY,IY,HL,vy,RM,YY,UH]});
var y9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca,Za){w9.call(this,a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,pa,xa,Ca,Za);this.issueLru=fb;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};X(y9,w9);y9.\u0275dir=w9.\u0275dir;y9.prototype.ngOnInit=function(){w9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.appSearchState.clear();this.initialLoad=!0};
y9.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()})};y9.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("|")};
y9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=qhb(this.recentIds,a.issues));return a};y9.\u0275fac=function(a){return new (a||y9)(B(qH),B(ZH),B(hJ),B(oI),B(NG),B(WH),B(bJ),B(oK),B(TI),B(uJ),B(BK),B(IM),B(iJ),B(aI),B(qY),B(vY),B(pI),B(jH),B(iQ),B(RN),B(iI),B(NJ),B(xJ),B(GZ),B(eJ),B(Rd),B(KM),B(sK),B(FK),B(LJ),B(CZ))};
y9.\u0275cmp=u({type:y9,selectors:[["list-issues-recent"]],features:[mg([qH]),Of],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&&(E(0,"h2",0),Q(1,"Recent Issues"),G(),E(2,"div",1)(3,"b-grid-controls",2),M("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()}),G(),E(4,"div",3)(5,"b-pagination",4),M("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return Znc(b,d.option)}),G()()(),E(6,"div",5),P(7,nhb,3,0,"div",6),P(8,ohb,2,0,"div",7),P(9,phb,2,5,"div",8),G());if(a&2){var c;A(3);D("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);A(2);D("searchResults",
b.searchResults);A(1);Uf("aria-busy",b.isLoading);A(1);D("ngIf",b.isLoading);A(1);D("ngIf",!b.isLoading&&!b.hasResults());A(1);D("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[fM,WX,MY,OX,gy],encapsulation:2});
var z9=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};z9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),$nc(this))};
var $nc=function(a){a.isLoading=!0;a.sloApi.getOwnedSlos().then(function(b){a.activeSlos=b.filter(function(c){return!c.getIsArchived()});a.archivedSlos=b.filter(function(c){return c.getIsArchived()});a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};z9.\u0275fac=function(a){return new (a||z9)(B(qH,2),B(NJ),B(pI),B(sX),B(xJ),B(NG))};
z9.\u0275cmp=u({type:z9,selectors:[["list-slos-page"]],features:[mg([qH])],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&&(E(0,"div",0)(1,"a",1),Q(2," Create SLO "),G()(),E(3,"div",2),P(4,rhb,5,0,"div",3),P(5,shb,1,1,"b-spinner",4),P(6,vhb,3,2,"ng-container",5),P(7,zhb,6,5,"ng-container",5),G());a&2&&(A(1),D("href",b.createSloPath,le),A(3),D("ngIf",b.sloEnabled),A(1),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading),A(1),D("ngIf",!b.isLoading))},dependencies:[gy,
qC,yD,vZ,fM],encapsulation:2});
var aoc=function(a){Y.call(this,a)};X(aoc,Y);g=aoc.prototype;g.getAuthor=function(){return Ub(this,Wl,1)};g.setAuthor=function(a){Vb(this,1,a)};g.getTimestamp=function(){return Ub(this,Cj,2)};g.setTimestamp=function(a){return Vb(this,2,a)};g.hasTimestamp=function(){return vj(this,Cj,2)};g.getAdd=function(){return Ub(this,qn,3)};g.getRemove=function(){return Ub(this,qn,4)};g.getAddMask=function(){return Ub(this,oG,5)};g.getRemoveMask=function(){return Ub(this,oG,6)};
var coc=function(a){Y.call(this,a,-1,boc)};X(coc,Y);coc.prototype.getUpdatesList=function(){return Nb(this,aoc,1)};var boc=[1];coc.messageId="b.ComponentHistory";
var A9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};A9.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:coc}))};A9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
A9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};A9.\u0275fac=function(a){return new (a||A9)(p(BI),p(mH))};A9.\u0275prov=Hc({token:A9,factory:A9.\u0275fac,providedIn:"root"});
var Ehb=function(a){Y.call(this,a)};X(Ehb,Y);
var eoc=function(a){Y.call(this,a,-1,doc)};X(eoc,Y);var doc=[1];eoc.messageId="b.BatchGroupMetadataResult";
var B9=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=Ahb(e);return Kb(d,function(h){return f[h]||null})})})};B9.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"}})};B9.\u0275fac=function(a){return new (a||B9)(p(C9),p(kH))};
B9.\u0275prov=Hc({token:B9,factory:B9.\u0275fac,providedIn:"root"});var C9=function(a){this.executor=a};C9.prototype.bulkGet=function(a){a=[].concat(r(new Set(a)));a=ao(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:eoc}).then(Fhb)};C9.\u0275fac=function(a){return new (a||C9)(p(mH))};C9.\u0275prov=Hc({token:C9,factory:C9.\u0275fac,providedIn:"root"});
var goc=function(a){Y.call(this,a,-1,foc)};X(goc,Y);var D9=function(a){Y.call(this,a)};X(D9,Y);D9.prototype.getRetentionSettings=function(){return Ub(this,Pm,2)};D9.prototype.setRetentionSettings=function(a){Vb(this,2,a)};D9.prototype.hasRetentionSettings=function(){return vj(this,Pm,2)};var foc=[2];goc.messageId="b.SubcomponentsResponse";
var E9=function(a){this.executor=a};E9.prototype.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:goc})};E9.\u0275fac=function(a){return new (a||E9)(p(mH))};E9.\u0275prov=Hc({token:E9,factory:E9.\u0275fac,providedIn:"root"});
var F9=function(){};F9.prototype.ngOnInit=function(){};F9.\u0275fac=function(a){return new (a||F9)};
F9.\u0275cmp=u({type:F9,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,Ghb,4,1,"ng-container",0),P(1,Hhb,4,1,"ng-container",0));a&2&&(D("ngIf",b.teamPath),A(1),D("ngIf",b.componentPath))},dependencies:[gy,QR,VY],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});
var Ihb=[{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 G9=function(a,b,c,d,e){var f=this;this.accessPolicyConverter=a;this.activeSession=b;this.confirmationDialogService=c;this.documentationLinks=d;this.groupMetadata=e;this.componentReaders=[];this.enableComponentAutomationCheck=this.enableRostersChecks=!1;this.isPublic=function(){return lW(f.component)};this.hasUnsavedAccessLimitChanges=function(){return f.originalComponent&&f.component?f.originalComponent.accessLimit.accessLevel!==f.component.accessLimit.accessLevel:!1};this.performAccessLimitCheck=
function(){return new Promise(function(h){f.hasUnsavedAccessLimitChanges()&&"INTERNAL"===f.component.accessLimit.accessLevel?f.confirmationDialogService.open({title:"Component Visibility Changed",content:Co("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};
this.performDeletedAccountsCheck=function(){return new Promise(function(h){f.componentReaders.includes("3:nobody@google.com")?f.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Co('"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: '+[f.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,f.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?
'"Create Issues"':null,f.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,f.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?'"Edit Issues"':null,f.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,f.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?
'"View restricted+ content"':null,f.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(k){return!!k}).join(", ")+". Do you want to proceed?"),onConfirm:function(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performAdminAccessRemovalCheck=function(){return new Promise(function(h){Shb(f.activeSession.getUserEmail(),f.componentFlattenedAccessPolicy,f.componentAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Component Administrators Changed",
content:Co("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.performRestrictedPlusGroupRemovalCheck=function(){return new Promise(function(h){Rhb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",
content:Co("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(){h(!0)},onDismiss:function(){h(!1)}}):h(!0)})};this.retrieveGroupMetadata=function(h){h=f.accessPolicyConverter.stringToAccessPolicyPrincipal(h);return ej(h)&&h.group.emailAddress?f.groupMetadata.get(h.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};
this.evaluateNewGroups=function(){var h=Wj([].concat(r(aj(f.componentAccessPolicyUnderEdit.admins,f.componentFlattenedAccessPolicy.admins)),r(aj(f.issueDefaultAccessPolicyUnderEdit.admins,f.issueDefaultFlattenedAccessPolicy.admins)),r(aj(f.issueDefaultAccessPolicyUnderEdit.editors,f.issueDefaultFlattenedAccessPolicy.editors)),r(aj(f.issueDefaultAccessPolicyUnderEdit.appenders,f.issueDefaultFlattenedAccessPolicy.appenders)),r(aj(f.issueDefaultAccessPolicyUnderEdit.readers,f.issueDefaultFlattenedAccessPolicy.readers)),
r(aj(f.issueDefaultAccessPolicyUnderEdit.restrictedReaders,f.issueDefaultFlattenedAccessPolicy.restrictedReaders)),r(aj(f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,f.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))),Vj);return Promise.all(h.map(function(k){return f.retrieveGroupMetadata(k)}))};this.performAddedLargeOrOpenGroupCheck=function(){return f.enableRostersChecks?f.evaluateNewGroups().then(function(h){var k=Mhb(h);h=Qhb(h);if(0===k.size&&0===h.size)return Promise.resolve(!0);
var q=Nhb(k.size,h.size);k=Ohb(k);h=Phb(h);var t=Fo(k,k===Bu?Bu:Eo("BR"),h);k={};t=Fo(t,Eo("P",{},Fo("Please review the ",Eo("A",(k.href=lLb(f.documentationLinks)+"#fully-public-component",k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));return new Promise(function(x){f.confirmationDialogService.open({title:q,content:t,onConfirm:function(){x(!0)},onDismiss:function(){x(!1)},confirmButtonText:"Add Group"})})}):Promise.resolve(!0)};
this.performAddedNewInternalAliasesCheck=function(){return new Promise(function(h){if(f.isPublic()&&Lhb(f.issueDefaultAccessPolicyUnderEdit,f.issueDefaultFlattenedAccessPolicy)){var k={};k=Fo(Eo("P",{},"You are about to give a broad category of users permissions on a public component."),Eo("P",{},Fo("Please review the ",Eo("A",(k.href=mLb(f.documentationLinks),k.target="_blank",k),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));f.confirmationDialogService.open({title:"Adding an broad category of users to a public component",
content:k,onConfirm:function(){h(!0)},onDismiss:function(){h(!1)},confirmButtonText:"Add Group Alias"})}else h(!0)})};this.performChangedImplicitAccessCheck=function(){f.implicitAccess={getValue:function(){return f.componentAccessPolicyUnderEdit?"ALLOW"===f.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return f.componentFlattenedAccessPolicy?"ALLOW"===f.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(q){f.componentAccessPolicyUnderEdit&&(f.componentAccessPolicyUnderEdit=
Object.assign({},f.componentAccessPolicyUnderEdit,{implicitAccess:q?"ALLOW":"DENY"}))}};var h={},k=Eo("A",(h.href=n$a(f.documentationLinks),h),"Learn more.");return new Promise(function(q){f.implicitAccess.getValue()===f.implicitAccess.getSavedValue()?q(!0):f.implicitAccess.getValue()?f.confirmationDialogService.open({title:"Turn on expanded access for component "+f.component.componentId+"?",content:Fo("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}}):f.confirmationDialogService.open({title:"Turn off expanded access for component "+f.component.componentId+"?",content:Fo("Some users may lose the ability to edit or comment on issues in this component. ",k),onConfirm:function(){q(!0)},onDismiss:function(){q(!1)}})})};this.getAddedAutomationInPolicyChange=function(){var h=[].concat(r(Jhb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)),r(Jhb(f.componentFlattenedAccessPolicy,
f.componentAccessPolicyUnderEdit))),k=new Set;h=n(h);for(var q=h.next();!q.done;q=h.next()){q=n(q.value.addedPrincipals);for(var t=q.next();!t.done;t=q.next())t=f.accessPolicyConverter.stringToAccessPolicyPrincipal(t.value),(dj(t)?Bo(t.user.emailAddress):ej(t)&&Bo(t.group.emailAddress))&&k.add(t)}return[].concat(r(k))};this.performAutomationUserAccessCheck=function(){if(!f.enableComponentAutomationCheck)return Promise.resolve(!0);var h=f.getAddedAutomationInPolicyChange();return new Promise(function(k){if(h.length){var q=
{};q=Eo("A",(q.href=kLb(f.documentationLinks),q)," automation account documentation");f.confirmationDialogService.open({title:"Adding automation accounts",content:Fo(Co("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"),Eo("wbr"),q,Co("."),Eo.apply(cw,["OL",{}].concat(r(h.map(function(t){if(dj(t)){var x;return Eo("LI",{},Co(null!=(x=t.user.emailAddress)?x:""))}if(ej(t)){var y;return Eo("LI",
{},Co(null!=(y=t.group.emailAddress)?y:""))}throw Error("$e`"+JSON.stringify(t));})))),Eo("BR",{}),Co("Are you sure you wish to allow automation to access data in this component?")),onConfirm:function(){k(!0)},onDismiss:function(){k(!1)}})}else k(!0)})};this.runValidation=function(h){var k,q,t;return Pe(function(x){switch(x.nextAddress){case 1:k=n(h),q=k.next();case 2:if(q.done){x.jumpTo(4);break}t=q.value;return Re(x,t(),5);case 5:if(!x.yieldResult)return x.return(!1);q=k.next();x.jumpTo(2);break;
case 4:return x.return(!0)}})};this.enableRostersChecks=Cq(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=Cq(this.activeSession,"enableComponentAutomationCheck")},hoc=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,t,x;return Pe(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,t=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],Re(y,a.runValidation(t),2);x=y.yieldResult;return y.return(x)})};
G9.\u0275fac=function(a){return new (a||G9)(p(nS),p(NG),p(UL),p(QN),p(B9))};G9.\u0275prov=Hc({token:G9,factory:G9.\u0275fac});
var H9=function(a){Z.call(this);this.principalTypes=a;this.componentReaders=[];this.templates=[]};X(H9,Z);H9.\u0275dir=Z.\u0275dir;
H9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(r(this.componentReaders))),d=new Set([].concat(r(a.admins),r(a.inheritedAdmins)));a=new Set([].concat(r(d),r(a.appenders)));var e=new Set([].concat(r(b.admins))),f=new Set([].concat(r(e),r(b.editors))),h=new Set([].concat(r(f),r(b.appenders))),k=new Set([].concat(r(b.restrictedPlusReaders))),q=new Set([].concat(r(k),r(b.restrictedReaders)));b=new Set([].concat(r(q),r(h),r(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(r(d)).map(Cu)},{permission:"Create Issues",principals:[].concat(r(a)).map(Cu)},{permission:"Admin Issues",principals:[].concat(r(e)).map(Cu)},{permission:"Edit Issues",principals:[].concat(r(f)).map(Cu)},{permission:"Comment Issues",principals:[].concat(r(h)).map(Cu)},{permission:"View Issues",principals:[].concat(r(b)).map(Cu)},{permission:"View Components",principals:[].concat(r(c)).map(Cu)},{permission:"View Restricted",principals:[].concat(r(q)).map(Cu)},
{permission:"View Restricted+",principals:[].concat(r(k)).map(Cu)}];ioc(this,this.templates)};
var ioc=function(a,b){b=n(b);for(var c=b.next();!c.done;c=b.next()){var d={};c=n(c.value.principals);for(var e=c.next();!e.done;d={$jscomp$loop$prop$principal$2018:d.$jscomp$loop$prop$principal$2018},e=c.next())d.$jscomp$loop$prop$principal$2018=e.value,4===d.$jscomp$loop$prop$principal$2018.principalType?d.$jscomp$loop$prop$principal$2018.detailedUserType=0:oH(a.principalTypes,d.$jscomp$loop$prop$principal$2018.value,!0).then(function(f){return function(h){f.$jscomp$loop$prop$principal$2018.detailedUserType=
qj(h,2,0)}}(d))}};H9.\u0275fac=function(a){return new (a||H9)(B(nH))};
H9.\u0275cmp=u({type:H9,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[Of,ed],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&&(E(0,"table")(1,"tr",0)(2,"th",1),Q(3,"Permission"),G(),E(4,"th",1),Q(5,"Users With Permission"),G()(),P(6,Uhb,6,2,"ng-container",2),G());a&2&&(A(6),D("ngForOf",b.templates))},dependencies:[fy,kY],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}\n/*# sourceMappingURL=permissions_view.css.map */"]});
var joc=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"}),I9={},koc=(I9.issueAdmin=new Set(["issueEditor"]),I9.issueEditor=new Set(["issueAppender"]),I9.issueAppender=new Set(["issueReader"]),I9.issueRestrictedReader=
new Set(["issueReader"]),I9.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),I9.issueReader=new Set(["componentReader"]),I9.componentAdmin=new Set(["componentAppender"]),I9.componentAppender=new Set(["componentReader"]),I9.componentReader=new Set,I9),cib=ep(joc,function(a){return koc[a]}),Eu=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"}),J9={},loc=(J9.componentAdmin=new Set(["componentAdmin","issueAdmin"]),J9.issueAdmin=new Set(["issueAdmin","componentAppender"]),J9.issueEditor=new Set(["issueEditor","componentAppender"]),J9.issueContributor=new Set(["issueAppender","componentAppender"]),J9.componentAdminOnly=new Set(["componentAdmin"]),
J9.issueCreator=new Set(["componentAppender"]),J9.issueAdminOnly=new Set(["issueAdmin"]),J9.issueEditorExisting=new Set(["issueEditor"]),J9.issueCommenter=new Set(["issueAppender"]),J9.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),J9.restrictedViewer=new Set(["issueRestrictedReader"]),J9.issueViewer=new Set(["issueReader"]),J9),aib=ep(Eu,function(a){return loc[a]}),moc=dib(),$hb=ep(Eu,function(a){a=[].concat(r(aib.get(a))).flatMap(function(b){return[].concat(r(moc.get(b)))});return new Set(a)}),
bib=ep(Eu,function(a){return new Set(Eu.filter(function(b){return b!==a&&Tma($hb.get(b),$hb.get(a))}))});
var Fu={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},noc={inheritance:"INHERIT_NOTHING",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};
var K9=function(a,b,c,d,e,f,h,k){var q=this;this.accessPolicyApi=a;this.accessPolicyConverter=b;this.errorHandler=c;this.butterBar=d;this.userAccess=e;this.componentActions=f;this.componentValidator=h;this.analytics=k;this.isAdmin=!1;this.rolesMap=Fu;this.originalComponent=this.parentComponent=this.component=null;this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=this.isSaving=!1;this.implicitAccess={getValue:function(){return q.componentAccessPolicyUnderEdit?"ALLOW"===q.componentAccessPolicyUnderEdit.implicitAccess:
!1},getSavedValue:function(){return q.componentFlattenedAccessPolicy?"ALLOW"===q.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(t){q.componentAccessPolicyUnderEdit&&(q.componentAccessPolicyUnderEdit=Object.assign({},q.componentAccessPolicyUnderEdit,{implicitAccess:t?"ALLOW":"DENY"}))},isUpdated:function(){var t;return q.componentAccessPolicyUnderEdit.implicitAccess!==(null==(t=q.componentFlattenedAccessPolicy)?void 0:t.implicitAccess)}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=
this.componentFlattenedAccessPolicy=noc;this.componentAccessPolicyUnderEdit=oS();this.issueDefaultAccessPolicyUnderEdit=oS();this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(t){a:{var x=q.issueDefaultFlattenedAccessPolicy;if(t&&x){x=x.restrictedPlusReaders;t=n(t);for(var y=t.next();!y.done;y=t.next())if(y=y.value,0===y.indexOf("3:")&&-1===x.indexOf(y)){x=!1;break a}}x=!0}return x}}};g=K9.prototype;
g.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
g.doSaveAccessLimit=function(){var a=this;if(!this.hasUnsavedAccessLimitChanges())return Promise.resolve();this.isUpdatingAccessLimit=!0;this.isSaving=this.isUpdatingAccessPolicy||this.isUpdatingAccessLimit;return this.accessPolicyApi.setAccessLimit("COMPONENT",this.componentId,this.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;vJ(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=
a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";Wn(b)&&(c+=Xn(b));wJ(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};g.updateComponentAndOriginalComponent=function(a){this.component=Si(a);this.originalComponent=Si(a)};
g.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)})};g.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)})};
g.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return wJ(this.butterBar,"No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=pS(c);b.componentAccessPolicyUnderEdit=Si(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
pS(c);b.issueDefaultAccessPolicyUnderEdit=Si(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};var ooc=function(a){a.rolesMap=gib({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})};
K9.prototype.saveIssueDefaultsAccessPolicy=function(a){var b=this.issueDefaultFlattenedAccessPolicy;if(!b||!hib(b,this.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);a.inheritance="INHERIT_NOTHING";return this.accessPolicyApi.update("ISSUE_DEFAULTS",this.componentId,a)};var poc=function(a){var b=Gu(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!hib(c,a.issueDefaultAccessPolicyUnderEdit));return b||a};
K9.prototype.saveComponentAccessPolicy=function(a){var b=this;return Gu(this.componentAccessPolicyUnderEdit,this.componentFlattenedAccessPolicy)?this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){var d=pS(c);if(Gu(d,b.componentAccessPolicyUnderEdit)){if(Gu(d,b.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});a.readers=c.readers;a.inheritance=0===b.component.parentComponentId?
"INHERIT_NOTHING":"INHERIT_ADMINS";return b.accessPolicyApi.update("COMPONENT",b.componentId,a)}}):Promise.resolve(void 0)};K9.prototype.loadUserAccess=function(a){var b=this;return TJ(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):TJ(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
K9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=qS(this.componentAccessPolicyUnderEdit);var c=qS(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),wJ(this.butterBar,c),Promise.resolve()}if(poc(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,vJ(this.butterBar,"Saving access settings...",0),this.saveIssueDefaultsAccessPolicy(c).then(function(d){d&&(b.readers=[].concat(r(d.admins||[]),r(d.editors||[]),r(d.appenders||
[]),r(d.readers||[]),r(d.restrictedPlusReaders||[]),r(d.restrictedReaders||[])));return a.saveComponentAccessPolicy(b).catch(function(e){var f;return Pe(function(h){if(1==h.nextAddress)return f=qS(a.issueDefaultFlattenedAccessPolicy),Re(h,a.saveIssueDefaultsAccessPolicy(f),2);throw e;})})}).then(function(){return a.doSaveAccessLimit()}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;ooc(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=iib({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=iib(f,h);switch(d&&f?2:d?0:f?1:3){case 0:Mo(a.analytics,Aq.ROLE_BASED_PERMISSIONS,"update","roles:standard");break;case 1:Mo(a.analytics,Aq.ROLE_BASED_PERMISSIONS,"update","roles:advanced");break;case 2:Mo(a.analytics,Aq.ROLE_BASED_PERMISSIONS,"update","roles:both");break;default:Mo(a.analytics,Aq.ROLE_BASED_PERMISSIONS,"update",
"roles:neither")}vJ(a.butterBar,"Access settings saved",0)}).catch(function(d){wJ(a.butterBar,Xn(d),0)}).finally(function(){return Pe(function(d){if(1==d.nextAddress)return Re(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;Ve(d)})});ooc(this);return this.doSaveAccessLimit()};
var qoc=function(a,b){b=eib(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},vib=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(qoc(a,b),hoc(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();vJ(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
ni.Object.defineProperties(K9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ri(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=fib({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ri(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=fib({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});K9.\u0275fac=function(a){return new (a||K9)(p(OJ),p(nS),p(xJ),p(uJ),p(SJ),p(ZR),p(G9),p(BK))};K9.\u0275prov=Hc({token:K9,factory:K9.\u0275fac});
var L9=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.rolesEditor=c;this.AccessLevelStrings=tAb};g=L9.prototype;g.getRecentIssuesLink=function(){return ul(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};
g.shouldShowAccessLimitChangeUi=function(){if(this.activeSession.isExternalSession())return!1;if(this.rolesEditor.component)if(this.rolesEditor.component.parentComponentId){if(this.rolesEditor.parentComponent)return kW(this.rolesEditor.parentComponent)||kW(this.rolesEditor.component)}else return!1};g.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!b0b(this.rolesEditor.parentComponent))};g.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!lW(this.rolesEditor.parentComponent))};
g.getAccessLevelDescription=function(a){return d0b(a)};L9.\u0275fac=function(a){return new (a||L9)(B(NG),B(QN),B(K9))};
L9.\u0275cmp=u({type:L9,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,nib,20,7,"div",0),E(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. "),E(4,"a",2),Q(5,"Learn more"),G()()());a&2&&(D("ngIf",b.shouldShowAccessLimitChangeUi()),A(4),hg("href","",lp(b.documentationLinks),"#recommended-role-based-permissions-configurations",le))},dependencies:[gy,fh,Uy,Ky,Ry],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}\n/*# sourceMappingURL=access_limit_settings.css.map */"]});
var M9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};M9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};M9.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};M9.\u0275fac=function(a){return new (a||M9)(B(QN),B(K9))};
M9.\u0275cmp=u({type:M9,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&&(E(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),M("change",function(c){return b.setImplicitAccess(c.checked)}),G()(),E(3,"div",3)(4,"strong",4),Q(5,"Expanded access"),G(),E(6,"div",5),Q(7," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. "),E(8,"a",6),Q(9,"Learn more"),G()()()());a&2&&(Zf("bv2-edit-resource-readonly",b.isAccessEditDisabled()),A(2),D("checked",b.rolesEditor.implicitAccess.getValue())("disabled",
b.isAccessEditDisabled()),A(6),hg("href","",lp(b.documentationLinks),"#expanded-access",le))},dependencies:[fN],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}\n/*# sourceMappingURL=expanded_access_settings.css.map */"]});
var oib=function(){return{}},qib=function(a,b){return{displayText:a,values:b}},pib=function(a){return[a]},rib=function(){return[]},N9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new sx;this.formIsValid=new sx;this.aclFormValidity=new Map};N9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};N9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};N9.\u0275fac=function(a){return new (a||N9)};
N9.\u0275cmp=u({type:N9,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&&(E(0,"table")(1,"thead")(2,"tr")(3,"th",0),Q(4,"Role Assignments"),G(),E(5,"th",0)(6,"h6"),Q(7,"Admin Components"),G()(),E(8,"th",0)(9,"h6"),Q(10,"Create Issues"),G()(),E(11,"th",0)(12,"h6"),Q(13,"Admin Issues"),G()(),E(14,"th",0)(15,"h6"),Q(16,"Edit Issues"),G()(),E(17,"th",0)(18,"h6"),Q(19,"Comment Issues"),G()(),E(20,"th",0)(21,"h6"),Q(22,"View Issues"),G()(),E(23,
"th",0)(24,"h6"),Q(25,"View Restricted"),G()(),E(26,"th",0)(27,"h6"),Q(28,"View Restricted+"),G()()()(),E(29,"tbody"),P(30,sib,26,29,"ng-container",1),G()());a&2&&(A(30),D("ngForOf",b.rolesTableData))},dependencies:[fy,XX,QG,pC,yD,tF],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}\n/*# sourceMappingURL=roles_view_table.css.map */"]});
var O9=function(a){this.documentationLinks=a};O9.\u0275fac=function(a){return new (a||O9)(B(QN))};
O9.\u0275cmp=u({type:O9,selectors:[["use-standard-roles-banner"]],inputs:{rolesMap:"rolesMap"},decls:1,vars:1,consts:[["class","use-standard-roles-banner",4,"ngIf"],[1,"use-standard-roles-banner"],["aria-label","Learn more about roles","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&P(0,tib,5,1,"div",0);if(a&2){if(b.rolesMap){var c=b.rolesMap,d=c.issueAdmin,e=c.editor,f=c.contributor;a=c.componentAdminOnly;b=c.viewer;var h=c.editExistingIssuesOnly,k=c.createIssuesOnly,
q=c.commentOnly,t=c.viewRestricted,x=c.viewRestrictedPlus;c=[].concat(r(c.componentAdmin),r(d),r(e),r(f));a=[].concat(r(a),r(b),r(h),r(k),r(q),r(t),r(x));a=0===c.length&&0<a.length}else a=!1;D("ngIf",a)}},dependencies:[gy],styles:[".use-standard-roles-banner[_ngcontent-%COMP%]{background-color:#feefc3;background-color:var(--warn-bg);width:100%;margin:-15px 0 15px;border-radius:4px}.use-standard-roles-banner[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:4px;padding:8px}\n/*# sourceMappingURL=use_standard_roles_banner.css.map */"]});
var P9=function(){this.rolesMap=Fu;this.isSaving=!1;this.saveRolesMap=new sx;this.rolesUnderEdit=Fu;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},roc=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},soc=function(a){return a.advancedRolesTableData.some(function(b){return 0<b.users.length})},toc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=P9.prototype;g.ngOnInit=function(){toc(this);roc(this)};
g.ngOnChanges=function(a){a.rolesMap&&toc(this);roc(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()&&(!Ri(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};P9.\u0275fac=function(a){return new (a||P9)};
P9.\u0275cmp=u({type:P9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[ed],decls:13,vars:12,consts:[[3,"rolesMap"],[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&&(H(0,"access-limit-settings")(1,"use-standard-roles-banner",0),E(2,"roles-view-table",1),M("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),G(),E(3,"mat-expansion-panel",2)(4,"mat-expansion-panel-header")(5,"mat-panel-title"),Q(6," Advanced Roles "),G()(),E(7,"roles-view-table",1),M("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",
function(c){return b.formIsValid=c}),G()(),H(8,"expanded-access-settings"),E(9,"button",3),M("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),Q(10,"Update"),G(),E(11,"button",4),M("click",function(){toc(b);roc(b)}),Q(12," Revert Changes\n"),G());a&2&&(A(1),D("rolesMap",b.rolesMap),A(1),D("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),A(1),D("expanded",soc(b)),A(4),
D("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),A(2),D("disabled",!b.canSave()),A(2),D("disabled",!!Ri(b.rolesMap,b.rolesUnderEdit)))},dependencies:[c5,d5,e5,pC,N9,L9,M9,O9],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}\n/*# sourceMappingURL=roles_view.css.map */"]});
var Q9=function(a,b){Z.call(this);this.rolesEditor=a;this.route=b};X(Q9,Z);Q9.\u0275dir=Z.\u0275dir;Q9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(C(function(b){return b.get("componentId")}),hf(fm),Df(function(b){return a.rolesEditor.initialize(Number(b))}),Ef(this.destroyed$)).subscribe(function(){ooc(a.rolesEditor)})};Q9.prototype.isSaving=function(){return this.rolesEditor.isSaving};Q9.\u0275fac=function(a){return new (a||Q9)(B(K9),B(Fk))};
Q9.\u0275cmp=u({type:Q9,selectors:[["role-based-permissions"]],features:[mg([K9,G9]),Of],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,uib,2,0,"div",0),P(1,wib,7,8,"div",1));a&2&&(D("ngIf",!(null==b.rolesEditor.component?
0:b.rolesEditor.component.componentId)),A(1),D("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[gy,YV,XV,fM,H9,P9],styles:["\n/*# sourceMappingURL=role_based_permissions.css.map */"]});
var R9=function(a){Z.call(this);this.userPreferencesManager=a;this.timestamps$=this.userPreferencesManager.preferences$.pipe(C(function(b){var c;return null!=(c=b.dismissalTimestamps)?c:void 0}));this.timestampsSubject$=ml(this.timestamps$.pipe(Ef(this.destroyed$)),{})};X(R9,Z);R9.\u0275dir=Z.\u0275dir;var uoc=function(a,b){return a.timestamps$.pipe(C(function(c){return c?!!c[b]:!1}))};R9.prototype.isDismissed=function(a){return!!nl(uoc(this,a))};
R9.prototype.dismiss=function(a){var b={};b={dismissalTimestamps:Object.assign({},this.timestampsSubject$.value,(b[a]=new Date(Date.now()),b))};return this.userPreferencesManager.save(b).pipe(C(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};R9.\u0275fac=function(a){return new (a||R9)(p(aI))};R9.\u0275prov=Hc({token:R9,factory:R9.\u0275fac,providedIn:"root"});
var S9=function(a,b){this.dialogRef=a;this.documentationLinks=b};S9.\u0275fac=function(a){return new (a||S9)(B(EC),B(QN))};
S9.\u0275cmp=u({type:S9,selectors:[["role-based-permissions-onboarding-dialog"]],decls:10,vars:1,consts:[[1,"center"],["target","_blank","aria-label","Learn more about roles",3,"href"],["mat-raised-button","","color","primary","aria-label","Close Dialog",3,"click"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"h1"),Q(2,"Welcome to Role Based Permissions! \ud83c\udf89"),G()(),E(3,"p"),Q(4," Roles allow you to set permissions in a more natural way, considering the kind of user that you want to empower, and assigning permissions based on that. "),
E(5,"a",1),Q(6," Learn more "),G()(),E(7,"div",0)(8,"button",2),M("click",function(){return b.dialogRef.close()}),Q(9," Get started "),G()());a&2&&(A(5),hg("href","",lp(b.documentationLinks),"#role-based-permissions",le))},dependencies:[pC],styles:['h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0em;font-weight:400}p[_ngcontent-%COMP%]{margin:30px;line-height:1.4;font-size:1rem;color:#5f6368;color:var(--text-muted)}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}.center[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{cursor:pointer}\n/*# sourceMappingURL=role_based_permissions_onboarding_dialog.css.map */']});
var T9=function(a,b,c){this.dialog=a;this.dismissalService=b;this.documentationLinks=c},voc=function(a){var b,c,d;Pe(function(e){b=a.dismissalService.isDismissed("roles_based_permissions_onboarding_dialog");if(c=!b)d={maxWidth:"700px"},a.dialog.open(S9,d),a.dismissalService.dismiss("roles_based_permissions_onboarding_dialog").pipe(sf()).subscribe();Ve(e)})};T9.\u0275fac=function(a){return new (a||T9)(p(IC),p(R9),p(QN))};T9.\u0275prov=Hc({token:T9,factory:T9.\u0275fac,providedIn:"root"});
var woc=["archiveDialog"],xoc=["archiveButton"],yoc=["metadataForm"],Ojb=function(a){return{displayText:"Inherited Admins",values:a}},Lu=function(a){return[a]},Pjb=function(a){return{displayText:"Component Admins",values:a}},Qjb=function(a){return{displayText:"Issue Admins",values:a}},Rjb=function(a){return{displayText:"Issue Admins & Editors",values:a}},Sjb=function(a){return{displayText:"Restricted+ Viewers",values:a}},zoc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",
TEMPLATES:"templates",ACCESS:"access"},U9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca){Z.call(this);var Za=this;this.route=a;this.cdr=b;this.routeParams=c;this.bLocation=d;this.accessPolicyApi=e;this.templatesApi=f;this.paths=h;this.appHistory=k;this.butterBar=q;this.pageTitle=t;this.activeSession=x;this.documentationLinks=y;this.matDialogService=F;this.analytics=K;this.checkBeforeExit=J;this.userAccess=R;this.groupMetadata=S;this.componentActions=aa;this.errorHandler=
ba;this.componentService=ka;this.componentUpdates=wa;this.componentUpdatesApi=Aa;this.accessPolicyConverter=Ka;this.confirmationDialogService=Ja;this.appEvents=Jb;this.teamsService=ub;this.sloApi=fb;this.sloService=pa;this.roleBasedPermissionsOnboardingDialogService=xa;this.currentTracker=Ca;this.componentId$=new W.ReplaySubject(1);this.Tab=zoc;this.AccessLevelStrings=tAb;this.componentListRoute=vqa;this.showSloInheritancePath=!1;this.component$=new W.BehaviorSubject(null);this.componentTrackerId$=
this.component$.pipe(C(function(Da){return null==Da?void 0:Da.trackerId}));this.showTrackerRedirect$=(0,W.combineLatest)([this.currentTracker.trackerId$,this.componentTrackerId$]).pipe(C(function(Da){var Ab=n(Da);Da=Ab.next().value;Ab=Ab.next().value;return Za.shouldShowTrackerRedirect(Da,em("")(Ab))}));this.parentComponent$=new W.BehaviorSubject(null);this.componentTeam$=new W.BehaviorSubject(null);this.team$=this.componentTeam$.pipe(Df(function(Da){return(Da=null==Da?void 0:Da.id)&&"0"!==Da?Za.teamsService.getTeam(Da):
(0,W.of)(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(Df(function(Da){var Ab;return(Da=null==Da?void 0:null==(Ab=Da.team)?void 0:Ab.id)&&"0"!==Da?Za.teamsService.getTeam(Da):(0,W.of)(null)}));this.inheritedSloMetadata$=(0,W.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(C(function(Da){var Ab=n(Da);Da=Ab.next().value;var Qa=Ab.next().value;Ab=Ab.next().value;if((null==Da?0:Da.team)&&!Da.team.inherit&&"0"!==Da.team.id){var $a;return null!=($a=null==Ab?void 0:
Ab.getSlo())?$a:null}var Oa;return null!=(Oa=null==Qa?void 0:Qa.slo)?Oa:null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(rf(),Df(function(Da){var Ab="0";Da instanceof Nu?Ab=Da.getSloId():Da&&(Ab=Da.id);return"0"===Ab?(0,W.of)({id:"0"}):Za.sloService.get(Ab).then(function(Qa){return{id:Ab,slo:Qa}})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(rf(),Df(function(Da){if(!Da)return(0,W.of)({name:"None",type:"none"});Da=bkb(Da);var Ab=Da.sourceTeamId,Qa=Da.sourceComponentId;return Ab&&
"0"!==Ab?Za.teamsService.getTeam(Ab).pipe(C(function($a){var Oa;return{name:null!=(Oa=$a.getName())?Oa:Ab,type:"team",link:{path:"/teams/"+Ab+"/edit",fragment:"slo"}}})):Qa?Za.componentActions.get(Number(Qa)).then(function($a){var Oa;return{name:null!=(Oa=$a.name)?Oa:Qa,type:"component",link:{path:"/components/"+Qa+"/edit"}}}):(0,W.of)(null)}));this.policySourcePath$=(0,W.combineLatest)([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(C(function(Da){var Ab=n(Da);
Da=Ab.next().value;var Qa=Ab.next().value,$a=Ab.next().value;Ab=Ab.next().value;if(!Da||!Da.componentPathInfo||!Ab)return null;var Oa=bkb(Ab);Ab=Oa.sourceComponentId;Qa=dkb(Qa,Oa.sourceTeamId,Da.team,$a);return null===Ab?{componentPath:null,teamPath:Qa}:{componentPath:ckb(Da,Ab),teamPath:Qa}}));this.enableSloLockingCheck=Cq(this.activeSession,"enableSloLockingCheck");this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.componentAdmins=[];this.issueCommenters=
[];this.issueViewersChip=[];this.componentReaders=[];this.isLoading=this.hasInitialized=!1;this.selectedTabIndex=0;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdatingAccessLimit=this.isUpdatingAccessPolicy=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=Cq(this.activeSession,"enableSloLockingUi");this.enableTeamLeadSloEditingUi=Cq(this.activeSession,"enableTeamLeadSloEditingUi");this.sloLocked$=this.componentId$.pipe(hf(Boolean),Df(function(Da){return Za.sloApi.executor.get({url:"action/components/"+Da+"/slo_edit_policy",responseConstructor:E1b}).pipe(C(Mra))}));this.aclFormValidity={};this.aclFormIsInvalid=function(){return Object.values(Za.aclFormValidity).some(function(Da){return!Da})};
this.enableRoleBasedPermissions=Cq(this.activeSession,"enableRoleBasedPermissions");this.getSloManagementLink=wl};X(U9,Z);U9.\u0275dir=Z.\u0275dir;U9.prototype.shouldShowTrackerRedirect=function(a,b){return""!==a&&a!==b};U9.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);this.enableRoleBasedPermissions&&4===a&&voc(this.roleBasedPermissionsOnboardingDialogService)};
U9.prototype.ngOnInit=function(){var a=this;this.componentId=Xi(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.componentAccessPolicyUnderEdit=oS();this.issueDefaultAccessPolicyUnderEdit=oS();this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(aY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);
this.enableSloLockingCheck&&Aoc(this);this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(b){a:{if(b&&a.issueDefaultFlattenedAccessPolicy){var c=a.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders;b=n(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,0===d.indexOf("3:")&&-1===c.indexOf(d)){c=!1;break a}}c=!0}return c}};this.implicitAccess={getValue:function(){return a.componentAccessPolicyUnderEdit?"ALLOW"===a.componentAccessPolicyUnderEdit.implicitAccess:!1},getSavedValue:function(){return a.componentFlattenedAccessPolicy?
"ALLOW"===a.componentFlattenedAccessPolicy.implicitAccess:!1},setValue:function(b){a.componentAccessPolicyUnderEdit&&(a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,{implicitAccess:b?"ALLOW":"DENY"}))}};this.componentHistoryUiEnabled=this.activeSession.isInternalSession();Boc(this);this.enableComponentAutomationCheck=Cq(this.activeSession,"enableComponentAutomationCheck");this.enableRostersChecks=Cq(this.activeSession,"enableRostersChecks");this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=
Coc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(Ef(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 Boc=function(a){a=[Doc(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)].concat(r(a.loadAccessPolicy(a.componentId)));return Promise.all(a).then(function(){})};
U9.prototype.isAdmin=function(){return this.isAdminInternal};var Iu=function(a){return a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin()};g=U9.prototype;g.isSaving=function(){return this.isUpdating||this.isArchiving};g.isArchived=function(){return this.component?this.component.archived:!1};g.isPublic=function(){return lW(this.component)};g.isExternal=function(){return kW(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!lW(this.parentComponent))};
g.isParentPartner=function(){return!(!this.parentComponent||!b0b(this.parentComponent))};var fjb=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};U9.prototype.shouldShowAccessLimitChangeUi=function(){if(this.sessionIsExternal)return!1;if(this.component)if(this.component.parentComponentId){if(this.parentComponent)return kW(this.parentComponent)||kW(this.component)}else return!1};
U9.prototype.hasUnsavedMetadataChanges=function(){return!(Ri(this.component,this.originalComponent)&&Ri(this.parentComponent,this.originalParentComponent))};U9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||Mu(this)||this.hasUnsavedAccessLimitChanges()};
var Eoc=function(a){var b=dk();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:Co("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},Foc=function(a){var b=dk();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:Fo(Co('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.'),Eo("BR",{}),Eo("BR",{}),Co('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.'),
Eo("BR",{}),Eo("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};
U9.prototype.performAutomationUserAccessCheck=function(){if(!this.enableComponentAutomationCheck)return Promise.resolve(!0);var a=dk(),b=this.getAddedAutomationInPolicyChange();if(b.length){var c={};c=Eo("A",(c.href=kLb(this.documentationLinks),c)," automation account documentation");this.confirmationDialogService.open({title:"Adding automation accounts",content:Fo(Co("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"),
Eo("wbr"),c,Co("."),Eo.apply(cw,["OL",{}].concat(r(b.map(function(d){if(dj(d)){var e;return Eo("LI",{},Co(null!=(e=d.user.emailAddress)?e:""))}if(ej(d)){var f;return Eo("LI",{},Co(null!=(f=d.group.emailAddress)?f:""))}throw Error("$e`"+JSON.stringify(d));})))),Eo("BR",{}),Co("Are you sure you wish to allow automation to access data in this component?")),onConfirm:function(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}})}else a.resolve(!0);return a.promise};
U9.prototype.saveMetadata=function(){var a=this;return Goc(this)?Foc(this).then(function(b){return b?Eoc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return Boc(a)})}):Promise.resolve()};var Ku=function(a,b){a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b)};
U9.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;vJ(this.butterBar,"Saving changes ...",0);return Hoc(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return Ioc(a)}).then(function(){return Joc(a)}).then(function(){return Koc(a)}).then(function(){vJ(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var Hoc=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)},Ioc=function(a){return a.component.slo&&!Ri(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,a.component.slo).then(function(){Mo(a.analytics,
Aq.MANAGE_COMPONENT,"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Joc=function(a){return a.component.team&&!Ri(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){Mo(a.analytics,Aq.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):Promise.resolve(!1)},Koc=function(a){return Loc(a)?
a.componentActions.update(a.component).then(function(){Mo(a.analytics,Aq.MANAGE_COMPONENT,"update");a.commentEditsEnabled?Mo(a.analytics,"component","comment edits enabled","update"):Mo(a.analytics,"component","comment edits disabled","update");return!0}):Promise.resolve(!1)},Loc=function(a){var b=Si(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Ri(a.originalComponent,b)},Goc=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};g=U9.prototype;
g.saveAccessPolicy=function(){var a=this;this.performAccessLimitCheck().then(function(b){return b?a.performDeletedAccountsCheck():Promise.resolve(!1)}).then(function(b){return b?a.performAdminAccessRemovalCheck():Promise.resolve(!1)}).then(function(b){return b?a.performRestrictedPlusGroupRemovalCheck():Promise.resolve(!1)}).then(function(b){return b?a.performAddedLargeOrOpenGroupCheck():Promise.resolve(!1)}).then(function(b){return b?a.performAddedNewInternalAliasesCheck():Promise.resolve(!1)}).then(function(b){return b?
a.performChangedImplicitAccessCheck():Promise.resolve(!1)}).then(function(b){return b?a.performAutomationUserAccessCheck():Promise.resolve(!1)}).then(function(b){b&&a.doSaveAccessPolicy()})};g.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.originalComponent&&this.component?this.originalComponent.accessLimit.accessLevel!==this.component.accessLimit.accessLevel:!1};
g.performAccessLimitCheck=function(){var a=dk();this.hasUnsavedAccessLimitChanges()&&"INTERNAL"===this.component.accessLimit.accessLevel?this.confirmationDialogService.open({title:"Component Visibility Changed",content:Co("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(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}}):
a.resolve(!0);return a.promise};
g.performAdminAccessRemovalCheck=function(){var a=dk();Moc(this)?this.confirmationDialogService.open({title:"Component Administrators Changed",content:Co("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(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}}):a.resolve(!0);return a.promise};
g.performRestrictedPlusGroupRemovalCheck=function(){var a=dk();Noc(this)?this.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Co("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(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}}):a.resolve(!0);return a.promise};
g.performDeletedAccountsCheck=function(){var a=dk();this.componentReaders.includes("3:nobody@google.com")?this.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',content:Co('"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: '+[this.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,this.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?
'"Create Issues"':null,this.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,this.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?'"Edit Issues"':null,this.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,this.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?
'"View restricted+ content"':null,this.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(b){return!!b}).join(", ")+". Do you want to proceed?"),onConfirm:function(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}}):a.resolve(!0);return a.promise};
g.performChangedImplicitAccessCheck=function(){var a=dk(),b={};b=Eo("A",(b.href=n$a(this.documentationLinks),b),"Learn more.");this.implicitAccess.getValue()==this.implicitAccess.getSavedValue()?a.resolve(!0):this.implicitAccess.getValue()?this.confirmationDialogService.open({title:"Turn on expanded access for component "+this.component.componentId+"?",content:Fo("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",b),onConfirm:function(){a.resolve(!0)},
onDismiss:function(){a.resolve(!1)}}):this.confirmationDialogService.open({title:"Turn off expanded access for component "+this.component.componentId+"?",content:Fo("Some users may lose the ability to edit or comment on issues in this component. ",b),onConfirm:function(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)}});return a.promise};
g.performAddedLargeOrOpenGroupCheck=function(){var a=this;return this.enableRostersChecks&&Mu(this)?this.evaluateNewGroups().then(function(b){var c=Ooc(b),d=Poc(b);if(0===c.size&&0===d.size)return Promise.resolve(!0);b=Qoc(c.size,d.size);c=Roc(c);d=Soc(d);c=Fo(c,c===Bu?Bu:Eo("BR"),d);d={};c=Fo(c,Eo("P",{},Fo("Please review the ",Eo("A",(d.href=lLb(a.documentationLinks)+"#fully-public-component",d.target="_blank",d),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));
var e=dk();a.confirmationDialogService.open({title:b,content:c,onConfirm:function(){e.resolve(!0)},onDismiss:function(){e.resolve(!1)},confirmButtonText:"Add Group"});return e.promise}):Promise.resolve(!0)};
var Ooc=function(a){var b=new Map;a=n(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},Poc=function(a){var b=new Map;a=n(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},Qoc=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"},Roc=function(a){if(0===a.size)return Bu;for(var b=1===a.size?Eo("P",{},"The following large group is added: "):Eo("P",{},"The following large groups are added: "),c=[],d=n(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Eo("P",{},Fo(Eo("B",{},e)," has approximately ",Eo("B",{},f)," Googlers.")))}return Fo(b,c)},Soc=function(a){if(0===a.size)return Bu;var b=1===a.size?
Eo("P",{},"The following open group is added: "):Eo("P",{},"The following open groups are added: "),c=[];a=n(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Eo("P",{},Eo("B",{},d.value)));return Fo(b,c)};g=U9.prototype;
g.performAddedNewInternalAliasesCheck=function(){var a=dk();if(this.isPublic()&&Toc(this)){var b={};b=Fo(Eo("P",{},"You are about to give a broad category of users permissions on a public component."),Eo("P",{},Fo("Please review the ",Eo("A",(b.href=mLb(this.documentationLinks),b.target="_blank",b),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));this.confirmationDialogService.open({title:"Adding an broad category of users to a public component",
content:b,onConfirm:function(){a.resolve(!0)},onDismiss:function(){a.resolve(!1)},confirmButtonText:"Add Group Alias"})}else a.resolve(!0);return a.promise};
g.doSaveAccessPolicy=function(){var a=this;try{var b=qS(this.componentAccessPolicyUnderEdit);var c=qS(this.issueDefaultAccessPolicyUnderEdit)}catch(d){c="An unknown problem occurred";d instanceof Error&&(c=d.message);wJ(this.butterBar,c);return}Mu(this)?(this.isUpdating=this.isUpdatingAccessPolicy=!0,vJ(this.butterBar,"Saving access settings...",0),this.saveIssueDefaultsAccessPolicy(c).then(function(d){d&&(b.readers=[].concat(r(d.admins||[]),r(d.editors||[]),r(d.appenders||[]),r(d.readers||[]),r(d.restrictedPlusReaders||
[]),r(d.restrictedReaders||[])));return a.saveComponentAccessPolicy(b)}).then(function(){return a.doSaveAccessLimit()}).then(function(){return Promise.all([].concat(r(a.loadAccessPolicy(a.componentId))))}).then(function(){vJ(a.butterBar,"Access settings saved",0)}).catch(function(d){wJ(a.butterBar,Xn(d),0)}).finally(function(){a.loadUserAccess(a.componentId);a.isUpdatingAccessPolicy=!1;a.isUpdating=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})):this.doSaveAccessLimit()};
g.saveComponentAccessPolicy=function(a){var b=this;return this.componentFlattenedAccessPolicy&&Uoc(this.componentFlattenedAccessPolicy,this.componentAccessPolicyUnderEdit)?this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){var d=pS(c);if(b.componentAccessPolicyUnderEdit&&!Uoc(d,b.componentAccessPolicyUnderEdit))return Promise.resolve(void 0);if(b.componentFlattenedAccessPolicy&&Uoc(d,b.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
a.readers=c.readers;a.inheritance=0===b.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return b.accessPolicyApi.update("COMPONENT",b.componentId,a)}):Promise.resolve(void 0)};g.saveIssueDefaultsAccessPolicy=function(a){if(!this.issueDefaultFlattenedAccessPolicy||!Voc(this.issueDefaultFlattenedAccessPolicy,this.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);a.inheritance="INHERIT_NOTHING";return this.accessPolicyApi.update("ISSUE_DEFAULTS",this.componentId,a)};
g.doSaveAccessLimit=function(){var a=this;if(!this.hasUnsavedAccessLimitChanges())return Promise.resolve();this.isUpdatingAccessLimit=!0;this.isUpdating=this.isUpdatingAccessPolicy||this.isUpdatingAccessLimit;return this.accessPolicyApi.setAccessLimit("COMPONENT",this.componentId,this.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;vJ(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=
a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";Wn(b)&&(c+=Xn(b));wJ(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isUpdating=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};
var Moc=function(a){function b(h){return h?h.admins.concat(h.inheritedAdmins):[]}var c="2:"+a.activeSession.getUserEmail(),d=b(a.componentFlattenedAccessPolicy),e=b(a.componentAccessPolicyUnderEdit);a=d.filter(function(h){return-1===e.indexOf(h)});d=a.filter(function(h){return h.startsWith("3:")});var f=a.filter(function(h){return h.startsWith("2:")});return-1<e.indexOf(c)||0===a.length?!1:-1<f.indexOf(c)?!0:d.length?!0:!1},Noc=function(a){if(!a.issueDefaultFlattenedAccessPolicy)return!1;var b=a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders;
return 0<a.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders.filter(function(c){return-1===b.indexOf(c)}).filter(function(c){return c.startsWith("3:")}).length},Toc=function(a){if(!a.issueDefaultAccessPolicyUnderEdit.appenders||!a.issueDefaultFlattenedAccessPolicy||Ri(a.issueDefaultFlattenedAccessPolicy.appenders,a.issueDefaultAccessPolicyUnderEdit.appenders))return!1;for(var b=n(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),c=b.next();!c.done;c=b.next())if(c=c.value,Khb.has(c)&&!a.issueDefaultFlattenedAccessPolicy.appenders.includes(c))return!0;
return!1};
U9.prototype.evaluateNewGroups=function(){var a=this,b=[].concat(r(new Set([].concat(r(aj(this.componentAccessPolicyUnderEdit.admins,this.componentFlattenedAccessPolicy.admins)),r(aj(this.issueDefaultAccessPolicyUnderEdit.admins,this.issueDefaultFlattenedAccessPolicy.admins)),r(aj(this.issueDefaultAccessPolicyUnderEdit.editors,this.issueDefaultFlattenedAccessPolicy.editors)),r(aj(this.issueDefaultAccessPolicyUnderEdit.appenders,this.issueDefaultFlattenedAccessPolicy.appenders)),r(aj(this.issueDefaultAccessPolicyUnderEdit.readers,this.issueDefaultFlattenedAccessPolicy.readers)),
r(aj(this.issueDefaultAccessPolicyUnderEdit.restrictedReaders,this.issueDefaultFlattenedAccessPolicy.restrictedReaders)),r(aj(this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,this.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))))));return Promise.all(b.map(function(c){return a.retrieveGroupMetadata(c)}))};
U9.prototype.retrieveGroupMetadata=function(a){a=this.accessPolicyConverter.stringToAccessPolicyPrincipal(a);return ej(a)&&a.group.emailAddress?this.groupMetadata.get(a.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})};
var Mu=function(a){return!(!a.componentFlattenedAccessPolicy||!Uoc(a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit))||!(!a.issueDefaultFlattenedAccessPolicy||!Voc(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit))},Uoc=function(a,b){return b&&a?!Ri(a.admins,b.admins)||!Ri(a.appenders,b.appenders)||!Ri(a.implicitAccess,b.implicitAccess):!1},Voc=function(a,b){return b&&a?!Ri(a.admins,b.admins)||!Ri(a.editors,b.editors)||!Ri(a.appenders,b.appenders)||!Ri(a.readers,
b.readers)||!Ri(a.restrictedReaders,b.restrictedReaders)||!Ri(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Doc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
U9.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Si(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled="ENABLED"==this.component.commentEditState};
U9.prototype.revertAccessPolicyChanges=function(){this.componentFlattenedAccessPolicy&&(this.componentAccessPolicyUnderEdit=Si(this.componentFlattenedAccessPolicy));this.issueDefaultFlattenedAccessPolicy&&(this.issueDefaultAccessPolicyUnderEdit=Si(this.issueDefaultFlattenedAccessPolicy));this.appEvents.contactChipsRevertChanges.next()};
var xjb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=Coc(b.componentPathInfo.allCustomField)})},Coc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]};
U9.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=Coc(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()})};
U9.prototype.loadAccessPolicy=function(){var a=this;return[this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(b){a.componentFlattenedAccessPolicy=pS(b);a.componentAccessPolicyUnderEdit=Si(a.componentFlattenedAccessPolicy)}).catch(function(b){a.errorHandler.errorHandler(null,b)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(b){a.issueDefaultFlattenedAccessPolicy=pS(b);a.issueDefaultAccessPolicyUnderEdit=Si(a.issueDefaultFlattenedAccessPolicy)}).catch(function(b){a.errorHandler.errorHandler(null,
b)})]};U9.prototype.loadUserAccess=function(a){var b=this,c=bo("COMPONENT",a);TJ(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:TJ(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};var Aoc=function(a){TJ(a.userAccess,"writer",bo("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},Ju=function(a){return a.isSaving()||!a.isEditorInternal};g=U9.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=Si(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return ul(this.componentId,{includeArchived:a})};g.componentPermissions=function(a){return{path:"/components/"+a,fragment:"access"}};
g.createIssue=function(){this.trackClick("createIssue");this.bLocation.url(this.paths.createIssue()+"?component="+this.component.componentId)};g.createChild=function(){this.bLocation.url(this.paths.createComponent({parentId:this.component.componentId}))};g.trackClick=function(a){Mo(this.analytics,"editComponent","click",a)};
var xib=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?wJ(a.butterBar,"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,vJ(a.butterBar,"Looking up subcomponents...",0),a.componentService.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=Nb(b,D9,2);CC(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(Ef(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):wJ(a.butterBar,"Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};U9.prototype.getRetentionPeriod=function(a){if(a&&a.hasRetentionSettings()&&qj(a.getRetentionSettings(),1,0)){var b=qj(a.getRetentionSettings(),1,0);switch(b){case 1:return"Buganizer default retention (10 years)";case 3:return"Indefinite retention";case 2:return a=Ji(a.getRetentionSettings(),2),Wo(a);default:throw Error("af`"+b);}}return"Retention period unspecified"};
U9.prototype.archive=function(){var a=this;this.isArchiving=!0;vJ(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);vJ(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);Mo(a.analytics,"component","archive");b.userHasEditAccess=a.component.userHasEditAccess;a.updateComponentAndOriginalComponent(b);a.archiveAction=
b.archived?"Unarchive":"Archive";a.isArchiving=!1}).catch(function(b){a.component.archived=!a.component.archived;vJ(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Wn(b)?Xn(b):b));a.isArchiving=!1})};
U9.prototype.loadTemplates=function(a){var b=this,c=this.paths.getBaseUrl()+"/"+this.paths.createIssue();return this.templatesApi.query(a).then(function(d){b.templates=d.map(function(e){var f=e.name;f||(f=e.default?"(default template)":"(unnamed template)");return{name:f,description:e.description||"",url:c+"?component="+a+"&template="+e.templateId}})}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var Woc=function(a){a.componentReaders=[].concat(r(new Set([].concat(r(a.componentAccessPolicyUnderEdit?[].concat(r(a.componentAccessPolicyUnderEdit.inheritedAdmins||[]),r(a.componentAccessPolicyUnderEdit.admins||[]),r(a.componentAccessPolicyUnderEdit.editors||[]),r(a.componentAccessPolicyUnderEdit.appenders||[])):[]),r(a.issueDefaultAccessPolicyUnderEdit?[].concat(r(a.issueDefaultAccessPolicyUnderEdit.admins||[]),r(a.issueDefaultAccessPolicyUnderEdit.editors||[]),r(a.issueDefaultAccessPolicyUnderEdit.appenders||
[]),r(a.issueDefaultAccessPolicyUnderEdit.readers||[]),r(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),r(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||[])):[])))))};U9.prototype.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};U9.prototype.getAccessLevelDescription=function(a){return d0b(a)};
var Xoc=function(a,b){return a.componentHistoryUiEnabled?a.componentUpdatesApi.get(b).then(function(c){a.updateDiffs=c.getUpdatesList().map(function(d){var e=a.componentUpdates,f=JPb(d.getAddMask()),h=JPb(d.getRemoveMask()),k={author:d.getAuthor(),timestamp:d.getTimestamp(),diffs:[]},q=d.getAdd()||new qn;d=d.getRemove()||new qn;for(var t=n(new Set([].concat(r(f),r(h)))),x=t.next();!x.done;x=t.next()){var y=x.value;if(x=FPb.get(y))if("name"===y){var F=oR(h,y,d.getName());y=oR(f,y,q.getName());k.diffs.push(pR(x,
F,y))}else if("description"===y)F=oR(h,y,d.getDescription()),y=oR(f,y,q.getDescription()),k.diffs.push(pR(x,F,y));else if("parentComponentId"===y)F=oR(h,y,String(uj(d,2))),y=oR(f,y,String(uj(q,2))),k.diffs.push(pR(x,F,y));else if("isArchived"===y)F=oR(h,y,String(d.getArchived())),y=oR(f,y,String(q.getArchived())),k.diffs.push(pR(x,F,y));else if("commentEditState"===y){var K=GPb.get(qj(d,15,0));F=GPb.get(qj(q,15,0));K&&F&&(K=oR(h,y,K),y=oR(f,y,F),k.diffs.push(pR(x,K,y)))}else"defaultTemplateId"===
y?(F=oR(h,y,String(uj(d,18))),y=oR(f,y,String(uj(q,18))),k.diffs.push(pR(x,F,y))):"slo"===y?e.sessionIsInternal&&(F=oR(h,y,NPb(d.getSlo())),y=oR(f,y,NPb(q.getSlo())),k.diffs.push(pR(x,F,y))):"team"===y?e.sessionIsInternal&&(F=oR(h,y,OPb(d.getTeam())),y=oR(f,y,OPb(q.getTeam())),k.diffs.push(pR(x,F,y))):"retentionSettings"===y?(F=oR(h,y,LPb(d.getRetentionSettings())),y=oR(f,y,LPb(q.getRetentionSettings())),k.diffs.push(pR(x,F,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()};U9.prototype.showUpdateHistoryModal=function(){var a=this;Xoc(this,this.componentId).then(function(){a.matDialogService.open(o4,{width:"600px",data:{updateDiffs:a.updateDiffs}});Mo(a.analytics,Aq.UPDATE_HISTORY_MODAL,"open");Mo(a.analytics,Aq.MANAGE_COMPONENT,"viewHistory")})};U9.prototype.onSloChange=function(a){this.component.slo.id=a?a.getSloId():"0";a&&Yoc(this)};
var bjb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return Iu(a)&&(c||b)},hjb=function(a){var b=!a.component.team||"0"===a.component.team.id,c=!a.parentComponent;return Iu(a)&&(!a.component.slo.inherit||c&&b)},Lib=function(a){var b,c,d,e;Pe(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?Re(f,(0,W.firstValueFrom)(a.team$.pipe(C(function(h){h=
h.getSlo();a.component.slo.id=h.getSloId();Yoc(a)}))),0):(d=Zoc(a),e=d.id,a.component.slo.id=e,Yoc(a),f.jumpTo(0))})},gjb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},Zoc=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}},$oc=function(a,b){var c=[];if(!b||
!a)return c;for(var d=n([{field:"admin",accessor:function(h){return h.admins}},{field:"editors",accessor:function(h){return h.editors}},{field:"appenders",accessor:function(h){return h.appenders}},{field:"readers",accessor:function(h){return h.readers}},{field:"restrictedReaders",accessor:function(h){return h.restrictedReaders}},{field:"restrictedPlusReaders",accessor:function(h){return h.restrictedPlusReaders}}]),e=d.next();!e.done;e=d.next()){e=e.value;var f=aj(e.accessor(b)||[],e.accessor(a)||
[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c};
U9.prototype.getAddedAutomationInPolicyChange=function(){var a=[].concat(r($oc(this.issueDefaultFlattenedAccessPolicy,this.issueDefaultAccessPolicyUnderEdit)),r($oc(this.componentFlattenedAccessPolicy,this.componentAccessPolicyUnderEdit))),b=new Set;a=n(a);for(var c=a.next();!c.done;c=a.next()){c=n(c.value.addedPrincipals);for(var d=c.next();!d.done;d=c.next())d=this.accessPolicyConverter.stringToAccessPolicyPrincipal(d.value),(dj(d)?Bo(d.user.emailAddress):ej(d)&&Bo(d.group.emailAddress))&&b.add(d)}return[].concat(r(b.values()))};
var rjb=function(a,b){vJ(a.butterBar,"Saving effort spec...",0);a.component&&(a.component.effortSpec=Dqa(b),a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);Mo(a.analytics,Aq.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;vJ(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else vJ(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}))};U9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Si(a);this.component$.next(this.component);this.originalComponent=Si(a);var b;this.componentTeam$.next(null!=(b=this.component.team)?b:null);Yoc(this)};U9.prototype.back=function(){EZ(this.appHistory)};var Yoc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
ni.Object.defineProperties(U9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ri(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,Woc(this),this.componentAccessPolicyUnderEdit?(a=new Set([].concat(r(this.componentAccessPolicyUnderEdit.inheritedAdmins||[]),r(this.componentAccessPolicyUnderEdit.admins||[]))),a=[].concat(r(a))):a=[],this.componentAdmins=a)},get:function(){return this.componentAccessPolicyUnderEditInternal}},
issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ri(a,this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,Woc(this),this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(r(this.issueDefaultAccessPolicyUnderEdit.admins||[]),r(this.issueDefaultAccessPolicyUnderEdit.editors||[]))),a=[].concat(r(a)).sort()):a=[],this.issueCommenters=a,this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(r(this.issueDefaultAccessPolicyUnderEdit.admins||
[]),r(this.issueDefaultAccessPolicyUnderEdit.editors||[]),r(this.issueDefaultAccessPolicyUnderEdit.appenders||[]),r(this.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),r(this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||[]))),a=[].concat(r(a)).sort()):a=[],this.issueViewersChip=[{displayText:"Issue Admins, Editors, Commenters, Restricted/Restricted+ Viewers",values:a}])},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});
U9.\u0275fac=function(a){return new (a||U9)(B(Fk),B(qH,2),B(tQ),B(oI),B(OJ),B(cK),B(pI),B(DZ),B(uJ),B(NJ),B(NG),B(QN),B(IC),B(BK),B($X),B(SJ),B(B9),B(ZR),B(xJ),B(E9),B(qR),B(A9),B(nS),B(UL),B(eJ),B($K),B(rX),B(sX),B(T9),B(LJ))};
U9.\u0275cmp=u({type:U9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(zg(woc,5),zg(xoc,5),zg(yoc,5),zg(XV,5,Rd));if(a&2){var c;yg(c=Bg())&&(b.confirmArchiveDialog=c.first);yg(c=Bg())&&(b.archiveButton=c.first);yg(c=Bg())&&(b.metadataForm=c.first);yg(c=Bg())&&(b.tabs=c)}},features:[mg([qH]),Of],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"],[1,"field-label-with-help"],["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"],[1,"help-label"],[1,"help-bubble","jfk-bubble"],["aria-label","Learn more about component alias","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"href"],
[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"],["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"],["tabindex","0","aria-describedby","edit-slo-help-bubble",1,"keep-focus-ring","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"],["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"],["class","component-banner",4,"ngIf"],["aria-label",
"Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["name","accessControlForm","novalidate",""],["aria-label","Component Admins",1,"edit-field"],["for","component-acl-admins"],[1,"edit-field-note"],["idForInputBox","component-acl-admins","ariaLabel","Component Admins email list",3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","Create issues",1,"edit-field"],["for","component-acl-create-issues"],["idForInputBox","component-acl-create-issues",
"ariaLabel","Create Issues access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","Issue Admins",1,"edit-field"],["for","issue-admins"],["target","_blank","aria-label","Learn more about issue admins","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","issue-admins","ariaLabel","Issue admins email list",3,"users","accessLevel","usersChange","isValid"],["aria-label","Edit issues",1,"edit-field"],["for","component-acl-view-comment-issues",
1,"help-label"],["class","help-container",4,"ngIf"],["idForInputBox","component-acl-view-comment-issues","ariaLabel","Edit access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label","Comment on issues",1,"edit-field"],["for","component-acl-view-edit-issues"],["idForInputBox","component-acl-view-edit-issues","ariaLabel","comment access email list",3,"users","accessLevel","containerChips","includeAliases","usersChange","isValid"],["aria-label",
"View restricted+ content",1,"edit-field"],["for","component-acl-restricted-plus-reader"],["target","_blank","aria-label","Learn more about viewing restricted+ content","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-plus-reader","ariaLabel","Restricted+ content view access email list",3,"users","accessLevel","customValidators","usersChange","isValid"],["aria-label","View restricted content",1,"edit-field"],["for","component-acl-restricted-reader"],
["target","_blank","aria-label","Learn more about viewing restricted content","class","keep-underline keep-focus-ring",3,"href",4,"ngIf"],["idForInputBox","component-acl-restricted-reader","ariaLabel","Restricted content view access email list",3,"users","accessLevel","containerChips","usersChange","isValid"],["aria-label","View issues",1,"edit-field"],["for","component-acl-view-issues"],["idForInputBox","component-acl-view-issues","ariaLabel","Issues view access email list",3,"users","accessLevel",
"containerChips","includeAliases","includeViewAliases","usersChange","isValid"],["aria-label","View Component (Auto-populated)",1,"edit-field","bv2-edit-resource-readonly"],["for","component-acl-view-component"],["idForInputBox","component-acl-view-component","ariaLabel","Component view access email list",3,"users","accessLevel","usersChange","isValid"],[1,"edit-field","permission-toggle"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"checked","disabled","change"],["id","expanded-access-help",
1,"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"],["format","hairline",3,"onAction",4,"ngIf"],[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"],["target","_blank",
"aria-label","Learn more about issue admins",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about viewing restricted+ content",1,"keep-underline","keep-focus-ring",3,"href"],["target","_blank","aria-label","Learn more about viewing restricted content",1,"keep-underline","keep-focus-ring",3,"href"],["format","hairline",3,"onAction"],["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,$jb,12,3,"ng-container",0),U(1,"async"),P(2,akb,2,1,"ng-template",null,1,Hg));if(a&2){var c=O(3);D("ngIf",!V(1,2,b.showTrackerRedirect$))("ngIfElse",c)}},dependencies:[FL,fy,gy,my,sR,QR,BR,q2,x2,C2,gX,gY,v3,Sy,fh,Uy,Ky,Ly,bz,Ry,Py,PO,AW,QG,pC,qC,fN,JC,KC,LC,MC,yD,iB,jS,YV,XV,tF,XX,RO,iZ,F9,gZ,fM,oU,bS,Q9,OR,z7,ny,py],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}\n/*# sourceMappingURL=manage_component.css.map */"]});
var Akb=function(a){return[a]},Bkb=function(){return[]},Kkb=function(a){return{value:a}},apc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},V9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K){Z.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=t;this.teamsService=x;this.userAccess=y;this.sloApi=F;this.sloService=K;this.originalSloLock=
!1;this.canEditSloLock=!0;this.sloJustification$=new W.BehaviorSubject("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new W.ReplaySubject(1);this.teamSlo$=this.team$.pipe(C(function(S){return S.getSlo()}));this.isSloLeadValid=!1;this.sloLeadEmail$=new W.BehaviorSubject("");this.sloLead$=new W.BehaviorSubject("");this.sloLeadUserValidators={sloLeadNotUser:function(S){if(S){S=
n(S);for(var aa=S.next();!aa.done;aa=S.next())if(0!==aa.value.indexOf("2:"))return!1}return!0}};this.sloLeadGooglerValidators={sloLeadNotGoogler:function(S){if(S){S=n(S);for(var aa=S.next();!aa.done;aa=S.next())if(0!==aa.value.indexOf("1:"))return!1}return!0}};this.teamAdmins$=(0,W.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(C(function(S){return S.admins.filter(dj).map(Jm)}));this.teamLeads$=this.team$.pipe(C(function(S){return S.getMembersList().filter(function(aa){return oj(aa,2)}).map(function(aa){var ba,
ka;return"2:"+(null!=(ka=null==(ba=aa.getUser())?void 0:ba.getEmailAddress())?ka:"")})}));this.adminsAndLeads$=(0,W.combineLatest)([this.teamAdmins$,this.teamLeads$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;var ba=new Set(S);aa=aa.filter(function(ka){return!ba.has(ka)});return[].concat(r(S),r(aa))}));this.associatedComponents$=(0,W.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(C(function(S){var aa=S.getPathNamesList();return S.getPathIdsList().map(function(ba,
ka){return{id:ba,name:aa[ka]}})}));this.isRootTeam$=this.teamPath$.pipe(C(function(S){return 1>=S.length?!0:!1}));this.parentTeam$=(0,W.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(Df(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;return S?(0,W.of)(null):J.teamsService.getTeam(""+aa[aa.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(Df(function(S){var aa,ba=null==S?void 0:null==(aa=S.getSlo())?void 0:aa.getSloId();return ba&&"0"!==ba?J.sloService.get(ba).then(function(ka){return{id:ba,
link:wl(ba),slo:ka}}):(0,W.of)({id:"0"})}));this.sloPolicySource$=(0,W.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;var ba,ka=null==S?void 0:null==(ba=S.getSlo())?void 0:ba.getSourceTeamId();ba=aa.find(function(wa){return""+wa.id===ka});return ka&&ba?{name:ba.name,link:{path:"/teams/"+ka+"/edit",fragment:"slo"}}:null}));this.Tab=apc;this.enableSloLockingUi=Cq(this.activeSession,"enableSloLockingUi");this.enableSloLead=Cq(this.activeSession,
"enableSloLead");this.isSloInheritEnabled$=new W.BehaviorSubject(!0);this.sloId$=new W.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new W.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(Df(function(S){return TJ(J.userAccess,"reader","slos/"+S)}),Cf(!1));this.sloPickerLink$=(0,W.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(C(function(S){var aa=n(S);S=aa.next().value;aa=aa.next().value;return S&&0<Number(S)&&aa?wl(S):null}));this.hasUnsavedChanges$=
(0,W.combineLatest)([this.team$,this.sloId$,this.isSloInheritEnabled$,this.sloLocked$,this.sloJustification$,this.sloLeadEmail$]).pipe(C(function(S){var aa=n(S),ba=aa.next().value;S=aa.next().value;var ka=aa.next().value,wa=aa.next().value,Aa=aa.next().value;aa=aa.next().value;var Ka=ba.getSlo(),Ja,Jb;ba=null!=(Jb=null==(Ja=Ub(ba,Wl,12))?void 0:Ja.getEmailAddress())?Jb:"";return Ka.getInherit()!==ka||Ka.getSloId()!==S||wa!==J.originalSloLock||Ka.getComment()!==Aa||ba!==aa}));this.hasEditAccess=!1;
this.pageTitle.setTitle("Team Overview");this.team$.pipe(Ef(this.destroyed$)).subscribe(function(S){J.pageTitle.setTitle("Team: "+S.getName())});a=Cq(this.activeSession,"enableSloLockingCheck")?"teams/"+this.teamId+"/slo":"teams/"+this.teamId;TJ(this.userAccess,"writer",a).then(function(S){J.hasEditAccess=S});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(C(function(S){return S.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",
responseConstructor:F1b}).pipe(C(Lra));var R=ml(this.hasUnsavedChanges$.pipe(Ef(this.destroyed$)),!1);this.subscriptions.add(aY(this.checkBeforeExit,function(){return R.getValue()},!1))};X(V9,Z);V9.\u0275dir=Z.\u0275dir;
V9.prototype.ngOnInit=function(){var a=this,b,c,d;return Pe(function(e){if(1==e.nextAddress)return b=a.location.hash(),"basic"===b?a.selectedTabIndex=0:"slo"===b?a.selectedTabIndex=1:"componentMapping"===b&&(a.selectedTabIndex=2),Re(e,(0,W.firstValueFrom)(a.teamsService.get(a.teamId)),2);if(3!=e.nextAddress)return c=e.yieldResult,"0"===c.getTeamId()?wJ(a.butterBar,"Unable to fetch team ID '"+a.teamId+"'"):a.team$.next(c),Ekb(a),d=a,Re(e,(0,W.firstValueFrom)(a.parentTeam$),3);d.parentTeam=e.yieldResult;
Ve(e)})};V9.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)};V9.prototype.onSloChange=function(a){a&&(this.sloId=a.getSloId())};
var Dkb=function(a,b){var c,d,e,f,h,k;return Pe(function(q){switch(q.nextAddress){case 1:if(!a.validate())return q.return();vJ(a.butterBar,"Saving changes...",0);Qe(q,2);if(!a.enableSloLead||(null==(c=Ub(b,Wl,12))?void 0:c.getEmailAddress())===a.sloLeadEmail){q.jumpTo(4);break}var t=W.firstValueFrom;var x=new Wl;x=m(x,1,a.sloLeadEmail);x=Vb(b,12,x);x=a.teamsService.updateTeam(x);return Re(q,t.call(W,x),5);case 5:d=q.yieldResult,a.team$.next(d);case 4:if(a.sloLocked===a.originalSloLock){q.jumpTo(6);
break}t=W.firstValueFrom;x=a.sloApi;var y=a.teamId,F=a.sloLocked,K=new FI;F=Dl(K,2,F?1:2).setTeamId(Number(y));x=x.executor.post({url:"action/teams/"+y+"/slo_edit_policy",responseConstructor:J1b,body:F}).pipe(C(Lra));return Re(q,t.call(W,x),7);case 7:e=q.yieldResult,a.originalSloLock=e;case 6:f=b.getSlo();if(f.getInherit()===a.isSloInheritEnabled&&f.getSloId()===a.sloId&&a.originalSloLock===a.sloLocked&&f.getComment()===a.sloJustification){q.jumpTo(8);break}t=W.firstValueFrom;F=(new Nu).setSloId(a.sloId).setInherit(a.isSloInheritEnabled);
a.isSloInheritEnabled||F.setComment(a.sloJustification$.getValue());x=a.teamsService;y=a.teamId;K=(new ZK).setTeamId(y);F=Vb(K,2,F);x=x.executor.post({url:"/action/teams/"+y+"/update_slo",body:F,responseConstructor:NI});return Re(q,t.call(W,x),9);case 9:h=q.yieldResult,a.team$.next(h);case 8:vJ(a.butterBar,"Save complete.");Wu(q,0);break;case 2:k=Ue(q),zJ(a.errorHandler,k),Ve(q)}})};
V9.prototype.validate=function(){if(!this.isSloInheritEnabled&&""===this.sloJustification$.getValue())return this.error="Justification is required",!1;if(this.enableSloLead&&!this.isSloLeadValid)return this.error="Please provide a valid SLO lead",!1;this.error="";return!0};
var bpc=function(a){(0,W.firstValueFrom)(a.team$).then(function(b){var c;b=null==(c=Ub(b,Wl,12))?void 0:c.getEmailAddress();a.sloLead=b?"2:"+b:""})},cpc=function(a){(0,W.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.getSloId();a.isSloInheritEnabled=b.getInherit();a.sloJustification$.next(b.getComment())})},dpc=function(a){(0,W.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},Ekb=function(a){a.error="";bpc(a);cpc(a);a.enableSloLockingUi&&dpc(a)};
V9.prototype.back=function(){EZ(this.appHistory)};
ni.Object.defineProperties(V9.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()}}});V9.\u0275fac=function(a){return new (a||V9)(B(NG),B(OJ),B(DZ),B(uJ),B($X),B(ZR),B(xJ),B(oI),B(NJ),B(tQ),B($K),B(SJ),B(rX),B(sX))};
V9.\u0275cmp=u({type:V9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&zg(XV,5,Rd);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},features:[Of],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"],["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"],["idForInputBox","team-slo-lead","ariaLabel","Team SLO lead email",3,"users","customValidators","detailedUserValidators","maxUserAllowed","usersChange","isValid"],[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&&(E(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),M("click",function(){return b.back()}),H(4,"mat-icon",4),G()()()(),E(5,"div",5),P(6,Lkb,86,39,"ng-container",6),U(7,"async"),G());a&2&&(A(6),D("ngIf",V(7,1,b.team$)))},dependencies:[ey,fy,gy,gY,fh,Ky,bz,Ry,PO,AW,pC,qC,fN,yD,YV,XV,tF,iB,jS,XX,QH,OR,gZ,VY,ny],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}\n/*# sourceMappingURL=manage_team.css.map */"]});
var W9=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R){Z.call(this);this.appSearchState=a;this.pageTitle=b;this.paths=c;this.userPreferencesManager=d;this.needsAttentionApi=e;this.cdr=f;this.dateFormatter=h;this.analytics=k;this.bLocation=q;this.domSafe=t;this.issueFridge=x;this.errorHandler=y;this.snackbar=F;this.currentTracker=K;this.appEvents=J;this.issuePagination=R;this.issues=[];this.columns=[RX,SX,TX,new xX({name:"alerts",sortable:!1,draggable:!1,fullLabel:"Alerts",label:"ALERTS"}),Object.assign({},
yX("priority"),{draggable:!1}),Object.assign({},yX("title"),{draggable:!1}),Object.assign({},yX("assignee"),{draggable:!1}),Object.assign({},yX("status"),{draggable:!1}),Object.assign({},yX("issueId"),{draggable:!1}),new xX({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.STATUS_ICON=RAb;this.STATUS_FULL_TEXT=GG;this.STATUS_TERSE=CG;a={};this.SIGNAL_MAPPING=(a.NEAR_SLO={className:"near-slo",text:"Near SLO",icon:"timelapse_24px"},a.MENTIONED={className:"mentioned-me",text:"Mentioned me",icon:"alternate_email_24px"},a.UNBLOCKED={className:"unblocked",text:"Blockers closed",icon:"slo-status-no-data"},a.NEEDS_REPORTER_INPUT={className:"needs-reporter-input",text:"Need reporter input",icon:"rate_review_24px"},a.UNKNOWN={className:"",text:"",
icon:""},a);this.ALL_SIGNAL_TYPES=Object.values(EAb).filter(function(S){return"UNKNOWN"!==S});this.selectedSignals=[].concat(r(this.ALL_SIGNAL_TYPES));this.sortConfig={field:"priority",direction:"ASC"};this.HOTKEYS=tH;this.SPACE_EMPTY_STATE=zQb};X(W9,Z);W9.\u0275dir=Z.\u0275dir;g=W9.prototype;
g.ngOnInit=function(){var a=this;this.pageTitle.setTitle("Needs attention");setTimeout(function(){a.appSearchState.clear()});this.fetchIssues();this.destroyed$.pipe(sf()).subscribe(function(){var b;null==(b=a.snackBarRefForUndo)||b.dismiss()})};g.convertIssueStatusStrToTag=function(a){return Ym[a]};g.hasResults=function(){return 0<this.issues.length-this.lastDismissedRowIssueIds.size};g.issueDescription=function(a){return"Needs attention Issue ID "+a.id+" titled: "+a.title};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(dlb(this,a),a=this.paths.editIssue(a),c&&(c.ctrlKey||c.metaKey||1===c.button)?this.domSafe.openInNewTab(a):c&&c.shiftKey?lq(this.domSafe,a):this.bLocation.url(a))};
var dlb=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(",");Mo(a.analytics,Aq.NEEDS_ATTENTION,"viewIssue",d)},Wkb=function(a){return 0===a.issues.length?!1:a.issues.every(function(b){return b.selected})};g=W9.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=n(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=n(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=n(this.issues.slice(d,e));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,LHb(this.issueFridge,String(a.issueId),a.starred).pipe(sf(),Ef(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 Rkb=function(a){a.dismissSelectedInProgress=!0;for(var b=[],c=n(a.issues),d=c.next();!d.done;d=c.next())d=d.value,d.selected&&(b.push(d.issueId),a.dismissInProgress[d.issueId]=!0);IFb(a.needsAttentionApi,b,!0).then(function(){return void epc(a,b)},function(e){return void a.errorHandler.errorHandler(null,e)}).finally(function(){a.dismissSelectedInProgress=!1;for(var e=n(b),f=e.next();!f.done;f=e.next())a.dismissInProgress[f.value]=!1})},jlb=function(a,b){a.dismissInProgress[b.issueId]||(a.dismissInProgress[b.issueId]=
!0,IFb(a.needsAttentionApi,[b.issueId],!0).then(function(){return void epc(a,[b.issueId])},function(c){return void a.errorHandler.errorHandler(null,c)}).finally(function(){a.dismissInProgress[b.issueId]=!1}))},epc=function(a,b){Mo(a.analytics,Aq.NEEDS_ATTENTION,"dismissIssue","numberOfIssues",b.length);for(var c=n(b),d=c.next();!d.done;d=c.next())a.lastDismissedRowIssueIds.add(d.value);c=n(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(sf()).subscribe(function(e){e.dismissedByAction&&fpc(a,b)})},fpc=function(a,b){IFb(a.needsAttentionApi,b,!1).then(function(){Mo(a.analytics,Aq.NEEDS_ATTENTION,"unDismissIssue","numberOfIssues",b.length);for(var c=n(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)})};g=W9.prototype;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.isIssueRow=function(){return!0};
g.fetchIssues=function(){var a=this,b;null==(b=this.snackBarRefForUndo)||b.dismiss();this.lastDismissedRowIssueIds.clear();this.isLoading=!0;b=gpc(this);b={page:1,resultsPerPage:this.needsAttentionApi.COUNT,sortColumns:b?[b]:[],returnUrl:"attention",trackerIds:vGb(this.currentTracker),fromNeedsAttention:!0};kJ(this.issuePagination);jJ(this.issuePagination,b).then(function(c){a.issues=c.issues;a.isLoading=!1;a.cdr.detectChanges()})};
var zlb=function(a){return a.issues.filter(function(b){var c=b.signals.some(function(d){return a.selectedSignals.includes(d.signalType)});return!a.lastDismissedRowIssueIds.has(b.issueId)&&c})},Nkb=function(a,b){return a.issues.filter(function(c){var d=c.signals.some(function(e){return e.signalType===b});return!a.lastDismissedRowIssueIds.has(c.issueId)&&d}).length},gpc=function(a){var b=jj(a.sortConfig.field);a="ASC"===a.sortConfig.direction?"ASCENDING":"DESCENDING";return b?new mj(b,a):null};
W9.prototype.onSortChange=function(a){this.sortConfig=a;this.fetchIssues()};
var flb=function(a,b){var c,d=(null==(c=b.timestamp)?0:c.seconds)?a.dateFormatter.format("MMM dd, yyyy hh:mma Z",void 0,new Date(1E3*b.timestamp.seconds)):null;switch(b.signalType){case "NEAR_SLO":return d?"SLO violation occurs on "+d:"This issue is near or past an SLO deadline";case "MENTIONED":return d?"You were mentioned on "+d:"You were mentioned on this issue recently";case "UNBLOCKED":return d?"The last blocking issue was closed on "+d:"The last blocking issue was closed recently";case "NEEDS_REPORTER_INPUT":return d?
"Issue was assigned back to reporter (you) on "+d:"Issue was assigned back to reporter (you) recently";default:return"This issue requires your attention"}},Mkb=function(a){switch(a){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";default:return""}};
W9.\u0275fac=function(a){return new (a||W9)(B(IM),B(NJ),B(pI),B(aI),B(gJ),B(qH,2),B(eO),B(BK),B(oI),B(RN),B(FK),B(xJ),B(sJ),B(LJ),B(eJ),B(iJ))};
W9.\u0275cmp=u({type:W9,selectors:[["ng-component"]],features:[mg([qH]),Of],decls:9,vars:6,consts:[[1,"a11y-only"],[1,"kd-appbar","kd-buttonbar"],["class","applied-signals",4,"ngIf"],[4,"ngIf"],[1,"bv2-view"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-view-loading layout-centered-column gap","tabindex","-1",3,"bFocus",4,"ngIf"],["class","bv2-grid-container",4,"ngIf"],[1,"applied-signals"],["mat-icon-button","","color","primary","matTooltip","Refresh","aria-label","Refresh",1,"gmat-button",
"large",3,"hotkey","click","onHotkey"],["svgIcon","refresh"],[1,"valign-middle"],["href","http://go/b-needs-attention-guide","matTooltip","Needs attention signals","mat-icon-button","","target","_blank",1,"small","margin-xs-right"],["svgIcon","help-outline",1,"icon-s"],[1,"inline-block","padded-s-left","border-left","signal-chips"],[1,"chippy","rounded","margin-s-right","select-all-signals",3,"click"],[4,"ngFor","ngForOf"],["matTooltipShowDelay","750",3,"matTooltip","selected","class","click",4,"ngIf"],
["matTooltipShowDelay","750",3,"matTooltip","click"],[3,"svgIcon"],["mat-button","","color","primary",3,"disabled","click"],[1,"bv2-view-loading"],["tabindex","-1",1,"bv2-view-loading","layout-centered-column","gap",3,"bFocus"],["aria-hidden","true","alt","",1,"empty-state-img","padded-y",3,"src"],[1,"type-l"],[1,"muted"],[1,"bv2-grid-container"],["scrollContainer",".bv2-view",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,"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,"matTooltip"],[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&&(E(0,"h2",0),Q(1,"Issues which need your attention"),G(),E(2,"div",1),P(3,Qkb,11,4,"div",2),P(4,Skb,3,1,"div",3),G(),E(5,"div",4),P(6,Tkb,4,0,"div",5),P(7,Ukb,6,2,"div",6),P(8,Alb,17,
20,"div",7),G());a&2&&(A(3),D("ngIf",!b.someIssuesSelected()),A(1),D("ngIf",b.someIssuesSelected()),A(1),Uf("aria-busy",b.isLoading),A(1),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading&&!b.hasResults()),A(1),D("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[fy,gy,iy,jy,ky,VB,pC,qC,yD,AX,FX,BX,CX,DX,fM,XY,dM,IX,sR,NX,jX,WP,tF,kI,ny,rL],styles:[".applied-signals[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{display:inline}.applied-signals[_ngcontent-%COMP%]   .chippy[_ngcontent-%COMP%]{cursor:pointer;padding:0 12px 0 4px}.applied-signals[_ngcontent-%COMP%]   .chippy.needs-reporter-input[_ngcontent-%COMP%]{padding-left:8px}.applied-signals[_ngcontent-%COMP%]   .chippy.select-all-signals[_ngcontent-%COMP%]{padding:0 10px 0 8px}.signal-chips[_ngcontent-%COMP%]{line-height:32px}.select-all-signals.selected[_ngcontent-%COMP%]{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)}.empty-state-img[_ngcontent-%COMP%]{max-width:320px}.chippy.selected[_ngcontent-%COMP%]{font-weight:500}.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)}\n/*# sourceMappingURL=needs_attention.css.map */"],
changeDetection:0});
var Clb=function(a){return{feature:a}},X9=function(a){this.beapService=a;this.beapFeaturesTF$=vec(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=vec(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,W.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(C(function(b){var c=n(b);b=c.next().value;c=c.next().value;return 0<b.length+c.length}));this.hasFeaturesTF$=this.beapFeaturesTF$.pipe(C(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(C(function(b){return 0<
b.length}));this.linkClicked={}},Mlb=function(a,b){return!!a.linkClicked[b]};X9.\u0275fac=function(a){return new (a||X9)(B(N1))};
X9.\u0275cmp=u({type:X9,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,Ilb,5,6,"ng-container",0),U(1,"async"),P(2,Jlb,2,0,"ng-template",null,1,Hg),P(4,Nlb,20,16,"ng-template",null,2,Hg));if(a&2){var c=O(3);D("ngIf",V(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[P1,fH,gH,fy,gy,my,qC,yD,jS,tF,ny,Y9]},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}\n/*# sourceMappingURL=beap_settings.css.map */'],
changeDetection:0});var Y9=function(){};Y9.prototype.transform=function(a){return 2===a?!0:!1};Y9.\u0275fac=function(a){return new (a||Y9)};Y9.\u0275pipe=$c({name:"featureState",type:Y9,pure:!0});
var hpc=function(){this.name="Assigned issues";this.resourceType=null;this.hasOptions=!1;this.options=[]};hpc.prototype.shouldDisplay=function(){return!0};hpc.prototype.getDefaultOptionId=function(){return null};var Z9=function(a,b){this.name=a;this.resourceType=b;this.hasOptions=!0;this.options=[]};Z9.prototype.shouldDisplay=function(){return 0<this.options.length};Z9.prototype.getDefaultOptionId=function(){return this.options[0].id};
var ipc=function(a,b){this.id=a;this.name=b},kpc=function(a,b,c,d,e){var f=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.selectedOptionId=null;this.subscriptions=new W.Subscription;this.hotlistMainOption=new Z9("Hotlist","HOTLIST");this.savedSearchMainOption=new Z9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new Z9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[new hpc,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];
a={};this.resourceMainOptions=(a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];jpc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){jpc(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(h){h.homepagePreferences&&(h=h.homepagePreferences,h.resourceType?(f.selectedMainOption=f.resourceMainOptions[h.resourceType]||
f.mainOptions[0],f.selectedOptionId=h.resourceId||null,jpc(f)):(f.selectedMainOption=f.mainOptions[0],f.selectedOptionId=null))}))};kpc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var Rlb=function(a){vJ(a.butterBar,"Saving preferences...",0);(null==a.selectedMainOption.resourceType||null==a.selectedOptionId?a.userPreferencesManager.clearHomepagePreferences():CDb(a.userPreferencesManager,{resourceType:a.selectedMainOption.resourceType,resourceId:a.selectedOptionId})).subscribe(function(){vJ(a.butterBar,"Preferences saved.",4E3)})},jpc=function(a){var b=function(c){return new ipc(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 ipc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};
var lpc=gj[3],$9=function(a,b,c,d,e,f,h,k,q){Z.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,r(h.supportedTimeZones.map(function(t){return{value:t.id,label:t.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession();this.showShowInlineImagesSetting=d.isInternalSession()&&Cq(this.activeSession,"enableImageSummary")};X($9,Z);
$9.\u0275dir=Z.\u0275dir;$9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new kpc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(Ef(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
$9.prototype.save=function(a,b,c){var d=this;vJ(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){vJ(d.butterBar,"Preferences saved.",4E3)});Mo(this.analytics,"preferences",a,b,c)};var mpc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===lpc};$9.prototype.getShowInlineImages=function(){var a;return null!=(a=this.userPreferences.showInlineImages)?a:!1};
$9.\u0275fac=function(a){return new (a||$9)(B(qH,2),B(aI),B(uJ),B(NG),B(QN),B(BK),B(VG),B(WL),B(eJ))};
$9.\u0275cmp=u({type:$9,selectors:[["b-general-settings"]],features:[mg([qH]),Of],decls:68,vars:15,consts:[[1,"bv2-settings-container"],[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-homepage-pref-selection","matTooltip","Current selection for preferred homepage"],["appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["id","bv2-homepage-pref-selection",
3,"ngModel","ngModelChange","selectionChange"],[4,"ngFor","ngForOf"],["appearance","standard","class","bv2-settings-item-setter bv2-settings-item-select",4,"ngIf"],["for","bv2-datetime-pref-date-formatting","matTooltip","Date/time formatting - Use this format for calendar dates."],["id","bv2-datetime-pref-date-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-datetime-pref-time-formatting",
"matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-time-formatting","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-datetime-pref-timezone","matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-datetime-pref-timezone","appearance","standard",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-enable-all-hotkeys","matTooltip","Enable all hotkeys?"],
["aria-label","Enable all hotkeys","id","bv2-enable-all-hotkeys",1,"bv2-settings-item-setter",3,"model","modelChange"],["for","bv2-force-plain-text","matTooltip","Force all comments to display in plain text mode."],["id","bv2-force-plain-text","aria-label","Force comments to display as plain text",3,"model","modelChange"],["for","bv2-force-code-font"],["id","bv2-force-code-font"],["class","bv2-settings-item",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"],["for","bv2-show-inline-images"],["id","bv2-show-inline-images","aria-label","Show snip it images inline in comments",3,
"model","modelChange"],["for","bv2-bug-screensaver","matTooltip","Bugs animate after 3 minutes of inactivity."],["id","bv2-bug-screensaver","aria-label","enable bug screensaver",3,"model","modelChange"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"div",1)(2,"div",2),Q(3," Preferred homepage "),E(4,"p",3),Q(5," See your preferred homepage selection. "),E(6,"a",4),Q(7," Learn more "),G()()(),E(8,"div",5)(9,"div",6)(10,"label",7),Q(11," Current selection "),G(),E(12,"mat-form-field",8)(13,"mat-select",
9),M("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();Rlb(c);c.cdr.detectChanges()}),P(14,Plb,2,1,"ng-container",10),G()(),P(15,Slb,3,2,"mat-form-field",11),G()()(),H(16,"hr"),E(17,"div",1)(18,"div",2),Q(19," Date/time formatting settings "),E(20,"p",3),Q(21," Select how you want dates and times to be formatted. "),E(22,"a",4),Q(23," Learn more "),G()()(),
E(24,"div",5)(25,"div",6)(26,"label",12),Q(27," Dates "),G(),E(28,"mat-form-field",13)(29,"mat-select",14),M("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),P(30,Tlb,2,2,"mat-option",15),G()()(),E(31,"div",6)(32,"label",16),Q(33," Times "),G(),E(34,"mat-form-field",17)(35,"mat-select",14),M("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=c})("selectionChange",
function(){return b.save("saveDateTimePreferences")}),P(36,Ulb,2,2,"mat-option",15),G()()(),E(37,"div",6)(38,"label",18),Q(39," Time Zones "),G(),E(40,"mat-form-field",19)(41,"mat-select",14),M("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),P(42,Vlb,2,2,"mat-option",15),G()()()(),H(43,"hr"),E(44,"div",1)(45,"div",2),Q(46," Keyboard settings "),G(),E(47,"div",5)(48,"div",6)(49,"label",20),
Q(50," Enable all hotkeys? "),G(),E(51,"b-slide-toggle",21),M("modelChange",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c;return b.save("saveKeyboardPreferences")}),G()()()(),E(52,"div"),H(53,"hr"),E(54,"div",1)(55,"div",2),Q(56," Display settings "),G(),E(57,"div",5)(58,"div",6)(59,"label",22),Q(60," Force comments to display as plain text? "),G(),E(61,"b-slide-toggle",23),M("modelChange",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=
c?lpc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),G()(),E(62,"div",6)(63,"label",24),Q(64," Force comments to display with code font? "),G(),H(65,"b-toggle-code-font",25),G(),P(66,Wlb,4,1,"div",26),G()()(),P(67,Xlb,10,1,"div",27),G()());a&2&&(A(6),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",le),A(7),D("ngModel",b.preferredHomepage.selectedMainOption),A(1),D("ngForOf",b.preferredHomepage.mainOptions),A(1),D("ngIf",b.preferredHomepage.selectedMainOption.hasOptions),
A(7),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",le),A(7),D("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),A(1),D("ngForOf",b.dateFormats),A(5),D("ngModel",b.userPreferences.dateTimePreferences.timeFormat),A(1),D("ngForOf",b.timeFormats),A(5),D("ngModel",b.userPreferences.dateTimePreferences.timeZone),A(1),D("ngForOf",b.timeZones),A(9),D("model",b.userPreferences.keyboardPreferences.enableAllHotkeys),A(10),D("model",mpc(b)),A(5),D("ngIf",
b.showShowInlineImagesSetting),A(1),D("ngIf",b.showBugScreensaverSetting))},dependencies:[fy,gy,Ky,Ry,XC,wR,rC,tF,lS,R8],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var a$=function(a,b,c,d,e){Z.call(this);var f=this;this.userPreferencesManager=a;this.butterBar=b;this.documentationLinks=c;this.activeSession=d;this.analytics=e;this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.enableCollaborators=Cq(this.activeSession,"enableCollaborators");this.userPreferencesManager.preferences$.pipe(Ef(this.destroyed$)).subscribe(function(h){f.userPreferences=h})};X(a$,Z);a$.\u0275dir=Z.\u0275dir;
a$.prototype.save=function(a,b,c){var d=this;vJ(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){vJ(d.butterBar,"Preferences saved.",4E3)});Mo(this.analytics,"preferences",a,b,c)};a$.\u0275fac=function(a){return new (a||a$)(B(aI),B(uJ),B(QN),B(NG),B(BK))};
a$.\u0275cmp=u({type:a$,selectors:[["b-notification-settings"]],features:[Of],decls:43,vars:13,consts:[[1,"bv2-settings-group"],[1,"bv2-settings-group-title"],[1,"muted","type-xs"],["target","_blank",3,"href"],[1,"bv2-settings-group-content"],[1,"bv2-settings-item"],["for","bv2-notification-pref-assigned","matTooltip","Notification level - issues for which you are the assignee"],["appearance","standard","id","bv2-notification-pref-assigned",1,"bv2-settings-item-setter","bv2-settings-item-select"],
[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["for","bv2-notification-pref-reported","matTooltip","Notification level - issues for which you are the reporter"],["appearance","standard","id","bv2-notification-pref-reported",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-verified","matTooltip","Notification level - issues for which you are the verifier"],["appearance","standard","id","bv2-notification-pref-verified",1,"bv2-settings-item-setter",
"bv2-settings-item-select"],["class","bv2-settings-item",4,"ngIf"],["for","bv2-notification-pref-ccd","matTooltip","Notification level - issues on which you are CC'd"],["appearance","standard","id","bv2-notification-pref-ccd",1,"bv2-settings-item-setter","bv2-settings-item-select"],["for","bv2-notification-pref-starred","matTooltip","Notification level - issues that you have starred"],["appearance","standard","id","bv2-notification-pref-starred",1,"bv2-settings-item-setter","bv2-settings-item-select"],
["for","bv2-exclude-changes-by-me","matTooltip","Do not send me notifications of my own edits."],["aria-label","Exclude edits made by you","id","bv2-exclude-changes-by-me",1,"bv2-settings-item-setter",3,"model","modelChange"],[3,"value"],["for","bv2-notification-pref-collaborator","matTooltip","Notification level - issues for which you are the collaborator"],["appearance","standard","id","bv2-notification-pref-collaborator",1,"bv2-settings-item-setter","bv2-settings-item-select"]],template:function(a,
b){a&1&&(E(0,"div",0)(1,"div",1),Q(2," Notification settings "),E(3,"p",2),Q(4," Select the level of email you want to receive for each issue role. "),E(5,"a",3),Q(6," Learn more "),G()()(),E(7,"div",4)(8,"div",5)(9,"label",6),Q(10," Assignee "),G(),E(11,"mat-form-field",7)(12,"mat-select",8),M("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(13,Ylb,3,4,"mat-option",9),G()()(),
E(14,"div",5)(15,"label",10),Q(16," Reporter "),G(),E(17,"mat-form-field",11)(18,"mat-select",8),M("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(19,Zlb,3,4,"mat-option",9),G()()(),E(20,"div",5)(21,"label",12),Q(22," Verifier "),G(),E(23,"mat-form-field",13)(24,"mat-select",8),M("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(25,$lb,3,4,"mat-option",9),G()()(),P(26,bmb,6,2,"div",14),E(27,"div",5)(28,"label",15),Q(29," CC'd "),G(),E(30,"mat-form-field",16)(31,"mat-select",8),M("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(32,cmb,3,4,"mat-option",9),G()()(),E(33,"div",5)(34,"label",17),Q(35," Starred "),G(),E(36,"mat-form-field",
18)(37,"mat-select",8),M("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),P(38,dmb,3,4,"mat-option",9),G()()(),E(39,"div",5)(40,"label",19),Q(41," Exclude edits made by you? "),G(),E(42,"b-slide-toggle",20),M("modelChange",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c;return b.save("saveNotificationPreferences")}),G()()()());a&2&&(A(5),D("href",b.documentationLinks.baseDocumentationUrl+
"/concepts/settings#email",le),A(7),D("ngModel",b.userPreferences.notificationPreferences.assignedPriority),A(1),D("ngForOf",b.priorities),A(5),D("ngModel",b.userPreferences.notificationPreferences.reportedPriority),A(1),D("ngForOf",b.priorities),A(5),D("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),A(1),D("ngForOf",b.priorities),A(1),D("ngIf",b.enableCollaborators),A(5),D("ngModel",b.userPreferences.notificationPreferences.ccdPriority),A(1),D("ngForOf",b.priorities),A(5),D("ngModel",
b.userPreferences.notificationPreferences.starredPriority),A(1),D("ngForOf",b.priorities),A(4),D("model",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[fy,gy,Ky,Ry,XC,wR,rC,tF,lS,jL],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-top-color:#dadce0;border-top-color:var(--divider);clear:both}.bv2-settings-group[_ngcontent-%COMP%]{clear:both;padding-top:10px}.bv2-settings-group-title[_ngcontent-%COMP%]{float:left;font-weight:bold;width:150px;padding-bottom:4px}.bv2-settings-group-content[_ngcontent-%COMP%]{margin-left:200px}.bv2-settings-item[_ngcontent-%COMP%]{margin-bottom:18px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-setter[_ngcontent-%COMP%]{float:right}.bv2-settings-item[_ngcontent-%COMP%]   b-slide-toggle[_ngcontent-%COMP%], .bv2-settings-item[_ngcontent-%COMP%]   b-toggle-code-font[_ngcontent-%COMP%]{float:right;margin-top:-3px}.bv2-settings-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-right:20px}.bv2-settings-item[_ngcontent-%COMP%]   .homepage-option-select[_ngcontent-%COMP%]{margin-top:12px}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]{display:block;float:right;width:60%}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]    {line-height:1.125rem}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-flex{padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-infix{border-top:none;padding-top:0}.bv2-settings-item[_ngcontent-%COMP%]   .bv2-settings-item-select[_ngcontent-%COMP%]     .mat-form-field-underline{position:relative;bottom:0}\n/*# sourceMappingURL=settings_groups.css.map */"]});
var npc=[[["","page-bar-left",""]],[["","page-bar-right",""]]],b$=function(){this.showRefresh=this.showBack=!0;this.backLabel="Go back";this.refreshLabel="Refresh";this.onBack=new sx;this.onRefresh=new sx};b$.\u0275fac=function(a){return new (a||b$)};
b$.\u0275cmp=u({type:b$,selectors:[["b-page-bar"]],inputs:{showBack:"showBack",showRefresh:"showRefresh",title:"title",backLabel:"backLabel",refreshLabel:"refreshLabel"},outputs:{onBack:"onBack",onRefresh:"onRefresh"},ngContentSelectors:["[page-bar-left]","[page-bar-right]"],decls:6,vars:3,consts:[["mat-icon-button","","color","primary",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"right"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["svgIcon","arrow-backward"],["svgIcon","refresh"]],
template:function(a,b){a&1&&(fg(npc),P(0,emb,2,1,"button",0),P(1,fmb,2,1,"button",0),P(2,gmb,2,1,"h2",1),gg(3),E(4,"div",2),gg(5,1),G());a&2&&(D("ngIf",b.showBack),A(1),D("ngIf",b.showRefresh),A(1),D("ngIf",b.title))},dependencies:[gy,pC,tF,yD],styles:["[_nghost-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%]{margin-left:auto}[mat-icon-button][_ngcontent-%COMP%]{line-height:1rem}h2[_ngcontent-%COMP%]:first-child{margin-left:16px}\n/*# sourceMappingURL=page_bar.css.map */"]});
var c$=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=Cq(this.activeSession,"enableBeap");this.selectedTabIndex=0;d.setTitle("Settings")};c$.prototype.ngAfterViewInit=function(){this.selectedTabIndex=opc(this,this.routeParams.settingsTab)};c$.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(sqa(d))};
var opc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};c$.\u0275fac=function(a){return new (a||c$)(B(NG),B(oI),B(tQ),B(NJ))};
c$.\u0275cmp=u({type:c$,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&zg(XV,5,Rd);if(a&2){var c;yg(c=Bg())&&(b.tabs=c)}},decls:9,vars:4,consts:[["title","Settings",3,"showRefresh","showBack"],["gmat-tabs","",3,"selectedIndex","selectedIndexChange"],["label","General"],[1,"padded"],["label","Notifications","id","notifications"],["label","Early Access","id","early-access",4,"ngIf"],["label","Early Access","id","early-access"]],template:function(a,b){a&1&&(H(0,"b-page-bar",0),E(1,"mat-tab-group",
1),M("selectedIndexChange",function(c){return b.tabChange(c)}),E(2,"mat-tab",2)(3,"div",3),H(4,"b-general-settings"),G()(),E(5,"mat-tab",4)(6,"div",3),H(7,"b-notification-settings"),G()(),P(8,hmb,3,0,"mat-tab",5),G());a&2&&(D("showRefresh",!1)("showBack",!1),A(1),D("selectedIndex",b.selectedTabIndex),A(7),D("ngIf",b.beapEnabled))},dependencies:[gy,AW,YV,XV,b$,X9,$9,a$],styles:["mat-tab-group[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]{position:absolute;bottom:0;left:0;right:0;top:0}[_nghost-%COMP%]     b-general-settings .bv2-settings-container{display:inline-block;width:731px}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group{width:fit-content}[_nghost-%COMP%]     b-notification-settings .bv2-settings-group-content, [_nghost-%COMP%]     b-general-settings .bv2-settings-group-content{margin-left:250px}\n/*# sourceMappingURL=settings.css.map */"],
changeDetection:0});
var d$=function(a,b,c,d,e,f,h,k,q){Z.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()};X(d$,Z);d$.\u0275dir=Z.\u0275dir;g=d$.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,userLogin:this.userEmail}).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("bf`"+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("bf`"+a.resourceType);}};d$.\u0275fac=function(a){return new (a||d$)(B(qH,2),B(tQ),B(oI),B(NJ),B(oK),B(SL),B(pI),B(NG),B(eJ))};
d$.\u0275cmp=u({type:d$,selectors:[["view-bookmark-group-page"]],features:[mg([qH]),Of],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&&(E(0,"h2",0),Q(1),G(),H(2,"div",1),E(3,"div",2),P(4,lmb,12,5,"div",3),G());a&2&&(A(1),T("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),A(2),Uf("aria-busy",
!b.bookmarkGroup),A(1),D("ngIf",b.bookmarkGroup))},dependencies:[fy,gy,dM,tF],encapsulation:2});var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=Yc({type:e$});e$.\u0275inj=Ic({imports:[vy,PM,uG]});
var f$=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca,Za){v9.call(this,b,c,d,e,h,k,q,t,f,x,y,F,J,R,S,aa,ba,ka,Jb,wa,Aa,pa,xa,Ca,Za);this.ngZone=a;this.hotlists=K;this.hotkeys=Ka;this.pageTitle=Ja;this.userAccess=fb;this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1;this.hotlistId=ub.hotlistId};X(f$,v9);f$.\u0275dir=v9.\u0275dir;
f$.prototype.ngOnInit=function(){var a=this;v9.prototype.ngOnInit.call(this);this.subscriptions.add(jI(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(r(this.BASE_HOTKEYS),[{keys:[gk("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){ppc(a,1)}},{keys:[gk("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){ppc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&"view-hotlist"!==b.origin&&qpc(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)};
f$.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)}};
f$.prototype.loadUserAccess=function(a){var b=this;TJ(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});TJ(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
f$.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;JM(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):qpc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var qpc=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};
f$.prototype.doSearch=function(a){var b=this,c="priority type title assignee status issueId modifiedTime".split(" ").map(jj),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=Si(f);f.query=d;f.returnUrl=b.bLocation.url();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;
return jJ(b.issuePagination,f)});a.then(function(f){Xnc(b,f)}).catch(function(f){"number"===typeof f?rY(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return np({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,rpc(b)?spc:tpc);b.loadHotlists()}).catch(function(){})};
var rpc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"===a.sortPreferences[0].fieldId.type};f$.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
f$.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;Mo(d.analytics,d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var ppc=function(a,b){if(a.searchResults&&!a.repositioning&&rpc(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)||t2b(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||u2b(h)}a.repositionIssue(e,c,!0)}}};g=f$.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=Yua(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}});vJ(this.butterBar,"Saving changes to hotlist...");upc(this,b).then(function(e){vJ(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');rY(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});Mo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){Mo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");rY(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?Rl(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?v9.prototype.setSort.call(this,a,b,!1):v9.prototype.setSort.call(this,a,b)};
var upc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;vpc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},vpc=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
f$.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=iw(this.hotlistId),c=function(){vpc(a,b)};this.isStarred?this.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:b,userLogin:this.currentUserEmail}).then(c):this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:b}).then(c)};f$.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var tpc=[RX,SX,TX,z2b],spc=[RX,y2b,SX,TX,z2b];
f$.\u0275fac=function(a){return new (a||f$)(B(Mf),B(qH),B(ZH),B(hJ),B(oI),B(NG),B(WH),B(bJ),B(oK),B(TI),B(uJ),B(BK),B(IM),B(JY),B(iJ),B(aI),B(qY),B(vY),B(pI),B(jH),B(iQ),B(RN),B(iI),B(NJ),B(xJ),B(tQ),B(SJ),B(eJ),B(sK),B(FK),B(CZ))};
f$.\u0275cmp=u({type:f$,selectors:[["view-hotlist-page"]],features:[mg([qH]),Of],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","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onRowDragDrop",
"onNextPage","onPrevPage"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"b-grid-controls",1),M("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()}),G(),E(2,"div",2)(3,"b-pagination",3),M("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return Znc(b,c.option)}),G()()(),E(4,"div",4),P(5,vmb,9,7,"div",5),P(6,wmb,4,1,"div",6),P(7,xmb,2,2,"div",7),P(8,ymb,2,5,"div",8),G());a&2&&(A(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),A(2),D("searchResults",b.searchResults),A(1),Uf("aria-busy",b.isLoading),A(1),D("ngIf",!b.isInitializing),A(1),D("ngIf",b.isLoading),A(1),D("ngIf",!b.isLoading&&!b.hasResults()),A(1),D("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[WX,MY,dM,OX,tF,gy,fM,XY,pC],encapsulation:2});var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=Yc({type:g$});g$.\u0275inj=Ic({imports:[nY,PY,PM,IY,uG,vy,RM,YY,AF]});
var h$=function(a,b,c,d,e,f,h,k,q,t,x,y,F,K,J,R,S,aa,ba,ka,wa,Aa,Ka,Ja,Jb,ub,fb,pa,xa,Ca){v9.call(this,a,b,c,d,f,h,k,t,e,x,y,F,K,J,R,S,aa,ba,Ja,ka,wa,fb,pa,xa,Ca);this.savedSearchApi=q;this.hotkeys=Aa;this.pageTitle=Ka;this.userAccess=ub;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=Jb.savedSearchId};X(h$,v9);h$.\u0275dir=v9.\u0275dir;g=h$.prototype;
g.ngOnInit=function(){var a=this;v9.prototype.ngOnInit.call(this);this.subscriptions.add(jI(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(tKb(this.appSearchState,function(b){a.savedSearch?rY(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;TJ(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;JM(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:Rnc(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;JM(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Si(d);d.returnUrl=b.bLocation.url();d.trackerIds=b.appSearchState.currentTrackerScope;
return jJ(b.issuePagination,d)});c.then(function(d){Xnc(b,d)}).catch(function(d){"number"===typeof d?rY(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return np({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;vJ(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){vJ(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;rY(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});Mo(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){Mo(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");rY(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch&&this.isEditable()?!!(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))};
h$.\u0275fac=function(a){return new (a||h$)(B(qH),B(ZH),B(hJ),B(oI),B(NG),B(WH),B(bJ),B(oK),B(GM),B(TI),B(uJ),B(BK),B(IM),B(iJ),B(aI),B(qY),B(vY),B(pI),B(jH),B(iQ),B(RN),B(iI),B(NJ),B(xJ),B(tQ),B(SJ),B(eJ),B(sK),B(FK),B(CZ))};
h$.\u0275cmp=u({type:h$,selectors:[["view-saved-search-page"]],features:[mg([qH]),Of],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",
"","matTooltip","Save changes to display preferences and search query",1,"gmat-button","medium",3,"click"],["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"],["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","init","focusedRowIndexChange","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(E(0,"div",0)(1,"b-grid-controls",1),M("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()}),G(),E(2,"div",2)(3,"b-pagination",3),M("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return Znc(b,c.option)}),G()()(),E(4,"div",4)(5,"div",5),P(6,Dmb,4,3,"div",6),P(7,Emb,8,1,"div",7),G(),P(8,Jmb,4,3,"div",8),G());a&2&&(A(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),A(2),D("searchResults",b.searchResults),
A(1),Uf("aria-busy",b.isLoading),A(2),D("ngIf",!b.isInitializing),A(1),D("ngIf",b.hasParamChanges()),A(1),D("ngIf",b.savedSearch))},dependencies:[WX,MY,OX,gy,tF,fM,XY,pC],encapsulation:2});var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=Yc({type:i$});i$.\u0275inj=Ic({imports:[nY,PY,IY,vy,uG,RM,YY,AF]});
var wpc=[{path:"",pathMatch:"full",component:L8},{path:"dependencies",component:d6},{path:"dupes",component:T7},{path:"blocking",component:F5},{path:"resources",component:Uj().config.enabledFlags.get("enableRedesignedResourcesPane")?s9:p9}],xpc=wpc.concat,ypc,zpc={path:"todos",component:r9};ypc=Uj().config.enabledFlags.get("enableCodeMentionsUi")?[zpc]:[];
var Apc={path:"issues/:issueId",component:R7,children:xpc.call(wpc,r(ypc))},Bpc=[{path:"",component:C4,canActivateGuards:[K4]},{path:"issues",component:w9},{path:"recent",component:y9}],Cpc=Bpc.concat,Dpc,Epc={path:"attention",component:W9,canActivateGuards:[I4,J4]};Dpc=Uj().config.enabledFlags.get("showNeedsAttentionUI")?[Epc]:[];
var Fpc=Cpc.call(Bpc,r(Dpc),[{path:"issues/new",component:g5},Apc,{path:"components/all",component:U3},{path:"components",component:M4},{path:"components/new",component:P4},{path:"components/:componentId/edit",component:U9},{path:"components/:componentId",component:U9},{path:"components/:componentId/manage",component:U9},{path:"teams/:teamId/edit",component:V9},{path:"teams/:teamId",component:V9},{path:"bookmark-groups/new",component:O4},{path:"bookmark-groups/:groupId",component:d$},{path:"bookmark-groups/:groupId/edit",
component:m5},{path:"hotlists/new",component:Q4},{path:"hotlists/:hotlistId",component:f$},{path:"hotlists/:hotlistId/edit",component:fY},{path:"slos/new",component:i5},{path:"slos/:sloId",component:q5},{path:"slos/:sloId/edit",component:q5},{path:"savedsearches/:savedSearchId/edit",component:o5},{path:"hotlists",component:u9},{path:"slos",component:z9},{path:"savedsearches/:savedSearchId",component:h$},{path:"dashboard/:groupId",component:k5},{path:"settings/:settingsTab?",component:c$},{path:"settings",
component:c$},{path:"**",component:C4,canActivateGuards:[K4]}]);
var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=Yc({type:j$});j$.\u0275inj=Ic({imports:[vy,uF,m1,UH,AF]});
var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=Yc({type:k$});k$.\u0275inj=Ic({imports:[vy,uF,cW,TM,xW,j$]});
var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=Yc({type:l$});l$.\u0275inj=Ic({imports:[k1,vy,AF,uF,qU,TM,uG,N4,UH,PR]});
var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=Yc({type:m$});m$.\u0275inj=Ic({imports:[vy,lI,AF,NC]});
var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=Yc({type:n$});n$.\u0275inj=Ic({imports:[vy,AF,pF,uF,UH]});
var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=Yc({type:o$});o$.\u0275inj=Ic({imports:[wW,vy,p7,lI,n$,AF,aH,uF,pF,uG,fZ,HY,S8,m$]});
var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=Yc({type:p$});p$.\u0275inj=Ic({imports:[vy,lI,AF,uF,uG]});
var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=Yc({type:q$});q$.\u0275inj=Ic({imports:[vy,uF,kR,TM]});
var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=Yc({type:r$});r$.\u0275inj=Ic({imports:[q$,vy,uG,iN,kS,uF,AF,RM,DR,HY]});
var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=Yc({type:s$});s$.\u0275inj=Ic({imports:[vy,uF,k1,TM,ST]});
var t$=function(){};t$.\u0275fac=function(a){return new (a||t$)};t$.\u0275mod=Yc({type:t$});t$.\u0275inj=Ic({imports:[k$,k1,vy,l$,ER,lI,TM,Q3,Q8,j$,AF,aH,uF,uG,UH,PM,ST,s$,p$,o$,r$]});
var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=Yc({type:u$});u$.\u0275inj=Ic({imports:[vy,AF]});
var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=Yc({type:v$});v$.\u0275inj=Ic({imports:[vy,AO,AF,uF,uG]});
var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=Yc({type:w$});w$.\u0275inj=Ic({imports:[vy]});
var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=Yc({type:x$});x$.\u0275inj=Ic({imports:[vy,fz,M3,w$]});
var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=Yc({type:y$});y$.\u0275inj=Ic({imports:[vy,gR,x$]});
var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=Yc({type:z$});z$.\u0275inj=Ic({imports:[vL,WT,vy,iU,LT,O3,L3,lI,TM,n$,xW,T3,gU,B7,uF,uG,JN,D2,y$,CR,WM]});
var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=Yc({type:A$});A$.\u0275inj=Ic({imports:[Vz,vA,fz,gz,UH,AF,NC,bW,CW,oB,uG,HL,JN,t$,n1,HY,DR,cW,z$,Q7,v$,u$]});
var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=Yc({type:B$});B$.\u0275inj=Ic({imports:[vy,X3]});
var C$=function(){};C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=Yc({type:C$});C$.\u0275inj=Ic({imports:[Vz,vA,fz,gz,UH,AF,bW,CW,JN,wW,A$,o9,f6,L5,U7,B$,q9,t9]});
var Gpc=Fpc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[$X],canActivate:[F4,H4].concat(r(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});Gpc.push({path:"**",canActivate:["dontActivate"],component:C4,isRootRoute:!0});var Hpc=Uj().appBaseHref,Ipc,D$={initialNavigation:"disabled"},Jpc={provide:sDb,useFactory:function(){return"guarded"},deps:[[fl,new mw,new nw]]},Kpc;
Kpc=(null==D$?0:D$.preloadingStrategy)?dqa(0,[{provide:rDb,useExisting:SH},{provide:hDb,useExisting:D$.preloadingStrategy}]).\u0275providers:[];var Lpc;
(null==D$?0:D$.initialNavigation)?Lpc=["disabled"===D$.initialNavigation?dqa(3,[{provide:Bw,multi:!0,useFactory:function(){var a=Rc(fl);return function(){XCb(a)}}},{provide:qDb,useValue:2}]).\u0275providers:[],"enabledBlocking"===D$.initialNavigation?dqa(2,[{provide:qDb,useValue:0},{provide:Bw,multi:!0,deps:[dl],useFactory:function(a){function b(d){a.get(fl).events.pipe(hf(function(e){return e instanceof gl||e instanceof yH||e instanceof zH}),C(function(e){return e instanceof gl?!0:e instanceof yH&&
(0===e.code||1===e.code)?null:!1}),hf(function(e){return null!==e}),sf()).subscribe(function(){d()})}var c=a.get(Grb,Promise.resolve());return function(){return c.then(function(){return new Promise(function(d){var e=a.get(fl),f=a.get(pDb);b(function(){d(!0)});e.afterPreactivation=function(){d(!0);return f.closed?(0,W.of)(void 0):f};e.initialNavigation()})})}}}]).\u0275providers:[]]:Lpc=[];
Ipc={ngModule:UH,providers:[tDb,[],{provide:aqa,multi:!0,useValue:[]},Jpc,{provide:bqa,useValue:D$?D$:{}},(null==D$?0:D$.useHash)?{provide:Ay,useClass:Cy}:{provide:Ay,useClass:By},{provide:lDb,useFactory:function(){var a=Rc(fl),b=Rc(Krb),c=Rc(Mf),d=Rc(bqa);d.scrollOffset&&b.setOffset(d.scrollOffset);return new TH(a,b,c,d)}},Kpc,{provide:drb,multi:!0,useFactory:function(){return new drb("Router",fl)}},Lpc,[{provide:uDb,useFactory:function(){var a=Rc(dl);return function(b){var c=a.get(Sx);if(b===c.components[0]){b=
a.get(fl);var d=a.get(pDb);1===a.get(qDb)&&b.initialNavigation();var e;null==(e=a.get(rDb,null,8))||iDb(e);var f;null==(f=a.get(lDb,null,8))||f.init();b.rootComponentType=c.componentTypes[0];b.routerState.root.component=b.rootComponentType;d.closed||(d.next(),d.unsubscribe())}}}},{provide:kqb,multi:!0,useExisting:uDb}]]};var E$=function(a,b){a.config=Gpc.map(Ik);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();KIb(b)};E$.\u0275fac=function(a){return new (a||E$)(p(fl),p(eL))};
E$.\u0275mod=Yc({type:E$});E$.\u0275inj=Ic({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:LH,useClass:E4},{provide:Jrb,useValue:Hpc},H4,F4],imports:[Ipc,D4,C$,UH]});
var F$=function(){};F$.\u0275fac=function(a){return new (a||F$)};F$.\u0275mod=Yc({type:F$});F$.\u0275inj=Ic({imports:[vy,AF,uG,uF,qJ,fz,gz,hY]});
var G$=function(){};G$.\u0275fac=function(a){return new (a||G$)};G$.\u0275mod=Yc({type:G$});G$.\u0275inj=Ic({imports:[GL,vy,hY,YY,fz,$G,uG,SO,jZ,qU]});
var H$=function(){};H$.\u0275fac=function(a){return new (a||H$)};H$.\u0275mod=Yc({type:H$});H$.\u0275inj=Ic({imports:[vy,AF,uG,uF,qJ,fz,gz,hY]});
var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=Yc({type:I$});I$.\u0275inj=Ic({imports:[GL,$G,RM,vy,xW,TM,AF,uF]});
var J$=function(){};J$.\u0275fac=function(a){return new (a||J$)};J$.\u0275mod=Yc({type:J$});J$.\u0275inj=Ic({imports:[vy,fz,RC,M3]});
var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=Yc({type:K$});K$.\u0275inj=Ic({imports:[GL,RW,cW,HT,NO,N3,YC,YY,fz,kX,UW,$G,iX,gU,I$,AF,NC,f5,uF,pF,kS,uG,N3,vL,gz,J$,qU,vy,pB,SW,lX]});
var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=Yc({type:L$});L$.\u0275inj=Ic({imports:[GL,vy,hY,YY,fz,$G,uG,uZ]});
var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=Yc({type:M$});M$.\u0275inj=Ic({imports:[vy,uG,AF,bW,hY,kX,UW,XM,qJ,NC,uF,fz,gz,pF,lY]});
var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=Yc({type:N$});N$.\u0275inj=Ic({imports:[NC,iN,vy,GB,uF,AF,cW,gW,SW]});
var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=Yc({type:O$});O$.\u0275inj=Ic({imports:[vy,uG,AF,bW,hY,qJ,NC,uF,fz,gz,pF,lY]});
var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=Yc({type:P$});P$.\u0275inj=Ic({imports:[GL,vy,hY,fz,CW,$G,bW,uG,lY,SO,uZ,RM]});
var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=Yc({type:Q$});Q$.\u0275inj=Ic({imports:[vy,pY,RM,AF]});
var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=Yc({type:R$});R$.\u0275inj=Ic({imports:[vy,AF,uF,wZ,RM]});
var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=Yc({type:S$});S$.\u0275inj=Ic({imports:[vy,RR,WY]});
var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=Yc({type:T$});T$.\u0275inj=Ic({imports:[vy,DR,fz,bW,gR,lY,$G,f5,AF,iN,uF,uG,NC,PR,RM]});
var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=Yc({type:U$});U$.\u0275inj=Ic({imports:[GL,vy,DR,RR,GR,r2,z2,E2,nX,hY,y3,fz,QO,CW,$G,AF,iN,NC,uF,xR,kS,bW,uG,lY,SO,jZ,UH,S$,hZ,RM,qU,fS,pB,T$,PR,v$]});
var V$=function(){};V$.\u0275fac=function(a){return new (a||V$)};V$.\u0275mod=Yc({type:V$});V$.\u0275inj=Ic({imports:[vy,hY,fz,QO,CW,AF,iN,uF,bW,uG,kS,lY,UH,PR,pB,hZ,WY]});
var W$=function(){};W$.\u0275fac=function(a){return new (a||W$)};W$.\u0275mod=Yc({type:W$});W$.\u0275inj=Ic({imports:[vy,AF,uG,uF]});
var X$=function(){};X$.\u0275fac=function(a){return new (a||X$)};X$.\u0275mod=Yc({type:X$});X$.\u0275inj=Ic({providers:[{provide:D0b,useValue:{enabled:!0}}],imports:[R1,HL,vy,vy,fz,CW,AF,AF,uF,xR,kS,bW,uG,uG,mS,W$,vL,S8]});
var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=Yc({type:Y$});Y$.\u0275inj=Ic({imports:[vy,fz,uG,YC,aD]});
var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=Yc({type:Z$});Z$.\u0275inj=Ic({imports:[vy,qJ,AF,uF]});
var Mpc=function(){};Mpc.prototype.send=function(a,b){EAa(a);return this.makeRequest(a).then(function(c){return b?NAa(b,c):c})};
var Pu=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};X(Pu,Mpc);Pu.prototype.getGapi=function(){var a=this;return OBa().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return TBa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Pu.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return Pe(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):Re(d,SBa(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})))})})};
Pu.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)})})};Pu.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&RBa(a,b,this.gapiConfigUpdates[b])};Pu.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];
var Npc={disableCheatSheet:!0};Npc=void 0===Npc?{}:Npc;
var Opc=[MN,cR,Vz,vA,IO,iX,HO,sH,$G,SO,ZM,mS,nI,jZ,PM,aN,Q3,GL,zY,sU,bH,k2,n4,g4,LT,gU,iU,KR,wW,L$,P$,R$,Q$,l5,x9,g$,i$,G$,U$,V$,e$,pY,wZ,nX,A3,X3,UY,JT,nY,WW,p4,l2,HW,L2,m2,Y3,RY,TY,K2,PY,TW,kN,HL,cW,gW,N$,zW,ZG,cZ,XM,WT,fZ,AZ,GY,HY,V3,K1,RM,WN,NY,Y$,ST,I1,E2,Z$,y3,n1,gR,DR,AO,X$,R1,QT,bR,AY,DY,uZ,hZ,BY,hY,o2,F$,H$,y2,mZ,gS,RR,UR,GR,CY,IY,uU,jY,O3,UW,sZ,zZ,T3,z2,JO,OO,lY,mY,RW,r2,M$,IL,O$,K$,lR,A$,KZ,uF,wD,{ngModule:vG,providers:[{provide:vF,useFactory:function(){var a=Uj().config.environmentType||
"QA";return"PROD"===a||"NIGHTLY"===a?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[dl]}]},{ngModule:$Q,providers:[FP,{provide:pNb,useFactory:function(a){return new Ou(new lPb("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,nPb,{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[mPb]},{provide:mPb,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",
globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc"}}}]},{ngModule:w$,providers:[D7,{provide:smc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:sdc,autocompleteFactory:H9b}}}]},{ngModule:eI,providers:[dI,{provide:KDb,useValue:Npc}]}],Ppc=[$fc,p5b,q5b,r5b,s5b,EBb,xDb,{provide:k_b,useValue:{animationDuration:"0ms"}},{provide:Ryb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:pzb,useValue:{disableTooltipInteractivity:!0}},
{provide:F0b,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:I0b,useValue:"92912"},{provide:cNb,useFactory:Kmb},agc,igc,jgc,kgc],Rx=function(){};Rx.prototype.ngDoBootstrap=function(){kl("bootstrapping AppModule")};Rx.\u0275fac=function(a){return new (a||Rx)};Rx.\u0275mod=Yc({type:Rx,bootstrap:[LN,l4]});Rx.\u0275inj=Ic({providers:[].concat(r(Ppc)),imports:[Opc,E$,NL]});
YD(document,"DOMContentLoaded",function(){grb()});

__._ModuleManager_initialize=function(){};

__._ModuleManager_initialize('c/Yfyhhd/b96Luc/E7aOmb/HyHasc/dflQFd',[]);

}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
