"use strict";this.default_b=this.default_b||{};(function(__){var window=this;
try{
var g,aaa=function(a){if(a!==aa)throw Error("t");},ba=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ba);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b);this.reportErrorToServer=!0},ca=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");ba.call(this,c+a[d])},ea=function(){var a=da.navigator;return a&&(a=a.userAgent)?a:""},ia=function(a){return fa(ea(),a)},baa=function(){return ia("Trident")||
ia("MSIE")},ka=function(){return ia("Firefox")||ia("FxiOS")},caa=function(){return ia("Safari")&&!(la()||ia("Coast")||ia("Opera")||ia("Edge")||ia("Edg/")||ia("OPR")||ka()||ia("Silk")||ia("Android"))},la=function(){return(ia("Chrome")||ia("CriOS"))&&!ia("Edge")||ia("Silk")},daa=function(){return ia("Android")&&!(la()||ka()||ia("Opera")||ia("Silk"))},eaa=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})]||""}},faa=function(a){var b=
ea();if("Internet Explorer"===a){if(baa())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=eaa(c);switch(a){case "Opera":if(ia("Opera"))return b(["Version",
"Opera"]);if(ia("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(ia("Edge"))return b(["Edge"]);if(ia("Edg/"))return b(["Edg"]);break;case "Chromium":if(la())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&ka()||"Safari"===a&&caa()||"Android Browser"===a&&daa()||"Silk"===a&&ia("Silk")?(b=c[2])&&b[1]||"":""},ma=function(a){a=faa(a);if(""===a)return NaN;a=a.split(".");return 0===a.length?NaN:Number(a[0])},na=function(){return ia("iPhone")&&!ia("iPod")&&!ia("iPad")},oa=function(){return na()||
ia("iPad")||ia("iPod")},gaa=function(){var a=ea(),b="";ia("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):oa()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):ia("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):pa(ea(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):ia("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):ia("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&
a[1]);return 0<=qa(b||"",12)},sa=function(a){return a[a.length-1]},haa=function(a,b){var c=0;ta(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},jaa=function(a){for(var b=iaa,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},wa=function(a,b){return 0<=ua(a,b)},xa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},za=function(a,b){b=ua(a,b);var c;(c=0<=b)&&ya(a,b);return c},ya=function(a,b){Array.prototype.splice.call(a,
b,1)},Aa=function(a,b){a:{for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}0<=b&&ya(a,b)},Da=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[]},kaa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ea(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)}},maa=function(a,b,c,d){return Array.prototype.splice.apply(a,laa(arguments,
1))},laa=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ja=function(a,b,c){b=b||a;var d=function(q){return Ha(q)?"o"+Ia(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Ma=function(a,b){a.sort(b||naa)},oaa=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||naa;Ma(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},naa=function(a,b){return a>b?1:a<b?-1:0},paa=function(){for(var a=[],b=0;5>b;b+=1)a.push(b);return a},qaa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},saa=function(a){if(null==a||Na(a))return a;if("string"===typeof a)return raa(a);Oa(a);return null},Na=function(a){return Pa&&null!=a&&a instanceof Uint8Array},taa=function(a){if(a!==Qa)throw Error("w");},Ta=function(a,b){Object.isFrozen(a)||
(Ra?a[Ra]|=b:void 0!==a.internalArrayState?a.internalArrayState|=b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}}))},Ua=function(a){var b;Ra?b=a[Ra]:b=a.internalArrayState;return null==b?0:b},uaa=function(a){return Array.isArray(a)?!!(Ua(a)&1):!1},Wa=function(a){Ta(a,1);return a},Za=function(a){return Array.isArray(a)?!!(Ua(a)&2):!1},ab=function(a){if(!Array.isArray(a))throw Error("y");Ta(a,2)},bb=function(a,b){if(!Array.isArray(a))throw Error("A");
b?Ta(a,8):Object.isFrozen(a)||(Ra?a[Ra]&=-9:void 0!==a.internalArrayState&&(a.internalArrayState&=-9))},cb=function(a){return Za(a.internalArray_)},vaa=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object},hb=function(a){if(null==a)return eb();if(a.constructor===gb)return a;if("string"===typeof a)return a?new gb(a,Qa):eb();if(Na(a))return a.length?new gb(new Uint8Array(a),Qa):eb();Oa(a);return eb()},waa=function(a){a instanceof gb&&(taa(Qa),a=a.value_||"");return a},
xaa=function(a){return Array.isArray(a)&&uaa(a)&&!a.length},yaa=function(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}},ib=function(a){da.setTimeout(function(){throw a;},0)},zaa=function(a,b,c){c=void 0===c?!1:c;if(Array.isArray(a))return new b(a);if(c)return new b},Baa=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(!Aaa(a,f,a[f],b,f,b[f]))return!1;return!0},Caa=function(a){return a&&"object"===typeof a?a.internalArray_||a:a},Eaa=
function(a,b){return null!=b&&Daa(a.toArrayInternal(),b.toArrayInternal())},Faa=function(a,b,c,d){if(null==d)d=[];else if(!Array.isArray(d))return null;return b[c]=new kb(d,a.valueCtor)},Aaa=function(a,b,c,d,e,f){c=waa(c);f=waa(f);c=Caa(c);f=Caa(f);if(c==f)return!0;if(Pa){var h=Na(c),k=Na(f);if(h||k){if(h)a=c;else if("string"===typeof c)a=saa(c);else return!1;if(!k)if("string"===typeof f)f=saa(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
kb)return Eaa(c,f instanceof kb?f:Faa(c,d,e,f));if(f instanceof kb)return Eaa(f,Faa(f,a,b,c));if(null==c&&xaa(f)||null==f&&xaa(c))return!0;if(!Ha(c)||!Ha(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),!Aaa(k,d,e,f,d,h))return!1;
return a||b?(a=a||{},b=b||{},Baa(a,b)):!0}if(c.constructor===Object)return Baa(c,f);throw Error("D");},Daa=function(a,b){return Aaa(void 0,void 0,a,void 0,void 0,b)},Gaa=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(Na(a))return lb(a);if(a instanceof gb)return mb(a);if(a instanceof kb)return a.toArrayInternal()}}return a},nb=function(a,b){b=void 0===b?Haa:b;return Iaa(a,b)},Jaa=function(a,b){if(null!=a){if(Array.isArray(a))a=Iaa(a,
b);else if(vaa(a)){var c={},d;for(d in a)c[d]=Jaa(a[d],b);a=c}else a=b(a);return a}},Iaa=function(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=Jaa(c[d],b);uaa(a)&&Wa(c);return c},Kaa=function(a){if(a&&"object"==typeof a&&a.toJSON)return a.toJSON();a=Gaa(a);return Array.isArray(a)?nb(a,Kaa):a},Laa=function(a){return a.clone()},Haa=function(a){return Na(a)?new Uint8Array(a):a instanceof kb?Maa(a,Laa):a},pb=function(a,b,c){var d=ob(a,b,!1);if(d.length&&!(Ua(d)&4)){Object.isFrozen(d)&&(d=Wa(d.slice()),
l(a,b,d,void 0,!0));for(b=0;b<d.length;b++)d[b]=c(d[b]);Ta(d,5)}cb(a)&&Object.freeze(d);return d},sb=function(a,b,c,d){qb(a);c!==d?l(a,b,c):rb(a,b);return a},tb=function(a,b,c,d){qb(a);b=ob(a,b);void 0!=d?b.splice(d,0,c):b.push(c);return a},wb=function(a,b,c){return ub(a,b)===c?c:-1},Naa=function(a,b){return Gaa(b)},Oaa=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=xb(a,e[0].constructor,h,f),h=0;h<Math.min(f.length,e.length);h++)Oaa(f[h],e[h])}else(f=m(a,e.constructor,h,void 0,f))&&Oaa(f,e)}}}},Qaa=function(a){if("string"===typeof a)return{buffer:raa(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===
gb)return{buffer:Paa(a)||yb||(yb=new Uint8Array(0)),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("O");},Raa=function(a,b){return 4294967296*b+(a>>>0)},Saa=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=Raa(a,b);return c?-a:a},Taa=function(a,b,c){return a[Ab]||(a[Ab]=function(d,e){return b(d,e,c)})},Waa=function(a){var b=a[Ab];if(!b){var c=Uaa(a);b=function(d,e){return Vaa(d,e,
c)};a[Ab]=b}return b},Xaa=function(a){var b=a.binaryFieldsInitializer;if(b)return Waa(b);if(b=a.messageSetReaderFn)return Taa(a.fieldInfo.ctor,b,a.messageSetExtensions)},Yaa=function(a){var b=Xaa(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)}},$aa=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(Bb in c||Zaa in c||0<c.length&&"function"==typeof c[0])?c:void 0},aba=function(a,
b){a[0]=b},bba=function(a,b,c,d){var e=c.reader;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},cba=function(a,b,c,d,e){var f=c.reader,h=Waa(d),k=Uaa(d).ctor;a[b]=function(q,u,x){return f(q,u,x,k,h,e)}},dba=function(a,b,c,d,e,f,h){var k=c.reader,q=Taa(d,e,f);a[b]=function(u,x,E){return k(u,x,E,d,q,h)}},Uaa=function(a){var b=a[Bb];if(b)return b;b=a[Bb]={};var c=aba,d=bba,e=cba,f=dba;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=$aa(a,h))?(h++,e(b,c,k,q)):d(b,c,k,a[h++]);break;case 2:q=b;var u=h++;u=$aa(a,u);e(q,c,k,u,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("Q`"+q);}}Bb in a&&Zaa in a&&(a.length=0);return b},Vaa=function(a,b,c){for(;eba(b)&&4!=b.nextWireType_;){var d=b.nextField_,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=Yaa(f))}if(!e||!e(b,
a,d))if(f=b,e=a,d=f.fieldCursor_,Cb(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},Db=function(a,b){return{reader:a,writer:b}},Eb=function(a,b,c,d){return new fba(a,b,c,d)},gba=function(a){var b=this.ctor,c=this.fieldIndex;return this.isRepeated?xb(a,b,c,!0):m(a,b,c,void 0,!0)},hba=function(a,b){var c=this.fieldIndex;return this.isRepeated?Fb(a,c,b,!0):Gb(a,
c,b,!0)},jba=function(a,b,c,d,e,f){(a=a.internalWrappers_&&a.internalWrappers_[c])?Array.isArray(a)?(e=f.copyRepeatedFields?Wa(a.slice()):a,Fb(b,c,e)):Gb(b,c,a):(Pa&&d instanceof Uint8Array?e=d.length?new gb(new Uint8Array(d),Qa):eb():d instanceof kb?e=Maa(d,iba):(Array.isArray(d)&&(e?ab(d):uaa(d)&&f.copyRepeatedFields&&(d=d.slice())),e=d),l(b,c,e))},Hb=function(a,b,c){for(var d=[],e=0;e<a.length;e++)d.push(b(c,a[e]));return d},Ib=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?Hb(h,q,d):q(d,h):h}}},kba=function(a){a instanceof gb&&(a=a.value_||"",a="string"===typeof a?a:new Uint8Array(a));return a},Kb=function(a,b,c){var d=[];a.forEach(function(e,f){d.push([f,c?c(b,e):e])});return d},n=function(a){return null===a?void 0:a},Lb=function(a){return null==a?void 0:Array.isArray(a)?a.map(function(b){return mb(b)}):mb(a)},lba=function(a){a=p(a,2);if(null==a)return"";
if("string"===typeof a)return a;if(Na(a))return lb(a);if(Array.isArray(a))return nb(a);if(a instanceof gb)return mb(a);throw Error("S`"+a);},mba=function(a,b){return Zone.current.wrap(a,b)},nba=function(a,b){for(var c=a.length-1;0<=c;c--)"function"===typeof a[c]&&(a[c]=mba(a[c],b+"_"+c));return a},pba=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={$jscomp$loop$prop$name$1621:d.$jscomp$loop$prop$name$1621},e++){d.$jscomp$loop$prop$name$1621=
b[e];var f=a[d.$jscomp$loop$prop$name$1621];if(f){var h=Nb(a,d.$jscomp$loop$prop$name$1621);oba(h)&&(a[d.$jscomp$loop$prop$name$1621]=function(k){return function(q){var u=function(){return q.apply(this,nba(arguments,c+"."+k.$jscomp$loop$prop$name$1621))};Ob(u,q);return u}}(d)(f))}}},oba=function(a){return a?!1===a.writable?!1:!("function"===typeof a.get&&"undefined"===typeof a.set):!0},sba=function(a,b,c){var d=Nb(a,b);!d&&c&&Nb(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=Pb("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=Qb[h];k||(k=Qb[h]=Pb("ON_PROPERTY"+h));d.set=function(q){var u=this;u||a!==Rb||(u=Rb);u&&("function"===typeof u[k]&&u.removeEventListener(h,qba),f&&f.call(u,null),u[k]=q,"function"===typeof q&&u.addEventListener(h,qba,!1))};d.get=function(){var q=this;q||a!==Rb||(q=Rb);if(!q)return null;var u=q[k];return u?u:e&&(u=e.call(this))?(d.set.call(this,u),"function"===typeof q.removeAttribute&&q.removeAttribute(b),
u):null};rba(a,b,d);a[c]=!0}},tba=function(a,b,c){if(b)for(var d=0;d<b.length;d++)sba(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++)sba(a,b[d],c)}},Tb=function(a){var b=Rb[a];if(b){Rb[Pb(a)]=b;Rb[a]=function(){var e=nba(arguments,a);switch(e.length){case 0:this[Sb]=new b;break;case 1:this[Sb]=new b(e[0]);break;case 2:this[Sb]=new b(e[0],e[1]);break;case 3:this[Sb]=new b(e[0],e[1],e[2]);break;case 4:this[Sb]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("ha");
}};Ob(Rb[a],b);var c=new b(function(){}),d;for(d in c)"XMLHttpRequest"===a&&"responseBlob"===d||function(e){"function"===typeof c[e]?Rb[a].prototype[e]=function(){return this[Sb][e].apply(this[Sb],arguments)}:rba(Rb[a].prototype,e,{set:function(f){"function"===typeof f?(this[Sb][e]=mba(f,a+"."+e),Ob(this[Sb][e],f)):this[Sb][e]=f},get:function(){return this[Sb][e]}})}(d);for(d in b)"prototype"!==d&&b.hasOwnProperty(d)&&(Rb[a][d]=b[d])}},Ub=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=uba(d);
!d&&a[b]&&(d=a);a=Pb(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&Nb(d,b);if(oba(f)){var h=c(e,a,b);d[b]=function(){return h(this,arguments)};Ob(d[b],e)}}return e},vba=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=Ub(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)}})},Ob=function(a,b){a[Pb("OriginalDelegate")]=b},yba=function(){if(wba)return xba;wba=!0;try{var a=Vb.navigator.userAgent;if(-1!==a.indexOf("MSIE ")||-1!==a.indexOf("Trident/")||-1!==a.indexOf("Edge/"))xba=!0}catch(b){}return xba},zba=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=Wb+c;b=Wb+b;Xb[a]={};Xb[a]["false"]=c;Xb[a]["true"]=b},Fba=function(a,b,c,d){function e(ja,ha,ra){if(ha=ha||a.event){ja=ja||ha.target||a;var Fa=ja[Xb[ha.type][ra?"true":"false"]];if(Fa){ra=
[];if(1===Fa.length)(ha=I(Fa[0],ja,ha))&&ra.push(ha);else{Fa=Fa.slice();for(var Ka=0;Ka<Fa.length&&(!ha||!0!==ha[Aba]);Ka++){var Ca=I(Fa[Ka],ja,ha);Ca&&ra.push(Ca)}}if(1===ra.length)throw ra[0];ha={};for(ja=0;ja<ra.length;ha={$jscomp$loop$prop$err$1206$1623:ha.$jscomp$loop$prop$err$1206$1623},ja++)ha.$jscomp$loop$prop$err$1206$1623=ra[ja],b.nativeScheduleMicroTask(function(La){return function(){throw La.$jscomp$loop$prop$err$1206$1623;}}(ha))}}}function f(ja,ha){if(!ja)return!1;var ra=!0;ha&&void 0!==
ha.useG&&(ra=ha.useG);var Fa=ha&&ha.vh,Ka=!0;ha&&void 0!==ha.chkDup&&(Ka=ha.chkDup);var Ca=!1;ha&&void 0!==ha.rt&&(Ca=ha.rt);for(var La=ja;La&&!La.hasOwnProperty(h);)La=uba(La);!La&&ja[h]&&(La=ja);if(!La||La[x])return!1;var jb=ha&&ha.eventNameToString,db={},Mb=La[x]=La[h],va=La[Pb(k)]=La[k];ja=La[Pb(q)]=La[q];var Ba=La[Pb(u)]=La[u],Ga;ha&&ha.prepend&&(Ga=La[Pb(ha.prepend)]=La[ha.prepend]);var Xa=function(fb){if(!fb.isRemoved){var zb=Xb[fb.eventName],Jb;zb&&(Jb=zb[fb.capture?"true":"false"]);if(zb=
Jb&&fb.target[Jb])for(var gc=0;gc<zb.length;gc++)if(zb[gc]===fb){zb.splice(gc,1);fb.isRemoved=!0;0===zb.length&&(fb.allRemoved=!0,fb.target[Jb]=null);break}}if(fb.allRemoved)return va.call(fb.target,fb.eventName,fb.capture?L:N,fb.options)},$a=function(fb){return Mb.call(db.target,db.eventName,fb.invoke,db.options)},ec=function(fb){return Ga.call(db.target,db.eventName,fb.invoke,db.options)},Va=function(fb){return va.call(fb.target,fb.eventName,fb.invoke,fb.options)};$a=ra?function(){if(!db.isExisting)return Mb.call(db.target,
db.eventName,db.capture?L:N,db.options)}:$a;Xa=ra?Xa:Va;Va=function(fb,zb){var Jb=typeof zb;return"function"===Jb&&fb.callback===zb||"object"===Jb&&fb.originalDelegate===zb};var Ya=ha&&ha.diff?ha.diff:Va,Sa=Zone[Pb("UNPATCHED_EVENTS")],vb=a[Pb("PASSIVE_EVENTS")];Va=function(fb,zb,Jb,gc,Ac,ue){Ac=void 0===Ac?!1:Ac;ue=void 0===ue?!1:ue;return function(){var jd=this||a,Ed=arguments[0];ha&&ha.transferEventName&&(Ed=ha.transferEventName(Ed));var gh=arguments[1];if(!gh||Yb&&"uncaughtException"===Ed)return fb.apply(this,
arguments);var wK=!1;if("function"!==typeof gh){if(!gh.handleEvent)return fb.apply(this,arguments);wK=!0}if(!Fa||Fa(fb,gh,jd,arguments)){var am=Zb&&!!vb&&-1!==vb.indexOf(Ed);var nc=arguments[2];nc=!Zb&&"object"===typeof nc&&nc?!!nc.capture:Zb&&am?"boolean"===typeof nc?{capture:nc,passive:!0}:nc?"object"===typeof nc&&!1!==nc.passive?Object.assign({},nc,{passive:!0}):nc:{passive:!0}:nc;if(Sa)for(var kc=0;kc<Sa.length;kc++)if(Ed===Sa[kc])return am?fb.call(jd,Ed,gh,nc):fb.apply(this,arguments);am=nc?
"boolean"===typeof nc?!0:nc.capture:!1;kc=nc&&"object"===typeof nc?nc.once:!1;var ve=Zone.current,Oi=Xb[Ed];Oi||(zba(Ed,jb),Oi=Xb[Ed]);var Pn=Oi[am?"true":"false"];Oi=jd[Pn];var Up=!1;if(Oi){if(Up=!0,Ka)for(Pn=0;Pn<Oi.length;Pn++)if(Ya(Oi[Pn],gh))return}else Oi=jd[Pn]=[];var Pk;Pn=jd.constructor.name;var Hza=Bba[Pn];Hza&&(Pk=Hza[Ed]);Pk||(Pk=Pn+zb+(jb?jb(Ed):Ed));db.options=nc;kc&&(db.options.once=!1);db.target=jd;db.capture=am;db.eventName=Ed;db.isExisting=Up;if(Up=ra?Cba:void 0)Up.taskData=db;Pk=
ve.scheduleEventTask(Pk,gh,Up,Jb,gc);db.target=null;Up&&(Up.taskData=null);kc&&(nc.once=!0);if(Zb||"boolean"!==typeof Pk.options)Pk.options=nc;Pk.target=jd;Pk.capture=am;Pk.eventName=Ed;wK&&(Pk.originalDelegate=gh);ue?Oi.unshift(Pk):Oi.push(Pk);if(Ac)return jd}}};La[h]=Va(Mb,E,$a,Xa,Ca);Ga&&(La.prependListener=Va(Ga,".prependListener:",ec,Xa,Ca,!0));La[k]=function(){var fb=this||a,zb=arguments[0];ha&&ha.transferEventName&&(zb=ha.transferEventName(zb));var Jb=arguments[2],gc=Jb?"boolean"===typeof Jb?
!0:Jb.capture:!1;Jb=arguments[1];if(!Jb)return va.apply(this,arguments);if(!Fa||Fa(va,Jb,fb,arguments)){var Ac=Xb[zb],ue;Ac&&(ue=Ac[gc?"true":"false"]);if(gc=ue&&fb[ue])for(Ac=0;Ac<gc.length;Ac++){var jd=gc[Ac];if(Ya(jd,Jb)){gc.splice(Ac,1);jd.isRemoved=!0;0===gc.length&&(jd.allRemoved=!0,fb[ue]=null,"string"===typeof zb&&(fb[Wb+"ON_PROPERTY"+zb]=null));jd.zone.cancelTask(jd);if(Ca)return fb;return}}return va.apply(this,arguments)}};La[q]=function(fb){var zb=this||a,Jb=fb;ha&&ha.transferEventName&&
(Jb=ha.transferEventName(Jb));fb=[];zb=Dba(zb,jb?jb(Jb):Jb);for(Jb=0;Jb<zb.length;Jb++){var gc=zb[Jb];fb.push(gc.originalDelegate?gc.originalDelegate:gc.callback)}return fb};La[u]=function(fb){var zb=this||a;if(fb){ha&&ha.transferEventName&&(fb=ha.transferEventName(fb));var Jb=Xb[fb];if(Jb){var gc=zb[Jb["false"]];zb=zb[Jb["true"]];if(gc)for(gc=gc.slice(),Jb=0;Jb<gc.length;Jb++){var Ac=gc[Jb];this[k].call(this,fb,Ac.originalDelegate?Ac.originalDelegate:Ac.callback,Ac.options)}if(zb)for(zb=zb.slice(),
gc=0;gc<zb.length;gc++)Jb=zb[gc],this[k].call(this,fb,Jb.originalDelegate?Jb.originalDelegate:Jb.callback,Jb.options)}}else{fb=Object.keys(zb);for(zb=0;zb<fb.length;zb++)(gc=(gc=Eba.exec(fb[zb]))&&gc[1])&&"removeListener"!==gc&&this[u].call(this,gc);this[u].call(this,"removeListener")}if(Ca)return this};Ob(La[h],Mb);Ob(La[k],va);Ba&&Ob(La[u],Ba);ja&&Ob(La[q],ja);return!0}for(var h=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",u=d&&d.rmAll||"removeAllListeners",
x=Pb(h),E="."+h+":",I=function(ja,ha,ra){if(!ja.isRemoved){var Fa=ja.callback;"object"===typeof Fa&&Fa.handleEvent&&(ja.callback=function(La){return Fa.handleEvent(La)},ja.originalDelegate=Fa);try{ja.invoke(ja,ha,[ra])}catch(La){var Ka=La}var Ca=ja.options;Ca&&"object"===typeof Ca&&Ca.once&&ha[k].call(ha,ra.type,ja.originalDelegate?ja.originalDelegate:ja.callback,Ca);return Ka}},N=function(ja){return e(this,ja,!1)},L=function(ja){return e(this,ja,!0)},T=[],Y=0;Y<c.length;Y++)T[Y]=f(c[Y],d);return T},
Dba=function(a,b){if(!b){var c=[],d;for(d in a){var e=Eba.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=Xb[b];c||(zba(b),c=Xb[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Gba=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[Aba]=!0;c&&c.apply(d,e)}})},ac=function(a,b,c,d){function e(u){var x=u.data;x.args[0]=function(){return u.invoke.apply(this,
arguments)};x.handleId=h.apply(a,x.args);return u}function f(u){return k.call(a,u.data.handleId)}var h=null,k=null;b+=d;c+=d;var q={};h=Ub(a,b,function(u){return function(x,E){if("function"===typeof E[0]){var I={isPeriodic:"Interval"===d,delay:"Timeout"===d||"Interval"===d?E[1]||0:void 0,args:E},N=E[0];E[0]=function(){try{return N.apply(this,arguments)}finally{I.isPeriodic||("number"===typeof I.handleId?delete q[I.handleId]:I.handleId&&(I.handleId[$b]=null))}};x=Zone.current.scheduleMacroTask(b,E[0],
I,e,f);if(!x)return x;E=x.data.handleId;"number"===typeof E?q[E]=x:E&&(E[$b]=x);E&&E.ref&&E.unref&&"function"===typeof E.ref&&"function"===typeof E.unref&&(x.ref=E.ref.bind(E),x.unref=E.unref.bind(E));return"number"===typeof E||E?E:x}return u.apply(a,E)}});k=Ub(a,c,function(u){return function(x,E){x=E[0];if("number"===typeof x)var I=q[x];else(I=x&&x[$b])||(I=x);I&&"string"===typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"===typeof x?delete q[x]:x&&
(x[$b]=null),I.zone.cancelTask(I)):u.apply(a,E)}})},Hba=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,u){q&&q.prototype&&e.forEach(function(x){var E=c+"."+d+"::"+x,I=q.prototype;try{if(I.hasOwnProperty(x)){var N=a.ObjectGetOwnPropertyDescriptor(I,x);N&&N.value?(N.value=a.wrapWithCurrentZone(N.value,E),a._redefineProperty(q.prototype,x,N)):I[x]&&(I[x]=a.wrapWithCurrentZone(I[x],E))}else I[x]&&(I[x]=a.wrapWithCurrentZone(I[x],E))}catch(L){}});return h.call(b,
k,q,u)};a.attachOriginToPatched(b[d],h)}},Iba=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)})},Jba=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&2<b.length}).map(function(b){return b.substring(2)})},Oba=function(){bc=Zone.__symbol__;cc=Object[bc("defineProperty")]=Object.defineProperty;Kba=Object[bc("getOwnPropertyDescriptor")]=
Object.getOwnPropertyDescriptor;Lba=Object.create;dc=bc("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[dc]&&a[dc][b])throw new TypeError("la`"+b+"`"+a);var d=c.configurable;"prototype"!==b&&(c=Mba(a,b,c));return Nba(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=r(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]=Mba(a,c,b[c])});return Lba(a,b)};Object.getOwnPropertyDescriptor=function(a,b){var c=Kba(a,b);c&&a&&a[dc]&&a[dc][b]&&(c.configurable=!1);return c}},Pba=function(a,b,c){var d=c.configurable;c=Mba(a,b,c);return Nba(a,b,c,d)},Mba=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[dc]||Object.isFrozen(a)||cc(a,dc,{writable:!0,value:{}}),
a[dc]&&(a[dc][b]=!0));return c},Nba=function(a,b,c,d){try{return cc(a,b,c)}catch(e){if(c.configurable){"undefined"==typeof d?delete c.configurable:c.configurable=d;try{return cc(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;
}},Qba=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,u="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var x="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=x.map(function(ha){return"HTML"+ha+"Element"}).concat(u):
a.EventTarget?c.push("EventTarget"):c=u;var E=a.__Zone_disable_IE_check||!1,I=a.__Zone_enable_cross_context_check||!1,N=b.isIEOrEdge(),L={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(u=0;u<d.length;u++){var T=d[u],Y=q+(T+k),ja=q+(T+h);f[T]={};f[T][k]=Y;f[T][h]=ja}for(f=0;f<x.length;f++)for(h=
x[f],k=e[h]={},q=0;q<d.length;q++)u=d[q],k[u]=h+".addEventListener:"+u;d=[];for(e=0;e<c.length;e++)x=a[c[e]],d.push(x&&x.prototype);b.patchEventTarget(a,b,d,{vh:function(ha,ra,Fa,Ka){if(!E&&N)if(I)try{var Ca=ra.toString();if("[object FunctionWrapper]"===Ca||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==Ca)return ha.apply(Fa,Ka),!1}catch(La){return ha.apply(Fa,Ka),!1}else{if(ra=ra.toString(),"[object FunctionWrapper]"===ra||"function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }"==
ra)return ha.apply(Fa,Ka),!1}else if(I)try{ra.toString()}catch(La){return ha.apply(Fa,Ka),!1}return!0},transferEventName:function(ha){return L[ha]||ha}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},Rba=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var u=1<arguments.length?new f(k,q):new f(k),x=a.ObjectGetOwnPropertyDescriptor(u,"onmessage");if(x&&
!1===x.configurable){var E=a.ObjectCreate(u);var I=u;[d,e,"send","close"].forEach(function(N){E[N]=function(){var L=a.ArraySlice.call(arguments);if(N===d||N===e){var T=0<L.length?L[0]:void 0;T&&(T=Zone.__symbol__("ON_PROPERTY"+T),u[T]=E[T])}return u[N].apply(u,L)}})}else E=u;a.patchOnProperties(E,["close","error","message","open"],I);return E};c=b.WebSocket;for(var h in f)c[h]=f[h]},Sba=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},Uba=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<Tba.length;c={$jscomp$loop$prop$onproperty$1630:c.$jscomp$loop$prop$onproperty$1630},
d++){var e=Tba[d];c.$jscomp$loop$prop$onproperty$1630="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$1630:"unknown."+f.$jscomp$loop$prop$onproperty$1630;h;){if(h[f.$jscomp$loop$prop$onproperty$1630]&&!h[f.$jscomp$loop$prop$onproperty$1630][b]){var q=a.wrapWithCurrentZone(h[f.$jscomp$loop$prop$onproperty$1630],k);q[b]=h[f.$jscomp$loop$prop$onproperty$1630];h[f.$jscomp$loop$prop$onproperty$1630]=q}h=h.parentElement}}}(c),
!0)}},fc=function(a){for(var b in a)if(a[b]===fc)return b;throw Error("ma");},Vba=function(a,b){for(var c in b)b.hasOwnProperty(c)&&!a.hasOwnProperty(c)&&(a[c]=b[c])},hc=function(a){if("string"===typeof a)return a;if(Array.isArray(a))return"["+a.map(hc).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)},Wba=function(a,b){return null==a||""===a?null===
b?"":b:null==b||""===b?a:a+" "+b},ic=function(a){a.__forward_ref__=ic;a.toString=function(){return hc(this())};return a},jc=function(a){return Xba(a)?a():a},Xba=function(a){return"function"===typeof a&&a.hasOwnProperty(Yba)&&a.__forward_ref__===ic},lc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},mc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},aca=function(a){var b;(b=a.hasOwnProperty(Zba)?a[Zba]:null)||(b=a.hasOwnProperty($ba)?
a[$ba]:null);return b},bca=function(a){var b=a&&(a[Zba]||a[$ba]);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},eca=function(a){return a&&(a.hasOwnProperty(cca)||a.hasOwnProperty(dca))?a[cca]:
null},oc=function(a){return"string"===typeof a?a:null==a?"":String(a)},qc=function(){throw new pc(-201,!1);},rc=function(a){var b=fca;fca=a;return b},gca=function(a,b,c){var d=aca(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;qc(hc(a))},tc=function(a){var b=sc;sc=a;return b},hca=function(a,b){b=void 0===b?0:b;if(void 0===sc)throw new pc(-203,"");return null===sc?gca(a,void 0,b):sc.get(a,b&8?null:void 0,b)},t=function(a,
b){b=void 0===b?0:b;return(fca||hca)(jc(a),b)},uc=function(a,b){return t(a,void 0===b?0:b)},ica=function(a){for(var b=[],c=0;c<a.length;c++){var d=jc(a[c]);if(Array.isArray(d)){if(0===d.length)throw new pc(900,"");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(t(e,f))}else b.push(t(d))}return b},vc=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},wc=function(a){return{toString:a}.toString()},jca=function(a){return function(){var b=
xc.apply(0,arguments);if(a){b=a.apply(null,v(b));for(var c in b)this[c]=b[c]}}},yc=function(a){return wc(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=xc.apply(0,arguments);if(this instanceof b)return c.apply(this,e),this;var f=new (Function.prototype.bind.apply(b,[null].concat(v(e))));d.annotation=f;return d}var c=
jca(a);return b})},w=function(a){return wc(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||zc,viewQuery:a.viewQuery||null,features:a.features||null,data:a.data||{},encapsulation:a.encapsulation||0,id:"c"+kca++,styles:a.styles||zc,_:null,setInput:null,schemas:a.schemas||null,tView:null},e=a.dependencies;b=a.features;d.inputs=lca(a.inputs,c);d.outputs=lca(a.outputs);b&&b.forEach(function(f){return f(d)});d.directiveDefs=e?function(){return("function"===typeof e?e():e).map(mca).filter(nca)}:
null;d.pipeDefs=e?function(){return("function"===typeof e?e():e).map(oca).filter(nca)}:null;return d})},pca=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=function(){return("function"===typeof b?b():b).map(mca)};a.pipeDefs=function(){return("function"===typeof c?c():c).map(oca)}},mca=function(a){return a[Bc]||a[qca]||null},nca=function(a){return null!==a},Cc=function(a){return wc(function(){return{type:a.type,bootstrap:a.bootstrap||zc,declarations:a.declarations||zc,imports:a.imports||zc,exports:a.exports||
zc,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},lca=function(a,b){if(null==a)return Dc;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},Ec=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}},oca=function(a){return a[rca]||null},Fc=function(a){return Array.isArray(a)&&"object"===typeof a[1]},Gc=function(a){return Array.isArray(a)&&
!0===a[1]},Ic=function(a){return a.hasOwnProperty(Hc)?a[Hc]:null},Jc=function(){return sca},sca=function(a){a.type.prototype.ngOnChanges&&(a.setInput=tca);return uca},uca=function(){var a=this.__ngSimpleChanges__||null,b=null==a?void 0:a.current;if(b){var c=a.previous;if(c===Dc)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},tca=function(a,b,c,d){var e;(e=a.__ngSimpleChanges__||null)||(e=a.__ngSimpleChanges__={previous:Dc,current:null});var f=e;e=f.current||(f.current=
{});f=f.previous;c=this.declaredInputs[c];var h=f[c];e[c]=new vca(h&&h.currentValue,b,f===Dc);a[d]=b},xca=function(){if(void 0!==wca)return wca;if("undefined"!==typeof document)return document},Kc=function(a){for(;Array.isArray(a);)a=a[0];return a},Lc=function(a,b){return Kc(b[a.index])},Mc=function(a,b){a=b[a];return Fc(a)?a:a[0]},Nc=function(a,b){return null===b||void 0===b?null:a[b]},yca=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]},
y=function(){return Oc.lView},z=function(a){Oc.contextLView=a;return a[8]},A=function(a){Oc.contextLView=null;return a},Pc=function(){for(var a=Oc.currentTNode;null!==a&&64===a.type;)a=a.parent;return a},Qc=function(a,b){var c=Oc;c.currentTNode=a;c.isParent=b},Rc=function(){var a=Oc,b=a.bindingRootIndex;-1===b&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},Sc=function(a){var b=Oc,c=b.bindingIndex;b.bindingIndex+=a;return c},zca=function(a){var b=Oc.currentDirectiveIndex;return-1===b?
null:a[b]},Bca=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=Oc=Aca();c.currentTNode=b;c.lView=a;return!0},Cca=function(a){var b=Aca(),c=a[1];Oc=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},Aca=function(){var a=Oc,b=null===a?null:a.child;return null===b?Dca(a):b},Dca=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},Eca=function(){var a=Oc;Oc=a.parent;a.currentTNode=null;a.lView=null;return a},Fca=function(){var a=Eca();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},Tc=function(){var a=Oc;return a.tView.data[a.selectedIndex]},Uc=function(){Oc.currentNamespace="svg"},Vc=function(){Oc.currentNamespace=null},Wc=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)}},Yc=function(a,b,c,d){(a[2]&3)===c&&Xc(a,b,c,d)},Gca=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&2047)+1)},Xc=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],u=b[k+1],x=a[q?-b[k]:b[k]];q?a[2]>>11<a[18]>>16&&(a[2]&3)===c&&(a[2]+=2048,u.call(x)):u.call(x);a[18]=(a[18]&4294901760)+k+2}k++}},Zc=function(a,b,c){for(var d=!!a.listen,e=0;e<c.length;){var f=c[e];if("number"===typeof f){if(0!==f)break;e++;f=c[e++];var h=c[e++],k=c[e++];d?a.setAttribute(b,h,k,f):b.setAttributeNS(f,h,k)}else h=c[++e],64===f.charCodeAt(0)?d&&a.setProperty(b,f,h):d?a.setAttribute(b,f,h):b.setAttribute(f,h),e++}},$c=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?Hca(a,c,e,b[++d]):Hca(a,c,e,null))}return a},Hca=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)},ad=function(a,b){for(a>>=16;0<a;)b=b[15],a--;return b},bd=function(a){var b=Ica;Ica=a;return b},dd=function(a,b,c){var d;"string"===typeof c?d=c.charCodeAt(0)||0:c.hasOwnProperty(cd)&&(d=c[cd]);null==d&&(d=c[cd]=Jca++);c=d&255;b.data[a+(c>>5)]|=1<<c},ed=function(a,b){var c=Kca(a,b);if(-1!==c)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Lca(c.data,a),Lca(b,null),Lca(c.blueprint,null));c=Mca(a,b);a=a.injectorIndex;if(-1!==c)for(var d=c&
32767,e=ad(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},Lca=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Kca=function(a,b){return-1===a.injectorIndex||a.parent&&a.parent.injectorIndex===a.injectorIndex||null===b[a.injectorIndex+8]?-1:a.injectorIndex},Mca=function(a,b){if(a.parent&&-1!==a.parent.injectorIndex)return a.parent.injectorIndex;a=0;for(var c=b;null!==c;){b=Nca(c);if(null===b)break;a++;c=c[15];if(-1!==b.injectorIndex)return b.injectorIndex|a<<16}return-1},fd=function(a){var b=
Pc();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},Oca=function(a,b,c,d){c&8&&void 0===d&&(d=null);if(0===(c&3)){a=a[9];var e=rc();try{return a?a.get(b,d,c&8):gca(b,d,c&8)}finally{rc(e)}}c&8?b=d:(qc(),b=void 0);return b},Qca=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=gd,k=a,q=b;null!==k&&null!==q&&q[2]&1024&&!(q[2]&256);){var u=Pca(k,q,c,f|2);if(u!==gd){f=u;break a}k=k.parent;if(!k){if(k=q[21])if(k=k.get(c,gd,f),k!==gd){f=k;break a}k=Nca(q);q=q[15]}}f=h}if(f!==gd)return f}a=Pca(a,b,c,d);if(a!==gd)return a}return Oca(b,c,d,e)},Pca=function(a,b,c,d){var e=gd;if("string"===typeof c)var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(cd)?c[cd]:void 0,f="number"===typeof f?0<=f?f&255:Rca:f;if("function"===typeof f){if(!Bca(b,a,d))return d&
1?d&8?b=e:(qc(),b=void 0):b=Oca(b,c,d,e),b;try{var h=f(d);if(null!=h||d&8)return h;qc()}finally{Eca()}}else if("number"===typeof f){h=null;var k=Kca(a,b),q=d&1?b[16][6]:null;if(-1===k||d&4){var u=-1===k?Mca(a,b):b[k+8];-1===u||d&2?k=-1:(h=b[1],k=u&32767,b=ad(u,b))}for(;-1!==k;){a=b[1];if(a.data[k+(f>>5)]&1<<f){u=b[1];var x=u.data[k+8],E=hd(x,u,c,null==h?2===(x.flags&2)&&Ica:h!=u&&0!==(x.type&3),d&1&&q===x);u=null!==E?id(b,u,E,x):gd;if(u!==gd)return u}u=b[k+8];-1!==u&&!(d&2||d&1&&b[1].data[k+8]===
q)&&b[k+(f>>5)]&1<<f?(h=a,k=u&32767,b=ad(u,b)):k=-1}}return e},hd=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},id=function(a,b,c,d){var e=a[c],f=b.data;if(e instanceof kd){var h=e;if(h.resolving)throw a=f[c],new pc(-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():oc(a)));var k=bd(h.canSeeViewProviders);h.resolving=!0;var q=h.injectImpl?rc(h.injectImpl):null;Bca(a,d,0);try{if(e=a[c]=h.factory(void 0,f,a,d),b.firstCreatePass&&c>=d.directiveStart){var u=f[c],x=u.type.prototype,E=x.ngOnInit,I=x.ngDoCheck;if(x.ngOnChanges){var N=sca(u);(b.preOrderHooks||(b.preOrderHooks=[])).push(c,N);(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,N)}E&&(b.preOrderHooks||(b.preOrderHooks=
[])).push(-c,E);I&&((b.preOrderHooks||(b.preOrderHooks=[])).push(c,I),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(c,I))}}finally{null!==q&&rc(q),bd(k),h.resolving=!1,Eca()}}return e},Rca=function(){return new ld(Pc(),y())},md=function(a){return wc(function(){var b=a.prototype.constructor;b=b[Hc]||Sca(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[Hc]||Sca(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},
Sca=function(a){return Xba(a)?function(){var b=Sca(jc(a));return b&&b()}:Ic(a)},Nca=function(a){var b=a[1],c=b.type;return 2===c?b.declTNode:1===c?a[6]:null},Tca=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)),Tca(d,b)):b!==a&&b.push(d)}return b},nd=function(a,b){a.forEach(function(c){return Array.isArray(c)?nd(c,b):b(c)})},od=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Uca=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b);
return c},qd=function(a,b,c){var d=pd(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}}},Vca=function(a,b){b=pd(a,b);if(0<=b)return a[b|1]},pd=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)},Xca=function(){return{"\u0275providers":Wca(!0,xc.apply(0,arguments))}},Wca=function(a){var b=[],c=new Set,d;
nd(xc.apply(1,arguments),function(e){Yca(e,b,[],c)&&(d||(d=[]),d.push(e))});void 0!==d&&Zca(d,b);return b},Zca=function(a,b){for(var c={},d=0;d<a.length;c={$jscomp$loop$prop$providers$1632:c.$jscomp$loop$prop$providers$1632,$jscomp$loop$prop$ngModule$1633:c.$jscomp$loop$prop$ngModule$1633},d++){var e=a[d];c.$jscomp$loop$prop$ngModule$1633=e.ngModule;c.$jscomp$loop$prop$providers$1632=e.providers;nd(c.$jscomp$loop$prop$providers$1632,function(){return function(f){b.push(f)}}(c))}},Yca=function(a,b,
c,d){a=jc(a);if(!a)return!1;var e=null,f=eca(a),h=!f&&(a[Bc]||null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=eca(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=r(f),k=f.next();!k.done;k=f.next())Yca(k.value,b,c,d)}else if(f){if(null!=f.imports&&!k){d.add(e);var q;nd(f.imports,function(u){Yca(u,b,c,d)&&(q||(q=[]),q.push(u))});void 0!==q&&Zca(q,b)}k||(h=Ic(e)||function(){return new e},
b.push({provide:e,useFactory:h,deps:zc},{provide:$ca,useValue:e,multi:!0},{provide:ada,useValue:function(){return t(e)},multi:!0}));f=f.providers;null==f||k||nd(f,function(u){b.push(u)})}else return!1;return e!==a&&void 0!==a.providers},cda=function(a){return null!==a&&"object"==typeof a&&bda in a},rd=function(a){return"function"===typeof a},fda=function(){void 0===dda&&(dda=new eda);return dda},hda=function(a){var b=aca(a);b=null!==b?b.factory:Ic(a);if(null!==b)return b;if(a instanceof sd)throw new pc(204,
!1);if(a instanceof Function)return gda(a);throw new pc(204,!1);},gda=function(a){var b=a.length;if(0<b)throw Uca(b,"?"),new pc(204,!1);var c=bca(a);return null!==c?function(){return c.factory(a)}:function(){return new a}},jda=function(a){if(cda(a))return td(void 0,a.useValue);a=ida(a);return td(a,ud)},ida=function(a){var b=void 0;if(rd(a))return b=jc(a),Ic(b)||hda(b);if(cda(a))b=function(){return jc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,v(ica(a.deps||[])))};
else if(a&&a.useExisting)b=function(){return t(jc(a.useExisting))};else{var c=jc(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(v(ica(a.deps)))))};else return Ic(c)||hda(c)}return b},td=function(a,b,c){return{factory:a,value:b,multi:(void 0===c?0:c)?[]:void 0}},kda=function(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?kda(c,b):c.\u0275providers?kda(c.\u0275providers,b):b(c)},nda=function(a,b,c,d){a=lda(a,
void 0===b?null:b,void 0===c?null:c,d);mda(a);return a},lda=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)||zc,Xca(a)];d=d||("object"===typeof a?void 0:hc(a));return new vd(c,b||fda(),d||null,e)},xd=function(a,b){return new wd(Lc(a,b))},oda=function(a){return a instanceof wd?a.nativeElement:a},yd=function(a,b){Fc(b)?(a.__ngContext__=b[20],pda.set(b[20],b)):a.__ngContext__=b},zd=function(a){return a.ownerDocument.defaultView},qda=function(a){return a.ownerDocument},
B=function(a){rda(Oc.tView,y(),Oc.selectedIndex+a)},rda=function(a,b,c){3===(b[2]&3)?(a=a.preOrderCheckHooks,null!==a&&Xc(b,a,3,c)):(a=a.preOrderHooks,null!==a&&Yc(b,a,0,c));Oc.selectedIndex=c},C=function(a,b){b=void 0===b?0:b;var c=y();return null===c?t(a,b):Qca(Pc(),c,jc(a),b)},Ad=function(){throw Error("ra");},sda=function(){if(void 0===Bd&&(Bd=null,Cd.trustedTypes))try{Bd=Cd.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Bd},
Dd=function(a){var b;return(null==(b=sda())?void 0:b.createHTML(a))||a},tda=function(a){a=a[3];return Gc(a)?a[3]:a},Fd=function(a){for(;null!==a&&!Gc(a);)a=a[4];return a},Hd=function(a,b,c,d,e){if(null!=d){var f=!1;if(Gc(d))var h=d;else Fc(d)&&(f=!0,d=d[0]);d=Kc(d);if(0===a&&null!==c)null==e?uda(b,c,d):Gd(b,c,d,e||null,!0);else if(1===a&&null!==c)Gd(b,c,d,e||null,!0);else if(2===a){var k=vda(b,d);k&&(b.listen?b.removeChild(k,d,f):k.removeChild(d))}else 3===a&&b.destroyNode(d);if(null!=h)for(d=h[7],
f=Kc(h),d!==f&&Hd(a,b,c,d,e),e=10;e<h.length;e++)f=h[e],Id(b,a,f[1].firstChild,f,c,d,!1)}},wda=function(a,b,c){if(a.listen)return a.createElement(b,c);null!==c?(c=c.toLowerCase(),c="svg"===c?"http://www.w3.org/2000/svg":"math"===c?"http://www.w3.org/1998/MathML/":null):c=null;return null===c?a.createElement(b):a.createElementNS(c,b)},xda=function(a,b){a=a[9];var c=a.indexOf(b),d=b[3];b[2]&512&&(b[2]&=-513,yca(d,-1));a.splice(c,1)},yda=function(a,b){if(!(10>=a.length)){var c=10+b,d=a[c];if(d){var e=
d[17];null!==e&&e!==a&&xda(e,d);0<b&&(a[c-1][4]=d[4]);a=od(a,10+b);Id(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}},Ada=function(a,b){if(!(b[2]&128)){var c=b[11];c.listen&&c.destroyNode&&Id(c,3,a.firstChild,b,null,null,!1);if(a=b[13])for(;a;){c=null;if(Fc(a))c=a[13];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)Fc(a)&&zda(a[1],a),a=a[3];null===a&&(a=b);Fc(a)&&zda(a[1],a);c=a&&a[4]}a=c}else zda(b[1],
b)}},zda=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 kd)){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+1];h="function"===typeof f?f(b):Kc(b[f]);var k=c[f=d[e+2]],q=d[e+3];if("boolean"===typeof q)h.removeEventListener(d[e],k,q);else if(0<=q)c[f=
q]();else c[f=-q].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].listen&&b[11].destroy();c=b[17];null!==c&&Gc(b[3])&&(c!==b[3]&&xda(c,b),c=b[19],null!==c&&c.detachView(a));pda.delete(b[20])}},Bda=function(a,b,c){for(;null!==b&&b.type&40;)b=b.parent;return null===b?c[0]:b.flags&2&&(a=a.data[b.directiveStart].encapsulation,2===a||0===a)?null:Lc(b,c)},Gd=function(a,b,c,d,e){a.listen?a.insertBefore(b,c,d,e):("TEMPLATE"===
b.tagName&&void 0!==b.content?b.content:b).insertBefore(c,d,e)},uda=function(a,b,c){a.listen?a.appendChild(b,c):("TEMPLATE"===b.tagName&&void 0!==b.content?b.content:b).appendChild(c)},vda=function(a,b){return a.listen?a.parentNode(b):b.parentNode},Jd=function(a,b,c,d){a=Bda(a,d.parent,b);var e=b[11];d=d.parent||b[6];b=d.type&40?Lc(d,b):null;if(null!=a)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=c[d];null!==b?Gd(e,a,f,b,!1):uda(e,a,f)}else null!==b?Gd(e,a,c,b,!1):uda(e,a,c)},Kd=function(a,b){if(null!==
b){var c=b.type;if(c&3)return Lc(b,a);if(c&4)return Cda(-1,a[b.index]);if(c&8){c=b.child;if(null!==c)return Kd(a,c);a=a[b.index];return Gc(a)?Cda(-1,a):Kc(a)}if(c&32)return(void 0)(b,a)()||Kc(a[b.index]);c=null!==b?a[16][6].projection[b.projection]:null;if(null!==c){if(Array.isArray(c))return c[0];a=tda(a[16]);return Kd(a,c)}return Kd(a,b.next)}return null},Cda=function(a,b){a+=11;if(a<b.length){a=b[a];var c=a[1].firstChild;if(null!==c)return Kd(a,c)}return b[7]},Id=function(a,b,c,d,e,f,h){for(;null!=
c;){var k=d[c.index],q=c.type;h&&0===b&&(k&&yd(Kc(k),d),c.flags|=4);if(64!==(c.flags&64))if(q&8)Id(a,b,c.child,d,e,f,!1),Hd(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var u;u=q();)Hd(b,a,e,u,f);Hd(b,a,e,k,f)}else q&16?Dda(a,b,d,c,e,f):Hd(b,a,e,k,f);c=h?c.projectionNext:c.next}},Dda=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++)Hd(b,a,e,d[c],f);else Id(a,b,d,c[3],e,f,!0)},Eda=function(a,b,c){a.listen?""===c?a.removeAttribute(b,"class"):a.setAttribute(b,
"class",c):b.className=c},Fda=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}},Gda=function(a,b,c){var d=4,e=a.attrs||[],f;a:{for(f=0;f<e.length;f++){var h=e[f];if(3===h||4===h||6===h)break a}f=e.length}h=!1;for(var k=0;k<b.length;k++){var q=b[k];if("number"===typeof q){if(!h&&0!==(d&1)&&0!==(q&1))return!1;h&&0===(q&1)||(h=!1,d=q|d&1)}else if(!h)if(d&4){if(d=2|d&1,""!==q&&q!==
(4!==a.type||c?a.value:"ng-template")||""===q&&1===b.length){if(0===(d&1))return!1;h=!0}}else{var u=d&8?q:b[++k];if(d&8&&null!==a.attrs){a:{q=a.attrs;for(var x=c,E=0;E<q.length;){var I=q[E++];if(x&&"class"===I){if(I=q[E],-1!==Fda(I.toLowerCase(),u)){u=!0;break a}}else if(1===I){for(;E<q.length&&"string"==typeof(I=q[E++]);)if(I.toLowerCase()===u){u=!0;break a}break}}u=!1}if(!u){if(0===(d&1))return!1;h=!0}}else{a:if(q=d&8?"class":q,null===e)q=-1;else if(x=0,c||4!==a.type||"ng-template"===a.value){for(E=
!1;x<e.length;){I=e[x];if(I===q){q=x;break a}if(3===I||6===I)E=!0;else if(1===I||2===I){for(I=e[++x];"string"===typeof I;)I=e[++x];continue}else if(4===I)break;else if(0===I){x+=4;continue}x+=E?1:2}q=-1}else b:{x=e.indexOf(4);if(-1<x)for(x++;x<e.length;){E=e[x];if("number"===typeof E)break;if(E===q){q=x;break b}x++}q=-1}if(-1===q){if(0===(d&1))return!1;h=!0}else if(""!==u&&(q=q>f?"":e[q+1].toLowerCase(),(x=d&8?q:null)&&-1!==Fda(x,u)||d&2&&u!==q)){if(0===(d&1))return!1;h=!0}}}}return 0===(d&1)||h},
Hda=function(a,b,c){c=void 0===c?!1:c;for(var d=0;d<b.length;d++)if(Gda(a,b[d],c))return!0;return!1},Ida=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if("string"===typeof h)if(d&2){var k=a[++c];e+="["+h+(0<k.length?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);else""!==e&&0!==(h&1)&&(b+=f?":not("+e.trim()+")":e,e=""),d=h,f=f||0!==(d&1);c++}""!==e&&(b+=f?":not("+e.trim()+")":e);return b},Md=function(a){return a instanceof Ld?a.changingThisBreaksApplicationSecurity:a},
Nd=function(a,b){a=a instanceof Ld&&a.getTypeName()||null;if(null!=a&&a!==b){if("ResourceURL"===a&&"URL"===b)return!0;throw Error("sa`"+b+"`"+a);}return a===b},Od=function(a){a=String(a);return a.match(Jda)||a.match(Kda)?a:"unsafe:"+a},Lda=function(a){a=String(a);return a.split(",").map(function(b){return Od(b.trim())}).join(", ")},Pd=function(a){var b={};a=r(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},Qd=function(){for(var a={},b=r(xc.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},Oda=function(a){return a.replace(/&/g,"&amp;").replace(Mda,function(b){return"&#"+(1024*(b.charCodeAt(0)-55296)+(b.charCodeAt(1)-56320)+65536)+";"}).replace(Nda,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},Yda=function(a,b){var c=null;try{var d;if(!(d=Rd)){var e=new Pda(a);try{var f=!!(new window.DOMParser).parseFromString(Dd(""),"text/html")}catch(Y){f=!1}d=f?new Qda(e):e}Rd=d;var h=
b?String(b):"";c=Rd.getInertBodyElement(h);a=5;b=h;do{if(0===a)throw Error("ua");a--;h=b;b=c.innerHTML;c=Rd.getInertBodyElement(h)}while(h!==b);var k=new Rda,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName?c.content:null)||c).firstChild;for(h=!0;q;){if(q.nodeType===Node.ELEMENT_NODE){a=k;b=q;var u=b.nodeName.toLowerCase();if(Sda.hasOwnProperty(u)){a.buf.push("<");a.buf.push(u);var x=b.attributes;for(b=0;b<x.length;b++){var E=x.item(b),I=E.name,N=I.toLowerCase();if(Tda.hasOwnProperty(N)){var L=
E.value;Uda[N]&&(L=Od(L));Vda[N]&&(L=Lda(L));a.buf.push(" ",I,'="',Oda(L),'"')}}a.buf.push(">");h=!0}else h=!Wda.hasOwnProperty(u)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(Oda(q.nodeValue));if(h&&q.firstChild)q=q.firstChild;else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var T=Xda(q,q.nextSibling);if(T){q=T;break}q=Xda(q,q.parentNode)}}return Dd(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)}},
Zda=function(){if(void 0===Sd&&(Sd=null,Cd.trustedTypes))try{Sd=Cd.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Sd},$da=function(a){var b;return(null==(b=Zda())?void 0:b.createHTML(a))||a},aea=function(a){var b;return(null==(b=Zda())?void 0:b.createScriptURL(a))||a},Td=function(a){var b=bea();return b?$da(b.sanitize(1,a)||""):Nd(a,"HTML")?$da(Md(a)):Yda(xca(),oc(a))},
Ud=function(a){var b=bea();return b?b.sanitize(4,a)||"":Nd(a,"URL")?Md(a):Od(oc(a))},cea=function(a){var b=bea();if(b)return aea(b.sanitize(5,a)||"");if(Nd(a,"ResourceURL"))return aea(Md(a));throw new pc(904,"");},bea=function(){var a=y();return a&&a[12]},dea=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];Oc.currentQueryIndex=e;h.contentQueries(2,b[f],f)}}},Vd=function(a,b,c,d,e,f,h,k,q,u,x){var E=b.blueprint.slice();E[0]=
e;E[2]=d|76;if(null!==x||a&&a[2]&1024)E[2]|=1024;E[18]=0;E[3]=E[15]=a;E[8]=c;E[10]=h||a&&a[10];E[11]=k||a&&a[11];E[12]=q||a&&a[12]||null;E[9]=u||a&&a[9]||null;E[6]=f;E[20]=eea++;E[21]=x;E[16]=2==b.type?a[16]:E;return E},Wd=function(a,b,c,d,e){var f=a.data[b];if(null===f){f=Oc.currentTNode;var h=Oc.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,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;Oc.inI18n&&(f.flags|=64)}else f.type&64&&(f.type=c,f.value=
d,f.attrs=e,a=Oc,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=null===a?-1:a.injectorIndex);Qc(f,!0);return f},fea=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},Xd=function(a,b,c){Cca(b);try{var d=a.viewQuery;null!==d&&(Oc.currentQueryIndex=0,d(1,c));var e=a.template;null!==e&&gea(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);a.staticContentQueries&&dea(a,b);if(a.staticViewQueries){var f=a.viewQuery;Oc.currentQueryIndex=
0;f(2,c)}var h=a.components;if(null!==h)for(c=0;c<h.length;c++){for(var k=Mc(h[c],b),q=k[1],u=k.length;u<q.blueprint.length;u++)k.push(q.blueprint[u]);Xd(q,k,k[8])}}catch(x){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),x;}finally{b[2]&=-5,Fca()}},Yd=function(a,b,c,d){var e=b[2];if(128!==(e&128)){Cca(b);try{b[18]=0;Oc.bindingIndex=a.bindingStartIndex;null!==c&&gea(a,b,c,2,d);if(c=3===(e&3)){var f=a.preOrderCheckHooks;null!==f&&Xc(b,f,3,null)}else{var h=a.preOrderHooks;null!==
h&&Yc(b,h,0,null);Gca(b,0)}for(var k=Fd(b[13]);null!==k;k=Fd(k[4]))if(k[2]){var q=k[9];for(f=0;f<q.length;f++){var u=q[f],x=u[3];0===(u[2]&512)&&yca(x,1);u[2]|=512}}for(var E=Fd(b[13]);null!==E;E=Fd(E[4]))for(k=10;k<E.length;k++){var I=E[k],N=I[1];64===(I[2]&64)&&Yd(N,I,N.template,I[8])}null!==a.contentQueries&&dea(a,b);if(c){var L=a.contentCheckHooks;null!==L&&Xc(b,L,3)}else{var T=a.contentHooks;null!==T&&Yc(b,T,1);Gca(b,1)}var Y=a.hostBindingOpCodes;if(null!==Y)try{for(E=0;E<Y.length;E++){var ja=
Y[E];if(0>ja)Oc.selectedIndex=~ja;else{I=ja;var ha=Y[++E],ra=Y[++E];N=Oc;N.bindingIndex=N.bindingRootIndex=ha;Oc.currentDirectiveIndex=I;ra(2,b[I])}}}finally{Oc.selectedIndex=-1}var Fa=a.components;if(null!==Fa)for(Y=0;Y<Fa.length;Y++){var Ka=Mc(Fa[Y],b);if(64===(Ka[2]&64)){var Ca=Ka[1];Ka[2]&48?Yd(Ca,Ka,Ca.template,Ka[8]):0<Ka[5]&&hea(Ka)}}var La=a.viewQuery;null!==La&&(Oc.currentQueryIndex=0,La(2,d));if(c){var jb=a.viewCheckHooks;null!==jb&&Xc(b,jb,3)}else{var db=a.viewHooks;null!==db&&Yc(b,db,
2);Gca(b,2)}!0===a.firstUpdatePass&&(a.firstUpdatePass=!1);b[2]&=-41;b[2]&512&&(b[2]&=-513,yca(b[3],-1))}finally{Fca()}}},gea=function(a,b,c,d,e){var f=Oc.selectedIndex;try{Oc.selectedIndex=-1,d&2&&22<b.length&&rda(a,b,22),c(d,e)}finally{Oc.selectedIndex=f}},iea=function(a,b,c){if(0!==(b.flags&8)){var d=b.directiveEnd;for(b=b.directiveStart;b<d;b++){var e=a.data[b];e.contentQueries&&e.contentQueries(1,c[b],b)}}},kea=function(a,b,c){var d=Lc(c,b),e=c.directiveStart,f=c.directiveEnd;a.firstCreatePass||
ed(c,b);yd(d,b);d=c.initialInputs;for(var h=e;h<f;h++){var k=a.data[h],q=null!==k.template;if(q){var u=b,x=c,E=Lc(x,u),I=jea(k),N=u[10];E=Zd(u,Vd(u,I,null,k.onPush?32:16,E,x,N,N.createRenderer(E,k),null,null,null));u[x.index]=E}u=id(b,a,h,c);yd(u,b);if(null!==d&&(x=d[h-e],null!==x))for(E=k.setInput,I=0;I<x.length;){N=x[I++];var L=x[I++],T=x[I++];null!==E?k.setInput(u,T,N,L):u[L]=T}q&&(Mc(c.index,b)[8]=u)}if(128===(c.flags&128)){f=c.directiveStart;e=c.directiveEnd;d=c.index;c=Oc.currentDirectiveIndex;
try{for(Oc.selectedIndex=d;f<e;f++){var Y=a.data[f],ja=b[f];Oc.currentDirectiveIndex=f;null===Y.hostBindings&&0===Y.hostVars&&null===Y.hostAttrs||null===Y.hostBindings||Y.hostBindings(1,ja)}}finally{Oc.selectedIndex=-1,Oc.currentDirectiveIndex=c}}},lea=function(a,b,c){c=void 0===c?Lc: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}},jea=function(a){var b=a.tView;return null===b||b.incompleteFirstPass?a.tView=mea(1,null,a.template,
a.decls,a.vars,a.directiveDefs,a.pipeDefs,a.viewQuery,a.schemas,a.consts):b},mea=function(a,b,c,d,e,f,h,k,q,u){d=22+d;e=d+e;for(var x=[],E=0;E<e;E++)x.push(E<d?null:$d);u="function"===typeof u?u():u;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:u,incompleteFirstPass:!1}},nea=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))},oea=function(a,b,c){for(var d in a)if(a.hasOwnProperty(d)){c=null===c?{}:c;var e=a[d];c.hasOwnProperty(d)?
c[d].push(b,e):c[d]=[b,e]}return c},ae=function(a,b,c,d,e,f,h,k){var q=Lc(b,c),u=b.inputs,x;!k&&null!=u&&(x=u[d])?(pea(a,c,x,d,e),2===(b.flags&2)&&(a=Mc(b.index,c),a[2]&16||(a[2]|=32))):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.listen?f.setProperty(q,d,e):64===d.charCodeAt(0)||(q.setProperty?q.setProperty(d,e):q[d]=e))},sea=function(a,b,c,
d){var e=a.directiveRegistry;var f=null;if(e)for(var h=0;h<e.length;h++){var k=e[h];if(Hda(c,k.selectors,!1)){f||(f=[]);var q=ed(c,b);dd(q,a,k.type);null!==k.template?(qea(a,c),f.unshift(k)):f.push(k)}}e=null===d?null:{"":-1};if(null!==f){h=a.data.length;k=f.length;c.flags|=1;c.directiveStart=h;c.directiveEnd=h+k;c.providerIndexes=h;for(h=0;h<f.length;h++)k=f[h],k.providersResolver&&k.providersResolver(k);k=h=!1;q=fea(a,b,f.length,null);for(var u=0;u<f.length;u++){var x=f[u];c.mergedAttrs=$c(c.mergedAttrs,
x.hostAttrs);rea(a,c,b,q,x);var E=q;if(e){if(x.exportAs)for(var I=0;I<x.exportAs.length;I++)e[x.exportAs[I]]=E;null!==x.template&&(e[""]=E)}null!==x.contentQueries&&(c.flags|=8);if(null!==x.hostBindings||null!==x.hostAttrs||0!==x.hostVars)c.flags|=128;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;f=c.attrs;h=[];q=k=null;for(u=c.directiveStart;u<b;u++){x=a[u];E=x.inputs;if(null===f||4===c.type&&"ng-template"!==c.value)I=null;else{I=null;for(var N=0;N<f.length;){var L=f[N];if(0===L)N+=4;else{if(5!==L){if("number"===typeof L)break;E.hasOwnProperty(L)&&(null===I&&(I=[]),I.push(L,E[L],f[N+1]))}N+=2}}}h.push(I);k=oea(E,u,k);q=oea(x.outputs,u,q)}null!==k&&(k.hasOwnProperty("class")&&(c.flags|=16),k.hasOwnProperty("style")&&(c.flags|=32));c.initialInputs=h;c.inputs=k;c.outputs=q}if(e&&d)for(a=
c.localNames=[],b=0;b<d.length;b+=2){f=e[d[b+1]];if(null==f)throw new pc(-301,!1);a.push(d[b],f)}c.mergedAttrs=$c(c.mergedAttrs,c.attrs)},tea=function(a,b,c,d,e){if(e=e.hostBindings){var f=a.hostBindingOpCodes;null===f&&(f=a.hostBindingOpCodes=[]);a=~b.index;a:{for(b=f.length;0<b;){var h=f[--b];if("number"===typeof h&&0>h){b=h;break a}}b=0}b!=a&&f.push(a);f.push(c,d,e)}},qea=function(a,b){b.flags|=2;(a.components||(a.components=[])).push(b.index)},rea=function(a,b,c,d,e){a.data[d]=e;var f=e.factory||
(e.factory=Ic(e.type));f=new kd(f,null!==e.template);a.blueprint[d]=f;c[d]=f;tea(a,b,d,fea(a,c,e.hostVars,$d),e)},be=function(a,b,c,d,e,f){var h=Lc(a,b);b=b[11];a=a.value;null==d?b.listen?b.removeAttribute(h,c,f):h.removeAttribute(c):(d=null==e?oc(d):e(d,a||"",c),b.listen?b.setAttribute(h,c,d,f):f?h.setAttributeNS(f,c,d):h.setAttribute(c,d))},hea=function(a){for(var b=Fd(a[13]);null!==b;b=Fd(b[4]))for(var c=10;c<b.length;c++){var d=b[c];if(d[2]&512){var e=d[1];Yd(e,d,e.template,d[8])}else 0<d[5]&&
hea(d)}b=a[1].components;if(null!==b)for(c=0;c<b.length;c++)d=Mc(b[c],a),64===(d[2]&64)&&0<d[5]&&hea(d)},Zd=function(a,b){a[13]?a[14][4]=b:a[13]=b;return a[14]=b},uea=function(a){for(;a;){a[2]|=32;var b=tda(a);if(0!==(a[2]&256)&&!b)break;a=b}},vea=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]},wea=function(a,b){(a=(a=a[9])?a.get(ce,null):null)&&a.handleError(b)},pea=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}},xea=function(a,b){var c=Kc(a[Oc.selectedIndex]);a=a[11];a.listen?a.setValue(c,b):c.textContent=b},de=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=Wba(e,k);else if(2==f){var q=b[++h];d=Wba(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},yea=function(){Wc(y()[1],
Pc())},ee=function(a,b,c,d,e){for(e=void 0===e?!1:e;null!==c;){var f=b[c.index];null!==f&&d.push(Kc(f));if(Gc(f))for(var h=10;h<f.length;h++){var k=f[h],q=k[1].firstChild;null!==q&&ee(k[1],k,q,d)}f=c.type;if(f&8)ee(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,v(f)):(h=tda(b[16]),ee(h[1],h,f,d,!0)));c=e?c.projectionNext:c.next}return d},zea=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&
b.push({propName:a[c],templateName:c});return b},Aea=function(a,b,c){return(new fe(a,void 0===b?null:b,void 0===c?null:c)).injector},ge=function(a){return!!a&&"function"===typeof a.then},Bea=function(a){return!!a&&"function"===typeof a.subscribe},Cea=function(){},Eea=function(){return Dea()+Dea()+Dea()},Dea=function(){return String.fromCharCode(97+Math.floor(25*Math.random()))},he=function(a){var b=a.toLowerCase().replace(/_/g,"-"),c=Fea(b);if(c)return c;b=b.split("-")[0];if(c=Fea(b))return c;if("en"===
b)return Gea;throw Error("va`"+a);},Fea=function(a){a in Hea||(Hea[a]=Cd.ng&&Cd.ng.common&&Cd.ng.common.locales&&Cd.ng.common.locales[a]);return Hea[a]},ie=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 pc(903,"");e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Iea(a.inputs);f.declaredInputs=Iea(a.declaredInputs);f.outputs=Iea(a.outputs);(f=e.hostBindings)&&Jea(a,f);f=e.viewQuery;
var h=e.contentQueries;f&&Kea(a,f);h&&Lea(a,h);Vba(a.inputs,e.inputs);Vba(a.declaredInputs,e.declaredInputs);Vba(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===ie&&(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=$c(e.hostAttrs,b=$c(b,e.hostAttrs))},Iea=function(a){return a===Dc?{}:a===
zc?[]:a},Kea=function(a,b){var c=a.viewQuery;c?a.viewQuery=function(d,e){b(d,e);c(d,e)}:a.viewQuery=b},Lea=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},Jea=function(a,b){var c=a.hostBindings;c?a.hostBindings=function(d,e){b(d,e);c(d,e)}:a.hostBindings=b},ke=function(){if(!je){var a=Cd.Symbol;if(a&&a.iterator)je=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&&(je=c)}}}return je},Nea=function(a){return Mea(a)?Array.isArray(a)||!(a instanceof Map)&&ke()in a:!1},Oea=function(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(a=a[ke()]();!(c=a.next()).done;)b(c.value)},Mea=function(a){return null!==a&&("function"===typeof a||"object"===typeof a)},le=function(a,b,c){return a[b]=c},me=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},ne=function(a,b,c,d){c=me(a,b,c);return me(a,b+1,
d)||c},Pea=function(a,b,c,d,e){c=ne(a,b,c,d);return me(a,b+2,e)||c},oe=function(a,b,c,d){var e=y(),f=Oc.bindingIndex++;me(e,f,b)&&(f=Tc(),be(f,e,a,b,c,d));return oe},pe=function(a,b,c,d){return me(a,Oc.bindingIndex++,c)?b+oc(c)+d:$d},Qea=function(a,b,c,d,e,f){a=ne(a,Oc.bindingIndex,c,e);Sc(2);return a?b+oc(c)+d+oc(e)+f:$d},qe=function(a,b,c,d,e,f){var h=y();b=pe(h,b,c,d);b!==$d&&(c=Tc(),be(c,h,a,b,e,f));return qe},re=function(a,b,c,d,e,f,h,k){var q=y();b=Qea(q,b,c,d,e,f);b!==$d&&(c=Tc(),be(c,q,a,
b,h,k));return re},Rea=function(a,b,c,d,e,f,h,k,q,u){var x=y(),E=Pea(x,Oc.bindingIndex,c,e,h);Sc(3);b=E?b+oc(c)+d+oc(e)+f+oc(h)+k:$d;b!==$d&&(c=Tc(),be(c,x,a,b,q,u));return Rea},D=function(a,b,c){var d=y(),e=Oc.bindingIndex++;if(me(d,e,b)){e=Oc.tView;var f=Tc();ae(e,f,d,a,b,d[11],c,!1)}return D},Sea=function(a,b,c,d,e){e=e?"class":"style";pea(a,c,b.inputs[e],e,d)},Tea=function(a,b,c,d){for(var e=a[c+1],f=null===b,h=d?e>>17&32767:(e&131068)>>2,k=!1;0!==h&&(!1===k||f);){var q=a[h+1],u=a[h],x=b;if(null===
u||null==x||(Array.isArray(u)?u[1]:u)===x||Array.isArray(u)&&"string"===typeof x&&0<=pd(u,x))k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},Yea=function(a,b){var c=Uea;if(c===b)return-1;for(b=Vea=b;b<c&&32<a.charCodeAt(b);)b++;b=Wea=b;return Xea(a,b,c)},Xea=function(a,b,c){for(;b<c&&32>=a.charCodeAt(b);)b++;return b},se=function(a,b,c){Zea(a,b,c,!1);return se},te=function(a,b){Zea(a,b,null,!0);return te},Zea=function(a,b,c,d){var e=y(),f=Oc.tView,h=Sc(2);f.firstUpdatePass&&
$ea(f,a,h,d);if(b!==$d&&me(e,h,b)){var k=f.data[Oc.selectedIndex],q=e[11];null!=b&&("string"===typeof c?b+=c:"object"===typeof b&&(b=hc(Md(b))));afa(f,k,e,q,a,e[h+1]=b,d,h)}},we=function(a){var b=Oc.tView,c=Sc(2);b.firstUpdatePass&&$ea(b,null,c,!0);var d=y();if(a!==$d&&me(d,c,a)){var e=b.data[Oc.selectedIndex];if(0===(e.flags&16)||c>=b.expandoStartIndex){var f=d[11],h=d[c+1];if(null==a||""===a)var k=zc;else if(k=[],a=Md(a),Array.isArray(a))for(var q=0;q<a.length;q++)qd(k,a[q],!0);else if("object"===
typeof a)for(q in a)a.hasOwnProperty(q)&&qd(k,q,a[q]);else if("string"===typeof a)for(Wea=Vea=0,Uea=a.length,q=Yea(a,Xea(a,0,Uea));0<=q;q=Yea(a,q))qd(k,a.substring(Vea,Wea),!0);k=d[c+1]=k;h===$d&&(h=zc);q=a=0;for(var u=0<h.length?h[0]:null,x=0<k.length?k[0]:null;null!==u||null!==x;){var E=a<h.length?h[a+1]:void 0,I=q<k.length?k[q+1]:void 0,N=null,L=void 0;u===x?(a+=2,q+=2,E!==I&&(N=x,L=I)):null===x||null!==u&&u<x?(a+=2,N=u):(q+=2,N=x,L=I);null!==N&&afa(b,e,d,f,N,L,!0,c);u=a<h.length?h[a]:null;x=q<
k.length?k[q]:null}}else c=e.classesWithoutHost,null!==c&&(a=Wba(c,a?a:"")),Sea(b,e,d,a,!0)}},$ea=function(a,b,c,d){var e=a.data;if(null===e[c+1]){var f=e[Oc.selectedIndex];a=c>=a.expandoStartIndex;0!==(f.flags&(d?16:32))&&null===b&&!a&&(b=!1);var h=zca(e),k=d?f.residualClasses:f.residualStyles;if(null===h)0===(d?f.classBindings:f.styleBindings)&&(b=bfa(null,e,f,b,d),b=xe(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(-1===q||e[q]!==h)if(b=bfa(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=bfa(null,e,f,h[1],d),h=xe(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=xe(k,e[q].hostAttrs,d);k=xe(k,f.attrs,d)}}void 0!==k&&(d?f.residualClasses=k:f.residualStyles=k);q=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=q;var u=!1;if(Array.isArray(q)){if(h=q[1],null===h||0<pd(q,h))u=!0}else h=q;a?0!==k?(a=e[b+
1]>>17&32767,e[c+1]=a<<17|b<<2,0!==a&&(e[a+1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,0!==b&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,0===b?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);u&&(e[c+1]=e[c+1]|2);Tea(e,h,c,!0);Tea(e,h,c,!1);a=d?f.residualClasses:f.residualStyles;null!=a&&"string"==typeof h&&0<=pd(a,h)&&(e[c+1]=e[c+1]|1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},bfa=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=xe(d,k.hostAttrs,e);if(k===a)break;h++}null!==a&&(c.directiveStylingLast=h);return d},xe=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]),qd(a,h,c?!0:b[++f]))}return void 0===a?null:a},afa=function(a,b,c,d,e,f,h,k){if(b.type&3){a=a.data;var q=a[k+1];if(void 0===(1===(q&1)?cfa(a,b,c,e,(q&131068)>>2,h):void 0))if(void 0!==f||2==(q&2)&&(f=cfa(a,null,c,e,k,h)),b=Kc(c[Oc.selectedIndex]),
c=!!d.listen,h)f?c?d.addClass(b,e):b.classList.add(e):c?d.removeClass(b,e):b.classList.remove(e);else if(h=-1===e.indexOf("-")?void 0:2,null==f)c?d.removeStyle(b,e,h):b.style.removeProperty(e);else{if(k="string"===typeof f?f.endsWith("!important"):!1)f=f.slice(0,-10),h|=1;c?d.setStyle(b,e,f,h):b.style.setProperty(e,f,k?"important":"")}}},cfa=function(a,b,c,d,e,f){for(var h=null===b,k=void 0;0<e;){var q=a[e],u=Array.isArray(q),x=u?q[1]:q,E=null===x,I=c[e+1];I===$d&&(I=E?zc:void 0);x=E?Vca(I,d):x===
d?I:void 0;u&&void 0===x&&(x=Vca(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=Vca(a,d)));return k},ye=function(a,b,c){a=pe(y(),a,b,c);we(a)},F=function(a,b,c,d){var e=y(),f=Oc.tView,h=22+a;a=e[11];var k=e[h]=wda(a,b,Oc.currentNamespace);if(f.firstCreatePass){var q=f.consts;c=Nc(q,c);b=Wd(f,h,2,b,c);sea(f,e,b,Nc(q,d));null!==b.attrs&&de(b,b.attrs,!1);null!==b.mergedAttrs&&de(b,b.mergedAttrs,!0);null!==f.queries&&
f.queries.elementStart(f,b)}else b=f.data[h];Qc(b,!0);q=b.mergedAttrs;null!==q&&Zc(a,k,q);q=b.classes;null!==q&&Eda(a,k,q);q=b.styles;null!==q&&(a.listen?a.setAttribute(k,"style",q):k.style.cssText=q);64!==(b.flags&64)&&Jd(f,e,k,b);0===Oc.elementDepthCount&&yd(k,e);Oc.elementDepthCount++;1===(b.flags&1)&&(kea(f,e,b),iea(f,b,e));null!==d&&lea(e,b);return F},G=function(){var a=Pc();Oc.isParent?Oc.isParent=!1:(a=a.parent,Qc(a,!1));var b=a;Oc.elementDepthCount--;var c=Oc.tView;c.firstCreatePass&&(Wc(c,
a),0!==(a.flags&8)&&c.queries.elementEnd(a));null!=b.classesWithoutHost&&0!==(b.flags&16)&&Sea(c,b,y(),b.classesWithoutHost,!0);null!=b.stylesWithoutHost&&0!==(b.flags&32)&&Sea(c,b,y(),b.stylesWithoutHost,!1);return G},H=function(a,b,c,d){F(a,b,c,d);G();return H},ze=function(a,b,c){var d=y(),e=Oc.tView;a+=22;if(e.firstCreatePass){var f=e.consts;var h=Nc(f,b);b=Wd(e,a,8,"ng-container",h);null!==h&&de(b,h,!0);f=Nc(f,c);sea(e,d,b,f);null!==e.queries&&e.queries.elementStart(e,b);f=b}else f=e.data[a];
Qc(f,!0);a=d[a]=d[11].createComment("");Jd(e,d,a,f);yd(a,d);1===(f.flags&1)&&(kea(e,d,f),iea(e,f,d));null!=c&&lea(d,f);return ze},Ae=function(){var a=Pc(),b=Oc.tView;Oc.isParent?Oc.isParent=!1:(a=a.parent,Qc(a,!1));b.firstCreatePass&&(Wc(b,a),0!==(a.flags&8)&&b.queries.elementEnd(a));return Ae},Be=function(a,b,c){ze(a,b,c);Ae();return Be},Ce=function(a,b,c){var d=y(),e=Oc.bindingIndex++;if(me(d,e,b)){e=Oc.tView;var f=Tc();ae(e,f,d,a,b,d[11],c,!0)}return Ce},De=function(a,b,c){var d=y(),e=Oc.bindingIndex++;
if(me(d,e,b)){e=Oc.tView;var f=Tc(),h=vea(zca(e.data),f,d);ae(e,f,d,a,b,h,c,!0)}return De},J=function(a,b,c,d){var e=y();dfa(Oc.tView,e,e[11],Pc(),a,b,!!c,d);return J},efa=function(a,b){var c=Pc(),d=y(),e=Oc.tView,f=vea(zca(e.data),c,d);dfa(e,d,f,c,a,b,!1);return efa},ffa=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},dfa=function(a,b,c,d,e,f,h,k){var q=1===
(d.flags&1),u=a.firstCreatePass&&(a.cleanup||(a.cleanup=[])),x=b[7]||(b[7]=[]),E=!0;if(d.type&3||k){var I=Lc(d,b),N=k?k(I):I;I=x.length;var L=k?function(Y){return k(Kc(Y[d.index]))}:d.index;c.listen?(h=null,!k&&q&&(h=ffa(a,b,e,d.index)),null!==h?((h.__ngLastListenerFn__||h).__ngNextListenerFn__=f,h.__ngLastListenerFn__=f,E=!1):(f=gfa(d,b,f,!1),a=c.listen(N,e,f),x.push(f,a),u&&u.push(e,L,I,I+1))):(f=gfa(d,b,f,!0),N.addEventListener(e,f,h),x.push(f),u&&u.push(e,L,I,h))}else f=gfa(d,b,f,!1);a=d.outputs;
var T;if(E&&null!==a&&(T=a[e])&&(E=T.length))for(a=0;a<E;a+=2)c=b[T[a]][T[a+1]].subscribe(f),q=x.length,x.push(f,c),u&&u.push(e,d.index,q,-(q+1))},hfa=function(a,b,c){try{return!1!==b(c)}catch(d){return wea(a,d),!1}finally{}},gfa=function(a,b,c,d){return function h(f){if(f===Function)return c;var k=a.flags&2?Mc(a.index,b):b;uea(k);k=hfa(b,c,f);for(var q=h.__ngNextListenerFn__;q;)k=hfa(b,q,f)&&k,q=q.__ngNextListenerFn__;d&&!1===k&&(f.preventDefault(),f.returnValue=!1);return k}},K=function(a){var b=
Oc;a=void 0===a?1:a;for(var c=Oc.contextLView;0<a;)c=c[15],a--;return(b.contextLView=c)[8]},Ee=function(a){var b=y()[16][6];if(!b.projection){var c=b.projection=Uca(a?a.length:1,null),d=c.slice();for(b=b.child;null!==b;){if(a)a:{var e=b;var f=a,h=null;b:{var k=e.attrs;if(null!=k){var q=k.indexOf(5);if(0===(q&1)){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var u=f[q];if("*"===u)h=q;else{if(null===k)u=Hda(e,u,!0);else b:{var x=0;c:for(;x<u.length;x++){var E=u[x];if(k.length===E.length){for(var I=
0;I<k.length;I++)if(k[I]!==E[I])continue c;u=!0;break b}}u=!1}if(u){e=q;break a}}}e=h}else e=0;null!==e&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b);b=b.next}}},Fe=function(a,b,c){b=void 0===b?0:b;var d=y(),e=Oc.tView;a=Wd(e,22+a,16,null,c||null);null===a.projection&&(a.projection=b);Oc.isParent=!1;64!==(a.flags&64)&&(b=d[11],e=Bda(e,a.parent,d),c=a.parent||d[6],c=c.type&40?Lc(c,d):null,Dda(b,0,d,a,e,c))},He=function(a,b,c){Ge(a,"",b,"",c);return He},Ge=function(a,b,c,d,e){var f=y();b=pe(f,b,c,d);
b!==$d&&(c=Oc.tView,d=Tc(),ae(c,d,f,a,b,f[11],e,!1));return Ge},Ie=function(a,b,c,d,e,f,h){var k=y();b=Qea(k,b,c,d,e,f);b!==$d&&(c=Oc.tView,d=Tc(),ae(c,d,k,a,b,k[11],h,!1));return Ie},M=function(a){return Oc.contextLView[22+a]},O=function(a,b,c,d,e,f,h,k){var q=y(),u=Oc.tView;a+=22;if(u.firstCreatePass){var x=u.consts;e=Wd(u,a,4,e||null,Nc(x,f));sea(u,q,e,Nc(x,h));Wc(u,e);b=e.tViews=mea(2,e,b,c,d,u.directiveRegistry,u.pipeRegistry,null,u.schemas,x);null!==u.queries&&(u.queries.template(u,e),b.queries=
u.queries.embeddedTView(e));b=e}else b=u.data[a];Qc(b,!1);c=q[11].createComment("");Jd(u,q,c,b);yd(c,q);Zd(q,q[a]=[c,!0,!1,q,null,0,b,c,null,null]);1===(b.flags&1)&&kea(u,q,b);null!=h&&lea(q,b,k)},P=function(a,b){b=void 0===b?"":b;var c=y(),d=Oc.tView,e=a+22;a=d.firstCreatePass?Wd(d,e,1,b,null):d.data[e];var f=c[11];b=c[e]=f.listen?f.createText(b):f.createTextNode(b);Jd(d,c,b,a);Qc(a,!1)},Ke=function(a){Je("",a,"");return Ke},Je=function(a,b,c){var d=y();a=pe(d,a,b,c);a!==$d&&xea(d,a);return Je},
Le=function(a,b,c,d,e){var f=y();a=Qea(f,a,b,c,d,e);a!==$d&&xea(f,a);return Le},ifa=function(a,b,c,d,e,f,h){var k=y(),q=Pea(k,Oc.bindingIndex,b,d,f);Sc(3);a=q?a+oc(b)+c+oc(d)+e+oc(f)+h:$d;a!==$d&&xea(k,a);return ifa},jfa=function(a,b,c,d,e){a=jc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)jfa(a[f],b,c,d,e);else{f=Oc.tView;var h=y(),k=rd(a)?a:jc(a.provide),q=ida(a),u=Pc(),x=u.providerIndexes&1048575,E=u.directiveStart,I=u.providerIndexes>>20;if(rd(a)||!a.multi)d=new kd(q,e),q=kfa(k,b,e?x:x+I,
E),-1===q?(q=ed(u,h),dd(q,f,k),lfa(f,a,b.length),b.push(k),u.directiveStart++,u.directiveEnd++,e&&(u.providerIndexes+=1048576),c.push(d),h.push(d)):(c[q]=d,h[q]=d);else{E=kfa(k,b,x+I,E);x=kfa(k,b,x,x+I);var N=0<=E&&c[E];I=0<=x&&c[x];e&&!I||!e&&!N?(E=ed(u,h),dd(E,f,k),E=c.length,N=new kd(e?mfa:nfa,e),N.multi=[],N.index=E,N.componentProviders=0,d&&!e&&N.componentProviders++,N.multi.push(q),!e&&I&&(c[x].providerFactory=N),lfa(f,a,b.length,0),b.push(k),u.directiveStart++,u.directiveEnd++,e&&(u.providerIndexes+=
1048576),c.push(N),h.push(N)):(b=c[e?x:E],!e&&d&&b.componentProviders++,b=b.multi.push(q)-1,lfa(f,a,-1<E?E:x,b));!e&&d&&I&&c[x].componentProviders++}}},lfa=function(a,b,c,d){var e=rd(b),f=!!b.useClass;if(e||f)if(f=(f?jc(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)},kfa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},nfa=function(){return ofa(this.multi,[])},mfa=function(a,b,
c,d){b=this.multi;if(this.providerFactory){var e=this.providerFactory.componentProviders;d=id(c,c[1],this.providerFactory.index,d);c=d.slice(0,e);ofa(b,c);for(b=e;b<d.length;b++)c.push(d[b])}else c=[],ofa(b,c);return c},ofa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Me=function(a){var b=void 0===b?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=Oc.tView;f.firstCreatePass&&(d=null!==d.template,jfa(b,f.data,f.blueprint,d,!0),jfa(e,f.data,f.blueprint,
d,!1))}}},Ne=function(a,b){a=Rc()+a;var c=y();return c[a]===$d?le(c,a,b()):c[a]},Oe=function(a,b,c){return pfa(y(),Rc(),a,b,c)},Pe=function(a,b,c,d){return qfa(y(),Rc(),a,b,c,d)},Qe=function(a,b,c,d){return rfa(y(),Rc(),2,a,b,c,d)},tfa=function(a,b,c,d,e,f){var h=sfa,k=Rc()+8,q=y();var u=ne(q,k,a,b);u=ne(q,k+2,c,d)||u;return ne(q,k+4,e,f)||u?le(q,k+6,h(a,b,c,d,e,f)):q[k+6]},Re=function(a,b){a=a[b];return a===$d?void 0:a},pfa=function(a,b,c,d,e,f){b+=c;return me(a,b,e)?le(a,b+1,f?d.call(f,e):d(e)):
Re(a,b+1)},qfa=function(a,b,c,d,e,f,h){b+=c;return ne(a,b,e,f)?le(a,b+2,h?d.call(h,e,f):d(e,f)):Re(a,b+2)},rfa=function(a,b,c,d,e,f,h,k){b+=c;return Pea(a,b,e,f,h)?le(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):Re(a,b+3)},Q=function(a,b){var c=Oc.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=
Ic(b.type));d=rc(C);try{var h=bd(!1),k=b();bd(h);var q=y();a>=c.data.length&&(c.data[a]=null,c.blueprint[a]=null);q[a]=k}finally{rc(d)}},R=function(a,b,c){a+=22;var d=y(),e=d[a];return d[1].data[a].pure?pfa(d,Rc(),b,e.transform,c,e):e.transform(c)},Se=function(a,b,c,d){a+=22;var e=y(),f=e[a];return e[1].data[a].pure?qfa(e,Rc(),b,f.transform,c,d,f):f.transform(c,d)},Te=function(a){setTimeout(function(){throw a;},0)},Ue=function(a){return"function"===typeof a},Ve=function(a){return null!==a&&"object"===
typeof a},ufa=function(a){return a instanceof We||a&&"closed"in a&&"function"===typeof a.remove&&"function"===typeof a.add&&"function"===typeof a.unsubscribe},vfa=function(a){return a.reduce(function(b,c){return b.concat(c instanceof Xe?c.errors:c)},[])},wfa=function(a){for(;a;){var b=a,c=b.destination,d=b.isStopped;if(b.closed||d)return!1;c&&c instanceof Ye?a=c:a=null}return!0},Ze=function(a){return a},xfa=function(a){return 0===a.length?Ze:1===a.length?a[0]:function(b){return a.reduce(function(c,
d){return d(c)},b)}},yfa=function(a){return a&&"function"===typeof a.next&&"function"===typeof a.error&&"function"===typeof a.complete},zfa=function(a){a||(a=$e.Promise||Promise);if(!a)throw Error("ya");return a},Afa=function(a){return new af(function(b){return a.schedule(function(){return b.complete()})})},Bfa=function(a,b){return new af(function(c){var d=new We,e=0;d.add(b.schedule(function(){e===a.length?c.complete():(c.next(a[e++]),c.closed||d.add(this.schedule()))}));return d})},bf=function(a,
b){return b?Bfa(a,b):new af(Cfa(a))},cf=function(a){return a&&"function"===typeof a.schedule},Dfa=function(){var a=xc.apply(0,arguments),b=a[a.length-1];return cf(b)?(a.pop(),Bfa(a,b)):bf(a)},Efa=function(a){a.subscriber.error(a.error)},df=function(a,b){if(a&&"function"===typeof a.lift)return a.lift(b);throw new TypeError("za");},ef=function(){return function(a){return df(a,new Ffa)}},S=function(a){return function(b){if("function"!==typeof a)throw new TypeError("Aa");return df(b,new Gfa(a))}},Hfa=
function(a,b,c){if(b)if(cf(b))c=b;else return function(){return Hfa(a,c).apply(null,v(xc.apply(0,arguments))).pipe(S(function(d){return ff(d)?b.apply(null,v(d)):b(d)}))};return function(){var d=xc.apply(0,arguments),e=this,f,h={context:e,subject:void 0,callbackFunc:a,scheduler:c};return new af(function(k){if(c)return c.schedule(Ifa,0,{args:d,subscriber:k,params:h});if(!f){f=new gf;var q=function(){var u=xc.apply(0,arguments);f.next(1>=u.length?u[0]:u);f.complete()};try{a.apply(e,[].concat(v(d),[q]))}catch(u){wfa(f)?
f.error(u):console.warn(u)}}return f.subscribe(k)})}},Ifa=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 gf;e=function(){var q=xc.apply(0,arguments);b.add(h.schedule(Jfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{a.apply(f,[].concat(v(c),[e]))}catch(q){k.error(q)}}this.add(k.subscribe(d))},Jfa=function(a){var b=a.subject;b.next(a.value);b.complete()},Kfa=function(a,b,c){if(b)if(cf(b))c=b;else return function(){return Kfa(a,
c).apply(null,v(xc.apply(0,arguments))).pipe(S(function(d){return ff(d)?b.apply(null,v(d)):b(d)}))};return function(){var d=xc.apply(0,arguments),e={subject:void 0,args:d,callbackFunc:a,scheduler:c,context:this};return new af(function(f){var h=e.context,k=e.subject;if(c)return c.schedule(Lfa,0,{params:e,subscriber:f,context:h});if(!k){k=e.subject=new gf;var q=function(){var u=xc.apply(0,arguments),x=u.shift();x?k.error(x):(k.next(1>=u.length?u[0]:u),k.complete())};try{a.apply(h,[].concat(v(d),[q]))}catch(u){wfa(k)?
k.error(u):console.warn(u)}}return k.subscribe(f)})}},Lfa=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 gf;c=function(){var q=xc.apply(0,arguments),u=q.shift();u?b.add(h.schedule(Mfa,0,{err:u,subject:k})):b.add(h.schedule(Nfa,0,{value:1>=q.length?q[0]:q,subject:k}))};try{e.apply(a,[].concat(v(f),[c]))}catch(q){this.add(h.schedule(Mfa,0,{err:q,subject:k}))}}this.add(k.subscribe(d))},Nfa=function(a){var b=
a.subject;b.next(a.value);b.complete()},Mfa=function(a){a.subject.error(a.err)},Ofa=function(a){return!!a&&"function"!==typeof a.subscribe&&"function"===typeof a.then},Qfa=function(a){return function(b){Pfa(a,b).catch(function(c){return b.error(c)})}},Pfa=function(a,b){var c,d,e;return hf(function(f){switch(f.nextAddress){case 1:var h=a[Symbol.asyncIterator];c=void 0!==h?h.call(a):new Rfa(r(a));case 2:return jf(f,c.next(),5);case 5:d=f.yieldResult;if(d.done){f.jumpTo(4);break}e=d.value;b.next(e);
f.jumpTo(2);break;case 4:b.complete(),kf(f)}})},mf=function(a,b){if(!b.closed)return a instanceof af?a.subscribe(b):lf(a)(b)},Sfa=function(a,b){if(!a)throw Error("Da");return new af(function(c){var d=new We;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})},Tfa=function(a,b){if(!a)throw Error("Da");return new af(function(c){var d=new We,e;d.add(function(){e&&
"function"===typeof e.return&&e.return()});d.add(b.schedule(function(){e=a[nf]();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})},Ufa=function(a,b){return new af(function(c){var d=new We;d.add(b.schedule(function(){var e=a[of]();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})},Vfa=function(a,b){return new af(function(c){var d=new We;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})},Xfa=function(a,b){if(null!=a){if(a&&"function"===typeof a[of])return Ufa(a,b);if(Ofa(a))return Vfa(a,b);if(Wfa(a))return Bfa(a,b);
if(a&&"function"===typeof a[nf]||"string"===typeof a)return Tfa(a,b);if(Symbol&&Symbol.asyncIterator&&"function"===typeof a[Symbol.asyncIterator])return Sfa(a,b)}throw new TypeError("Ea`"+(null!==a&&typeof a||a));},pf=function(a,b){return b?Xfa(a,b):a instanceof af?a:new af(lf(a))},qf=function(a,b){var c=void 0===c?Infinity:c;if("function"===typeof b)return function(d){return d.pipe(qf(function(e,f){return pf(a(e,f)).pipe(S(function(h,k){return b(e,h,f,k)}))},c))};"number"===typeof b&&(c=b);return function(d){return df(d,
new Yfa(a,c))}},rf=function(a){a=void 0===a?Infinity:a;return qf(Ze,a)},sf=function(){return rf(1)(Dfa.apply(null,v(xc.apply(0,arguments))))},Zfa=function(a){return new af(function(b){try{var c=a()}catch(d){b.error(d);return}return pf(c).subscribe(b)})},bga=function(a){return new af(function(b){var c=a||$fa,d=c.now(),e=function(h){var k=c.now();b.next({timestamp:a?k:h,elapsed:k-d});b.closed||(f=aga(e))};var f=aga(e);return function(){return f.unsubscribe()}})},tf=function(a,b){return new af(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$1638:0};k.$jscomp$loop$prop$i$1638<d;k={$jscomp$loop$prop$hasValue$1639:k.$jscomp$loop$prop$hasValue$1639,$jscomp$loop$prop$i$1638:k.$jscomp$loop$prop$i$1638},k.$jscomp$loop$prop$i$1638++){var q=pf(a[k.$jscomp$loop$prop$i$1638]);k.$jscomp$loop$prop$hasValue$1639=!1;c.add(q.subscribe({next:function(u){return function(x){u.$jscomp$loop$prop$hasValue$1639||(u.$jscomp$loop$prop$hasValue$1639=!0,h++);e[u.$jscomp$loop$prop$i$1638]=
x}}(k),error:function(u){return c.error(u)},complete:function(u){return function(){f++;f!==d&&u.$jscomp$loop$prop$hasValue$1639||(h===d&&c.next(b?b.reduce(function(x,E,I){return x[E]=e[I],x},{}):e),c.complete())}}(k)}))}})},cga=function(a,b,c,d){Ue(c)&&(d=c,c=void 0);return d?cga(a,b,c).pipe(S(function(e){return ff(e)?d.apply(null,v(e)):d(e)})):new af(function(e){dga(a,b,function(f){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):e.next(f)},e,c)})},dga=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++)dga(a[h],b,c,d,e);else throw new TypeError("Fa");d.add(f)},
ega=function(a,b,c){return c?ega(a,b).pipe(S(function(d){return ff(d)?c.apply(null,v(d)):c(d)})):new af(function(d){var e=function(){var h=xc.apply(0,arguments);return d.next(1===h.length?h[0]:h)};try{var f=a(e)}catch(h){d.error(h);return}if(Ue(b))return function(){return b(e,f)}})},fga=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)}},gga=function(a){return!ff(a)&&0<=a-parseFloat(a)+1},hga=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)},uf=function(){},iga=function(){var a=xc.apply(0,arguments);if(0===a.length)return vf;var b=r(a),c=b.next().value,d=wf(b);return 1===a.length&&ff(c)?iga.apply(null,v(c)):new af(function(e){var f=
function(){return e.add(iga.apply(null,v(d)).subscribe(e))};return pf(c).subscribe({next:function(h){e.next(h)},error:f,complete:f})})},jga=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()},xf=function(a,b){return function(c){return df(c,new kga(a,b))}},lga=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}
c.pred=a;c.thisArg=b;return c},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&&(cf(b)?c=b:d=b);cf(c)||(c=yf);return new af(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)}},zf=function(a){var b;return function(c){var d=void 0,e=void 0,f=null,h;b=null!=(h=b)?h:yf;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||yf;var q;f=null!=(q=a.meta)?q:null}var u;e=null!=(u=e)?u:qga;if(null==k&&null==d)throw new TypeError("Ha");return df(c,new rga(k,d,e,b,f))}},qga=function(a){throw new sga(a);},uga=function(a){return a in tga?(delete tga[a],!0):!1},vga=function(a){return function(b){setTimeout(a,
void 0,b)}},wga=function(){return this._results[ke()]()},xga=function(){return Af(Pc(),y())},Af=function(a,b){return a.type&4?new Bf(b,a,xd(a,b)):null},zga=function(){return yga(Pc(),y())},Aga=function(a){return a[8]||(a[8]=[])},yga=function(a,b){var c=b[a.index];if(!Gc(c)){if(a.type&8)var d=Kc(c);else{var e=b[11];d=e.createComment("");var f=Lc(a,b),h=vda(e,f);Gd(e,h,d,e.listen?e.nextSibling(f):f.nextSibling,!1)}b[a.index]=c=[c,!0,!1,b,null,0,a,d,null,null];Zd(b,c)}return new Cf(c,a,b)},Bga=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,u=q.push,x=b,E=a[k],I=e[h+1];k=c.metadata.read;-1===I?(k=E,x=k.type&11?xd(k,x):k.type&4?Af(k,x):null):-2===I?x=k===wd?xd(E,x):k===Df?Af(E,x):k===Ef?yga(E,x):void 0:x=id(x,x[1],I,E);u.call(q,x)}}d.matches=f}return d.matches},Cga=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(null!==f)for(a=Bga(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]&&Cga(q[1],q,e,d)}if(null!==h[9])for(h=h[9],k=0;k<h.length;k++)q=h[k],Cga(q[1],q,e,d)}}return d},Gf=function(a){var b=y(),c=Oc.tView,d=Oc.currentQueryIndex;Oc.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?Cga(c,b,d,[]):Bga(c,b,e,d),a.reset(b,oda),Ff(a)),!0):!1},Hf=function(a,b,c){var d=Oc.tView;d.firstCreatePass&&
(Dga(d,new Ega(a,b,c),-1),2===(b&2)&&(d.staticViewQueries=!0));Fga(d,b)},If=function(a,b,c,d){var e=Oc.tView;e.firstCreatePass&&(Dga(e,new Ega(b,c,d),Pc().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));Fga(e,c)},Jf=function(){return y()[19].queries[Oc.currentQueryIndex].queryList},Fga=function(a,b){var c=y();b=new Kf(4===(b&4));nea(a,c,b,b.destroy);null===c[19]&&(c[19]=new Lf);c[19].queries.push(new Mf(b))},
Dga=function(a,b,c){null===a.queries&&(a.queries=new Nf);a.queries.track(new Of(b,c))},Pf=function(a,b){return Af(a,b)},Hga=function(a){"undefined"===typeof Zone?Gga.then(function(){a&&a.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",a)},Qf=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}}},Jga=function(a){a.isCheckStableRunning||-1!==a.lastRequestAnimationFrameId||(a.lastRequestAnimationFrameId=a.nativeRequestAnimationFrame.call(Cd,function(){a.fakeTopEventTask||(a.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){a.lastRequestAnimationFrameId=-1;Iga(a);a.isCheckStableRunning=!0;Qf(a);a.isCheckStableRunning=!1},void 0,function(){},function(){}));a.fakeTopEventTask.invoke()}),Iga(a))},Lga=function(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},
onInvokeTask:function(b,c,d,e,f,h){try{return Kga(a),b.invokeTask(d,e,f,h)}finally{(a.shouldCoalesceEventChangeDetection&&"eventTask"===e.type||a.shouldCoalesceRunChangeDetection)&&Jga(a),a._nesting--,Qf(a)}},onInvoke:function(b,c,d,e,f,h,k){try{return Kga(a),b.invoke(d,e,f,h,k)}finally{a.shouldCoalesceRunChangeDetection&&Jga(a),a._nesting--,Qf(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e);c===d&&("microTask"==e.change?(a._hasPendingMicrotasks=e.microTask,Iga(a),Qf(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}})},Iga=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&-1!==a.lastRequestAnimationFrameId?!0:!1},Kga=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Nga=function(a){return function(b){return df(b,new Mga(a))}},Rf=function(a,b){b=void 0===b?yf:b;return Nga(function(){return pga(a,
b)})},Pga=function(a){return function(b){return df(b,new Oga(a))}},Sf=function(a){return function(b){var c=new Qga(a);b=df(b,c);return c.caught=b}},Rga=function(){var a=xc.apply(0,arguments);return function(b){var c=sf.apply(null,[b].concat(v(a)));if(b&&"function"===typeof b.lift)b=b.lift.call(c);else throw new TypeError("za");return b}},Tga=function(a){return function(b){return df(b,new Sga(a))}},Tf=function(a,b){b=void 0===b?yf:b;return function(c){return df(c,new Uga(a,b))}},Wga=function(a){Vga(a)},
Uf=function(a){a=void 0===a?null:a;return function(b){return df(b,new Xga(a))}},Vf=function(a,b){b=void 0===b?yf:b;var c=nga(a)?+a-b.now():Math.abs(a);return function(d){return df(d,new Yga(c,b))}},Wf=function(a){return function(b){return df(b,new Zga(a))}},Xf=function(){if(isNaN(1))throw new TypeError("Ma");return function(a){return df(a,new $ga)}},cha=function(a){a=void 0===a?aha:a;return function(b){return df(b,new bha(a))}},aha=function(){return new Yf},Zf=function(a){return function(b){return df(b,
new dha(a))}},$f=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?xf(function(e,f){return a(e,f,d)}):Ze,Xf(),c?Uf(b):cha(function(){return new Yf}))}},fha=function(){return function(a){return df(a,new eha)}},hha=function(){if(isNaN(1))throw new TypeError("Ma");return function(a){return df(a,new gha)}},iha=function(a,b){var c=2<=arguments.length;return function(d){return d.pipe(a?xf(function(e,f){return a(e,f,d)}):Ze,hha(),c?Uf(b):cha(function(){return new Yf}))}},ag=function(a){return function(b){return df(b,
new jha(a))}},bg=function(a,b){var c=!1;2<=arguments.length&&(c=!0);return function(d){return df(d,new kha(a,b,c))}},mha=function(a){return function(b){var c;"function"===typeof a?c=a:c=function(){return a};var d=Object.create(b,lha);d.source=b;d.subjectFactory=c;return d}},nha=function(){var a=new cg(1,void 0,void 0);return function(b){return mha(function(){return a})(b)}},oha=function(){return new dg},eg=function(){return function(a){return ef()(mha(oha)(a))}},fg=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 df(c,pha(b))}},pha=function(a){var b=void 0===a.bufferSize?Infinity:a.bufferSize,c=void 0===a.windowTime?Infinity:a.windowTime,d=a.refCount,e=a.scheduler,f,h=0,k;return function(q){h++;if(f)var u=f.subscribe(this);else f=new cg(b,c,e),u=f.subscribe(this),k=q.subscribe({next:function(x){f.next(x)},error:function(x){var E=f;f=k=void 0;E.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&
(k=void 0);this.add(function(){h--;u.unsubscribe();d&&0===h&&k&&(k.unsubscribe(),f=k=void 0)})}},gg=function(a){return function(b){return df(b,new qha(a))}},hg=function(){var a=xc.apply(0,arguments),b=a[a.length-1];return cf(b)?(a.pop(),function(c){return sf(a,c,b)}):function(c){return sf(a,c)}},ig=function(a){return function(b){return df(b,new rha(a))}},sha=function(a){return ig(function(){return a})},jg=function(a){return function(b){return df(b,new tha(a))}},vha=function(a){var b=void 0===b?!1:
b;return function(c){return df(c,new uha(a,b))}},kg=function(a,b){return function(c){return df(c,new wha(a,b))}},zha=function(a){var b=void 0===b?xha:b;return function(c){return df(c,new yha(a,!!b.leading,!!b.trailing))}},lg=function(){var a=xc.apply(0,arguments);return function(b){var c;"function"===typeof a[a.length-1]&&(c=a.pop());return df(b,new Aha(a,c))}},Cha=function(a){(a=a.get(Bha,null))&&a.forEach(function(b){return b()})},Gha=function(a,b,c){c=void 0===c?[]:c;var d="Platform: "+b,e=new sd(d);
return function(f){f=void 0===f?[]:f;var h=Dha();if(!h||h.injector.get(Eha,!1))if(f=[].concat(v(c),v(f),[{provide:e,useValue:!0}]),a)a(f);else{f=Fha(f,d);if(mg&&!mg.get(Eha,!1))throw new pc(400,"");mg=f;f.get(ng);Cha(f)}f=Dha();if(!f)throw new pc(401,"");return f}},Fha=function(a,b){a=void 0===a?[]:a;return og({name:b,providers:[{provide:Hha,useValue:"platform"},{provide:Iha,useValue:function(){return mg=null}}].concat(v(a))})},Dha=function(){var a,b;return null!=(b=null==(a=mg)?void 0:a.get(ng))?
b:null},Jha=function(a,b){var c;"noop"===a?c=new pg:c=("zone.js"===a?void 0:a)||new qg(b);return c},Kha=function(a,b,c){try{var d=c();return ge(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;}},Lha=function(a,b){Array.isArray(b)?a=b.reduce(Lha,a):a=Object.assign({},a,b);return a},rg=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)},Mha=function(a){var b=Pc(),c=y();2===(b.flags&2)&&
16!==(a&16)?(a=Mc(b.index,c),a=new sg(a,a)):a=b.type&47?new sg(c[16],c):null;return a},Nha=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},tg=function(a){return"boolean"===typeof a?a:null!=a&&"false"!==a},Oha=function(a,b){if(b&&!b.createEmbeddedView)throw Error("Na`"+a+"`"+hc(b));},Pha=function(a,b,c){a=he(a);b=ug([a[1],a[2]],b);return ug(b,c)},Qha=function(a,b,c){a=he(a);b=ug([a[3],a[4]],b);return ug(b,c)},Rha=function(a,b,c){a=he(a);b=ug([a[5],
a[6]],b);return ug(b,c)},Sha=function(a,b){a=he(a)[7];return ug(a,b)},vg=function(a,b){a=he(a);return ug(a[10],b)},wg=function(a,b){a=he(a);return ug(a[11],b)},xg=function(a,b){a=he(a)[12];return ug(a,b)},yg=function(a,b){a=he(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},Tha=function(a){if(!a[21])throw Error("Pa`"+a[0]);},Vha=function(a){a=he(a);Tha(a);return(a[21][2]||[]).map(function(b){return"string"===typeof b?Uha(b):[Uha(b[0]),Uha(b[1])]})},
Wha=function(a,b,c){a=he(a);Tha(a);b=ug([a[21][0],a[21][1]],b)||[];return ug(b,c)||[]},ug=function(a,b){for(;-1<b;b--)if("undefined"!==typeof a[b])return a[b];throw Error("Qa");},Uha=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},zg=function(){return new pc(2100,"")},cia=function(a,b,c,d){var e=Xha(a);b=Ag(c,b)||b;a=[];for(var f;b;)if(f=Yha.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=
Zha(d,h),e=$ha(e,d));var k="";a.forEach(function(q){a:if(aia[q])var u=aia[q];else{switch(q){case "G":case "GG":case "GGG":u=Bg(3,1);break;case "GGGG":u=Bg(3,2);break;case "GGGGG":u=Bg(3,0);break;case "y":u=Cg(0,1,0,!1,!0);break;case "yy":u=Cg(0,2,0,!0,!0);break;case "yyy":u=Cg(0,3,0,!1,!0);break;case "yyyy":u=Cg(0,4,0,!1,!0);break;case "Y":u=Dg(1);break;case "YY":u=Dg(2,!0);break;case "YYY":u=Dg(3);break;case "YYYY":u=Dg(4);break;case "M":case "L":u=Cg(1,1,1);break;case "MM":case "LL":u=Cg(1,2,1);
break;case "MMM":u=Bg(2,1);break;case "MMMM":u=Bg(2,2);break;case "MMMMM":u=Bg(2,0);break;case "LLL":u=Bg(2,1,1);break;case "LLLL":u=Bg(2,2,1);break;case "LLLLL":u=Bg(2,0,1);break;case "w":u=bia(1);break;case "ww":u=bia(2);break;case "W":u=bia(1,!0);break;case "d":u=Cg(2,1);break;case "dd":u=Cg(2,2);break;case "c":case "cc":u=Cg(7,1);break;case "ccc":u=Bg(1,1,1);break;case "cccc":u=Bg(1,2,1);break;case "ccccc":u=Bg(1,0,1);break;case "cccccc":u=Bg(1,3,1);break;case "E":case "EE":case "EEE":u=Bg(1,
1);break;case "EEEE":u=Bg(1,2);break;case "EEEEE":u=Bg(1,0);break;case "EEEEEE":u=Bg(1,3);break;case "a":case "aa":case "aaa":u=Bg(0,1);break;case "aaaa":u=Bg(0,2);break;case "aaaaa":u=Bg(0,0);break;case "b":case "bb":case "bbb":u=Bg(0,1,1,!0);break;case "bbbb":u=Bg(0,2,1,!0);break;case "bbbbb":u=Bg(0,0,1,!0);break;case "B":case "BB":case "BBB":u=Bg(0,1,0,!0);break;case "BBBB":u=Bg(0,2,0,!0);break;case "BBBBB":u=Bg(0,0,0,!0);break;case "h":u=Cg(3,1,-12);break;case "hh":u=Cg(3,2,-12);break;case "H":u=
Cg(3,1);break;case "HH":u=Cg(3,2);break;case "m":u=Cg(4,1);break;case "mm":u=Cg(4,2);break;case "s":u=Cg(5,1);break;case "ss":u=Cg(5,2);break;case "S":u=Cg(6,1);break;case "SS":u=Cg(6,2);break;case "SSS":u=Cg(6,3);break;case "Z":case "ZZ":case "ZZZ":u=Eg(0);break;case "ZZZZZ":u=Eg(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":u=Eg(1);break;case "OOOO":case "ZZZZ":case "zzzz":u=Eg(2);break;default:u=null;break a}aia[q]=u}k+=u?u(e,c,h):"''"===q?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,
"'")});return k},Fg=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},Ag=function(a,b){var c=he(a)[0];Gg[c]=Gg[c]||{};if(Gg[c][b])return Gg[c][b];var d="";switch(b){case "shortDate":d=vg(a,0);break;case "mediumDate":d=vg(a,1);break;case "longDate":d=vg(a,2);break;case "fullDate":d=vg(a,3);break;case "shortTime":d=wg(a,0);break;case "mediumTime":d=wg(a,1);break;case "longTime":d=wg(a,2);break;case "fullTime":d=wg(a,3);break;case "short":d=Ag(a,"shortTime");var e=Ag(a,
"shortDate");d=Hg(xg(a,0),[d,e]);break;case "medium":d=Ag(a,"mediumTime");e=Ag(a,"mediumDate");d=Hg(xg(a,1),[d,e]);break;case "long":d=Ag(a,"longTime");e=Ag(a,"longDate");d=Hg(xg(a,2),[d,e]);break;case "full":d=Ag(a,"fullTime"),e=Ag(a,"fullDate"),d=Hg(xg(a,3),[d,e])}d&&(Gg[c][b]=d);return d},Hg=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return null!=b&&d in b?b[d]:c}));return a},Ig=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},Cg=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=dia(a,f);if(0<c||f>-c)f+=c;if(3===a)0===f&&-12===c&&(f=12);else if(6===a)return Ig(f,3).substring(0,b);h=yg(h,5);return Ig(f,b,h,d,e)}},dia=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("Ra`"+a);}},Bg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;return function(e,f){return eia(e,f,a,b,c,d)}},eia=function(a,b,c,d,e,f){switch(c){case 2:return Rha(b,e,d)[a.getMonth()];case 1:return Qha(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=Vha(b),a=Wha(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var u=r(q);q=u.next().value;u=u.next().value;var x=h>=q.hours&&k>=q.minutes,E=h<u.hours||h===u.hours&&k<u.minutes;
if(q.hours<u.hours){if(x&&E)return!0}else if(x||E)return!0}else if(q.hours===h&&q.minutes===k)return!0;return!1}),-1!==c)?a[c]:Pha(b,e,d)[12>h?0:1];case 3:return Sha(b,d)[0>=a.getFullYear()?0:1];default:throw Error("Sa`"+c);}},Eg=function(a){return function(b,c,d){b=-1*d;c=yg(c,5);var e=0<b?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(0<=b?"+":"")+Ig(e,2,c)+Ig(Math.abs(b%60),2,c);case 1:return"GMT"+(0<=b?"+":"")+Ig(e,1,c);case 2:return"GMT"+(0<=b?"+":"")+Ig(e,2,c)+":"+Ig(Math.abs(b%60),
2,c);case 3:return 0===d?"Z":(0<=b?"+":"")+Ig(e,2,c)+":"+Ig(Math.abs(b%60),2,c);default:throw Error("Ta`"+a);}}},fia=function(a){return Fg(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))},bia=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=fia(c);c=e.getFullYear();var f=Fg(c,0,1).getDay();c=Fg(c,0,1+(4>=f?4:11)-f);e=1+Math.round((e.getTime()-c.getTime())/6048E5)}return Ig(e,
a,yg(d,5))}},Dg=function(a,b){b=void 0===b?!1:b;return function(c,d){c=fia(c).getFullYear();return Ig(c,a,yg(d,5),b)}},Zha=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},$ha=function(a,b){var c=a.getTimezoneOffset();b=Zha(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Xha=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=r(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 Fg(a,c-1,void 0===b?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(gia))return hia(b)}b=new Date(a);if(!(b instanceof Date)||isNaN(b.valueOf()))throw Error("Ua`"+a);return b},hia=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},iia=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},oia=function(a,b,c,d){var e=void 0===e?!1:e;var f="",h=!1;if(isFinite(a)){h=jia(a);e&&(h=kia(h));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var q=d.match(lia);if(null===q)throw Error("Va`"+d);d=q[1];var u=q[3];q=q[5];null!=d&&(f=mia(d));null!=u&&(e=mia(u));null!=q?k=mia(q):null!=u&&e>k&&(k=e)}nia(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(yg(c,1));k.length&&(f+=yg(c,0)+k.join(""));e&&(f+=yg(c,6)+"+"+e)}else f=yg(c,9);return f=0>a&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},kia=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},jia=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}},nia=function(a,b,c){if(b>c)throw Error("Wa`"+b+"`"+c);var d=a.digits,e=
d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,h=d[f];if(0<f){d.splice(Math.max(a.integerLen,f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(5<=h)if(0>f-1){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=0!==c,u=b+a.integerLen;if(b=d.reduceRight(function(x,E,I,N){E+=x;N[I]=10>E?E:E-10;q&&(0===N[I]&&I>=u?N.pop():
q=!1);return 10<=E?1:0},0))d.unshift(b),a.integerLen++},mia=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Xa`"+a);return b},pia=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},qia=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)},Jg=function(a){return a&&"?"!==a[0]?"?"+a:a},Kg=function(a){return null==a||("string"===typeof a||
Array.isArray(a))&&0===a.length},ria=function(a){return function(b){if(Kg(b.value)||Kg(a))return null;var c=parseFloat(b.value);return!isNaN(c)&&c<a?{min:{min:a,actual:b.value}}:null}},sia=function(a){return Kg(a.value)?{required:!0}:null},tia=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}},via=function(a){if(!a)return uia;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(Kg(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},uia=function(){return null},wia=function(a){return null!=a},xia=function(a){return ge(a)?(0,U.from)(a):a},yia=function(a){var b={};a.forEach(function(c){b=null!=c?Object.assign({},b,c):b});return 0===Object.keys(b).length?null:b},zia=function(a,b){return b.map(function(c){return c(a)})},
Aia=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Bia=function(a){if(!a)return null;var b=a.filter(wia);return 0==b.length?null:function(c){return yia(zia(c,b))}},Cia=function(a){return null!=a?Bia(Aia(a)):null},Dia=function(a){if(!a)return null;var b=a.filter(wia);return 0==b.length?null:function(c){c=zia(c,b).map(xia);return(0,U.forkJoin)(c).pipe(S(yia))}},Eia=function(a){return null!=a?Dia(Aia(a)):null},Fia=function(a,b){return null===a?[b]:Array.isArray(a)?
[].concat(v(a),[b]):[a,b]},Gia=function(a,b){return[].concat(v(b.path),[a])},Lg=function(a,b){Hia(a,b);b.valueAccessor.writeValue(a.value);if(a.disabled){var c,d;null==(d=(c=b.valueAccessor).setDisabledState)||d.call(c,!0)}Iia(a,b);Jia(a,b);Kia(a,b);Lia(a,b)},Ng=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Mg(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Og=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&
c.registerOnValidatorChange(b)})},Lia=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)})}},Hia=function(a,b){var c=a._rawValidators;null!==b.validator?Mia(a,Fia(c,b.validator)):"function"===typeof c&&Mia(a,[c]);c=a._rawAsyncValidators;null!==b.asyncValidator?Nia(a,Fia(c,b.asyncValidator)):"function"===typeof c&&Nia(a,[c]);c=function(){return Pg(a)};
Og(b._rawValidators,c);Og(b._rawAsyncValidators,c)},Mg=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,Mia(a,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,Nia(a,e))))}a=function(){};Og(b._rawValidators,a);Og(b._rawAsyncValidators,a);return c},
Iia=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;"change"===a.updateOn&&Oia(a,b)})},Kia=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;"blur"===a.updateOn&&a._pendingChange&&Oia(a,b);"submit"!==a.updateOn&&Pia(a)})},Oia=function(a,b){a._pendingDirty&&Qia(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},Jia=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)})},Ria=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.isFirstChange()?!0:!Object.is(b,a.currentValue)},Sia=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)})},Tia=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===Qg?b=e:Object.getPrototypeOf(e.constructor)===Rg?c=e:d=e});return d?d:c?c:b?b:null},Uia=function(a){return(Sg(a)?a.validators:a)||null},Via=function(a){return Array.isArray(a)?Cia(a):a||null},Wia=function(a){return Array.isArray(a)?Eia(a):a||null},Sg=function(a){return null!=a&&!Array.isArray(a)&&"object"===typeof a},Xia=function(a,b){a._forEachChild(function(c,d){if(void 0===b[d])throw new pc(1002,"");})},Yia=function(a){return"object"===
typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a},$ia=function(){if(Tg)return Tg;if("object"!==typeof document||!document)return Tg=new Set(Zia);var a=document.createElement("input");return Tg=new Set(Zia.filter(function(b){a.setAttribute("type",b);return a.type===b}))},aja=function(){if(null==Ug&&"undefined"!==typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ug=!0}}))}finally{Ug=Ug||!1}return Ug},Vg=function(a){return aja()?
a:!!a.capture},bja=function(){if(null==Wg){if("object"!==typeof document||!document||"function"!==typeof Element||!Element)return Wg=!1;if("scrollBehavior"in document.documentElement.style)Wg=!0;else{var a=Element.prototype.scrollTo;Wg=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return Wg},cja=function(){if("object"!==typeof document||!document)return 0;if(null==Xg){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);Xg=0;0===a.scrollLeft&&(a.scrollLeft=1,Xg=0===a.scrollLeft?1:2);a.remove()}return Xg},Yg=function(a){if(null==dja){var b="undefined"!==typeof document?document.head:null;dja=!(!b||!b.createShadowRoot&&!b.attachShadow)}return dja&&(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Zg=function(){for(var a=
"undefined"!==typeof document&&document?document.activeElement:null;a&&a.shadowRoot;){var b=a.shadowRoot.activeElement;if(b===a)break;else a=b}return a},$g=function(a){return a.composedPath?a.composedPath()[0]:a.target},eja=function(){return"undefined"!==typeof __karma__&&!!__karma__||"undefined"!==typeof jasmine&&!!jasmine||"undefined"!==typeof jest&&!!jest||"undefined"!==typeof Mocha&&!!Mocha},fja=function(a){if(!a.hasAttribute("tabindex")||void 0===a.tabIndex)return!1;a=a.getAttribute("tabindex");
return!(!a||isNaN(parseInt(a,10)))},gja=function(a){if(!fja(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},ah=function(a){return Array.isArray(a)?a:[a]},bh=function(a){return null!=a&&"false"!==""+a},ch=function(a){return null==a?"":"string"===typeof a?a:a+"px"},dh=function(a){return a instanceof wd?a.nativeElement:a},eh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?void 0===b?0:b:Number(a)},hja=function(a){var b=void 0===b?/\s+/:b;var c=[];if(null!=
a)for(a=Array.isArray(a)?a:(""+a).split(b),a=r(a),b=a.next();!b.done;b=a.next())(b=(""+b.value).trim())&&c.push(b);return c},fh=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},hh=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},ija=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},jja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},kja=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},lja=function(a,
b){return null!==a&&b in a},mja=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},nja=function(a,b){return(b=mja(a,b))&&a[b]},ih=function(a){for(var b in a)return!1;return!0},oja=function(a){for(var b in a)delete a[b]},jh=function(a,b){b in a&&delete a[b]},pja=function(a,b,c){if(null!==a&&b in a)throw Error("ab`"+b);a[b]=c},qja=function(a,b){return null!==a&&b in a?a[b]:void 0},kh=function(a){var b={},c;for(c in a)b[c]=a[c];return b},sja=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<rja.length;f++)c=rja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},tja=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return tja.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c},Aja=function(a){if(a instanceof lh)return'url("'+mh(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof nh)a=oh(a);else{a=String(a);var b=a.replace(uja,"$1").replace(uja,"$1").replace(vja,"url");
if(wja.test(b)){if(b=!xja.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&&yja(a)}a=b?zja(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new ca("Value does not allow [{;}], got: %s.",[a]);return a},yja=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},zja=function(a){return a.replace(vja,function(b,
c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,k,q){f=k;return q});b=(Bja(d)||ph).getTypedStringValue();return c+f+b+f+e})},rh=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 qh(a)},sh=
function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);},th=function(a){return new Cja(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},vh=function(a){var b=void 0===b?Dja:b;a:{b=void 0===b?Dja:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Cja&&d.isValid(a)){a=uh(a);break a}}a=void 0}return a||ph},xh=function(a){var b=xc.apply(1,arguments);if(0===b.length)return wh(a[0]);for(var c=[a[0]],d=0;d<b.length;d++)c.push(encodeURIComponent(b[d])),c.push(a[d+1]);return wh(c.join(""))},
Eja=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(Fja,a),c.push(e))}return c},Gja=function(a){return function(b){if("__ngUnwrap__"===b)return a;!1===a(b)&&(b.preventDefault(),b.returnValue=!1)}},Jja=function(a){var b=a.key;if(null==b){b=a.keyIdentifier;if(null==b)return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),3===a.location&&Hja.hasOwnProperty(b)&&(b=Hja[b]))}return Ija[b]||
b},Mja=function(a,b){var c=[];"string"==typeof a?a.split(/\s*,\s*/).forEach(function(d){a:{if(":"==d[0]&&(d=Kja(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 pc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(Lja(d,e));"<"!=f[0]||"*"==d&&"*"==e||c.push(Lja(e,d));d=void 0}}return d}):c.push(a);return c},Kja=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 pc(3016,!1)),"* => *"}},Lja=function(a,b){var c=Ah.has(a)||Bh.has(a),d=Ah.has(b)||Bh.has(b);return function(e,f){var h="*"==a||a==e,k="*"==b||b==f;!h&&c&&"boolean"===typeof e&&(h=e?Ah.has(a):Bh.has(a));!k&&d&&"boolean"===typeof f&&(k=f?Ah.has(b):Bh.has(b));return h&&k}},Ch=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Dh=function(a,b){return{type:4,
styles:void 0===b?null:b,timings:a}},Eh=function(a){return{type:6,styles:a,offset:null}},Fh=function(a,b){return{type:0,name:a,styles:b,options:void 0}},Gh=function(a,b,c){return{type:1,expr:a,animation:b,options:void 0===c?null:c}},Hh=function(){return{type:9,options:null}},Ih=function(a,b){var c={optional:!0};return{type:11,selector:a,animation:b,options:void 0===c?null:c}},Nja=function(){return"undefined"!==typeof process&&"[object process]"==={}.toString.call(process)},Kh=function(a){switch(a.length){case 0:return new Jh;
case 1:return a[0];default:return new Oja(a)}},Qja=function(a,b,c){b=void 0===b?new Map:b;c=void 0===c?new Map:c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),u=q==f,x=u&&h||new Map;k.forEach(function(E,I){var N=I;if("offset"!==I)switch(N=Lh(N),E){case "!":E=b.get(I);break;case "*":E=c.get(I);break;default:E=Pja(N,E,d)}x.set(N,E)});u||e.push(x);h=x;f=q});if(d.length)throw new pc(3502,!1);return e},Sja=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&
Rja(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&Rja(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&Rja(c,"destroy",a))})}},Rja=function(a,b,c){var d=c.totalTime;b=Tja(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},Tja=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}},
Mh=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},Uja=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},Wja=function(a){a=a.parentNode||a.host;return a===Vja?null:a},Nh=function(a){if("number"==typeof a)return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||2>a.length?0:Xja(parseFloat(a[1]),a[2])},Xja=function(a,b){switch(b){case "s":return 1E3*a;default:return a}},Oh=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 pc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=Xja(parseFloat(d[1]),d[2]);var h=d[3];null!=h&&(e=Xja(parseFloat(h),d[4]));(d=d[5])&&(f=d)}c||(c=!1,d=b.length,0>a&&(b.push(new pc(3100,!1)),c=!0),0>e&&(b.push(new pc(3101,!1)),c=!0),c&&b.splice(d,0,new pc(3E3,!1)));b={duration:a,delay:e,easing:f}}return b},Ph=function(a){var b=void 0===b?{}:b;Object.keys(a).forEach(function(c){b[c]=a[c]});return b},Yja=function(a){var b=new Map;
Object.keys(a).forEach(function(c){b.set(c,a[c])});return b},Zja=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return Yja(b)}):[]},Qh=function(a,b,c){b=void 0===b?new Map:b;if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.set(d,e)}}a=r(a);for(c=a.next();!c.done;c=a.next())d=r(c.value),c=d.next().value,d=d.next().value,b.set(c,d);return b},$ja=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)},Rh=function(a,b,c){a.style&&(b.forEach(function(d,e){var f=Lh(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d}),Nja()&&$ja(a))},Sh=function(a,b){a.style&&(b.forEach(function(c,d){d=Lh(d);a.style[d]=""}),Nja()&&$ja(a))},Th=function(a){return Array.isArray(a)?1==a.length?a[0]:{type:2,steps:a,options:null}:
a},bka=function(a,b,c){var d=b.params||{};a=aka(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new pc(3001,!1))})},aka=function(a){var b=[];if("string"===typeof a){for(var c;c=cka.exec(a);)b.push(c[1]);cka.lastIndex=0}return b},Uh=function(a,b,c){var d=a.toString(),e=d.replace(cka,function(f,h){h=b[h];null==h&&(c.push(new pc(3003,!1)),h="");return h.toString()});return e==d?a:e},Vh=function(a){for(var b=[],c=a.next();!c.done;)b.push(c.value),c=a.next();return b},Lh=function(a){return a.replace(dka,
function(){return xc.apply(0,arguments)[1].toUpperCase()})},eka=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$1644:c.$jscomp$loop$prop$kf$1644},f++)c.$jscomp$loop$prop$kf$1644=b[f],e.forEach(function(h){return function(k){var q=h.$jscomp$loop$prop$kf$1644,u=q.set;var x=window.getComputedStyle(a)[k];return u.call(q,k,x)}}(c))}}return b},Wh=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 pc(3004,!1);}},gka=function(a){var b=a.split(/\s*,\s*/).find(function(c){return":self"==
c})?!0:!1;b&&(a=a.replace(fka,""));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]},hka=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},ika=function(a,b){if(a.hasOwnProperty("duration"))return a;
if("number"==typeof a)return{duration:Oh(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=Oh(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},Xh=function(a){if(a){if(a=Ph(a),a.params){var b=a;var c=(c=a.params)?Ph(c):null;b.params=c}}else a={};return a},jka=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}},lka=function(a,b,c,d,e,f,h,k,q,u){f=void 0===f?new Map:f;h=void 0===h?new Map:h;u=void 0===u?[]:u;return(new kka).buildKeyframes(a,b,c,d,e,f,h,k,q,u)},mka=function(a){var b=Math.pow(10,2);return Math.round(a*b)/b},nka=function(a,b){var c=new Map,d;a.forEach(function(e){if("*"===e){d=d||b.keys();e=r(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else Qh(e,c)});return c},oka=function(a,b,c,d,e,f,h,k,q,u,x,E,I){return{type:0,
element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:u,postStyleProps:x,totalTime:E,errors:I}},pka=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},qka=function(a,b){b=Ph(b);for(var c in a)a.hasOwnProperty(c)&&null!=a[c]&&(b[c]=a[c]);return b},rka=function(a,b){return new Yh(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},
ska=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))},Zh=function(a){return a&&1===a.nodeType},tka=function(a,b){var c=a.style.display;a.style.display=null!=b?b:"none";return c},vka=function(a,b,c,d,e){var f=[];c.forEach(function(q){return f.push(tka(q))});var h=[];d.forEach(function(q,u){var x=new Map;q.forEach(function(E){var I=b.computeStyle(u,E,e);x.set(E,I);I&&0!=I.length||(u.__ng_removed=uka,h.push(u))});a.set(u,x)});var k=0;c.forEach(function(q){return tka(q,
f[k++])});return h},wka=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},$h=function(a,b){var c;null==(c=a.classList)||c.add(b)},ai=function(a,b){var c;null==(c=a.classList)||c.remove(b)},xka=function(a,b,c){Kh(c).onDone(function(){return bi(a,
b)})},zka=function(a){var b=[];yka(a,b);return b},yka=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof Oja?yka(d.players,b):b.push(d)}},Aka=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},Bka=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},Dka=function(a,b){var c=null,d=
null;Array.isArray(b)&&b.length?(c=Cka(b[0]),1<b.length&&(d=Cka(b[b.length-1]))):b instanceof Map&&(c=Cka(b));return c||d?new ci(a,c,d):null},Cka=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},Eka=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},Fka=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},di=function(a){return 0===
a.buttons||0===a.offsetX&&0===a.offsetY},ei=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)},fi=function(a){var b=xc.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},Gka=function(){return null},Hka=function(a,b){var c=gi(a);c.some(function(d){return d.trim()==b.trim()})||(c.push(b.trim()),a.setAttribute("aria-describedby",
c.join(" ")))},Ika=function(a,b){var c=gi(a).filter(function(d){return d!=b.trim()});c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby")},gi=function(a){return(a.getAttribute("aria-describedby")||"").match(/\S+/g)||[]},Jka=function(a,b){return"string"===typeof a?(b||"")+"/"+a:a},Lka=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+Kka++)},Mka=function(){return uc(hi)},Nka=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})},Oka=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})},Pka=function(a){return a&&"function"===typeof a.connect},ii=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Rka=function(a){if("number"!==typeof a&&null!=a){var b=r(a.split(Qka));a=b.next().value;return(b=b.next().value)&&"px"!==b?null:parseFloat(a)}return a||null},Ska=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)}},ki=function(a,b){var c=function(){var d=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};V(c,a);ji.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},li=function(a){var b=function(){var c=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;c._disableRipple=!1;return c};V(b,a);ji.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=bh(c)}}});return b},mi=function(a){var b=function(){var c=a.apply(this,[].concat(v(xc.apply(0,arguments))))||
this;c._disabled=!1;return c};V(b,a);ji.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=bh(c)}}});return b},Tka=function(a){var b=function(){var c=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;c.errorState=!1;return c};V(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},Uka=function(a){var b=function(){var c=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;c._isInitialized=!1;c._pendingSubscribers=[];c.initialized=new U.Observable(function(d){c._isInitialized?c._notifySubscriber(d):c._pendingSubscribers.push(d)});return c};V(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},ni=function(a){var b=void 0===b?0:b;var c=function(){var d=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;d._tabIndex=b;d.defaultTabIndex=b;return d};V(c,a);ji.Object.defineProperties(c.prototype,{tabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:this._tabIndex},set:function(d){this._tabIndex=null!=d?eh(d):this.defaultTabIndex}}});return c},Vka=function(){return uc(oi)},Wka=function(a,
b){for(var c=Array(a),d=0;d<a;d++)c[d]=b(d);return c},Xka=function(a,b){var c=void 0===c?"mat":c;a.changes.pipe(hg(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)})},Yka=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)},Zka=function(a){a&1&&H(0,"mat-pseudo-checkbox",4);a&2&&(a=K(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},$ka=function(a){a&1&&(F(0,"span",5),P(1),G());a&2&&(a=K(),B(1),Je("(",a.group.label,")"))},ala=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},bla=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):
c},cla=function(a){a&1&&(F(0,"tr",2)(1,"td",3),P(2),G()());a&2&&(a=K(),B(1),se("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),oe("colspan",a.numCols),B(1),Je(" ",a.label," "))},dla=function(a){a&1&&(F(0,"td",3),P(1),G());a&2&&(a=K(2),se("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),oe("colspan",a._firstRowOffset),B(1),Je(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},ela=function(a,b){if(a&1){var c=y();F(0,"td",7)(1,"button",8);J("click",function(f){var h=
z(c).$implicit,k=K(2);return A(k._cellClicked(h,f))})("focus",function(f){var h=z(c).$implicit,k=K(2);return A(k._emitActiveDateChange(h,f))});F(2,"div",9);P(3);G();H(4,"div",10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K().index,e=K();se("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);oe("data-mat-row",d)("data-mat-col",b);B(1);te("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);oe("aria-label",a.ariaLabel)("aria-disabled",!a.enabled||null)("aria-pressed",e._isSelected(a.compareValue))("aria-current",e.todayValue===a.compareValue?"date":null);B(1);te("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);B(1);Je(" ",a.displayValue," ")}},fla=function(a,b){a&1&&(F(0,"tr",4),O(1,dla,2,6,"td",5),O(2,ela,5,47,"td",6),G());if(a&2){a=b.$implicit;b=b.index;var c=K();B(1);D("ngIf",0===b&&c._firstRowOffset);B(1);D("ngForOf",a)}},gla=function(a,b,c){return null!==c&&b!==c&&a<c&&a===b},hla=function(a,b,c){return null!==b&&b!==c&&a>=b&&a===c},ila=function(a,b,c,d){return d&&null!==b&&null!==c&&b!==c&&a>=b&&a<=c},
jla=function(a,b){a&1&&(F(0,"th",5)(1,"span",6),P(2),G(),F(3,"span",7),P(4),G()());a&2&&(a=b.$implicit,B(2),Ke(a.long),B(2),Ke(a.narrow))},lla=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=kla(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},pi=function(a,b,c,d){return((a.getYear(b)-kla(a,c,d))%24+24)%24},kla=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},mla=function(){},nla=function(a){if(a&1){var b=y();F(0,"mat-month-view",5);J("activeDateChange",function(c){z(b);
var d=K();return A(d.activeDate=c)})("_userSelection",function(c){z(b);var d=K();return A(d._dateSelected(c))});G()}a&2&&(a=K(),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))},ola=function(a){if(a&1){var b=y();F(0,"mat-year-view",6);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("monthSelected",function(c){z(b);
var d=K();return A(d._monthSelectedInYearView(c))})("selectedChange",function(c){z(b);var d=K();return A(d._goToDateInView(c,"month"))});G()}a&2&&(a=K(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},pla=function(a){if(a&1){var b=y();F(0,"mat-multi-year-view",7);J("activeDateChange",function(c){z(b);var d=K();return A(d.activeDate=c)})("yearSelected",function(c){z(b);var d=K();return A(d._yearSelectedInMultiYearView(c))})("selectedChange",
function(c){z(b);var d=K();return A(d._goToDateInView(c,"year"))});G()}a&2&&(a=K(),D("activeDate",a.activeDate)("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},qla=function(){},rla=function(a,b){for(var c=a.length;c--;)b(a[c])},sla=function(){},tla=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},ula=
function(a){a&1&&(ze(0),F(1,"div",14),H(2,"div",15)(3,"div",16)(4,"div",17),G(),F(5,"div",18),H(6,"div",15)(7,"div",16)(8,"div",17),G(),Ae())},vla=function(a){if(a&1){var b=y();F(0,"div",19);J("cdkObserveContent",function(){z(b);var c=K();return A(qi(c))});Fe(1,1);G()}a&2&&(a=K(),D("cdkObserveContentDisabled","outline"!=a.appearance))},wla=function(a){a&1&&(ze(0),Fe(1,2),F(2,"span"),P(3),G(),Ae());a&2&&(a=K(2),B(3),Ke(a._control.placeholder))},xla=function(a){a&1&&Fe(0,3,["*ngSwitchCase","true"])},
yla=function(a){a&1&&(F(0,"span",23),P(1," *"),G())},zla=function(a){if(a&1){var b=y();F(0,"label",20,21);J("cdkObserveContent",function(){z(b);var c=K();return A(qi(c))});O(2,wla,4,1,"ng-container",12);O(3,xla,1,0,"ng-content",12);O(4,yla,2,0,"span",22);G()}a&2&&(a=K(),te("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()),oe("for",a._control.id)("aria-owns",a._control.id),B(2),D("ngSwitchCase",!1),B(1),D("ngSwitchCase",!0),B(1),D("ngIf",!a.hideRequiredMarker&&a._control.required&&!a._control.disabled))},Ala=function(a){a&1&&(F(0,"div",24),Fe(1,4),G())},Bla=function(a){a&1&&(F(0,"div",25),H(1,"span",26),G());a&2&&(a=K(),B(1),te("mat-accent","accent"==a.color)("mat-warn","warn"==a.color))},Cla=function(a){a&1&&(F(0,"div"),Fe(1,5),G());a&2&&(a=K(),D("@transitionMessages",a._subscriptAnimationState))},
Dla=function(a){a&1&&(F(0,"div",30),P(1),G());a&2&&(a=K(2),D("id",a._hintLabelId),B(1),Ke(a.hintLabel))},Ela=function(a){a&1&&(F(0,"div",27),O(1,Dla,2,2,"div",28),Fe(2,6),H(3,"div",29),Fe(4,7),G());a&2&&(a=K(),D("@transitionMessages",a._subscriptAnimationState),B(1),D("ngIf",a.hintLabel))},Fla=function(a){a&1&&H(0,"input",8);a&2&&(a=K(),D("formControl",a.timeFormControl))},Gla=function(a){a&1&&(F(0,"mat-error",9),P(1),G());a&2&&(a=K(),B(1),Ke(a.formErrorMessage))},Hla=function(a,b){return a.open(ri,
{data:b,width:"450px",height:"auto"})},Jla=function(a,b){b-=a;if(2592E6<=b)return Ila(a);if(1728E5<=b)a=Math.floor(b/864E5),b="days";else if(864E5<=b)a=1,b="day";else if(72E5<=b)a=Math.floor(b/36E5),b="hours";else if(36E5<=b)a=1,b="hour";else if(12E4<=b)a=Math.floor(b/6E4),b="minutes";else if(6E4<=b)a=1,b="minute";else{if(0<=b)return"just now";if(2592E6<=-b)return Ila(a);if(1728E5<=-b)a=-Math.floor(-b/864E5),b="days";else if(864E5<=-b)a=-1,b="day";else if(72E5<=-b)a=-Math.floor(-b/36E5),b="hours";
else if(36E5<=-b)a=-1,b="hour";else if(12E4<=-b)a=-Math.floor(-b/6E4),b="minutes";else if(6E4<=-b)a=-1,b="minute";else return"now"}b=Math.abs(a)+" "+b;0<=a?b+=" ago":0>a&&(b="in "+b);return b},Ila=function(a){a=new Date(a);return(new si("y-MM-dd")).format(a)},Kla=function(a){if(a&1){var b=y();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.action.emit())});P(1);G()}a&2&&(a=K(),B(1),Je(" ",a.actionBtnText," "))},Lla=function(a){if(a&1){var b=y();F(0,"onedev-feature-tooltip-body",1);
J("action",function(){z(b);var c=K();return A(c.action.emit())})("dismiss",function(){z(b);var c=K();c.hideFeatureTooltip();c.dismiss.emit();return A()});Fe(1);G()}a&2&&(a=K(),D("actionBtnText",a.actionBtnText)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},ti=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Mla=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Ea(d)?Mla.apply(null,d):ti(d)}},Nla=function(){function a(){e[0]=1732584193;
e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;x=u=0}function b(E){for(var I=h,N=0;64>N;N+=4)I[N/4]=E[N]<<24|E[N+1]<<16|E[N+2]<<8|E[N+3];for(N=16;80>N;N++)E=I[N-3]^I[N-8]^I[N-14]^I[N-16],I[N]=(E<<1|E>>>31)&4294967295;E=e[0];var L=e[1],T=e[2],Y=e[3],ja=e[4];for(N=0;80>N;N++){if(40>N)if(20>N){var ha=Y^L&(T^Y);var ra=1518500249}else ha=L^T^Y,ra=1859775393;else 60>N?(ha=L&T|Y&(L|T),ra=2400959708):(ha=L^T^Y,ra=3395469782);ha=((E<<5|E>>>27)&4294967295)+ha+ja+ra+I[N]&4294967295;ja=Y;Y=T;
T=(L<<30|L>>>2)&4294967295;L=E;E=ha}e[0]=e[0]+E&4294967295;e[1]=e[1]+L&4294967295;e[2]=e[2]+T&4294967295;e[3]=e[3]+Y&4294967295;e[4]=e[4]+ja&4294967295}function c(E,I){if("string"===typeof E){E=unescape(encodeURIComponent(E));for(var N=[],L=0,T=E.length;L<T;++L)N.push(E.charCodeAt(L));E=N}I||(I=E.length);N=0;if(0==u)for(;N+64<I;)b(E.slice(N,N+64)),N+=64,x+=64;for(;N<I;)if(f[u++]=E[N++],x++,64==u)for(u=0,b(f);N+64<I;)b(E.slice(N,N+64)),N+=64,x+=64}function d(){var E=[],I=8*x;56>u?c(k,56-u):c(k,64-
(u-56));for(var N=63;56<=N;N--)f[N]=I&255,I>>>=8;b(f);for(N=I=0;5>N;N++)for(var L=24;0<=L;L-=8)E[I++]=e[N]>>L&255;return E}for(var e=[],f=[],h=[],k=[128],q=1;64>q;++q)k[q]=0;var u,x;a();return{reset:a,update:c,digest:d,digestString:function(){for(var E=d(),I="",N=0;N<E.length;N++)I+="0123456789ABCDEF".charAt(Math.floor(E[N]/16))+"0123456789ABCDEF".charAt(E[N]%16);return I}}},Ola=function(a,b,c){ui(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)},Pla=function(a){this.logSource_=a;this.sessionIndex_="0";this.destinationUrl_="https://play.google.com/log?format=json&hasfast=true";this.enableServiceWorkerScope_=!1;this.networkIOSend_=Ola;this.componentId_="";this.useGetRequestForFinalFlush_=this.useSendBeaconForFinalFlush_=!1},Qla=function(a){var b=new Map;0<a.length&&a.replace(/^\?/,"").split("&").forEach(function(c){var d=c.indexOf("=");d=r(-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},Tla=function(a){return encodeURIComponent(a).replace(Rla,function(b,c){var d;return null!=(d=Sla[c])?d:b})},Ula=function(a){return""+a},Vla=function(a){return"undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer},Wla=function(a){return"undefined"!==typeof Blob&&a instanceof Blob},Xla=function(a){return"undefined"!==typeof FormData&&a instanceof FormData},Yla=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}},Zla=function(){if(void 0===vi&&(vi=null,"undefined"!==typeof window)){var a=window;void 0!==a.trustedTypes&&(vi=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return vi},$la=function(a){var b;return(null==(b=Zla())?void 0:b.createHTML(a))||a},ama=function(){var a=uc(hi),b=a?a.location:
null;return{getPathname:function(){return b?b.pathname+b.search:""}}},bma=function(a){a&1&&(Uc(),F(0,"svg",2),H(1,"polygon",3),G())},cma=function(a){if(a&1){var b=y();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d._handleKeydown(c))})("click",function(){z(b);var c=K();return A(c.closed.emit("click"))})("@transformMenu.start",function(c){z(b);var d=K();return A(d._onAnimationStart(c))})("@transformMenu.done",function(c){z(b);var d=K();return A(d._onAnimationDone(c))});F(1,"div",1);
Fe(2);G()()}a&2&&(a=K(),D("id",a.panelId)("ngClass",a._classList)("@transformMenu",a._panelAnimationState),oe("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},dma=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},ema=function(a){return{matches:"all"===a||""===a,media:a,addListener:function(){},removeListener:function(){}}},fma=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,
c){return b.concat(c)}).map(function(b){return b.trim()})},gma=function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}},hma=function(a){a&1&&H(0,"mat-icon",22)},ima=function(a){a&1&&(ze(0),F(1,"mat-icon",22)(2,"span",23),P(3),G()(),Ae());a&2&&(a=K(),B(3),Ke(a.pinnedTasksCount))},jma=function(a){a&1&&(ze(0),F(1,"mat-icon",22),H(2,"mat-icon",24),G(),Ae());a&2&&(a=K(),B(2),D("ngClass",a.subscriptIconStyleClass)("svgIcon",a.subscriptIcon))},kma=function(a){if(a&1){var b=y();F(0,"span",39);J("click",
function(c){z(b);var d=K(2);return A(d.stopPropagation(c))});P(1);Q(2,"date");G()}a&2&&(a=K(2),D("disableRipple",!0),B(1),Je(" Until ",Se(2,2,a.snoozeUntilMsInternal,"EEE, MMM d, h:mm a")," "))},lma=function(a){if(a&1){var b=y();F(0,"button",40);J("click",function(){z(b);K(2).addTaskByUrl.emit();return A()});H(1,"mat-icon",41);G()}},mma=function(a){a&1&&H(0,"mat-icon",42)},nma=function(a){a&1&&H(0,"mat-icon",43)},oma=function(a){a&1&&H(0,"mat-icon",44)},pma=function(a){a&1&&H(0,"mat-icon",45)},qma=
function(a){a&1&&H(0,"mat-icon",46)},rma=function(a){a&1&&H(0,"mat-icon",47)},sma=function(a){if(a&1){var b=y();ze(0);O(1,kma,3,5,"span",25);F(2,"div",26);O(3,lma,2,0,"button",27);F(4,"button",28);J("click",function(){z(b);var c=K();return A(wi(c,c.taskStatusInternal===c.TaskStatus.PINNED?c.TaskStatus.INCOMING:c.TaskStatus.PINNED))});O(5,mma,1,0,"mat-icon",29);O(6,nma,1,0,"mat-icon",30);G();F(7,"button",31);J("click",function(){z(b);var c=K();try{c.widgetMenuTrigger.closeMenu(),xi(c.snoozeMenuTrigger)}catch(d){}return A()});
H(8,"mat-icon",32);G();F(9,"button",33);J("click",function(){z(b);var c=K();return A(wi(c,c.taskStatusInternal===c.TaskStatus.ARCHIVED?c.TaskStatus.INCOMING:c.TaskStatus.ARCHIVED))});O(10,oma,1,0,"mat-icon",34);O(11,pma,1,0,"mat-icon",35);G();F(12,"button",36);J("click",function(){z(b);var c=K();return A(wi(c,c.taskStatusInternal===c.TaskStatus.MUTED?c.TaskStatus.INCOMING:c.TaskStatus.MUTED))});O(13,qma,1,0,"mat-icon",37);O(14,rma,1,0,"mat-icon",38);G()();Ae()}a&2&&(a=K(),B(1),D("ngIf",a.taskStatusInternal===
a.TaskStatus.SNOOZED),B(2),D("ngIf",a.shouldShowAddToG3cButton),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),oe("aria-label",a.taskStatusInternal===a.TaskStatus.PINNED?"Unpin this task":"Pin this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.PINNED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.PINNED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),oe("aria-label",a.taskStatusInternal===
a.TaskStatus.SNOOZED?"Unsnooze this task":"Snooze this task"),B(1),te("orange",a.taskStatusInternal===a.TaskStatus.SNOOZED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),oe("aria-label",a.taskStatusInternal===a.TaskStatus.ARCHIVED?"Unarchive this task":"Archive this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.ARCHIVED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.ARCHIVED),B(1),D("matTooltip",a.taskStatusInternal===a.TaskStatus.MUTED?
"Unmute this task":"Mute this task"),oe("aria-label",a.taskStatusInternal===a.TaskStatus.MUTED?"Unmute this task":"Mute this task"),B(1),D("ngIf",a.taskStatusInternal!==a.TaskStatus.MUTED),B(1),D("ngIf",a.taskStatusInternal===a.TaskStatus.MUTED))},tma=function(a){if(a&1){var b=y();F(0,"button",16);J("click",function(){z(b);var c=K();yi(c,c.laterThisWeek);return A()});P(1," Later this week ");F(2,"span",17);P(3);Q(4,"date");G()()}a&2&&(a=K(),B(3),Ke(Se(4,1,a.laterThisWeek,"EEE, MMM d, h:mm a")))},
uma=function(a){if(a&1){var b=y();F(0,"button",16);J("click",function(){z(b);var c=K();wi(c,6);return A()});H(1,"mat-icon",48);P(2,"Unsnooze now ");G()}},vma=function(a){if(a&1){var b=y();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);P(2,"G3 Console");G();P(3," Navigate to the G3 Console to see all of your tasks. ");G()}a&2&&(a=K(2),D("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS))},wma=function(a){if(a&1){var b=y();F(0,"onedev-feature-tooltip",50);J("beforeShown",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN);return A()})("dismiss",function(){z(b);var c=K(2);c.featureTooltipActioned.emit(c.G3cWidgetUserActionType.G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED);
return A()});F(1,"p",51);P(2,"G3 Console");G();P(3," Pin, snooze, archive or mute this task. ");G()}a&2&&(a=K(2),D("tooltipId",a.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS))},xma=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller"),O(1,vma,4,1,"onedev-feature-tooltip",49),O(2,wma,4,1,"onedev-feature-tooltip",49),G());a&2&&(a=K(),B(1),D("ngIf",a.skipTasksActions),B(1),D("ngIf",!a.skipTasksActions))},yma=function(a){if(a&1){var b=y();ze(0);F(1,"g3c-widget",1);J("updateTaskStatus",function(c){z(b);
var d=K();return A(d.updateTaskStatus(c))})("addTaskByUrl",function(){z(b);var c=K();return A(c.addTaskByUrl())})("widgetMenuOpen",function(){z(b);var c=K();return A(c.emitWidgetMenuOpen())})("openInG3cClicked",function(){z(b);var c=K();return A(c.emitOpenInG3cClicked())})("featureTooltipActioned",function(c){z(b);K().userActionPerformed.emit(c);return A()});Q(2,"async");Q(3,"async");G();Ae()}a&2&&(a=K(),B(1),D("task",R(2,6,a.task$))("pinnedTasksCount",R(3,8,a.pinnedTasksCount$))("menuXPosition",
a.menuXPosition)("skipTasksActions",a.skipTasksActionsInternal)("featureHighlightingEnabled",a.featureHighlightingEnabled)("customWidgetClass",a.customWidgetClass))},Ama=function(a){var b=a.xhr_?a.xhr_.getResponseHeader("Content-Type"):null;if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new zi:new zma;if(b.startsWith("application/x-protobuf")){a=a.xhr_?a.xhr_.getResponseHeader("Content-Transfer-Encoding"):null;if(!a)return new Ai;
if("base64"==a.toLowerCase())return new Bi}return null},Bma=function(a){return"nonprod"===a.environment?"https://autopushcorp-devopsconsole-pa-googleapis.corp.google.com":"https://devopsconsole-pa-googleapis.corp.google.com"},Cma=function(a,b){a.src=Ci(b).toString()},Di=function(a,b){a.src=Ci(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)},Ei=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(!Ei(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("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(!Dma.call(b,f)||!Ei(a[f],b[f]))return!1}return!0}return!1},Ema=function(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=!1,e=r(b),f=e.next();!f.done;f=e.next())if(Ei(c,f.value)){d=!0;break}d||b.push(c)}return b},Fma=function(a,b){for(var c=a.length-1;0<=c;c--)Ei(a[c],b)&&a.splice(c,1)},Gma=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},Ima=function(a){return Object.assign.apply(Object,[{}].concat(v(Hma.map(function(b){var c={};return c[b]=a[b],c}))))},Fi=function(a){if(null!==a&&void 0!==a&&-1===["boolean","function","number","string"].indexOf(typeof a))if(Array.isArray(a)){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())b.push(Fi(c.value));a=b}else if(a instanceof Date)a=new Date(a.getTime());
else if(a instanceof Map){b=new Map;a=r(a);for(c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.set(Fi(c),Fi(d))}a=b}else{b={};c=r(Object.entries(a));for(d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b[d]=Fi(e)}b.__proto__=a.__proto__;a=b}return a},Gi=function(a){return"number"===typeof a},Hi=function(a){return"string"===typeof a},Jma=function(a){return Gi(a)||Hi(a)},Kma=function(a){return Array.isArray(a)&&a.every(Hi)},Lma=function(a){return Array.isArray(a)&&
a.every(Gi)},Mma=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},Ii=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Li=function(a){if(a){if(Gi(a)){var b=new Date(a);47E3<b.getFullYear()&&(b=new Date(a/1E3));return new Ji(b)}b=a.split("/");if(3===b.length)return a=Ki(b[2]),50>a?a+=2E3:100>a&&(a+=1900),new Ji(a,Ki(b[0])-1,Ki(b[1]));if(1===b.length)return Li(Number(a))}return new Ji},
Nma=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},Oma=function(a){return!(!a||!Mi(a,"text/")&&!Mi(a,"image/")&&"application/pdf"!==a)},Ni=function(a,b){return a.map(function(c){return c[b]})},Pi=function(a,b){return a.filter(function(c){return!b.has(c)})},Pma=function(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b.has(d.value))return!1;b=r(b);for(d=b.next();!d.done;d=b.next())if(!a.has(d.value))return!1;return!0},Qi=function(a,b){return Pi(a,new Set(b))},Si=function(a,b){var c=
/[,;]/;(void 0===b||b)&&(c=/[\s,;]/);return a.split(c).map(Ri).filter(function(d){return!!d})},Ui=function(a){"duplicateOfIssueId"===a&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Ti({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):0===b?a=null:(a={customFieldId:b},a=new Ti({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},Qma=function(a){a=Vi(a);if(Wi(a))return null;var b=a.split(":");if(2!==b.length||Wi(b[1]))return null;a="asc"===b[1].toLowerCase()?
"ASCENDING":"DESCENDING";return(b=Ui(b[0]))&&a?new Xi(b,a):null},Yi=function(){if(null==Rma){var a=void 0===a?Sma.buganizerSessionJspb:a;a=Rma=new Tma(a)}else a=Rma;return a},$i=function(a){var b=void 0===b?Yi():b;var c,d;return null==(d=null==(c=b.getConfig())?void 0:Zi(c,4))?void 0:d.get(a)},Uma=function(a){a=void 0===a?Yi():a;return W(a,4)||"INTERNAL"},aj=function(){var a=void 0===a?Yi():a;return"INTERNAL"===Uma(a)},Vma=function(a){a=void 0===a?Yi():a;a=a.getUser();return null==a?!0:!!bj(a,4)},
Wma=function(){var a=void 0===a?Yi():a;return"PUBLIC"===Uma(a)},Xma=function(){var a=void 0===a?Yi():a;return a.getUser()||void 0},Yma=function(a){if(null==a)return 0;switch(cj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},Zma=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){return b.showStatusIcons},set:function(b,c){b.showStatusIcons=c}};case "rtlComponentPath":return{get:function(b){return b.rtlComponentPath},set:function(b,c){b.rtlComponentPath=c}};default:throw Error("ic`"+a);}},dj=function(){return!0===$i("optOutNewIdp")?!1:!0},hna=function(a){var b={};ej(a,1)&&(b.showFullHistory=bj(a,1));ej(a,2)&&(b.useCodefont=bj(a,2));ej(a,5)&&(b.resultsPerPage=fj(a,5));ej(a,26)&&(b.showRecentEventsFirst=
bj(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map($ma)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(ana)};ej(a,7)&&(b.bannerMessageId=W(a,7));if(c=m(a,gj,3)){var d={};ej(c,1)&&(d.reportedPriority=hj[X(c,1,0)]);ej(c,2)&&(d.assignedPriority=hj[X(c,2,0)]);ej(c,3)&&(d.verifiedPriority=hj[X(c,3,0)]);ej(c,4)&&(d.ccdPriority=hj[X(c,4,0)]);ej(c,5)&&(d.starredPriority=hj[X(c,5,0)]);ej(c,6)&&(d.excludeChangesByMe=bj(c,6));ej(c,7)&&(d.unsubscribeFromAll=
bj(c,7));ej(c,8)&&(d.enableV2Prefs=bj(c,8));b.notificationPreferences=d}if(c=m(a,ij,9))d={},ej(c,1)&&(d.showHotlists=bj(c,1)),ej(c,4)&&(d.showStatusIcons=bj(c,4)),ej(c,3)&&(d.wrapComponents=bj(c,3)),ej(c,2)&&(d.wrapTitles=bj(c,2)),ej(c,5)&&(d.rtlComponentPath=bj(c,5)),b.listViewPreferences=d;if(c=a.getLayoutPreferences())d={},ej(c,1)&&(d.leftSidebarWidth=fj(c,1)),ej(c,2)&&(d.expandIssueSlo=bj(c,2)),ej(c,3)&&(d.rightSidebarWidth=fj(c,3)),b.layoutPreferences=d;if(c=a.getDateTimePreferences())d={},ej(c,
1)&&(d.calendarFormat=W(c,1)),ej(c,2)&&(d.timeFormat=W(c,2)),c.hasTimeZone()&&(d.timeZone=c.getTimeZone()),ej(c,7)&&(d.sloEtaViewAs=bna[X(c,7,0)]),b.dateTimePreferences=d;if(c=m(a,jj,8))d={},ej(c,1)&&(d.density=cna[c.getDensity()]),b.themePreferences=d;if(c=a.getHomepagePreferences())d={},c.hasResourceType()&&(d.resourceType=dna(c.getResourceType())),c.hasResourceId()&&(d.resourceId=c.getResourceId()),b.homepagePreferences=d;if(c=m(a,kj,17))d={},ej(c,1)&&(d.enableAllHotkeys=bj(c,1,!0)),b.keyboardPreferences=
d;ej(a,16)&&(b.newFeaturesAcknowledgedMillis=lj(a,16));ej(a,18)&&(b.autoCcOnComment=bj(a,18));mj(a,20)&&(d=m(a,nj,20),c=d.getCommentDisplayOverride(),d=X(d,1,0),b.textDisplayPreferences={commentDisplayOverride:ena(c),lastPublishMode:ena(d)});mj(a,21)&&(c=m(a,oj,21),d={},ej(c,2)&&(d.announcementDismissed=bj(c,2)),ej(c,1)&&(d.enableBugScreensaver=bj(c,1)),b.bugScreensaverPreferences=d);mj(a,24)&&(c=m(a,pj,24),d={},ej(c,1)&&(d.announcementDismissedMillis=fj(c,1)),b.g3nPreferences=d);mj(a,22)&&(c=m(a,
qj,22),d={},ej(c,1)&&(d.enableNewIssueDetailsPage=bj(c,1)),ej(c,3)&&(d.newIdpOptOut=bj(c,3)),ej(c,2)&&(d.onboardingDialogAcknowledgedMillis=fj(c,2)),b.newIssueDetailsPagePreferences=d);if(c=m(a,rj,23))b.teamWarningPreferences={componentTeamWarnings:xb(c,sj,1).map(fna)};c=Zi(a,25,tj);c.size&&(b.dismissalTimestamps=gna(c));a=Zi(a,27);a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},$ma=function(a){var b={};a.hasType()&&(b.type=ina[a.getType()]);a.hasCustomFieldId()&&(b.customFieldId=
a.getCustomFieldId());return b},ana=function(a){var b={};if(ej(a,2)){a:{var c=X(a,2,1);switch(c){case 1:c="ASCENDING";break a;case 2:c="DESCENDING";break a;default:c=sh(c,"Unknown sortOrder: "+c)}}b.order=c}if(a=a.getColumn())b.column=$ma(a);return b},ena=function(a){if(0!==a)return cj[a]},dna=function(a){switch(a){case 1:return"HOTLIST";case 2:return"SAVED_SEARCH";case 3:return"BOOKMARK_GROUP";default:return sh(a,"Unknown resourceType: "+a)}},fna=function(a){var b={};a.hasComponentId()&&(b.componentId=
a.getComponentId());ej(a,2)&&(b.dismissMillis=fj(a,2));return b},gna=function(a){a=Array.from(a.entries()).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},qna=function(a){var b=new uj;null!=a.showFullHistory&&l(b,1,a.showFullHistory);null!=a.useCodefont&&l(b,2,a.useCodefont);null!=a.resultsPerPage&&l(b,5,a.resultsPerPage);if(null!=a.displayColumns){var c=jna(a.displayColumns);Gb(b,4,c)}null!=a.sortColumns&&(c=kna(a.sortColumns),Gb(b,
6,c));null!=a.bannerMessageId&&l(b,7,a.bannerMessageId);if(null!=a.notificationPreferences){c=a.notificationPreferences;var d=new gj;d=l(d,1,vj[c.reportedPriority]);d=l(d,2,vj[c.assignedPriority]);d=l(d,3,vj[c.verifiedPriority]);d=l(d,4,vj[c.ccdPriority]);d=l(d,5,vj[c.starredPriority]);d=l(d,6,c.excludeChangesByMe);d=l(d,7,c.unsubscribeFromAll);c=l(d,8,c.unsubscribeFromAll);Gb(b,3,c)}null!=a.listViewPreferences&&(c=a.listViewPreferences,d=new ij,d=l(d,1,c.showHotlists),d=l(d,2,c.wrapTitles),d=l(d,
3,c.wrapComponents),d=l(d,4,c.showStatusIcons),c=l(d,5,c.rtlComponentPath),Gb(b,9,c));null!=a.layoutPreferences&&(c=a.layoutPreferences,d=new wj,null!=c.leftSidebarWidth&&l(d,1,c.leftSidebarWidth),null!=c.expandIssueSlo&&l(d,2,c.expandIssueSlo),null!=c.rightSidebarWidth&&l(d,3,c.rightSidebarWidth),Gb(b,10,d));null!=a.dateTimePreferences&&(c=a.dateTimePreferences,d=new xj,d=l(d,1,c.calendarFormat),d=l(d,2,c.timeFormat).setTimeZone(c.timeZone),c=l(d,7,lna[c.sloEtaViewAs]),Gb(b,11,c));null!=a.themePreferences&&
(c=a.themePreferences,c=(new jj).setDensity(mna[c.density]),Gb(b,8,c));null!=a.homepagePreferences&&(c=a.homepagePreferences,d=new yj,null!=c.resourceType&&d.setResourceType(nna(c.resourceType)),null!=c.resourceId&&d.setResourceId(c.resourceId),Gb(b,13,d));null!=a.keyboardPreferences&&(c=a.keyboardPreferences,d=new kj,c=l(d,1,c.enableAllHotkeys),Gb(b,17,c));null!=a.newFeaturesAcknowledgedMillis&&l(b,16,a.newFeaturesAcknowledgedMillis);null!=a.autoCcOnComment&&l(b,18,a.autoCcOnComment);null!=a.textDisplayPreferences&&
(c=a.textDisplayPreferences,d=new nj,c.commentDisplayOverride&&d.setCommentDisplayOverride(ona(c.commentDisplayOverride)),c.lastPublishMode&&l(d,1,ona(c.lastPublishMode)),Gb(b,20,d));null!=a.bugScreensaverPreferences&&(c=a.bugScreensaverPreferences,d=new oj,null!=c.enableBugScreensaver&&l(d,1,c.enableBugScreensaver),null!=c.announcementDismissed&&l(d,2,c.announcementDismissed),Gb(b,21,d));null!=a.g3nPreferences&&(c=a.g3nPreferences,d=new pj,null!=c.announcementDismissedMillis&&l(d,1,c.announcementDismissedMillis),
Gb(b,24,d));null!=a.newIssueDetailsPagePreferences&&(c=a.newIssueDetailsPagePreferences,d=new qj,null!=c.enableNewIssueDetailsPage&&l(d,1,c.enableNewIssueDetailsPage),null!=c.newIdpOptOut&&l(d,3,c.newIdpOptOut),null!=c.onboardingDialogAcknowledgedMillis&&l(d,2,c.onboardingDialogAcknowledgedMillis),Gb(b,22,d));null!=a.teamWarningPreferences&&(c=pna(a.teamWarningPreferences),Gb(b,23,c));if(null!=a.dismissalTimestamps){c=Zi(b,25,tj);d=r(Object.entries(a.dismissalTimestamps));for(var e=d.next();!e.done;e=
d.next()){var f=r(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set,q=new tj;h=h.getTime();q.setSeconds(Math.floor(h/1E3)).setNanos(h%1E3*1E6);k.call(f,e,q)}}if(null!=a.collapsed)for(c=Zi(b,27),d=r(Object.entries(a.collapsed)),e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,c.set(e,f);null!=a.showRecentEventsFirst&&l(b,26,a.showRecentEventsFirst);return b},jna=function(a){return(new zj).setColumnList(a.column.map(function(b){return rna(b)}))},rna=function(a){var b=
new Aj,c=b.setType,d=a.type;if(!Bj.hasOwnProperty(d))throw Error("jc`"+d);b=c.call(b,sna[d]);null!=a.customFieldId&&b.setCustomFieldId(a.customFieldId);return b},kna=function(a){return(new Cj).setColumnList(a.column.map(function(b){var c=(new Dj).setColumn(rna(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=sh(b,"Unknown sortOrder: "+b)}return l(c,2,b)}))},nna=function(a){switch(a){case "HOTLIST":return 1;case "SAVED_SEARCH":return 2;case "BOOKMARK_GROUP":return 3;
default:return sh(a,"Unknown resourceType: "+a)}},ona=function(a){switch(cj[a]){case 2:return 2;case 1:return 1;case 3:return 3;default:return 0}},pna=function(a){var b=new rj;null!=a.componentTeamWarnings&&tna(b,a.componentTeamWarnings.map(function(c){var d=new sj;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&l(d,2,c.dismissMillis);return d}));return b},una=function(a){return a},Fj=function(a){return Ej(a,una)},Ej=function(a,b){var c={};return a.filter(function(d){d=String(b(d));
return c[d]?!1:c[d]=!0})},Gj=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},vna=function(a){a=void 0===a?[]:a;return a.filter(function(b){return"number"===typeof b}).filter(function(b){return 0!==b})},wna=function(a,b){if(a.length!==b.length)return!1;a=[].concat(v(a)).sort();b=[].concat(v(b)).sort();return a.every(function(c,d){return c===b[d]})},xna=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)})}},Hj=function(a){a=void 0===a?{}:a;return vna(Object.values(a)).sort(function(b,c){return b-c})},yna=function(a,b){if(a&1){var c=y();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("PRIORITY",d))});P(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Je(" ",b.constants.protoIssuePrioritiesDisplayNames.get(a)," "))},zna=function(a,b){if(a&1){var c=y();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("SEVERITY",
d))});P(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Je(" ",b.constants.protoIssueSeveritiesDisplayNames.get(a)," "))},Ana=function(a,b){if(a&1){var c=y();F(0,"button",4);J("click",function(){var d=z(c).$implicit,e=K();return A(e.quickBulkEdit("STATUS",d))});P(1);G()}a&2&&(a=b.$implicit,b=K(),B(1),Je(" ",b.constants.protoIssueStatusesDisplayNames.get(a)," "))},Bna=function(a,b){if(a&1){var c=y();F(0,"button",17);J("click",function(){var e=z(c).$implicit,f=K();return A(f.quickBulkEdit("TYPE",e))});P(1);G()}if(a&
2){a=b.$implicit;b=K();var d;D("matTooltip",null!==(d=b.constants.protoIssueTypesShortDescriptions.get(a))&&void 0!==d?d:"");B(1);Je(" ",b.constants.protoIssueTypesDisplayNames.get(a)," ")}},Cna=function(a){if(a&1){var b=y();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!0))});P(1,"Add Parent");G()}},Dna=function(a){if(a&1){var b=y();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.bulkEditIssueRelation("PARENT",!1))});P(1,"Remove Parent");
G()}},Ena=function(a){if(a&1){var b=y();F(0,"button",5);J("click",function(){z(b);var c=K(2);return A(c.exportCsvClicked.emit())});P(1,"Export issues to CSV ");G()}},Fna=function(a){if(a&1){var b=y();F(0,"button",5);J("click",function(){z(b);var c=K(2);return A(c.flagAsSpamClicked.emit())});P(1,"Flag issues as spam ");G()}},Gna=function(a){a&1&&(ze(0),F(1,"button",1)(2,"span"),P(3,"More"),G(),H(4,"b-icon",2),G(),F(5,"mat-menu",null,3),O(7,Ena,2,0,"button",4),O(8,Fna,2,0,"button",4),G(),Ae());if(a&
2){var b=M(6);a=K();B(1);D("disabled",a.isAnonymous)("matMenuTriggerFor",b);B(6);D("ngIf",a.showExportCsv);B(1);D("ngIf",a.showFlagIssuesAsSpam)}},Hna=function(a){a&1&&(ze(0),P(1," Network connection has been interrupted. "),Ae())},Ina=function(a){a&1&&P(0," Network connection has been interrupted or login credentials may have expired. ")},Lna=function(a){if(a&1){var b=y();F(0,"button",5);J("click",function(c){z(b);K(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=Bja("undefined"!=typeof"/refreshSso".href?"/refreshSso".href:"/refreshSso")||ph;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("kc");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(",");oa()&&c.navigator&&c.navigator.standalone&&f&&"_self"!=f?(d=Ij(document,"A"),e=e instanceof lh?e:Jj(e),d.href=mh(e),d.target=f,h&&(d.rel="noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),d.dispatchEvent(e)):h?(c=Jna("",c,f,q),e=mh(e),c&&(Kna&&fa(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,""===e&&(e="javascript:''"),e=qh('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
Kj(e)+'">'),(c=c.document)&&c.write&&(c.write(Lj(e)),c.close()))):(c=Jna(e,c,f,q))&&d.noopener&&(c.opener=null);return A()});P(1," Log in again ");G()}},Mna=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),O(2,Hna,2,0,"ng-container",2),O(3,Ina,1,0,"ng-template",null,3,Pf),G(),F(5,"b-callout-actions"),O(6,Lna,2,0,"button",4),G()());if(a&2){var b=M(4);a=K();D("messageType","error");B(2);D("ngIf",a.isAnonymous)("ngIfElse",b);B(4);D("ngIf",!a.isAnonymous)}},Mj=function(){return new Nna},Ona=function(a){var b=
{};a=r(Zi(a,1,Nj).entries());for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b[c]={principalType:X(d,1,0),detailedUserType:X(d,2,0)}}return b},Pna=function(a,b){return a.map(function(c){return b[c]||null})},Qna=function(a){if(a)return a;a=new Nj;l(a,1,1);l(a,2,0);return a},Rna=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("pc");
}},Sna=function(a){a&1&&(F(0,"a",1),P(1," Hiring!\n"),G())},Tna=function(a){return a instanceof Oj?a:new Oj(a,{})},Pj=function(a){a=Tna(a);return new Oj(a.char,Object.assign({},a.modifiers,{shift:!0}))},Una=function(a){a=Tna(a);return new Oj(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},Vna=function(){var a=Pj("f");a=Tna(a);return new Oj(a.char,Object.assign({},a.modifiers,{alt:!0}))},Xna=function(a){if(a instanceof Oj){var b=Wna(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(Xna).join(" "):Wna(a)},Qj=function(){return xc.apply(0,arguments)},Wna=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 sh(a)}},Yna=function(a){a=Error("qc`"+a);a.ngNavigationCancelingError=!0;return a},Zna=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}},Rj=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],!$na(a[d],b[d]))return!1;return!0},$na=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(v(a)).sort();var c=[].concat(v(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Sj=function(a,b){for(var c in a)a.hasOwnProperty(c)&&
b(a[c],c)},Tj=function(a){return Bea(a)?a:ge(a)?(0,U.from)(Promise.resolve(a)):(0,U.of)(a)},coa=function(a,b,c){return aoa[c.paths](a.root,b.root,c.matrixParams)&&boa[c.queryParams](a.queryParams,b.queryParams)&&!("exact"===c.fragment&&a.fragment!==b.fragment)},doa=function(a,b){return Rj(a,b)},eoa=function(a,b,c){if(!Uj(a.segments,b.segments)||!Vj(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!eoa(a.children[d],b.children[d],
c))return!1;return!0},foa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return $na(a[c],b[c])})},hoa=function(a,b,c){return goa(a,b,b.segments,c)},goa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Uj(a,c)&&!b.hasChildren()&&Vj(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Uj(a.segments,c)||!Vj(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!hoa(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 Uj(a.segments,e)&&Vj(a.segments,e,d)&&a.children.primary?goa(a.children.primary,b,c,d):!1},Vj=function(a,b,c){return b.every(function(d,e){return boa[c](a[e].parameters,d.parameters)})},ioa=function(a,b){return Uj(a,b)&&a.every(function(c,d){return Rj(c.parameters,b[d].parameters)})},Uj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},joa=function(a,b){var c=[];Sj(a.children,function(d,
e){"primary"===e&&(c=c.concat(b(d,e)))});Sj(a.children,function(d,e){"primary"!==e&&(c=c.concat(b(d,e)))});return c},Xj=function(a){return a.segments.map(function(b){return Wj(b.path)+koa(b.parameters)}).join("/")},Yj=function(a,b){if(!a.hasChildren())return Xj(a);if(b){b=a.children.primary?Yj(a.children.primary,!1):"";var c=[];Sj(a.children,function(d,e){"primary"!==e&&c.push(e+":"+Yj(d,!1))});return 0<c.length?b+"("+c.join("//")+")":b}b=joa(a,function(d,e){return"primary"===e?[Yj(a.children.primary,
!1)]:[e+":"+Yj(d,!1)]});return 1===Object.keys(a.children).length&&null!=a.children.primary?Xj(a)+"/"+b[0]:Xj(a)+"/("+b.join("//")+")"},loa=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},Zj=function(a){return loa(a).replace(/%3B/gi,";")},Wj=function(a){return loa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},koa=function(a){return Object.keys(a).map(function(b){return";"+Wj(b)+"="+Wj(a[b])}).join("")},
moa=function(a){var b=Object.keys(a).map(function(c){var d=a[c];return Array.isArray(d)?d.map(function(e){return Zj(c)+"="+Zj(e)}).join("&"):Zj(c)+"="+Zj(d)}).filter(function(c){return!!c});return b.length?"?"+b.join("&"):""},ak=function(a){return(a=a.match(noa))?a[0]:""},ooa=function(a){var b={};return 0<a.segments.length?new bk([],(b.primary=a,b)):a},ck=function(a){for(var b={},c=r(Object.keys(a.children)),d=c.next();!d.done;d=c.next()){d=d.value;var e=ck(a.children[d]);if(0<e.segments.length||
e.hasChildren())b[d]=e}a=new bk(a.segments,b);1===a.numberOfChildren&&a.children.primary&&(b=a.children.primary,a=new bk(a.segments.concat(b.segments),b.children));return a},dk=function(a){return"object"===typeof a&&null!=a&&!a.outlets&&!a.segmentPath},ek=function(a){return"object"===typeof a&&null!=a&&a.outlets},qoa=function(a,b,c,d,e){var f={};d&&Sj(d,function(h,k){f[k]=Array.isArray(h)?h.map(function(q){return""+q}):""+h});a=a===b?c:poa(a,b,c);a=ooa(ck(a));return new fk(a,f,e)},poa=function(a,
b,c){var d={};Sj(a.children,function(e,f){d[f]=e===b?c:poa(e,b,c)});return new bk(a.segments,d)},soa=function(a){if("string"===typeof a[0]&&1===a.length&&"/"===a[0])return new roa(!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={};Sj(e.outlets,function(k,q){h[q]="string"===typeof k?k.split("/"):k});return[].concat(v(d),[{outlets:h}])}if(e.segmentPath)return[].concat(v(d),[e.segmentPath])}return"string"!==typeof e?[].concat(v(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(v(d),[e])},[]);return new roa(c,b,a)},toa=function(a){if(ek(a[0]))return a[0].outlets;var b={};return b.primary=a,b},voa=function(a,b,c){a||(a=new bk([],{}));if(0===a.segments.length&&a.hasChildren())return gk(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(ek(q))break;q=""+q;var u=e<c.length-1?c[e+1]:null;if(0<
f&&void 0===q)break;if(q&&u&&"object"===typeof u&&void 0===u.outlets){if(q!=k.path||!Rj(u,k.parameters)){d=h;break a}e+=2}else{u={};if(q!=k.path||!Rj(u,k.parameters)){d=h;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?(b=new bk(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new bk(a.segments.slice(d.pathIndex),a.children),gk(b,0,e)):d.match&&0===e.length?new bk(a.segments,{}):d.match&&!a.hasChildren()?uoa(a,b,
c):d.match?gk(a,0,e):uoa(a,b,c)},gk=function(a,b,c){if(0===c.length)return new bk(a.segments,{});var d=toa(c),e={};Sj(d,function(f,h){"string"===typeof f&&(f=[f]);null!==f&&(e[h]=voa(a.children[h],b,f))});Sj(a.children,function(f,h){void 0===d[h]&&(e[h]=f)});return new bk(a.segments,e)},uoa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(ek(f))return a=woa(f.outlets),new bk(d,a);if(0===e&&dk(c[0]))d.push(new hk(a.segments[b].path,xoa(c[0]))),e++;else{f=ek(f)?f.outlets.primary:
""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&dk(h)?(d.push(new hk(f,xoa(h))),e+=2):(d.push(new hk(f,{})),e++)}}return new bk(d,{})},woa=function(a){var b={};Sj(a,function(c,d){"string"===typeof c&&(c=[c]);null!==c&&(b[d]=uoa(new bk([],{}),0,c))});return b},xoa=function(a){var b={};Sj(a,function(c,d){return b[d]=""+c});return b},yoa=function(a,b){if(a===b.value)return b;b=r(b.children);for(var c=b.next();!c.done;c=b.next())if(c=yoa(a,c.value))return c;return null},zoa=function(a,b){if(a===b.value)return[b];
for(var c=r(b.children),d=c.next();!d.done;d=c.next())if(d=zoa(a,d.value),d.length)return d.unshift(b),d;return[]},ik=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Aoa=function(a,b){a=new jk("",new kk(new lk([],{},{},"",{},"primary",b,null,a.root,-1,{}),[]));b=new mk(new U.BehaviorSubject([new hk("",{})]),new U.BehaviorSubject({}),new U.BehaviorSubject({}),new U.BehaviorSubject(""),new U.BehaviorSubject({}),"primary",b,a.root);b.snapshot=a.root;return new nk(new kk(b,
[]),a)},Coa=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 Boa(a.slice(c))},Boa=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:{}})},Doa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Doa(a,c)})},Eoa=function(a){var b=0<a.children.length?" { "+a.children.map(Eoa).join(", ")+" } ":"";return""+a.value+b},Foa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Rj(b.queryParams,c.queryParams)||a.queryParams.next(c.queryParams);b.fragment!==c.fragment&&a.fragment.next(c.fragment);Rj(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(!Rj(d[f],e[f])){d=!1;break a}d=!0}}d||a.url.next(c.url);Rj(b.data,c.data)||a.data.next(c.data)}else a.snapshot=a._futureSnapshot,a.data.next(a._futureSnapshot.data)},Goa=function(a,b){var c=Rj(a.params,b.params)&&ioa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Goa(a.parent,b.parent))},ok=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=Hoa(a,b,c);return new kk(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 ok(a,e)}),d;d=Ioa(b.value);b=b.children.map(function(e){return ok(a,e)});return new kk(d,b)},Hoa=function(a,b,c){return b.children.map(function(d){for(var e=r(c.children),f=e.next();!f.done;f=e.next())if(f=f.value,a.shouldReuseRoute(d.value,f.value.snapshot))return ok(a,d,f);return ok(a,d)})},Ioa=function(a){return new mk(new U.BehaviorSubject(a.url),new U.BehaviorSubject(a.params),
new U.BehaviorSubject(a.queryParams),new U.BehaviorSubject(a.fragment),new U.BehaviorSubject(a.data),a.outlet,a.component,a)},Joa=function(a,b){a.providers&&!a._injector&&(a._injector=Aea(a.providers,b,"Route: "+a.path));var c;return null!=(c=a._injector)?c:b},pk=function(a){var b=a.children&&a.children.map(pk);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||"primary"===a.outlet||(a.component=qk);return a},rk=function(a){return a.outlet||
"primary"},Koa=function(a,b){var c=a.filter(function(d){return rk(d)===b});c.push.apply(c,v(a.filter(function(d){return rk(d)!==b})));return c},Loa=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},sk=function(a){return"function"===typeof a},tk=function(a){return a instanceof
fk},vk=function(){return ig(function(a){return(0,U.combineLatest)(a.map(function(b){return b.pipe(Xf(),hg(uk))})).pipe(bg(function(b,c){var d=!1;return c.reduce(function(e,f,h){if(e!==uk)return e;f===uk&&(d=!0);if(!d){if(!1===f)return f;if(h===c.length-1||tk(f))return f}return e},b)},uk),xf(function(b){return b!==uk}),S(function(b){return tk(b)?b:!0===b}),Xf())})},wk=function(a,b,c){var d;return(null!=(d=Loa(b))?d:c).get(a)},xk=function(a,b,c,d,e){e=void 0===e?{canDeactivateChecks:[],canActivateChecks:[]}:
e;var f=ik(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),u=e;u=void 0===u?{canDeactivateChecks:[],canActivateChecks:[]}:u;var x=h.value,E=k?k.value:null,I=c?c.getContext(h.value.outlet):null;if(E&&x.routeConfig===E.routeConfig){var N=Moa(E,x,x.routeConfig.runGuardsAndResolvers);N?u.canActivateChecks.push(new Noa(q)):(x.data=E.data,x._resolvedData=E._resolvedData);x.component?xk(h,k,I?I.children:null,q,u):xk(h,k,c,q,u);N&&I&&I.outlet&&I.outlet.isActivated&&u.canDeactivateChecks.push(new yk(I.outlet.component,
E))}else E&&zk(k,I,u),u.canActivateChecks.push(new Noa(q)),x.component?xk(h,null,I?I.children:null,q,u):xk(h,null,c,q,u);delete f[h.value.outlet]});Sj(f,function(h,k){return zk(h,c.getContext(k),e)});return e},Moa=function(a,b,c){if("function"===typeof c)return c(a,b);switch(c){case "pathParamsChange":return!Uj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Uj(a.url,b.url)||!Rj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Goa(a,b)||!Rj(a.queryParams,
b.queryParams);default:return!Goa(a,b)}},zk=function(a,b,c){var d=ik(a),e=a.value;Sj(d,function(f,h){e.component?b?zk(f,b.children.getContext(h),c):zk(f,null,c):zk(f,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new yk(b.outlet.component,e)):c.canDeactivateChecks.push(new yk(null,e)):c.canDeactivateChecks.push(new yk(null,e))},Qoa=function(a,b){return qf(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,U.of)(Object.assign({},c,{guardsResult:!0})):Ooa(f,d,e,a).pipe(qf(function(k){return k&&"boolean"===typeof k?Poa(d,h,a,b):(0,U.of)(k)}),S(function(k){return Object.assign({},c,{guardsResult:k})}))})},Ooa=function(a,b,c,d){return(0,U.from)(a).pipe(qf(function(e){return Roa(e.component,e.route,c,b,d)}),$f(function(e){return!0!==e},!0))},Poa=function(a,b,c,d){return(0,U.from)(b).pipe(qf(function(e){var f=U.concat;var h=e.route.parent;null!==h&&d&&d(new Soa(h));h=
(0,U.of)(!0);var k=e.route;null!==k&&d&&d(new Ak(k));k=(0,U.of)(!0);return f.call(U,h,k,Toa(a,e.path,c),Uoa(a,e.route,c))},1),$f(function(e){return!0!==e},!0))},Uoa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||0===d.length)return(0,U.of)(!0);d=d.map(function(e){return(0,U.defer)(function(){var f=wk(e,b,c);if(f&&sk(f.canActivate))f=Tj(f.canActivate(b,a));else if(sk(f))f=Tj(f(b,a));else throw Error("Ac");return f.pipe($f())})});return(0,U.of)(d).pipe(vk())},Toa=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,U.defer)(function(){var f=e.guards.map(function(h){if((h=wk(h,e.node,c))&&sk(h.canActivateChild))h=Tj(h.canActivateChild(d,a));else if(sk(h))h=Tj(h(d,a));else throw Error("Bc");return h.pipe($f())});return(0,U.of)(f).pipe(vk())})});return(0,U.of)(b).pipe(vk())},
Roa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||0===f.length)return(0,U.of)(!0);f=f.map(function(h){if((h=wk(h,b,e))&&sk(h.canDeactivate))h=Tj(h.canDeactivate(a,b,c,d));else if(sk(h))h=Tj(h(a,b,c,d));else throw Error("Cc");return h.pipe($f())});return(0,U.of)(f).pipe(vk())},Woa=function(a,b,c,d){var e=b.canLoad;if(void 0===e||0===e.length)return(0,U.of)(!0);e=e.map(function(f){if((f=a.get(f))&&sk(f.canLoad))f=f.canLoad(b,c);else if(sk(f))f=f(b,c);else throw Error("Dc");
return Tj(f)});return(0,U.of)(e).pipe(vk(),Voa(d))},Voa=function(a){return(0,U.pipe)(kg(function(b){if(tk(b)){var c=Yna('Redirecting to "'+a.serialize(b)+'"');c.url=b;throw c;}}),S(function(b){return!0===b}))},Xoa=function(a,b,c,d){var e=b.canMatch;if(!e||0===e.length)return(0,U.of)(!0);e=e.map(function(f){f=(f=a.get(f))&&sk(f.canMatch)?f.canMatch(b,c):f(b,c);return Tj(f)});return(0,U.of)(e).pipe(vk(),Voa(d))},$oa=function(a,b,c,d,e){var f=Yoa(a,b,c);return f.matched?Xoa(d,b,c,e).pipe(S(function(h){return!0===
h?f:Object.assign({},Zoa)})):(0,U.of)(f)},Yoa=function(a,b,c){if(""===b.path)return"full"===b.pathMatch&&(a.hasChildren()||0<c.length)?Object.assign({},Zoa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||Zna)(c,a,b);if(!a)return Object.assign({},Zoa);var d={};Sj(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:{}}},Ck=function(a,b,c,d,e){e=void 0===e?"corrected":e;if(0<c.length&&apa(a,c,d)){var f=new bk(c,a.children);c={};c.primary=f;f._sourceSegment=a;f._segmentIndexShift=b.length;f=r(d);for(var h=f.next();!h.done;h=f.next())h=h.value,""===h.path&&"primary"!==rk(h)&&(e=new bk([],{}),e._sourceSegment=a,e._segmentIndexShift=b.length,c[rk(h)]=e);c=new bk(b,c);c._sourceSegment=a;c._segmentIndexShift=b.length;
return{segmentGroup:c,slicedSegments:[]}}if(0===c.length&&bpa(a,c,d)){f=a.segments;h=a.children;var k={};d=r(d);for(var q=d.next();!q.done;q=d.next())if(q=q.value,Bk(a,c,q)&&!h[rk(q)]){var u=new bk([],{});u._sourceSegment=a;u._segmentIndexShift="legacy"===e?a.segments.length:b.length;k[rk(q)]=u}h=Object.assign({},h,k);f=new bk(f,h);f._sourceSegment=a;f._segmentIndexShift=b.length;return{segmentGroup:f,slicedSegments:c}}f=new bk(a.segments,a.children);f._sourceSegment=a;f._segmentIndexShift=b.length;
return{segmentGroup:f,slicedSegments:c}},apa=function(a,b,c){return c.some(function(d){return Bk(a,b,d)&&"primary"!==rk(d)})},bpa=function(a,b,c){return c.some(function(d){return Bk(a,b,d)})},Bk=function(a,b,c){return(a.hasChildren()||0<b.length)&&"full"===c.pathMatch?!1:""===c.path},cpa=function(a,b,c,d){return rk(a)===d||"primary"!==d&&Bk(b,c,a)?"**"===a.path?!0:Yoa(b,a,c).matched:!1},Ek=function(a){return(0,U.throwError)(new Dk(a))},dpa=function(a,b,c,d){return ig(function(e){return(new Fk(a,b,
c,e.extractedUrl,d)).apply().pipe(S(function(f){return Object.assign({},e,{urlAfterRedirects:f})}))})},fpa=function(){var a=new epa;return new U.Observable(function(b){return b.error(a)})},hpa=function(a,b,c,d,e,f,h,k){return(new gpa(a,b,c,d,e,void 0===h?"emptyOnly":h,void 0===k?"legacy":k,f)).recognize().pipe(ig(function(q){return null===q?fpa():(0,U.of)(q)}))},ipa=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)})},
jpa=function(a){return(a=a.value.routeConfig)&&""===a.path&&void 0===a.redirectTo},kpa=function(a){var b=[],c=new Set,d={};a=r(a);for(var e=a.next();!e.done;d={$jscomp$loop$prop$node$1659:d.$jscomp$loop$prop$node$1659},e=a.next())d.$jscomp$loop$prop$node$1659=e.value,jpa(d.$jscomp$loop$prop$node$1659)?(e=b.find(function(f){return function(h){return f.$jscomp$loop$prop$node$1659.value.routeConfig===h.value.routeConfig}}(d)),void 0!==e?(e.children.push.apply(e.children,v(d.$jscomp$loop$prop$node$1659.children)),
c.add(e)):b.push(d.$jscomp$loop$prop$node$1659)):b.push(d.$jscomp$loop$prop$node$1659);d=r(c);for(a=d.next();!a.done;a=d.next())a=a.value,e=kpa(a.children),b.push(new kk(a.value,e));return b.filter(function(f){return!c.has(f)})},lpa=function(a){for(;a._sourceSegment;)a=a._sourceSegment;return a},mpa=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},npa=function(a,b,c,d,e,f){return qf(function(h){return hpa(a,
b,c,h.urlAfterRedirects,d.serialize(h.urlAfterRedirects),d,e,f).pipe(S(function(k){return Object.assign({},h,{targetSnapshot:k})}))})},ppa=function(a,b){return qf(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return(0,U.of)(c);var f=0;return(0,U.from)(e).pipe(qf(function(h){return opa(h.route,d,a,b)},1),kg(function(){return f++}),hha(),qf(function(){return f===e.length?(0,U.of)(c):U.EMPTY}))})},opa=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[qpa]=e.title);return rpa(f,a,b,d).pipe(S(function(h){a._resolvedData=h;a.data=Coa(a,c).resolve;!e||"string"!==typeof e.title&&null!==e.title||(a.data[qpa]=e.title);return null}))},rpa=function(a,b,c,d){var e=spa(a);if(0===e.length)return(0,U.of)({});var f={};return(0,U.from)(e).pipe(qf(function(h){return tpa(a[h],b,c,d).pipe($f(),kg(function(k){f[h]=k}))}),hha(),ag(f),Sf(function(h){return h instanceof U.EmptyError?U.EMPTY:(0,U.throwError)(h)}))},
spa=function(a){return[].concat(v(Object.keys(a)),v(Object.getOwnPropertySymbols(a)))},tpa=function(a,b,c,d){a=wk(a,b,d);return a.resolve?Tj(a.resolve(b,c)):Tj(a(b,c))},upa=function(a){return ig(function(b){var c=a(b);return c?(0,U.from)(c).pipe(S(function(){return b})):(0,U.of)(b)})},vpa=function(a){throw a;},wpa=function(a,b){return b.parse("/")},xpa=function(a,b,c,d,e,f,h,k,q,u,x){h=void 0===h?{}:h;a=new Gk(null,a,b,c,d,e,Array.prototype.concat.apply([],f));u&&(a.urlHandlingStrategy=u);x&&(a.routeReuseStrategy=
x);a.titleStrategy=null!=q?q:k;h.errorHandler&&(a.errorHandler=h.errorHandler);h.malformedUriErrorHandler&&(a.malformedUriErrorHandler=h.malformedUriErrorHandler);h.onSameUrlNavigation&&(a.onSameUrlNavigation=h.onSameUrlNavigation);h.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=h.paramsInheritanceStrategy);h.relativeLinkResolution&&(a.relativeLinkResolution=h.relativeLinkResolution);h.urlUpdateStrategy&&(a.urlUpdateStrategy=h.urlUpdateStrategy);h.canceledNavigationResolution&&(a.canceledNavigationResolution=
h.canceledNavigationResolution);return a},ypa=function(a){return a.routerState.root},zpa=function(a){var b=200,c=500;b=void 0===b?200:b;c=void 0===c?500:c;var d=a.length;return(0,U.concat)((0,U.of)(b),(0,U.timer)(c,c).pipe(bg(function(e){return e+b},b),vha(function(e){return e<d})),(0,U.of)(a.length)).pipe(Wf()).pipe(S(function(e){return a.slice(0,Math.min(e,d))}))},Hk=function(a,b){b=new U.BehaviorSubject(b);a.subscribe(b);return b},Ik=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();
return b},Jk=function(){return Wf(function(a,b){return Ei(a,b)})},Apa=function(){return function(a){return a.pipe(S(function(b){return{event:b,timestamp:Date.now()}}),Pga(a.pipe(Tf(1E4,U.asapScheduler))))}},Bpa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},Cpa=function(a,b){a&1&&(F(0,"tr")(1,"td",5),P(2),G(),F(3,"td"),P(4,":"),G(),F(5,"td",6),P(6),G()());a&2&&(a=b.$implicit,B(2),Ke(a.displayAs),B(4),Ke(a.description))},Dpa=function(a,b){a&1&&(F(0,"thead")(1,"tr"),H(2,"th",
3),F(3,"th",4),P(4),G()(),O(5,Cpa,7,2,"tr",1),G());a&2&&(a=b.$implicit,B(4),Ke(a.title),B(1),D("ngForOf",a.hotkeys))},Kk=function(a){return void 0!==a.user},Lk=function(a){return void 0!==a.group},Epa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return Mk(a.replace(/_/g," ").toLowerCase())}},Gpa=function(a){if(a)return{accessLevel:Fpa[a.getAccessLevel()]}},Ipa=function(a){a=Hpa[a.accessLevel];var b=new Nk;
b.setAccessLevel(a);return b},Ok=function(a){return new Ji(a.year,a.month-1,a.day)},Qk=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Jpa=function(a){return!(!a||null==a.day||null==a.month||null==a.year)},Rk=function(a){return null==console?!1:"function"===typeof console[a]},Sk=function(){Rk("debug")&&console.debug.apply(console,xc.apply(0,arguments))},Kpa=function(){Rk("info")&&console.info.apply(console,xc.apply(0,arguments))},Lpa=function(){Rk("log")&&console.log.apply(console,
xc.apply(0,arguments))},Tk=function(){Rk("warn")&&console.warn.apply(console,xc.apply(0,arguments))},Mpa=function(){Rk("error")&&console.error.apply(console,xc.apply(0,arguments))},Npa=function(a){if(null!=a){var b=a.toObject();a=b.year;var c=b.day;b=b.month;if(null==a)Tk("No year. dateToJs");else if(null==c)Tk("No day. dateToJs");else if(null==b)Tk("No month. dateToJs");else return{year:a,day:c,month:b}}},Opa=function(a){var b=new Uk;Vk(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},
Wk=function(a){if(null!=a){var b=a.getSeconds();a=a.getNanos();return{seconds:b,nanos:a}}},Xk=function(a){var b=new tj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Ppa=function(a){if(null!=a)return Number(a.toDate())},Yk=function(a){if(null!=a&&(a=String(a),""!==a.trim()))return a=Number(a),isNaN(a)?void 0:a},Zk=function(a){if(null!=a)return String(a)},$k=function(a){return null==a?void 0:a},al=function(a){return null==a?null:a},bl=function(a){return function(b){return null==b?a:b}},cl=function(a){return null!=
a},dl=function(a,b){return null==a?b[0]:b[a]},el=function(a,b){if(null!=a)return b[a]},fl=function(a){return String(a)},gl=function(a){a=Yk(a);return void 0===a?NaN:a},Rpa=function(a){if(null!=a)return a=a.toObject(),{customFieldId:$k(a.customFieldId),standardField:dl(a.standardField,Qpa)}},Tpa=function(a){var b=new hl;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&b.setStandardField(Spa[a.standardField]);return b},Wpa=function(a){if(a){var b=Upa(a);if(b)return a=new il,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 jl(b.typedDefaultValue)),a.required=!!b.required,a.fieldSignificance=b.fieldSignificance||"MINOR",a.allowedValue=b.allowedValue||null,a.stateOnIssues=Vpa[b.stateOnIssues]||1,b=b.enabledOnIssues,a.enabledOnIssues=null==b?!0:b,a}},Upa=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.description,e=b.required,f=b.enabledOnIssues,h=Yk(b.customFieldId),
k=Yk(b.componentId),q=$k(b.allowedValueList);a=Xpa(a.getTypedDefaultValue());if(null==c)Tk("No name. customFieldToJs");else if(null==h)Tk("No customFieldId. customFieldToJs");else if(null==b.type)Tk("No type. customFieldToJs");else{var u=b.type,x=bl(0)(b.stateOnIssues);b=bl(0)(b.fieldSignificance);return{name:c,description:$k(d),required:$k(e),enabledOnIssues:!!f,type:Ypa[u],customFieldId:h,componentId:k,allowedValue:q,stateOnIssues:Zpa[x],fieldSignificance:$pa[b],typedDefaultValue:a}}}},Xpa=function(a){if(null!=
a){var b=a.toObject(),c=Yk(b.customFieldId),d=$k(b.displayValuesList),e;var f=(e=null==(f=b.repeatedTextValue)?void 0:f.valuesList)?{values:e}:void 0;var h=(e=null==(h=b.repeatedEnumValue)?void 0:h.valuesList)?{values:e}:void 0;var k=(e=null==(k=b.repeatedNumericValue)?void 0:k.valuesList)?{values:e}:void 0;var q,u,x;e=(e=null==(q=a.getRepeatedDateValue())?void 0:null==(u=q.getValuesList())?void 0:null==(x=u.map(Npa))?void 0:x.filter(cl))?{values:e}:void 0;a=Npa(a.getDateValue());if(null==c)Tk("No customFieldId. customFieldValueToJs");
else return{customFieldId:c,displayValues:d,textValue:$k(b.textValue),enumValue:$k(b.enumValue),numericValue:$k(b.numericValue),dateValue:a,repeatedTextValue:f,repeatedEnumValue:h,repeatedNumericValue:k,repeatedDateValue:e}}},aqa=function(a){var b=new kl;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));a.displayValues&&ll(b,12,a.displayValues);if(void 0!==a.textValue)b.setTextValue(a.textValue);else if(void 0!==a.enumValue)b.setEnumValue(a.enumValue);else if(void 0!==a.numericValue)b.setNumericValue(a.numericValue);
else if(void 0!==a.dateValue)b.setDateValue(Opa(a.dateValue));else if(void 0!==a.repeatedTextValue){var c=new ml;c.setValuesList(a.repeatedTextValue.values);b.setRepeatedTextValue(c)}else void 0!==a.repeatedEnumValue?(c=new ml,c.setValuesList(a.repeatedEnumValue.values),b.setRepeatedEnumValue(c)):void 0!==a.repeatedNumericValue?(c=new nl,c.setValuesList(a.repeatedNumericValue.values),b.setRepeatedNumericValue(c)):void 0!==a.repeatedDateValue&&(c=new ol,c.setValuesList(a.repeatedDateValue.values.map(Opa)),
b.setRepeatedDateValue(c));return b},bqa=function(a){return Wpa(a.getCustomField())},eqa=function(a){var b=new pl;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(cqa[a.type]);b.setRequired(a.required);b.setName(a.name);b.setDescription(a.description);a.typedDefaultValue&&b.setTypedDefaultValue(aqa(a.typedDefaultValue));a.allowedValue&&ll(b,8,a.allowedValue);b.setFieldSignificance(dqa[a.fieldSignificance]);b.setStateOnIssues(a.stateOnIssues);
b.setEnabledOnIssues(a.enabledOnIssues);return b},vl=function(a){var b=new ql;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&&fqa(b,gqa(new rl,a.numericSpec.multiplier));if(a.enumSpec){var c;hqa(b,(new sl).setOptionsList((null!=(c=a.enumSpec.options)?c:[]).map(function(d){return(new tl).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}ul(b,6,a)}return b},iqa=function(a){var b=new wl;a.specId&&Vk(b,1,a.specId);a.estimate&&xl(b,2,a.estimate);a.averageDays&&sb(b,3,a.averageDays,0);a.totalOpen&&sb(b,4,a.totalOpen,0);a.totalComplete&&sb(b,5,a.totalComplete,0);return b},jqa=function(a){var b=a.getInherit(),c=a.getId(),d=a.getName();a:switch(X(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(yl(a,4,zl)){var f=Al(a,rl,4,zl);f&&(b.numericSpec={multiplier:Bl(f,1)})}else if(yl(a,5,zl)&&(a=Cl(a),b.enumSpec={options:[]},a&&0<(null==a?void 0:null==(f=a.getOptionsList())?void 0:f.length)))for(f=r(a.getOptionsList()),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},Dl=function(a){switch(a){case 2:return"PII";case 3:return"SPII";case 0:case 1:return"NONE_DETECTED";default:return sh(a,"Unexpected pii severity")}},
El=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 sh(a,"Unexpected pii severity")}},Fl=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},kqa=function(a){switch(a){case "NONE_DETECTED":return 1;case "PII":return 2;case "SPII":return 3;default:return 1}},lqa=function(a){switch(a){case "PII":return"Restricted";case "SPII":return"Restricted+";default:return""}},mqa=function(a){var b=
ej(a,1)?lj(a,1):void 0,c=a.hasResourcePath()?a.getResourcePath():void 0,d=Dl(a.getSeverity()),e=a.getJudgementReason();a=W(a,5);return{contentJudgementId:b,resourcePath:c,severity:d,judgementReason:e,contentJudge:a}},nqa=function(a){var b=new Gl;b.setJudgementReason(a.judgementReason);b.setSeverity(El(a.severity));return b},pqa=function(a){var b=new Hl;l(b,1,oqa[a.retentionSelection]);null!==a.retentionPeriodDays&&l(b,2,a.retentionPeriodDays);l(b,3,oqa[a.piiRetentionSelection]);null!==a.piiRetentionPeriodDays&&
l(b,4,a.piiRetentionPeriodDays);null!==a.spiiRetentionPeriodDays&&l(b,5,a.spiiRetentionPeriodDays);return b},Il=function(a){if(null!=a){var b=al(Wk(a.getRetentionPeriod()));a=al(Wk(a.getScheduledDeletionTime()));return{retentionPeriod:b,scheduledDeletionTime:a}}},Kl=function(a){if(null!=a){a:{a=m(a,Jl,1);if(null!=a)if(a=a.toObject(),null==a.severity)Tk("No severity. piiVerdictToJs");else{a={severity:qqa[a.severity]};break a}a=void 0}return{piiVerdict:a}}},rqa=function(a){if(null!=a)return{startTime:Wk(a.getStartTime()),
endTime:Wk(a.getEndTime()),targetTime:Wk(a.getTargetTime())}},sqa=function(a){var b=new Ll;a.startTime&&b.setStartTime(Xk(a.startTime));a.endTime&&b.setEndTime(Xk(a.endTime));a.targetTime&&b.setTargetTime(Xk(a.targetTime));return b},uqa=function(a){var b=new Ml;b.setInherit(a.inherit);b.setSource(tqa[a.source]);b.setId(a.id);b.setComment(a.comment);l(b,6,a.sourceComponentId);b.setSourceTeamId(a.sourceTeamId);return b},vqa=function(a){var b;return 1===(null==(b=a.getTeamSloEditPolicy())?void 0:X(b,
2,0))},wqa=function(a){var b;return 1===(null==(b=m(a,Nl,1))?void 0:b.getEffectiveSloEditPolicy())},xqa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||"ACTIVE"===a||"UNSPECIFIED"===a},Pl=function(a){return a?a.map(Ol):[]},yqa=function(a){a=Pl(a);a.sort();return a},Ol=function(a){return a&&a.getUserGaiaStatus?zqa(Ql(a)):zqa(a)},zqa=function(a){return a?"DELETED"===a.userGaiaStatus?"[Deleted User]":"UNAVAILABLE"===a.userGaiaStatus?"[Unavailable User]":xqa(a)?Aqa(a)||"[No Data]":"[No Data]":
""},Rl=function(a){return a&&a.getUserGaiaStatus?Aqa(Ql(a)):Aqa(a)},Aqa=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Ql=function(a){if(null!=a){var b={},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=a.getObfuscatedEmailAddress())b.obfuscatedEmailAddress=c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=Bqa[c];(c=a.getAliasesList())&&0<c.length&&(b.aliases=c);return b}},Sl=function(a){if(!a)return null;var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Ql(c.value))&&b.push(c);
return b},Ul=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Tl;b&&e.setEmailAddress(b);c&&e.setObfuscatedEmailAddress(c);d&&e.setAliasesList(d);a&&e.setUserGaiaStatus(Cqa[a]);return e},Vl=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},Dqa=function(a){if(null!=a)return{tag:a.getTag(),text:W(a,2)}},Jqa=function(a){if(null!=a){var b=a.toObject(),c,d,e,f,h,k,q,u,x,E;return{title:b.title||"",comment:al(b.comment),snapshotNumber:al(b.snapshotNumber),
version:al(b.version),createdTimeMicros:al(b.createdTimeMicros),isArchived:!!b.isArchived,inProd:!!b.inProd,isDeleted:al(b.isDeleted),changelist:al(b.changelistList),postmortems:al(b.postmortemsList),foundInVersion:al(b.foundInVersionList),targetedToVersion:al(b.targetedToVersionList),verifiedInVersion:al(b.verifiedInVersionList),componentId:al(Yk(b.componentId)),duplicateOfIssueId:al(Yk(b.duplicateOfIssueId)),attachmentId:al(null==(c=b.attachmentIdList)?void 0:c.map(Yk).filter(cl)),blockedByIssueId:al(null==
(d=b.blockedByIssueIdList)?void 0:d.map(Yk).filter(cl)),blockingIssueId:al(null==(e=b.blockingIssueIdList)?void 0:e.map(Yk).filter(cl)),hotlistId:al(null==(f=b.hotlistIdList)?void 0:f.map(Yk).filter(cl)),duplicateIssueId:al(null==(h=b.duplicateIssueIdList)?void 0:h.map(Yk).filter(cl)),sloSnoozeUntil:a.getSloSnoozeUntil(),authorUser:al(Ql(m(a,Tl,36))),reporterUser:al(Ql(m(a,Tl,37))),assigneeUser:al(Ql(m(a,Tl,38))),verifierUser:al(Ql(m(a,Tl,39))),ccUsers:al(Sl(xb(a,Tl,40))),commentContentVerdict:Kl(a.getCommentContentVerdict()),
customField:xb(a,kl,24).map(Xpa).filter(cl),retention:dl(b.retention,Wl),significanceOverride:dl(b.significanceOverride,$pa),deletionReason:dl(b.deletionReason,Eqa),type:null!=(k=el(b.type,Fqa))?k:null,priority:null!=(q=el(b.priority,Gqa))?q:null,severity:null!=(u=el(b.severity,Hqa))?u:null,status:null!=(x=el(b.status,Iqa))?x:null,effort:null!=(E=a.getEffort())?E:void 0}}},Qqa=function(a){var b=new Xl;if(a.authorUser){var c=Ul(a.authorUser);Gb(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(Kqa[a.type]);a.status&&b.setStatus(Yl[a.status]);a.priority&&b.setPriority(Lqa[a.priority]);a.severity&&b.setSeverity(Mqa[a.severity]);void 0!==a.title&&b.setTitle(a.title);a.reporterUser&&(c=Ul(a.reporterUser),Gb(b,37,c));a.assigneeUser&&(c=Ul(a.assigneeUser),Gb(b,38,c));a.verifierUser&&(c=Ul(a.verifierUser),Gb(b,39,c));a.ccUsers&&(c=a.ccUsers.map(Ul),Fb(b,40,c));a.attachmentId&&(c=a.attachmentId.map(fl),
ll(b,14,c));a.duplicateOfIssueId&&l(b,15,String(a.duplicateOfIssueId));a.blockedByIssueId&&(c=a.blockedByIssueId.map(fl),ll(b,16,c));a.blockingIssueId&&(c=a.blockingIssueId.map(fl),ll(b,17,c));a.changelist&&ll(b,18,a.changelist);a.postmortems&&b.setPostmortemsList(a.postmortems);a.foundInVersion&&ll(b,19,a.foundInVersion);a.targetedToVersion&&ll(b,20,a.targetedToVersion);a.verifiedInVersion&&ll(b,21,a.verifiedInVersion);a.hotlistId&&b.setHotlistIdList(a.hotlistId.map(fl));a.customField&&(c=a.customField.map(aqa),
Fb(b,24,c));a.comment&&b.setComment(a.comment);a.formattingMode&&b.setFormattingMode(Zl[a.formattingMode]);if(a.commentContentVerdict){c=b.setCommentContentVerdict;var d=a.commentContentVerdict,e=new $l;if(d.piiVerdict){d=d.piiVerdict;var f=new Jl;f.setSeverity(Nqa[d.severity]);Gb(e,1,f)}c.call(b,e)}a.snapshotNumber&&l(b,26,a.snapshotNumber);a.retention&&b.setRetention(Oqa[a.retention]);a.isDeleted&&b.setIsDeleted(a.isDeleted);a.deletionReason&&b.setDeletionReason(Pqa[a.deletionReason]);a.significanceOverride&&
b.setSignificanceOverride(dqa[a.significanceOverride]);a.duplicateIssueId&&(c=a.duplicateIssueId.map(fl),ll(b,30,c));void 0!==a.inProd&&b.setInProd(a.inProd);void 0!==a.isArchived&&b.setIsArchived(a.isArchived);a.sloSnoozeUntil&&b.setSloSnoozeUntil(a.sloSnoozeUntil);a.effort&&b.setEffort(a.effort);return b},Rqa=function(a){var b={targetIssueId:String(fj(a,1))};if(a=fj(a,2))b.afterIssueId=Zk(a);return b},Sqa=function(a){var b=new bm;b.setIssueId(String(a));return b},Uqa=function(a){var b=new Tqa;b.setIssueId(String(a.issueId));
b.setComponentId(String(a.componentId));return b},Wqa=function(a){var b=new Vqa;b.setIssueId(String(a.issueId));b.setComponentId(String(a.componentId));return b},Xqa=function(a){return{issueId:Number(a.getIssueId()),status:Iqa[a.getStatus()],title:a.getTitle()}},$qa=function(a){var b=new cm;Yqa(b,a.fieldName);a.value&&b.setValue(a.value);a.actionType&&b.setActionType(Zqa[a.actionType]);a.customFieldValue&&b.setCustomFieldValue(aqa(a.customFieldValue));return b},ara=function(a){var b=new dm;b.setIssueId(String(a.issueId));
b.setActionsList(a.actions.map($qa));return b},dra=function(a){var b=new em;b.setAddHotlistIdsList(a.addHotlistIds.map(String));b.setRemoveHotlistIdsList(a.removeHotlistIds.map(String));var c=a.hotlistIssue;a=new fm;a.setIssueId(String(c.issueId));c.position&&a.setPosition(c.position);var d=a.setIssue;c=c.issue;var e=new gm;e.setIssueId(String(c.issueId));var f,h=(null!=(f=c.snapshot)?f:[]).map(Qqa);Fb(e,2,h);if(c.userData){f=e.setUserData;h=c.userData;var k=new hm;h.voted&&k.setVoted(h.voted);h.starred&&
k.setStarred(h.starred);h.notificationSubscription&&k.setNotificationSubscription(bra[h.notificationSubscription]);void 0!==h.lastViewedTimeMicros&&l(k,5,h.lastViewedTimeMicros);f.call(e,k)}if(c.aggregatedData){h=c.aggregatedData;f=new im;f.setVoteCount(h.voteCount);f.setCreatedTimeMicros(h.createdTimeMicros);l(f,4,h.resolvedTimeMicros);l(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,u=new jm;if(q.retentionPeriod){var x=u.setRetentionPeriod,E=q.retentionPeriod,I=new km;I.setSeconds(E.seconds);I.setNanos(E.nanos);x.call(u,I)}q.scheduledDeletionTime&&u.setScheduledDeletionTime(Xk(q.scheduledDeletionTime));k.call(f,u)}h.sloStatus&&(k=f.setSloStatus,h=h.sloStatus,q=new lm,h.assignmentBounds&&q.setAssignmentBounds(sqa(h.assignmentBounds)),h.responseBounds&&q.setResponseBounds(sqa(h.responseBounds)),h.closureBounds&&q.setClosureBounds(sqa(h.closureBounds)),k.call(f,
q));Gb(e,4,f)}c.accessLimit&&e.setAccessLimit(Ipa(c.accessLimit));var N;e.setVisibleFieldsList((null!=(N=c.visibleFields)?N:[]).map(Tpa));l(e,7,c.majorModifiedTimeMicros);e.setParentIssueIdsList(c.parentIssueIds);if(c.ancestors)for(N=e.getAncestorsMap(),f=r(c.ancestors.entries()),h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=N,u=q.set,x=new mm,x.setSourceIssueIdsList(k.sourceIssueIds),u.call(q,h,x);e.setChildIssueCount(c.childIssueCount);e.setIsArchived(c.isArchived);
d.call(a,e);cra(b,a);return b},era=function(a){var b;return{issueDigests:(null!=(b=a.getIssueDigestsList())?b:[]).map(Xqa),numTotalResults:a.getNumTotalResults()}},gra=function(a){var b=new nm;b.setIssueId(String(a.issueId));var c=a.targetIds.map(String);ll(b,2,c);b.setRelation(fra[a.relation]);b.setActionType(Zqa[a.actionType]);a.commentDisplayOverride&&b.setCommentDisplayOverride(Zl[a.commentDisplayOverride]);return b},ira=function(a){var b=new hra;b.setIssueId(String(a.issueId));b.setRetention(Oqa[a.retention]);
a.significanceOverride&&b.setSignificanceOverride(dqa[a.significanceOverride]);a.commentDisplayOverride&&b.setCommentDisplayOverride(Zl[a.commentDisplayOverride]);return b},jra=function(a){return{issueId:Number(a.getIssueId())}},kra=function(a){return{teamId:a.getTeamId(),score:Bl(a,2)}},lra=function(a){var b=new om;b.setTeamId(a.teamId);sb(b,2,a.score,0);return b},mra=function(a){var b=new pm;b.setInherit(a.inherit);b.setId(String(a.id));return b},rm=function(a){if(a.hasRetentionSettings()){var b=
a.getRetentionSettings();b={retentionSelection:nra[X(b,1,0)],retentionPeriodDays:fj(b,2),piiRetentionSelection:nra[X(b,3,0)],piiRetentionPeriodDays:fj(b,4),spiiRetentionPeriodDays:fj(b,5)}}else b=void 0;if(mj(a,10)){var c=m(a,qm,10),d,e;var f=(null!=(d=ob(c,1))?d:[]).map(gl);d=ob(c,2);var h=xb(c,pl,4);if(h){c=[];h=r(h);for(var k=h.next();!k.done;k=h.next())(k=Wpa(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:ora[f.getSource()],id:f.getId(),sourceComponentId:lj(f,6),sourceTeamId:f.getSourceTeamId(),comment:f.getComment()}):f=void 0;d=mj(a,24)?jqa(a.getEffortSpec()):void 0;a.hasTeam()?(c=a.getTeam(),c={inherit:c.getInherit(),id:c.getId()}):c=void 0;var q,u;h=gl(a.getComponentId());k=gl(lj(a,2));var x=a.getName(),E=a.getDescription(),I=a.getArchived(),N=(null!=(q=ob(a,7))?q:[]).map(gl);q=Gpa(a.getAccessLimit());var L=W(a,13),T=bj(a,14);var Y=1===X(a,15,0)?"ENABLED":
"DISABLED";return{componentId:h,parentComponentId:k,name:x,description:E,archived:I,customFieldId:N,componentPathInfo:e,accessLimit:q,emailAlias:L,userHasEditAccess:T,commentEditState:Y,slo:f,bugscopeSloId:lj(a,20),retentionSettings:b,fieldOrdering:pra[X(a,23,0)],effortSpec:d,team:c,teamSuggestions:(null!=(u=a.getTeamSuggestionsList())?u:[]).map(kra)}},qra=function(a){var b=new sm;l(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(pqa(a.retentionSettings));return b},rra=function(a){var b;return(null!=(b=xb(a,sm,1))?b:[]).map(rm)},sra=function(a){return{warningHeader:W(a,1),warning:W(a,2),isAllowed:bj(a,3),isExternalMove:bj(a,4)}},tra=function(a){return{templateId:a.getTemplateId(),componentId:gl(a.getComponentId()),default:!!a.getDefault(),name:a.getName(),description:a.getDescription(),snapshot:Jqa(a.getSnapshot())}},ura=function(a){var b=new tm;b.setTemplateId(a.templateId);
b.setComponentId(String(a.componentId));b.setDefault(a.default);b.setName(a.name);b.setDescription(a.description);b.setSnapshot(Qqa(a.snapshot));return b},vra=function(a){var b={},c=Zi(a,2,pl).entries();c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;(e=Wpa(e))&&(b[gl(d)]=e)}return{snapshot:Jqa(a.getSnapshot()),customFieldMap:b}},wra=function(a){var b;return(null!=(b=xb(a,sm,1))?b:[]).map(rm)},um=function(a){return 0<Object.values(a).length},xra=function(a,
b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},vm=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},yra=function(a,b){var c=a.getValue(),d={};c=r(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=r(e.value);e=f.next().value;f=f.next().value;b.includes(e)||(d[e]=f)}a.next(Object.freeze(d))},wm=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(v(a)).sort());return JSON.stringify(b)},zra=function(a,
b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},Ara=function(a){a=void 0===a?{}:a;return Ima(a)},Bra=function(a){var b=new U.Subject,c=a.subscribe(b);a=(0,U.firstValueFrom)(b);a.finally(function(){c.unsubscribe()});return a},Cra=function(a){return null==a?new Promise(function(){}):Promise.resolve(a)},Era=function(){var a;return Dra[(null==(a=Yi().getConfig()||void 0)?void 0:a.getEnvironmentType())||""]},Fra=function(a){return tra(m(a,tm,1))},Gra=function(a){return(xb(a,tm,1)||[]).map(tra)},Hra=
function(a){return{encryptedMedia:mb(xm(a,1)),errorMessage:a.getErrorMessage()}},Ira=function(a){var b=new ym;l(b,1,a.attachment);void 0!==a.contentJudgement&&b.setContentJudgement(nqa(a.contentJudgement));return b},Jra=function(a){var b;return{attachments:(null!=(b=a.getAttachmentsList())?b:[]).map(zm)}},zm=function(a){if(null!=a){var b=a.toObject(),c=Yk(b.attachmentId),d=$k(b.filecompUrl),e=$k(b.etag),f=$k(b.contentType),h=$k(b.description),k=$k(b.filename),q=$k(b.length);b=Wl[bl(0)(b.piiRetention)];
var u=Il(a.getPiiRetentionState()),x=Kra(a.getEntityStatus()),E=Kl(a.getContentVerdict());a=m(a,Am,3);null!=a?(a=a.toObject(),a={filename:$k(a.filename),length:$k(a.length),contentType:$k(a.contentType)}):a=void 0;return{attachmentId:c,filecompUrl:d,etag:e,contentType:f,description:h,filename:k,length:q,piiRetention:b,piiRetentionState:u,entityStatus:x,contentVerdict:E,media:a}}},Kra=function(a){if(null!=a){var b=a.toObject();a=bl(0)(b.reason);b=bl(0)(b.status);return{reason:Lra[a],status:Mra[b]}}},
Pra=function(a){if(null!=a){var b=a.toObject(),c=b.name,d=b.displayName,e=b.important;if(null==c)Tk("No name. eventDiffToJs");else{d=$k(d);e=!!e;var f=bl(0)(b.type);c={name:c,displayName:d,timestamp:Ppa(a.getTimestamp()),important:e,type:Nra[f]};if(yl(a,6,Bm)){var h=Al(a,Cm,6,Bm);yl(h,1,Dm)&&(a=Al(h,Em,1,Dm),c.isUser=!0,c.oldValue=bl("<none>")(Rl(null==a?void 0:m(a,Tl,1))),c.newValue=bl("<none>")(Rl(null==a?void 0:m(a,Tl,2))));if(yl(h,2,Dm)){var k,q;c.oldValue=$k(null==(k=b.singleValueDiff)?void 0:
null==(q=k.stringDiff)?void 0:q.oldValue);var u,x;c.newValue=$k(null==(u=b.singleValueDiff)?void 0:null==(x=u.stringDiff)?void 0:x.newValue)}}else if(yl(a,9,Bm)){var E;c.customFieldId=$k(null==(E=b.customFieldDiff)?void 0:E.customFieldId);var I;c.oldValue=$k(null==(I=b.customFieldDiff)?void 0:I.oldValue);var N;c.newValue=$k(null==(N=b.customFieldDiff)?void 0:N.newValue)}else if(yl(a,10,Bm))k=Al(a,Fm,10,Bm),c.isUser=!0,b=(null==k?void 0:k.getAddedList())||[],k=(null==k?void 0:k.getRemovedList())||
[],c.added=b.map(function(ja){return Rl(ja)}).map(bl("<none>")),c.removed=k.map(function(ja){return Rl(ja)}).map(bl("<none>"));else if(yl(a,7,Bm)){var L;c.added=(null==(L=b.collectionDiff)?void 0:L.addedList)||[];var T;c.removed=(null==(T=b.collectionDiff)?void 0:T.removedList)||[]}else if(yl(a,8,Bm)){var Y;b=(null==(Y=Al(a,Gm,8,Bm))?void 0:Y.getAddedList())||[];k=(null==(h=Al(a,Gm,8,Bm))?void 0:h.getRemovedList())||[];c.added=b.map(Ora).filter(cl);c.removed=k.map(Ora).filter(cl)}return c}}},Ora=
function(a){if(null!=a){var b=a.toObject();a=b.value;b=b.href;if(null==a)Tk("No value. linkedItemToJs");else if(null==b)Tk("No href. linkedItemToJs");else return{value:a,href:b}}},Qra=function(a){a=Lj(a).toString();var b=new Hm;l(b,2,a);return b},Im=function(a){if(null!=a){var b=a.toObject();b=Yk(b.issueId);if(null==b)Tk("No issueId. issueToJs");else{for(var c=new Map,d=r(a.getAncestorsMap().entries()),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.set(e,{sourceIssueIds:f.getSourceIssueIdsList()})}var h,
k,q,u;d=a.getUserData();if(null!=d){d=d.toObject();var x;d={voted:al(d.voted),starred:al(d.starred),notificationSubscription:dl(d.notificationSubscription,Rra),lastViewedTimeMicros:null!=(x=d.lastViewedTimeMicros)?x:0}}else d=void 0;x=Gpa(a.getAccessLimit());e=xb(a,Xl,2).map(Jqa).filter(cl);f=a.getVisibleFieldsList().map(Rpa).filter(cl);var E;var I=m(a,im,4);if(null!=I){var N=I.toObject(),L=N.createdTimeMicros,T=N.resolvedTimeMicros,Y=N.verifiedTimeMicros,ja=N.modifiedTimeMicros,ha=null!=(E=N.voteCount)?
E:0;E=Yk(N.sloId);N=Yk(N.teamId);var ra=Il(I.getRetentionState());I=I.getSloStatus();I=null!=I?{assignmentBounds:rqa(I.getAssignmentBounds()),responseBounds:rqa(I.getResponseBounds()),closureBounds:rqa(I.getClosureBounds())}:void 0;E={voteCount:ha,createdTimeMicros:null!=L?L:0,resolvedTimeMicros:null!=T?T:0,verifiedTimeMicros:null!=Y?Y:0,modifiedTimeMicros:null!=ja?ja:0,sloId:E,teamId:N,retentionState:ra,sloStatus:I}}else E=void 0;return{issueId:b,userData:d,accessLimit:x,snapshot:e,visibleFields:f,
aggregatedData:E,majorModifiedTimeMicros:null!=(h=fj(a,7))?h:0,parentIssueIds:null!=(k=a.getParentIssueIdsList())?k:[],ancestors:c,childIssueCount:null!=(q=a.getChildIssueCount())?q:0,isArchived:a.getIsArchived(),relatedLinks:(null!=(u=a.getRelatedLinksList())?u:[]).map(Sra)}}}},Tra=function(a){if(null!=a){var b=a.toObject(),c=Ppa(m(a,tj,4)),d=!!b.isMajorEvent,e=b.addedAttachmentIdsList||[],f,h=null!=(f=Jm(a.getComment()))?f:{},k;f=null==(k=xb(a,Km,2))?void 0:k.map(Pra).filter(cl);var q;k=null==(q=
xb(a,Km,3))?void 0:q.map(Pra).filter(cl);var u;q=null==(u=xb(a,Lm,9))?void 0:u.map(Dqa).filter(cl);u=a.getAttachmentsList().map(zm).filter(cl);var x=Rl(m(a,Tl,5));x=bl("<none>")(x);a=Ql(m(a,Tl,5));if(null==c)Tk("No modifiedDate. issueEventToJs");else return Object.assign({},h,{attachments:u,version:b.version,modifiedDate:c,preDiffs:f,postDiffs:k,isMajorEvent:d,addedAttachmentIds:e,taggedSummary:q,userPerformingAction:x,userPerformingActionUser:a})}},Jm=function(a){if(null==a)return{};var b=a.toObject(),
c=al(el(b.piiRetention,Wl)),d=el(b.formattingMode,Mm),e,f=el(null==(e=b.entityStatus)?void 0:e.status,Mra);e=b.lastModified;return{version:b.version,unlinkifiedComment:b.unlinkifiedComment,commentNumber:b.commentId,commentVersion:b.version,commentLastModifiedAtDate:null!=e?e/1E3:void 0,commentRedacted:$k(b.redacted),commentContentVerdict:Kl(a.getCommentContentVerdict()),commentRetentionState:Il(a.getPiiRetentionState()),commentDeletionStatus:f,commentRetention:c,lastCommentEditorUser:Ql(m(a,Tl,8)),
formattingMode:d,formattedComment:$k(a.getFormattedComment()),commentEtag:b.etag}},Pm=function(a){if(null!=a){var b=Im(a.getIssue());if(null==b)Tk("No issue. issueFetchResponseToJs");else{var c={},d=Zi(a,4,Nm).entries();d=r(d);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;(f=zm(f))&&(c[e]=f)}d=Tra(m(a,Om,5));return{issue:b,events:xb(a,Om,2).map(Tra).filter(cl),customFields:a.getCustomFieldsList().map(Upa).filter(cl),attachmentMap:c,firstEvent:d}}}},Ura=
function(a){var b=[];a=r(a.entries());for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;b.push({issueId:c,relatedChildren:d.getIssueRelationshipsList().map(Rqa),totalChildCount:d.getTotalSize()})}return b},Vra=function(a){var b=new Qm;b.setIssueIdsList(a.issueIds.map(String));b.setActionsList(a.actions.map($qa));return b},Wra=function(a){return{issueId:Number(a.getIssueId()),message:a.getMessage()}},Xra=function(a){for(var b={},c=r(Zi(a,1,gm).entries()),d=c.next();!d.done;d=
c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b[Number(d)]=Im(e)}c={};d=r(Zi(a,3,sm).entries());for(e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c[Number(e)]=rm(f)}var h;a=(null!=(h=xb(a,Rm,2))?h:[]).map(Wra);return{affectedIssues:b,componentMap:c,errors:a}},Yra=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(Jm)},Sra=function(a){var b=ub(a,Sm);switch(b){case 2:return a=Al(a,Tm,2,Sm),0!==a.getCommentNumber()?{type:"issueReference",
issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber()}:{type:"issueReference",issueId:String(a.getIssueId())};case 1:return{type:"hyperlink",href:Al(a,Um,1,Sm).getHref()};case 0:throw Error("Sc");default:return sh(b)}},Zra=function(a){return a?"string"!==typeof a?a:Zl[a]:0},$ra=function(a){return{readTimestamp:fj(a,1)}},asa=function(a){var b=a.getIssueState();b={componentId:b.getComponentId(),type:Fqa[b.getType()],status:Iqa[b.getStatus()],priority:Gqa[b.getPriority()],severity:Hqa[b.getSeverity()]};
return{issueId:a.getIssueId(),issueState:b,modifiedTime:Wk(a.getModifiedTime()),teamId:a.getTeamId()}},bsa=function(a){switch(a){case "PLAIN":return 1;case "MARKDOWN":return 2;case "LITERAL":return 3;case void 0:case "UNSPECIFIED_FORMATTING_MODE":return 0;default:return sh(a,"Unexpected formatting mode")}},csa=function(a){var b=void 0;a.hasCommentContentVerdict()&&(b=Kl(a.getCommentContentVerdict()));return{issueId:a.getIssueId(),commentNumber:a.getCommentId(),comment:a.getComment(),commentContentVerdict:b,
formattingMode:Mm[a.getFormattingMode()],lastEditorUser:Ql(m(a,Tl,8)),lastModified:String(a.getLastModified()),version:a.getVersion(),unlinkifiedComment:W(a,7),entityStatus:Kra(a.getEntityStatus()),piiRetentionState:Il(a.getPiiRetentionState()),piiRetention:Wl[a.getPiiRetention()],etag:a.getEtag()}},dsa=function(a){var b;return(null!=(b=a.getIssueCommentsList())?b:[]).map(csa)},esa=function(a){var b=new Vm,c=new Wm;c.setContent(Qra(rh(a)));b.setLiteralFormat(c);return b},fsa=function(a){var b=a.getIssuesList();
if(b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&(d=Im(d))&&c.push(d)}else c=[];b=a.getNumTotalResults();var e=Zi(a,3,sm);d={};e=r(e.entries());for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d[Number(f)]=rm(h)}f=Zi(a,4);if(void 0!==f)for(e={},f=r(f.entries()),h=f.next();!h.done;h=f.next()){var k=r(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()}},gsa=function(a){var b={};if(null==a)return b;a=r(xb(a,Xm,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getResource(),e={id:d,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},hsa=function(a){switch(a){case 1:return"admin";case 2:return"writer";case 3:return"appender";case 4:return"reader"}},isa=function(a){var b=
{};a=r(xb(a,Xm,1));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=hsa(c.getRelation());if(d){var e=void 0,f=null!=(e=b[c.getResource()])?e:{};f[d]=!0;b[c.getResource()]=f}}return b},jsa=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})},ksa=function(a){if(a&1){var b=y();F(0,"div",2)(1,"button",3);J("click",function(){z(b);var c=K();return A(c.action())});P(2);G()()}a&2&&(a=K(),B(2),Ke(a.data.action))},lsa=function(){},
msa=function(){return new Ym},nsa=function(a){a&1&&(F(0,"span",6),P(1),G());a&2&&(a=K(),B(1),Ke(a.data.message))},osa=function(a){a&1&&H(0,"span",7);a&2&&(a=K(),D("innerHtml",a.data.htmlMessage,Td))},qsa=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(psa(c.snackBarRef))});P(1);G()}a&2&&(a=K(),B(1),Je(" ",a.data.actionLabel," "))},rsa=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});P(1);
G()}a&2&&(a=K(),B(1),Je(" ",a.data.dismissLabel," "))},ssa=function(a){if(a&1){var b=y();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.snackBarRef.dismiss())});H(1,"mat-icon",10);G()}},tsa=function(a){var b;return void 0!==(null==(b=a.error)?void 0:b.message)},Zm=function(a){return!!a&&Ha(a)&&(!!a.data&&void 0!==a.data.message||tsa(a))},$m=function(a){return a.data&&void 0!==a.data.message&&a.data&&a.data.message?a.data.message:tsa(a)&&a.error&&a.error.message?a.error.message:""},
vsa=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a)&&(a=xb(new usa(a),an,1))&&1===a.length)return Pm(a[0])},cn=function(a,b){return bn("issues/:issueId",{id:a,params:b})},en=function(a){return dn("issues",{params:a})},wsa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},xsa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},ysa=function(a,b){return bn("components/:componentId/manage",{id:a,tab:b})},
zsa=function(a){return a?dn("settings/:settingsTab?",{id:a,token:":settingsTab?"}):dn("settings")},bn=function(a,b){b=void 0===b?{}:b;return null==b.id?"":dn(a,b)},dn=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=Asa(f,d));e&&(f=f+"#"+e);return f},fn=function(a,b){b=(void 0===b?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},gn=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},Bsa=function(a){return{path:"/components/"+a}},Csa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},hn=function(a){return{path:"/slos/"+a+"/edit"}},Dsa=function(a){for(var b={},c=r(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},Fsa=function(a){if(!a.getType())throw Error("Xc");return{type:Esa[a.getType()],
customFieldId:Yk(a.getCustomFieldId()),customFieldName:$k(a.getCustomFieldName())}},Hsa=function(a){var b=new jn;void 0!==a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));void 0!==a.customFieldName&&l(b,3,a.customFieldName);void 0!==a.type&&b.setType(Gsa[a.type]);return b},Isa=function(a){var b=a.getField();if(!b)throw Error("Yc");if(!a.getDirection())throw Error("Zc");return{field:Fsa(b),direction:1===a.getDirection()?"ASCENDING":"DESCENDING"}},Jsa=function(a){var b=new kn;b.setField(Hsa(a.field));
b.setDirection("ASCENDING"===a.direction?1:2);return b},Ksa=function(a){var b=new ln;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(Hsa));var d;b.setSortOrderList((null!=(d=a.sortOrder)?d:[]).map(Jsa));void 0!==a.etag&&b.setEtag(a.etag);null!==a.ownerUser&&b.setOwnerUser(Ul(a.ownerUser));
var e;b.setAdminUsersList((null!=(e=a.adminUsers)?e:[]).map(Ul));return b},mn=function(a){if(!a.getHotlistId())throw Error("$c");if(!a.getName())throw Error("ad");if(!a.getCreatedTimeMicros())throw Error("bd");if(!a.getModifiedTimeMicros())throw Error("cd");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(Fsa),sortOrder:(null!=(e=a.getSortOrderList())?e:[]).map(Isa),etag:a.getEtag(),ownerUser:Ql(a.getOwnerUser())||null,adminUsers:Sl(a.getAdminUsersList())}},Lsa=function(a){var b;return(null!=(b=a.getHotlistsList())?b:[]).map(mn)},Msa=function(a){var b;return(null!=(b=xb(a,ln,1))?b:[]).map(mn)},Osa=function(a){a=a.getFavorite();return{user:Ql(a.getUser()),resourceType:Nsa[a.getResourceType()],resourceId:Number(a.getResourceId()),name:a.getName()}},
Psa=function(a){var b,c;return{searchId:Number(lj(a,1)),ownerUser:Ql(a.getOwnerUser()),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:(null!=(b=a.getSortOrderList())?b:[]).map(Isa),displayColumn:(null!=(c=a.getDisplayColumnList())?c:[]).map(Fsa),adminUsers:Sl(a.getAdminUsersList())}},Qsa=function(a){var b;return(null!=(b=xb(a,nn,1))?b:[]).map(Psa)},Rsa=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Ql(a.getOwnerUser()))?
b:null,starred:a.getStarred(),resourceType:a.getResourceType()}},Ssa=function(a){var b;return{id:a.getId(),name:a.getName(),description:a.getDescription(),ownerUser:Ql(a.getOwnerUser()),starred:a.getStarred(),sublinks:(null!=(b=xb(a,on,6))?b:[]).map(Rsa)}},Tsa=function(a){var b,c,d,e;return{hotlists:(null!=(b=a.getHotlistsList())?b:[]).map(Rsa),bookmarkGroups:(null!=(c=a.getBookmarkGroupsList())?c:[]).map(Ssa),archivedHotlists:(null!=(d=xb(a,on,3))?d:[]).map(Rsa),archivedBookmarkGroups:(null!=(e=
xb(a,pn,4))?e:[]).map(Ssa)}},qn=function(a){a=void 0===a?{}:a;return{headers:a.headers||{},params:Object.assign({},a.params,Usa)}},Vsa=function(a){var b=Object.assign({},a);a=a.issue;b=(delete b.issue,b);return Object.assign({},b,{issueId:String(a.issueId)})},Wsa=function(a,b){var c;a=null==(c=a.componentPathInfo)?void 0:c.allCustomField;if(!a)return!0;c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$customField$1669:c.$jscomp$loop$prop$customField$1669},d=a.next())if(c.$jscomp$loop$prop$customField$1669=
d.value,c.$jscomp$loop$prop$customField$1669.required){d=!!c.$jscomp$loop$prop$customField$1669.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$1669.customFieldId}}(c));if(!d&&!h)return!1}return!0},Xsa=function(a){return"component"===(null==a?void 0:a.name)},Zsa=function(a){return null==a?!1:Ysa.has(a.name)},$sa=function(a){return"hotlist"===(null==a?
void 0:a.name)},ata=function(a){return null==a?!1:null!=a.href&&null!=a.value},bta=function(a){return Array.isArray(a)?a.every(ata):!1},cta=function(a){var b=new Set;if(null==a||!$sa(a))return b;a=[].concat(v(a.added||[]),v(a.removed||[]));a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,ata(c)&&b.add(String(c.value));return b},rn=function(a,b){return function(c,d){return dta(c,a,b,d)}},dta=function(a,b,c,d){d=void 0===d?"":d;return""===d?a:[].concat(v(a)).sort(function(e,f){var h="asc"===d?
1:-1;return c(b(e),b(f))*h})},eta=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},fta=function(a,b){return null==a||null==b?null==a&&null==b?0:null==a?1:null==b?-1:0:a.localeCompare(b)},sn=function(a){return!(null==a||!a.commentNumber)},gta=function(a){var b;return 0<(null==(b=a.attachments)?void 0:b.length)},hta=function(a){var b=new Set;if(!Array.isArray(a)||0===a.length)return b;var c=function(e){null!=
e&&0<Number(e)&&b.add(e)};a=a.flatMap(function(e){return[].concat(v((null==e?void 0:e.preDiffs)||[]),v((null==e?void 0:e.postDiffs)||[]))}).filter(Xsa);a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c(d.oldValue),c(d.newValue);return b},ita=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(v(a.slice(0,d)),[c],v(a.slice(d+1)))},jta=function(a){var b=new Set;if(null==a)return b;a=a.map(function(e){return[].concat(v(e.preDiffs||
[]),v(e.postDiffs||[]))}).reduce(function(e,f){return e.concat(f)},[]).map(cta);a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},kta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==(d=c.snapshot)?void 0:d[0];if(null==a)return b;c=r(a.hotlistId||[]);for(d=c.next();!d.done;d=c.next())b.add(String(d.value));return b},lta=function(a){var b=new Set,c,d;a=null==a?void 0:null==(c=a.issue)?void 0:null==
(d=c.snapshot)?void 0:d[0];if(null==a||null==a.componentId)return b;b.add(String(a.componentId));return b},tn=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},mta=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("-")},nta=function(a){if(null==a)return"";var b=a.attachments.map(mta).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("-")},un=function(a){return a.map(function(b){return b.commentNumber}).filter(cl).reduce(function(b,c){return Math.max(b,
c)},1)},ota=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||nta(d)!==nta(e)))return!1}return!0},wn=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=vn[a])?void 0:d.open)?e:!1},xn=function(a){return null==a.isArchived?!1:!a.isArchived},qta=function(a){return rn(function(b){var c,
d;return null!=(d=pta[Yl[null==(c=a(b))?void 0:c.snapshot[0].status]])?d:0},eta)},rta=function(a){return rn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].assigneeUser)?void 0:d.emailAddress},fta)},sta=function(a){return rn(function(b){var c;return null==(c=a(b))?void 0:c.snapshot[0].type},fta)},tta=function(a){return rn(function(b){var c,d;return null==(c=a(b))?void 0:null==(d=c.snapshot[0].reporterUser)?void 0:d.emailAddress},fta)},uta=function(a){return rn(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},eta)},vta=function(a){var b=a.map(function(c){return X(c,2,0)});return b.includes(4)?3:b.includes(3)?0:b.includes(2)?4:a.map(function(c){return X(c,1,0)}).includes(3)?1:b.includes(1)?5:2},wta=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"}},xta=function(a){var b=a.newEditors,
c=a.newImplicitUsers,d=a.isExternalSession,e=a.issueId,f=a.actionIssueId;a=vta(a.userPrincipals);return{title:"Allow "+(1===a?"members of the group to ":wta(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)+"."}},yn=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,"+")},yta=function(a){return{noAccessEmails:ob(a,1),unknownEmails:ob(a,2)}},zta=function(a){if(null!=a){var b={},c;if(c=a.getUser())b.user=Ql(c);if(c=a.getGroup())b.group=Ql(c);if(c=a.getAlias())b.alias=c;return b}},An=function(a){var b=new zn;if(Kk(a))return b.setUser(Ul(a.user)),b;if(Lk(a))return b.setGroup(Ul(a.group)),b;void 0!==a.alias&&b.setAlias(a.alias);return b},Cta=function(a){var b=
Ata[a.getInheritance()],c=Bta[a.getImplicitAccess()],d,e,f,h,k,q,u,x,E,I;return{inheritance:b,admins:Bn(null!=(d=a.getAdminsList())?d:[]),appenders:Bn(null!=(e=a.getAppendersList())?e:[]),editors:Bn(null!=(f=a.getEditorsList())?f:[]),readers:Bn(null!=(h=a.getReadersList())?h:[]),restrictedReaders:Bn(null!=(k=a.getRestrictedReadersList())?k:[]),restrictedPlusReaders:Bn(null!=(q=a.getRestrictedPlusReadersList())?q:[]),inheritedAdmins:Bn(null!=(u=a.getInheritedAdminsList())?u:[]),implicitAppenders:Bn(null!=
(x=a.getImplicitAppendersList())?x:[]),implicitEditors:Bn(null!=(E=a.getImplicitEditorsList())?E:[]),implicitReaders:Bn(null!=(I=a.getImplicitReadersList())?I:[]),implicitAccess:c}},Bn=function(a){return a.map(zta).filter(cl)},Cn=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?(Mpa("Invalid principal: ",
a),""):e+":"+f},Dta=function(a){return(null!=a?a:[]).map(Cn)},Fta=function(a){return(null!=a?a:[]).map(Eta)},Eta=function(a){var b=r(a.split(":"));a=b.next().value;b=b.next().value;if(!a||!b)throw Error("dd`"+b);switch(Number(a)){case 2:return{user:{emailAddress:b}};case 3:return{group:{emailAddress:b}};case 4:return{alias:b};default:throw Error("ed`"+b);}},Dn=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 "ISSUE":return"issues/"+b;case "ISSUE_DEFAULTS":return"components/"+b+"/issueDefaults";case "SLO":return"slos/"+b;case "TEAM":return"teams/"+b;default:throw Error("fd`"+a);}},Gta=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)}},Hta=function(a){function b(){var e,f,h,k;return hf(function(q){if(1==q.nextAddress){if(d||0===c.length)return q.return();d=!0;e=
[].concat(v(c));c=[];f=r(e);h=f.next()}if(3!=q.nextAddress){if(h.done)return d=!1,jf(q,b(),0);k=h.value;return jf(q,a.apply(null,v(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=xc.apply(0,arguments),f=new Nna;c.push({args:e,returnValue:f});b();return f.promise}},Ita=function(a){var b=!1;return function(){var c=xc.apply(0,arguments);if(!b)return b=!0,a.apply(null,v(c))}},Jta=function(a){return!(null==a||!a.relatedChildren.length)},
Lta=function(a,b){var c=[].concat(v(a));a=new Set(a.map(function(h){return h.targetIssueId}));var d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$newItem$1675:d.$jscomp$loop$prop$newItem$1675},e=b.next())if(d.$jscomp$loop$prop$newItem$1675=e.value,!a.has(d.$jscomp$loop$prop$newItem$1675.targetIssueId)){e=c.findIndex(function(h){return function(k){return k.targetIssueId===h.$jscomp$loop$prop$newItem$1675.afterIssueId}}(d));var f=void 0;f=d.$jscomp$loop$prop$newItem$1675.afterIssueId?-1===
e?c.length:e+1:0;c.splice(f,0,d.$jscomp$loop$prop$newItem$1675);a.add(d.$jscomp$loop$prop$newItem$1675.targetIssueId)}return Kta(c)},Mta=function(a,b){return Kta(a.filter(function(c){return c.targetIssueId!==b}))},Kta=function(a){for(var b=[],c=r(a.entries()),d=c.next();!d.done;d=c.next()){var e=r(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},Nta=function(a){var b=
new Map,c={};a=r(a);for(var d=a.next();!d.done;c={$jscomp$loop$prop$previousOperation$1677:c.$jscomp$loop$prop$previousOperation$1677},d=a.next()){var e=d.value;d=e.issues.map(function(f){return f.issueId}).join(",");c.$jscomp$loop$prop$previousOperation$1677=b.get(d);c.$jscomp$loop$prop$previousOperation$1677?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:c.$jscomp$loop$prop$previousOperation$1677.issues,eventTimestamps:[].concat(v(c.$jscomp$loop$prop$previousOperation$1677.eventTimestamps),
v(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(c.$jscomp$loop$prop$previousOperation$1677.done.resolve).catch(function(f){return function(h){f.$jscomp$loop$prop$previousOperation$1677.done.reject(h);throw h;}}(c)),b.set(d,e)):b.set(d,e)}b=[].concat(v(b.values()));c={};a=r(b);for(d=a.next();!d.done;c={$jscomp$loop$prop$operation$1443$1679:c.$jscomp$loop$prop$operation$1443$1679},d=a.next())c.$jscomp$loop$prop$operation$1443$1679=d.value,
c.$jscomp$loop$prop$operation$1443$1679.newRelations=c.$jscomp$loop$prop$operation$1443$1679.newRelations.map(function(f){return function(h){return f.$jscomp$loop$prop$operation$1443$1679.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,v(f.issues.map(function(u){return k.findIndex(function(x){return x.targetIssueId===u.issueId})})));h=Math.min.apply(Math,
v(h.issues.map(function(u){return q.findIndex(function(x){return x.targetIssueId===u.issueId})})));return f===h?0:f<h?-1:1})},Fn=function(a){var b=a.getTrackerId(),c=a.getName(),d=a.getComponentId(),e=ob(a,4);a=m(a,En,5);a=null!=a?{logoUrl:a.getLogoUrl(),theme:Ota[a.getTheme()]}:void 0;return{trackerId:b,name:c,componentId:d,associatedTrackerIds:e,branding:null!=a?a:null}},Pta=function(a){var b;return(null!=(b=a.getTrackersList())?b:[]).map(Fn)},Qta=function(a){return{trackers:a.getTrackersList().map(Fn),
nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},Rta=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},Sta=function(a){var b;return null!=(b=Yk(a))?b:null},Gn=function(a){return!!a&&Tta.test(a)&&!Uta.test(a)},Hn=function(a){a=void 0===a?"":a;return a.endsWith("@prod.google.com")||a.endsWith("-robots@google.com")||Vta(a)},Vta=function(a){return Wta.some(function(b){return a.endsWith(b)})},Xta=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}},Yta=function(a){return a?Mk(a.replace(/_/g," ").toLowerCase()):""},Zta=function(a){return a?a.join(", "):""},$ta=function(a,b){if(!a)return In("");if(!b)return In(a);b=b.split(" ").map(Nma);b=b.filter(function(h){return!!h});b=b.map(Jn);if(0===b.length)return In(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(Kn("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Ln(c)},aua=function(a){return a?"Yes":"No"},bua=function(a){var b;a?b=Array.isArray(a)&&a.every(Jma)?a.join(" > "):a.componentPathInfo&&a.componentPathInfo.componentPathName?a.componentPathInfo.componentPathName.join(" > "):"":b="";return b},cua=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},dua=function(a){var b;return(null==(b=vn[a])?void 0:b.displayValue)||
""},eua=function(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.resolved||!c.status||void 0===c.archived)return;var d=void 0;(null==(d=vn[c.status])?0:d.open)&&!c.archived&&b++}return b},fua=function(a){return null!=a?a:"-"},gua=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},hua=function(a){switch(a){case "EXTERNAL_PARTNER":return"Visible to Partners";
case "EXTERNAL_PUBLIC":return"Visible to Public";default:return""}},iua=function(a){if(a&&Gn(a))return a},Mn=function(a){return null==a?"":String(a)},jua=function(a){var b;return null!=(b=null==a?void 0:a.filter(function(c){return!!c.trim()}).join(", "))?b:""},kua=function(a){var b=a.name;if(null!=b&&(a=Math.round(a.duration),!isNaN(a))){var c=r(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}}},mua=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(lua);if(null!=b){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},qua=function(){var a=window.performance.getEntries(),b=mua(a);if(null==b)return[];var c=b.startTime;return a.filter(nua).filter(oua).filter(pua).filter(function(d){return d.startTime<=c})},lua=function(a){var b=a.name;return"measure"===a.entryType&&0===b.indexOf("browserStart")},nua=function(a){return 0!==
a.name.indexOf("Zone")},pua=function(a){return"resource"===a.entryType},rua=function(a){return"xmlhttprequest"===a.initiatorType},oua=function(a){return null==a.name.match(/\.html$/)},sua=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}},tua=function(a){if(null!=a&&!(3E4<=a.duration))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},
wua=function(){if(!uua){var a=qua(),b=a.filter(function(c){return!rua(c)}).reduce(sua,vua());Nn("r-until-cf","asset","count",b.count);Nn("r-until-cf","asset","transferSize",b.transferSize);Nn("r-until-cf","asset","duration",b.duration);Nn("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(rua).reduce(sua,vua());Nn("r-until-cf","xhr","count",a.count);Nn("r-until-cf","xhr","transferSize",a.transferSize);Nn("r-until-cf","xhr","duration",a.duration);uua=!0}},On=function(a,b){xua({hitType:"event",
eventCategory:a,eventAction:b})},Nn=function(a,b,c,d){xua({hitType:"event",eventCategory:a,eventAction:b,eventLabel:c,eventValue:d})},xua=function(a){null!=a&&("function"===typeof Qn.ga?Qn.ga("send",a):yua&&Kpa("[stub ga.ts] ga('send')",a))},Rn=function(a,b){"function"===typeof Qn.ga?Qn.ga("set",a,b):yua&&Kpa("[stub ga.ts] ga('set', '"+a+"', "+b+")")},zua=function(a,b){if(a&1){var c=y();F(0,"a",8);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.clickSegment.emit(d.name||d.path))});P(1);
G()}a&2&&(a=b.$implicit,D("href",a.path,Ud),B(1),Je(" ",a.name||a.path," "))},Aua=function(a){a&1&&(ze(0),F(1,"button",4),H(2,"mat-icon",5),G(),F(3,"mat-menu",null,6),O(5,zua,2,2,"a",7),G(),Ae());if(a&2){var b=M(4);a=K();B(1);D("matMenuTriggerFor",b);B(4);D("ngForOf",a.segments)}},Bua=function(a,b){if(a&1){var c=y();ze(0);F(1,"b-fab-segmented",1);J("clickMain",function(f){z(c);var h=K(3);return A(h.trackClick(f))})("clickSegment",function(f){z(c);var h=K(3);return A(h.trackClick(f))});G();Ae()}if(a&
2){a=b.ngIf;b=K().ngIf;var d=K().ngIf,e=K();B(1);D("label",b)("icon",a)("href",e.createIssuePath)("segments",d)}},Cua=function(a){a&1&&(ze(0),O(1,Bua,2,4,"ng-container",0),Q(2,"async"),Ae());a&2&&(a=K(2),B(1),D("ngIf",R(2,1,a.buttonIcon$)))},Dua=function(a){a&1&&(ze(0),O(1,Cua,3,3,"ng-container",0),Q(2,"async"),Ae());a&2&&(a=K(),B(1),D("ngIf",R(2,1,a.buttonLabel$)))},Iua=function(){var a=void 0===a?On:a;var b=Date.now(),c=Sn(b);Sn(Eua())!==c?a("retention","first-visit"):(c=Sn(b),Sn(Eua())===c&&1===
Fua()&&a("retention","second-visit"));a=Sn(b);Sn(Eua())!==a?Gua(1):(a=Fua()||0,Gua(a+1));Hua(b)},Sn=function(a){if(null!=a)return(new Date(a)).toLocaleDateString()},Jua=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},Kua=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new km;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},
Tn=function(a){if(!a||!a.seconds&&!a.nanos)return null;var b=new tj;a.seconds&&b.setSeconds(a.seconds);a.nanos&&b.setNanos(a.nanos);return b},Lua=function(a){if(!a)return null;var b=new Ll;a.startTime&&b.setStartTime(Tn(a.startTime));a.targetTime&&b.setTargetTime(Tn(a.targetTime));a.endTime&&b.setEndTime(Tn(a.endTime));return b},Mua=function(a){if(!a)return null;var b=new lm;a.assignmentBounds&&b.setAssignmentBounds(Lua(a.assignmentBounds));a.responseBounds&&b.setResponseBounds(Lua(a.responseBounds));
a.closureBounds&&b.setClosureBounds(Lua(a.closureBounds));return b},Un=function(a){for(var b=r(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},Nua=function(a){return a.map(Un)},Oua=function(a){var b={name:a.getName(),description:a.getDescription()};1===ub(a,Vn)?b.hotlistId=Number(a.getHotlistId()):4===ub(a,Vn)&&(b.savedSearchId=Number(lj(a,wb(a,Vn,4))));return b},Wn=function(a){var b,c;return{bookmarkGroupId:Number(a.getBookmarkGroupId()),
name:a.getName(),description:a.getDescription(),ownerUser:null!=(b=Ql(a.getOwnerUser()))?b:null,archived:a.getArchived(),item:(null!=(c=a.getItemList())?c:[]).map(Oua),adminUsers:Sl(a.getAdminUsersList())}},Pua=function(a){var b=new Xn;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&&Yn(b,4,Vn,String(a.savedSearchId));return b},Qua=function(a){var b;return(null!=(b=a.getBookmarkGroupsList())?
b:[]).map(Wn)},Rua=function(a){if(a&1){var b=y();F(0,"button",5);J("click",function(){z(b);var c=K();return A(c.dialogRef.close(!1))});P(1);G()}a&2&&(a=K(),B(1),Je(" ",a.cancelButtonText," "))},Sua=function(a){a&1&&Be(0)},Tua=function(a){a&1&&Be(0)},Uua=function(a){a&1&&(ze(0),O(1,Tua,1,0,"ng-container",1),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.content))},Vua=function(a){a&1&&P(0," Archived ")},Wua=function(a){a&1&&(F(0,"button",16),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",
17),G());if(a&2){K();var b=M(5);D("matMenuTriggerFor",b)}},Xua=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});P(1," Unstar ");G()}},Yua=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unarchive())});P(1," Unarchive ");G()}},Zua=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});P(1,
" Open ");G();F(2,"button",18);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupDashboard(c.id))});P(3," Dashboard ");G();F(4,"button",18);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.openEditBookmarkGroup(c.id))});P(5," Settings ");G();O(6,Xua,2,0,"button",19);O(7,Yua,2,0,"button",19)}a&2&&(a=K(2).$implicit,B(6),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()))},$ua=function(a){a&1&&(F(0,"div",11)(1,"span",12),P(2),G(),O(3,Wua,2,1,"button",
13),F(4,"mat-menu",null,14),O(6,Zua,8,2,"ng-template",15),G()());a&2&&(a=K().$implicit,qe("id","bv2-user-archived-bookmarkgroup-item-",a.id,""),B(2),Ke(a.name),B(1),D("ngIf",a))},ava=function(a,b){if(a&1){var c=y();F(0,"li",22)(1,"a",23);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",12);P(3);G()()()}a&2&&(a=b.$implicit,b=K(2).$implicit,te("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item","HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item",
"SAVED_SEARCH"==a.type),Rea("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),B(1),D("href",a.href,Ud),B(2),Je(" ",a.name," "))},bva=function(a){a&1&&(F(0,"ul",20),O(1,ava,4,12,"li",21),G());a&2&&(a=K().$implicit,B(1),D("ngForOf",a.items))},cva=function(a,b){a&1&&(F(0,"li",7)(1,"sidebar-zippy",8),O(2,$ua,7,3,"ng-template",null,9,Pf),O(4,bva,2,1,"ng-template",null,10,Pf),G()());if(a&2){a=b.$implicit;var c=M(3),d=M(5);D("title",a.name);B(1);D("header",c)("content",d)}},dva=
function(a){a&1&&(F(0,"button",28),H(1,"mat-icon",17),G());if(a&2){K();var b=M(6);D("matMenuTriggerFor",b)}},eva=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});P(1," Unstar ");G()}},fva=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unarchive())});P(1," Unarchive ");G()}},gva=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K().$implicit,d=K(3);
return A(d.openEditHotlist(c.id))});P(1," Settings ");G();O(2,eva,2,0,"button",19);O(3,fva,2,0,"button",19)}a&2&&(a=K().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()))},hva=function(a,b){if(a&1){var c=y();F(0,"li",24)(1,"a",25);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",12);P(3);G()();O(4,dva,2,1,"button",26);F(5,"mat-menu",null,27);O(7,gva,4,2,"ng-template",15);G()()}a&2&&(a=b.$implicit,te("selected",a.isSelected()),
Ge("id","bv2-user-hotlists-archived-hotlist-item-",a.id,""),D("title",a.name),B(1),D("href",a.href,Ud),B(2),Ke(a.name),B(1),D("ngIf",a))},iva=function(a){a&1&&(F(0,"ul",4),O(1,cva,6,3,"li",5),O(2,hva,8,7,"li",6),G());a&2&&(a=K(2),B(1),D("ngForOf",a.bookmarkGroups),B(1),D("ngForOf",a.hotlists))},jva=function(a){a&1&&(F(0,"div"),H(1,"hr"),F(2,"sidebar-zippy",1),O(3,Vua,1,0,"ng-template",null,2,Pf),O(5,iva,3,2,"ng-template",null,3,Pf),G()());if(a&2){var b=M(4),c=M(6);B(2);D("header",b)("content",c)}},
kva=function(a){a&1&&(Uc(),H(0,"circle",4));if(a&2){a=K();var b=M(1);se("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));oe("r",a._getCircleRadius())}},lva=function(a){a&1&&(Uc(),H(0,"circle",4));if(a&2){a=K();var b=M(1);se("stroke-dashoffset",a._getStrokeDashOffset(),
"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));oe("r",a._getCircleRadius())}},mva=function(){return{diameter:100}},nva=function(a){a&1&&H(0,"mat-spinner",2);a&2&&D("diameter",36)},ova=function(a){a&1&&H(0,"mat-spinner",3);a&2&&D("diameter",16)("strokeWidth",2)},qva=function(a){if(null==pva){var b="undefined"!==typeof document?document.head:null;pva=!(!b||!b.createShadowRoot&&!b.attachShadow)}return pva&&
(a=a.getRootNode?a.getRootNode():null,"undefined"!==typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)?a:null},rva=function(a){if(a&1){var b=y();F(0,"div",0);J("clickOutside",function(){z(b);var c=K();return A(c.closeHovercard$.next())})("mouseenter",function(){z(b);K().isOnHover$.next(!0);return A()})("mouseleave",function(){z(b);K().isOnHover$.next(!1);return A()});Fe(1);G()}a&2&&(a=K(),we(a.className),D("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},sva=function(a,b){a&1&&(F(0,"div",
0,1),Fe(2),G());a&2&&(a=b.id,b=K(),D("id",b.id)("ngClass",b._classList),oe("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},tva=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}},uva=function(a){a&1&&H(0,"b-spinner")},vva=function(a){if(a&1){var b=y();F(0,"b-star-toggle",15);J("starClicked",function(){z(b);var c=K().$implicit,d=K();return A(d.toggleStar(c))});G()}a&2&&(a=K().$implicit,D("starMessage","Star this item")("unStarMessage","Un-star this item")("starred",
a.isStarred))},wva=function(a){a&1&&H(0,"b-hotlist-card",16);a&2&&(a=K().$implicit,D("hotlist",a))},xva=function(a){a&1&&H(0,"b-bookmark-group-card",17);a&2&&(a=K().$implicit,D("bookmarkGroup",a))},yva=function(a,b){a&1&&(F(0,"mat-option",8)(1,"div",9),O(2,vva,1,3,"b-star-toggle",10),F(3,"onedev-hovercard",null,11),O(5,wva,1,1,"b-hotlist-card",12),O(6,xva,1,1,"b-bookmark-group-card",13),G(),F(7,"span",14),P(8),G()()());if(a&2){a=b.$implicit;var c=M(4);b=K();D("value",a);B(1);te("bv2-bookmark-group",
b.showHotlists&&a.isGroup);B(1);D("ngIf",b.shouldShowStar(a));B(3);D("ngIf",!a.isGroup);B(1);D("ngIf",!!a.isGroup);B(1);D("onedevHovercardTrigger",c);B(1);Ke(a.name)}},zva=function(){return Tga(function(){return(0,U.from)(Promise.resolve(void 0))})},Ava=function(a){a&1&&H(0,"a",1)},Bva=function(a){if(a&1){var b=y();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);J("itemSelect",function(c){z(b);var d=K();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;
return A()});G()()()}a&2&&(a=K(),B(2),D("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",!0))},Cva=function(a){if(a&1){var b=y();F(0,"span");P(1,"Bookmark groups");G();F(2,"b-hotlist-search-popup",4);J("itemSelect",function(c){z(b);var d=K();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return A()});G()}a&2&&(B(2),D("showHotlists",!1))},Dva=function(a){a&1&&(F(0,"button",17),J("click",function(c){return c.stopPropagation()}),H(1,"mat-icon",
18),G());if(a&2){K();var b=M(5);D("matMenuTriggerFor",b)}},Eva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.unstar())});P(1," Unstar ");G()}},Fva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.archive())});P(1," Archive ");G()}},Gva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(3).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");
G()}},Hva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupOpen(c.id))});P(1," Open ");G();F(2,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.handleBookmarkGroupDashboard(c.id))});P(3," Dashboard ");G();F(4,"button",19);J("click",function(){z(b);var c=K(2).$implicit,d=K(3);return A(d.editBookmarkGroup(c.id))});P(5," Settings ");G();O(6,Eva,2,0,"button",20);O(7,Fva,2,0,"button",20);O(8,
Gva,2,0,"button",20)}a&2&&(a=K(2).$implicit,B(6),D("ngIf",a.isUnstarable()),B(1),D("ngIf",a.isEditable()),B(1),D("ngIf",!a.isPreferredHomepage()))},Iva=function(a){a&1&&(F(0,"div",12)(1,"span",13),P(2),G(),O(3,Dva,2,1,"button",14),F(4,"mat-menu",null,15),O(6,Hva,9,3,"ng-template",16),G()());a&2&&(a=K().$implicit,qe("id","bv2-user-bookmarkgroup-item-",a.id,""),B(2),Ke(a.name),B(1),D("ngIf",a))},Jva=function(a){a&1&&(F(0,"button",27),H(1,"mat-icon",18),G());if(a&2){K();var b=M(6);D("matMenuTriggerFor",
b)}},Kva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});P(1," Unstar ");G()}},Lva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");G()}},Mva=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var c=K().$implicit,d=K(5);"HOTLIST"===c.type?d.location.url(d.paths.editHotlist(c.id)):d.location.url(d.paths.editSavedSearch(c.id));
return A()});P(1," Settings ");G();O(2,Kva,2,0,"button",20);O(3,Lva,2,0,"button",20)}a&2&&(a=K().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",!a.isPreferredHomepage()))},Nva=function(a,b){if(a&1){var c=y();F(0,"li",23)(1,"a",24);J("click",function(d){var e=z(c).$implicit,f=K(5);return A(f.onAnchorClick(e.href,d))});F(2,"span",13);P(3);G()();O(4,Jva,2,1,"button",25);F(5,"mat-menu",null,26);O(7,Mva,4,2,"ng-template",16);G()()}a&2&&(a=b.$implicit,b=K(2).$implicit,te("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",
"HOTLIST"==a.type)("bv2-bookmark-group-saved-search-item","SAVED_SEARCH"==a.type),Rea("id","bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id,""),D("title",a.name),B(1),D("href",a.href,Ud),B(2),Je(" ",a.name," "),B(1),D("ngIf",b))},Ova=function(a){a&1&&(F(0,"ul",21),O(1,Nva,8,13,"li",22),G());a&2&&(a=K().$implicit,B(1),D("ngForOf",a.items))},Pva=function(a,b){a&1&&(F(0,"li",8)(1,"sidebar-zippy",9),O(2,Iva,7,3,"ng-template",null,10,Pf),O(4,Ova,2,1,"ng-template",null,11,Pf),G()());if(a&2){a=b.$implicit;
var c=M(3),d=M(5);D("title",a.name);B(1);D("header",c)("content",d)("expanded",!1)}},Qva=function(a){a&1&&(F(0,"ul",6),O(1,Pva,6,4,"li",7),G());a&2&&(a=K(2),B(1),D("ngForOf",a.bookmarkGroups))},Rva=function(a){a&1&&O(0,Qva,2,1,"ul",5);a&2&&(a=K(),D("ngIf",a.bookmarkGroups))},Sva=function(a){if(a&1){var b=y();F(0,"span");P(1,"Hotlists");G();F(2,"b-hotlist-search-popup",4);J("itemSelect",function(c){z(b);var d=K();Zn(d.analytics,"hotlistSearch","goToHotlist");d.location.url(c.href);return A()});G()}a&
2&&(B(2),D("showGroups",!1))},Tva=function(a){a&1&&(F(0,"button",14),H(1,"mat-icon",15),G());if(a&2){K();var b=M(6);D("matMenuTriggerFor",b)}},Uva=function(a){if(a&1){var b=y();F(0,"button",16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.unstar())});P(1," Unstar ");G()}},Vva=function(a){if(a&1){var b=y();F(0,"button",16);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");G()}},Wva=function(a){if(a&1){var b=y();F(0,"button",
16);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditHotlist(c.id))});P(1," Settings ");G();O(2,Uva,2,0,"button",17);O(3,Vva,2,0,"button",17)}a&2&&(a=K().$implicit,B(2),D("ngIf",a.isUnstarable()),B(1),D("ngIf",!a.isPreferredHomepage()))},Xva=function(a,b){if(a&1){var c=y();F(0,"li",8)(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(3);return A(f.onAnchorClick(e.href,d))});F(2,"span",10);P(3);G()();O(4,Tva,2,1,"button",11);F(5,"mat-menu",null,12);O(7,Wva,4,2,"ng-template",
13);G()()}a&2&&(a=b.$implicit,te("selected",a.isSelected()),Ge("id","bv2-user-hotlists-hotlist-item-",a.id,""),D("title",a.name),B(1),D("href",a.href,Ud),B(2),Ke(a.name),B(1),D("ngIf",a))},Yva=function(a){a&1&&(F(0,"ul",6),O(1,Xva,8,7,"li",7),G());a&2&&(a=K(2),B(1),D("ngForOf",a.hotlists))},Zva=function(a){a&1&&O(0,Yva,2,1,"ul",5);a&2&&(a=K(),D("ngIf",a.hotlists))},$va=function(a){return Psa(a.getSearch())},awa=function(a){a&1&&(F(0,"span"),P(1,"Saved searches"),G())},bwa=function(a){if(a&1){var b=
y();F(0,"button",14);J("click",function(){z(b);var c=K(2).$implicit;return A(c.setAsPreferredHomepage())});P(1," Set as homepage ");G()}},dwa=function(a){if(a&1){var b=y();F(0,"button",14);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(d.openEditSavedSearch(c.id))});P(1," Settings ");G();O(2,bwa,2,0,"button",15);F(3,"button",14);J("click",function(){z(b);var c=K().$implicit,d=K(3);return A(cwa(d,c))});P(4," Delete ");G()}a&2&&(a=K().$implicit,B(2),D("ngIf",!a.isPreferredHomepage()))},
ewa=function(a,b){if(a&1){var c=y();F(0,"li",7)(1,"a",8);J("click",function(e){var f=z(c).$implicit,h=K(3);return A(h.onAnchorClick(f.href,e))});F(2,"span",9);P(3);G()();F(4,"button",10);H(5,"mat-icon",11);G();F(6,"mat-menu",null,12);O(8,dwa,5,1,"ng-template",13);G()()}if(a&2){a=b.$implicit;var d=M(7);te("selected",a.isSelected());qe("id","bv2-saved-searches-search-item-",a.id,"");D("title",a.name);B(1);D("href",a.href,Ud);B(2);Ke(a.name);B(1);D("matMenuTriggerFor",d)}},fwa=function(a){a&1&&(F(0,
"ul",5),O(1,ewa,9,7,"li",6),G());a&2&&(a=K(2),B(1),D("ngForOf",a.searches))},gwa=function(a){a&1&&O(0,fwa,2,1,"ul",4);a&2&&(a=K(),D("ngIf",a.searches))},hwa=function(a,b){for(a.has(b)&&a.delete(b);25<=a.size;)a.delete(a.keys().next().value);a.set(b,void 0)},iwa=function(a,b){var c;b=null!=(c=null==b?void 0:b.split(","))?c:[];a.clear();c=r(b);for(b=c.next();!b.done;b=c.next())a.set(b.value,void 0)},jwa=function(a){a&1&&(ze(0),F(1,"button",21),H(2,"mat-icon",22),G(),Ae());if(a&2){K();var b=M(12);B(1);
D("matMenuTriggerFor",b)}},lwa=function(a){if(a&1){var b=y();F(0,"button",23);J("click",function(){z(b);var c=K();return A(kwa(c))});P(1," Set as homepage ");G()}},nwa=function(a){if(a&1){var b=y();F(0,"li")(1,"a",5);J("click",function(c){z(b);var d=K();return A(d.onAnchorClick(d.votedPath,c))});H(2,"mat-icon",24);P(3," Upvoted by me ");G()()}a&2&&(a=K(),te("selected",mwa(a.currentSearch)),B(1),D("href",a.votedPath,Ud))},owa=function(a,b){if(a&1){var c=y();F(0,"li")(1,"a",5);J("click",function(d){var e=
z(c).$implicit,f=K();return A(f.onAnchorClick(e,d))});H(2,"mat-icon",25);P(3," Recently Viewed ");G()()}a&2&&(a=b.$implicit,b=K(),te("selected",!!b.location.path().match(/^\/recent\b/)),B(1),D("href",a,Ud))},pwa=function(a){var b=new om;a.teamId&&b.setTeamId(a.teamId);a.score&&sb(b,2,a.score,0);return b},$n=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.snapshot)?void 0:c[0]},qwa=function(a){var b;return null==a?void 0:null==(b=a.snapshot)?void 0:b[0]},rwa=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},swa=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},twa=function(a){var b;return null==(b=$n(a))?void 0:b.title},uwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.status)?c:void 0},vwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.priority)?c:void 0},wwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?
void 0:b.assigneeUser)?c:void 0},xwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.reporterUser)?c:void 0},ywa=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 Zk(a)},zwa=function(a){var b;a=null==(b=$n(a))?void 0:b.componentId;return Zk(a)},Awa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.ccUsers)?c:[]},Bwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.type)?c:void 0},Cwa=function(a){var b,
c;return null!=(c=null==(b=$n(a))?void 0:b.foundInVersion)?c:[]},Dwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.targetedToVersion)?c:[]},Ewa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.changelist)?c:[]},Fwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.postmortems)?c:[]},Gwa=function(a){var b;return(null==(b=$n(a))?void 0:b.inProd)||!1},Hwa=function(a){var b;return null==(b=$n(a))?void 0:b.effort},Iwa=function(a){var b;return null!=(b=null==a?void 0:
a.customFields)?b:[]},Jwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.customField)?c:[]},Kwa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.issue)?void 0:b.visibleFields)?c:[]},Lwa=function(a){var b,c;return null==a?void 0:null==(b=a.issue)?void 0:null==(c=b.aggregatedData)?void 0:c.voteCount},Mwa=function(a){var b;return null!=(b=null==a?void 0:a.attachmentMap)?b:{}},Nwa=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},Pwa=function(a){return Owa(null==a?void 0:a.issue)},Owa=function(a){var b,c;return null!=(c=null==(b=qwa(a))?void 0:b.isDeleted)?c:!1},Rwa=function(a){return Qwa(null==a?void 0:a.issue)},Qwa=function(a){var b;return null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel},Swa=function(a){var b;return(a=null==a?void 0:null==(b=a.issue)?void 0:b.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},Uwa=function(a){return Twa(null==a?void 0:a.issue)},Twa=function(a){var b,c;return null!=
(c=null==(b=qwa(a))?void 0:b.retention)?c:void 0},Vwa=function(a){var b,c;return null!=(c=null==(b=$n(a))?void 0:b.duplicateOfIssueId)?c:void 0},Xwa=function(a){return Wwa(null==a?void 0:a.issue)},Wwa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.aggregatedData)?void 0:b.retentionState)?c:void 0},Ywa=function(a){var b,c;return null!=(c=Mua(null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.sloStatus))?c:void 0},Zwa=function(a){var b;return Zk(null==a?void 0:null==(b=a.issue.aggregatedData)?
void 0:b.sloId)},$wa=function(a){var b;return null==a?void 0:null==(b=a.issue.aggregatedData)?void 0:b.createdTimeMicros},axa=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.teamSuggestions)?void 0:b.map(pwa))?c:[]},bxa=function(a){return(null==a?void 0:a.effortSpec)&&vl(a.effortSpec)},cxa=function(a){a=bxa(a);return!(!a||!a.getName()&&!a.getInherit())},dxa=function(a){return null==a?void 0:a.componentPathInfo},exa=function(a){a=a.filter(function(b){return null!=b.customFieldId}).map(function(b){return String(b.customFieldId)});
return new Set(a)},fxa=function(a){if(!a)return{};var b,c=r(null!=(b=a.match(RegExp("comment([0-9]+)")))?b:[]);c.next();b=c.next().value;var d;a=r(null!=(d=a.match(RegExp("comment[0-9]+version([0-9]+)")))?d:[]);a.next();d=a.next().value;return{commentNumber:Yk(b),commentVersion:Yk(d)}},gxa=function(a){a&1&&H(0,"bug-screensaver")},hxa=function(a){a&1&&Fe(0)},ixa=function(a){a&1&&Be(0)},jxa=function(a){if(a&1){var b=y();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",
function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});O(2,ixa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=M(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");oe("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},kxa=function(a){a&1&&Be(0)},lxa=function(a){if(a&1){var b=y();F(0,"button",10,8);J("click",
function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});O(2,kxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=M(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");oe("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},mxa=function(a){a&1&&Be(0)},
nxa=function(a){if(a&1){var b=y();F(0,"button",11,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});O(2,mxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=M(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");oe("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);
B(2);D("ngTemplateOutlet",c)}},oxa=function(a){a&1&&Be(0)},pxa=function(a){if(a&1){var b=y();F(0,"button",12,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});O(2,oxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=M(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?
d:"");oe("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},qxa=function(a){a&1&&Be(0)},rxa=function(a){if(a&1){var b=y();F(0,"button",7,8);J("click",function(e){z(b);var f=K();return A(f.onClick(e))})("keydown.enter",function(e){z(b);K().onClick(e);return A(e.stopPropagation())})("keydown.space",function(e){z(b);K().onClick(e);return A(e.stopPropagation())});O(2,qxa,1,0,"ng-container",9);G()}if(a&2){a=K();var c=M(1),d;D("color",a.color)("disabled",a.disabled)("ngClass",
a.size)("matTooltip",null!==(d=a.tooltip)&&void 0!==d?d:"");oe("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);D("ngTemplateOutlet",c)}},sxa=function(a){if(a&1){var b=y();F(0,"b-callout",1)(1,"b-callout-body");P(2," You can now enable real time notifications in ");F(3,"a",2);J("click",function(){z(b);var c=K();Zn(c.analytics,ao.G3N,"linkout","announcement");return A()});P(4,"G3N");G();P(5," settings. ");G();F(6,"b-callout-actions")(7,"button",3);J("click",function(){z(b);var c=K();
return A(c.dismiss())});P(8,"Dismiss");G()()()}},txa=function(){return{color:"accent",clickAction:"check-indeterminate"}},uxa=function(a,b){if(a&1){var c=y();ze(0);F(1,"iframe",6);J("load",function(){z(c);var d=K();return A(d.contentLoaded=!0)});G();Ae()}a&2&&(a=b.$implicit,b=K(),B(1),te("loading",!b.contentLoaded),D("src",a,cea))},vxa=function(a){a&1&&H(0,"mat-spinner",7)},wxa=function(a){var b;return null==(b=a.formContent)?void 0:b.locale},zxa=function(a){var b=wxa(a);b=(b&&xxa.includes(b)?wxa(a):
"en").replaceAll("-","_").toLowerCase();var c;a=(null==(c=a.initializationData)?0:c.useNightlyRelease)?"nightly":"live";return xh(yxa,a,b)},Bxa=function(a,b,c){if(Axa)return Axa;var d=zxa(a);return Axa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(e,f){var h=c.createElement("script");Di(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)})},Cxa=function(a,b,c,d,e){e=void 0===e?!0:e;var f,h,k,q,u;return hf(function(x){switch(x.nextAddress){case 1:return f=Date.now(),jf(x,Bxa(a,c,d),2);case 2:h=x.yieldResult;if(!(e||(null==(q=a.initializationData)?0:q.useNightlyRelease)||(null==(u=a.initializationData)?0:u.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);x.jumpTo(3);break}return jf(x,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=x.yieldResult;case 3:return k.initiateAloha(),x.return(k)}})},
Dxa=function(a,b,c){var d=!0;d=void 0===d?!0:d;var e,f,h,k;hf(function(q){f=e=c||da;if(f.isFormOpened)throw h=Error("jd"),h.name="DuplicateFormError",h;f.isFormOpened=!0;a.callbacks=a.callbacks||{};k=a.callbacks.onClose||function(){};a.callbacks.onClose=function(u){f.isFormOpened=!1;k(u)};try{return q.return(Cxa(a,b,f,e.document,d))}catch(u){throw f.isFormOpened=!1,u;}})},Fxa=function(a,b){return hf(function(c){return c.return(new Promise(function(d){var e=Exa(null!=b?b:"")+"/aloha_form_properties?productId="+
a;ui(e,function(f){f=f.target;var h=null;try{h=bo(co,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new co,h=new eo,h=fo(h,5,!1),h=fo(h,2,!1),h=fo(h,4,!1),h=fo(h,7,!1),h=fo(h,9,!1),h=Gb(f,1,h)}d(h)},"GET","",{},2E3,!0)}))})},Exa=function(a){return Gxa.includes(a)?a:"https://www.google.com/tools/feedback"},Ixa=function(){var a=Object.values(go),b=a.map(function(c){return c-1}).reduce(Hxa,0);a=a.reduce(Hxa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},Jxa=function(a){a=
void 0===a?!1:a;var b=Ixa(),c=b.total,d=b.redundancyRatio;Nn("after-60s","xhr","redundant",b.redundant);Nn("after-60s","xhr","total",c);Nn("after-60s","xhr","redundancyRatio",d);if(a){a=console;c=a.table;d={};for(var e=r(Object.entries(go)),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;1<h&&(d[f]=h)}c.call(a,d);console.log(b)}},Kxa=function(a){if(a&1){var b=y();F(0,"button",4);J("click",function(){z(b);var c=K();return A(c.toggle())});H(1,"mat-icon",5);G()}a&2&&
(a=K(),te("isClosed",a.isClosed),D("ngClass",a.direction)("matTooltip",a.toggleButtonLabel),oe("aria-label",a.toggleButtonLabel),B(1),D("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},Lxa=function(a){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=window.innerHeight},Mxa=function(a){a=a.getBoundingClientRect();return 0<a.bottom&&a.top<window.innerHeight},Nxa=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 U.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(Wf())},Oxa=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,U.merge)((0,U.of)(void 0),(0,U.fromEvent)(window,"scroll").pipe(Tf(500))).pipe(S(function(){return d(a)}),Wf())},Pxa=function(a){a=void 0===a?"":a;var b=void 0===b?48:b;var c=void 0===c?"...":c;var d=[].concat(v(a));if(d.length<=b)return a;a=
b-[].concat(v(c)).length;d=d.slice(0,a).join("");null!=String.prototype.trimEnd&&(d=d.trimEnd());return d+c},Qxa=function(a){a=void 0===a?"":a;var b=new Set([].concat(v('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(v(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return 0===a.length?[]:a.split(/[\s]+/g)},Rxa=function(a){return a.split("").every(function(b){return 1===b.length&&0<=b.charCodeAt(0)&&255>=b.charCodeAt(0)})},Sxa=function(a){a&1&&(ze(0),H(1,"img",3),Q(2,"async"),Ae());
if(a&2){a=K(2);var b;B(1);D("src",R(2,2,a.srcRedirected$),Ud);oe("alt",null!==(b=a.alt)&&void 0!==b?b:"user provided image")}},Txa=function(a){a&1&&(ze(0),O(1,Sxa,3,4,"ng-container",0),Q(2,"async"),Ae());if(a&2){a=K();var b=M(3);B(1);D("ngIf",R(2,2,a.showImage$))("ngIfElse",b)}},Uxa=function(a){if(a&1){var b=y();F(0,"a",4);J("click",function(c){z(b);var d=K();return A(d.trigger(c))})("keydown.enter",function(c){z(b);var d=K();return A(d.trigger(c))});Q(1,"async");Q(2,"async");F(3,"b-glue");H(4,"mat-icon",
5);G();ze(5);P(6);Q(7,"async");Ae();G()}a&2&&(a=K(),D("href",R(1,3,a.src$),Ud)("title",R(2,5,a.src$)),B(6),Ke(R(7,7,a.srcTruncated$)))},Vxa=function(a){a&1&&(H(0,"mat-icon",6),Q(1,"async"));a&2&&(a=K(),Ge("matTooltip","Unable to load image ",R(1,1,a.srcTruncated$),""))},Xxa=function(a){if(a&1){var b=y();F(0,"a",9);J("keydown.enter",function(){z(b);var c=K(2);return A(Wxa(c))})("keydown.space",function(){z(b);var c=K(2);return A(Wxa(c))})("click",function(){z(b);var c=K(2);return A(Wxa(c))});P(1," Dismiss");
G()}},Yxa=function(a){a&1&&(F(0,"div",5)(1,"div",6),H(2,"span",7),O(3,Xxa,2,0,"a",8),G()());a&2&&(a=K(),B(2),D("innerHtml",a.announcement.message,Td),B(1),D("ngIf",a.announcement.dismissible))},Zxa=function(a){if(a&1){var b=y();F(0,"b-callout",10)(1,"b-callout-body");P(2," This version of the Issue Details page will be turned down in May 2022 (");F(3,"a",11);P(4,"info");G();P(5,"). Please ");F(6,"a",12);J("click",function(){z(b);var c=K();return A(c.toggleNewIssueDetailsPage(!0))});P(7,"switch to the new version");
G();P(8,".");H(9,"br");P(10," If there are issues preventing you from switching, please let us know by filing feedback. ");G();F(11,"b-callout-actions")(12,"button",13);J("click",function(){z(b);var c=K();return A(c.startFeedback())});P(13,"Send Feedback");G();F(14,"button",14);J("click",function(){z(b);var c=K();window.sessionStorage.setItem("idpDeprecationDismissTime",String(new Date));c.showIdpDeprecationBanner=!1;return A()});H(15,"mat-icon",15);G()()()}},aya=function(a){if(a&1){var b=y();F(0,
"b-resizable-sidebar",16);J("widthChanged",function(c){z(b);var d=K();c!==d.matSidebarWidth&&(d.matSidebarWidth=c,$xa(d,c));return A()});H(1,"b-sidebar");G()}a&2&&(a=K(),D("size",a.matSidebarWidth)("disableToggleBtn",!0))},bya=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},cya=function(a){a&1&&(F(0,"div",2),P(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. "),
F(2,"a",13),P(3," Learn more "),G()());a&2&&(a=K(2),B(2),D("href",a.getRestrictedAccessHelpLink(),Ud))},eya=function(a){a&1&&(ze(0),O(1,cya,4,1,"div",8),Ae());a&2&&(a=K(),B(1),D("ngIf",dya(a)))},fya=function(a){a&1&&(F(0,"div",2)(1,"span",14),P(2," You do not have access to view this attachment. "),G()())},gya=function(a){a&1&&H(0,"mat-spinner",15)},hya=function(a){return ho({id:a.getId(),std_offset:p(a,3),names:ob(a,2),transitions:ob(a,4)||[]})},iya=function(a,b){b=void 0===b?!1:b;var c=new Ji,d=
new Ji;d.setTime(a);if(d.getTime()<c.getTime())return"Expired";a=12*(d.getFullYear()-c.getFullYear())+(d.getMonth()-c.getMonth());var e=d.getDate()-c.getDate();0>e&&(a--,c=c.clone(),c.add(new io("m",a)),e=Math.floor((d.getTime()-c.getTime())/864E5));d=new io(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"},jya=function(a,b){a&1&&(ze(0),F(1,"time",1),Q(2,"async"),P(3),G(),Ae());a&2&&(a=b.ngIf,b=K(),B(1),D("title",a.title),oe("datetime",R(2,3,b.timestampIso$)),B(2),Ke(a.formatted))},jo=function(a){if(!a)return 0;if(a instanceof tj){var b=a.getSeconds();a=a.getNanos()||0}else b=a.seconds,a=a.nanos;return 1E3*b+a/1E6},ko=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":""))+")"},lya=function(a){if(a&1){var b=y();F(0,"button",10);J("click",function(){z(b);var c=K(2),d=new Ji;c.date=d;c.dateSelectionChange.emit(d);kya(c);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});P(1,"Today");G()}},mya=function(a){if(a&1){var b=y();F(0,"button",11);J("click",function(){z(b);var c=K(2);c.date=void 0;c.dateSelectionChange.emit(void 0);c.dateChange.emit(c.date);return A(c.saveClicked.emit())});P(1,"None");G()}},nya=function(a){a&1&&
(F(0,"div",7),O(1,lya,2,0,"button",8),O(2,mya,2,0,"button",9),H(3,"mat-divider"),G());a&2&&(a=K(),B(1),D("ngIf",a.todayButtonEnabled),B(1),D("ngIf",a.noneButtonEnabled&&!a.required))},oya=function(a){a&1&&H(0,"b-formatted-date-time",4);a&2&&(a=K(),D("date",a.value))},pya=function(a){a&1&&(ze(0),P(1,"---"),Ae())},qya=function(a){a&1&&H(0,"mat-pseudo-checkbox",5);a&2&&(a=K(),D("state",a.selected?"checked":"unchecked")("disabled",a.disabled))},rya=function(a,b){if(a&1){var c=y();F(0,"div",8)(1,"mat-checkbox",
9);J("change",function(){var d=z(c).$implicit,e=K();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 A()})("click",function(d){return d.stopPropagation()});P(2);G()()}a&2&&(a=b.$implicit,b=K(),D("title",b.getDisplayString(a)),B(1),D("checked",!!b.valueMap.get(a))("indeterminate",null===b.valueMap.get(a)),B(1),Je(" ",
b.getDisplayString(a)," "))},tya=function(a){if(a&1){var b=y();F(0,"input",10,11);J("keydown",function(c){z(b);var d=K();"Enter"===c.key&&(sya(d)&&d.addValue(),c.preventDefault());return A()})("click",function(c){return c.stopPropagation()})("ngModelChange",function(c){z(b);var d=K();return A(d.filterValue=c)});G()}a&2&&(a=K(),D("type","REPEATED_NUMERIC"===a.type?"number":"text")("ngModel",a.filterValue)("placeholder","REPEATED_ENUM"===a.type?"Filter values":"Add or filter values"))},uya=function(a){a&
1&&H(0,"mat-divider")},vya=function(a){if(a&1){var b=y();F(0,"div",12);J("click",function(c){z(b);var d=K();c.stopPropagation();return A(d.addValue())});P(1," Add ");G()}},wya=function(a){if(a&1){var b=y();F(0,"div")(1,"b-date-time-input",13);J("valueChange",function(c){z(b);var d=K();return A(d.currentSelectedDate=c)});G();F(2,"div",14);J("click",function(c){z(b);var d=K();c.stopPropagation();if(c=d.currentSelectedDate)d.filterValue=c?c.getMonth()+1+"/"+c.getDate()+"/"+c.getFullYear():"",d.addValue(),
d.currentSelectedDate=void 0;return A()});P(3," Add ");G()()}a&2&&(a=K(),B(1),D("value",a.currentSelectedDate))},xya=function(a){if(a&1){var b=y();F(0,"div",0);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});Fe(1);G()}a&2&&(a=K(),oe("id",a.id))},yya=function(a){a&1&&Be(0)},Aya=function(a){if(a&1){var b=y();F(0,"div",3);J("click",function(){z(b);var d=K();return A(d.select(void 0))});O(1,yya,1,0,"ng-container",4);G()}if(a&2){a=K();var c=M(3);D("option",void 0);oe("aria-selected",
a.isSelected(void 0));B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Ne(4,zya))}},Bya=function(a){a&1&&Be(0)},Dya=function(a){if(a&1){var b=y();F(0,"div",3);J("click",function(){z(b);var e=K().$implicit,f=K();return A(f.select(e))});O(1,Bya,1,0,"ng-container",4);G()}if(a&2){a=K().$implicit;var c=K(),d=M(3);D("option",a);oe("aria-selected",c.isSelected(a));B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Oe(4,Cya,a))}},Eya=function(a,b){a&1&&(ze(0),O(1,Dya,2,6,"div",0),Ae());a&2&&(a=
b.$implicit,B(1),D("ngIf",a))},Fya=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K(2).$implicit,B(1),Je(" ",a," "))},Gya=function(a){a&1&&(F(0,"span",8),P(1,"--"),G())},Hya=function(a){a&1&&(ze(0),O(1,Fya,2,1,"ng-container",5),O(2,Gya,2,0,"ng-template",null,7,Pf),Ae());if(a&2){var b=M(3);a=K().$implicit;B(1);D("ngIf",null!=a)("ngIfElse",b)}},Iya=function(a){a&1&&Be(0)},Jya=function(a){a&1&&O(0,Iya,1,0,"ng-container",4);if(a&2){a=K().$implicit;var b=K();D("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",
Oe(2,Cya,a))}},Kya=function(a){a&1&&(O(0,Hya,4,2,"ng-container",5),O(1,Jya,1,4,"ng-template",null,6,Pf));if(a&2){var b=M(2);a=K();D("ngIf",!a.optionTemplate)("ngIfElse",b)}},Lya=function(a){a&1&&Be(0)},Nya=function(a){a&1&&(ze(0),O(1,Lya,1,0,"ng-container",10),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Oe(2,Mya,a.value)))},Oya=function(a){a&1&&Be(0)},Pya=function(a){a&1&&(ze(0),O(1,Oya,1,0,"ng-container",10),Ae());a&2&&(a=K(2),B(1),D("ngTemplateOutlet",
a.optionTemplate)("ngTemplateOutletContext",Oe(2,Mya,a.value)))},Qya=function(a){a&1&&O(0,Pya,2,4,"ng-container",3);if(a&2){a=K();var b=M(8);D("ngIf",a.optionTemplate)("ngIfElse",b)}},Rya=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K(2),B(1),Je(" ",a.value," "))},Sya=function(a){a&1&&(F(0,"span",12),P(1,"--"),G())},Tya=function(a){a&1&&(O(0,Rya,2,1,"ng-container",3),O(1,Sya,2,0,"ng-template",null,11,Pf));if(a&2){var b=M(2);a=K();D("ngIf",null!=a.value)("ngIfElse",b)}},Uya=function(a){a&1&&(Uc(),F(0,
"svg",13),H(1,"path",14),G())},Vya=function(a){a&1&&(F(0,"div"),P(1," The selected issues have no custom fields in common. "),G())},Wya=function(a){a&1&&(F(0,"span"),P(1,"*"),G())},Xya=function(a){if(a&1){var b=y();F(0,"input",16);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;return A(d.textValue=c)});G()}a&2&&(a=K(2).$implicit,K(),D("ngModel",a.textValue),oe("aria-labelledby",lo(a)))},Yya=function(a){if(a&1){var b=y();F(0,"input",17);J("ngModelChange",function(c){z(b);var d=K(2).$implicit;
return A(d.numericValue=c)});G()}a&2&&(a=K(2).$implicit,K(),D("ngModel",a.numericValue),oe("aria-labelledby",lo(a)))},$ya=function(a){if(a&1){var b=y();F(0,"div")(1,"b-date-time-input",18);J("valueChange",function(e){z(b);var f=K(2).$implicit;K();return A(f.dateValue=e?Qk(e):void 0)});G()()}if(a&2){a=K(2).$implicit;var c=K(),d;B(1);D("value",null!==(d=Zya(a.dateValue))&&void 0!==d?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",lo(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},
bza=function(a){if(a&1){var b=y();F(0,"onedev-single-select",19);J("valueChange",function(d){z(b);var e=K(2).$implicit;return A(e.enumValue=d)});G()}if(a&2){a=K(2).$implicit;K();var c;D("value",a.enumValue)("options",null!==(c=a.allowedValue)&&void 0!==c?c:Ne(3,aza));oe("aria-labelledby",lo(a))}},dza=function(a){if(a&1){var b=y();F(0,"b-bulk-repeated-field-picker",20);J("onSave",function(e){z(b);var f=K(2).$implicit,h=K();return A(cza(h,f.customFieldId,e))});G()}if(a&2){a=K(2).$implicit;var c=K(),
d;D("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",null!==(d=a.allowedValue)&&void 0!==d?d:Ne(3,aza))}},eza=function(a){a&1&&(ze(0,10),O(1,Xya,1,2,"input",11),O(2,Yya,1,2,"input",12),O(3,$ya,2,4,"div",13),O(4,bza,1,4,"onedev-single-select",14),O(5,dza,1,4,"b-bulk-repeated-field-picker",15),Ae());if(a&2){a=K().$implicit;var b=K();D("ngSwitch",b.getCustomFieldType(a));B(1);D("ngSwitchCase","TEXT");B(1);D("ngSwitchCase","NUMERIC");B(1);
D("ngSwitchCase","DATE");B(1);D("ngSwitchCase","ENUM")}},fza=function(a){if(a&1){var b=y();F(0,"span");P(1," Multiple values ");G();F(2,"a",21);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.clearCustomFieldValue(c))});P(3,"X");G()}},gza=function(a,b){a&1&&(F(0,"div",5)(1,"div",6)(2,"label",7),P(3),O(4,Wya,2,0,"span",1),G()(),O(5,eza,6,5,"ng-template",8),O(6,fza,4,0,"ng-template",null,9,Pf),G());if(a&2){a=b.$implicit;var c=M(7);K();B(2);D("matTooltip",(a.description||"")+" [ID: "+
a.customFieldId+"]");oe("id",lo(a));B(1);Je(" ",a.name," ");B(1);D("ngIf",a.required);B(1);D("ngIf",!a.hasMultipleValues)("ngIfElse",c)}},hza=function(a){a&1&&H(0,"img",9);a&2&&(a=K(),D("src",a.person.imageUrl,Ud)("alt",a.person.name+"'s profile picture"))},iza=function(a){a&1&&(F(0,"div",10),P(1),G());a&2&&(a=K(),B(1),Je(" ",a.person.email," "))},jza=function(a){a&1&&(F(0,"div",11)(1,"onedev-chip",12),H(2,"mat-icon",13),P(3),G()());a&2&&(a=K(),B(3),Je("",a.outOfOfficeDescription," "))},kza=function(a){a&
1&&(F(0,"li"),P(1),G());a&2&&(a=K(2),B(1),Ke(a.person.title))},lza=function(a){a&1&&H(0,"li",18)},mza=function(a){a&1&&(F(0,"li"),P(1),G());a&2&&(a=K(2),B(1),Ke(a.person.department))},nza=function(a){a&1&&(ze(0),H(1,"mat-icon",14),F(2,"div",15)(3,"ul",16),O(4,kza,2,1,"li",8),O(5,lza,1,0,"li",17),O(6,mza,2,1,"li",8),G()(),Ae());a&2&&(a=K(),B(4),D("ngIf",a.person.title),B(1),D("ngIf",a.person.title&&a.person.department),B(1),D("ngIf",a.person.department))},oza=function(a){a&1&&(ze(0),H(1,"mat-icon",
19),F(2,"div",15),P(3),G(),Ae());a&2&&(a=K(),B(3),Ke(a.person.location))},pza=function(a){a&1&&(ze(0),H(1,"mat-icon",20),F(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),P(6,"Teams"),G()(),H(7,"li",18),F(8,"li")(9,"a",21),P(10,"Calendar"),G()(),H(11,"li",18),F(12,"li")(13,"a",21),P(14,"CLs"),G()(),H(15,"li",18),F(16,"li")(17,"a",21),P(18,"Readability"),G()()()(),Ae());a&2&&(a=K(),B(5),D("href","https://teams.googleplex.com/"+a.person.ldap,Ud),B(4),D("href","https://www.google.com/calendar/embed?src="+a.person.email+
"&mode=WEEK&showCalendars=0",Ud),B(4),D("href","https://critique.corp.google.com/"+a.person.ldap,Ud),B(4),D("href","https://icanread.corp.google.com/s/"+a.person.ldap,Ud))},qza=function(a,b){if(null==a)return null;a=a.getRequestHook(b);return null==a?null:a},rza=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}},sza=function(a,b,c){c=void 0===c?{}:c;b=r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=
r(d.value);d=e.next().value;e=e.next().value;d in a&&(c[e]=a[d])}return c},tza=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},uza=function(a,b){return mo(b,a)},vza=function(a,b,c){b[a]=c},wza=function(){return{}},Aza=function(a,b){var c=new a;return null==b?c:no(b,xza,yza,zza,a)},xza=function(a,b){return b[a]},yza=function(a,b,c){b.Serializable$values[a]=c},zza=function(a){if(null==a)throw Error("Ed");return new a},
no=function(a,b,c,d,e){e=d(e);for(var f=Bza(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},u={},x=r(f.keys||[]),E=x.next();!E.done;u={$jscomp$loop$prop$mapMetadata$1684:u.$jscomp$loop$prop$mapMetadata$1684},E=x.next()){E=E.value;var I=b(E,a);if(null!=I){var N=void 0;if(h.hasOwnProperty(E)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=oo(I,b,c,d,!0,!0,h[E])}else if(k.hasOwnProperty(E))N=oo(I,b,c,d,!1,!0,k[E]);else if(q.hasOwnProperty(E))u.$jscomp$loop$prop$mapMetadata$1684=q[E],N=u.$jscomp$loop$prop$mapMetadata$1684.isPropertyArray?
I.map(function(L){return function(T){return Cza(T,L.$jscomp$loop$prop$mapMetadata$1684,b,c,d)}}(u)):Cza(I,u.$jscomp$loop$prop$mapMetadata$1684,b,c,d);else if(Array.isArray(I)){if(f.emptyArrayIsUnset&&0===I.length)continue;N=oo(I,b,c,d,!0,!1)}else N=I;c(E,e,N)}}return e},Cza=function(a,b,c,d,e){for(var f={},h=r(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];null!=q&&(f[k]=oo(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},oo=function(a,b,c,d,e,f,h){if(f&&null==h)throw Error("Fd");
if(null==a)return a;var k;e&&f?k=a.map(function(q){return no(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):k=!e&&f?no(a,b,c,d,h):"object"===typeof a?JSON.parse(JSON.stringify(a)):a;return k},Bza=function(a,b){if(b instanceof po)a=tza(b.getPartialClassMetadata());else if(a instanceof po)a=tza(a.getPartialClassMetadata());else throw Error("Gd");return a},Eza=function(a){return a&&Dza.test(a)?a.split("@")[0]:""},Fza=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=
b.metadata)?void 0:c.container)}):null},Gza=function(a){return a?a.find(function(b){var c;return"DOMAIN_PROFILE"===(null==(c=b.metadata)?void 0:c.container)}):null},Iza=function(a,b){a&1&&(F(0,"onedev-person-hovercard-body",1),Q(1,"async"),Fe(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),Fe(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),G());a&2&&(a=b.ngIf,b=K(),D("person",a)("outOfOfficeDescription",R(1,2,b.outOfOfficeDescription$)))},
Jza=function(a){a&1&&(F(0,"onedev-person-hovercard",1,2),Fe(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),G());if(a&2){var b=M(1);a=K();D("email",a.email)("enableWaldo",!0)("onedevIsHovercardReady",b.init)}},Kza=function(a){a&1&&Be(0)},Lza=function(a){a&1&&(ze(0),F(1,"span",2),O(2,Kza,1,0,"ng-container",3),G(),F(3,"onedev-hovercard",null,4),H(5,"b-person-card",5),G(),Ae());if(a&2){var b=M(4);a=K();var c=M(2);B(1);D("onedevHovercardTrigger",b)("onedevHovercardActive",
!!a.email);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},Mza=function(a){a&1&&Fe(0)},Nza=function(a,b){a&1&&(F(0,"div",1),Uc(),F(1,"svg",2)(2,"g"),H(3,"path",3),G()(),Vc(),F(4,"span",4),P(5),G()());a&2&&(a=b.ngIf,oe("aria-label",a)("title",a),B(5),Ke(a))},Oza=function(a){a&1&&H(0,"waldo-availability-chip",1);a&2&&(a=K(),D("user",a.user),oe("coinonly",a.coinonly))},Pza=function(a){return a.retentionPeriod&&(a=Kua(a.retentionPeriod))?ko(Math.floor(1E3*a.getSeconds()/864E5)):"indefinite"},qo=
function(a){return"number"===typeof a?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},Qza=function(a,b){a&1&&(F(0,"li"),P(1),G());a&2&&(a=b.$implicit,B(1),Ke(a))},Rza=function(a,b,c,d){c&&c.hasTargetTime()&&(c.hasEndTime()?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},Sza=function(a,b){a=a.sloBounds.getTargetTime().getSeconds();b=b.sloBounds.getTargetTime().getSeconds();return a-b},ro=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,
d);return d}},Tza=function(){return{startTime:Date.now(),firstActionSeen:!1,editCount:0}},so=function(a){return a?fa(a,"@")?a:"[Deleted User]"===a?a:a+"@google.com":""},to=function(a){return a.customFieldValue?String(a.customFieldValue.customFieldId):a.fieldName},Wza=function(a){if(a&1){var b=y();ze(0,3);F(1,"onedev-hovercard-action",4);J("onAction",function(){z(b);var e=K();return A(Uza(e))});Q(2,"async");F(3,"span");P(4);G()();F(5,"onedev-hovercard-action",4);J("onAction",function(){z(b);var e=
K();return A(Vza(e))});Q(6,"async");F(7,"span");P(8);G()();Ae()}if(a&2){a=K();var c,d;B(1);D("disabled",null!==(c=R(2,4,a.actionService.assigneeUpdating$))&&void 0!==c?c:!1);B(3);Ke(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B(1);D("disabled",null!==(d=R(6,6,a.actionService.ccUpdating$))&&void 0!==d?d:!1);B(3);Ke(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},Xza=function(a){a&1&&(ze(0),H(1,"b-availability-chip",3),Ae());a&2&&(a=K(2).ngIf,B(1),D("user",a.email))},
Yza=function(a){a&1&&(ze(0),P(1),Ae(),O(2,Xza,2,1,"ng-container",0));if(a&2){a=K().ngIf;var b=K();B(1);Ke(a.content);B(1);D("ngIf",b.enableWaldoAvailability&&b.availabilityChipEnabled)}},Zza=function(a){a&1&&Be(0)},$za=function(a){a&1&&(ze(0),F(1,"span",4),O(2,Zza,1,0,"ng-container",5),G(),F(3,"onedev-hovercard",null,6),H(5,"b-issue-person-card",7),G(),Ae());if(a&2){var b=M(4);a=K().ngIf;var c=M(2),d=K();B(1);D("onedevHovercardTrigger",b);oe("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?
"0":null);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},aAa=function(a,b){a&1&&(ze(0),O(1,Yza,3,2,"ng-template",null,1,Pf),O(3,$za,6,4,"ng-container",2),Ae());if(a&2){a=b.ngIf;var c=M(2);b=K();B(3);D("ngIf",b.hovercardEnabled&&b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},bAa=function(a){a&1&&H(0,"b-user-display-name",2);a&2&&(a=K(),D("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},
cAa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),B(1),Ke(a.getDisplayString()))},dAa=function(a){a&1&&Be(0)},eAa=function(a){a&1&&(ze(0),F(1,"span",3),O(2,dAa,1,0,"ng-container",4),G(),F(3,"onedev-hovercard",null,5),H(5,"b-issue-person-card",6),G(),Ae());if(a&2){var b=M(4);a=K().ngIf;var c=M(3);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},fAa=function(a){a&1&&H(0,"img",9);a&2&&(a=K(2).ngIf,D("src",a.src,Ud)("srcset",a.srcset,Ud))},gAa=function(a){a&
1&&(F(0,"span",7),O(1,fAa,1,2,"img",8),G());a&2&&(a=K().ngIf,te("anonymous",!a.showImage),B(1),D("ngIf",a.showImage))},hAa=function(a,b){a&1&&(ze(0),O(1,eAa,6,3,"ng-container",1),O(2,gAa,2,3,"ng-template",null,2,Pf),Ae());if(a&2){a=b.ngIf;var c=M(3);b=K();B(1);D("ngIf",b.isNonObfuscatedEmail(a.email))("ngIfElse",c)}},iAa=function(a){a&1&&(F(0,"div",8),H(1,"b-spinner"),G())},jAa=function(a){a&1&&H(0,"code",22);a&2&&(a=K(2).$implicit,K(2),D("innerHtml",Lj(a.formattingModeDiff),Td))},kAa=function(a){a&
1&&(F(0,"code",23),P(1),G());a&2&&(a=K(2).$implicit,B(1),Je(" ",a.formattingMode," "))},lAa=function(a){a&1&&(F(0,"p",19),P(1," Formatting: "),O(2,jAa,1,1,"code",20),O(3,kAa,2,1,"code",21),G());a&2&&(a=K(3),B(2),D("ngIf",a.diffView),B(1),D("ngIf",!a.diffView))},mAa=function(a){if(a&1){var b=y();F(0,"div")(1,"span",24)(2,"b-person-hovercard",25);Q(3,"omitObfuscatedEmail");P(4);Q(5,"appendDomain");G()();F(6,"a",26);J("click",function(c){z(b);var d=K().$implicit,e=K(2);d=d.version;c.stopPropagation();
c=e.paths.editIssue(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return A()});P(7);G()()}a&2&&(a=K().$implicit,K(2),B(2),D("email",R(3,5,Rl(a.lastEditorUser))),B(2),Je(" <",R(5,7,Rl(a.lastEditorUser)),"> "),B(2),qe("aria-label","Comment version ",a.version,""),Ge("id","bv2-edit-issue-comment-",a.version,""),B(1),Je(" #",a.version,""))},nAa=function(a){a&1&&(F(0,"div",30),P(1),G());a&2&&(a=K(2).$implicit,B(1),Ke(a.preview))},oAa=function(a){a&1&&(F(0,"div",31),P(1,
"Comment deleted."),G())},pAa=function(a){a&1&&(F(0,"div",32),P(1,"Comment history restricted."),G())},qAa=function(a){a&1&&(ze(0),O(1,nAa,2,1,"div",27),O(2,oAa,2,0,"div",28),O(3,pAa,2,0,"div",29),Ae());a&2&&(a=K().$implicit,B(1),D("ngIf",!a.restricted&&!a.deleted),B(1),D("ngIf",!a.restricted&&a.deleted),B(1),D("ngIf",a.restricted))},rAa=function(a){a&1&&(F(0,"div",35),P(1,"Comment deleted."),G())},sAa=function(a){a&1&&(F(0,"div",36),Q(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);te("codefont",
R(1,3,b.codefont.codefont$));D("innerHtml",a.comment,Td)}},tAa=function(a){a&1&&(F(0,"div",36),Q(1,"async"),G());if(a&2){a=K(2).$implicit;var b=K(2);te("codefont",R(1,3,b.codefont.codefont$));D("innerHtml",Lj(a.diff),Td)}},uAa=function(a){a&1&&(F(0,"div",32),P(1," This comment is not available due to present or past restrictions on the comment. "),G())},vAa=function(a){a&1&&(ze(0),O(1,rAa,2,0,"div",33),O(2,sAa,2,5,"div",34),O(3,tAa,2,5,"div",34),O(4,uAa,2,0,"div",29),Ae());if(a&2){a=K().$implicit;
var b=K(2);B(1);D("ngIf",!a.restricted&&a.deleted);B(1);D("ngIf",!b.diffView&&!a.restricted&&!a.deleted);B(1);D("ngIf",b.diffView&&!a.restricted&&!a.deleted);B(1);D("ngIf",a.restricted)}},wAa=function(a,b){if(a&1){var c=y();F(0,"li",11)(1,"div",12);H(2,"b-user-image",13);G();F(3,"div",14);J("click",function(){var d=z(c).$implicit;return A(d.open=!d.open)});H(4,"b-user-display",15)(5,"b-formatted-date-time",16);O(6,lAa,4,2,"p",17);O(7,mAa,8,9,"div",18);O(8,qAa,4,3,"ng-container",18);G();O(9,vAa,5,
4,"ng-container",18);G()}a&2&&(a=b.$implicit,K(2),te("comment-version-open",a.open),B(2),D("email",Rl(a.lastEditorUser)),B(2),D("model",a.lastEditorUser),B(1),D("timestamp",a.lastModified),B(1),D("ngIf",!a.deleted),B(1),D("ngIf",a.open),B(1),D("ngIf",!a.open),B(1),D("ngIf",a.open))},xAa=function(a){a&1&&(F(0,"ul",9),O(1,wAa,10,9,"li",10),G());a&2&&(a=K(),B(1),D("ngForOf",a.history)("ngForTrackBy",a.trackByIndex))},yAa=function(){},BAa=function(){var a={timeout:5E3};a=void 0===a?{}:a;return null!=
zAa?zAa:zAa=AAa(a)},CAa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},AAa=function(a){a=void 0===a?{}:a;var b;return hf(function(c){if(1==c.nextAddress)return(b=window.gapi)&&b.client&&b.client.load?c.return(b):jf(c,DAa(uo(vo("https://apis.google.com/js/api.js")),a),2);if(3!=c.nextAddress){b=window.gapi;if(!b)throw Error("Kd");return b.client&&b.client.load?c.jumpTo(3):jf(c,CAa(),3)}return c.return(b)})},EAa=function(a,b,c){var d=a.config.get(b);
c!==d&&a.config.update(b,c)},FAa=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(wo.has(a))return wo.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){wo.delete(a)});wo.set(a,b);return b}return Promise.resolve()},GAa=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})},HAa=function(a){a&1&&H(0,"b-user-image",5);a&2&&(a=K(),D("email",a.email))},IAa=function(a){a&1&&Be(0)},JAa=function(a){a&1&&(ze(0),F(1,"span",6),O(2,IAa,1,0,"ng-container",7),G(),F(3,"onedev-hovercard",null,8),H(5,"b-issue-person-card",9),G(),Ae());if(a&2){var b=M(4);a=K();var c=M(4);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},KAa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),B(1),Ke(a.email))},LAa=function(a){a&
1&&(F(0,"span",10),H(1,"b-availability-chip",11),G());a&2&&(a=K(),B(1),D("user",a.email))},MAa=function(a){a&1&&H(0,"b-user-image",6);a&2&&(a=K(),D("email",a.email))},NAa=function(a){a&1&&H(0,"b-user-display-name",7);a&2&&(a=K(),D("email",a.email)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},OAa=function(a){a&1&&Be(0)},PAa=function(a){a&1&&(ze(0),F(1,"span",10),O(2,OAa,1,0,"ng-container",11),G(),F(3,"onedev-hovercard",null,12),H(5,"b-issue-person-card",13),G(),Ae());if(a&2){var b=M(4);
K();var c=M(2);a=K();B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.email)}},QAa=function(a){a&1&&(F(0,"span",14),P(1),G());a&2&&(a=K(2),B(1),Ke(a.email))},RAa=function(a){a&1&&(O(0,PAa,6,3,"ng-container",8),O(1,QAa,2,1,"ng-template",null,9,Pf));if(a&2){var b=M(2);a=K();D("ngIf",a.isNonObfuscatedEmail(a.email))("ngIfElse",b)}},SAa=function(a){a&1&&(H(0,"mat-icon",15),Q(1,"async"),Q(2,"async"));if(a&2){a=K();var b,c;D("svgIcon",null!==(b=R(1,2,a.iconName$))&&void 0!==
b?b:"")("matTooltip",null!==(c=R(2,4,a.iconToolTip$))&&void 0!==c?c:"")}},TAa=function(a){a&1&&(ze(0),H(1,"b-availability-chip",16),Ae());a&2&&(a=K(),B(1),D("user",a.email))},WAa=function(a,b){var c=new UAa;a=xo(c,a,b);VAa(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Kn("SPAN",{"class":"diff-removed"},d);case 1:return Kn("SPAN",{"class":"diff-added"},d);case 0:return Kn("SPAN",{"class":null},d);default:throw Error("Md`"+e);}});return Ln(c)},XAa=function(a){var b;return"DELETED"===
(null==(b=a.entityStatus)?void 0:b.status)},YAa=function(a){a&1&&Be(0)},ZAa=function(a){if(a&1){var b=y();F(0,"div",3);J("mouseenter",function(){z(b);var c=K();return A(c.toggle(!0))})("mouseleave",function(){z(b);var c=K();return A(c.toggle(!1))})("mousemove",function(){z(b);K().activity.next();return A()});O(1,YAa,1,0,"ng-container",4);G()}a&2&&(a=K(),D("ngClass",a.bubbleStyle)("@fade",void 0),B(1),D("ngTemplateOutlet",a.panelTemplate))},$Aa=function(a){a&1&&(ze(0),F(1,"span",3),P(2),Q(3,"toAccessLevelLabel"),
G(),Ae());a&2&&(a=K(2),B(1),te("compact-chip",a.compactMode),D("ngClass",a.chipClass),B(1),Je(" ",Se(3,4,a.accessLevel,a.compactMode)," "))},aBa=function(a){a&1&&(F(0,"div",6),P(1),F(2,"a",7),P(3," Learn more"),G()());a&2&&(a=K(3),B(1),Je(" ",a.bubbleText," "),B(1),D("href",yo(a.documentationLinks),Ud))},bBa=function(a){a&1&&(F(0,"xap-bubble",4)(1,"span",3),P(2),Q(3,"toAccessLevelLabel"),G(),O(4,aBa,4,2,"ng-template",null,5,Pf),G());if(a&2){var b=M(5);a=K(2);D("panelTemplate",b);B(1);te("compact-chip",
a.compactMode);D("ngClass",a.chipClass);B(1);Je(" ",Se(3,5,a.accessLevel,a.compactMode)," ")}},cBa=function(a){a&1&&(ze(0),O(1,$Aa,4,7,"ng-container",1),O(2,bBa,6,8,"ng-template",null,2,Pf),Ae());if(a&2){var b=M(3);a=K();B(1);D("ngIf",a.labelOnlyMode)("ngIfElse",b)}},dBa=function(a){a&1&&(F(0,"li")(1,"a",4),P(2," Create an issue in this component"),G()());a&2&&(a=K(2),B(1),D("href",a.createIssueUrl,Ud))},eBa=function(a,b){a&1&&(ze(0),F(1,"h3"),P(2),G(),F(3,"p"),P(4),G(),H(5,"b-access-level-indicator",
3),F(6,"p"),P(7),G(),F(8,"ul")(9,"li")(10,"a",4),P(11," View recent open issues"),G()(),O(12,dBa,3,1,"li",2),F(13,"li")(14,"a",4),P(15," View component"),G()()(),Ae());a&2&&(a=b.ngIf,b=K(),B(2),Ke(a.name),B(2),Je("ID: ",b.componentId,""),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ke(a.description),B(3),D("href",b.recentIssuesUrl,Ud),B(2),D("ngIf",!b.isAnonymous),B(2),D("href",b.viewComponentUrl,Ud))},fBa=function(a){a&1&&(F(0,"span",8),P(1),G());
a&2&&(a=K(),B(1),Ke(a.placeholder))},gBa=function(a){a&1&&(F(0,"span",12),P(1),G());a&2&&(a=K(2),B(1),Ke(a.triggerValue))},hBa=function(a){a&1&&Fe(0,0,["*ngSwitchCase","true"])},iBa=function(a){a&1&&(F(0,"span",9),O(1,gBa,2,1,"span",10),O(2,hBa,1,0,"ng-content",11),G());a&2&&(a=K(),D("ngSwitch",!!a.customTrigger),B(2),D("ngSwitchCase",!0))},jBa=function(a){if(a&1){var b=y();F(0,"div",13)(1,"div",14,15);J("@transformPanel.done",function(c){z(b);var d=K();return A(d._panelDoneAnimatingStream.next(c.toState))})("keydown",
function(c){z(b);var d=K();return A(d._handleKeydown(c))});Fe(3,1);G()()}a&2&&(a=K(),D("@transformPanelWrap",void 0),B(1),ye("mat-select-panel ",a._getPanelTheme(),""),se("transform-origin",a._transformOrigin)("font-size",a._triggerFontSize,"px"),D("ngClass",a.panelClass)("@transformPanel",a.multiple?"showing-multiple":"showing"),oe("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},kBa=function(a,b){a&1&&(F(0,"mat-option",
19),P(1),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",a," "))},lBa=function(a){if(a&1){var b=y();F(0,"mat-form-field",16)(1,"mat-select",17);J("selectionChange",function(c){z(b);var d=K(2);return A(d._changePageSize(c.value))});O(2,kBa,2,2,"mat-option",18);G()()}a&2&&(a=K(2),D("appearance",a._formFieldAppearance)("color",a.color),B(1),D("value",a.pageSize)("disabled",a.disabled)("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering)("aria-label",
a._intl.itemsPerPageLabel),B(1),D("ngForOf",a._displayedPageSizeOptions))},mBa=function(a){a&1&&(F(0,"div",20),P(1),G());a&2&&(a=K(2),B(1),Ke(a.pageSize))},nBa=function(a){a&1&&(F(0,"div",12)(1,"div",13),P(2),G(),O(3,lBa,3,8,"mat-form-field",14),O(4,mBa,2,1,"div",15),G());a&2&&(a=K(),B(2),Je(" ",a._intl.itemsPerPageLabel," "),B(1),D("ngIf",1<a._displayedPageSizeOptions.length),B(1),D("ngIf",1>=a._displayedPageSizeOptions.length))},oBa=function(a){if(a&1){var b=y();F(0,"button",21);J("click",function(){z(b);
var c=K();if(c.hasPreviousPage()){var d=c.pageIndex;c.pageIndex=0;c._emitPageEvent(d)}return A()});Uc();F(1,"svg",7);H(2,"path",22);G()()}a&2&&(a=K(),D("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),oe("aria-label",a._intl.firstPageLabel))},pBa=function(a){if(a&1){var b=y();Uc();Vc();F(0,"button",23);J("click",function(){z(b);var c=K();if(c.hasNextPage()){var d=c.pageIndex;c.pageIndex=(c.pageSize?
Math.ceil(c.length/c.pageSize):0)-1;c._emitPageEvent(d)}return A()});Uc();F(1,"svg",7);H(2,"path",24);G()()}a&2&&(a=K(),D("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),oe("aria-label",a._intl.lastPageLabel))},qBa=function(a){if(a&1){var b=y();F(0,"mat-paginator",3);J("page",function(c){z(b);var d=K(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return A()});G()}a&2&&
(a=K(),D("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},rBa=function(a,b){if(a&1){var c=y();F(0,"li")(1,"a",4);J("click",function(){var e=z(c).$implicit,f=K();return A(f.onVisit.emit(e))});P(2);G();F(3,"onedev-hovercard",null,5);H(5,"b-component-card",6);G()()}if(a&2){a=b.$implicit;var d=M(4);b=K();B(1);D("onedevHovercardTrigger",d)("href",b.paths.manageComponent(a.componentId),Ud);B(1);Je(" ",a.name," ");B(3);D("componentId",a.componentId.toString())}},
sBa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),te("muted",a.isGreyedOut),B(1),Je(" ",a.displayName,""))},tBa=function(a){if(a&1){var b=y();F(0,"a",2);J("click",function(c){z(b);var d=K();return A(d.handleClick(c))});P(1);G()}a&2&&(a=K(),D("href",a.linkUrl,Ud),B(1),Je(" ",a.displayName,""))},uBa=function(a){if(a&1){var b=y();F(0,"button",6);J("click",function(){z(b);var c=K();return A(c.onClickCopyIssueShortLinks.emit())});P(1);G()}a&2&&(a=K(),B(1),Je(" Copy '",a.shortLinkPrefix,"'' links "))},
vBa=function(a,b){a&1&&(F(0,"span",5)(1,"a",6),P(2),G(),F(3,"onedev-hovercard",null,7),H(5,"b-component-card",8),G()());if(a&2){a=b.$implicit;var c=M(4);B(1);D("onedevHovercardTrigger",c)("routerLinkObj",a.route);B(1);Ke(a.name);B(3);D("componentId",a.id.toString())}},wBa=function(a){a&1&&(F(0,"span",9),P(1,"[Archived]"),G())},zo=function(a,b){b=void 0===b?gn: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}})},xBa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Ke(a.text))},yBa=function(a){a&1&&(F(0,"span"),H(1,"b-access-level-indicator",2),G());a&2&&(a=K().$implicit,B(1),D("accessLevel",a.accessLevel))},zBa=function(a,b){a&1&&(F(0,"span"),O(1,xBa,2,1,"span",1),O(2,yBa,2,1,"span",1),G());a&2&&(a=b.$implicit,b=K(),B(1),D("ngIf",b.isText(a)),B(1),D("ngIf",!b.isText(a)))},ABa=function(a){if(a&1){var b=y();F(0,"div");H(1,
"br");F(2,"mat-checkbox",8);J("ngModelChange",function(c){z(b);var d=K();return A(d.acknowledged=c)});G();F(3,"span");P(4,"All information in this issue is suitable for external sharing.");G()()}a&2&&(a=K(),B(2),D("ngModel",a.acknowledged))},BBa=function(a){if(a&1){var b=y();F(0,"button",9);J("click",function(){z(b);var c=K();return A(c.allow())});P(1," Move Issue ");G()}a&2&&(a=K(),D("disabled",!a.acknowledged))},Ao=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]]}))})},Bo=function(){var a=0;a=void 0===a?0:a;return new Promise(function(b){setTimeout(b,a)})},CBa=function(a){if(a&1){var b=y();F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},DBa=function(a){if(a&1){var b=y();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,"mat-icon",20);G()}},FBa=function(a){a&1&&(F(0,"a",21),P(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;
var b=K();D("href",b.paths.listIssues(Oe(1,EBa,"status:open componentid:"+a.componentId)),Ud)}},GBa=function(a){a&1&&(F(0,"span"),P(1,"[Archived]"),G())},HBa=function(a){a&1&&(F(0,"a",22),P(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();D("href",b.paths.createIssue()+"?component="+a.componentId,Ud)}},IBa=function(a){a&1&&(F(0,"div",27),P(1," No child components found. "),G())},JBa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},KBa=function(a){if(a&1){var b=y();F(0,"component-subtree-list",
29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},LBa=function(a){a&1&&(F(0,"div",23),O(1,IBa,2,0,"div",24),O(2,JBa,2,0,"div",25),O(3,KBa,1,4,"component-subtree-list",26),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.noChildren),B(1),D("ngIf",!(a.noChildren||a.children)),B(1),D("ngIf",a.children))},MBa=function(a,
b){if(a&1){var c=y();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",3);H(2,"div",4);F(3,"div",5);O(4,CBa,2,0,"a",6);O(5,DBa,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);P(9);G();O(10,FBa,2,3,"a",10);O(11,GBa,2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);P(14);G()();F(15,"div",14);O(16,HBa,2,1,"a",15);G()();O(17,LBa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),Ge("id","component-",a.componentId,""),B(4),D("ngIf",
!a.showChildren),B(1),D("ngIf",a.showChildren),B(3),D("href",b.paths.viewComponent(a.componentId),Ud),B(1),Je(" ",a.name," "),B(1),D("ngIf",!a.archived),B(1),D("ngIf",a.archived),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Ke(a.description),B(2),D("ngIf",!a.archived),B(1),D("ngIf",a.showChildren))},NBa=function(a){if(a&1){var b=y();F(0,"a",17);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.showChildren(c))});H(1,"mat-icon",18);G()}},OBa=function(a){if(a&
1){var b=y();F(0,"a",19);J("click",function(){z(b);var c=K().$implicit;return A(c.showChildren=!1)});H(1,"mat-icon",20);G()}},QBa=function(a){a&1&&(F(0,"a",21),P(1," (Recent Issues) "),G());if(a&2){a=K().$implicit;var b=K();D("href",b.paths.listIssues(Oe(1,PBa,"status:open componentid:"+a.componentId)),Ud)}},RBa=function(a){a&1&&(F(0,"span"),P(1,"[Archived]"),G())},SBa=function(a){a&1&&(F(0,"a",22),P(1," Create issue "),G());if(a&2){a=K().$implicit;var b=K();D("href",b.paths.createIssue()+"?component="+
a.componentId,Ud)}},TBa=function(a){a&1&&(F(0,"div",27),P(1," No child components found. "),G())},UBa=function(a){a&1&&(F(0,"div",28),H(1,"b-spinner"),G())},VBa=function(a){if(a&1){var b=y();F(0,"component-subtree-list",29);J("childClosed",function(d){z(b);var e=K(3);return A(e.onSubtreeChildClosed(d))});G()}if(a&2){a=K(2).$implicit;var c=K();D("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},WBa=function(a){a&1&&(F(0,"div",23),
O(1,TBa,2,0,"div",24),O(2,UBa,2,0,"div",25),O(3,VBa,1,4,"component-subtree-list",26),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.noChildren),B(1),D("ngIf",!(a.noChildren||a.children)),B(1),D("ngIf",a.children))},XBa=function(a,b){if(a&1){var c=y();F(0,"li",2);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.setSelected(e.componentId,d))});F(1,"div",3);H(2,"div",4);F(3,"div",5);O(4,NBa,2,0,"a",6);O(5,OBa,2,0,"a",7);G();F(6,"div",8)(7,"div")(8,"a",9);P(9);G();O(10,QBa,2,3,"a",10);O(11,RBa,
2,0,"span",11);H(12,"b-access-level-indicator",12);G();F(13,"div",13);P(14);G()();F(15,"div",14);O(16,SBa,2,1,"a",15);G()();O(17,WBa,4,3,"div",16);G()}a&2&&(a=b.$implicit,b=K(),D("id","component-"+a.componentId),B(4),D("ngIf",!a.showChildren),B(1),D("ngIf",a.showChildren),B(3),D("href",b.paths.viewComponent(a.componentId),Ud),B(1),Je(" ",a.name," "),B(1),D("ngIf",!a.archived),B(1),D("ngIf",a.archived),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),B(2),Ke(a.description),
B(2),D("ngIf",!a.archived),B(1),D("ngIf",a.showChildren))},Co=function(a){return(null!=a?a:[]).map(Cn)},YBa=function(a){return Eta(a)},Do=function(a){return(null!=a?a:[]).map(YBa)},Eo=function(a){return null==a?"":"number"===typeof a?isFinite(a)?String(a):"":a&&(a=String(a),254>=a.length)?a:""},Go=function(){var a=Fo("gapi.config.get");if((a=Eo(a&&a("googleapis.config/sessionIndex")))||(a=Eo(da.__X_GOOG_AUTHUSER))||(a=Eo(Fo("google.authuser"))))return a;var b=da.location.href||"",c=ZBa.exec(b);try{a=
Eo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=$Ba.exec(b);try{a=Eo(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=aCa.exec(b);return(a=Eo(a&&a[1]))?a:""},bCa=function(){var a=Fo("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=Fo("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}},cCa=function(a){a=
void 0===a?"":a;var b;if(!(b=bCa())){b=a;var c=void 0===c?Go():c;a={};var d=Ho([]);d&&(a.Authorization=d);b||(b=(b=Fo("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},dCa=function(a,b){b=void 0===b?0:b;var c;if(c=0===b)c=(c=Fo("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=Fo("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},fCa=function(a,b){return 1>a||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return da.setTimeout(c,b)})).then(function(){return eCa(a-1,2*b)})},eCa=function(a,b){a=void 0===a?0:a;b=void 0===b?5E3:b;var c=da;try{do var d=c.gapi;while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return fCa(a,
b);da.gapi||(da.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},gCa=function(){var a=void 0===a?"":a;var b=void 0===b?Go():b;var c=Fo("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)},hCa=function(a){return(new Io).setEventType(2).setRpcType(2).setLookupType(a)},iCa=function(a){a=
Math.round(1E3*a);return isFinite(a)?a:null},Lo=function(a,b,c,d){Jo.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;jCa(this.transport_,this.id_);d&&Ko(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},kCa=function(a){var b={};if(a){a=r(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},mCa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return lCa(b.name,
b.email)}).join(", "):""},pCa=function(a,b,c){var d=[];a&&(nCa("name",a.name,b,d,c),nCa("phone",a.phone,b,d,c),nCa("photo",a.photo,b,d,c));return d.map(function(e){return new oCa(e)})},nCa=function(a,b,c,d,e){if(b){b=r(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,"CONTACT"!==Fo("metadata.containerType",f)){var h=c,k=d,q=e,u=Fo("metadata.encodedContainerId",f),x=Fo("metadata.containerType",f);if(h.contains(u,x))var E=h.get(u,x)||0;else E=k.length,h.set(u,x,E),k.push({}),q.push(u);E=k[E];E[a]=
E[a]||[];E[a].push(f)}}},rCa=function(a,b){if(a){a=qCa(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},sCa=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},tCa=function(a){this.query_=a;this.error_=0},ACa=function(a){var b=a.getClientInfo(),c=Mo(b,10)||bj(a.getExperiments(),5,!0),d=c?new No(void 0,
uCa(a)):new Oo(void 0,uCa(a)),e=Po(new vCa(a,1)),f=a.getUserInfo().getEnvType()||1;var h=wCa.get(f)||4;h=dCa("people-pa",void 0===h?0:h);f=4===f?p(a.getClientInfo(),2)||"":p(a.getClientInfo(),1)||"";var k=p(a.getClientInfo(),4),q=p(a.getClientInfo(),5),u=p(a.getClientInfo(),6)||"",x=a.getClientInfo().getAffinityType()||"",E=a.getUserInfo().getDelegatorId(),I=a.getAuthErrorHandler(),N=fj(a.getClientInfo(),8,3E4),L=bj(a.getClientInfo(),17,!1);e=new xCa(e,h,f,k,q,u,x,E,N,I,fj(a.getClientInfo(),13,15),
fj(a.getClientInfo(),14,500),W(a.getClientInfo(),15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),W(a.getClientInfo(),16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),a.getExperiments(),L);a=new Qo(e,yCa(a));e=new zCa(a);e.configure(null,"Personal Contacts");d.addAddressBook(e,!0);c&&(b=new Ro(a,null,!!Mo(b,11)),b.configure(null,"Domain Contacts"),d.addAddressBook(b,!0));return d},Uo=function(a,b){b=a(b||BCa,void 0);a=So().createElement("DIV");
b=CCa(b);To(a,b);1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType&&(a=b));return a},CCa=function(a){if(Ha(a))if(a instanceof Vo){if(a.contentKind!==Wo)throw Error("Rd");a=qh(a.toString())}else a=In("zSoyz");else a=In(String(a));return a},Yo=function(a,b,c,d,e,f,h){this.serverBase_="string"===typeof a?new Xo(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},DCa=function(a){a=a.getEmail();if(!a)return!1;for(var b=r(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(0<=a.indexOf(c.value))return!0;return!1},HCa=function(a,b,c,d){a=a.filter(ECa());if(!d)return a;d=d.map(function(e){return{contact:e,toString:function(){return e.text}}});b=FCa(new GCa(d),b,d.length);return a.concat(b.map(function(e){return e.contact}))},ICa=function(a){a&1&&(H(0,"div"),Q(1,"lowercase"));
a&2&&(a=K(3),ye("bv2-edit-icon ",R(1,3,a.type),""))},JCa=function(a){a&1&&(F(0,"div")(1,"label"),P(2),G(),O(3,ICa,2,5,"div",10),G());a&2&&(a=K(2),ye("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),Je(" ",a.title," "),B(1),D("ngIf",!a.readonly&&!a.disabled))},KCa=function(a){a&1&&Be(0)},LCa=function(a){if(a&1){var b=y();F(0,"div",14);J("menuClosed",function(){z(b);var e=K(2);return A(Zo(e,null,!1,!0))});O(1,KCa,1,0,"ng-container",15);G()}if(a&2){K();var c=M(6);K();var d=M(7);D("matMenuTriggerFor",
d);B(1);D("ngTemplateOutlet",c)}},MCa=function(a){a&1&&Be(0)},NCa=function(a){a&1&&(F(0,"div",16),O(1,MCa,1,0,"ng-container",15),G());if(a&2){K();var b=M(6);B(1);D("ngTemplateOutlet",b)}},OCa=function(a){a&1&&H(0,"b-user-membership-chip",26);a&2&&(a=K(4),D("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},PCa=function(a){a&1&&H(0,"b-user-image",27);a&2&&(a=K(4),D("email",a.value))},QCa=function(a){a&1&&(F(0,"span",28)(1,"b-person-hovercard",29),P(2),G()());a&2&&(a=K(4),B(1),
D("email",a.value),B(1),Je(" ",a.getDisplayValue("--")," "))},RCa=function(a){a&1&&(F(0,"div")(1,"div",22),O(2,OCa,1,4,"b-user-membership-chip",23),O(3,PCa,1,1,"b-user-image",24),O(4,QCa,3,2,"span",25),G()());a&2&&(a=K(3),B(2),D("ngIf",a.enableTeamAnnotations&&!!a.value),B(1),D("ngIf",!a.enableTeamAnnotations&&!!a.value),B(1),D("ngIf",!a.enableTeamAnnotations))},SCa=function(a){a&1&&H(0,"b-truncated-span",33);a&2&&(a=K(4),D("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},
TCa=function(a){a&1&&H(0,"b-truncated-span",34);a&2&&(a=K(4),D("ngClass",a.getPriority(a.value))("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},UCa=function(a){a&1&&H(0,"div",35)},VCa=function(a){a&1&&(F(0,"div"),O(1,SCa,1,3,"b-truncated-span",30),O(2,TCa,1,4,"b-truncated-span",31),O(3,UCa,1,0,"div",32),G());a&2&&(a=K(3),B(1),D("ngIf","Priority"!==a.title),B(1),D("ngIf","Priority"===a.title),B(1),D("ngIf",!a.title&&!a.readonly&&!a.disabled))},WCa=function(a){a&1&&
(F(0,"div",36),H(1,"mat-icon",37),G())},XCa=function(a){a&1&&(F(0,"div",38),H(1,"mat-icon",39),G())},ZCa=function(a){if(a&1){var b=y();F(0,"div",17,18);J("keydown",function(c){z(b);var d=K(2);return A(YCa(d,c))})("click",function(c){z(b);var d=K(2);return A(Zo(d,c,!0,!1))});O(2,RCa,5,3,"div",19);O(3,VCa,4,3,"div",19);O(4,WCa,2,0,"div",20);O(5,XCa,2,0,"div",21);G()}a&2&&(a=K(2),te("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),B(2),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser),
B(1),D("ngIf","ENUM"!=a.type),B(1),D("ngIf","ENUM"==a.type))},$Ca=function(a){if(a&1){var b=y();F(0,"div",8,9);J("click",function(c){z(b);var d=K();return A(Zo(d,c,!0,!1))})("keydown",function(c){z(b);var d=K();return A(YCa(d,c))});O(2,JCa,4,5,"div",10);O(3,LCa,2,2,"div",11);O(4,NCa,2,1,"div",12);O(5,ZCa,6,8,"ng-template",null,13,Pf);G()}a&2&&(a=K(),ye("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,""),te("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),re("aria-label","",
a.title," value is ",a.getDisplayValue("empty"),""),D("matTooltip",a.getTooltip()),oe("aria-disabled",!1),B(2),D("ngIf",a.title),B(1),D("ngIf","ENUM"===a.type),B(1),D("ngIf","ENUM"!==a.type))},aDa=function(a){if(a&1){var b=y();F(0,"div",43);J("click",function(){z(b);var c=K(2);return A(c.setFieldValue(!c.value))});F(1,"label");P(2);G()()}a&2&&(a=K(2),ye("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x"),B(2),Ke(a.title))},cDa=function(a){if(a&1){var b=y();F(0,"div",40);O(1,aDa,3,4,"div",
41);F(2,"b-slide-toggle",42);J("modelChange",function(){z(b);var d=K();return A(d.setFieldValue(!d.value))});G()()}if(a&2){a=K();var c;ye("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name,"");D("ngClass",Pe(10,bDa,a.disabled,a.readonly))("matTooltip",a.getTooltip());oe("aria-disabled",!1);B(1);D("ngIf",a.title);B(1);D("disabled",a.disabled||a.readonly)("aria-label",a.name)("model",null!==(c=a.value)&&void 0!==c?c:void 0)}},dDa=function(a){a&1&&H(0,"b-availability-chip",44);a&2&&(a=
K(),D("user",a.value))},eDa=function(a){if(a&1){var b=y();F(0,"button",47);J("click",function(){z(b);var c=K(2);return A(c.clearFieldValue())});F(1,"span",48);H(2,"mat-icon",49);G();P(3," \u00a0 ");G()}a&2&&(a=K(2),te("b-menu-item-checked",null==a.value),D("disabled",null==a.value))},fDa=function(a,b){if(a&1){var c=y();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldValue(d.value))});F(1,"span",48);H(2,"mat-icon",49);G();P(3);G()}a&2&&(a=b.$implicit,b=K(2),te("b-menu-item-checked",
b.value==a.value),D("disabled",b.value==a.value)("matTooltip",a.altText||""),oe("aria-label",a.displayText)("title",!b.showEnumTitle||a.altText?"":a.displayText),B(3),Je(" ",a.displayText," "))},gDa=function(a){a&1&&(O(0,eDa,4,3,"button",45),O(1,fDa,4,7,"button",46));a&2&&(a=K(),D("ngIf",a.clearable),B(1),D("ngForOf",a.choices))},hDa=function(a){a&1&&Be(0)},iDa=function(a){a&1&&Be(0)},jDa=function(a){if(a&1){var b=y();F(0,"div",43);J("click",function(d){return d.stopPropagation()});F(1,"b-date-time-picker-content",
56);J("dateSelectionChange",function(d){z(b);var e=K(2);return A(e.googDateValue=null!==d&&void 0!==d?d:null)})("saveClicked",function(){z(b);var d=K(2);return A(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){z(b);var d=K(2);return A(Zo(d,null,!1,!1))});G()()}if(a&2){a=K(2);var c;B(1);D("required",!(a.clearable&&"DATE"===a.type))("date",null!==(c=a.googDateValue)&&void 0!==c?c:void 0)}},lDa=function(a){if(a&1){var b=y();F(0,"textarea",65);J("ngModelChange",function(c){z(b);var d=K(4);
return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(kDa(d,c))});G()}a&2&&(a=K(4),D("ngModel",a.textBuffer),oe("aria-label",a.title))},nDa=function(a){if(a&1){var b=y();F(0,"input",66);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(mDa(d,c))});G()}a&2&&(a=K(4),D("ngModel",a.textBuffer),oe("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},oDa=function(a){a&1&&(F(0,"div"),O(1,lDa,1,2,"textarea",
63),O(2,nDa,1,3,"input",64),G());a&2&&(a=K(3),B(1),D("ngIf",a.multiline),B(1),D("ngIf",!a.multiline))},pDa=function(a){if(a&1){var b=y();F(0,"textarea",69);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(kDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),D("ngModel",a.textBuffer)("bContactAutocomplete","MULTI"),oe("aria-label",a.title))},qDa=function(a){if(a&1){var b=
y();F(0,"input",70);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.textBuffer=c)})("keydown",function(c){z(b);var d=K(4);return A(mDa(d,c))})("autocompleteActive",function(c){z(b);var d=K(4);return A(d.autocompleteActive=c)});G()}a&2&&(a=K(4),D("ngModel",a.textBuffer)("bContactAutocomplete","SINGLE"),oe("type","NUMERIC"===a.type?"number":"text")("aria-label",a.title))},rDa=function(a){a&1&&(F(0,"div"),O(1,pDa,1,3,"textarea",67),O(2,qDa,1,4,"input",68),G());a&2&&(a=K(3),B(1),D("ngIf",a.multiline),
B(1),D("ngIf",!a.multiline))},tDa=function(a){if(a&1){var b=y();F(0,"div",57);J("click",function(c){return c.stopPropagation()});O(1,oDa,3,2,"div",19);O(2,rDa,3,2,"div",19);F(3,"div",58)(4,"button",59);J("click",function(){z(b);var c=K(2);return A(sDa(c))});H(5,"mat-icon",60);G();F(6,"button",61);J("click",function(c){z(b);var d=K(2);return A(Zo(d,c,!1,!0))});H(7,"mat-icon",62);G()();F(8,"div",36);H(9,"mat-icon",37);G()()}a&2&&(a=K(2),B(1),D("ngIf",!a.isUser),B(1),D("ngIf",a.isUser),B(2),qe("aria-label",
"Apply change to ",a.title,""),Ge("matTooltip","Apply change to ",a.title,""),D("disabled",a.value==a.textBuffer),B(2),qe("aria-label","Discard change to ",a.title,""),Ge("matTooltip","Discard change to ",a.title,""))},uDa=function(a){a&1&&(F(0,"div",51,52),O(2,hDa,1,0,"ng-container",53),O(3,iDa,1,0,"ng-container",53),O(4,jDa,2,2,"div",54),O(5,tDa,10,7,"div",55),G());a&2&&(a=K(),ye("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"),D("ngSwitch",a.type),B(2),D("ngSwitchCase",
"ENUM"),B(1),D("ngSwitchCase","BOOL"),B(1),D("ngSwitchCase","DATE"))},vDa=function(a){var b;return{changelistNumbers:null!=(b=ob(a,1))?b:[]}},wDa=function(a){var b;return{author:a.getAuthor(),description:a.getDescription(),pending:bj(a,3),timestamp:a.getTimestamp(),affectedFiles:null!=(b=ob(a,5))?b:[]}},xDa=function(a,b){a&1&&(F(0,"span",9),P(1," by "),H(2,"b-user-display-name",10),G());a&2&&(a=b.ngIf,B(2),D("email",a)("hovercardEnabled",!1))},yDa=function(a,b){a&1&&(F(0,"div")(1,"span"),P(2),G(),
H(3,"b-formatted-date-time",11),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),Ke(b.pending?"Created on: ":"Submitted on: "),B(1),D("timestamp",a))},zDa=function(a,b){a&1&&(ze(0),H(1,"br"),P(2),Ae());a&2&&(a=b.$implicit,B(2),Je("",a," "))},ADa=function(a,b){a&1&&(ze(0),F(1,"div",3)(2,"a",4),P(3," CL "),F(4,"span"),P(5),G()(),O(6,xDa,3,2,"span",5),H(7,"br")(8,"br"),O(9,yDa,4,2,"div",2),F(10,"div",6),H(11,"div",7)(12,"br"),F(13,"div"),P(14," Affected files: "),O(15,zDa,3,1,"ng-container",8),G()()(),Ae());a&2&&
(a=b.ngIf,b=K(),B(2),D("href","http://critique.corp.google.com/"+b.changelistId,Ud),B(3),Ke(b.changelistId),B(1),D("ngIf",a.author),B(3),D("ngIf",a.timestamp),B(2),D("innerHTML",a.description,Td),B(4),D("ngForOf",a.affectedFiles))},BDa=function(a){a&1&&H(0,"b-changelist-card",3,4);if(a&2){var b=M(1);a=K();D("onedevIsHovercardReady",b.init)("changelistId",a.changelistId)}},CDa=function(a){if(a&1){var b=y();F(0,"a",15);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});
F(1,"button",11);P(2,"View team association on component");G()()}a&2&&(a=K(),D("href",a.manageComponentLink(),Ud))},DDa=function(a){if(a&1){var b=y();F(0,"a",6);J("click",function(){z(b);var d=K(2);return A(d.trackClick("viewTeamInMoma"))});F(1,"span");P(2);H(3,"mat-icon",7);G()()}if(a&2){a=K(2);var c=M(3);Ge("href","https://moma.corp.google.com/team/",a.teamId,"",Ud);D("onedevHovercardTrigger",c);oe("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");
B(1);oe("id",a.teamLinkId);B(1);Je("",a.teamName?a.teamName:a.teamId," ")}},EDa=function(a){a&1&&(F(0,"span",8),P(1),G());if(a&2){a=K(2);var b=M(3);D("onedevHovercardTrigger",b);B(1);Ke(a.teamName?a.teamName:a.teamId)}},FDa=function(a){a&1&&(ze(0),O(1,DDa,4,6,"a",4),O(2,EDa,2,2,"span",5),Ae());a&2&&(a=K(),B(1),D("ngIf",a.anchorLinkEnabled),B(1),D("ngIf",!a.anchorLinkEnabled))},GDa=function(a){a&1&&H(0,"span",11)},HDa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(2),B(1),Ke(a.teamNotAssignedMessage))},
IDa=function(a){a&1&&(O(0,GDa,1,0,"span",9),O(1,HDa,2,1,"span",10));a&2&&(a=K(),D("ngIf","0"!=a.teamId),B(1),D("ngIf","0"==a.teamId))},JDa=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}},KDa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},$o=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},LDa=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},PDa=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?MDa(a,b):("input"===d||"select"===d||"textarea"===d)&&NDa(a,b);ODa("canvas",a,b,MDa);ODa("input, textarea, select",a,b,NDa);return b},ODa=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])},NDa=function(a,b){"file"!==b.type&&(b.value=a.value);"radio"===b.type&&b.name&&(b.name="mat-clone-"+b.name+"-"+QDa++)},MDa=function(a,b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},RDa=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)}},ap=function(a,b){var c=b?"":"none";RDa(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})},TDa=function(a,b){RDa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},SDa)},bp=function(a,b){return b&&"none"!=b?a+" "+b:a},UDa=function(a){var b=-1<a.toLowerCase().indexOf("ms")?1:1E3;return parseFloat(a)*b},WDa=function(a){a=getComputedStyle(a);var b=VDa(a,"transition-property"),c=b.find(function(d){return"transform"===d||"all"===d});if(!c)return 0;b=b.indexOf(c);
c=VDa(a,"transition-duration");a=VDa(a,"transition-delay");return UDa(c[b])+UDa(a[b])},VDa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},cp=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},dp=function(a){return"t"===a.type[0]},XDa=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},YDa=function(a,b){a.style.width=
b.width+"px";a.style.height=b.height+"px";a.style.transform=cp(b.left,b.top)},ep=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}},ZDa=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},$Da=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},aEa=function(a){a&1&&(F(0,"label",15),P(1),G());a&2&&(a=K(),oe("aria-label",
a.title),B(1),Je(" ",a.title," "))},bEa=function(a){a&1&&(F(0,"div"),H(1,"b-changelist-link",27),G());if(a&2){a=K(2).$implicit;var b=K();B(1);D("changelistId",b.asNumber(a))}},cEa=function(a){a&1&&(F(0,"div")(1,"a",28),P(2),G()());if(a&2){a=K(3).$implicit;var b=K();B(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,Ud);
oe("aria-label","Workspace"+a.workspaceId);B(1);Je(" ",a.workspaceName," ")}},dEa=function(a){a&1&&O(0,cEa,3,3,"div",20);if(a&2){K();var b=M(6);K();a=K();D("ngIf","WORKSPACES"===a.type)("ngIfElse",b)}},eEa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",29),G());a&2&&(a=K(3).$implicit,B(1),D("teamId",a.teamId)("componentId",a.componentId))},fEa=function(a){a&1&&O(0,eEa,2,2,"div",20);if(a&2){K();var b=M(8);K();a=K();D("ngIf","TEAM"===a.type)("ngIfElse",b)}},gEa=function(a){if(a&1){var b=y();F(0,
"div")(1,"a",30);J("click",function(){z(b);var c=K(4);return A(c.trackClick("postmortem"))});P(2);G()()}a&2&&(a=K(3).$implicit,B(1),Ge("href","https://pm.corp.google.com/",a,"",Ud),qe("aria-label","Postmortem ",a,""),B(1),Je(" ",a," "))},hEa=function(a){a&1&&O(0,gEa,3,3,"div",20);if(a&2){K();var b=M(10);K();a=K();D("ngIf","POSTMORTEMS"===a.type)("ngIfElse",b)}},iEa=function(a){a&1&&(F(0,"div"),H(1,"b-truncated-span",32),G());if(a&2){a=K(3).$implicit;var b=K();B(1);D("maxWidth",150)("modelValue",a)("disabled",
!b.truncate)}},jEa=function(a){a&1&&H(0,"b-user-membership-chip",36);if(a&2){a=K(4).$implicit;var b=K();D("user",b.getUser(a))("email",a)("teamId",b.teamId)("enableSmallChip",!0)}},kEa=function(a){a&1&&(F(0,"b-person-hovercard",37),P(1),G());a&2&&(a=K(4).$implicit,D("email",a),B(1),Je(" ",a," "))},lEa=function(a){a&1&&(F(0,"div",33),O(1,jEa,1,4,"b-user-membership-chip",34),O(2,kEa,2,2,"b-person-hovercard",35),G());a&2&&(a=K(4),B(1),D("ngIf",a.enableTeamAnnotations),B(1),D("ngIf",!a.enableTeamAnnotations))},
mEa=function(a){a&1&&(O(0,iEa,2,3,"div",7),O(1,lEa,3,2,"div",31));if(a&2){a=K(2).$implicit;var b=K();D("ngIf",!b.isUser&&b.isString(a));B(1);D("ngIf",b.isUser&&b.isString(a))}},nEa=function(a){if(a&1){var b=y();F(0,"button",38,39);J("click",function(){z(b);var d=K(2).index,e=K();return A(e.removeItem(d))});G()}if(a&2){a=K(2).$implicit;var c=K();re("aria-label","Remove ",a," from ",c.title,"");D("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},oEa=function(a){a&1&&(F(0,"div",18)(1,"div",
19),O(2,bEa,2,1,"div",20),O(3,dEa,1,2,"ng-template",null,21,Pf),O(5,fEa,1,2,"ng-template",null,22,Pf),O(7,hEa,1,2,"ng-template",null,23,Pf),O(9,mEa,2,2,"ng-template",null,24,Pf),G(),O(11,nEa,2,4,"button",25),H(12,"div",26),G());if(a&2){var b=M(4);K();a=K();B(2);D("ngIf","CHANGELISTS"===a.type)("ngIfElse",b);B(9);D("ngIf",!a.readonly&&"REPEATED_ENUM"!==a.type)}},pEa=function(a,b){a&1&&(F(0,"div",16),O(1,oEa,13,3,"div",17),G());a&2&&(a=b.index,b=K(),B(1),D("ngIf",b.showingAll||a<b.defaultLineCount||
!!b.values&&b.values.length===b.defaultLineCount+1))},qEa=function(a){if(a&1){var b=y();F(0,"div",40,41);J("click",function(c){z(b);var d=K();return A(fp(d,!1,c))})("keydown.enter",function(c){z(b);var d=K();return A(fp(d,!1,c))})("keydown.space",function(c){z(b);var d=K();return A(fp(d,!1,c))});P(2," (show fewer) ");G()}a&2&&(a=K(),re("aria-label","Show at most ",a.defaultLineCount," ",a.title," items"),Ge("matTooltip","Show a truncated list of at most ",a.defaultLineCount," items"))},rEa=function(a){if(a&
1){var b=y();F(0,"div")(1,"div",42);P(2);F(3,"span",43,44);J("click",function(c){z(b);var d=K();return A(fp(d,!0,c))})("keydown.enter",function(c){z(b);var d=K();return A(fp(d,!0,c))})("keydown.space",function(c){z(b);var d=K();return A(fp(d,!0,c))});P(5," (show all) ");G()()()}a&2&&(a=K(),B(2),Je(" ... and ",a.values.length-a.defaultLineCount," more "),B(1),re("aria-label","Show all ",null==a.values?null:a.values.length," ",a.title," items"),Ge("matTooltip","Show all ",null==a.values?null:a.values.length,
" items in the list"))},sEa=function(a){a&1&&(F(0,"div"),P(1,"--"),G())},vEa=function(a){if(a&1){var b=y();F(0,"button",49);J("menuOpened",function(){z(b);var d=K(2);tEa(d);d.enumPendingValues=new Set(d.values||[]);return A()})("menuClosed",function(){z(b);var d=K(2);return A(uEa(d))});P(1,"Edit ");G()}if(a&2){a=K(2);var c=M(15);qe("aria-label","Add item to ",a.title,"");D("matMenuTriggerFor",c)}},wEa=function(a){a&1&&(F(0,"button",50),P(1,"Add "),G());if(a&2){a=K(2);var b=M(20);qe("aria-label","Add item to ",
a.title,"");D("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},xEa=function(a){a&1&&(F(0,"button",51),P(1,"Add "),G());if(a&2){a=K(2);var b=M(18);qe("aria-label","Add item to ",a.title,"");D("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},yEa=function(a){a&1&&(ze(0,45),O(1,vEa,2,2,"button",46),O(2,wEa,2,3,"button",47),O(3,xEa,2,3,"button",48),Ae());a&2&&(a=K(),D("ngSwitch",a.type),B(1),D("ngSwitchCase","REPEATED_ENUM"),B(1),D("ngSwitchCase","REPEATED_DATE"))},
zEa=function(a){a&1&&Fe(0,1,["*ngIf","!readonly"])},AEa=function(a,b){if(a&1){var c=y();F(0,"button",53);J("click",function(d){var e=z(c).$implicit,f=K(2);e=e.value;f.enumPendingValues.has(e)?f.enumPendingValues.delete(e):f.enumPendingValues.add(e);null==d||d.stopPropagation();return A()});F(1,"span",54);H(2,"mat-icon",55);G();P(3);G()}a&2&&(a=b.$implicit,b=K(2),te("b-menu-item-checked",b.enumPendingValues.has(a.value)),D("disabled",b.listFieldDisabled),oe("aria-label",a.displayText),B(3),Je(" ",
a.displayText," "))},BEa=function(a){a&1&&O(0,AEa,4,5,"button",52);a&2&&(a=K(),D("ngForOf",a.sortedEnumChoices)("ngForTrackBy",a.trackByIndex))},CEa=function(a){a&1&&H(0,"input",65);a&2&&(a=K(2),qe("aria-label","Addition to ",a.title,""),D("bContactAutocomplete","MULTI"))},DEa=function(a){a&1&&H(0,"input",66);a&2&&(a=K(2),qe("aria-label","Addition to ",a.title,""),D("type","REPEATED_NUMERIC"===a.type?"number":"text"))},FEa=function(a){if(a&1){var b=y();F(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,
"form",56,57);J("ngSubmit",function(){z(b);var d=M(3),e=M(4),f=K();if(d.valid){var h=d.value.input;null==d||d.reset();var k;null==(k=e.querySelector("input"))||k.focus();f.addItems(h)}return A()});O(5,CEa,1,2,"input",58);O(6,DEa,1,2,"input",59);F(7,"div",60)(8,"button",61);H(9,"mat-icon",62);G();F(10,"button",63);J("click",function(){z(b);var d=K();return A(EEa(d,!0))});H(11,"mat-icon",64);G()()()()()}if(a&2){var c=M(3);a=K();B(5);D("ngIf",a.isUser);B(1);D("ngIf",!a.isUser);B(2);qe("aria-label","Apply addition to ",
a.title,"");D("disabled",!c.valid||a.listFieldDisabled);B(2);qe("aria-label","Discard addition to ",a.title,"")}},GEa=function(a){if(a&1){var b=y();F(0,"b-date-time-picker-content",67);J("dateChange",function(c){z(b);var d=K();return A(c&&d.addItems(c))})("cancelClicked",function(){z(b);var c=K();return A(EEa(c,!1))});G()}a&2&&D("required",!0)("renderPanel",!1)},gp=function(a,b){return{originX:a,originY:b}},hp=function(a,b){return{overlayX:a,overlayY:b}},JEa=function(a){if(a&1){var b=y();F(0,"b-edit-field",
3);J("valueChange",function(e){z(b);var f=K(2);return A(f.save.emit(e))});G()}if(a&2){a=K().ngIf;var c=K(),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",HEa(c))("displayValueOverride",c.getDisplayValue())("choices",null!==(d=a.choices)&&void 0!==d?d:Ne(11,IEa))("showEnumTitle",!0)("disabled",c.disabled)}},LEa=function(a){if(a&1){var b=y();F(0,"b-list-field",4);J("valuesChange",
function(d){z(b);var e=K(2);return A(e.save.emit(d.values))});G()}if(a&2){a=K().ngIf;var c=K();D("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("values",KEa(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},MEa=function(a,b){a&1&&(ze(0),O(1,JEa,1,12,"b-edit-field",1),O(2,LEa,1,9,"b-list-field",2),Ae());a&2&&(a=b.ngIf,B(1),D("ngIf",!a.isRepeated()),B(1),D("ngIf",a.isRepeated()))},
NEa=function(a){a&1&&(ze(0),H(1,"mat-icon",9),Ae())},OEa=function(a){if(a&1){var b=y();ze(0);F(1,"button",10);J("mousedown",function(c){z(b);var d=K();return A(d.back(c))});H(2,"mat-icon",11);G();Ae()}},PEa=function(a){if(a&1){var b=y();ze(0);F(1,"button",12);J("mousedown",function(c){z(b);var d=K();return A(d.expand(d.componentOption,c))});H(2,"mat-icon",13);G();Ae()}a&2&&(a=K(),B(1),D("matTooltip","View child components of "+a.componentOption.name),oe("aria-label","View child components of "+a.componentOption.name))},
QEa=function(a){if(a&1){var b=y();ze(0);F(1,"a",17);J("mousedown",function(d){z(b);var e=K().$implicit;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});Q(2,"boldPrefixMatches");Q(3,"toString");G();Ae()}if(a&2){a=K().$implicit;var c=K(2);B(1);D("innerHtml",Se(2,1,R(3,4,a.name),c.query),Td)}},REa=function(a){a&1&&P(0);a&2&&(a=K().$implicit,Je(" ",a.name," "))},SEa=function(a){a&1&&(ze(0),P(1,"\u00a0>\u00a0"),Ae())},TEa=function(a,b){a&1&&(ze(0),O(1,QEa,4,6,"ng-container",
5),O(2,REa,1,1,"ng-template",null,15,Pf),O(4,SEa,2,0,"ng-container",16),Ae());if(a&2){a=b.$implicit;b=b.last;var c=M(3);B(1);D("ngIf",a.name!=a.id)("ngIfElse",c);B(3);D("ngIf",!b)}},UEa=function(a){a&1&&(ze(0),O(1,TEa,5,3,"ng-container",14),Ae());a&2&&(a=K(),B(1),D("ngForOf",a.componentOption.componentPath))},VEa=function(a,b){if(a&1){var c=y();ze(0);F(1,"a",18);J("mousedown",function(d){var e=z(c).ngIf;K(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return A()});P(2);G();
Ae()}a&2&&(a=b.ngIf,B(2),Je(" ",a.name," "))},WEa=function(a){a&1&&O(0,VEa,3,1,"ng-container",16);a&2&&(a=K(),D("ngIf",a.componentOption.componentPath[a.componentOption.componentPath.length-1]))},XEa=function(a){a&1&&(F(0,"span",19),P(1," [Archived] "),G())},YEa=function(a){a&1&&H(0,"img",5);a&2&&(a=K(),oe("src",a.getLogoUrl(),Ud))},ZEa=function(a){a&1&&(F(0,"span",9),P(1,"no components"),G())},$Ea=function(a){a&1&&(F(0,"div",6),H(1,"div",7),Q(2,"boldPrefixMatches"),O(3,ZEa,2,0,"span",8),G());a&2&&
(a=K(),B(1),D("innerHtml",Se(2,2,a.teamOption.name,a.query),Td),B(2),D("ngIf",a.hasNoComponent))},aFa=function(a){if(a&1){var b=y();ze(0);F(1,"a",15);J("mousedown",function(c){z(b);var d=K(2).index,e=K(2);d=null==e.teamOption.pathIds?null:e.teamOption.pathIds[d];c.preventDefault();c.stopPropagation();d&&e.selectTeamId.emit(d);return A()});P(2);G();Ae()}a&2&&(a=K(2).$implicit,B(2),Ke(a))},bFa=function(a){a&1&&P(0);a&2&&(a=K(2).$implicit,Ke(a))},cFa=function(a){a&1&&(ze(0),O(1,aFa,3,1,"ng-container",
12),O(2,bFa,1,1,"ng-template",null,14,Pf),ze(4),P(5," \u00b7 "),Ae()());if(a&2){var b=M(3);a=K(3);B(1);D("ngIf",a.allowSegmentSelection)("ngIfElse",b)}},dFa=function(a){a&1&&(ze(0),F(1,"strong",17),P(2),G(),Ae());a&2&&(a=K(2).$implicit,B(2),Ke(a))},eFa=function(a){a&1&&P(0);a&2&&(a=K(2).$implicit,Ke(a))},fFa=function(a){a&1&&(O(0,dFa,3,1,"ng-container",12),O(1,eFa,1,1,"ng-template",null,16,Pf));if(a&2){var b=M(2);a=K(3);D("ngIf",a.compact)("ngIfElse",b)}},gFa=function(a,b){a&1&&(ze(0),O(1,cFa,6,2,
"ng-container",12),O(2,fFa,3,2,"ng-template",null,13,Pf),Ae());if(a&2){a=b.last;var c=M(3);B(1);D("ngIf",!a)("ngIfElse",c)}},hFa=function(a){a&1&&(F(0,"div",10),O(1,gFa,4,2,"ng-container",11),G());a&2&&(a=K(),B(1),D("ngForOf",a.teamOption.pathNames))},iFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(),pathIds:a.getPathIdsList(),expanded:!1}},jFa=function(a){return{type:"team",id:a.getId(),name:a.getName(),description:a.getDescription(),
expanded:!1}},ip=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}},kFa=function(a){return new Map([].concat(v(a.entries())).map(function(b){var c=r(b);b=c.next().value;
c=c.next().value;return[b,c.map(jFa)]}))},lFa=function(){var a=uc(hi),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},mFa=function(a){if(a&1){var b=y();F(0,"button",9);J("mousedown",function(c){z(b);K().clearQuery();return A(jp(c))});H(1,"mat-icon",10);G()}},nFa=function(a){a&1&&(F(0,"div",13),P(1," Checking for admin access... "),G())},oFa=function(a){a&1&&(F(0,"div",15),P(1," You do not have admin access to this component. "),F(2,"a",16),P(3,"View component admins"),
G()());a&2&&(a=K(3),B(2),D("href",a.paths.manageComponent(a.selectedComponent.componentId,"access"),Ud))},pFa=function(a){a&1&&O(0,oFa,4,1,"div",14);a&2&&(a=K(2),D("ngIf",!a.hasAccess&&a.selectedComponent))},qFa=function(a){a&1&&(F(0,"div"),O(1,nFa,2,0,"div",11),O(2,pFa,1,1,"ng-template",null,12,Pf),G());if(a&2){var b=M(3);a=K();B(1);D("ngIf",a.checkingAccess)("ngIfElse",b)}},rFa=function(a){a&1&&H(0,"mat-progress-bar",24)},sFa=function(a){a&1&&(ze(0),P(1,"s"),Ae())},uFa=function(a,b){if(a&1){var c=
y();ze(0);F(1,"div",30);J("mousedown",function(e){var f=z(c).$implicit,h=K(5);tFa(h.searchState,f);return A(jp(e))});F(2,"team-row",31);J("selectTeamId",function(e){z(c);var f=K(5);return A(kp(f.searchState,e))});G()();Ae()}if(a&2){a=b.$implicit;b=K(5);var d=M(3);B(1);D("data",a);B(1);D("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},vFa=function(a){a&1&&(F(0,"div",27)(1,"div",28),P(2," Filter components by my teams "),F(3,"span"),P(4),O(5,sFa,2,0,"ng-container",
5),G()(),O(6,uFa,3,4,"ng-container",29),H(7,"mat-divider"),G());a&2&&(a=K().ngIf,B(4),Je("",a.length," team"),B(1),D("ngIf",1<a.length),B(1),D("ngForOf",a))},wFa=function(a,b){a&1&&(ze(0),O(1,vFa,8,3,"div",26),Ae());a&2&&(a=b.ngIf,B(1),D("ngIf",a.length))},xFa=function(a){a&1&&Be(0)},zFa=function(a){a&1&&(ze(0),O(1,wFa,2,1,"ng-container",5),Q(2,"async"),O(3,xFa,1,0,"ng-container",25),Ae());if(a&2){a=K(2);var b=M(12);B(1);D("ngIf",R(2,3,a.searchState.myTeams$));B(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",
Oe(5,yFa,a.searchState.recentComponents))}},AFa=function(a){a&1&&(ze(0),P(1,"s"),Ae())},BFa=function(a){a&1&&Be(0)},EFa=function(a,b){a&1&&(ze(0),O(1,BFa,1,0,"ng-container",25),Ae());if(a&2){a=b.$implicit;b=b.index;K(5);var c=M(10);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Pe(4,CFa,a,Oe(2,DFa,b)))}},FFa=function(a){if(a&1){var b=y();F(0,"button",33);J("mousedown",function(){z(b);var c=K(5);return A(c.searchState.showAllTeams$.next(!0))});H(1,"mat-icon",34);P(2," Show all teams ");G()}},
GFa=function(a,b){a&1&&(F(0,"div",27)(1,"div",28),P(2," Filter components by teams "),F(3,"span"),P(4),O(5,AFa,2,0,"ng-container",5),G()(),O(6,EFa,2,7,"ng-container",29),Q(7,"async"),O(8,FFa,3,0,"button",32),Q(9,"async"),H(10,"mat-divider"),G());a&2&&(a=b.ngIf,b=K(4),B(4),Je("",a," team"),B(1),D("ngIf",1<a),B(1),D("ngForOf",R(7,4,b.searchState.filteredTeamOptions$)),B(2),D("ngIf",R(9,6,b.searchState.hasHiddenTeams$)))},HFa=function(a,b){a&1&&(ze(0),O(1,GFa,11,8,"div",26),Ae());a&2&&(a=b.ngIf,B(1),
D("ngIf",a.length))},IFa=function(a){a&1&&Be(0)},KFa=function(a){a&1&&(ze(0),O(1,HFa,2,1,"ng-container",5),Q(2,"async"),O(3,IFa,1,0,"ng-container",25),Ae());if(a&2){a=K(2);var b=M(12);B(1);D("ngIf",R(2,3,a.searchState.teamOptions$));B(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Oe(5,JFa,a.searchState.componentOptions))}},LFa=function(a){a&1&&Be(0)},NFa=function(a,b){a&1&&(ze(0),O(1,LFa,1,0,"ng-container",25),Ae());if(a&2){a=b.$implicit;b=b.index;K(7);var c=M(10);B(1);D("ngTemplateOutlet",
c)("ngTemplateOutletContext",Pe(4,CFa,a,Oe(2,MFa,b)))}},OFa=function(a){a&1&&(F(0,"div",42),O(1,NFa,2,7,"ng-container",29),G());a&2&&(a=K(2).ngIf,B(1),D("ngForOf",a))},RFa=function(a){if(a&1){var b=y();ze(0);O(1,OFa,2,1,"div",41);F(2,"button",33);J("mousedown",function(c){z(b);var d=K(5),e=d.searchState.teamScope$.value;e.expanded?PFa(d.searchState,e):QFa(d.searchState,e);return A(jp(c))});H(3,"mat-icon",34);P(4);G();Ae()}a&2&&(a=K(5),B(1),D("ngIf",a.searchState.teamScope$.value.expanded),B(2),te("expanded",
a.searchState.teamScope$.value.expanded),B(1),Je(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},SFa=function(a,b){a&1&&(ze(0),O(1,RFa,5,4,"ng-container",5),Ae());a&2&&(a=b.ngIf,B(1),D("ngIf",a.length))},UFa=function(a){if(a&1){var b=y();F(0,"div",36)(1,"div",28);P(2," Filtering by team: ");G();F(3,"div",37)(4,"team-row",38);J("selectTeamId",function(d){z(b);var e=K(3);return A(kp(e.searchState,d))});G();F(5,"button",39);J("mousedown",function(d){z(b);var e=K(3);lp(e.searchState);
return A(jp(d))});H(6,"mat-icon",40);G()();O(7,SFa,2,1,"ng-container",5);G()}if(a&2){a=K(3);var c=M(3);B(3);D("data",a.searchState.teamScope$.value)("listOrder",Ne(7,TFa));B(1);D("teamOption",a.searchState.teamScope$.value)("query",c.value)("compact",!0)("allowSegmentSelection",!0);B(3);D("ngIf",a.searchState.getChildTeams(a.searchState.teamScope$.value.id))}},VFa=function(a){a&1&&Be(0)},XFa=function(a){a&1&&(ze(0),O(1,UFa,8,8,"div",35),O(2,VFa,1,0,"ng-container",25),Ae());if(a&2){a=K(2);var b=M(12);
B(1);D("ngIf",a.searchState.teamScope$.value);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Pe(3,WFa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},$Fa=function(a){if(a&1){var b=y();F(0,"div",44)(1,"div",45);P(2,"Component Tree Browser");G();F(3,"component-row",46);J("goBack",function(){z(b);var c=K(3);return A(YFa(c.searchState))})("selectComponentId",function(c){z(b);var d=K(3);return A(ZFa(d.searchState,c))});G()()}a&2&&(a=K(3),B(3),D("componentOption",a.searchState.componentScope))},
aGa=function(a){a&1&&Be(0)},cGa=function(a){a&1&&(ze(0),O(1,$Fa,4,1,"div",43),O(2,aGa,1,0,"ng-container",25),Ae());if(a&2){a=K(2);var b=M(12);B(1);D("ngIf",a.searchState.componentScope);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Oe(3,bGa,a.searchState.componentOptions))}},dGa=function(a){if(a&1){var b=y();F(0,"div",17,18);J("mousedown",function(c){z(b);K();return A(jp(c))});F(2,"div",19);O(3,rFa,1,0,"mat-progress-bar",20);G();F(4,"div",21);ze(5,22);Q(6,"async");O(7,zFa,4,7,"ng-container",
23);O(8,KFa,4,7,"ng-container",23);O(9,XFa,3,6,"ng-container",23);O(10,cGa,3,5,"ng-container",23);Ae();G()()}a&2&&(a=K(),B(3),D("ngIf",a.isLoading()),B(2),D("ngSwitch",R(6,6,a.searchState.state$)),B(2),D("ngSwitchCase","default"),B(1),D("ngSwitchCase","global"),B(1),D("ngSwitchCase","team_scope"),B(1),D("ngSwitchCase","component_scope"))},eGa=function(a){if(a&1){var b=y();F(0,"button",50);J("mousedown",function(c){z(b);var d=K().team,e=K();d.expanded?PFa(e.searchState,d):QFa(e.searchState,d);return A(jp(c))});
H(1,"mat-icon",51);G()}a&2&&(a=K().team,B(1),te("expanded",a.expanded))},fGa=function(a){a&1&&Be(0)},hGa=function(a,b){a&1&&(ze(0),O(1,fGa,1,0,"ng-container",25),Ae());if(a&2){a=b.$implicit;b=b.index;var c=K(2),d=c.level;c=c.order;K();var e=M(10);B(1);D("ngTemplateOutlet",e)("ngTemplateOutletContext",Qe(gGa,a,d+1,c.concat(b)))}},iGa=function(a){a&1&&(ze(0),O(1,hGa,2,6,"ng-container",29),Ae());if(a&2){a=K().team;var b=K();B(1);D("ngForOf",b.searchState.getChildTeams(a.id))}},jGa=function(a,b){if(a&
1){var c=y();F(0,"div",47);J("mousedown",function(h){var k=z(c).team,q=K();tFa(q.searchState,k);return A(jp(h))});F(1,"div",48);O(2,eGa,2,2,"button",49);F(3,"team-row",31);J("selectTeamId",function(h){z(c);var k=K();return A(kp(k.searchState,h))});G()()();O(4,iGa,2,1,"ng-container",5)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=K(),f=M(3);D("listOrder",b)("data",a);B(1);se("margin-left",28*d,"px");B(1);D("ngIf",e.searchState.getChildTeams(a.id).length);B(1);te("indent",!e.searchState.getChildTeams(a.id).length);
D("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B(1);D("ngIf",a.expanded)}},kGa=function(a){a&1&&(ze(0),P(1,"s"),Ae())},mGa=function(a,b){if(a&1){var c=y();F(0,"div",56);J("mousedown",function(e){var f=z(c).$implicit,h=K(3);lGa(h.searchState,f.id);return A(jp(e))});F(1,"component-row",57);J("selectComponentId",function(e){z(c);var f=K(3);return A(lGa(f.searchState,e))})("expandComponent",function(e){z(c);var f=K(3);return A(f.searchState.expandComponent(e))});
G()()}if(a&2){a=b.$implicit;b=K(2).mode;K();var d=M(3);D("data",a);B(1);D("componentOption",a)("query",d.value)("mode",b)}},nGa=function(a,b){a&1&&(F(0,"div",54)(1,"div",28),P(2),F(3,"span"),P(4),O(5,kGa,2,0,"ng-container",5),G()(),O(6,mGa,2,4,"div",55),G());if(a&2){a=b.ngIf;var c=K();b=c.mode;c=c.$implicit;B(2);Je(" ","recent"===b?"Select recent component":"Select component"," ");B(2);Je("",a," component");B(1);D("ngIf",1<a);B(1);D("ngForOf",c)}},oGa=function(a){a&1&&(ze(0),P(1," No recent components "),
Ae())},pGa=function(a){a&1&&(ze(0),P(1," No child components "),Ae())},qGa=function(a){a&1&&(ze(0),P(1),H(2,"mat-icon",61),P(3," above ("),F(4,"a",62),P(5,"learn more "),H(6,"mat-icon",63),G(),P(7," about team associations)"),Ae());a&2&&(a=K(4).teamScope,B(1),Je(" for ",a.name,". Remove the team filter by clicking on the "))},rGa=function(a){a&1&&(ze(0),P(1," No components found "),O(2,qGa,8,1,"ng-container",5),Ae());a&2&&(a=K(3).teamScope,B(2),D("ngIf",a))},sGa=function(a){a&1&&(F(0,"div",59),ze(1,
22),O(2,oGa,2,0,"ng-container",23),O(3,pGa,2,0,"ng-container",23),O(4,rGa,3,1,"ng-container",60),Ae(),G());a&2&&(a=K(2).mode,B(1),D("ngSwitch",a),B(1),D("ngSwitchCase","recent"),B(1),D("ngSwitchCase","leaf"))},tGa=function(a){a&1&&O(0,sGa,5,3,"div",58);a&2&&(a=K(2),D("ngIf",!(a.componentLoading||a.searchState.componentsLoading)))},uGa=function(a,b){a&1&&(O(0,nGa,7,4,"div",52),O(1,tGa,1,1,"ng-template",null,53,Pf));if(a&2){a=b.$implicit;var c=M(2);D("ngIf",a.length)("ngIfElse",c)}},vGa=function(a,
b){b=r([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},wGa=function(a){a&1&&(F(0,"div"),P(1," Loading custom fields... "),G())},xGa=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K(2),B(1),Je(" There are no custom fields in component ",a.selectedComponent.name,". "))},yGa=function(a,b){a&1&&(F(0,"mat-option",9),P(1),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",a.name," "))},zGa=
function(a){if(a&1){var b=y();F(0,"div")(1,"mat-form-field",6)(2,"mat-label");P(3,"Custom field");G();F(4,"mat-select",7);J("selectionChange",function(c){z(b);var d=K(2);return A(d.fieldSelected.emit(c.value))});O(5,yGa,2,2,"mat-option",8);G()()()}a&2&&(a=K(2),B(5),D("ngForOf",a.customFields))},AGa=function(a){a&1&&(F(0,"div",4),O(1,wGa,2,0,"div",5),O(2,xGa,2,1,"div",5),O(3,zGa,6,1,"div",5),G());a&2&&(a=K(),B(1),D("ngIf",null==a.customFields),B(1),D("ngIf",a.customFields&&!a.customFields.length),
B(1),D("ngIf",null==a.customFields?null:a.customFields.length))},BGa=function(a){a&1&&Be(0)},CGa=function(){},DGa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().value,B(1),Ke(a.textValue))},EGa=function(a){a&1&&(ze(0),H(1,"b-formatted-date-time",5),Ae());if(a&2){a=K().value;var b=K();B(1);D("date",b.toDate(a.dateValue))}},FGa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().value,B(1),Ke(a.enumValue))},GGa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().value,B(1),Ke(a.numericValue))},HGa=function(a,
b){a&1&&(ze(0),P(1),Ae());a&2&&(a=b.$implicit,b=b.last,B(1),Le("",a,"",b?"":", ",""))},IGa=function(a){a&1&&(ze(0),O(1,HGa,2,2,"ng-container",6),Ae());a&2&&(a=K().value,B(1),D("ngForOf",a.repeatedTextValue.values))},JGa=function(a,b){a&1&&(ze(0),H(1,"b-formatted-date-time",5),P(2),Ae());if(a&2){a=b.$implicit;b=b.last;var c=K(3);B(1);D("date",c.toDate(a));B(1);Ke(b?"":", ")}},KGa=function(a){a&1&&(ze(0),O(1,JGa,3,2,"ng-container",6),Ae());a&2&&(a=K().value,B(1),D("ngForOf",a.repeatedDateValue.values))},
LGa=function(a,b){a&1&&(ze(0),P(1),Ae());a&2&&(a=b.$implicit,b=b.last,B(1),Le("",a,"",b?"":", ",""))},MGa=function(a){a&1&&(ze(0),O(1,LGa,2,2,"ng-container",6),Ae());a&2&&(a=K().value,B(1),D("ngForOf",a.repeatedEnumValue.values))},NGa=function(a,b){a&1&&(ze(0),P(1),Ae());a&2&&(a=b.$implicit,b=b.last,B(1),Le("",a,"",b?"":", ",""))},OGa=function(a){a&1&&(ze(0),O(1,NGa,2,2,"ng-container",6),Ae());a&2&&(a=K().value,B(1),D("ngForOf",a.repeatedNumericValue.values))},PGa=function(a,b){a&1&&(O(0,DGa,2,1,
"ng-container",4),O(1,EGa,2,1,"ng-container",4),O(2,FGa,2,1,"ng-container",4),O(3,GGa,2,1,"ng-container",4),O(4,IGa,2,1,"ng-container",4),O(5,KGa,2,1,"ng-container",4),O(6,MGa,2,1,"ng-container",4),O(7,OGa,2,1,"ng-container",4));a&2&&(a=b.value,b=K(),D("ngIf",null!=a.textValue),B(1),D("ngIf",b.isNonemptyJsonDateValue(a.dateValue)),B(1),D("ngIf",null!=a.enumValue),B(1),D("ngIf",null!=a.numericValue),B(1),D("ngIf",null!=a.repeatedTextValue),B(1),D("ngIf",null!=a.repeatedDateValue),B(1),D("ngIf",null!=
a.repeatedEnumValue),B(1),D("ngIf",null!=a.repeatedNumericValue))},mp=function(a){var b=void 0===b?QGa:b;var c=Ia(a),d=function(f){f=r(f);f.next();f=wf(f);return b(c,f)},e=function(f){var h=r(f);f=h.next().value;h=wf(h);return a.apply(f,h)};return function(){var f=xc.apply(0,arguments),h=this||da,k=RGa.get(h);k||(k={},RGa.set(h,k));return SGa(k,[this].concat(v(f)),e,d)}},np=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},op=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},TGa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},VGa=function(a){a=kh(a);for(var b=0;b<UGa.length;++b){var c=UGa[b],d=op(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,TGa(a,c))}return a},WGa=function(a){a=kh(a);TGa(a,"X-Goog-Upload-Status");return a},XGa=function(a){a&1&&(F(0,"span"),P(1),Q(2,"humanFileSize"),Q(3,"humanFileSize"),G());if(a&
2){a=K().$implicit;var b;B(1);Le(" ",R(2,2,a.transferredBytes)," of ",R(3,4,null!==(b=a.size)&&void 0!==b?b:0)," ")}},YGa=function(a){a&1&&(F(0,"span",11),P(1),G());a&2&&(a=K().$implicit,B(1),Je(" ",a.errorMessage," "))},ZGa=function(a){a&1&&(F(0,"span",11),P(1),Q(2,"humanFileSize"),G());if(a&2){a=K().$implicit;var b;B(1);Je(" ",R(2,1,null!==(b=a.size)&&void 0!==b?b:0)," ")}},aHa=function(a,b){if(a&1){var c=y();F(0,"div",3)(1,"div",4);H(2,"mat-icon",5);F(3,"span",6);P(4);G();F(5,"span",7);O(6,XGa,
4,6,"span",8);O(7,YGa,2,1,"span",9);O(8,ZGa,3,3,"span",9);G()();F(9,"button",10);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.cancel(d))});G()()}a&2&&(a=b.$implicit,b=K(2),D("ngClass",Oe(8,$Ga,a.state===b.uploadStates.ERROR)),B(3),D("matTooltip",a.name),B(1),Ke(a.name),B(2),D("ngIf",a.state===b.uploadStates.UPLOADING),B(1),D("ngIf",a.state===b.uploadStates.ERROR),B(1),D("ngIf",a.state===b.uploadStates.COMPLETE),B(1),D("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":
"Remove attachment"),oe("aria-label","Remove attachment"+a.name))},bHa=function(a){a&1&&(F(0,"div",1),O(1,aHa,10,10,"div",2),G());a&2&&(a=K(),B(1),D("ngForOf",a.uploads))},pp=function(a){this.action=a;this.wfv=!1},hHa=function(){var a=void 0===a?!1:a;var b=void 0===b?null:b;var c=new qp;c.addSource(cHa());if(a){a=c.addSource;var d=new rp,e=new sp;fo(e,14,!0);ul(e,4,1);Gb(d,3,e);d.setSourceId(2);d.setName("Suggested");a.call(c,d)}null!=b&&c.addSource(b);c.addSource(dHa());c.addSource(eHa());c.addSource(fHa());
c.addSource(gHa());b=c.addSource;a=new rp;d=new sp;fo(d,12,!0);Gb(a,3,d);a.setSourceId(2);a.setName("Computers");b.call(c,a);return c},dHa=function(){var a=new rp,b=new sp;b.setParentId("root");var c=iHa();Gb(b,3,c);ul(b,4,1);Gb(a,3,b);a.setSourceId(2);a.setName("My Drive");return a},fHa=function(){var a=new rp,b=new sp;fo(b,5,!0);var c=iHa();c.setType(7);c.setDirection(2);Gb(b,3,c);ul(b,4,1);Gb(a,3,b);a.setSourceId(2);a.setName("Shared with me");return a},cHa=function(){var a=new rp,b=new sp,c=new tp;
c.setType(10);c.setDirection(2);Gb(b,3,c);ul(b,4,1);Gb(a,3,b);a.setSourceId(2);a.setName("Recent");return a},gHa=function(){var a=new rp,b=new sp;b.setStarred(!0);var c=iHa();Gb(b,3,c);ul(b,4,1);Gb(a,3,b);a.setSourceId(2);a.setName("Starred");return a},eHa=function(){var a=new rp,b=new sp;fo(b,11,!0);Gb(a,3,b);a.setSourceId(2);a.setName("Shared drives");return a},iHa=function(){var a=new tp;a.setType(4);a.setDirection(1);return a},lHa=function(){var a=new qp;a.addSource(jHa());a.addSource(kHa());
return a},jHa=function(){var a=new rp,b=new up;b.setViewMode(1);ul(b,2,1);fo(b,5,!0);fo(b,6,!1);Gb(a,6,b);a.setSourceId(3);a.setName("Photos");return a},kHa=function(){var a=new rp,b=new up;b.setViewMode(2);fo(b,5,!0);fo(b,6,!1);Gb(a,6,b);a.setSourceId(3);a.setName("Albums");return a},mHa=function(){var a=new rp,b=new up;b.setViewMode(1);ul(b,2,1);fo(b,5,!1);fo(b,6,!0);Gb(a,6,b);a.setSourceId(3);a.setName("Videos");return a},nHa=function(a,b){pp.call(this,"set-drive-options");this.appId=a;this.appOrigin=
b},oHa=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},pHa=function(a,b){var c=b&&b.getWindow()||window;if(oHa(b))a();else if(vp)vp.push(a);else var d=vp=[a],e=c.setInterval(function(){if(oHa(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();vp=null}},100)},rHa=function(a,b){var c;a:{for(c=b.target;c;){if(1==c.nodeType){var d=wp(c,"overflowY");if("auto"==d||"scroll"==d)break a}c=c.parentNode}c=null}(!c||!qHa(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()},xp=function(a,b){if(b)if(b?(b=p(b,2),b=null===b||void 0===b?null:qh(b)):b=null,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("dc");if("style"===a.tagName.toLowerCase())throw Error("ec");}a.innerHTML=Lj(b)}else sHa(a);else sHa(a)},sHa=function(a){for(;a.lastChild;)a.lastChild.remove()},yp=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},tHa=function(a){return a.ctrlKey||
a.metaKey||a.shiftKey||a.altKey},uHa=function(a){if(a&1){var b=y();F(0,"div",5);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});P(1);F(2,"button",6);J("click",function(){z(b);var c=K();return A(c.copyToClipboard())});H(3,"mat-icon",7);G()()}a&2&&(a=K(),B(1),Je(" Link may be malformed: ",a.originalHref," "))},vHa=function(a){a&1&&(F(0,"b-glue"),H(1,"mat-icon",5),G())},zHa=function(a){if(a&1){var b=y();F(0,"div",6);J("clickOutside",function(){z(b);var c=K();return A(c.hide())});F(1,
"span",7)(2,"a",8);J("click",function(c){z(b);var d=K();return A(wHa(d,c))})("keydown",function(c){z(b);var d=K();return A(xHa(d,c))});P(3);G()();F(4,"button",9);J("keydown.Tab",function(c){z(b);var d=K();return A(yHa(d,c))})("click",function(){z(b);var c=K();return A(c.copyToClipboard())});H(5,"mat-icon",10);G()()}a&2&&(a=K(),B(2),D("href",a.originalHref,Ud),B(1),Ke(a.originalHref))},AHa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},BHa=function(a,b){a&1&&(ze(0),H(1,"b-plain-format-section",
2),Ae());a&2&&(a=b.$implicit,B(1),D("section",a))},CHa=function(a){a&1&&H(0,"b-plain-format-quoted-section",1);a&2&&(a=K(),D("section",a.section))},DHa=function(a){a&1&&H(0,"b-plain-format-unquoted-section",1);a&2&&(a=K(),D("section",a.section))},FHa=function(a){if(a&1){var b=y();F(0,"a",4);J("click",function(){z(b);var c=K();c.showQuote=!0;EHa(c);return A()});P(1," - Show quoted text - ");G()}a&2&&(a=K(),oe("aria-controls",a.childId))},GHa=function(a){if(a&1){var b=y();F(0,"a",5);J("click",function(){z(b);
var c=K();c.showQuote=!1;EHa(c);return A()});P(1," - Hide quoted text - ");G()}a&2&&(a=K(),oe("aria-controls",a.childId))},HHa=function(a,b){a&1&&(ze(0),H(1,"b-literal-format-presenter",1),Ae());a&2&&(a=b.ngIf,B(1),D("content",a))},IHa=function(a,b){a&1&&(ze(0),H(1,"b-markdown-format-presenter",1),Ae());a&2&&(a=b.ngIf,B(1),D("content",a))},JHa=function(a,b){a&1&&(ze(0),H(1,"b-plain-format-presenter",1),Ae());a&2&&(a=b.ngIf,B(1),D("content",a))},KHa=function(a){switch(a.formattingMode){case 3:return(0,U.of)(esa(a.comment));
case 2:var b=new Vm,c=new zp,d=Qra(rh(""));c.setContent(d);b.setMarkdownFormat(c);return(0,U.of)(b);case void 0:case 1:case 0:return b=new Vm,c=new Ap,d=new Bp,a=Qra(rh(a.comment)),d.setContent(a),c.addPlainSection(d),b.setPlainFormat(c),(0,U.of)(b);default:return sh(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},LHa=function(a,b){a&1&&(ze(0),F(1,"div",1),H(2,"b-formatted-comment-presenter",2),G(),Ae());a&2&&(a=b.$implicit,b=K(),B(1),te("invisible",""===(b.comment||"").trim())("error",
a.isFallback),B(1),D("formattedComment",a.formattedComment))},MHa=function(a){a&1&&(F(0,"a",2),H(1,"mat-icon",3),G());a&2&&(a=K(),D("href",a.mdHelpLink,Ud)("disableRipple",!0))},NHa=function(a){a&1&&H(0,"b-formatted-comment-presenter",4);a&2&&(a=K(),D("formattedComment",a.note.formattedComment))},OHa=function(a){a&1&&H(0,"b-live-preview",5);a&2&&(a=K(),D("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode)("idPrefix",a.idPrefix))},
PHa=function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}},QHa=function(){},RHa=function(a){a&1&&Fe(0)},SHa=function(){},THa=function(a){a&1&&O(0,SHa,0,0,"ng-template",10);a&2&&(a=K().$implicit,D("cdkPortalOutlet",a.templateLabel))},UHa=function(a){a&1&&P(0);a&2&&(a=K().$implicit,Ke(a.textLabel))},VHa=function(a,b){if(a&1){var c=y();F(0,"div",6);J("click",function(){var f=z(c),h=f.$implicit;f=f.index;var k=K(),q=M(1);return A(k._handleClick(h,
q,f))})("cdkFocusChange",function(f){var h=z(c).index,k=K();return A(k._tabFocusChanged(f,h))});F(1,"div",7);O(2,THa,1,1,"ng-template",8);O(3,UHa,1,1,"ng-template",null,9,Pf);G()()}if(a&2){a=b.$implicit;b=b.index;var d=M(4),e=K();te("mat-tab-label-active",e.selectedIndex===b);D("id",e._getTabLabelId(b))("ngClass",a.labelClass)("disabled",a.disabled)("matRippleDisabled",a.disabled||e.disableRipple);oe("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);B(2);D("ngIf",a.templateLabel)("ngIfElse",d)}},WHa=function(a,b){if(a&1){var c=y();F(0,"mat-tab-body",11);J("_onCentered",function(){z(c);var e=K();return A(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){z(c);var f=K();return A(f._setTabBodyWrapperHeight(e))});G()}if(a&2){a=b.$implicit;b=b.index;var d=K();te("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);oe("tabindex",null!=d.contentTabIndex&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(b))}},YHa=function(a){if(a&1){var b=y();F(0,"input",7,8);J("change",function(){z(b);var c=K();if(Cp(c)){var d=Dp(c);Ep(c);XHa(c,!0);Dp(c).focus();d.scrollTop=c.scrollPosition;
d.selectionEnd=c.textAreaLastCursorLocation;d.dispatchEvent(new KeyboardEvent("keydown"));c.contentChange.emit(c.getValue())}return A()})("keyup",function(c){z(b);var d=K();document.activeElement===Fp(d)&&("Enter"===c.key||"Tab"===c.key?(d.taggingInProgress=!1,XHa(d,!0),Dp(d).focus()):XHa(d));return A()});G()}a&2&&(a=K(),D("value",a.autocompleteUserName))},ZHa=function(a){a&1&&H(0,"div",9,10)},$Ha=function(a){a&1&&Be(0)},aIa=function(a){a&1&&Be(0)},bIa=function(a){if(a&1){var b=y();ze(0);F(1,"button",
13);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(2,"mat-icon",14);G();Ae()}a&2&&(a=K(2),B(1),D("disabled",a.attachmentsDisabled))},cIa=function(a){if(a&1){var b=y();F(0,"button",15);J("click",function(){z(b);var c=K(2);return A(c.onRestrict.emit())});H(1,"mat-icon",14);P(2);G()}a&2&&(a=K(2),B(2),Je(" ",a.getRestrictedLabel()," "))},dIa=function(a){if(a&1){var b=y();F(0,"div",7);Fe(1,0,["class","goog-inline-block"]);F(2,"b-attachment-selector",8);J("onSelect",function(d){z(b);
var e=K();d=e.attachmentUploader.upload(d);e.comment&&e.comment.uploads.push(d);return A()});G();F(3,"b-drive-attachment",9);J("onPickDoc",function(d){z(b);var e=K();e.comment&&(e.comment.value+="\n\n"+d.url+" ("+d.name+")");return A()})("onCloneBlob",function(d){z(b);var e=K();e.comment&&e.comment.uploads.push(d);return A()});G();F(4,"div",10);O(5,bIa,3,1,"ng-container",11);O(6,cIa,3,1,"ng-template",null,12,Pf);G()()}if(a&2){var c=M(7);a=K();B(2);D("disabled",a.attachmentsDisabled);B(1);D("disabled",
a.attachmentsDisabled);B(2);D("ngIf",!a.isRestricted())("ngIfElse",c)}},eIa=function(a){a&1&&(F(0,"div"),H(1,"b-live-preview",16),G());a&2&&(a=K(),B(1),D("comment",a.comment.value)("issueId",a.issueId||0)("audience",a.audience)("formattingMode",a.comment.formattingMode))},gIa=function(a,b){if(a&1){var c=y();F(0,"button",12);J("click",function(){var d=z(c).$implicit,e=K(3);return A(fIa(e.issueEditBuilder,d))});P(1);G()}a&2&&(a=b.$implicit,b=K(3),D("disabled",b.issueEditBuilder.issueState==a),B(1),
Je(" ",a.displayValue," "))},hIa=function(a){if(a&1){var b=y();F(0,"div",26)(1,"span");P(2,"Multiple");G();F(3,"a",27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});P(4,"X");G()()}},iIa=function(a){if(a&1){var b=y();F(0,"div",26)(1,"span");P(2,"Possibly multiple");G();F(3,"a",27);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearAssignee())});P(4,"X");G()()}},kIa=function(a){if(a&1){var b=y();F(0,"div")(1,"input",28);J("ngModelChange",function(c){z(b);
var d=K(4);return A(d.issueEditBuilder.commonAssignee=c)})("ngModelChange",function(){z(b);var c=K(4);return A(jIa(c.issueEditBuilder))});G()()}a&2&&(a=K(4),B(1),D("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),oe("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},lIa=function(a){if(a&1){var b=y();F(0,"div",26)(1,"span");P(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});P(4,"X");G()()}a&2&&(a=K(4),te("bv2-invalid-multiple-user-chip",
!Gp(a.issueEditBuilder)),B(2),Je(" Multiple ",Gp(a.issueEditBuilder)?"":"(some unset)"," "))},mIa=function(a){if(a&1){var b=y();F(0,"div",26)(1,"span");P(2);G();F(3,"a",29);J("click",function(){z(b);var c=K(4);return A(c.issueEditBuilder.clearVerifier())});P(4,"X");G()()}a&2&&(a=K(4),te("bv2-invalid-multiple-user-chip",!Gp(a.issueEditBuilder)),B(2),Je(" Possibly multiple ",Gp(a.issueEditBuilder)?"":"(some unset)"," "))},nIa=function(a){if(a&1){var b=y();F(0,"div")(1,"input",30);J("ngModelChange",
function(c){z(b);var d=K(4);return A(d.issueEditBuilder.commonVerifier=c)});G()()}a&2&&(a=K(4),B(1),D("ngModel",a.issueEditBuilder.commonVerifier)("required","VERIFIED"==(null==a.issueEditBuilder.issueState?null:a.issueEditBuilder.issueState.status))("bContactAutocomplete","SINGLE"),oe("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},oIa=function(a){a&1&&(F(0,"div")(1,"div",20)(2,"label",21),P(3," Assignee "),G(),F(4,"div",14),O(5,hIa,5,0,"div",22),O(6,iIa,5,0,"div",22),O(7,kIa,2,3,
"div",23),G()(),F(8,"div",20)(9,"label",24),P(10," Verifier "),G(),F(11,"div",14),O(12,lIa,5,3,"div",25),O(13,mIa,5,3,"div",25),O(14,nIa,2,4,"div",23),G()()());a&2&&(a=K(3),B(4),D("ngSwitch",a.issueEditBuilder.selectedAssigneesStatus),B(1),D("ngSwitchCase","MULTIPLE"),B(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"),B(5),D("ngSwitch",a.issueEditBuilder.selectedVerifiersStatus),B(1),D("ngSwitchCase","MULTIPLE"),B(1),D("ngSwitchCase","POSSIBLY_MULTIPLE"))},pIa=function(a){if(a&1){var b=y();F(0,"div",20)(1,
"label",31);P(2," Issue ID ");G();F(3,"input",32);J("ngModelChange",function(c){z(b);var d=K(3);return A(d.issueEditBuilder.commonDuplicateOf=c.trim())});G()()}a&2&&(a=K(3),B(3),D("ngModel",a.issueEditBuilder.commonDuplicateOf),oe("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},qIa=function(a,b){a&1&&(F(0,"li"),P(1),H(2,"b-access-level-indicator",35),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},rIa=function(a){a&1&&(F(0,"div",33)(1,"div")(2,
"strong"),P(3,"You are editing issues in components that have external viewers:"),G()(),F(4,"ul"),O(5,qIa,3,2,"li",34),G()());a&2&&(a=K(3),B(5),D("ngForOf",a.externalWarnings))},sIa=function(a){if(a&1){var b=y();F(0,"div",8)(1,"button",9)(2,"span");P(3);G();H(4,"b-icon",10);G();F(5,"mat-menu",null,11)(7,"button",12);J("click",function(){z(b);var d=K(2);return A(d.issueEditBuilder.issueState=void 0)});P(8,"No change ");G();O(9,gIa,2,2,"button",13);G();F(10,"div",14);O(11,oIa,15,6,"div",15);O(12,pIa,
4,2,"div",16);G();F(13,"div")(14,"b-comment-box",17);J("onSubmit",function(){z(b);var d;null==(d=K(2).matDialogRef)||d.close(!0);return A()});G()();H(15,"div",18);O(16,rIa,6,1,"div",19);G()}if(a&2){var c=M(6);a=K(2);B(1);D("matMenuTriggerFor",c);B(2);Ke(a.issueEditBuilder.issueState?a.issueEditBuilder.issueState.displayValue:"No change");B(4);D("disabled",!a.issueEditBuilder.issueState);B(2);D("ngForOf",a.issueStates);B(1);D("ngSwitch",!a.issueEditBuilder.issueState||"DUPLICATE"!==a.issueEditBuilder.issueState.status);
B(1);D("ngSwitchCase",!0);B(3);D("comment",a.comment)("showToolbar",!1);B(2);D("ngIf",0<a.externalWarnings.length)}},uIa=function(a){a&1&&(F(0,"form",null,1)(2,"h1",2),P(3,"Change issue status"),G(),F(4,"div",3)(5,"span"),P(6,"Enter updated issue status information below"),G(),O(7,sIa,17,9,"div",4),G(),F(8,"div",5)(9,"button",6),P(10," Cancel "),G(),F(11,"button",7),P(12," Save "),G()()());if(a&2){var b=M(1);a=K();B(7);D("ngIf",a.issueEditBuilder);B(2);D("mat-dialog-close",!1);B(2);var c=D("mat-dialog-close",
!0),d;if(!(d=b.invalid))a:{if(null!=a.issueEditBuilder){d=tIa(a.issueEditBuilder);var e=d.get("status");if("DUPLICATE"===e){d=!d.get("duplicateOfIssueId");break a}if("VERIFIED"===e){d=!Gp(a.issueEditBuilder)&&!d.get("verifier");break a}}d=!1}c("disabled",d)}},vIa=function(a){a&1&&(F(0,"div")(1,"p"),P(2),G()());a&2&&(a=K(),B(2),Le(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},wIa=function(a,b){a&1&&(F(0,"li"),P(1),
G());a&2&&(a=b.$implicit,B(1),Le(" ",a.issueId," - ",a.title," "))},xIa=function(a){a&1&&(F(0,"div")(1,"p"),P(2),G(),F(3,"ul"),O(4,wIa,2,2,"li",8),G()());a&2&&(a=K(),B(2),Je(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),D("ngForOf",a.protectedIssues))},BIa=function(a,b){if(a&1){var c=y();F(0,"div",18,19);J("click",function(){var e=z(c).$implicit,f=K(2);Hp(f,e)||Ip(f,e);return A()});F(2,"mat-pseudo-checkbox",20);J("click",function(e){var f=
z(c).$implicit,h=K(2);e.stopPropagation();return A(yIa(h,f))});G();F(3,"span");P(4);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);se("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");te("focused",b===d.focusedRowIndex);He("title",a.name);oe("id","hotlist-item-"+a.hotlistId)("aria-checked",zIa(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Hp(d,a));B(2);D("state",AIa(d.selectedHotlistMap[a.hotlistId]))("disabled",Hp(d,a));B(2);Je(" ",a.name," ")}},CIa=function(a){a&1&&(F(0,"span"),
P(1),G());a&2&&(a=K(2),B(1),Je(" (",a.filterText,")"))},DIa=function(a){if(a&1){var b=y();F(0,"div",21,22);J("click",function(){z(b);var c=K(2);return A(c.loadHotlist())})("keydown.enter",function(){z(b);var c=K(2);return A(c.loadHotlist())});P(2,"Load hotlist from id ");F(3,"span");P(4);G()()}a&2&&(a=K(2),te("focused",a.focusedRowIndex===a.choices.length+1),oe("aria-label","Load hotlist from"+a.filterText),B(4),Je("(",a.filterText,")"))},EIa=function(a){if(a&1){var b=y();F(0,"div",23,24);J("click",
function(){z(b);var c=K(2);return A(Jp(c))})("keydown.enter",function(){z(b);var c=K(2);return A(Jp(c))});P(2,"Apply");G()}a&2&&(a=K(2),te("focused",a.focusedRowIndex===a.choices.length+2))},FIa=function(a){if(a&1){var b=y();F(0,"div",5)(1,"div",10,11);O(3,BIa,5,11,"div",12);G()();H(4,"mat-divider");F(5,"div",13,14);J("click",function(){z(b);var c=K();return A(c.createHotlist())})("keydown.enter",function(){z(b);var c=K();return A(c.createHotlist())});P(7,"Create new hotlist ");O(8,CIa,2,1,"span",
15);G();O(9,DIa,5,4,"div",16);O(10,EIa,3,2,"div",17)}a&2&&(a=K(),B(3),D("ngForOf",a.choices),B(2),te("focused",a.focusedRowIndex===a.choices.length),D("disabled",!a.canCreate),oe("aria-label","Create new hotlist"+a.filterText),B(3),D("ngIf",!!a.filterText),B(1),D("ngIf",a.canLoad),B(1),D("ngIf",a.pendingChanges))},GIa=function(a){a&1&&(ze(0),P(1,"Un-"),Ae())},HIa=function(a){a&1&&(H(0,"span",4),Q(1,"async"));if(a&2){a=K();var b;D("ngClass",null!==(b=R(1,1,a.colorClass$))&&void 0!==b?b:"")}},IIa=function(a){a&
1&&(H(0,"mat-icon",5),Q(1,"async"));if(a&2){a=K();var b;D("svgIcon",null!==(b=R(1,1,a.iconName$))&&void 0!==b?b:"")}},JIa=function(a){a&1&&(F(0,"span",6),P(1),Q(2,"async"),G());a&2&&(a=K(),B(1),Ke(R(2,1,a.statusText$)))},KIa=function(a){a&1&&(F(0,"span"),P(1," Assigned to "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),D("model",a.assigneeUser)("hovercardEnabled",!1))},LIa=function(a){a&1&&(F(0,"span"),P(1," Accepted by "),H(2,"b-user-display",17),G());a&2&&(a=K(2).ngIf,B(2),D("model",a.assigneeUser)("hovercardEnabled",
!1))},MIa=function(a){a&1&&(F(0,"span"),P(1," Duplicate of "),F(2,"a",4),P(3),G()());if(a&2){a=K(2).ngIf;var b=K(),c;B(2);qe("aria-label","Go to issue ",a.duplicateOfIssueId,"");D("href",b.editIssue(null!==(c=a.duplicateOfIssueId)&&void 0!==c?c:void 0),Ud);B(1);Je(" ",a.duplicateOfIssueId," ")}},NIa=function(a){a&1&&(F(0,"span"),H(1,"b-issue-status-display",18),G());a&2&&(a=K().ngIf,B(1),D("issueStatusJs",a))},OIa=function(a,b){a&1&&(ze(0,14),O(1,KIa,3,2,"span",15),O(2,LIa,3,2,"span",15),O(3,MIa,
4,3,"span",15),O(4,NIa,2,1,"span",16),Ae());a&2&&(D("ngSwitch",b.ngIf),B(1),D("ngSwitchCase","ASSIGNED"),B(1),D("ngSwitchCase","ACCEPTED"),B(1),D("ngSwitchCase","DUPLICATE"))},PIa=function(a,b){a&1&&(ze(0),H(1,"b-app-vote-button",19),Ae());if(a&2){a=b.ngIf;b=K().ngIf;var c=K(2),d;B(1);D("issueId",c.issueId)("voteCount",b.voteCount)("upvoted",null!==(d=a.voted)&&void 0!==d?d:!1)}},QIa=function(a){a&1&&(ze(0),O(1,PIa,2,3,"ng-container",1),Ae());a&2&&(a=K(2),B(1),D("ngIf",a.issue.userData))},SIa=function(a){if(a&
1){var b=y();ze(0);F(1,"button",20);J("click",function(){z(b);var c=K(2);return A(RIa(c,c.childContextId))});P(2," Unlink parent ");G();Ae()}},TIa=function(a,b){a&1&&(F(0,"li"),P(1," Last updated by "),H(2,"b-user-display",17),P(3," on: "),H(4,"b-formatted-date-time",21),G());a&2&&(a=b.ngIf,b=K().ngIf,B(2),D("model",a)("hovercardEnabled",!1),B(2),D("timestamp",b.modifiedTimeMicros/1E3))},UIa=function(a,b){a&1&&(ze(0),O(1,TIa,5,3,"li",1),F(2,"li"),P(3," Reported by "),H(4,"b-user-display",17),P(5,
" on: "),H(6,"b-formatted-date-time",21),G(),Ae());if(a&2){a=b.ngIf;b=K().ngIf;var c=K();B(1);D("ngIf",c.events[c.events.length-1].userPerformingActionUser);B(3);D("model",b.reporterUser)("hovercardEnabled",!1);B(2);D("timestamp",a.createdTimeMicros/1E3)}},VIa=function(a){a&1&&(F(0,"li",22),H(1,"b-note-container",23),G());a&2&&(a=K(2),B(1),D("issueId",a.issueId)("issueAccessLevel",null==a.issue.accessLimit?null:a.issue.accessLimit.accessLevel)("formattingMode",a.normalizeFormattingModeToJspb(a.events[0].formattingMode))("note",
a.getNote()))},YIa=function(a,b){if(a&1){var c=y();ze(0);F(1,"div",2)(2,"h3");H(3,"b-issue-status-display",3);F(4,"a",4);P(5);G();P(6," \u00a0 ");F(7,"span",5);P(8);G()();F(9,"ul")(10,"li",6);H(11,"b-access-level-indicator",7);G();F(12,"li",8)(13,"span",9);P(14);G();P(15," \u00a0 ");O(16,OIa,5,4,"ng-container",10);G()();F(17,"div",11)(18,"b-cc-button",12);J("onCc",function(e){z(c);var f=K();f.location&&e&&Zn(f.analytics,f.location+"_"+ao.ISSUE_CARD,"add","CC");return A()});G();O(19,QIa,2,1,"ng-container",
1);O(20,SIa,3,0,"ng-container",1);G();F(21,"ul");O(22,UIa,7,4,"ng-container",1);O(23,VIa,2,4,"li",13);G()();Ae()}if(a&2){a=b.ngIf;b=K();var d;B(3);D("issueStatusJs",a.status);B(1);qe("aria-label","Go to issue ",b.issueId,"");D("href",b.editIssue(b.issueId),Ud);B(1);Ke(b.issueId);B(3);Ke(a.title);B(3);D("labelOnlyMode",!0)("accessLevel",null==b.issue.accessLimit?null:b.issue.accessLimit.accessLevel);B(2);D("ngClass",b.priorityClass(a.priority));B(1);Ke(b.priority(a.priority));B(2);D("ngIf",a.status);
B(2);D("issueId",b.issueId)("ccState",WIa(b,null!==(d=a.ccUsers)&&void 0!==d?d:Ne(16,XIa)));B(1);D("ngIf",b.issue.aggregatedData);B(1);D("ngIf",b.childContextId);B(2);D("ngIf",b.issue.aggregatedData);B(1);D("ngIf",b.events[0].unlinkifiedComment)}},ZIa=function(a){a&1&&(F(0,"div")(1,"div",9),P(2," An issue cannot reference itself. "),G()())},$Ia=function(a){a&1&&(F(0,"mat-option",10)(1,"div",11),H(2,"b-spinner",12),G()());a&2&&(B(2),D("large",!0))},aJa=function(a){a&1&&(F(0,"mat-option",13),P(1," No issues found. "),
G())},bJa=function(a){a&1&&H(0,"b-issue-status-display",25);a&2&&(a=K().$implicit,D("issueStatusJs",a.status))},cJa=function(a){a&1&&H(0,"b-issue-card",26,27);if(a&2){var b=M(1);a=K().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.resourceId)}},eJa=function(a,b){a&1&&(F(0,"mat-option",14)(1,"div",15)(2,"div",16),O(3,bJa,1,1,"b-issue-status-display",17),F(4,"strong",18),P(5),G()(),F(6,"onedev-hovercard",null,19),O(8,cJa,2,2,"b-issue-card",20),G(),F(9,"a",21),J("click",function(d){return d.stopPropagation()}),
H(10,"mat-icon",22),G(),F(11,"span",23),P(12),G(),H(13,"div",24),Q(14,"boldPrefixMatches"),G()());if(a&2){a=b.$implicit;var c=M(7);b=K();D("value",a);B(1);oe("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B(2);D("ngIf",a.status);B(1);He("title",a.resourceId);B(1);Je(" ",a.resourceId," ");B(4);D("onedevHovercardTrigger",c)("href",b.getIssueLink(a),Ud);B(3);Ke(dJa(a));B(1);He("title",a.displayText);D("innerHTML",Se(14,10,a.displayText,b.query),
Td)}},fJa=function(a,b){a&1&&(F(0,"a",13),P(1),G());a&2&&(a=b.$implicit,b=b.last,Ge("href","issues/",a.resourceId,"",Ud),B(1),Le(" ",a.resourceId,"",b?"":","," "))},gJa=function(a){a&1&&(F(0,"div",11),O(1,fJa,2,3,"a",12),G());a&2&&(a=K(),B(1),D("ngForOf",a.selectedIssues))},hJa=function(a){a&1&&(F(0,"div",11)(1,"a",14),P(2),G()());a&2&&(a=K(),B(1),Ge("href","issues/",a.selectedIssues[0].resourceId,"",Ud),B(1),Je(" ",a.selectedIssues[0].displayText," "))},jJa=function(a){if(a&1){var b=y();F(0,"div",
15)(1,"div",16);J("click",function(){z(b);var c=K();return A(iJa(c))})("keyup.space",function(){z(b);var c=K();return A(iJa(c))});G()()}a&2&&(a=K(),B(1),D("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),oe("aria-checked",a.isQueryRestricted))},lJa=function(a){if(a&1){var b=y();F(0,"b-app-bar-bulk-edit-menus",6);J("onBulkEdit",function(c){z(b);var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",
function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),D("readStatePrompt",kJa(a)))},pJa=function(a){if(a&1){var b=y();F(0,"b-copy-issue-id-button",7);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(mJa(c.copyIssueIdService,Kp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=K();return A(nJa(c.copyIssueIdService,Kp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=
K();return A(oJa(c.copyIssueIdService,Kp(c)))});G()}a&2&&(a=K(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},qJa=function(a){if(a&1){var b=y();F(0,"div",8)(1,"b-hotlist-picker",9);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&2&&
(a=K(),B(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},rJa=function(a,b){a&1&&(F(0,"li"),P(1),H(2,"b-access-level-indicator",17),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},sJa=function(a){a&1&&(F(0,"div",15)(1,"div")(2,"strong"),P(3,"You are commenting on issues in components that have external viewers:"),G()(),F(4,"ul"),O(5,rJa,3,2,"li",16),G()());a&2&&(a=K(2),B(5),D("ngForOf",a.externalWarnings))},uJa=function(a){if(a&1){var b=
y();F(0,"h1",10);P(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",11);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(tJa(c))});G();O(4,sJa,6,1,"div",12);G();F(5,"mat-dialog-actions")(6,"button",13);P(7," Cancel ");G();F(8,"button",14);P(9," Save ");G()()}a&2&&(a=K(),B(3),D("comment",a.comment)("showToolbar",!1),B(1),D("ngIf",0<a.externalWarnings.length),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},
vJa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},Mp=function(a,b){b=void 0===b?{}:b;return null==b.id?"":Lp(a,b)},Lp=function(a,b){var c=b=void 0===b?{}:b;b=c.params;c=c.tab;b&&(a=Asa(a,b));c&&(a=a+"#"+c);return a},wJa=function(a){if(a&1){var b=y();F(0,"button",7);J("click",function(){z(b);var c=K(2);return A(c.removeHotlist.emit())});H(1,"mat-icon",8);G()}a&2&&(a=K(2),te("invisible",a.disabled),oe("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+
a.hotlist.name))},xJa=function(a){a&1&&(ze(0),F(1,"span",1)(2,"span",2)(3,"a",3),P(4),G()(),O(5,wJa,2,4,"button",4),G(),F(6,"onedev-hovercard",null,5),H(8,"b-hotlist-card",6),G(),Ae());if(a&2){var b=M(7);a=K();B(1);se("padding-right",a.removable?0:"10px");te("muted",a.disabled);D("onedevHovercardTrigger",b)("onedevHovercardActive",a.showHovercard);B(2);D("href",a.pathBuilder.viewHotlist(a.hotlist.hotlistId),Ud);oe("aria-label",a.getAriaLabel(a.hotlist));B(1);Ke(a.hotlist.name);B(1);D("ngIf",a.removable);
B(3);D("hotlist",a.hotlist)}},yJa=function(){return{color:"accent"}},zJa=function(a){a&1&&(F(0,"span"),P(1,"Edit"),G())},AJa=function(a){a&1&&(F(0,"span"),P(1,"Cancel"),G())},FJa=function(a){if(a&1){var b=y();ze(0);F(1,"td")(2,"div")(3,"div",11);P(4);G();F(5,"div",12)(6,"a",13);P(7);G()()()();F(8,"td",3)(9,"mat-radio-button",14);J("change",function(d){z(b);var e=K(2);return A(BJa(e,d.value))});G()();F(10,"td",3)(11,"b-button",15);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A(CJa(e,
d))});O(12,zJa,2,0,"span",9);O(13,AJa,2,0,"span",9);G()();F(14,"td",3)(15,"b-button",16);J("onAction",function(){z(b);var d=K().$implicit,e=K();return A(DJa(e,d))});P(16," Delete ");G()();Ae()}if(a&2){a=K().$implicit;var c=K();B(3);te("selected",Np(c,a));B(1);Je(" ",a.name," ");B(2);D("href",EJa(c,a),Ud);oe("aria-label",a.name+"- Click to create a new issue");B(1);Je(" ",EJa(c,a)," ");B(2);Ge("id","template-default-radio-",a.index,"");D("checked",c.defaultIndex===a.index)("aria-label","Make template "+
a.name+" as default template")("value",a.index);B(2);D("bAriaLabel",Np(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B(1);D("ngIf",!Np(c,a));B(1);D("ngIf",Np(c,a));B(2);D("bAriaLabel","Delete "+a.name)("disabled",!(0<=a.index&&!c.templates[a.index].default))}},GJa=function(a){a&1&&(F(0,"h2",64),P(1," Create Template "),G())},HJa=function(a){a&1&&(F(0,"h2",64),P(1),G());a&2&&(a=K(2).$implicit,B(1),Le(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},JJa=function(a,b){if(a&
1){var c=y();F(0,"button",65);J("click",function(){var e=z(c).$implicit,f=K(2).$implicit,h=K();f.issueType=e.value;return A(IJa(h))});P(1);G()}if(a&2){a=b.$implicit;b=K(2).$implicit;var d;D("disabled",b.issueType===a.value)("matTooltip",null!==(d=a.altText)&&void 0!==d?d:"");B(1);Je(" ",a.displayText," ")}},KJa=function(a,b){if(a&1){var c=y();F(0,"button",66);J("click",function(){var d=z(c).$implicit,e=K(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return A()});P(1);
G()}a&2&&(a=b.$implicit,b=K(2).$implicit,D("disabled",b.editableTemplate.priority===a.value),B(1),Je(" ",a.displayText," "))},LJa=function(a,b){if(a&1){var c=y();F(0,"button",66);J("click",function(){var d=z(c).$implicit,e=K(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return A()});P(1);G()}a&2&&(a=b.$implicit,b=K(2).$implicit,D("disabled",b.editableTemplate.severity===a.value),B(1),Je(" ",a.displayText," "))},MJa=function(a,b){if(a&1){var c=y();F(0,"div",67)(1,"b-hotlist-chip",
68);J("removeHotlist",function(){var d=z(c).$implicit,e=K(3);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),D("hotlist",a))},NJa=function(a){a&1&&(F(0,"h3"),P(1,"Custom issue fields"),G())},OJa=function(a){if(a&1){var b=y();F(0,"input",76);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].textValue=d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=
K().$implicit;var c=K(2).$implicit;qe("id","template-cf-",a.id,"");D("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},PJa=function(a){if(a&1){var b=y();F(0,"input",77);J("ngModelChange",function(d){z(b);var e=K().$implicit,f=K(2).$implicit;return A(f.editableTemplate.customFieldValues[e.id].numericValue=d)})("ngModelChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit;qe("id","template-cf-",a.id,"");D("ngModel",
c.editableTemplate.customFieldValues[a.id].numericValue)}},RJa=function(a){if(a&1){var b=y();F(0,"b-edit-field",78);J("valueChange",function(h){z(b);var k=K().$implicit,q=K(2).$implicit,u=K();return A(u.setCustomField(q,k.id,h))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K(),e,f;qe("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:Ne(6,QJa))}},SJa=function(a){if(a&1){var b=y();F(0,"bv2-input-date-picker",79);J("boundValueChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){z(b);K(3).$implicit.editableTemplate.dirty=!0;return A()});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d;qe("id","template-cf-",a.id,"");D("boundValue",null!==
(d=c.editableTemplate.customFieldValues[a.id].dateValue)&&void 0!==d?d:void 0)}},UJa=function(a){if(a&1){var b=y();F(0,"b-list-field",80);J("valuesChange",function(e){z(b);var f=K().$implicit,h=K(2).$implicit,k=K();return A(k.setCustomField(h,f.id,e.values))});G()}if(a&2){a=K().$implicit;var c=K(2).$implicit,d=K();qe("id","template-cf-",a.id,"");D("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",TJa(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",
!0)}},VJa=function(a,b){a&1&&(F(0,"div")(1,"div",21)(2,"label",69),P(3),G()(),F(4,"div",70),O(5,OJa,1,2,"input",71),O(6,PJa,1,2,"input",72),O(7,RJa,1,7,"b-edit-field",73),O(8,SJa,1,2,"bv2-input-date-picker",74),O(9,UJa,1,6,"b-list-field",75),G()());a&2&&(a=b.$implicit,ye("cell-",a.cellType,""),B(2),Ge("for","template-cf-",a.id,""),B(1),Le("",a.name," (id=",a.id,")"),B(1),D("ngSwitch",a.type),B(1),D("ngSwitchCase","TEXT"),B(1),D("ngSwitchCase","NUMERIC"),B(1),D("ngSwitchCase","ENUM"),B(1),D("ngSwitchCase",
"DATE"))},YJa=function(a){if(a&1){var b=y();F(0,"td",17)(1,"div",18);O(2,GJa,2,0,"h2",19);O(3,HJa,2,2,"h2",19);F(4,"div",20)(5,"div",21)(6,"label",22);P(7,"Template Name");G()();F(8,"input",23);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.name=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(9,"div",20)(10,"div",21)(11,"label",24);P(12,"Description of Template");G()();F(13,"input",25);J("ngModelChange",function(h){z(b);
var k=K().$implicit;return A(k.editableTemplate.description=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(14,"div",26)(15,"h3");P(16," Standard issue fields ");G();F(17,"div",20)(18,"div",21)(19,"label",27);P(20,"Title");G()();F(21,"input",28);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.title=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(22,"div",29)(23,"div",
21)(24,"label",30);P(25,"Type");G()();F(26,"button",31)(27,"span");P(28);G();H(29,"b-icon",32);G();F(30,"mat-menu",33,34);O(32,JJa,2,3,"button",35);G()();F(33,"div",29)(34,"div",21)(35,"label",36);P(36,"Priority");G()();F(37,"button",37)(38,"span");P(39);G();H(40,"b-icon",32);G();F(41,"mat-menu",33,38);O(43,KJa,2,2,"button",39);G()();F(44,"div",29)(45,"div",21)(46,"label",40);P(47,"Severity");G()();F(48,"button",41)(49,"span");P(50);G();H(51,"b-icon",32);G();F(52,"mat-menu",33,42);O(54,LJa,2,2,"button",
39);G()();F(55,"div",43)(56,"div",21)(57,"label",44);P(58,"Default Hotlists");G()();F(59,"b-hotlist-picker",45);J("onApply",function(h){z(b);var k=K(2);return A(k.handleHotlistPickerSave(h))})("onCreate",function(h){z(b);var k=K(2);return A(k.createHotlist(h))})("onLoad",function(h){z(b);var k=K(2);return A(k.loadHotlist(h))});G();O(60,MJa,2,1,"div",46);G();H(61,"div",47);F(62,"div",48)(63,"div",21)(64,"label",49);P(65,"Assignee");G()();F(66,"input",50);J("ngModelChange",function(h){z(b);var k=K().$implicit;
return A(k.editableTemplate.assignee=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(67,"div",48)(68,"div",21)(69,"label",51);P(70,"Verifier");G()();F(71,"input",52);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.verifier=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});G()();F(72,"div",20)(73,"div",21)(74,"label",53);P(75,"CC");G()();F(76,"input",54);J("ngModelChange",function(h){z(b);
var k=K().$implicit;return A(WJa(k.editableTemplate,h))});G()();F(77,"div",20)(78,"div",21)(79,"label",55);P(80,"Initial Comment");G()();F(81,"textarea",56);J("ngModelChange",function(h){z(b);var k=K().$implicit;return A(k.editableTemplate.comment=h)})("ngModelChange",function(){z(b);K().$implicit.editableTemplate.dirty=!0;return A()});P(82,"              ");G()();F(83,"div",20)(84,"div",21)(85,"label",57);P(86,"In Prod");G()();F(87,"b-slide-toggle",58);J("modelChange",function(){z(b);var h=K().$implicit.editableTemplate;
h.inProd=!h.inProd;h.dirty=!0;return A()});G()()();F(88,"div",59);O(89,NJa,2,0,"h3",9);O(90,VJa,10,11,"div",60);G();F(91,"div",61)(92,"b-button",62);J("onAction",function(){z(b);var h=K(2);return A(XJa(h))});P(93," Save ");G();F(94,"b-button",63);J("onAction",function(){z(b);var h=K(2);return A(Op(h))});P(95," Cancel ");G()()()()}if(a&2){var c=M(31),d=M(42),e=M(53);a=K().$implicit;var f=K();B(2);D("ngIf",a.editableTemplate.new_);B(1);D("ngIf",!a.editableTemplate.new_);B(5);D("ngModel",a.editableTemplate.name);
B(5);D("ngModel",a.editableTemplate.description);B(8);D("ngModel",a.editableTemplate.title);B(5);D("matMenuTriggerFor",c);B(2);Ke(a.issueType);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.issueTypeChoices);B(5);D("matMenuTriggerFor",d);B(2);Ke(a.editableTemplate.priority);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.priorityChoices);B(5);D("matMenuTriggerFor",e);B(2);Ke(a.editableTemplate.severity);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",f.severityChoices);B(5);D("selectedHotlistIds",f.selectedHotlistIds)("choices",
f.hotlists);B(1);D("ngForOf",f.selectedHotlists);B(6);D("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.assignee);B(5);D("bContactAutocomplete","SINGLE")("ngModel",a.editableTemplate.verifier);B(5);D("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", "));B(5);D("ngModel",a.editableTemplate.comment);B(6);D("model",a.editableTemplate.inProd);B(2);D("ngIf",0<f.customFieldRows.length);B(1);D("ngForOf",f.customFieldRows);B(2);D("disabled",!a.editableTemplate.isDirty())}},
ZJa=function(a,b){a&1&&(F(0,"tr"),O(1,FJa,17,15,"ng-container",9),O(2,YJa,96,31,"td",10),G());a&2&&(a=b.$implicit,B(1),D("ngIf",!a.editableTemplate),B(1),D("ngIf",!!a.editableTemplate))},$Ja=function(a,b){a&1&&(F(0,"div",81),P(1),G(),F(2,"div",82)(3,"button",83),P(4," Cancel "),G(),F(5,"button",84),P(6," Confirm "),G()());a&2&&(a=b.$implicit,B(1),Je(' Are you sure you want to delete the template "',a.name,'"? '),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},aKa=function(a,b){a&1&&
(F(0,"div",81),P(1),G(),F(2,"div",82)(3,"button",85),P(4," Cancel "),G(),F(5,"button",85),P(6," Don't Save "),G(),F(7,"button",86),P(8," Save "),G()());a&2&&(a=b.$implicit,B(1),Je(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),D("mat-dialog-close",void 0),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},bKa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),B(1),Je(" (",a.objectiveDisplayText," total) "))},cKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",
1),G());a&2&&(a=K(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.assignmentSlo)("includeObjective",!0))},dKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",2),G());a&2&&(a=K(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.responseSlo)("includeObjective",!0))},eKa=function(a){a&1&&(F(0,"div"),H(1,"b-slo-time-indicator",3),G());a&2&&(a=K(),B(1),D("sloSnoozeUntil",a.sloSnoozeUntil)("sloBounds",a.closureSlo)("includeObjective",!0))},fKa=function(a){a&1&&(F(0,"div",8),H(1,
"b-slo-status-summary",9),G());a&2&&(a=K(),B(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric",a.onlyShowMetric))},gKa=function(a){a&1&&(ze(0),P(1," No applicable SLO rules "),Ae())},hKa=function(a){a&1&&(ze(0),P(1," No SLO set on issue component "),Ae())},iKa=function(a){a&1&&(F(0,"div",10),O(1,gKa,2,0,"ng-container",7),O(2,hKa,2,0,"ng-container",7),G());a&2&&(a=K(),B(1),D("ngIf",a.editSloLink),B(1),D("ngIf",!a.editSloLink))},jKa=function(a){if(a&1){var b=y();F(0,
"a",12);J("click",function(){z(b);var c=K(2);return A(c.trackOpenSlo())});P(1);G()}a&2&&(a=K(2),D("href",a.editSloLink,Ud),B(1),Je(" ",a.sloName," "))},kKa=function(a){a&1&&(F(0,"span"),P(1," (private) "),G())},lKa=function(a){a&1&&(F(0,"span"),P(1," SLO definition: "),O(2,jKa,2,2,"a",11),O(3,kKa,2,0,"span",7),G());a&2&&(a=K(),B(2),D("ngIf",a.sloName),B(1),D("ngIf",!a.sloName))},Pp=function(a,b){b=void 0===b?document.documentElement:b;return(0,U.concat)((0,U.defer)(function(){return(0,U.of)(b.querySelector(a))}),
mKa(b,{childList:!0,subtree:!0}).pipe(xf(function(c){return c.some(function(d){return 0<d.addedNodes.length})}),S(function(){return b.querySelector(a)}))).pipe(xf(cl),Xf(),S(function(c){return c}))},mKa=function(a,b){return new U.Observable(function(c){var d=new MutationObserver(function(e){c.next(e)});d.observe(a,b);return function(){d.disconnect()}})},Qp=function(a,b){return function(c){var d=c.target.closest(a);d&&c.currentTarget.contains(d)&&b(c,d)}},nKa=function(a,b){a&1&&H(0,"col");a&2&&ye("",
b.$implicit.name,"-col")},oKa=function(a){a&1&&Be(0)},qKa=function(a,b){a&1&&(ze(0),O(1,oKa,1,0,"ng-container",8),Ae());a&2&&(a=b.$implicit,b=K(),B(1),D("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Oe(2,pKa,a)))},rKa=function(a){a&1&&Be(0)},tKa=function(a,b){a&1&&(ze(0),O(1,rKa,1,0,"ng-container",8),Ae());if(a&2){a=b.$implicit;b=b.index;var c=K(),d=c.$implicit;c=c.index;var e=K().ngIf;B(1);D("ngTemplateOutlet",e[b])("ngTemplateOutletContext",
Qe(sKa,d,a,c))}},uKa=function(a,b){if(a&1){var c=y();F(0,"tr",10,11);J("click",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()})("focus",function(){var e=z(c).index,f=K(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return A()});O(2,tKa,2,6,"ng-container",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K(2);te("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",
a.isClosed)("grid-focus",d.focusedRowIndex===b);oe("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));B(2);D("ngForOf",d.columns)}},vKa=function(a){a&1&&(ze(0),O(1,uKa,3,12,"tr",9),Ae());a&2&&(a=K(),B(1),D("ngForOf",a.list))},wKa=function(a,b){a&1&&(F(0,"th"),H(1,"pop-grid-default-th",12),G());a&2&&(a=b.column,B(1),D("column",a))},xKa=function(a,b){a&1&&(F(0,"td"),H(1,"pop-grid-default-cell",13),G());a&2&&(a=b.row,b=b.column,B(1),D("row",
a)("column",b))},yKa=function(a){if(a&1){var b=y();F(0,"b-sortable-header",3);J("sortChanged",function(c){z(b);var d=K();d.grid&&d.grid.sortChange.emit(c);return A()});G()}a&2&&(a=K(),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||""))},zKa=function(a){a&1&&(F(0,"div",4),P(1),G());a&2&&(a=K(),oe("aria-label",a.column.label),B(1),Je(" ",a.column.label," "))},
AKa=function(a){if(a&1){var b=y();F(0,"div",13,14);J("menuOpened",function(){z(b);var d=K();return A(d.menuOpen=!0)})("menuClosed",function(){z(b);var d=K();return A(d.menuOpen=!1)})("keydown.enter",function(d){z(b);xi(M(1));d.preventDefault();return A(d.stopPropagation())})("keydown.space",function(){z(b);var d=M(1);return A(xi(d))});G()}if(a&2){a=K();var c=M(5);te("columnpicker-button-active",a.menuOpen);qe("aria-label","",a.column.fullLabel," column configuration");D("matMenuTriggerFor",c)}},CKa=
function(a,b){if(a&1){var c=y();F(0,"button",15);J("click",function(){var d=z(c).$implicit,e=K();return A(BKa(e,d.name))});H(1,"b-icon",16);F(2,"span",17);P(3);G()()}a&2&&(a=b.$implicit,b=K(),te("b-menu-item-checked",Zma(a.name).get(b.listViewPrefs)),B(3),Je(" ",a.menuItem," "))},DKa=function(a){a&1&&H(0,"mat-divider")},EKa=function(a){if(a&1){var b=y();F(0,"button",22);J("click",function(){z(b);var c=K().$implicit,d=K().before,e=K();return A(e.add(c,d))});P(1);G()}a&2&&(a=K().$implicit,D("matTooltip",
a.tooltip),B(1),Je(" ",a.fullLabel," "))},GKa=function(a){a&1&&(F(0,"button",9)(1,"span"),P(2),G()());if(a&2){a=K().$implicit;var b=K().before;K();var c=M(18);D("matMenuTriggerFor",c)("matMenuTriggerData",Pe(3,FKa,a.columns,b));B(2);Ke(a.label)}},HKa=function(a,b){a&1&&(ze(0),O(1,EKa,2,2,"button",20),O(2,GKa,3,6,"button",21),Ae());a&2&&(a=b.$implicit,b=K(2),B(1),D("ngIf",b.isIssueGridColumn(a)),B(1),D("ngIf",!b.isIssueGridColumn(a)))},JKa=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){var c=
z(b).before,d=K();return A(IKa(d,c))});P(1," Custom Field ");G();H(2,"mat-divider");O(3,HKa,3,2,"ng-container",19)}a&2&&(a=K(),B(3),D("ngForOf",a.currentAvailableItems))},KKa=function(a,b){if(a&1){var c=y();F(0,"button",18);J("click",function(){var d=z(c).$implicit,e=K().before,f=K();return A(f.add(d,e))});P(1);G()}a&2&&(a=b.$implicit,B(1),Je(" ",a.fullLabel," "))},LKa=function(a,b){a&1&&O(0,KKa,2,1,"button",23);a&2&&D("ngForOf",b.columns)},MKa=function(a){a&1&&(ze(0),P(1," This issue has not been modified since "),
H(2,"b-formatted-date-time",1),P(3," and is scheduled for deletion on "),F(4,"strong"),H(5,"b-formatted-date-time",1),G(),P(6,". "),F(7,"a",2),P(8,"Learn more"),G(),Ae());a&2&&(a=K(),B(2),D("mode","date")("timestamp",a.modifiedTime),B(3),D("mode","date")("timestamp",a.retentionExpireTime),B(2),D("href",a.documentationLink,Ud))},NKa=function(a){a&1&&(F(0,"b-base-chip",1)(1,"div",2),H(2,"retention-text",3),G(),F(3,"div",4),H(4,"retention-help-text",5),G()());a&2&&(a=K(),D("compactMode",a.compactMode)("labelClass",
a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),B(2),D("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},OKa=function(a){var b=void 0===b?new Date:b;var c=jo(Tn(a.scheduledDeletionTime));b=b.getTime();a=(a=Kua(a.retentionPeriod))?1E3*a.getSeconds()+(a.getNanos()||0)/1E6:0;return b>=c-Math.max(12096E5,.2*a)},PKa=function(a,b){return a.size!==b.size?!1:[].concat(v(a)).every(function(c){return b.has(c)})},
QKa=function(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b},RKa=function(a,b){if(!PKa(a,b)){var c=[].concat(v(b)).filter(function(e){return!a.has(e)}),d=[].concat(v(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},SKa=function(a){a&1&&Be(0)},TKa=function(a,b){a&1&&(F(0,"th",22),O(1,SKa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",
b.isIssueGridColumn(a)))},UKa=function(a){a&1&&Be(0)},VKa=function(a,b){a&1&&(F(0,"th",24),O(1,UKa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},ZKa=function(a){if(a&1){var b=y();ze(0);F(1,"mat-pseudo-checkbox",26);J("click",function(c){z(b);var d=K(2);c.stopPropagation();return A(WKa(d))})("keydown.enter",function(c){z(b);var d=K(2);c.stopPropagation();return A(WKa(d))})("keydown.space",function(c){z(b);var d=K(2);
c.stopPropagation();return A(WKa(d))});G();Ae()}a&2&&(a=K(2),B(1),D("state",XKa(a)),oe("aria-checked",YKa(a)))},$Ka=function(a,b){a&1&&(F(0,"th",25),O(1,ZKa,2,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},aLa=function(a){a&1&&Be(0)},bLa=function(a,b){a&1&&(F(0,"th"),O(1,aLa,1,0,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},cLa=function(a){a&
1&&(ze(0),H(1,"pop-grid-default-th",27),Ae());a&2&&(a=K().column,B(1),D("column",a))},dLa=function(a,b){a&1&&(F(0,"th"),O(1,cLa,2,1,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},eLa=function(a){if(a&1){var b=y();F(0,"b-column-picker",30);J("selectedColumnsChange",function(d){z(b);var e=K(3);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return A()});G()}if(a&2){a=K(2).column;var c=K();D("column",a)("availableColumns",
c.availableColumns)("selectedColumns",c.columns)}},fLa=function(a){a&1&&H(0,"pop-grid-default-th",27);a&2&&(a=K(2).column,D("column",a))},gLa=function(a){a&1&&(ze(0),O(1,eLa,1,3,"b-column-picker",28),O(2,fLa,1,1,"pop-grid-default-th",29),Ae());a&2&&(a=K(2),B(1),D("ngIf",a.enableColumnSaving),B(1),D("ngIf",!a.enableColumnSaving))},hLa=function(a,b){a&1&&(F(0,"th"),O(1,gLa,3,2,"ng-container",23),G());a&2&&(a=b.column,b=K(),oe("data-stable-column-name",a.name),B(1),D("ngIf",b.isIssueGridColumn(a)))},
iLa=function(a){a&1&&Be(0)},jLa=function(a){a&1&&(F(0,"td",22),O(1,iLa,1,0,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},kLa=function(a){a&1&&Be(0)},lLa=function(a){a&1&&(F(0,"td",31),O(1,kLa,1,0,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},mLa=function(a){if(a&1){var b=y();ze(0);F(1,"mat-pseudo-checkbox",32);J("click",function(c){z(b);var d=K(),e=d.index;d=d.row;var f=K();c.stopPropagation();if(c.shiftKey&&(c=d.selected,null!==f.lastCheckedIndex&&f.searchResults)){if(e<f.lastCheckedIndex){var h=
e+1;var k=f.lastCheckedIndex+1}else h=f.lastCheckedIndex,k=e;h=r(f.searchResults.issues.slice(h,k));for(k=h.next();!k.done;k=h.next())k.value.selected=!c;Rp(f)}d.selected=!d.selected;f.lastCheckedIndex=e;Rp(f);return A()});G();Ae()}a&2&&(a=K().row,B(1),D("state",a.selected?"checked":"unchecked"),oe("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},nLa=function(a){a&1&&(F(0,"td",25),O(1,mLa,2,3,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},oLa=function(a){if(a&1){var b=y();
ze(0);F(1,"b-star-toggle",34);J("starClicked",function(){z(b);var d=K().row,e=K();return A(e.toggleStar(d))});G();Ae()}if(a&2){a=K().row;var c=K();B(1);D("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},pLa=function(a){a&1&&(F(0,"td",33),O(1,oLa,2,4,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},qLa=function(a){a&1&&(ze(0),F(1,"span"),P(2),G(),Ae());a&2&&(a=K().row,B(1),oe("title",a.position),B(1),Je(" ",a.position,
" "))},rLa=function(a){a&1&&(F(0,"td"),O(1,qLa,3,2,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},sLa=function(a){a&1&&(ze(0),F(1,"a",36),P(2),G(),Ae());if(a&2){a=K().row;var b=K();B(1);D("href",b.paths.editIssue(a.issueId),Ud);oe("title",a.title);B(1);Je(" ",a.issueId," ")}},tLa=function(a){a&1&&(F(0,"td",35),O(1,sLa,3,3,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},uLa=function(a){a&1&&H(0,"archived-issue-indicator")},vLa=function(a,b){a&1&&H(0,"b-hotlist-chip-smart",46);a&2&&D("id",
b.$implicit)("removable",!1)},wLa=function(a){a&1&&(F(0,"div",44),O(1,vLa,1,2,"b-hotlist-chip-smart",45),G());a&2&&(a=K(2).row,B(1),D("ngForOf",a.hotlistId))},xLa=function(a){a&1&&(ze(0),F(1,"div",38),O(2,uLa,1,0,"archived-issue-indicator",23),H(3,"b-access-level-indicator",39)(4,"b-retention-chip",40),F(5,"div",41)(6,"a",42),P(7),G()(),O(8,wLa,2,1,"div",43),G(),Ae());if(a&2){a=K().row;var b=K();B(1);te("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);B(1);D("ngIf",a.archived);
B(1);D("accessLevel",a.accessLevel)("compactMode",!0);B(1);D("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);D("href",b.paths.editIssue(a.issueId),Ud);oe("title",a.title);B(1);Je(" ",a.title," ");B(1);D("ngIf",b.listViewPrefs&&b.listViewPrefs.showHotlists)}},yLa=function(a){a&1&&(F(0,"td",37),O(1,xLa,9,13,"ng-container",23),G());a&2&&(a=K(),te("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),B(1),D("ngIf",
!0))},ALa=function(a){a&1&&(ze(0),F(1,"div",48),P(2),G(),Ae());a&2&&(a=K().row,K(),B(1),D("ngClass",Qe(zLa,2<=Number(a.priority),2>Number(a.priority),0===Number(a.priority))),B(1),Je(" P",a.priority," "))},BLa=function(a){a&1&&(F(0,"td",47),O(1,ALa,3,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},CLa=function(a){a&1&&(ze(0),F(1,"div",48),P(2),G(),Ae());a&2&&(a=K().row,K(),B(1),D("ngClass",Qe(zLa,2<=Number(a.severity),2>Number(a.severity),0===Number(a.severity))),B(1),Je(" S",a.severity," "))},
DLa=function(a){a&1&&(F(0,"td",49),O(1,CLa,3,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},ELa=function(a){a&1&&H(0,"b-issue-status-display",52);a&2&&(a=K(2).row,D("issueStatusJs",a.status)("displayMode","ICON"))},FLa=function(a){a&1&&(F(0,"span"),P(1),Q(2,"v2StatusToHuman"),G());a&2&&(a=K(2).row,B(1),Je(" ",R(2,1,a.status)," "))},GLa=function(a){a&1&&(ze(0),O(1,ELa,1,2,"b-issue-status-display",51),O(2,FLa,3,3,"span",23),Ae());if(a&2){a=K().row;var b=K();B(1);D("ngIf",b.listViewPrefs&&b.listViewPrefs.showStatusIcons&&
a.status);B(1);D("ngIf",b.listViewPrefs&&!b.listViewPrefs.showStatusIcons)}},HLa=function(a){a&1&&(F(0,"td",50),O(1,GLa,3,2,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},ILa=function(a){a&1&&(ze(0),P(1),Q(2,"enumToHuman"),Ae());a&2&&(a=K().row,B(1),Je(" ",R(2,1,a.type)," "))},JLa=function(a){a&1&&(F(0,"td",53),O(1,ILa,3,3,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},KLa=function(a){a&1&&(F(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),G());a&2&&(a=K(2).row,D("email",
R(1,2,a.reporter)),B(2),Je(" ",a.reporter," "))},LLa=function(a){a&1&&(F(0,"span"),P(1,"--"),G())},MLa=function(a){a&1&&(ze(0),O(1,KLa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,LLa,2,0,"span",23),Ae());a&2&&(a=K().row,B(1),D("ngIf",R(2,2,a.reporter)),B(2),D("ngIf",!a.reporter))},NLa=function(a){a&1&&(F(0,"td",54),O(1,MLa,4,4,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},OLa=function(a){a&1&&(F(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),G());a&2&&(a=K(2).row,
D("email",R(1,2,a.assignee)),B(2),Je(" ",a.assignee," "))},PLa=function(a){a&1&&(F(0,"span"),P(1,"--"),G())},QLa=function(a){a&1&&(ze(0),O(1,OLa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,PLa,2,0,"span",23),Ae());a&2&&(a=K().row,B(1),D("ngIf",R(2,2,a.assignee)),B(2),D("ngIf",!a.assignee))},RLa=function(a){a&1&&(F(0,"td",54),O(1,QLa,4,4,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},SLa=function(a){a&1&&(F(0,"b-person-hovercard",56),Q(1,"omitObfuscatedEmail"),P(2),G());a&2&&
(a=K(2).row,D("email",R(1,2,a.verifier)),B(2),Je(" ",a.verifier," "))},TLa=function(a){a&1&&(F(0,"span"),P(1,"--"),G())},ULa=function(a){a&1&&(ze(0),O(1,SLa,3,4,"b-person-hovercard",55),Q(2,"omitObfuscatedEmail"),O(3,TLa,2,0,"span",23),Ae());a&2&&(a=K().row,B(1),D("ngIf",R(2,2,a.verifier)),B(2),D("ngIf",!a.verifier))},VLa=function(a){a&1&&(F(0,"td",54),O(1,ULa,4,4,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},WLa=function(a){a&1&&(ze(0),F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),
G(),Ae());a&2&&(a=K().row,B(1),oe("title",R(2,2,a.cc)),B(2),Je(" ",R(4,4,a.cc)," "))},XLa=function(a){a&1&&(F(0,"td",54),O(1,WLa,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},YLa=function(a){a&1&&(ze(0),F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),G(),Ae());a&2&&(a=K().row,B(1),oe("title",R(2,2,a.changelist)),B(2),Je(" ",R(4,4,a.changelist)," "))},ZLa=function(a){a&1&&(F(0,"td",54),O(1,YLa,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},$La=function(a){a&1&&(ze(0),
F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),G(),Ae());a&2&&(a=K().row,B(1),oe("title",R(2,2,a.postmortem)),B(2),Je(" ",R(4,4,a.postmortem)," "))},aMa=function(a){a&1&&(F(0,"td",54),O(1,$La,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},bMa=function(a){a&1&&Be(0)},cMa=function(a){a&1&&(F(0,"span"),P(1,", "),G())},eMa=function(a,b){a&1&&(ze(0),O(1,bMa,1,0,"ng-container",58),O(2,cMa,2,0,"span",23),Ae());if(a&2){a=b.$implicit;b=b.last;K(3);var c=M(48);B(1);D("ngTemplateOutlet",
c)("ngTemplateOutletContext",Oe(3,dMa,a));B(1);D("ngIf",!b)}},fMa=function(a){a&1&&(ze(0),O(1,eMa,3,5,"ng-container",57),Ae());a&2&&(a=K().row,B(1),D("ngForOf",a.blockingIssueId))},gMa=function(a){a&1&&(F(0,"td",54),O(1,fMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},hMa=function(a){a&1&&Be(0)},iMa=function(a){a&1&&(F(0,"span"),P(1,", "),G())},jMa=function(a,b){a&1&&(ze(0),O(1,hMa,1,0,"ng-container",58),O(2,iMa,2,0,"span",23),Ae());if(a&2){a=b.$implicit;b=b.last;K(3);var c=M(48);B(1);
D("ngTemplateOutlet",c)("ngTemplateOutletContext",Oe(3,dMa,a));B(1);D("ngIf",!b)}},kMa=function(a){a&1&&(ze(0),O(1,jMa,3,5,"ng-container",57),Ae());a&2&&(a=K().row,B(1),D("ngForOf",a.blockedByIssueId))},lMa=function(a){a&1&&(F(0,"td",54),O(1,kMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},mMa=function(a){a&1&&Be(0)},nMa=function(a){a&1&&(ze(0),O(1,mMa,1,0,"ng-container",58),Ae());if(a&2){a=K(2).row;K();var b=M(48);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Oe(2,dMa,a.duplicateOfIssueId))}},
oMa=function(a){a&1&&(ze(0),O(1,nMa,2,4,"ng-container",23),Ae());a&2&&(a=K().row,B(1),D("ngIf",a.duplicateOfIssueId))},pMa=function(a){a&1&&(F(0,"td",54),O(1,oMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},qMa=function(a){a&1&&(ze(0),H(1,"b-formatted-date-time",60),Ae());a&2&&(a=K().row,B(1),D("timestamp",a.createdTime))},rMa=function(a){a&1&&(F(0,"td",59),O(1,qMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},sMa=function(a){a&1&&(ze(0),H(1,"b-formatted-date-time",60),Ae());
a&2&&(a=K().row,B(1),D("timestamp",a.modifiedTime))},tMa=function(a){a&1&&(F(0,"td",59),O(1,sMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},uMa=function(a){a&1&&(ze(0),H(1,"b-formatted-date-time",60),Ae());a&2&&(a=K().row,B(1),D("timestamp",a.resolvedTime))},vMa=function(a){a&1&&(F(0,"td",59),O(1,uMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},wMa=function(a){a&1&&(ze(0),H(1,"b-formatted-date-time",60),Ae());a&2&&(a=K().row,B(1),D("timestamp",a.verifiedTime))},xMa=function(a){a&
1&&(F(0,"td",59),O(1,wMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},yMa=function(a){a&1&&(ze(0),F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),G(),Ae());a&2&&(a=K().row,B(1),oe("title",R(2,2,a.foundInVersion)),B(2),Je(" ",R(4,4,a.foundInVersion)," "))},zMa=function(a){a&1&&(F(0,"td",54),O(1,yMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},AMa=function(a){a&1&&(ze(0),F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),G(),Ae());a&2&&(a=K().row,B(1),oe("title",
R(2,2,a.targetedToVersion)),B(2),Je(" ",R(4,4,a.targetedToVersion)," "))},BMa=function(a){a&1&&(F(0,"td",54),O(1,AMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},CMa=function(a){a&1&&(ze(0),F(1,"span"),Q(2,"arrayToHuman"),P(3),Q(4,"arrayToHuman"),G(),Ae());a&2&&(a=K().row,B(1),oe("title",R(2,2,a.verifiedInVersion)),B(2),Je(" ",R(4,4,a.verifiedInVersion)," "))},DMa=function(a){a&1&&(F(0,"td",54),O(1,CMa,5,6,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},EMa=function(a){a&1&&(ze(0),
P(1),Q(2,"yesNo"),Ae());a&2&&(a=K().row,B(1),Je(" ",R(2,1,a.inProd)," "))},FMa=function(a){a&1&&(F(0,"td",54),O(1,EMa,3,3,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},GMa=function(a){a&1&&(ze(0),P(1),Q(2,"yesNo"),Ae());a&2&&(a=K().row,B(1),Je(" ",R(2,1,a.archived)," "))},HMa=function(a){a&1&&(F(0,"td",54),O(1,GMa,3,3,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},IMa=function(a){a&1&&(ze(0),F(1,"div",38)(2,"div",41)(3,"span"),Q(4,"componentPath"),P(5),Q(6,"componentPath"),G()()(),
Ae());a&2&&(a=K().row,B(3),oe("title",R(4,2,a.componentPath)),B(2),Ke(R(6,4,a.componentPath)))},KMa=function(a){a&1&&(F(0,"td",61),O(1,IMa,7,6,"ng-container",23),G());if(a&2){a=K();var b;var c=!(null==(b=a.listViewPrefs)||!b.rtlComponentPath);D("ngClass",Pe(2,JMa,a.listViewPrefs&&a.listViewPrefs.wrapComponents,c));B(1);D("ngIf",!0)}},LMa=function(a){a&1&&(F(0,"slo-status-card",64),H(1,"b-aggregated-slo-status-indicator",65),G());a&2&&(a=K(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",
a.sloSnoozeUntil),B(1),D("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil))},MMa=function(a){a&1&&(ze(0),O(1,LMa,2,5,"slo-status-card",63),Ae());a&2&&(a=K().row,B(1),D("ngIf",a.sloStatus))},NMa=function(a){a&1&&(F(0,"td",62),O(1,MMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},OMa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","RESPONSE"),
B(1),D("sloBounds",a.sloStatus.getResponseBounds()))},PMa=function(a){a&1&&(ze(0),O(1,OMa,2,5,"slo-status-card",66),Ae());a&2&&(a=K().row,B(1),D("ngIf",a.sloStatus))},QMa=function(a){a&1&&(F(0,"td",62),O(1,PMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},RMa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","ASSIGNMENT"),B(1),D("sloBounds",a.sloStatus.getAssignmentBounds()))},
SMa=function(a){a&1&&(ze(0),O(1,RMa,2,5,"slo-status-card",66),Ae());a&2&&(a=K().row,B(1),D("ngIf",a.sloStatus))},TMa=function(a){a&1&&(F(0,"td",62),O(1,SMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},UMa=function(a){a&1&&(F(0,"slo-status-card",67),H(1,"b-slo-time-indicator",68),G());a&2&&(a=K(2).row,D("sloId",a.sloId)("sloStatus",a.sloStatus)("sloSnoozeUntil",a.sloSnoozeUntil)("onlyShowMetric","CLOSURE"),B(1),D("sloBounds",a.sloStatus.getClosureBounds()))},VMa=function(a){a&1&&(ze(0),
O(1,UMa,2,5,"slo-status-card",66),Ae());a&2&&(a=K().row,B(1),D("ngIf",a.sloStatus))},WMa=function(a){a&1&&(F(0,"td",62),O(1,VMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},XMa=function(a,b){a&1&&H(0,"b-formatted-date-time",70);a&2&&(a=b.$implicit,K(3),D("timestamp",1E3*a.seconds))},YMa=function(a){a&1&&(ze(0),O(1,XMa,1,1,"b-formatted-date-time",69),Ae());a&2&&(a=K().row,B(1),D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime))},ZMa=function(a){a&1&&(F(0,"td",
54),O(1,YMa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},$Ma=function(a){a&1&&H(0,"div",72)},aNa=function(a){a&1&&(F(0,"div"),H(1,"b-team-display",73),G());a&2&&(a=K(2).row,B(1),D("teamId",a.teamId.toString())("componentId",a.componentId.toString())("anchorLinkEnabled",!1))},bNa=function(a){a&1&&(ze(0),O(1,$Ma,1,0,"div",71),O(2,aNa,2,3,"div",23),Ae());a&2&&(a=K(2),B(1),D("ngIf",a.isLoadingTeams),B(1),D("ngIf",!a.isLoadingTeams))},cNa=function(a){a&1&&(F(0,"td",54),O(1,bNa,3,2,"ng-container",
23),G());a&2&&(K(),B(1),D("ngIf",!0))},dNa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().row,B(1),Je(" ",null==a.effort?null:W(a.effort,2)," "))},eNa=function(a){a&1&&(F(0,"td",54),O(1,dNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},fNa=function(a){a&1&&(ze(0),P(1),Ae());if(a&2){a=K().row;var b=K();B(1);Je(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Bl(a.effort,4))||"":""," ")}},gNa=function(a){a&1&&(F(0,"td",54),O(1,fNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},
hNa=function(a){a&1&&(ze(0),P(1),Ae());if(a&2){a=K().row;var b=K();B(1);Je(" ",b.isTotalEstimatesEnabled?(null==a.effort?null:Bl(a.effort,5))||"":""," ")}},iNa=function(a){a&1&&(F(0,"td",54),O(1,hNa,2,1,"ng-container",23),G());a&2&&(K(),B(1),D("ngIf",!0))},jNa=function(a){a&1&&H(0,"b-issue-card",77,78);if(a&2){var b=M(1);a=K().id;D("onedevIsHovercardReady",b.init)("issueId",a)}},kNa=function(a,b){a&1&&(F(0,"onedev-hovercard",null,74),O(2,jNa,2,2,"b-issue-card",75),G(),F(3,"span",76),P(4),G());if(a&
2){a=b.id;var c=M(1);B(3);D("onedevHovercardTrigger",c);B(1);Ke(a)}},lNa=function(a){if(a&1){var b=y();F(0,"b-app-bar-bulk-edit-menus",10);J("onBulkEdit",function(c){z(b);var d=K();return A(d.bulkEdit(c))})("onQuickBulkEdit",function(c){z(b);var d=K();return A(d.quickBulkEdit(c))})("onBulkEditIssueRelation",function(c){z(b);var d=K();return A(d.bulkEditIssueRelation(c))})("onBulkMarkIssueRead",function(){z(b);var c=K();return A(c.bulkMarkIssueRead())});G()}a&2&&(a=K(),D("readStatePrompt",kJa(a)))},
mNa=function(a){if(a&1){var b=y();F(0,"b-copy-issue-id-button",11);J("onClickCopyIssueIds",function(){z(b);var c=K();return A(mJa(c.copyIssueIdService,Kp(c)))})("onClickCopyIssueShortLinks",function(){z(b);var c=K();return A(nJa(c.copyIssueIdService,Kp(c)))})("onClickCopyAsIssueSearch",function(){z(b);var c=K();return A(oJa(c.copyIssueIdService,Kp(c)))});G()}a&2&&(a=K(),D("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},
nNa=function(a){if(a&1){var b=y();F(0,"div",12)(1,"b-hotlist-picker",13);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onCreate",function(c){z(b);var d=K();return A(d.onCreateHotlist.emit(c))})("onLoad",function(c){z(b);var d=K();return A(d.onLoadHotlist.emit(c))});G()()}a&2&&(a=K(),B(1),D("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},oNa=function(a){a&1&&H(0,"hotlist-archive-btn",16);a&2&&(a=K(2),D("hotlistId",a.currentHotlistId))},pNa=function(a){if(a&
1){var b=y();ze(0);F(1,"hotlist-add-issue-btn",14);J("issueAddedToHotlist",function(){z(b);var c=K();return A(c.refresh())});G();O(2,oNa,1,1,"hotlist-archive-btn",15);Ae()}a&2&&(a=K(),B(1),D("hotlistId",a.currentHotlistId),B(1),D("ngIf",a.isHotlistAdmin))},qNa=function(a){a&1&&(F(0,"span",20),P(1,"Reporting"),G())},rNa=function(a){if(a&1){var b=y();F(0,"b-button",17);J("onAction",function(){z(b);var c=K();return A(c.openInEstado())});H(1,"b-icon",18);O(2,qNa,2,0,"span",19);G()}a&2&&(a=K(),D("size",
a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),D("ngIf",!a.hasSelectedIssues()))},sNa=function(a,b){a&1&&(F(0,"li"),P(1),H(2,"b-access-level-indicator",28),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.path," "),B(1),D("accessLevel",a.accessLevel))},tNa=function(a){a&1&&(F(0,"div",26)(1,"div")(2,"strong"),P(3,"You are commenting on issues in components that have external viewers:"),G()(),F(4,"ul"),O(5,sNa,3,2,"li",27),G()());a&2&&(a=K(2),B(5),D("ngForOf",a.externalWarnings))},
uNa=function(a){if(a&1){var b=y();F(0,"h1",21);P(1,"Add comment");G();F(2,"mat-dialog-content")(3,"b-comment-box",22);J("commentChange",function(c){z(b);var d=K();return A(d.comment=c)})("onSubmit",function(){z(b);var c=K();return A(tJa(c))});G();O(4,tNa,6,1,"div",23);G();F(5,"mat-dialog-actions")(6,"button",24);P(7," Cancel ");G();F(8,"button",25);P(9," Save ");G()()}a&2&&(a=K(),B(3),D("comment",a.comment)("showToolbar",!1),B(1),D("ngIf",0<a.externalWarnings.length),B(2),D("mat-dialog-close",!1),
B(2),D("mat-dialog-close",!0))},wNa=function(a,b){if(a&1){var c=y();F(0,"div",5)(1,"b-contact-chip",6);J("chipSelection",function(){var d=z(c).index,e=K();e.selectedChipIndex!==d&&Sp(e,d)&&(vNa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return A()})("chipClear",function(){z(c);var d=K();return A(vNa(d))})("chipRemove",function(){var d=z(c).index,e=K();return A(e.removeItem(d))});G()()}a&2&&(a=b.$implicit,b=K(),B(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()))},zNa=function(a){if(a&1){var b=y();F(0,"input",7,8);J("autocompleteActive",function(){z(b);var c=K();return A(c.chipifyFn())})("ngModelChange",function(c){z(b);var d=K();return A(d.typedText=c)})("focus",function(){z(b);var c=K();return A(xNa(c))})("blur",function(){z(b);var c=K();yNa(c,c.typedText.split(",")[0].trim());
c.isFocused=!1;return A()});G()}a&2&&(a=K(),D("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn)("ngModel",a.typedText)("disabled",a.isWidgetDisabled()),oe("id",a.idForInputBox))},ANa=function(a){a&1&&(F(0,"span"),P(1," Groups cannot be granted Restricted+ reader permission. "),F(2,"a",9),P(3,"Learn more"),G()());a&2&&(a=K(),B(2),oe("href",yo(a.documentationLinks)+"#components",Ud))},BNa=function(a){a&1&&(F(0,"span"),P(1," Invalid user(s). "),G())},CNa=function(a){a&
1&&(F(0,"span"),P(1,' "Public" or external users are not allowed for component designated as "internal access". '),G())},DNa=function(a){a&1&&(F(0,"span"),P(1,' "Public" is not allowed for components designated as "external partner access". '),G())},ENa=function(a){a&1&&(F(0,"span"),P(1," SLO lead can not be a group. "),G())},FNa=function(a){a&1&&(F(0,"span"),P(1," SLO lead can only be a full-time Googler. "),G())},GNa=function(a){if(a&1){var b=y();F(0,"div",7)(1,"button",8);J("click",function(){z(b);
var c=K();return A(c.onPressSave())});P(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var c=K();return A(c.onPressRevert())});P(4," Revert changes ");G()()}a&2&&(a=K(),B(1),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),D("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},
HNa=function(a){if(a&1){var b=y();F(0,"div",7)(1,"button",8);J("click",function(){z(b);var d=K();return A(d.save())});P(2," Save ");G();F(3,"button",9);J("click",function(){z(b);var d=K();return A(d.revert())});P(4," Revert changes ");G();H(5,"hotlist-archive-btn",10);Q(6,"async");G()}if(a&2){a=K();var c;B(1);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);D("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?
"No changes":"Go back to the last saved state");B(2);D("hotlistId",null!==(c=R(6,5,a.id$))&&void 0!==c?c:void 0)}},INa=function(a,b){a&1&&(ze(0),P(1),Ae());a&2&&(a=b.$implicit,B(1),Je(" ",a.name," "))},JNa=function(a){a&1&&(F(0,"strong",4),P(1,"(archived)"),G())},KNa=function(a){a&1&&H(0,"b-spinner")},LNa=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"}},MNa=function(a){a&1&&(F(0,"p",8),P(1," This hotlist cannot be edited because you are not an administrator of it. "),G())},NNa=function(a){a&1&&(ze(0),H(1,"b-edit-hotlist-toolbar",
1),F(2,"div",2),H(3,"b-edit-hotlist-header",1),F(4,"mat-tab-group",3)(5,"mat-tab",4),H(6,"b-edit-hotlist-basic",5),Q(7,"async"),G(),F(8,"mat-tab",6),H(9,"b-edit-hotlist-acl",5),Q(10,"async"),G()(),O(11,MNa,2,0,"p",7),Q(12,"async"),G(),Ae());a&2&&(a=K(),B(1),D("hotlistId",a.id),B(2),D("hotlistId",a.id),B(1),D("selectedIndex",a.tabIndex),B(2),D("hotlistId",a.id)("isReadOnly",!1===R(7,8,a.isAdmin$)),B(3),D("hotlistId",a.id)("isReadOnly",!1===R(10,10,a.isAdmin$)),B(2),D("ngIf",!1===R(12,12,a.isAdmin$)))},
ONa=function(a,b){a&1&&(ze(0),H(1,"empty-toolbar"),F(2,"div",9)(3,"h2"),P(4,"Error"),G(),F(5,"p"),P(6),G()(),Ae());a&2&&(a=b.$implicit,B(6),Ke(a))},PNa=function(a){a&1&&(F(0,"b-callout",1)(1,"b-callout-body"),P(2),G()());a&2&&(a=K(),B(2),Ke(a.error))},QNa=function(a){a&1&&Be(0)},RNa=function(a){a&1&&(F(0,"span"),P(1,"Details"),G())},SNa=function(a){a&1&&(F(0,"span"),P(1,"Members"),G())},UNa=function(a){a&1&&(F(0,"div",13)(1,"a",14),O(2,RNa,2,0,"span",15),O(3,SNa,2,0,"span",15),G()());if(a&2){a=K(2);
B(1);if(void 0===a.email)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=TNa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":Vta(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}D("href",b,Ud);B(1);D("ngIf",TNa(a.email));B(1);D("ngIf",!TNa(a.email))}},VNa=function(a){a&1&&(ze(0),F(1,"span",2),O(2,QNa,1,0,"ng-container",3),G(),F(3,"onedev-hovercard",null,4)(5,"div",5)(6,"div",6)(7,"div",
7)(8,"div",8)(9,"div",9)(10,"h3"),P(11),G()(),F(12,"div",10),H(13,"mat-icon",11),F(14,"span"),P(15),G()()(),O(16,UNa,4,3,"div",12),G()()()(),Ae());if(a&2){var b=M(4);a=K();var c=M(2);B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(9);Ke(a.getName());B(4);Ke(a.email);B(1);D("ngIf",!a.sessionIsExternal&&!!Gn(a.email))}},WNa=function(a){a&1&&Fe(0)},XNa=function(a,b){a&1&&H(0,"mat-icon",8);a&2&&D("svgIcon",b.ngIf)},YNa=function(a){a&1&&(F(0,"b-person-hovercard",9),P(1),G());a&2&&(a=
K(),D("email",a.value),B(1),Je(" ",a.displayText," "))},ZNa=function(a){a&1&&(F(0,"b-group-email-card",9),P(1),G());a&2&&(a=K(),D("email",a.value),B(1),Je(" ",a.displayText," "))},$Na=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K(),B(1),Je(" ",a.displayText," "))},aOa=function(a){if(a&1){var b=y();F(0,"div",10);J("click",function(){z(b);var c=K();return A(c.chipRemove.emit())});H(1,"mat-icon",11);G()}a&2&&(a=K(),Ge("matTooltip","'Remove ",a.displayText,"'"),oe("aria-label","Remove "+a.displayText))},
bOa=function(a,b){a&1&&(F(0,"div",19),H(1,"b-contact-chip",20),G());a&2&&(a=b.$implicit,b=K(2),B(1),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},cOa=function(a){a&1&&(F(0,"div",12)(1,"div",13)(2,"div",14),O(3,bOa,2,5,"div",15),F(4,"div",16),H(5,"div",17)(6,"div",18),G()()()());a&2&&(a=K(),B(3),D("ngForOf",a.nestedChips))},dOa=function(a,b){if(a&1){var c=y();F(0,"tr",7);J("click",function(){var e=
z(c).$implicit,f=K();return A(f.editHotlist(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",9);J("click",function(e){return e.stopPropagation()});P(4);G()();F(5,"td",10);P(6);G();F(7,"td",11);P(8);G();F(9,"td",12);P(10);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();te("grid-focus",d.isFocused(b));oe("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);D("href",d.paths.editHotlist(a.hotlistId),Ud);B(1);Je(" ",a.name,
" ");B(2);Je(" ",a.description," ");B(2);Je(" ",d.convertUserToString(a.ownerUser)," ");B(2);Je(" ",a.hotlistId," ")}},eOa=function(a){if(a&1){var b=y();F(0,"button",9);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});P(1," Move to top ");G()}},fOa=function(a){if(a&1){var b=y();F(0,"button",10);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});P(1," Move up ");G()}},gOa=function(a){if(a&1){var b=
y();F(0,"button",11);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});P(1," Move down ");G()}},hOa=function(a){if(a&1){var b=y();F(0,"button",12);J("click",function(){z(b);var c=K(2);return A(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});P(1," Move to bottom ");G()}},iOa=function(a){if(a&1){var b=y();O(0,eOa,2,0,"button",4);O(1,fOa,2,0,"button",5);O(2,gOa,2,0,"button",6);O(3,hOa,2,0,"button",7);F(4,"button",8);J("click",function(){z(b);
var c=K();return A(c.removePanel())});P(5," Remove ");G()}a&2&&(a=K(),D("ngIf",!a.first),B(1),D("ngIf",!a.first),B(1),D("ngIf",!a.last),B(1),D("ngIf",!a.last))},jOa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),oe("title",a.getValue()),B(1),Je(" ",a.getValue(),"\n"))},kOa=function(a){a&1&&H(0,"b-custom-field-value-display",2);a&2&&(a=K(),D("customFieldValue",a.getCustomFieldValue()))},lOa=function(a){a&1&&(F(0,"button",5,6),H(2,"mat-icon",7),G());if(a&2){a=K();var b=M(2);D("matMenuTriggerFor",
b);oe("aria-label",a.buttonLabel);B(2);D("svgIcon",a.buttonIcon)}},mOa=function(a){a&1&&(F(0,"div",8),P(1),G());a&2&&(a=K(),B(1),Ke(a.header))},nOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,D("svgIcon",a.icon))},oOa=function(a){a&1&&(F(0,"span",14),P(1),G());a&2&&(a=K(2).$implicit,B(1),Ke(a.hintText))},pOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(2).$implicit,D("svgIcon",a.icon))},qOa=function(a){a&1&&(F(0,"span",14),P(1),G());a&2&&(a=K(2).$implicit,B(1),Ke(a.hintText))},rOa=function(a){if(a&
1){var b=y();F(0,"button",17);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});O(1,pOa,1,1,"mat-icon",11);P(2);O(3,qOa,2,1,"span",12);G()}a&2&&(a=K().$implicit,D("disabled",a.disabled),oe("title",a.title),B(1),D("ngIf",a.icon),B(1),Je(" ",a.label," "),B(1),D("ngIf",a.hintText))},sOa=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,
d))})("mouseup",function(c){z(b);var d=K().$implicit,e=K(3);return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();P(3);G()}a&2&&(a=K().$implicit,te("b-menu-item-checked",a.selected),D("disabled",a.disabled),oe("title",a.title),B(3),Je(" ",a.label," "))},tOa=function(a,b){a&1&&(ze(0),O(1,rOa,4,5,"button",15),O(2,sOa,4,5,"button",16),Ae());a&2&&(a=b.$implicit,B(1),D("ngIf","action"===a.type),B(1),D("ngIf","select"===a.type))},uOa=function(a){a&1&&(ze(0),F(1,"button",10),O(2,nOa,1,1,"mat-icon",
11),P(3),O(4,oOa,2,1,"span",12),G(),F(5,"mat-menu",null,13),O(7,tOa,3,2,"ng-container",4),G(),Ae());if(a&2){var b=M(6);a=K().$implicit;var c=K();B(1);D("matMenuTriggerFor",b);B(1);D("ngIf",a.icon);B(1);Je(" ",a.label," ");B(1);D("ngIf",a.hintText);B(3);D("ngForOf",a.items)("ngForTrackBy",c.trackByIndex)}},vOa=function(a){a&1&&H(0,"mat-icon",7);a&2&&(a=K(3).$implicit,D("svgIcon",a.icon))},wOa=function(a){a&1&&(F(0,"span",14),P(1),G());a&2&&(a=K(3).$implicit,B(1),Ke(a.hintText))},xOa=function(a){if(a&
1){var b=y();F(0,"button",17);J("click",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});O(1,vOa,1,1,"mat-icon",11);P(2);O(3,wOa,2,1,"span",12);G()}a&2&&(a=K(2).$implicit,D("disabled",a.disabled),oe("title",a.title),B(1),D("ngIf",a.icon),B(1),Je(" ",a.label," "),B(1),D("ngIf",a.hintText))},yOa=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(c){z(b);var d=K(2).$implicit,e=K();
return A(e.onAction(c,d))})("mouseup",function(c){z(b);var d=K(2).$implicit,e=K();return A(e.onAction(c,d))});F(1,"span",19);H(2,"mat-icon",20);G();P(3);G()}a&2&&(a=K(2).$implicit,te("b-menu-item-checked",a.selected),D("disabled",a.disabled),oe("title",a.title),B(3),Je(" ",a.label," "))},zOa=function(a){a&1&&(ze(0),O(1,xOa,4,5,"button",15),O(2,yOa,4,5,"button",16),Ae());a&2&&(a=K().$implicit,B(1),D("ngIf","action"===a.type),B(1),D("ngIf","select"===a.type))},AOa=function(a,b){a&1&&(ze(0),O(1,uOa,
8,6,"ng-container",9),O(2,zOa,3,2,"ng-container",9),Ae());a&2&&(a=b.$implicit,B(1),D("ngIf","submenu"===a.type),B(1),D("ngIf","submenu"!==a.type))},BOa=function(a){a&1&&H(0,"b-actions-menu",7);a&2&&(a=K(),D("menuItems",a.menuItems))},COa=function(a){a&1&&(F(0,"span",8)(1,"strong"),P(2),G(),P(3,"\u00a0of\u00a0"),F(4,"strong"),P(5),G()());a&2&&(a=K(),B(2),Le("",null==a.searchResults?null:a.searchResults.startIndex,"\u00a0-\u00a0",null==a.searchResults?null:a.searchResults.endIndex,""),B(3),Ke(null==
a.searchResults?null:a.searchResults.totalText))},DOa=function(a){a&1&&(F(0,"div"),P(1," Hotlist not found. "),G())},EOa=function(a){a&1&&(F(0,"div"),P(1," Loading details... "),G())},FOa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),D("panelId",a.panel.panelId))},GOa=function(a){a&1&&(F(0,"span",12),P(1," \u00a0(changed) "),G())},HOa=function(a){a&1&&(F(0,"div"),O(1,FOa,1,1,"b-panel-controls",6),F(2,"span",7),P(3," Hotlist: "),F(4,"a",8)(5,"span",9),P(6),G()()(),O(7,GOa,2,0,"span",10),
G());a&2&&(a=K(),B(1),D("ngIf",a.isDashboardEditable),B(3),D("href",a.paths.viewHotlist(a.hotlistId),Ud),B(1),He("matTooltip",a.resource.description),B(1),Ke(a.resource.name),B(1),D("ngIf",a.hasParamChanges()))},IOa=function(a){if(a&1){var b=y();F(0,"div",13)(1,"button",14);J("click",function(){z(b);var c=K();return A(c.save())});P(2,"Save ");G();F(3,"button",15);J("click",function(){z(b);var c=K();return A(c.discardChanges())});P(4," Discard changes ");G()()}},JOa=function(a){a&1&&(F(0,"span"),P(1),
G());a&2&&(a=K(3),B(1),Je(" Searching for ",a.searchParams.query," ..."))},KOa=function(a){a&1&&(F(0,"div",19),H(1,"b-spinner",20),O(2,JOa,2,1,"span",3),G());a&2&&(a=K(2),B(1),D("large",!1),B(1),D("ngIf",a.searchParams&&(null==a.searchParams?null:a.searchParams.query)))},LOa=function(a){a&1&&(F(0,"div",21),P(1," No issues in hotlist. "),G())},NOa=function(a){if(a&1){var b=y();F(0,"div",22)(1,"b-issues-grid",23);J("init",function(c){z(b);var d=K(2);return A(MOa(d,c))})("focusedRowIndexChange",function(c){z(b);
var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){z(b);var d=K(2);return A(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page-
1))});G()()}a&2&&(a=K(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},OOa=function(a){a&1&&(F(0,"div"),O(1,KOa,3,2,"div",16),O(2,LOa,2,0,"div",17),O(3,NOa,2,5,"div",18),G());a&2&&(a=K(),B(1),D("ngIf",a.isLoading),B(1),D("ngIf",!a.isLoading&&!(null==a.searchResults?0:null==a.searchResults.issues?0:a.searchResults.issues.length)),B(1),D("ngIf",!a.isLoading&&(null==a.searchResults?
null:null==a.searchResults.issues?null:a.searchResults.issues.length)))},POa=function(a){a&1&&(Uc(),Vc(),Be(0))},ROa=function(a,b){a&1&&(ze(0),F(1,"div",11)(2,"span",12),Uc(),F(3,"svg",13),H(4,"path",14),G()(),O(5,POa,1,0,"ng-container",15),G(),Ae());if(a&2){a=b.$implicit;b=b.index;var c=K(3),d=M(6);B(2);te("invisible",c.disabled);B(3);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Pe(4,QOa,a,b))}},SOa=function(a){a&1&&(ze(0),O(1,ROa,6,7,"ng-container",10),Ae());a&2&&(a=K(2),B(1),D("ngForOf",a.items))},
TOa=function(a){if(a&1){var b=y();ze(0);F(1,"div",8)(2,"div",9);J("cdkDropListDropped",function(d){z(b);var e=K();return A(e.onDrop(d))});O(3,SOa,2,1,"ng-container",2);G()();Ae()}if(a&2){a=K();var c=M(12);B(3);D("ngIf",a.items.length)("ngIfElse",c)}},UOa=function(a){a&1&&Be(0)},VOa=function(a,b){a&1&&(ze(0),F(1,"div",17),O(2,UOa,1,0,"ng-container",15),G(),Ae());if(a&2){a=b.$implicit;b=b.index;K(3);var c=M(6);B(2);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Pe(2,QOa,a,b))}},WOa=function(a){a&
1&&(ze(0),O(1,VOa,3,5,"ng-container",10),Ae());a&2&&(a=K(2),B(1),D("ngForOf",a.items))},XOa=function(a){a&1&&(F(0,"div",16),O(1,WOa,2,1,"ng-container",2),G());if(a&2){a=K();var b=M(12);B(1);D("ngIf",a.items.length)("ngIfElse",b)}},YOa=function(a){a&1&&Be(0)},ZOa=function(a){if(a&1){var b=y();F(0,"button",19);J("click",function(){z(b);var d=K().index,e=K();return A(e.removeAtIndex(d))});Uc();F(1,"svg",13);H(2,"path",20);G()()}if(a&2){a=K().$implicit;var c=K();D("matTooltip","Remove "+(c.valueToTextFunc?
c.valueToTextFunc(a):String(a)));oe("aria-label","Remove "+(c.valueToTextFunc?c.valueToTextFunc(a):String(a)))}},$Oa=function(a,b){a&1&&(O(0,YOa,1,0,"ng-container",15),O(1,ZOa,3,2,"button",18));if(a&2){a=b.$implicit;b=b.index;var c=K(),d=M(10),e=M(8);D("ngTemplateOutlet",c.listItemTemplate?d:e)("ngTemplateOutletContext",Pe(3,QOa,a,b));B(1);D("ngIf",!c.disabled&&c.removable)}},aPa=function(a,b){a&1&&(F(0,"span",21),P(1),G());a&2&&(a=b.$implicit,B(1),Ke(a))},bPa=function(a,b){a&1&&Be(0,22);if(a&2){a=
b.$implicit;var c=b.index,d=K();b=D("ngTemplateOutlet",d.listItemTemplate);var e=d.disabled;d=d.removable;var f=y(),h=Rc()+2,k=ne(f,h,a,c);a=ne(f,h+2,e,d)||k?le(f,h+4,{$implicit:a,index:c,disabled:e,removable:d}):Re(f,h+4);b("ngTemplateOutletContext",a)}},cPa=function(a){a&1&&(F(0,"div",23),Fe(1),G())},dPa=function(a){a&1&&H(0,"b-issue-status-display",9);a&2&&(a=K().$implicit,D("issueStatusJs",a.status)("displayMode","ICON"))},ePa=function(a){a&1&&H(0,"b-issue-card",10,11);if(a&2){var b=M(1);a=K().$implicit;
D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},fPa=function(a){a&1&&(F(0,"a",12),P(1),G());if(a&2){a=K().$implicit;var b=K();D("href",b.getLink(a),Ud);B(1);Je(" ",a.title," ")}},gPa=function(a){a&1&&(F(0,"span"),P(1," Loading details... "),G())},hPa=function(a){a&1&&(F(0,"span"),P(1," [Details unavailable] "),G())},iPa=function(a,b){a&1&&(F(0,"span",2),O(1,dPa,1,2,"b-issue-status-display",3),F(2,"span")(3,"onedev-hovercard",null,4),O(5,ePa,2,2,"b-issue-card",5),G(),F(6,"a",6),P(7),G()(),
O(8,fPa,2,2,"a",7),O(9,gPa,2,0,"span",8),O(10,hPa,2,0,"span",8),G());if(a&2){a=b.$implicit;var c=M(4);b=K();D("ngClass",b.getStatusTextStyle(a));B(1);D("ngIf",a.status);B(5);qe("aria-label","Open issue ID ",a.issueId,"");D("href",b.getLink(a),Ud)("onedevHovercardTrigger",c);B(1);Je(" ",a.issueId," ");B(1);D("ngIf",a.resolved&&a.title);B(1);D("ngIf",!a.resolved);B(1);D("ngIf",a.resolved&&!a.title)}},jPa=function(a){if(a&1){var b=y();F(0,"b-rel-issues-list",6);J("itemsChange",function(c){z(b);var d=
K(2);return A(d.itemsChange.emit(c))})("itemChange",function(c){z(b);var d=K(2);return A(d.itemChange.emit(c))})("itemMove",function(c){z(b);var d=K(2);return A(d.itemMove.emit(c))});G()}a&2&&(a=K(2),D("items",a.items)("orderByFn",a.orderByFn)("disabled",a.disabled)("reorderable",a.reorderable))},kPa=function(a){a&1&&(F(0,"div"),O(1,jPa,1,4,"b-rel-issues-list",5),G());a&2&&(a=K(),B(1),D("ngIf",a.items.length))},lPa=function(a){a&1&&H(0,"b-issue-status-display",18);a&2&&(a=K().$implicit,D("issueStatusJs",
a.status))},mPa=function(a){a&1&&H(0,"b-issue-card",19,20);if(a&2){var b=M(1);a=K().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},nPa=function(a){a&1&&(F(0,"span",10),P(1," Loading details... "),G())},oPa=function(a){a&1&&(F(0,"span",21),P(1),G());a&2&&(a=K().$implicit,B(1),Je(" ",a.title," "))},pPa=function(a){a&1&&(F(0,"span"),P(1," [Details unavailable.] "),G())},qPa=function(a){if(a&1){var b=y();F(0,"button",22);J("click",function(){z(b);var d=K().$implicit,e=K(2);return A(e.removeItem(d.issueId))});
G()}if(a&2){a=K().$implicit;var c=K(2);D("disabled",c.disabled)("matTooltip",c.removeButtonTitle||"Remove issue");oe("aria-label",c.removeButtonTitle?c.removeButtonTitle+" ID "+a.issueId:"Remove issue ID "+a.issueId)}},rPa=function(a,b){a&1&&(F(0,"div",8),O(1,lPa,1,1,"b-issue-status-display",9),F(2,"span",10)(3,"onedev-hovercard",null,11),O(5,mPa,2,2,"b-issue-card",12),G(),F(6,"a",13),P(7),G()(),F(8,"a",14),O(9,nPa,2,0,"span",15),O(10,oPa,2,1,"span",16),O(11,pPa,2,0,"span",3),G(),O(12,qPa,1,3,"button",
17),G());if(a&2){a=b.$implicit;var c=M(4);b=K(2);D("ngClass",!b.hideStatus&&b.getStatusTextStyle(a)||"");B(1);D("ngIf",!b.hideStatus&&a.resolved&&a.status);B(5);qe("aria-label","Open issue ID ",a.issueId,"");D("href",b.getLink(a),Ud)("onedevHovercardTrigger",c);B(1);Je(" ",a.issueId," ");B(1);D("href",b.getLink(a),Ud);B(1);D("ngIf",!a.resolved);B(1);D("ngIf",a.resolved&&a.title);B(1);D("ngIf",a.resolved&&!a.title);B(1);D("ngIf",b.removeButtonTitle)}},sPa=function(a){a&1&&(F(0,"div"),O(1,rPa,13,11,
"div",7),G());a&2&&(a=K(),B(1),D("ngForOf",a.items))},tPa=function(a){a&1&&(F(0,"div"),P(1,"--"),G())},uPa=function(a){a&1&&(F(0,"div",26)(1,"a",14),P(2,"View in issue list"),G()());a&2&&(a=K(2),B(1),D("href",a.searchLink,Ud))},wPa=function(a){if(a&1){var b=y();F(0,"div",23)(1,"button",24);J("click",function(){z(b);var c=K();return A(vPa(c))});P(2);G();O(3,uPa,3,1,"div",25);Fe(4);G()}a&2&&(a=K(),B(1),D("disabled",a.disabled),B(1),Je(" ",a.addButtonTitle||"Add issue"," "),B(1),D("ngIf",a.searchLink))},
xPa=function(a){a&1&&(F(0,"div"),P(1," Saved search not found. "),G())},yPa=function(a){a&1&&(F(0,"div"),P(1," Loading details... "),G())},zPa=function(a){a&1&&H(0,"b-panel-controls",11);a&2&&(a=K(2),D("panelId",a.panel.panelId))},APa=function(a){a&1&&(F(0,"span",12),P(1," \u00a0(changed) "),G())},BPa=function(a){a&1&&(F(0,"div",6),O(1,zPa,1,1,"b-panel-controls",7),F(2,"span",6),P(3," Saved search: "),F(4,"a",8)(5,"span",9),P(6),G()()(),O(7,APa,2,0,"span",10),G());a&2&&(a=K(),B(1),D("ngIf",a.isDashboardEditable),
B(3),D("href",a.paths.viewSavedSearch(a.savedSearchId),Ud),B(1),He("matTooltip",a.resource.description),B(1),Ke(a.resource.name),B(1),D("ngIf",a.hasParamChanges()))},CPa=function(a,b){a&1&&(F(0,"span"),P(1),G());a&2&&(a=b.ngIf,B(1),Je("Searching for ",a,"..."))},DPa=function(a){a&1&&(F(0,"div",16),H(1,"b-spinner",17),O(2,CPa,2,1,"span",3),G());a&2&&(a=K(2),B(1),D("large",!1),B(1),D("ngIf",null==a.searchParams?null:a.searchParams.query))},EPa=function(a){a&1&&(F(0,"div",18),P(1," No issues in saved search. "),
G())},FPa=function(a){if(a&1){var b=y();F(0,"div",19)(1,"b-issues-grid",20);J("init",function(c){z(b);var d=K(2);return A(MOa(d,c))})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.columnsChange(c))})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);
return A(c.goToPage(c.page+1))})("onPrevPage",function(){z(b);var c=K(2);return A(c.goToPage(c.page-1))});G()()}a&2&&(a=K(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},GPa=function(a){a&1&&(F(0,"div"),O(1,DPa,3,2,"div",13),O(2,EPa,2,0,"div",14),O(3,FPa,2,5,"div",15),G());a&2&&(a=K(),B(1),D("ngIf",a.isLoading),B(1),D("ngIf",!a.isLoading&&a.searchResults&&0===a.searchResults.issues.length),
B(1),D("ngIf",!a.isLoading&&a.searchResults&&0!==a.searchResults.issues.length))},HPa=function(a,b){a&1&&(F(0,"span",3)(1,"a",4),P(2),G()());a&2&&(a=b.$implicit,B(1),Ge("routerLink","/teams/",a.id,"/edit"),D("preserveFragment",!0),B(1),Ke(a.name))},IPa=function(a){a&1&&(F(0,"p")(1,"span",6),P(2,"NOTE:"),G(),P(3),F(4,"a",7),P(5,"Learn more"),G()());a&2&&(a=K(),B(3),Je(" ",a.data.noteText," "),B(1),D("href",a.getDisablingFieldsHelpLink(),Ud))},JPa=function(a){a&1&&(ze(0),H(1,"span",26)(2,"b-icon",27),
Ae());a&2&&(a=K(),B(1),D("innerHTML",a.menuLabel,Td))},KPa=function(a){a&1&&(F(0,"div",28),P(1," This includes emails about major updates and: "),F(2,"ul",29)(3,"li"),P(4,"All title, hotlist, and status changes."),G(),F(5,"li"),P(6,"Blocking, Blocked By, or Duplicate changes."),G(),F(7,"li"),P(8,"Changes to Reporter, Verifier, and CCs."),G(),F(9,"li"),P(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),G(),F(11,"li"),P(12,"Changes to custom fields marked as minor."),G()()())},
LPa=function(a){a&1&&(F(0,"div",30),P(1," This includes emails about: "),F(2,"ul",29)(3,"li"),P(4,"New comments."),G(),F(5,"li"),P(6,"Priority or Severity changes."),G(),F(7,"li"),P(8,"Assignee changes."),G(),F(9,"li"),P(10,"Component changes."),G(),F(11,"li"),P(12,"Issue closure or reopening."),G(),F(13,"li"),P(14,"Changes to custom fields marked as major."),G()()())},MPa=function(a,b){a&1&&(F(0,"mat-option",6),P(1),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",a.getName()," "))},NPa=function(a){a&
1&&(F(0,"span",11),P(1," (must be between 30 days and 10 years) "),G())},OPa=function(a){if(a&1){var b=y();F(0,"div",12)(1,"b-duration-picker",13);J("durationDaysChange",function(c){z(b);var d=K();d.model.retentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Tp(d);return A()});G();F(2,"div",14);P(3);G()()}a&2&&(a=K(),B(1),D("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),B(2),Je(" Issues will be marked for deletion when they have not been modified for ",
Vp(a.model.retentionPeriodDays),". "))},PPa=function(a){a&1&&(F(0,"div",15)(1,"p"),P(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),F(3,"b"),P(4,"one or more"),G(),P(5," of the following is true:"),G(),F(6,"ol")(7,"li"),P(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),G(),F(9,"li"),P(10,"You have a process in place to manually delete this data within an approved period of time."),
G(),F(11,"li"),P(12,"Legal and Privacy have approved this non-standard retention period."),G()()())},QPa=function(a){a&1&&(F(0,"span",11),P(1," (Issue Retention is shorter than default Restricted Retention) "),G())},SPa=function(a){a&1&&(F(0,"span",11),P(1),G());a&2&&(a=K(),B(1),Je(" ",RPa(a)," "))},TPa=function(a){a&1&&(F(0,"div",21)(1,"p"),P(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()())},VPa=function(a){if(a&1){var b=y();F(0,"div",12)(1,"div")(2,"span",16);P(3,"Restricted retention:");G();F(4,"b-duration-picker",17);J("durationDaysChange",function(c){z(b);var d=K();d.model.piiRetentionPeriodDays=null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Tp(d);return A()});G()();F(5,"div",18)(6,"p");P(7);G()();F(8,"div")(9,"span",16);P(10,"Restricted+ retention:");G();F(11,"b-duration-picker",19);J("durationDaysChange",function(c){z(b);var d=K();d.model.spiiRetentionPeriodDays=
null!==c&&void 0!==c?c:null;d.modelChange.emit(d.model);Tp(d);return A()});G()();F(12,"div",18)(13,"p");P(14);G()();O(15,TPa,3,0,"div",20);G()}a&2&&(a=K(),B(4),D("disabled",!Wp(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),Je(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",Vp(a.model.piiRetentionPeriodDays),". "),B(4),D("disabled",!Wp(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),Je(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",
Vp(a.model.spiiRetentionPeriodDays),". "),B(1),D("ngIf",a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&UPa(a)))},WPa=function(a){a&1&&(F(0,"div",22)(1,"p"),P(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()())},Xp=function(a,b,c,
d){var e=XPa(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}},XPa=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},Yp=function(a,b){return(void 0===b?0:b)?-1<a.search(/^\d+\+?$/):-1<a.search(/^\d+$/)},YPa=function(a){return"-"===a.charAt(0)?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},Zp=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?Mi(q,e):fa(q,e):!1});b=b.idx;for(var f=b+e.length,h=r(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},$p=function(a,b,c,d){return{trackId:b+":"+a,name:a,id:a,label:c,completionCfg:{enableShadowPlaceholder:!0,completionValue:a,type:d}}},aQa=function(a,b){if(a&1){var c=y();F(0,"div",9)(1,"div",10);J("click",function(d){var e=z(c).$implicit,f=K();e=e.key;if(d=
void 0===d?null:d)d.preventDefault(),d.stopPropagation();d=f.options.propertyValues[e];d.value=!d.value;ZPa(f);$Pa(f);f.optionsChange.emit(f.options);return A()});F(2,"b-checkbox",11);J("change",function(d){var e=z(c).$implicit,f=K();e.value.value=d;ZPa(f);$Pa(f);f.optionsChange.emit(f.options);return A()})("click",function(d){return d.stopPropagation()});G()()()}a&2&&(a=b.$implicit,oe("aria-checked",a.value.value),B(2),D("checked",a.value.value)("label",a.value.displayString))},bQa=function(a){a&
1&&(F(0,"div",12),P(1),G());a&2&&(a=K(),B(1),Je(" ",a.errorString," "))},dQa=function(a){if(a&1){var b=y();F(0,"span",4)(1,"input",5);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.businessDayString=c)})("ngModelChange",function(){z(b);var c=K(2);return A(cQa(c))});G();F(2,"span",8);P(3,"days,");G()()}a&2&&(a=K(2),B(1),te("ng-invalid",!!a.errorString),D("ngModel",a.businessDayString))},fQa=function(a,b){a&1&&(F(0,"mat-option",9),P(1),G());a&2&&(a=b.$implicit,b=K(2),D("value",a),B(1),Je(" ",
eQa(b,a)," "))},iQa=function(a){if(a&1){var b=y();F(0,"span",2);O(1,dQa,4,3,"span",3);F(2,"span",4)(3,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalString=c)})("ngModelChange",function(){z(b);var c=K();return A(cQa(c))});G();F(4,"mat-select",6);J("ngModelChange",function(c){z(b);var d=K();return A(d.intervalUnit=c)})("selectionChange",function(){z(b);var c=K();gQa(c);hQa(c);return A()});O(5,fQa,2,2,"mat-option",7);G()()()}a&2&&(a=K(),B(1),D("ngIf",2==a.dayType),B(2),te("invalid",
!!a.errorString),D("ngModel",a.intervalString),B(1),D("ngModel",a.intervalUnit),B(1),D("ngForOf",2==a.dayType?[aq,bq]:[aq,bq,cq]))},jQa=function(a){a&1&&(F(0,"span",13),P(1),G());a&2&&(a=K(2),B(1),Le(" ",a.objectiveBusinessDays," day",1!=a.objectiveBusinessDays?"s":""," "))},kQa=function(a){a&1&&(F(0,"span"),P(1,", "),G())},lQa=function(a){a&1&&(F(0,"span"),O(1,kQa,2,0,"span",12),F(2,"span"),P(3),G()());a&2&&(a=K(2),B(1),D("ngIf",a.objectiveBusinessDays),B(2),Le("",a.intervalString," ",eQa(a,a.intervalUnit),
""))},mQa=function(a){a&1&&(F(0,"span",10),O(1,jQa,2,2,"span",11),O(2,lQa,4,3,"span",12),G());a&2&&(a=K(),B(1),D("ngIf",a.objectiveBusinessDays),B(1),D("ngIf",a.intervalString&&"0"!=a.intervalString))},oQa=function(a){if(a&1){var b=y();F(0,"b-icon",22);J("click",function(){z(b);var c=K(2);return A(nQa(c,0))});G()}a&2&&D("name","add")("size","small")},qQa=function(a){if(a&1){var b=y();F(0,"span",17)(1,"span",18)(2,"span",19);O(3,oQa,1,2,"b-icon",20);G();F(4,"span",19)(5,"b-icon",21);J("click",function(c){z(b);
var d=K();return A(pQa(d,c))});G()()()()}a&2&&(a=K(),B(3),D("ngIf",a.canPerformActions),B(2),D("name","delete")("size","small"))},rQa=function(a){a&1&&H(0,"td",42)},sQa=function(a){if(a&1){var b=y();F(0,"td",43)(1,"slo-element-property-picker",44);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.typePickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),D("selectAllText","Any type")("validator",a.validateTypePicker)("options",a.typePickerValues))},tQa=function(a){if(a&1){var b=y();F(0,
"td",45)(1,"slo-element-property-picker",46);J("optionsChange",function(c){z(b);var d=K().$implicit;return A(d.priorityPickerValues=c)});G()()}a&2&&(a=K().$implicit,B(1),D("selectAllText","Any priority")("validator",a.validatePriorityPicker)("options",a.priorityPickerValues))},uQa=function(a){if(a&1){var b=y();F(0,"td",47)(1,"slo-element-property-picker",48);J("optionsChange",function(d){z(b);var e=K().$implicit;return A(e.postmortemPickerValues=d)});G()()}if(a&2){a=K().$implicit;var c=K(2);B(1);
D("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker)("options",a.postmortemPickerValues)}},wQa=function(a,b){a&1&&(F(0,"mat-option",53),P(1),G());a&2&&(a=b.$implicit,K(4),D("value",a),B(1),Je(" ",0===a?" - ":vQa.get(a)," "))},xQa=function(a){if(a&1){var b=y();F(0,"td",49)(1,"mat-form-field",50)(2,"mat-select",51);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedMetric=d)});O(3,wQa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=
K(2);B(2);D("ngModel",a.selectedMetric)("customValidators",a.metricValidators);B(1);D("ngForOf",c.metricChoices)}},yQa=function(a){if(a&1){var b=y();F(0,"td",54)(1,"slo-objective-selector",55);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",
a.selectedObjectiveBusinessDays)("validator",a.validateObjective))},AQa=function(a,b){a&1&&(F(0,"mat-option",53),P(1),G());a&2&&(a=b.$implicit,K(4),D("value",a),B(1),Je(" ",zQa.get(a||1)," "))},BQa=function(a){if(a&1){var b=y();F(0,"td",56)(1,"mat-form-field",57)(2,"mat-select",58);J("ngModelChange",function(d){z(b);var e=K().$implicit;return A(e.selectedDayType=d)})("selectionChange",function(){z(b);var d=K().$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 A()});O(3,AQa,2,2,"mat-option",52);G()()()}if(a&2){a=K().$implicit;var c=K(2);B(2);D("ngModel",a.selectedDayType);B(1);D("ngForOf",c.dayTypes)}},EQa=function(a){if(a&1){var b=y();F(0,"td",59)(1,"span",18)(2,"span",19)(3,"b-icon",60);J("click",function(){z(b);
var c=K(3);if(c.openRow)if(c.openRow.isValid())CQa(c.openRow.typePickerValues)&&CQa(c.openRow.priorityPickerValues)&&CQa(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:In("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}):dq(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:In('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 A()});G()();F(4,"span",19)(5,"b-icon",61);J("click",
function(){z(b);var c=K().$implicit,d=K(2);return A(DQa(d,c))});G()()()()}a&2&&(B(3),D("name","done")("size","small"),B(2),D("name","delete")("size","small"))},FQa=function(a){a&1&&H(0,"td",62)},GQa=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K(2).$implicit,B(1),Je("ERROR: ",a.parseResult.error,""))},HQa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),P(2),G()());a&2&&(a=b.$implicit,B(2),Ke(a))},JQa=function(a){a&1&&(F(0,"span",66),O(1,HQa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(1);if(0===
a.parseResult.types.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbTypeToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.types.includes(d)&&b.push(IQa(a.controllerReference,d));a=b}D("ngForOf",a)}},KQa=function(a){a&1&&(F(0,"td",63),O(1,GQa,2,1,"div",64),O(2,JQa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},LQa=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K(2).$implicit,B(1),
Je("ERROR: ",a.parseResult.error,""))},MQa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),P(2),G()());a&2&&(a=b.$implicit,B(2),Ke(a))},OQa=function(a){a&1&&(F(0,"span",66),O(1,MQa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(1);if(0===a.parseResult.priorities.length)a=["Any"];else{for(var b=[],c=r(a.controllerReference.sloParseService.jspbPriorityToString.keys()),d=c.next();!d.done;d=c.next())d=d.value,a.parseResult.priorities.includes(d)&&b.push(NQa(a.controllerReference,d));a=b}D("ngForOf",a)}},
PQa=function(a){a&1&&(F(0,"td",70),O(1,LQa,2,1,"div",64),O(2,OQa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},QQa=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K(2).$implicit,B(1),Je("ERROR: ",a.parseResult.error,""))},RQa=function(a,b){a&1&&(F(0,"span",68)(1,"span",69),P(2),G()());a&2&&(a=b.$implicit,B(2),Ke(a))},SQa=function(a){a&1&&(F(0,"span",66),O(1,RQa,3,1,"span",67),G());if(a&2){a=K(2).$implicit;B(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)}},TQa=function(a){a&1&&(F(0,"td",71),O(1,QQa,2,1,"div",64),O(2,SQa,2,1,"span",65),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.parseResult.error),B(1),D("ngIf",!a.parseResult.error))},UQa=function(a){a&1&&(F(0,"td",72),P(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=a.sloElement.getMetric(),a=0===a?" - ":vQa.get(a),Je(" ",a," "))},VQa=function(a){if(a&
1){var b=y();F(0,"td",73)(1,"slo-objective-selector",74);J("objectiveDurationChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveDuration=c)})("objectiveBusinessDaysChange",function(c){z(b);var d=K().$implicit;return A(d.selectedObjectiveBusinessDays=c)});G()()}a&2&&(a=K().$implicit,B(1),D("dayType",a.selectedDayType)("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays)("isDisabled",!a.isEditing_))},WQa=function(a){a&1&&(F(0,
"td",75),P(1),G());a&2&&(a=K().$implicit,K(2),B(1),a=X(a.sloElement,4,0),a=zQa.get(a||1),Je(" ",a," "))},YQa=function(a){if(a&1){var b=y();F(0,"b-icon",85);J("click",function(c){z(b);var d=K(2).$implicit,e=K(2);return A(XQa(e,d,c))});G()}a&2&&D("name","edit")("size","small")},ZQa=function(a){a&1&&H(0,"b-icon",86);if(a&2){K();var b=M(8);D("name","more-settings-vertical")("size","small")("matMenuTriggerFor",b)}},aRa=function(a){if(a&1){var b=y();F(0,"button",87);J("click",function(){z(b);var c=K(2).$implicit,
d=K(2);return A($Qa(d,c,1))});P(1," Move row down ");G()}},bRa=function(a){if(a&1){var b=y();F(0,"button",88);J("click",function(){z(b);var c=K(2).$implicit,d=K(2);return A($Qa(d,c,-1))});P(1," Move row up ");G()}},dRa=function(a){if(a&1){var b=y();F(0,"td",76)(1,"span",18)(2,"span",19);O(3,YQa,1,2,"b-icon",77);G();F(4,"span",19)(5,"span");O(6,ZQa,1,3,"b-icon",78);G();F(7,"mat-menu",null,79);O(9,aRa,2,0,"button",80);O(10,bRa,2,0,"button",81);F(11,"button",82);J("click",function(){z(b);var d=K().$implicit,
e=K(2);nQa(e,e.collection.indexOf(d)+1);return A()});P(12," Add row below ");G();F(13,"button",83);J("click",function(){z(b);var d=K().$implicit,e=K(2);nQa(e,e.collection.indexOf(d));return A()});P(14," Add row above ");G();F(15,"button",84);J("click",function(){z(b);var d=K().$implicit,e=K(2);return A(DQa(e,d))});P(16," Remove ");G()()()()()}if(a&2){a=K().$implicit;var c=K(2);B(3);D("ngIf",a.canEdit);B(3);D("ngIf",a.canEdit);B(3);D("ngIf",cRa(c,a,1).valid);B(1);D("ngIf",cRa(c,a,-1).valid)}},eRa=
function(a,b){a&1&&(F(0,"tr",25),O(1,rQa,1,0,"td",26),O(2,sQa,2,3,"td",27),O(3,tQa,2,3,"td",28),O(4,uQa,2,3,"td",29),O(5,xQa,4,3,"td",30),O(6,yQa,2,4,"td",31),O(7,BQa,4,2,"td",32),O(8,EQa,6,4,"td",33),O(9,FQa,1,0,"td",34),O(10,KQa,3,2,"td",35),O(11,PQa,3,2,"td",36),O(12,TQa,3,2,"td",37),O(13,UQa,2,1,"td",38),O(14,VQa,2,4,"td",39),O(15,WQa,2,1,"td",40),O(16,dRa,17,4,"td",41),G());a&2&&(a=b.$implicit,b=K(2),te("draggable",!b.isDisabled&&null==b.openRow),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),
B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_),B(1),D("ngIf",!a.isEditing_))},fRa=function(a){if(a&1){var b=y();F(0,"tbody",23);J("cdkDropListDropped",function(c){z(b);var d=K();
return A(d.onDrop(c))});O(1,eRa,17,18,"tr",24);G()}a&2&&(a=K(),D("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||null!=a.openRow),B(1),D("ngForOf",a.collection))},gRa=function(a){a&1&&(F(0,"div",89),P(1," There are currently no rules for this SLO "),G())},hRa=function(a,b){if(a&1){var c=y();F(0,"tr",7);J("click",function(){var e=z(c).$implicit,f=K();return A(f.editSlo(e))})("focus",function(){var e=z(c).index,f=K();return A(f.setFocusOnIndex(e))});H(1,"td",2);F(2,"td",8)(3,"a",
9);J("click",function(e){return e.stopPropagation()});P(4);G()();F(5,"td",10);P(6);G()()}if(a&2){a=b.$implicit;b=b.index;var d=K();te("grid-focus",d.isFocused(b));oe("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);D("href",d.paths.editSlo(a.getSloId()),Ud);B(1);Je(" ",a.getName()," ");B(2);Je(" ",a.getDescription()," ")}},iRa=function(a){if(a&1){var b=y();F(0,"div")(1,"div",1);J("clickOutside",function(){z(b);K().isPickerVisible=!1;return A()});F(2,"b-date-time-picker-content",
2);J("dateSelectionChange",function(c){z(b);var d=K();return A(d.setDate(c))})("saveClicked",function(){z(b);var c=K();c.isPickerVisible=!1;c.snoozeUntilCommit.emit();return A()})("cancelClicked",function(){z(b);K().isPickerVisible=!1;return A()});G()()()}a&2&&(a=K(),B(2),D("date",a.currentPickerDate))},jRa=function(a,b){"string"===typeof a&&(a=a.trim())&&b(Vl(a))},eq=function(a,b,c){b=[b,c].map(function(d){return null!=d?d:""}).join(";");a.setAttribute("pkd-ac-state",String(rh(b)))},kRa=function(a,
b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(rh(b)))},lRa=function(a,b){a.setAttribute("pkd-ps-state",String(rh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(rh("2")))},function(){a.setAttribute("pkd-ps-state",String(rh("3")))})},mRa=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},fq=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},nRa=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},
hq=function(a,b,c,d,e,f){e=void 0===e?new gq:e;f=void 0===f?"":f;b=Uo(oRa,{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:pRa()});e=new qRa(b,e);a.appendChild(b);return e},iq=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Be`"+a);}},jq=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";
case 2:return"workspaceMaterialCompactDensity";default:throw Error("Be`"+a);}},sRa=function(a,b){var c="",d=0;b=r(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 rRa(rRa(Kj(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3","</b>")},tRa=function(a){var b=a.getDisplayName();
return b?sRa(b,a.getMatchInfo().getDisplayNameMatches()):""},uRa=function(a){var b=a.getDisplayValue();return b?sRa(b,a.getMatchInfo().getDisplayValueMatches()):""},vRa=function(a){var b=tRa(a),c=uRa(a);b=b||c;c=c||Kj(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()]}},kq=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},wRa=function(a){var b=a.getCaller(),c=a.getClient();a=a.getRequestType();return b&&c&&a?JSON.stringify([b.serialize(),c.serialize(),a]):null},xRa=function(a){var b=new lq;if(a instanceof mq)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},pq=function(a){a=void 0===a?null:a;var b=(new nq).setExperimentFlags(new oq).setSource(3);a&&b.setError(xRa(a));return b},FRa=function(a){var b=void 0===b?new yRa:b;if(zRa)return zRa;var c=new ARa(a),d=new BRa(a);b=b.isAvailable()?new qq(a,b):new rq(a);b.clean();c=new CRa(new DRa(b,c),d);return zRa=new ERa(a,c)},HRa=function(a,b,c){var d=vRa(a);return GRa(a,d,b,c)},GRa=function(a,b,c,d){var e=[];bj(sq.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});var f=!1;c.getShouldHideSuggestionSublabels()&&(f=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return{id:tq(IRa),hovercardId:b.hovercardId,label:b.label,sublabel:f?"":b.sublabel,photos:b.photos,densityClass:d,tags:e}},LRa=function(a,b,c){var d="",e=Kj(a.getDescription()),f=!1,h=a.getMemberList().length;
if(1<h||a.getDisplayName())d=a.getMemberList().map(function(k){var q="";if(k.getPrimaryTarget().getName()){var u,x;(q=(q=null==(u=k.getPrimaryTarget())?void 0:null==(x=u.getName())?void 0:x.getGivenName())?sRa(q,k.getMatchInfo().getGivenNameMatches()):"")||(q=tRa(k))}q||(q=uRa(k));return q}),b&&(d=d.reverse()),d=tRa(a)||JRa({memberNames:d}),e||c||null===a.getTotalMemberCount()||(e=KRa({memberCount:Number(a.getTotalMemberCount())}),f=!0);else if(1===h)return e=a.getMemberList()[0],f=vRa(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}},NRa=function(a,b,c,d,e){c=LRa(a,c,d);d=!1;b.getShouldHideSuggestionSublabels()&&(d=(a=a.getPrimaryTarget().getLoggingToken().getSessionState())?!a.getQuery().length:!1);return c.flatResult?
(b=GRa(c.flatResult,c,b,e),{id:b.id,hovercardId:b.hovercardId,label:b.label,sublabel:d?"":b.sublabel,photos:b.photos,densityClass:b.densityClass,tags:b.tags,type:c.type,allowSublabelTranslation:!1}):{id:tq(MRa),hovercardId:c.hovercardId,label:c.label,sublabel:d?"":c.sublabel,type:c.type,photos:c.photos,densityClass:e,tags:[],allowSublabelTranslation:c.allowSublabelTranslation}},uq=function(a,b,c,d,e,f){return new ORa(a,b,c,d,e,f)},wq=function(a,b,c){return new vq(new PRa(void 0===a?0:a,null!=b?b:
[],null!=c?c:null))},RRa=function(a,b,c,d,e,f){var h=a.getPrimaryTarget().getId();e=xq(h)||yq(h)?NRa(a,c,f,bj(e.internal,6,!1),jq(d.getDensity())):HRa(a,c,jq(d.getDensity()));f=Object;h=f.assign;a:switch(b){case 1:b=zq('<div class="'+Aq("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="'+Aq(". Already selected")+'">'+zq('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Aq("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:b=zq("");break a;default:b='<div class="'+Aq("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=zq(b+"DISABLED</div>")}b=Uo(QRa,h.call(f,{},e,{disableReason:b}));f=fq(b,"d6MZcd");h=iq(d.getDensity());var k=c.getBackupAvatarUrlResultCallback()(a);d=hq(f,e.photos,h,h,d,k);return new Bq(b,a,c,e.tags,d)},SRa=function(a,b){b=b.ownerDocument.createEvent("CustomEvent");
b.initEvent(a,!0,!0);return b},URa=function(a,b){return new TRa(a,void 0===b?"":b)},Cq=function(a){if(a=a.getAttribute("pk-log")){var b=r(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},Dq=function(a,b,c,d){d=void 0===d?[]:d;d=void 0===d?[]:d;b=[tq(VRa),b,c.join(","),d.join(",")].join(";");b=rh(b);a.setAttribute("pk-log",String(b))},WRa=function(a){var b=-1;(a=Eq(a))&&ej(a,2)&&(b=
fj(a,2,0));return"index:"+b},bSa=function(a,b,c,d,e,f,h){h=Uo(XRa,{header:h||""});a.appendChild(h);a=fq(h,"tjneg");h=Uo(YRa,{id:tq(ZRa)});a.appendChild(h);a=new $Ra(h);return{resultList:new aSa(a,b,c,d,e,f),list:a}},cSa=function(a,b,c,d,e,f,h,k,q){a=bSa(a,b,c,d,e,k,q);b=a.resultList;b=new Fq(b,a.list,h);return new Gq(b,f)},hSa=function(a,b,c,d,e){var f=dSa(c),h=Hq(a),k=Iq(a);k&&h.intersection(eSa(k));fSa(h,So(a),So(c));a=Jq(a,b);b=h.left;a&4&&(b+=h.width);h=new Kq(b,h.top+(a&1?h.height:0));h=Lq(h,
f);a=Jq(c,d);h=gSa(h,Mq(c),a).rect;c=Iq(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},kSa=function(a,b){Nq(a,new Kq(b.left,b.top));b=b.getSize();iSa(Mq(a),b)||jSa(a,b)},lSa=function(a,b,c){return new Oq(a,b,c)},nSa=function(a,b){return new mSa(a,b)},oSa=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},
Pq=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},Qq=function(a,b,c,d){var e;d=r(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;},pSa=function(a,b,c,d,e){e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f(a,b,c,d)},qSa=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},rSa=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})},tSa=function(a){if(sSa.has(a))return sSa.get(a);throw Error("Ke`"+a);},vSa=function(a){if(uSa.has(a))return uSa.get(a);throw Error("Le`"+a);},wSa=function(a){var b=new Map,c;for(c in a)b.set(a[c].string,
a[c].googRequiredXid);return b},ySa=function(a){return a?a.__owner?a.__owner:a.parentNode&&11===a.parentNode.nodeType?a.parentNode.host:xSa(a):null},zSa=function(a,b){for(a=ySa(a);a&&!b(a);)a=ySa(a)},BSa=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new Rq);return ASa(a,b,c,h,d,e,f)},ASa=function(a,b,c,d,e,f,h){f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=f.internal,q=e.getEnvironmentConfig(),u=q.experimentsConfig_.getProfileId();
if(u)if(k.getExperiments().getIsEnabled()){var x=bo(Sq,'[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]');x=new Tq(x,7)}else x=new Uq;else x=new Uq;k=k.getExperiments();q=x.loadExperiments(k.getApplication(),(new Vq).setPeopleApiEnv(q.apiEnv_),u);sq=new Wq(k,q);q=Uo(CSa);a.appendChild(q);a=e.getTheme();u=r(["peoplekitThemeLight","peoplekitThemeDark"]);for(k=u.next();!k.done;k=u.next())q.classList.remove(k.value);(a=DSa.get(a))&&q.classList.add(a);Dq(q,64611,["impression"]);
a=new Xq;u=e.getEntryPoint();u=new ESa(d,a,u);k=f.internal.getClearcut();x=new FSa(k);x=Po(x);k=k.getInterfaceType();k=new GSa(new HSa(x,k));var E=new ISa(h.intelligence);h=Uo(JSa);q.appendChild(h);x=Uo(KSa);Dq(x,85843,["impression"]);h.appendChild(x);var I=fq(x,"tjneg");a:{var N=e.getAutocompleteHeader();switch(e.getAutocompleteGroupingType()){case 1:E=cSa(I,e,e,f,a,u,new Yq(e.getAutocompleteGroupingLabel()),E,N);break a;case 2:E=cSa(I,e,e,f,a,u,new Zq(e.getAutocompleteGroupingLabel()),E,N);break a;
case 3:var L=e.getAutocompleteCustomGrouping();L?E=cSa(I,e,e,f,a,u,L,E,N):(E=bSa(I,e,e,f,a,E,N),E=new Gq(E.resultList,u));break a;default:E=bSa(I,e,e,f,a,E,N),E=new Gq(E.resultList,u)}}I=fq(I,"rymPhb");b.setAttribute("aria-owns",I.id);b.setAttribute("aria-controls",I.id);I.setAttribute("aria-labelledby",b.id);if(N=e.getNoResultsMessage())I=Uo(LSa),N=Uo(MSa,N),I.append(N),x.append(I);d=new NSa(x,b,E,d,k,e);b=new OSa(h,b,d,a,e);lRa(b.getRoot(),c);c=f.internal.getClearcut();f=e.getEntryPoint();d=sq.getExperiments();
bj(d,2,!1)||bj(c,6,!0)?(d=new $q,h=Go(),f=(new PSa).setClientId(c.getClientId()).setApplication(c.getSocialApplication()).setEntryPoint(f).setVersionName("1.0").setBaselineCl(454985249),f=new QSa(d,1394,h,void 0,void 0,void 0,new RSa(f)),f.setClientSideLogOnlyForDevelopment(!c.getEnableClearcut()||!1),c=new ar,d=sq.getExperimentIds(),c=ll(c,3,d),f.clearcut_&&f.clearcut_.setClearExperimentIds(c),q.hasAttribute("pk-log")?(c=new SSa(new br(q),f),c=new TSa(q,c),c=new USa(c)):c=new cr):c=new cr;c.start();
return new VSa(q,b,a,u,c,e)},WSa=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);dr.lastIndex=0;for(var d=dr.exec(a);d&&d.index<c;d=dr.exec(a))b.push(a.substring(Number(dr.lastIndex)));return b},$Sa=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(XSa)}).filter(Boolean);if(!a.length)return a;var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=er(YSa(c.value)).replace(ZSa,"").toUpperCase().toLowerCase();
c=r(WSa(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})},bTa=function(a){var b;return aTa(function(c){1==c.nextAddress&&(b=0);if(3!=c.nextAddress)return b<a?jf(c,b,3):c.jumpTo(0);b++;return c.jumpTo(2)})},cTa=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&xq(a.id)&&9!==a.id.getType()?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},fTa=
function(a,b,c){if(xq(a.id)||xq(b.id)){var d=dTa.has(a.id.getType()),e=dTa.has(b.id.getType());if(d!==e)return d?-1:1;if(xq(a.id)&&xq(b.id))return eTa(a,b,c,!1)}d=cTa(a,c);c=cTa(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},eTa=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?fTa(a,b,c):0},hTa=function(a){return a?
gTa.get(a)||0:0},iTa=function(a){switch(a.getValueCase()){case 2:return new fr(1,a.getEmail().getValue()||"");case 3:return a=a.getPhone(),new fr(2,p(a,2)||a.getDisplayValue()||"");case 4:a=Al(a,gr,4,hr);if(a.hasProfileId())return new fr(8,a.getProfileId()||"");switch(ub(a,ir)){case 2:return new fr(6,a.getEmail()||"");case 3:return new fr(7,a.getPhone()||"")}}return jr},jTa=function(a){return xb(a,kr,5).map(function(b){switch(b.getIdCase()){case 1:return new fr(3,b.getProfileId()||"");default:return null}}).filter(Boolean)},
kTa=function(a,b){return mj(a,3)&&m(a,lr,3).getIsPlaceholder()?3:Mo(b,8)?1:0},mr=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},lTa=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue()):-Infinity},mTa=function(a){return!!a&&!!a.getPrimary()},oTa=function(a){if(!a.hasEmail()||!a.getEmail().getValue())return null;var b=void 0;m(a,nr,9)&&(b=or(new pr,nTa,m(a,nr,9)));a={id:new fr(1,a.getEmail().getValue()),containerIds:jTa(a),contactMethod:a,provenance:8,
isMe:!1,dataSource:1,isPrimary:mTa(a.getDisplayInfo()),itemAffinity:-Infinity,fieldAffinity:mr(a.getDisplayInfo())};b&&(a.targetExtendedData=b);return a},qTa=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"+pTa(a):""},tTa=function(a,b,c){c=void 0===c?!1:c;var d=
[],e=void 0,f=void 0;m(a,lr,3)&&(e=e?e:new pr,or(e,rTa,m(a,lr,3)));m(a,qr,5)&&(e=e?e:new pr,or(e,sTa,m(a,qr,5)));for(var h=[],k=r(xb(a,rr,1)),q=k.next();!q.done;q=k.next()){q=q.value;var u=iTa(q);if(u.equals(jr)){if(!c)continue;u=qTa(q);if(!u)continue;u=new fr(18,u)}h.push(String(u));m(q,nr,9)&&(f=f?f:new pr,or(f,nTa,m(q,nr,9)));q={id:u,containerIds:jTa(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:kTa(a,q),provenance:b,isPrimary:mTa(q.getDisplayInfo()),itemAffinity:lTa(a),fieldAffinity:mr(q.getDisplayInfo()),
contactMethod:q,person:a};mj(a,3)&&m(a,lr,3).hasContactId()&&q.containerIds.push(new fr(4,String(m(a,lr,3).getContactId())));e&&(q.resultExtendedData=e);f&&(q.targetExtendedData=f);d.push(q)}d.length&&d.every(function(x){return!x.isPrimary})&&(d[0].isPrimary=!0);return d},vTa=function(a,b){var c=uTa(hTa(p(a,5)),a.getGroupId()||""),d=a.getMembersList().map(function(h){return tTa(h,8,!0)}),e=d.filter(function(h){return h&&h.length}).map(function(h){return String(h[0].id)}),f;c=[{id:c,containerIds:[c],
memberKeys:e,totalMemberCount:null!=(f=p(a,3))?f:void 0,provenance:b,isPrimary:!0,itemAffinity:mr(a.getDisplayInfo()),fieldAffinity:-Infinity,group:a}];a=r(d);for(b=a.next();!b.done;b=a.next())c.push.apply(c,v(b.value));return c},wTa=function(a,b){var c=new fr(9,a.getLabelId()||""),d=a.getMembersList().map(oTa).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:mr(a.getDisplayInfo()),
fieldAffinity:-Infinity,isMe:!1,contactLabel:a}].concat(v(d))},xTa=function(a,b){switch(ub(a,sr)){case 1:return tTa(Al(a,tr,1,sr),b);case 2:return vTa(a.getGroup(),b);case 3:return wTa(Al(a,ur,3,sr),b);default:return[]}},yTa=function(a,b){return xb(a,vr,1).flatMap(function(c){return xTa(c,b)})},ATa=function(a){var b=new wr,c=a?2:1;zTa(b.setEventType(4),c).setToken(a);return b},CTa=function(a,b){var c=new xr;c=(new wr).setLookupInfo(c);yr(c.setEventType(6),9).setItemCount(a.length).setQueryScope(BTa.get(b)||
0);return c},DTa=function(){var a=new wr;yr(a.setEventType(6),11);return a},ETa=function(){var a=new wr;yr(a.setEventType(6),10);return a},FTa=function(a,b){var c=new wr;yr(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(BTa.get(b)||0);return c},GTa=function(a){var b=new wr;yr(b.setEventType(6),5).setQueryScope(BTa.get(a)||0);return b},HTa=function(a,b){switch(a){case 8:case 3:case 17:return(new zr).setProfileId(b);case 1:case 6:return(new zr).setEmail(b);case 7:case 2:return(new zr).setPhone(b);
default:return null}},JTa=function(a){return((a=xb(a,Ar,2).find(function(b){return 1===p(b,1)}))?ITa.get(a.getState()):0)||0},NTa=function(a,b){b.hasAffinity()&&a.setFieldLoggingId(KTa(kba(p(b.getAffinity(),1))||""));if(b.hasName()){var c=b.getName(),d=a.setName,e=(new LTa).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 Br).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(MTa.get(b.getType())||0)))},OTa=function(a,b){if(b.hasProfileId())switch(ub(b,ir)){case 2:var c=b.getEmail()||"";return Cr(Dr(a.id).setValue(b.getProfileId()||""),(new Er).setType(1).setValue(c));case 3:return c=b.getPhone()||"",Cr(Dr(a.id).setValue(b.getProfileId()||""),(new Er).setType(2).setValue(c));default:return b=b.getProfileId()||"",Dr(a.id).setValue(b)}switch(ub(b,ir)){case 2:return b=b.getEmail()||"",Cr(Dr(a.id).setValue(b),
(new Er).setType(1).setValue(b));case 3:return b=b.getPhone()||"",Cr(Dr(a.id).setValue(b),(new Er).setType(2).setValue(b));default:return b=b.getProfileId()||"",Dr(a.id).setValue(b)}},QTa=function(a,b){var c=PTa(Dr(a.id),!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&NTa(c,b);a.group&&((b=xb(a.group,Fr,6).find(function(d){return 1===ub(d,Gr)}))?c.setValue(Hr(b,1,Gr)||""):a.group.hasGroupId()&&c.setValue(a.group.getGroupId()||""));a.targetExtendedData&&(c.extendedData_=a.targetExtendedData);
a.target=c},STa=function(){return RTa},UTa=function(a){return new TTa(a)},XTa=function(a){if(8===a.getTargetType()){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=VTa.get(b)))return b}return(b=WTa.get(a.getTargetType()))?b:xq(a.getId())?8:0},ZTa=function(a,b,c){var d=new Ir,e=new Jr;Gb(d,2,e);e.setProvenance(b);b=new Kr;Gb(d,1,b);l(b,9,1===c);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=8===XTa(a)?8:a.getIsPersonalResult()?4:3;l(b,8,c);c=null;8===a.getTargetType()&&
(e=a.getOriginatingField())&&VTa.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);xq(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=XTa(a);l(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(3===a.getDataSource());8===b.getFieldType()&&b.setGroupId(a.getId().getValue());return new YTa(a,d)},aUa=function(a){a=$Ta.indexOf(a.provenance);return 0>a?$Ta.length:a},bUa=function(a){return a.containerIds&&
a.containerIds.some(function(b){return 3===b.getType()})},cUa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return new vq(new Lr(a,d))},eUa=function(a,b){b.useOriginalDisplayValue_&&(a=new Map(Array.from(a,function(c){var d=r(c);c=d.next().value;d=d.next().value;if(c.equals(d.getPrimaryTarget().getId())&&c.originalValue_!==d.getDisplayValue()&&d.getPrimaryTarget().getValue()===d.getDisplayValue()){var e=c.originalValue_,f=d.getPrimaryTarget();d=cUa(d,
new dUa(f,e))}return[c,d]})));return a},fUa=function(){return new Mr(xc.apply(0,arguments))},Nr=function(){var a=xc.apply(0,arguments);return 1===a.length?a[0]:new gUa(a)},hUa=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)}}},jUa=function(a,b,c,d){b=iUa(a,b).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;
return new Or(e,f)});c=iUa(a,c).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Or(e,f)});a=iUa(a,d).map(function(e){var f=r(e);e=f.next().value;f=f.next().value;return new Or(e,f)});return new Pr(b,c,a)},kUa=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}},lUa=function(a){return a.reduce(function(b,c){var d=kUa(c);if(b.has(d)){var e;null==(e=b.get(d))||e.push(c)}else b.set(d,[c]);return b},new Map)},
mUa=function(a,b){b=void 0===b?new Qr:b;var c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=r(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}},nUa=function(a){return!a||a instanceof Rr?a:new Rr(a)},pUa=function(a){return oUa.get(a)||0},qUa=function(a,b){var c=Sr(Tr(new Ur,"PeopleStore").setLogSource(X(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1002").setBaselineCl(454985249).setEnableClearcut(a.getEnableClearcut()),
[].concat(v(b.getExperiments().getExperimentIdsList()),v(Vr?Vr.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());(a=xb(a,Wr,5).find(function(d){return 0===d.getEntryPoint()}))&&c.setEventSource(p(a,4));return c},rUa=function(a){return(mj(a,12)?m(m(a,Xr,12),Wr,2):a.getSources())||new Wr},sUa=function(a){return(mj(a,12)?m(m(a,Xr,12),Wr,3):a.getSources())||new Wr},Yr=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)},tUa=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return fj(a,3,0)+":"+fj(a,4,0)+":"+fj(a,5,0)+":"+a.getInstanceId()},uUa=function(a){return mj(a,2)?Eq(a).getContext()||0:0},vUa=function(a){var b=new Map;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.getSessionState();d=d?fj(d,3,0)+"-"+fj(d,4,0)+"-"+fj(d,5,0)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},$r=function(a,b,c,d){d=void 0===d?!1:
d;a=a.filter(function(h){return!bj(h,4,!1)});if(d){d=r(a);for(var e=d.next();!e.done;e=d.next())l(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&!h.hasSessionState()}),d=r(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=vUa(a);c=[];a=r(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new Zr;f.setSessionState(e);f.setEventType(b);Fb(f,3,d);wUa(f,e.getSources());c.push(f)}return c},xUa=
function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new as},yUa=function(a){a&1&&H(0,"div",2)},zUa=function(a){a&1&&(ze(0),Fe(1),Ae())},AUa=function(a){a&1&&(F(0,"a",3),P(1),Q(2,"async"),G());if(a&2){a=K();var b;D("href",a.manageComponentLink,Ud);B(1);Ke(null==(b=R(2,2,a.component$))?null:b.name)}},BUa=function(a){a&1&&(F(0,"output"),P(1),G());a&2&&(a=K(),B(1),Ke(a.componentId))},CUa=function(a){a&1&&(F(0,"li")(1,"label"),P(2,"Component"),
G(),H(3,"b-async-component",6),G());a&2&&(a=K(2),B(3),D("componentId",a.issueComponentId))},DUa=function(a){a&1&&(F(0,"li")(1,"label"),P(2,"Team"),G(),H(3,"b-team-display",7),G());a&2&&(a=K(2),B(3),D("teamId",a.issueTeamId))},EUa=function(a){a&1&&(F(0,"ol",3)(1,"li")(2,"label"),P(3,"ID"),G(),F(4,"output"),P(5),G()(),F(6,"li")(7,"label"),P(8,"Type"),G(),F(9,"output"),P(10),G()(),F(11,"li")(12,"label"),P(13,"Priority"),G(),H(14,"b-issue-priority-display",4),G(),F(15,"li")(16,"label"),P(17,"Severity"),
G(),F(18,"output"),P(19),G()(),F(20,"li")(21,"label"),P(22,"Status"),G(),F(23,"output"),P(24),G()(),F(25,"li")(26,"label"),P(27,"Last modified"),G(),F(28,"output"),P(29),Q(30,"date"),G()(),O(31,CUa,4,1,"li",5),O(32,DUa,4,1,"li",5),G());a&2&&(a=K(),B(5),Ke(a.issueId),B(5),Ke(a.issueType),B(4),D("issuePriority",a.issuePriority),B(5),Ke(a.issueSeverity),B(5),Ke(a.issueStatus),B(5),Ke(Se(30,8,a.issueLastModified,"medium")),B(2),D("ngIf",a.issueComponentId),B(1),D("ngIf",a.issueTeamId))},GUa=function(a){if(a.customField)var b=
"DATE"===a.customField.type?new bs(a):"ENUM"===a.customField.type?new cs(a):"NUMERIC"===a.customField.type?new ds(a):new es(a);else b=a.label.field,b=FUa()[b],b=new (b&&b.ruleCtor||fs)(a);b[gs](a);return b},HUa=function(a,b){return GUa({label:{field:a,customFieldId:b&&b.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:b})},IUa=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},FUa=function(){if(!aj())return JUa;
JUa.MENTION={ruleCtor:hs};return JUa},KUa=function(a){a.label||(a=Fi(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},MUa=function(a){return{type:LUa[a.getType()],value:a.getValue()}},OUa=function(a){var b,c;return{type:NUa[a.getType()],values:(null!=(b=a.getValuesList())?b:[]).map(OUa),simpleValues:(null!=(c=xb(a,is,3))?c:[]).map(MUa)}},SUa=function(a){var b,c=PUa[a.getType()],d=(null!=(b=a.getValuesList())?b:[]).map(OUa);b=bj(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:QUa[e.getField()],
customFieldId:Number(e.getCustomFieldId())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:RUa[X(a,5,0)]}},UUa=function(a){switch(a.getKindCase()){case 2:return{syntaxErrorResponse:{syntaxError:W(Al(a,js,2,ks),1)},queryBuilderResponse:void 0};case 1:a=Al(a,ls,1,ks);var b;return{syntaxErrorResponse:void 0,queryBuilderResponse:{type:TUa[a.getType()],expressions:(null!=(b=xb(a,ms,2))?b:[]).map(SUa)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},VUa=function(a){a&
1&&(F(0,"span",11),P(1," > "),G())},WUa=function(a,b){if(a&1){var c=y();F(0,"span")(1,"a",9);J("click",function(d){var e=z(c).$implicit,f=K(2);e=new ns(e.pathIds,e.pathNames);f.onTeamSelect.emit(e);d.stopPropagation();d.preventDefault();os(f.autocompleteTrigger);return A()});P(2);G();O(3,VUa,2,0,"span",10);G()}a&2&&(a=b.$implicit,b=b.last,B(1),D("matTooltip",a.pathNameText),B(1),Ke(a.name),B(1),D("ngIf",!b))},XUa=function(a,b){a&1&&(F(0,"mat-option",6)(1,"div"),O(2,WUa,4,3,"span",7),G(),F(3,"span",
8),P(4),Q(5,"slice"),G()());if(a&2){a=b.$implicit;D("value",a);B(2);D("ngForOf",a.teamPath);B(1);D("matTooltip",a.description);B(1);a=a.description;b=y();var c=b[27];a=b[1].data[27].pure?rfa(b,Rc(),4,c.transform,a,0,100,c):c.transform(a,0,100);Je("",a," ")}},YUa=function(a){return a.getTeamSuggestionsList().map(function(b){return new ns(b.getPathIdsList(),b.getPathNamesList(),b.getDescription())})},ZUa=function(a,b){a&1&&(F(0,"mat-option",12),P(1),G());a&2&&(a=b.$implicit,D("value",a.key),B(1),Je(" ",
a.value," "))},$Ua=function(a){if(a&1){var b=y();F(0,"mat-form-field",9)(1,"mat-select",10);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.expressionType=c)});O(2,ZUa,2,2,"mat-option",11);Q(3,"keyvalue");G()()}a&2&&(a=K(2),B(1),D("ngModel",a.expressionType),B(1),D("ngForOf",R(3,2,a.globalTypeLabels)))},aVa=function(a,b){a&1&&(F(0,"mat-option",12),P(1),G());a&2&&(a=b.$implicit,D("value",a[0]),B(1),Je(" ",a[1]," "))},bVa=function(a,b){a&1&&(F(0,"mat-option",12),P(1),G());if(a&2){a=b.$implicit;
b=K(2).$implicit;var c=K(2);D("value",a);B(1);Je(" ",c.getTypeLabel(b,a)," ")}},cVa=function(a){if(a&1){var b=y();F(0,"mat-form-field",9)(1,"mat-select",20);J("ngModelChange",function(c){z(b);var d=K().$implicit;return A(d.type=c)});O(2,bVa,2,2,"mat-option",11);G()()}a&2&&(a=K().$implicit,B(1),D("ngModel",a.type),B(1),D("ngForOf",a.getLegalTypes()))},dVa=function(a,b){if(a&1){var c=y();F(0,"div",27)(1,"b-checkbox",28);J("change",function(d){var e=z(c).$implicit,f=K(3).$implicit;return A(f.enumValues[e.id]=
d)});G()()}a&2&&(a=b.$implicit,b=K(3).$implicit,B(1),D("checked",b.enumValues[a.id])("label",a.label||a.id))},eVa=function(a){a&1&&(F(0,"div",25),O(1,dVa,2,2,"div",26),G());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.getOptions()))},fVa=function(a){if(a&1){var b=y();F(0,"div")(1,"input",29);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),D("ngModel",a.csv)("bContactAutocomplete","MULTI"))},gVa=function(a){if(a&1){var b=y();F(0,"div",21)(1,
"input",30);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),D("ngModel",a.csv))},hVa=function(a){if(a&1){var b=y();F(0,"div",21)(1,"input",31);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,B(1),D("ngModel",a.csv))},iVa=function(a){if(a&1){var b=y();F(0,"div",21)(1,"input",32);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.csv=c)});G()()}a&2&&(a=K(3).$implicit,
B(1),D("ngModel",a.csv))},jVa=function(a){a&1&&(F(0,"div"),O(1,fVa,2,2,"div",23),O(2,gVa,2,1,"div",17),O(3,hVa,2,1,"div",17),O(4,iVa,2,1,"div",17),G());a&2&&(a=K(2).$implicit,B(1),D("ngIf","user"==a.getWidgetType()),B(1),D("ngIf","csv"==a.getWidgetType()),B(1),D("ngIf","id"==a.getWidgetType()),B(1),D("ngIf","number"==a.getWidgetType()))},kVa=function(a,b){if(a&1){var c=y();F(0,"div",36)(1,"div",37)(2,"input",32);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.value=d)});G()();F(3,"button",
38);J("click",function(){var d=z(c).$implicit,e=K(3).$implicit,f=K(2);return A(ps(f,e,d))});G()()}a&2&&(a=b.$implicit,B(2),D("ngModel",a.value))},lVa=function(a){if(a&1){var b=y();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(qs(d,c))});P(1);G()}a&2&&(a=K(3).$implicit,B(1),Je(" + ","OR"==a.type||"NOR"==a.type?"OR":"AND",""))},mVa=function(a){a&1&&(F(0,"div",33),O(1,kVa,4,1,"div",34),O(2,lVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.values),B(1),
D("ngIf",a.type))},oVa=function(a){if(a&1){var b=y();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(nVa(e,d))});Q(1,"componentPath");F(2,"span",49);P(3);Q(4,"componentPath");G()()}if(a&2){a=K(2).$implicit;var c=K(5);D("title",R(1,2,c.components[a.value]));B(3);Je(" ",R(4,4,c.components[a.value])," ")}},pVa=function(a){if(a&1){var b=y();F(0,"div",37)(1,"b-team-component-picker",50);J("selectedComponentChange",function(c){z(b);var d=K(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;rs(d);return A()});G()()}a&2&&(a=K(7),B(1),D("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},qVa=function(a){if(a&1){var b=y();F(0,"div",42);O(1,oVa,5,6,"div",43);O(2,pVa,2,3,"div",44);F(3,"button",45);J("click",function(){z(b);var d=K().$implicit;K(5);d.includeSubs=
!d.includeSubs;return A()});H(4,"mat-icon",46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(ps(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a);B(1);D("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");oe("aria-checked",a.includeSubs);B(1);D("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},rVa=function(a,b){a&
1&&(ze(0),O(1,qVa,6,5,"div",41),Ae());a&2&&(a=b.$implicit,b=K(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},sVa=function(a){if(a&1){var b=y();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(qs(d,c))});P(1);G()}a&2&&(a=K(3).$implicit,B(1),Je(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},tVa=function(a){a&1&&(F(0,"div",33),O(1,rVa,2,1,"ng-container",40),O(2,sVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},vVa=
function(a){if(a&1){var b=y();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(6);return A(uVa(e,d))});Q(1,"teamPath");F(2,"span",49);P(3);Q(4,"teamPath");G()()}if(a&2){a=K(2).$implicit;var c=K(6);D("title",R(1,2,c.teams[a.value]));B(3);Je(" ",R(4,4,c.teams[a.value])," ")}},xVa=function(a){if(a&1){var b=y();F(0,"div",37)(1,"b-team-picker",54);J("onTeamSelect",function(c){z(b);var d=K(8);return A(wVa(d,c))});G()()}a&2&&(a=K(8),B(1),D("teamSelected",a.teamUnderEdit))},yVa=function(a){if(a&
1){var b=y();F(0,"div",52);O(1,vVa,5,6,"div",43);O(2,xVa,2,1,"div",44);F(3,"button",53);J("click",function(){z(b);var d=K().$implicit;K(6);d.includeSubs=!d.includeSubs;return A()});H(4,"mat-icon",46);G();F(5,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(4).$implicit,f=K(2);return A(ps(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(6);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a);B(1);D("title",a.includeSubs?"Subteams are included":"Subteams are not included");
oe("aria-checked",a.includeSubs);B(1);D("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},zVa=function(a,b){a&1&&(ze(0),O(1,yVa,6,5,"div",51),Ae());a&2&&(a=b.$implicit,b=K(6),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},AVa=function(a){if(a&1){var b=y();F(0,"button",39);J("click",function(){z(b);var c=K(4).$implicit,d=K(2);return A(qs(d,c))});P(1);G()}a&2&&(a=K(4).$implicit,B(1),Je(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},BVa=function(a){a&1&&(ze(0),O(1,zVa,2,1,"ng-container",
40),O(2,AVa,2,1,"button",35),Ae());a&2&&(a=K(3).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},CVa=function(a){a&1&&(F(0,"div",33),O(1,BVa,3,2,"ng-container",23),G());a&2&&(a=K(4),B(1),D("ngIf",a.sessionIsInternal))},EVa=function(a){if(a&1){var b=y();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=DVa(c);return A()});G();P(2," and ");F(3,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateTo=DVa(c);
return A()});G()()}a&2&&(a=K(3).$implicit,B(1),D("boundValue",a.dateFrom)("isRequired",!0),B(2),D("boundValue",a.dateTo)("isRequired",!0))},FVa=function(a){if(a&1){var b=y();F(0,"div");P(1," the last ");F(2,"input",56);J("ngModelChange",function(c){z(b);var d=K(3).$implicit;return A(d.duration=c)});G();P(3," days. ");G()}a&2&&(a=K(3).$implicit,B(2),D("ngModel",a.duration))},GVa=function(a){if(a&1){var b=y();F(0,"div")(1,"bv2-input-date-picker",55);J("boundValueChange",function(c){z(b);K(3).$implicit.dateFrom=
DVa(c);return A()});G()()}a&2&&(a=K(3).$implicit,B(1),D("boundValue",a.dateFrom)("isRequired",!0))},HVa=function(a){a&1&&(F(0,"div"),O(1,EVa,4,4,"div",23),O(2,FVa,4,1,"div",23),O(3,GVa,2,2,"div",23),G());a&2&&(a=K(2).$implicit,B(1),D("ngIf","RANGE"==a.type||"NRANGE"==a.type),B(1),D("ngIf","DURATION"==a.type||"NDURATION"==a.type),B(1),D("ngIf","LE"==a.type||"LT"==a.type||"GE"==a.type||"GT"==a.type||"OR"==a.type))},IVa=function(a){if(a&1){var b=y();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,
e=K(5);return A(ss(e,d))});F(1,"span",49);P(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);D("title",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value);B(2);Je(" ",(null==c.hotlists[a.value]?null:c.hotlists[a.value].name)||a.value," ")}},JVa=function(a,b){a&1&&(F(0,"mat-option",12),P(1),G());a&2&&(a=b.$implicit,D("value",a.hotlistId),B(1),Je(" ",a.name," "))},KVa=function(a){if(a&1){var b=y();F(0,"mat-form-field",60)(1,"mat-select",61);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;
return A(e.value=d)})("selectionChange",function(){z(b);var d=K(7);return A(rs(d))});O(2,JVa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);D("ngModel",a.value);B(1);D("ngForOf",c.userHotlists)}},LVa=function(a){if(a&1){var b=y();F(0,"div",58);O(1,IVa,3,2,"div",43);O(2,KVa,3,2,"mat-form-field",59);F(3,"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(ps(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);D("ngIf",c.chipUnderEdit!==
a);B(1);D("ngIf",c.chipUnderEdit===a)}},MVa=function(a,b){a&1&&(ze(0),O(1,LVa,4,2,"div",57),Ae());a&2&&(a=b.$implicit,b=K(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},NVa=function(a){if(a&1){var b=y();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(qs(d,c))});P(1);G()}a&2&&(a=K(3).$implicit,B(1),Je(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},OVa=function(a){a&1&&(F(0,"div",33),O(1,MVa,2,1,"ng-container",40),O(2,NVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,
B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},PVa=function(a){if(a&1){var b=y();F(0,"div",48);J("click",function(){z(b);var d=K(2).$implicit,e=K(5);return A(ss(e,d))});F(1,"span",49);P(2);G()()}if(a&2){a=K(2).$implicit;var c=K(5);D("title",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value);B(2);Je(" ",(null==c.savedSearches[a.value]?null:c.savedSearches[a.value].name)||a.value," ")}},QVa=function(a,b){a&1&&(F(0,"mat-option",12),P(1),G());a&2&&(a=b.$implicit,D("value",
a.searchId),B(1),Je(" ",a.name," "))},RVa=function(a){if(a&1){var b=y();F(0,"mat-form-field",60)(1,"mat-select",63);J("ngModelChange",function(d){z(b);var e=K(2).$implicit;return A(e.value=d)})("selectionChange",function(){z(b);var d=K(7);return A(rs(d))});O(2,QVa,2,2,"mat-option",11);G()()}if(a&2){a=K(2).$implicit;var c=K(5);B(1);D("ngModel",a.value);B(1);D("ngForOf",c.userSavedSearches)}},SVa=function(a){if(a&1){var b=y();F(0,"div",58);O(1,PVa,3,2,"div",62);O(2,RVa,3,2,"mat-form-field",59);F(3,
"button",47);J("click",function(){z(b);var d=K().$implicit,e=K(3).$implicit,f=K(2);return A(ps(f,e,d))});G()()}if(a&2){a=K().$implicit;var c=K(5);B(1);D("ngIf",c.chipUnderEdit!==a);B(1);D("ngIf",c.chipUnderEdit===a)}},TVa=function(a,b){a&1&&(ze(0),O(1,SVa,4,2,"div",57),Ae());a&2&&(a=b.$implicit,b=K(5),B(1),D("ngIf",b.chipUnderEdit===a||a.value))},UVa=function(a){if(a&1){var b=y();F(0,"button",39);J("click",function(){z(b);var c=K(3).$implicit,d=K(2);return A(qs(d,c))});P(1);G()}a&2&&(a=K(3).$implicit,
B(1),Je(" + ","OR"==a.type||"NAND"==a.type?"OR":"AND",""))},VVa=function(a){a&1&&(F(0,"div",33),O(1,TVa,2,1,"ng-container",40),O(2,UVa,2,1,"button",35),G());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.values),B(1),D("ngIf",a.type))},WVa=function(a){a&1&&(F(0,"div",21),O(1,eVa,2,1,"div",22),O(2,jVa,5,4,"div",23),O(3,mVa,3,2,"div",24),O(4,tVa,3,2,"div",24),O(5,CVa,2,1,"div",24),O(6,HVa,4,3,"div",23),O(7,OVa,3,2,"div",24),O(8,VVa,3,2,"div",24),G());a&2&&(a=K().$implicit,K(2),B(1),D("ngIf","enum"===a.getWidgetType()),
B(1),D("ngIf",a instanceof ts),B(1),D("ngIf","text"==a.getWidgetType()),B(1),D("ngIf","component"==a.getWidgetType()),B(1),D("ngIf","team"==a.getWidgetType()),B(1),D("ngIf","date"===a.getWidgetType()),B(1),D("ngIf","hotlist"==a.getWidgetType()),B(1),D("ngIf","savedsearch"==a.getWidgetType()))},XVa=function(a){a&1&&(F(0,"div",64),P(1),G());if(a&2){a=K().$implicit;var b=K(2);B(1);Je(" ",b.getCustomFieldName(a)," ")}},ZVa=function(a){if(a&1){var b=y();F(0,"div",65)(1,"b-custom-field-picker",66);J("fieldSelected",
function(c){z(b);var d=K().index,e=K(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=HUa("CUSTOM_FIELD",e.customFields[f]);YVa(e,e.expressions[d]);return A()});G()()}},aWa=function(a,b){if(a&1){var c=y();F(0,"div",13)(1,"div",14)(2,"mat-form-field",9)(3,"mat-select",15);J("ngModelChange",function(d){var e=z(c).$implicit;return A(e.label.field=d)})("selectionChange",function(){var d=z(c).index,e=K(2);return A($Va(e,d))});O(4,aVa,2,2,"mat-option",11);G()();O(5,cVa,3,2,"mat-form-field",2);
G();F(6,"button",16);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.removeExpression(d))});G();O(7,WVa,9,8,"div",17);O(8,XVa,2,1,"div",18);O(9,ZVa,2,0,"div",19);G()}a&2&&(a=b.$implicit,b=K(2),B(3),D("ngModel",a.label.field),B(1),D("ngForOf",b.availableLabels),B(1),D("ngIf",!a.isPendingCustomField),B(2),D("ngIf",!a.isPendingCustomField),B(1),D("ngIf",a.label.customFieldId),B(1),D("ngIf",a.isPendingCustomField))},bWa=function(a,b){if(a&1){var c=y();F(0,"button",67);J("click",function(){var d=
z(c).$implicit,e=K(2);e.expressions.push({label:{field:d[0]}});$Va(e,e.expressions.length-1);return A()});P(1);G()}a&2&&(a=b.$implicit,B(1),Je(" ",a[1]," "))},cWa=function(a){a&1&&(F(0,"div",1),O(1,$Ua,4,4,"mat-form-field",2),O(2,aWa,10,6,"div",3),F(3,"div",4)(4,"button",5),P(5),G(),F(6,"mat-menu",6,7),O(8,bWa,2,1,"button",8),G()()());if(a&2){var b=M(7);a=K();B(1);D("ngIf",a.expressions.length);B(1);D("ngForOf",a.expressions)("ngForTrackBy",a.trackByIndex);B(2);D("matMenuTriggerFor",b);B(1);Je(" ",
a.expressionType," ... ");B(3);D("ngForOf",a.availableLabels)}},dWa=function(a){a&1&&H(0,"div",3)},eWa=function(a){a&1&&H(0,"div",4)},gWa=function(a){if(a&1){var b=y();F(0,"button",2);J("click",function(){z(b);var c=K();return A(fWa(c))});H(1,"mat-icon",3);P(2);G()}a&2&&(a=K(),D("matTooltip","Open release notes"),B(1),D("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(1),Je(" ",a.buttonLabel," "))},hWa=function(a){if(a&1){var b=y();F(0,"button",4);J("click",function(){z(b);var c=
K();return A(fWa(c))});P(1);G()}a&2&&(a=K(),B(1),Je(" ",a.buttonLabel," "))},iWa=function(a){if(a&1){var b=y();F(0,"button",9);J("click",function(c){z(b);var d=K();return A(d.manageSlos(c))});P(1,"Manage SLOs");G()}},jWa=function(a){a&1&&(F(0,"a",13),P(1,"Early Access "),H(2,"b-feature-stage-label",14),G())},kWa=function(a){a&1&&(ze(0),H(1,"mat-divider")(2,"b-whats-new-button",15),Ae());a&2&&(B(2),D("menuMode",!0))},lWa=function(a){if(a&1){var b=y();F(0,"a",6);J("click",function(){z(b);var c=K(2);
return A(c.toggleNewIssueDetailsPage(!0))});P(1,"Try new version");G()}},mWa=function(a){if(a&1){var b=y();F(0,"a",6);J("click",function(){z(b);var c=K(2);return A(c.toggleNewIssueDetailsPage(!1))});P(1,"Back to legacy version");G()}},nWa=function(a){a&1&&(ze(0),O(1,lWa,2,0,"a",5),O(2,mWa,2,0,"a",5),Ae());a&2&&(a=K(),B(1),D("ngIf",!a.isNewVersion),B(1),D("ngIf",a.isNewVersion))},oWa=function(a){a&1&&H(0,"b-whats-new-button",7);a&2&&(a=K(),D("alertMode",a.majorReleaseNotesUpdated))},pWa=function(a){if(a&
1){var b=y();F(0,"button",8);J("click",function(){z(b);K().userFeedback.startFeedback();return A()});H(1,"mat-icon",9);G()}},qWa=function(a,b){if(a&1){var c=y();F(0,"button",6);J("click",function(){var d=z(c).$implicit;K().currentTracker.setTrackerId(d.trackerId);return A()});H(1,"img",7);F(2,"span",8);P(3);G()()}a&2&&(a=b.$implicit,D("value",a.trackerId),oe("title",a.name),B(1),D("src",null==a.branding?null:a.branding.logoUrl,Ud),B(2),Ke(a.name))},rWa=function(a){if(a&1){var b=y();F(0,"button",5);
J("click",function(){z(b);var c=K();return A(c.clickMenu.emit())});H(1,"mat-icon",6);G()}},uWa=function(a,b){a&1&&(F(0,"output",7),P(1),G());a&2&&(a=b.$implicit,D("ngClass",a.color?Oe(2,sWa,a.color):Ne(4,tWa)),B(1),Ke(a.name))},vWa=function(a){a&1&&H(0,"tracker-switcher",2);a&2&&(a=K(),D("associatedTrackers",a.associatedTrackers))},wWa=function(a){a&1&&(F(0,"span"),P(1," Currently selected hotlist: "),F(2,"strong"),P(3),G()());a&2&&(a=K(3),B(3),Ke(a.header.hotlist.name))},xWa=function(a){a&1&&P(0,
" Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},yWa=function(a){a&1&&(ze(0),O(1,wWa,4,1,"span",5),O(2,xWa,1,0,"ng-template",null,6,Pf),Ae());if(a&2){var b=M(3);a=K(2);B(1);D("ngIf",a.header.hotlist)("ngIfElse",b)}},zWa=function(a){a&1&&(F(0,"span"),P(1,"Currently selected saved search: "),F(2,"strong"),P(3),G()());a&2&&(a=K(3),B(3),Ke(a.header.savedSearch.name))},AWa=function(a){a&1&&P(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},
BWa=function(a){a&1&&(ze(0),O(1,zWa,4,1,"span",5),O(2,AWa,1,0,"ng-template",null,7,Pf),Ae());if(a&2){var b=M(3);a=K(2);B(1);D("ngIf",a.header.savedSearch)("ngIfElse",b)}},CWa=function(a){a&1&&(F(0,"span"),P(1," and "),F(2,"strong"),P(3,"subcomponents"),G()())},DWa=function(a){a&1&&(F(0,"span"),P(1," Currently selected component: "),F(2,"strong"),P(3),G(),H(4,"b-access-level-indicator",9),O(5,CWa,4,0,"span",4),G());if(a&2){a=K(3);B(3);var b=a.header.component;Ke(b.componentPathInfo&&b.componentPathInfo.componentPathName?
b.componentPathInfo.componentPathName.join(" > "):b.name);B(1);D("accessLevel",null==a.header.component.accessLimit?null:a.header.component.accessLimit.accessLevel);B(1);D("ngIf",a.header.includeChildren)}},EWa=function(a){a&1&&P(0," Start typing a component name or ID to see auto-complete suggestions. ")},FWa=function(a){a&1&&(ze(0),O(1,DWa,6,3,"span",5),O(2,EWa,1,0,"ng-template",null,8,Pf),Ae());if(a&2){var b=M(3);a=K(2);B(1);D("ngIf",a.header.component)("ngIfElse",b)}},GWa=function(a){a&1&&(F(0,
"span"),P(1," and "),F(2,"strong"),P(3,"subteams"),G()())},HWa=function(a){a&1&&(F(0,"span"),P(1," Currently selected team: "),F(2,"strong"),P(3),G(),O(4,GWa,4,0,"span",4),G());a&2&&(a=K(3),B(3),Ke(a.header.team.name),B(1),D("ngIf",a.header.includeChildren))},IWa=function(a){a&1&&P(0," Start typing a team name or ID to see auto-complete suggestions. ")},JWa=function(a){a&1&&(ze(0),O(1,HWa,5,2,"span",5),O(2,IWa,1,0,"ng-template",null,10,Pf),Ae());if(a&2){var b=M(3);a=K(2);B(1);D("ngIf",a.header.team)("ngIfElse",
b)}},KWa=function(a,b){a&1&&(F(0,"span"),P(1," Currently selected custom field: "),F(2,"strong"),P(3),G(),P(4," of type "),F(5,"strong"),P(6),Q(7,"lowercase"),G(),P(8,". "),G());a&2&&(a=b.$implicit,B(3),Ke(a.name),B(3),Ke(R(7,2,a.type)))},LWa=function(a){a&1&&P(0," customfield[id]: [value] ")},MWa=function(a){a&1&&(ze(0),O(1,KWa,9,4,"span",5),O(2,LWa,1,0,"ng-template",null,11,Pf),Ae());if(a&2){var b=M(3);a=K(2);B(1);D("ngIf",a.header.customField)("ngIfElse",b)}},NWa=function(a){a&1&&(F(0,"div",3),
O(1,yWa,4,2,"ng-container",4),O(2,BWa,4,2,"ng-container",4),O(3,FWa,4,2,"ng-container",4),O(4,JWa,4,2,"ng-container",4),O(5,MWa,4,2,"ng-container",4),G());a&2&&(a=K(),B(1),D("ngIf","hotlist"===a.header.type),B(1),D("ngIf","savedsearch"===a.header.type),B(1),D("ngIf","component"===a.header.type),B(1),D("ngIf","team"===a.header.type),B(1),D("ngIf","customfield"===a.header.type))},OWa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Le(" ",a.id,": ",a.name," "))},PWa=function(a){a&
1&&(F(0,"span"),P(1),F(2,"span"),P(3),G()());a&2&&(a=K().$implicit,B(1),Je(" Hotlist ",a.hotlistId,": "),B(2),Ke(a.name))},QWa=function(a){a&1&&(F(0,"span"),P(1),F(2,"span"),P(3),G(),H(4,"br"),F(5,"span",13),P(6),G()());a&2&&(a=K().$implicit,B(1),Je(" Saved search ",a.searchId,": "),B(2),Ke(a.name),B(3),Ke(a.query))},RWa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Je(" ",a.name," "))},SWa=function(a){a&1&&(F(0,"span"),P(1," > "),G())},UWa=function(a,b){if(a&1){var c=y();ze(0);
F(1,"span",16);J("click",function(d){var e=z(c).$implicit;TWa(e);return A(d.stopPropagation())});P(2);G();O(3,SWa,2,0,"span",4);Ae()}a&2&&(a=b.$implicit,b=b.last,B(1),Ie("title","",a.id,": ",a.name,""),B(1),Ke(a.name),B(1),D("ngIf",!b))},VWa=function(a){a&1&&(F(0,"span"),P(1," Component "),F(2,"strong"),P(3),G(),H(4,"b-access-level-indicator",9),F(5,"span",14),O(6,UWa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,B(3),Ke(a.componentId),B(1),D("accessLevel",null==a.accessLimit?null:a.accessLimit.accessLevel),
B(2),D("ngForOf",a.componentPath))},WWa=function(a){a&1&&(F(0,"span"),P(1," > "),G())},XWa=function(a,b){if(a&1){var c=y();ze(0);F(1,"span",16);J("click",function(d){var e=z(c).$implicit;TWa(e);return A(d.stopPropagation())});P(2);G();O(3,WWa,2,0,"span",4);Ae()}a&2&&(a=b.$implicit,b=b.last,B(1),Ie("title","",a.id,": ",a.name,""),B(1),Ke(a.name),B(1),D("ngIf",!b))},YWa=function(a){a&1&&(F(0,"span"),P(1," Team "),F(2,"strong"),P(3),G(),F(4,"span",14),O(5,XWa,4,4,"ng-container",15),G()());a&2&&(a=K().$implicit,
B(3),Ke(a.id),B(2),D("ngForOf",a.teamPath))},ZWa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Le(" ",a.label,": ",a.name," "))},aXa=function(a,b){if(a&1){var c=y();F(0,"b-app-search-auto-complete-option",12);J("optionClicked",function(e){z(c);var f=K();0<=e&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&$Wa(e),f.itemSelected.emit(e));return A()});O(1,OWa,2,2,"span",4);O(2,PWa,4,2,"span",4);O(3,QWa,7,3,"span",4);O(4,RWa,2,1,"span",4);O(5,VWa,7,3,"span",4);O(6,YWa,6,2,
"span",4);O(7,ZWa,2,2,"span",4);G()}if(a&2){a=b.$implicit;b=b.index;var d=K();qe("id","b-app-search-option-",b,"");D("index",b)("isActive",0<=b&&b<d.items.length?b===d.activeItemIndex:!1);B(1);D("ngIf","issue"===a.completionCfg.type);B(1);D("ngIf","hotlist"===a.completionCfg.type);B(1);D("ngIf","savedsearch"===a.completionCfg.type);B(1);D("ngIf","atom"===a.completionCfg.type);B(1);D("ngIf","component"===a.completionCfg.type);B(1);D("ngIf","team"===a.completionCfg.type);B(1);D("ngIf",!d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type))}},
bXa=function(a){a&1&&(ze(0),F(1,"span",10),P(2),G(),Ae());a&2&&(a=K(),B(1),te("muted",a.disabled),B(1),Ke(a.cardTitle))},cXa=function(a){a&1&&H(0,"mat-icon",11)},dXa=function(a){a&1&&H(0,"mat-icon",12)},eXa=function(a){a&1&&(F(0,"mat-select-trigger"),H(1,"mat-icon",20),F(2,"span"),P(3),G()());a&2&&(a=K(3),B(1),D("svgIcon",a.selectedOption.icon),B(2),Ke(a.selectedOption.displayText))},fXa=function(a){a&1&&H(0,"mat-icon",20);a&2&&(a=K().$implicit,D("svgIcon",a.icon))},gXa=function(a,b){a&1&&(F(0,"mat-option",
21),O(1,fXa,1,1,"mat-icon",22),P(2),G());a&2&&(a=b.$implicit,D("value",a),B(1),D("ngIf",a.icon),B(1),Je("",a.displayText," "))},hXa=function(a){if(a&1){var b=y();F(0,"mat-form-field",16)(1,"mat-label");P(2," Choose type... ");G();F(3,"mat-select",17);J("valueChange",function(c){z(b);var d=K(2);return A(d.selectedOption=c)})("selectionChange",function(c){z(b);K(2).dropdownSelectionChanged.emit(c.value);return A()});O(4,eXa,4,2,"mat-select-trigger",18);O(5,gXa,3,3,"mat-option",19);G()()}a&2&&(a=K(2),
B(3),D("disabled",a.disabled)("value",a.selectedOption),B(1),D("ngIf",a.selectedOption&&a.selectedOption.icon),B(1),D("ngForOf",a.dropdownOptions))},iXa=function(a){if(a&1){var b=y();F(0,"mat-form-field",13)(1,"input",14);J("ngModelChange",function(c){z(b);var d=K();return A(d.cardTitleChange.emit(c))});G()();O(2,hXa,6,4,"mat-form-field",15)}a&2&&(a=K(),B(1),te("muted",a.disabled||!a.selected),D("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),oe("aria-label",
a.ariaLabelForCardTitle),B(1),D("ngIf",a.dropdownOptions.length))},jXa=function(a){a&1&&(F(0,"div",23),Fe(1),G())},kXa=function(a){a&1&&(F(0,"button",31),H(1,"mat-icon",32),G());a&2&&(a=K(2),D("disabled",a.disabled))},lXa=function(a){a&1&&H(0,"mat-divider",33);a&2&&D("vertical",!0)},mXa=function(a){a&1&&(F(0,"mat-slide-toggle",34),P(1," Required "),G());a&2&&(a=K(2),D("disabled",a.disabled))},nXa=function(a){if(a&1){var b=y();F(0,"mat-slide-toggle",35);J("change",function(c){z(b);var d=K(2);return A(d.isInheritedChange.emit(c))});
P(1," Inherited ");G()}a&2&&(a=K(2),D("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},oXa=function(a){if(a&1){var b=y();F(0,"div",24)(1,"button",25);J("click",function(){z(b);var c=K();return A(c.onSave())});P(2," Save ");G();F(3,"button",26);J("click",function(){z(b);var c=K();c.collapse();c.onCancelButtonClicked.emit();return A()});P(4," Cancel ");G();O(5,kXa,2,1,"button",27);O(6,lXa,1,1,"mat-divider",
28);O(7,mXa,2,1,"mat-slide-toggle",29);O(8,nXa,2,4,"mat-slide-toggle",30);G()}a&2&&(a=K(),B(1),D("disabled",a.isSaveButtonDisabled),B(2),D("disabled",a.disabled),B(2),D("ngIf",a.showDeleteButton),B(1),D("ngIf",a.showDeleteButton&&a.showRequiredToggle),B(1),D("ngIf",a.showRequiredToggle),B(1),D("ngIf",a.showInheritedToggle))},pXa=function(a){a&1&&(F(0,"h3"),P(1),G());a&2&&(a=K(2),B(1),Je(" Edit Custom Field ",a.editableField.customFieldId," "))},qXa=function(a){a&1&&(F(0,"h3"),P(1," Create Custom Field "),
G())},rXa=function(a){a&1&&(F(0,"div",40),P(1),G());a&2&&(a=K(2),B(1),Je(" ",a.serverError," "))},tXa=function(a,b){a&1&&(F(0,"button",41),P(1),Q(2,"enumToHuman"),G());if(a&2){a=b.$implicit;K();var c=M(32);D("matMenuTriggerFor",c)("matMenuTriggerData",Oe(5,sXa,a));B(1);Je(" ",R(2,3,a)," ")}},uXa=function(a,b){if(a&1){var c=y();F(0,"button",43);J("click",function(){var d=z(c).$implicit,e=K().type,f=K(2);return A(f.setType(e,"Multiple"===d))});P(1);G()}a&2&&(a=b.$implicit,B(1),Je(" ",a," "))},vXa=function(a){a&
1&&O(0,uXa,2,1,"button",42);a&2&&(a=K(2),D("ngForOf",a.secondaryTypes))},xXa=function(a){if(a&1){var b=y();F(0,"td",7)(1,"label",44);P(2," Allowed Values: ");G();F(3,"b-list-field",45);J("valuesChange",function(c){z(b);var d=K(2);return A(wXa(d,c.values))});G()()}a&2&&(a=K(2),B(3),D("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},yXa=function(a){a&
1&&(F(0,"label",46),P(1," Default Value: "),G())},BXa=function(a,b){if(a&1){var c=y();F(0,"b-edit-field",47);J("valueChange",function(d){z(c);var e=K(2);zXa(e,d);return A()});G()}a&2&&(a=b.ngIf,b=K(2),D("name","Default")("type",a)("tooltip","Set default value")("value",AXa(b))("choices",b.allowedValues)("showEnumTitle",!0)("disabled",b.isSaving)("truncate",!0)("clearable",!0))},CXa=function(a){a&1&&(F(0,"label",48),P(1," Default Values: "),G())},DXa=function(a,b){if(a&1){var c=y();F(0,"b-list-field",
49);J("valuesChange",function(d){z(c);var e=K(2);zXa(e,d.values);return A()});G()}a&2&&(a=b.ngIf,b=K(2),D("defaultLineCount",3)("type",a)("tooltip","Set default values")("values",b.getListFieldValues())("enumChoices",b.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",b.isSaving)("truncate",!0))},EXa=function(a,b){if(a&1){var c=y();F(0,"button",50);J("click",function(){var d=z(c).$implicit,e=K(2);return A(e.setFieldSignificance(d))});P(1);Q(2,"enumToHuman");G()}a&2&&(a=b.$implicit,
B(1),Je(" ",R(2,1,a)," "))},FXa=function(a){if(a&1){var b=y();F(0,"div",4);O(1,pXa,2,1,"h3",3);O(2,qXa,2,0,"h3",3);O(3,rXa,2,1,"div",5);F(4,"form",6)(5,"div",7)(6,"label",8);P(7,"Name:");G();F(8,"input",9);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.name=h)});G()();F(9,"div",7)(10,"label",10);P(11,"Description:");G();F(12,"textarea",11);J("ngModelChange",function(h){z(b);var k=K();return A(k.editableField.description=h)});G()();F(13,"table",12)(14,"tr")(15,"td",7)(16,"div",
13)(17,"label",14);P(18," Type: ");G();F(19,"onedev-hovercard",null,15)(21,"div",16)(22,"div",17);P(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()()()();F(24,"button",18);P(25);Q(26,"enumToHuman");H(27,"b-icon",19);G();F(28,"mat-menu",null,20);O(30,tXa,3,7,"button",21);G();F(31,"mat-menu",null,22);O(33,vXa,1,1,"ng-template",23);G()();O(34,xXa,4,7,"td",24);F(35,"td",7);O(36,yXa,2,0,"label",25);O(37,BXa,
1,9,"b-edit-field",26);O(38,CXa,2,0,"label",27);O(39,DXa,1,8,"b-list-field",28);G();F(40,"td",7)(41,"label",29);P(42," Required: ");G();F(43,"b-edit-field",30);J("valueChange",function(h){z(b);var k=K();return A(k.editableField.required=!!h)});G()();F(44,"td",7)(45,"div",13)(46,"label",31);P(47," Field Significance: ");G();F(48,"onedev-hovercard",null,32)(50,"div",33)(51,"div",17);P(52," This affects whether users will receive notifications when changes are made to this field. ");H(53,"br");P(54,
" See\u00a0 ");F(55,"a",34);P(56,"Email Settings ");G()()()()();F(57,"button",35);P(58);Q(59,"enumToHuman");H(60,"b-icon",19);G();F(61,"mat-menu",null,36);O(63,EXa,3,3,"button",37);G()()()();F(64,"b-button",38);J("onAction",function(){z(b);var h=K();return A(h.save())});P(65," Save ");G();F(66,"b-button",39);J("onAction",function(){z(b);var h=K();return A(h.cancel())});P(67," Cancel ");G()()()}if(a&2){var c=M(20),d=M(29),e=M(49),f=M(62);a=K();B(1);D("ngIf",!!a.editableField.customFieldId);B(1);D("ngIf",
!a.editableField.customFieldId);B(1);D("ngIf",a.serverError);B(5);D("bFocus",a.editableField&&!a.isLoading)("ngModel",a.editableField.name)("disabled",a.isSaving);B(4);D("ngModel",a.editableField.description)("disabled",a.isSaving);B(5);D("onedevHovercardTrigger",c);B(7);D("matMenuTriggerFor",d)("disabled",!!a.editableField.customFieldId);B(1);Je(" ",R(26,28,a.editableField.type)," ");B(5);D("ngForOf",a.typeChoices);B(4);D("ngIf",["REPEATED_ENUM","ENUM"].includes(a.editableField.type));B(2);D("ngIf",
!a.editableField.isRepeated());B(1);D("ngIf",a.getSingleEditFieldType(a.editableField));B(1);D("ngIf",a.editableField.isRepeated());B(1);D("ngIf",a.getListFieldType(a.editableField));B(4);D("name","Required")("type",a.FieldType.BOOL)("tooltip","Whether the field is required")("value",a.editableField.required);B(3);D("onedevHovercardTrigger",e);B(9);D("href",a.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Ud);B(2);D("matMenuTriggerFor",f);B(1);Je(" ",R(59,30,a.editableField.fieldSignificance),
" ");B(5);D("ngForOf",a.significanceChoices);B(1);D("disabled",!a.hasUnsavedChanges()||!a.editableField.name)}},GXa=function(a){a&1&&(F(0,"div",51),H(1,"b-spinner",52),G());a&2&&(B(1),D("large",!0))},HXa=function(a){a&1&&(F(0,"th"),P(1,"Actions"),G())},JXa=function(a){if(a&1){var b=y();F(0,"td",59)(1,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(d.editField(c))});P(2,"Edit");G();F(3,"b-button",60);J("click",function(){z(b);var c=K().index,d=K(2);return A(IXa(d,c))});P(4,
"Delete");G()()}},KXa=function(a,b){a&1&&(F(0,"tr",56)(1,"td"),P(2),G(),F(3,"td"),P(4),G(),F(5,"td"),P(6),Q(7,"enumToHuman"),G(),F(8,"td"),P(9),G(),F(10,"td"),P(11),Q(12,"yesNo"),G(),F(13,"td"),H(14,"b-custom-field-value-display",57),G(),F(15,"td"),P(16),Q(17,"arrayToHuman"),G(),F(18,"td"),P(19),Q(20,"enumToHuman"),G(),O(21,JXa,5,0,"td",58),G());a&2&&(a=b.$implicit,b=K(2),D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field"),B(2),Ke(a.name),B(2),Ke(a.customFieldId),B(2),Ke(R(7,10,a.type)),
B(3),Ke(a.description),B(2),Ke(R(12,12,a.required)),B(3),D("customFieldValue",a.typedDefaultValue),B(2),Ke(R(17,14,a.allowedValue)),B(3),Ke(R(20,16,a.fieldSignificance)),B(2),D("ngIf",b.editMode))},LXa=function(a){a&1&&(F(0,"tr")(1,"td",61),P(2," There are no custom fields defined on this component. "),G()())},MXa=function(a){a&1&&(F(0,"tr")(1,"td",62)(2,"strong"),P(3,"Fields inherited from parent components"),G()()())},NXa=function(a){a&1&&(ze(0),H(1,"b-component-card",69,70),Ae());if(a&2){var b=
M(2);a=K().$implicit;B(1);D("onedevIsHovercardReady",b.init)("componentId",a.componentId.toString())}},PXa=function(a){if(a&1){var b=y();F(0,"b-field-state-menu",71,72);J("fieldStateChange",function(d){z(b);var e=K(),f=e.$implicit;e=e.index;var h=K(3);return A(h.updateCustomFieldState(f,d,e))});G()}if(a&2){a=K().$implicit;var c=K(3);D("fieldName",a.name)("fieldState",a.stateOnIssues)("enabledOnParent",OXa(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);oe("aria-label",
c.msgFieldStateTip)}},QXa=function(a,b){if(a&1){var c=y();F(0,"tr",56)(1,"td");P(2);G();F(3,"td");P(4);G();F(5,"td");P(6);Q(7,"enumToHuman");G();F(8,"td");P(9);G();F(10,"td");P(11);Q(12,"yesNo");G();F(13,"td");H(14,"b-custom-field-value-display",57);G();F(15,"td");P(16);Q(17,"arrayToHuman");G();F(18,"td");P(19);Q(20,"enumToHuman");G();F(21,"td",59)(22,"div",63)(23,"div",64);P(24,"Inherited From");G();F(25,"a",65);J("click",function(){z(c);var e=K(3);return A(e.trackClick("parentCustomFields"))});
P(26);G();F(27,"onedev-hovercard",null,66);O(29,NXa,3,2,"ng-container",67);G()();O(30,PXa,2,6,"b-field-state-menu",68);G()()}if(a&2){a=b.$implicit;var d=M(28);b=K(3);D("ngClass",a.enabledOnIssues?"enabled-field":"disabled-field");B(2);Ke(a.name);B(2);Ke(a.customFieldId);B(2);Ke(R(7,13,a.type));B(3);Ke(a.description);B(2);Ke(R(12,15,a.required));B(3);D("customFieldValue",a.typedDefaultValue);B(2);Ke(R(17,17,a.allowedValue));B(3);Ke(R(20,19,a.fieldSignificance));B(6);D("onedevHovercardTrigger",d)("href",
b.paths.manageComponent(a.componentId,"customFields"),Ud);B(1);Je(" ",b.componentIdsToNames[a.componentId]," ");B(4);D("ngIf",b.editMode)}},RXa=function(a){a&1&&(ze(0),O(1,QXa,31,21,"tr",54),Ae());a&2&&(a=K(2),B(1),D("ngForOf",a.inheritedCustomFields))},SXa=function(a){a&1&&(F(0,"tfoot")(1,"tr")(2,"td",62),P(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),F(4,"a",73),P(5,"Field Ordering"),G(),P(6," tab."),H(7,"br"),P(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
G()()())},TXa=function(a){if(a&1){var b=y();F(0,"div",74)(1,"b-button",75);J("onAction",function(){z(b);var c=K(2);c.editableField=new il;c.originalEditableFieldValue_=Fi(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return A()});P(2," Add a Custom Field ");G()()}},UXa=function(a){a&1&&(F(0,"div")(1,"table",53)(2,"tr")(3,"th"),P(4,"Name"),G(),F(5,"th"),P(6,"ID"),G(),F(7,"th"),P(8,"Type"),G(),F(9,"th"),P(10,"Description"),G(),F(11,"th"),P(12,"Required?"),G(),F(13,"th"),P(14,
"Default Value"),G(),F(15,"th"),P(16,"Allowed Values"),G(),F(17,"th"),P(18,"Field Significance"),G(),O(19,HXa,2,0,"th",3),G(),O(20,KXa,22,18,"tr",54),O(21,LXa,3,0,"tr",3),O(22,MXa,4,0,"tr",3),O(23,RXa,2,1,"ng-container",3),O(24,SXa,9,0,"tfoot",3),G(),O(25,TXa,3,0,"div",55),G());a&2&&(a=K(),B(19),D("ngIf",a.editMode),B(1),D("ngForOf",a.customFields),B(1),D("ngIf",!a.customFields.length),B(1),D("ngIf",a.inheritedCustomFields.length),B(1),D("ngIf",a.inheritedCustomFields.length),B(1),D("ngIf",a.customFields.length),
B(1),D("ngIf",a.editMode))},VXa=function(a){if(a&1){var b=y();F(0,"button",18);J("click",function(){z(b);var c=K().index,d=K();return A(d.removeAtIndex.emit(c))});H(1,"mat-icon",19);G()}a&2&&(a=K().$implicit,oe("aria-label","Delete row "+a.label))},WXa=function(a,b){if(a&1){var c=y();F(0,"div",9)(1,"div",10);H(2,"mat-icon",11);F(3,"div",1)(4,"mat-form-field",12)(5,"input",13,14);J("change",function(f){var h=z(c).index,k=K();k.options[h].label=f.target.value;k.optionsChange.emit(k.options);return A()});
G()()();F(7,"div",1)(8,"mat-form-field",12)(9,"input",15,16);J("change",function(f){var h=z(c).index,k=K();return A(k.valueChange(f,h))});G()()();O(11,VXa,2,1,"button",17);G()()}if(a&2){a=b.$implicit;var d=M(6),e=M(10);b=K();B(4);D("appearance",d.focused||e.focused?"standard":"none");B(1);te("muted",b.disabled);D("value",a.label)("placeholder",null==a.label?"Dropdown value":"")("disabled",b.disabled);B(3);D("appearance",d.focused||e.focused?"standard":"none");B(1);te("muted",b.disabled);D("value",
a.value)("placeholder",null==a.value?"Average days":"")("disabled",b.disabled);B(2);D("ngIf",!b.disabled)}},XXa=function(a){if(a&1){var b=y();F(0,"button",20);J("click",function(){z(b);var c=K();return A(c.addRow.emit())});P(1," Add row\n");G()}},YXa=function(a){a&1&&Be(0)},ZXa=function(a){a&1&&(ze(0),O(1,YXa,1,0,"ng-container",5),Ae());if(a&2){K();var b=M(7);B(1);D("ngTemplateOutlet",b)}},$Xa=function(a){if(a&1){var b=y();ze(0);F(1,"b-numeric-config",6);J("valueChange",function(c){z(b);var d=K();
return A(d.numericSpecMultiplier=c)});G();Ae()}a&2&&(a=K(),B(1),D("disabled",a.disabled)("value",a.numericSpecMultiplier))},aYa=function(a){a&1&&Be(0)},bYa=function(a){if(a&1){var b=y();F(0,"div",7)(1,"label",8);P(2,"Aggregation Rule");G();F(3,"a",9);H(4,"mat-icon",10);G();H(5,"br");F(6,"mat-form-field",11)(7,"mat-select",12);J("valueChange",function(c){z(b);var d=K();return A(d.selectedAggregationRule=c)});F(8,"mat-select-trigger");P(9);Q(10,"aggregationRuleText");G();F(11,"mat-option",13)(12,"div",
14);P(13);Q(14,"aggregationRuleText");G();F(15,"div",15);P(16,"All parents and children are added to the total");G()();F(17,"mat-option",13)(18,"div",14);P(19);Q(20,"aggregationRuleText");G();F(21,"div",15);P(22,"Take the assigned estimate if larger than total of all immediate children");G()()()()()}a&2&&(a=K(),B(7),D("value",a.selectedAggregationRule)("disabled",a.disabled),B(2),Je(" ",R(10,7,a.selectedAggregationRule)," "),B(2),D("value",a.aggregationRules.SUM),B(2),Ke(R(14,9,a.aggregationRules.SUM)),
B(4),D("value",a.aggregationRules.MAX),B(2),Ke(R(20,11,a.aggregationRules.MAX)))},cYa=function(a){if(a&1){var b=y();F(0,"b-config-grid",16);J("optionsChange",function(c){z(b);var d=K();return A(d.enumSpecOptions=c)})("addRow",function(){z(b);var c=K();return A(c.addRow())})("removeAtIndex",function(c){z(b);K().enumSpecOptions.splice(c,1);return A()});G()}a&2&&(a=K(),D("options",a.enumSpecOptions)("disabled",a.disabled||a.inherit))},dYa=function(a){return a&&"0"!==a.getTeamId()?a.getDeleted()?"DELETED":
"VALID":"MISSING"},eYa=function(a){if(a&1){var b=y();F(0,"div",6);P(1," Select a team from the suggestions below, or edit in ");F(2,"a",7);J("click",function(){z(b);var c=K();return A(c.trackClick("viewTeamAssociationOnComponent"))});P(3,"component settings");G();P(4,".\n");G()}a&2&&(a=K(),B(2),D("href",a.componentSetting,Ud))},fYa=function(a){a&1&&(F(0,"div",6),P(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),F(2,"a",
8),P(3,"component settings"),G(),P(4,".\n"),G());a&2&&(a=K(),B(2),D("href",a.componentSetting,Ud))},gYa=function(a){if(a&1){var b=y();F(0,"mat-radio-group",9);J("ngModelChange",function(c){z(b);var d=K();return A(d.teamAction=c)});F(1,"p")(2,"mat-radio-button",10);P(3," Don't make any changes ");G()();F(4,"p")(5,"mat-radio-button",11);P(6," Map component to selected team ");G()()()}a&2&&(a=K(),D("ngModel",a.teamAction))},hYa=function(a){a&1&&(ze(0),F(1,"span",19),P(2),G(),Ae());a&2&&(a=K().$implicit,
B(2),Ke(a.teamPath))},iYa=function(a){a&1&&P(0," -- ")},jYa=function(a,b){a&1&&(O(0,hYa,3,1,"ng-container",17),O(1,iYa,1,0,"ng-template",null,18,Pf));if(a&2){a=b.$implicit;var c=M(2);D("ngIf",a)("ngIfElse",c)}},kYa=function(a){if(a&1){var b=y();F(0,"div",12)(1,"onedev-single-select",13);J("valueChange",function(d){z(b);var e=K();return A(e.selectedTeam=d)})("valueChange",function(d){z(b);var e=K();return A(e.selectOption(d))});G();O(2,jYa,3,2,"ng-template",null,14,Pf);F(4,"a",15);J("click",function(){z(b);
var d=K();return A(d.trackClick("viewTeamInMoma"))});H(5,"mat-icon",16);G()()}if(a&2){var c=M(3);a=K();B(1);D("disabled","NONE"===a.teamAction)("value",a.selectedTeam)("options",a.teamOptions)("includeEmptyOption",!1)("optionTemplate",c);B(3);oe("href",a.getMomaTeamLink(),Ud)}},lYa=function(a){if(a&1){var b=y();F(0,"b-callout-actions")(1,"b-button",2);J("click",function(){z(b);var c=K();return A(c.openDialog())});P(2);G()()}a&2&&(a=K(),B(2),Ke(a.buttonName))},mYa=function(a){a&1&&(F(0,"div",8),H(1,
"b-team-warning",9),G());a&2&&(a=K().ngIf,B(1),D("warningType",a)("messageOnly",!0))},nYa=function(a,b){a&1&&(ze(0),O(1,mYa,2,2,"div",7),Ae());a&2&&(a=b.ngIf,b=K(),B(1),D("ngIf",b.isAdmin&&("MISSING"===a||"DELETED"===a)))},oYa=function(a){if(a&1){var b=y();F(0,"div",10)(1,"mat-checkbox",11);J("change",function(c){z(b);var d=K();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 A()});P(2," Inherit team from parent component ");G()()}a&2&&(a=K(),B(1),D("disabled",!a.isAdmin)("checked",a.inherit))},pYa=function(a){if(a&1){var b=y();F(0,"a",13);J("click",function(){z(b);K(2);Nn(ao.MANAGE_COMPONENT,"navigate","to-internal-team-page");return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),D("routerLink",us(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},qYa=function(a){a&1&&(ze(0),O(1,pYa,2,2,"a",12),Ae());a&2&&(a=K(),B(1),D("ngIf",us(a)))},rYa=function(a){if(a&
1){var b=y();F(0,"a",16);J("click",function(){z(b);var c=K(2);Nn(ao.MANAGE_COMPONENT,"linkout-moma","team",Number(c.model.id));return A()});H(1,"mat-icon",14);G()}a&2&&(a=K(2),oe("href",a.getMomaTeamLink(),Ud))},sYa=function(a){a&1&&O(0,rYa,2,1,"a",15);a&2&&(a=K(),D("ngIf",us(a)))},tYa=function(){var a;return(a=void 0===a?aj():a)?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},uYa=function(a){a&1&&(F(0,"span"),P(1),G());
a&2&&(a=K().$implicit,B(1),Je("(",a.disabledReason,")"))},vYa=function(a,b){a&1&&(F(0,"mat-radio-button",8),P(1),O(2,uYa,2,1,"span",9),G());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),B(1),Je(" ",a.displayText," "),B(1),D("ngIf",!a.enabled))},wYa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Je("(",a.disabledReason,")"))},xYa=function(a,b){a&1&&(F(0,"mat-radio-button",8),P(1),O(2,wYa,2,1,"span",9),G());a&2&&(a=b.$implicit,D("value",a)("disabled",!a.enabled),B(1),Je(" ",
a.displayText," "),B(1),D("ngIf",!a.enabled))},AYa=function(a,b){if(a&1){var c=y();F(0,"li",11);J("keydown",function(e){var f=z(c).index,h=K();return A(h.onKeyDown(e,f))})("focus",function(){var e=z(c).index,f=K();return A(f.onFocus(e))});H(1,"mat-icon",12);F(2,"span");P(3);G();F(4,"div",13)(5,"button",14);J("click",function(){var e=z(c).index,f=K();return A(yYa(f,e))});H(6,"mat-icon",15);G();F(7,"button",16);J("click",function(){var e=z(c).index,f=K();return A(zYa(f,e))});H(8,"mat-icon",17);G()()()}if(a&
2){a=b.$implicit;b=b.index;var d=K();oe("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);B(3);Ke(a.name);B(2);te("invisible",0===b);B(2);te("invisible",b===d.fields.length-1)}},BYa=function(a){var b=function(){var c=a.apply(this,[].concat(v(xc.apply(0,arguments))))||this;c._sticky=!1;c._hasStickyChanged=!1;return c};V(b,a);b.prototype.hasStickyChanged=function(){var c=this._hasStickyChanged;this._hasStickyChanged=!1;return c};b.prototype.resetStickyChanged=function(){this._hasStickyChanged=
!1};ji.Object.defineProperties(b.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(c){var d=this._sticky;this._sticky=bh(c);this._hasStickyChanged=d!==this._sticky}}});return b},vs=function(a,b){return a.concat(Array.from(b))},CYa=function(a){a&1&&(F(0,"th",14),P(1," Order"),G())},DYa=function(a,b){a&1&&(F(0,"td",15),P(1),G());a&2&&(a=b.index,B(1),Je(" ",a+1," "))},EYa=function(a){a&1&&(F(0,"th",14),P(1," Name"),G())},FYa=function(a,b){a&1&&(F(0,"td",
15),P(1),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.name," "))},GYa=function(a){a&1&&(F(0,"th",14),P(1," Type"),G())},HYa=function(a,b){a&1&&(F(0,"td",15),P(1),Q(2,"toCustomFieldTypeDisplayValue"),G());a&2&&(a=b.$implicit,B(1),Je(" ",R(2,1,a.type)," "))},IYa=function(a){a&1&&(F(0,"th",14),P(1," Required"),G())},JYa=function(a,b){a&1&&(F(0,"td",15),P(1),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.required?"Yes":"No"," "))},KYa=function(a){a&1&&(F(0,"th",14),P(1," ID"),G())},LYa=function(a,b){a&1&&(F(0,"td",
15),P(1),G());a&2&&(a=b.$implicit,B(1),Je(" ",a.customFieldId," "))},MYa=function(a){a&1&&H(0,"tr",16)},NYa=function(a){a&1&&H(0,"tr",17)},OYa=function(a){a&1&&(F(0,"div",18),P(1," There are no custom fields defined on this component. "),G())},RYa=function(a){if(a&1){var b=y();F(0,"div",19)(1,"div")(2,"button",20);J("click",function(){z(b);var c=K();return A(PYa(c))});P(3," Reorder fields ");G();F(4,"button",20);J("click",function(){z(b);var c=K();return A(QYa(c))});P(5," Reset ordering ");G()()()}a&
2&&(a=K(),B(2),D("disabled",0===a.fields.length),B(2),D("disabled","CUSTOMIZED"!==a.fieldOrdering))},SYa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),B(1),a=a.lineNumbers.length,Je(" (",a+(1==a?" TODO":" TODOs"),") "))},UYa=function(a,b){if(a&1){var c=y();F(0,"li",5)(1,"a",6);J("click",function(){z(c);var d=K(2);return A(d.trackClick("lineNumber"))});P(2);G()()}a&2&&(a=b.$implicit,b=K(2),B(1),D("href",TYa(b,a),Ud),B(1),Ke(a))},VYa=function(a){a&1&&(F(0,"span"),P(1," ("),F(2,"ul",3),O(3,UYa,
3,2,"li",4),G(),P(4,") "),G());a&2&&(a=K(),B(3),D("ngForOf",a.lineNumbers))},WYa=function(a){a&1&&H(0,"div",2)},XYa=function(a){a&1&&(ze(0),Fe(1),Ae())},YYa=function(a){a&1&&(Uc(),F(0,"svg",1),H(1,"path",2),G());a&2&&(a=K(),D("matTooltip",a.warning))},ZYa=function(a){a&1&&Be(0)},bZa=function(a){if(a&1){var b=y();F(0,"div",1);J("keydown",function(c){z(b);var d=K();return A(d.processKeydown(c))});F(1,"div",2);O(2,ZYa,1,0,"ng-container",3);G();F(3,"div",4)(4,"button",5);J("click",function(){z(b);var c=
K();return A($Ya(c))});P(5,"Save");G();F(6,"button",6);J("click",function(){z(b);var c=K();return A(aZa(c))});P(7,"Cancel");G()()()}a&2&&(a=K(),D("cdkTrapFocusAutoCapture",!0),B(2),D("ngTemplateOutlet",a.editorTemplate))},cZa=function(a){a&1&&Be(0)},eZa=function(a){a&1&&(ze(0),O(1,cZa,1,0,"ng-container",8),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Oe(2,dZa,a.value)))},fZa=function(a){a&1&&P(0);a&2&&(a=K(),Ke(null!=a.value?a.value:"--"))},gZa=function(a){a&
1&&(Uc(),F(0,"svg",9),H(1,"path",10),G())},hZa=function(a){if(a&1){var b=y();F(0,"input",11);J("ngModelChange",function(c){z(b);var d=K();return A(d.editingValue=c)});G()}a&2&&(a=K(),D("ngModel",a.editingValue))},iZa=function(a){return null!=a?Number(a):void 0},jZa=function(a){if(a&1){var b=y();ze(0);F(1,"onedev-numeric-field",7);J("valueChange",function(d){z(b);var e=K(2);e.selectedNumericEstimate=d;if(null==d)e.effortChange.emit(void 0);else{e=e.effortChange;var f=e.emit,h=new wl;d=xl(h,2,String(d));
f.call(e,d)}return A()});G();Ae()}if(a&2){a=K(2);var c=M(2);B(1);D("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},kZa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().$implicit,B(1),Je(" ",a.getLabel()," "))},lZa=function(a){a&1&&P(0," -- ")},mZa=function(a,b){a&1&&(O(0,kZa,2,1,"ng-container",10),O(1,lZa,1,0,"ng-template",null,11,Pf));if(a&2){a=b.$implicit;var c=M(2);D("ngIf",a)("ngIfElse",c)}},oZa=function(a){if(a&1){var b=y();ze(0);F(1,
"onedev-single-select",8);J("valueChange",function(e){z(b);var f=K(2);return A(f.selectOption(e))});G();O(2,mZa,3,2,"ng-template",null,9,Pf);Ae()}if(a&2){var c=M(3);a=K(2);var d;B(1);D("value",a.selectedOption)("options",null!==(d=null==(d=Cl(a.effortSpec))?null:d.getOptionsList())&&void 0!==d?d:Ne(6,nZa))("includeEmptyOption",!0)("optionTemplate",c)("disabled",a.disabled)("displayArrowIcon",!a.disabled)}},pZa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K(2),B(1),Je(" ",null==a.effort?null:W(a.effort,
2)," "))},qZa=function(a){a&1&&(F(0,"onedev-edit-field")(1,"onedev-field-label",2),P(2),G(),F(3,"onedev-field-value",3),ze(4,4),O(5,jZa,2,4,"ng-container",5),O(6,oZa,4,7,"ng-container",5),O(7,pZa,2,1,"ng-container",6),Ae(),G()());a&2&&(a=K(),B(1),D("thinking",a.thinking)("warning",a.isCompatibleValue?"":"Update estimate to resolve this warning")("labelTooltip",a.fieldName),B(1),Je(" ",a.fieldName," "),B(1),D("thinking",a.thinking),B(1),D("ngSwitch",a.fieldType),B(1),D("ngSwitchCase","NUMERIC"),B(1),
D("ngSwitchCase","DROPDOWN"))},rZa=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K(2),B(1),Je(" ",null==a.effort?null:W(a.effort,2)," "))},sZa=function(a){a&1&&P(0);a&2&&(a=K().$implicit,Je(" ",null!=a?a:"--"," "))},tZa=function(a,b){a&1&&(O(0,rZa,2,1,"ng-container",10),O(1,sZa,1,1,"ng-template",null,12,Pf));if(a&2){a=b.$implicit;var c=M(2);b=K();D("ngIf",b.isNaN(a))("ngIfElse",c)}},uZa=function(a){if(a&1){var b=y();F(0,"div",8)(1,"label",9);P(2,"Issue shortlink");G();F(3,"input",22,23);J("onHotkey",
function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))})("focus",function(){z(b);var d=M(4);return A(d.select())});G();F(5,"span",12);P(6);G();F(7,"button",24);J("onHotkey",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))})("click",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=M(4);a=K(2);B(1);D("htmlFor",c.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK);oe("value",xs(a.activeSession).replace(/^.*?:\/\//,"")+a.issueId);B(3);Ke(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs);
B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_SHORTLINK)}},vZa=function(a){if(a&1){var b=y();F(0,"div",8)(1,"label",9);P(2,"Issue email");G();F(3,"input",25,26);J("onHotkey",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))})("focus",function(){z(b);var d=M(4);return A(d.select())});G();F(5,"span",12);P(6);G();F(7,"button",27);J("onHotkey",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))})("click",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=M(4);a=K(2);
B(1);D("htmlFor",c.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS);oe("value",a.getIssueEmail());B(3);Ke(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs);B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)}},wZa=function(a){if(a&1){var b=y();F(0,"div",8)(1,"label",9);P(2,"TODO comment");G();F(3,"input",28,29);J("onHotkey",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))})("focus",function(){z(b);var d=M(4);return A(d.select())});G();F(5,"span",12);P(6);G();F(7,"button",30);J("onHotkey",function(){z(b);
var d=M(4),e=K(2);return A(ws(e,d))})("click",function(){z(b);var d=M(4),e=K(2);return A(ws(e,d))});H(8,"mat-icon",14);G()()}if(a&2){var c=M(4);a=K(2);B(1);D("htmlFor",c.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_TODO);oe("value",a.getTodoComment());B(3);Ke(a.HOTKEYS.COPY_ISSUE_TODO.displayAs);B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_TODO)}},xZa=function(a){if(a&1){var b=y();F(0,"div",7)(1,"div",8)(2,"label",9);P(3,"Issue ID");G();F(4,"input",10,11);J("onHotkey",function(){z(b);var f=M(5),h=K();return A(ws(h,
f))})("focus",function(){z(b);var f=M(5);return A(f.select())});G();F(6,"span",12);P(7);G();F(8,"button",13);J("onHotkey",function(){z(b);var f=M(5),h=K();return A(ws(h,f))})("click",function(){z(b);var f=M(5),h=K();return A(ws(h,f))});H(9,"mat-icon",14);G()();O(10,uZa,9,5,"div",15);F(11,"div",8)(12,"label",9);P(13,"Issue URL");G();F(14,"input",16,17);J("onHotkey",function(){z(b);var f=M(15),h=K();return A(ws(h,f))})("focus",function(){z(b);var f=M(15);return A(f.select())});G();F(16,"span",12);P(17);
G();F(18,"button",18);J("onHotkey",function(){z(b);var f=M(15),h=K();return A(ws(h,f))})("click",function(){z(b);var f=M(15),h=K();return A(ws(h,f))});H(19,"mat-icon",14);G()();F(20,"div",8)(21,"label",9);P(22,"URL and title");G();F(23,"input",19,20);J("onHotkey",function(){z(b);var f=M(24),h=K();return A(ws(h,f))})("focus",function(){z(b);var f=M(24);return A(f.select())});G();F(25,"span",12);P(26);G();F(27,"button",21);J("onHotkey",function(){z(b);var f=M(24),h=K();return A(ws(h,f))})("click",function(){z(b);
var f=M(24),h=K();return A(ws(h,f))});H(28,"mat-icon",14);G()();O(29,vZa,9,5,"div",15);O(30,wZa,9,5,"div",15);G()}if(a&2){var c=M(5),d=M(15),e=M(24);a=K();D("cdkTrapFocusAutoCapture",!0);B(2);D("htmlFor",c.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_ID);oe("value",a.issueId);B(3);Ke(a.HOTKEYS.COPY_ISSUE_ID.displayAs);B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_ID);B(2);D("ngIf",a.isSessionInternal());B(2);D("htmlFor",d.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_URL);oe("value",a.getIssueUrl());B(3);Ke(a.HOTKEYS.COPY_ISSUE_URL.displayAs);
B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_URL);B(3);D("htmlFor",e.id);B(2);D("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE);oe("value",a.getUrlAndTitle());B(3);Ke(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs);B(1);D("hotkey",a.HOTKEYS.COPY_ISSUE_TITLE);B(2);D("ngIf",a.isSessionInternal());B(1);D("ngIf",a.isSessionInternal())}},yZa=function(a){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",18),G());a&2&&(a=K(2),B(1),D("timestamp",a.sloSnoozeUntil))},zZa=function(a){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",18),G());a&
2&&(a=K(2),B(1),D("timestamp",a.issueCreationTimestamp/1E3))},BZa=function(a){if(a&1){var b=y();F(0,"div",12);P(1," SLO starts on: ");F(2,"div",14)(3,"a",15);J("click",function(){z(b);var c=K().snoozeDateTimePicker;AZa(c);c.isPickerVisible=!0;c.cdr.detectChanges();return A()});O(4,yZa,2,1,"span",16);O(5,zZa,2,1,"span",16);G();F(6,"a",17);H(7,"b-icon",3);G()()()}a&2&&(a=K(),B(4),D("ngIf",a.sloSnoozeUntil),B(1),D("ngIf",!a.sloSnoozeUntil),B(2),D("name","help-outline")("size","small"))},CZa=function(a,
b){if(a&1){var c=y();F(0,"a",20);J("click",function(){z(c);var d=K(2);return A(d.trackOpenSlo())});P(1);G()}a&2&&(a=b.ngIf,b=K(2),oe("href",b.editSloLink,Ud),B(1),Je(" ",a.getName()," "))},DZa=function(a){a&1&&(F(0,"div",12),P(1," SLO definition: "),O(2,CZa,2,2,"a",19),Q(3,"async"),G());a&2&&(a=K(),B(2),D("ngIf",R(3,1,a.slo$)))},EZa=function(a){if(a&1){var b=y();F(0,"a",21);J("click",function(){z(b);K();Nn(ao.MANAGE_COMPONENT,"open","fromIssueSloBox");return A()});P(1,"Select an SLO");G()}a&2&&(a=
K(),oe("href",a.componentSloLink,Ud))},FZa=function(a){a&1&&(F(0,"a",10),P(1," Create Component "),G());a&2&&(a=K(),D("href",a.createComponentPath,Ud))},GZa=function(a){if(a&1){var b=y();F(0,"xap-dialog-layout",11)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",12);J("selectedComponentChange",function(c){z(b);var d=K();return A(d.viewComponent(null!==c&&void 0!==c?c:null,"openFromSearch"))});G()()()}a&2&&(a=K(),B(2),D("includeArchived",a.includeArchived)("placeholder","Choose Component to navigate to that component")("shouldFocus",
!0)("isRequired",!1))},JZa=function(a){if(a&1){var b=y();F(0,"div",13)(1,"b-slide-toggle",14);J("modelChange",function(c){z(b);var d=K();d.includeArchived=c;c=HZa(d);var e=d.componentTree;e=e.focusedController?e.focusedController.selectedId?e.focusedController.selectedId:-1:e.rootController.selectedId?e.rootController.selectedId:-1;0<e&&IZa(d,e,c);return A()});G()()}a&2&&(a=K(),B(1),D("model",a.includeArchived)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components."))},
KZa=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner",16),G())},LZa=function(a){a&1&&(F(0,"p",3),P(1),G());a&2&&(a=K(),B(1),Ke(a.packageMentionSet.packageName))},MZa=function(a,b){a&1&&(F(0,"li"),H(1,"b-file-mention",4),G());a&2&&(a=b.$implicit,b=K(),B(1),D("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},OZa=function(a){a&1&&(F(0,"span"),P(1),F(2,"b"),P(3),G(),P(4," on "),F(5,"b"),P(6),Q(7,"date"),
G(),P(8,". "),G());a&2&&(a=K(4),B(1),Je(" Currently, the ",a.contentType," is scheduled for deletion in "),B(2),Ke(NZa(ys(a).getTime())),B(3),Ke(Se(7,3,ys(a),"longDate")))},PZa=function(a){a&1&&(F(0,"span")(1,"b"),P(2,"Retention:"),G(),P(3),F(4,"b"),P(5),G(),P(6," from the last modification of the issue. "),O(7,OZa,9,6,"span",10),G());if(a&2){a=K(3);var b=M(9);B(3);Je(" This ",a.contentType," has a retention period of ");B(2);Ke(a.getRetentionPeriod());B(2);D("ngIf",!(ys(a).getTime()<(new Ji).getTime()))("ngIfElse",
b)}},QZa=function(a){a&1&&(P(0),F(1,"b"),P(2,"overridden"),G(),P(3," retention period set to match the issue retention period. "));a&2&&(a=K(3),Je(" The ",a.contentType," has an "))},RZa=function(a){a&1&&(F(0,"p",9),O(1,PZa,8,4,"span",10),O(2,QZa,4,1,"ng-template",11),G());if(a&2){a=K(2);var b=M(7);D("ngSwitch",a.retention);B(1);D("ngIf",!(a.retentionState&&!a.retentionState.scheduledDeletionTime))("ngIfElse",b);B(1);D("ngSwitchCase",a.retentionModel.INDEFINITE)}},SZa=function(a){a&1&&(F(0,"div",
6)(1,"p")(2,"b"),P(3,"Restricted Access:"),G(),P(4),F(5,"a",7),P(6," Learn More "),G()(),O(7,RZa,3,4,"p",8),G());a&2&&(a=K(),B(4),Je(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(1),oe("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud),B(2),D("ngIf",a.retentionState))},TZa=function(a){a&1&&(F(0,"b"),P(1,"Retention:"),G(),P(2));a&2&&(a=K(),B(2),Je(" This ",a.contentType," has an indefinite retention period. "))},UZa=function(a){a&1&&(P(0," The retention has "),
F(1,"b"),P(2,"expired"),G(),P(3),F(4,"b"),P(5),Q(6,"date"),G(),P(7,". "));a&2&&(a=K(),B(3),Je(" and the ",a.contentType," was scheduled for deletion on "),B(2),Ke(Se(6,2,ys(a),"longDate")))},VZa=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(),B(1),Je("Retain ",a.resource," as long as issue?"))},WZa=function(a){a&1&&(F(0,"span"),P(1,"Apply component retention settings?"),G())},XZa=function(a){a&1&&(F(0,"span")(1,"p"),P(2),G(),F(3,"p")(4,"b"),P(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"),P(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),G()());a&2&&(a=K(),B(2),Je("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},YZa=function(a){a&1&&(F(0,"span")(1,"p"),P(2),G()());a&2&&(a=K(),B(2),Le("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."))},
ZZa=function(a){if(a&1){var b=y();F(0,"mat-checkbox",9);J("ngModelChange",function(c){z(b);var d=K();return A(d.acknowledgeToMatchIssueRetention=c)});P(1," I acknowledge ");G()}a&2&&(a=K(),D("ngModel",a.acknowledgeToMatchIssueRetention))},$Za=function(a){a&1&&(F(0,"div",3),H(1,"b-spinner"),F(2,"span"),P(3,"Initializing query builder..."),G()())},a_a=function(a){a&1&&(F(0,"div",7),H(1,"mat-icon",8),F(2,"p"),P(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),
G()())},b_a=function(a){a&1&&(F(0,"div"),P(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())},c_a=function(a){a&1&&(F(0,"div",4),O(1,a_a,4,0,"div",5),O(2,b_a,2,0,"div",6),G());a&2&&(a=K(),B(1),D("ngIf","NOT_REPRESENTABLE"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())),B(1),D("ngIf","SYNTAX_ERROR"===(null==a.advancedSearchCtrl?null:a.advancedSearchCtrl.getState())))},
d_a=function(a){a&1&&(F(0,"div",4),P(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),G())},e_a=function(a){a&1&&(F(0,"span"),P(1),H(2,"span",16),G());a&2&&(a=K(2).$implicit,B(1),Je(" ",a.diff.oldValue," "))},f_a=function(a){a&1&&(F(0,"span")(1,"label"),P(2),G(),O(3,e_a,3,1,"span",15),P(4),G());a&2&&(a=K().$implicit,B(2),Je("",a.fieldName,":"),B(1),D("ngIf",a.diff.oldValue),B(1),Je(" ",a.diff.newValue," "))},g_a=function(a,
b){a&1&&(F(0,"div")(1,"label"),P(2),G(),P(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),Je("-",b.fieldName,":"),B(1),Je(" ",a," "))},h_a=function(a){a&1&&(ze(0),O(1,g_a,4,2,"div",17),Ae());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.diff.removed))},i_a=function(a,b){a&1&&(F(0,"div")(1,"label"),P(2),G(),P(3),G());a&2&&(a=b.$implicit,b=K(3).$implicit,B(2),Je("+",b.fieldName,":"),B(1),Je(" ",a," "))},j_a=function(a){a&1&&(ze(0),O(1,i_a,4,2,"div",17),Ae());a&2&&(a=K(2).$implicit,B(1),D("ngForOf",a.diff.added))},
k_a=function(a){a&1&&(F(0,"div"),O(1,h_a,2,1,"ng-container",15),O(2,j_a,2,1,"ng-container",15),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.diff.removed),B(1),D("ngIf",a.diff.added))},l_a=function(a,b){a&1&&(F(0,"div",14),O(1,f_a,5,3,"span",15),O(2,k_a,3,2,"div",15),G());a&2&&(a=b.$implicit,B(1),D("ngIf","SINGLE_VALUE"==a.diffType),B(1),D("ngIf","COLLECTION"==a.diffType))},m_a=function(a,b){a&1&&(F(0,"li",5)(1,"div",6),H(2,"b-user-image",7),G(),F(3,"div",8)(4,"h4"),H(5,"b-user-display-name",9),F(6,
"span",10),H(7,"b-formatted-date-time",11),G()(),F(8,"div",12),O(9,l_a,3,2,"div",13),G()()());a&2&&(a=b.$implicit,b=K(),B(2),D("email",b.userToDisplay(a.author)),B(3),D("email",b.userToDisplay(a.author)),B(2),D("timestamp",a.timestamp),B(2),D("ngForOf",a.diffs))},n_a=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"}},p_a=function(a){a&1&&(F(0,"a",25),P(1," Learn more "),G());a&2&&(K(),D("href",o_a(),Ud))},q_a=function(a){a&1&&(F(0,"div"),H(1,"b-spinner"),F(2,"span"),P(3,"Loading..."),G()())},r_a=function(a){a&1&&(F(0,"div",2),O(1,q_a,4,0,"div",3),G());if(a&2){a=K();var b=M(2);B(1);D("ngIf",a.isInitiallyLoading)("ngIfElse",b)}},s_a=function(a){a&1&&(F(0,"span",17)(1,"strong"),P(2),G(),P(3," of "),F(4,"strong"),P(5),G()());a&2&&(a=K(4),B(2),Le("",a.startIndex,"\u2013",a.endIndex,
""),B(3),Ke(a.totalText))},t_a=function(a){if(a&1){var b=y();F(0,"div",11);O(1,s_a,6,3,"span",12);F(2,"b-button",13);J("onAction",function(){z(b);var c=K(3);return A(c.fetchIssues(c.page-1))});H(3,"b-icon",14);G();F(4,"b-button",15);J("onAction",function(){z(b);var c=K(3);return A(c.fetchIssues(c.page+1))});H(5,"b-icon",16);G()()}a&2&&(a=K(3),B(1),D("ngIf",!a.isRefreshing),B(1),D("disabled",1>=a.page),B(2),D("disabled",a.page>=a.numPages))},v_a=function(a){if(a&1){var b=y();F(0,"button",18);J("click",
function(){z(b);var c=K(3),d={},e={};c.enableDupSearchControl&&(d.experimentIds=["44573608"]);c.enableDupSearchA&&(d.experimentIds=["44573610"]);c.enableDupSearchB&&(d.experimentIds=["44573612"]);c.enableDupSearchC&&(d.experimentIds=["44573614"]);e.groupName=c.getGroupName();d.customData=e;u_a(c.hatsService,"HFPx18aEL0g6pPHSLo10YtkWxxH9",d).pipe(jg(c.destroyed$)).subscribe();return A()});H(1,"mat-icon",19);G()}},x_a=function(a){a&1&&(F(0,"li")(1,"h3"),P(2),G(),O(3,t_a,6,3,"div",9),O(4,v_a,2,0,"button",
10),G());a&2&&(a=K(2),B(2),Ke(w_a(a)),B(1),D("ngIf",!a.enableSimilarIssues),B(1),D("ngIf",a.showSuggestedDupes))},y_a=function(a){a&1&&(F(0,"div",20),P(1,"There may already be issues opened on this topic. Please consider +1 to the canonical issue if that is the case."),G())},z_a=function(a){if(a&1){var b=y();F(0,"b-issue-card",26,27);J("init",function(){z(b);var e=K(4);Zn(e.analytics,ao.MAGIC_BOX,"titleHoverOver",e.getGroupName());return A()});G()}if(a&2){var c=M(1);a=K().$implicit;var d=K(3);D("onedevIsHovercardReady",
c.init)("issueId",a.id)("location",d.CATEGORIES.MAGIC_BOX+d.getGroupName())}},A_a=function(a,b){if(a&1){var c=y();F(0,"li",22)(1,"onedev-hovercard",null,23);O(3,z_a,2,3,"b-issue-card",24);G();F(4,"a",25);J("click",function(){z(c);var e=K(3);Zn(e.analytics,ao.MAGIC_BOX,"titleClick",e.getGroupName());return A()});P(5);G()()}if(a&2){a=b.$implicit;var d=M(2);b=K(3);D("ngClass",b.enableSimilarIssues?"magic-box-item-new":"magic-box-item");B(4);Ge("href","issues/",a.id,"",Ud);D("onedevHovercardTrigger",
d);B(1);Je(" ",a.title," ")}},B_a=function(a){a&1&&(ze(0),O(1,A_a,6,4,"li",21),Ae());a&2&&(a=K(2),B(1),D("ngForOf",a.magicBoxIssues))},C_a=function(a){a&1&&(F(0,"li"),P(1),G());a&2&&(a=K(2),B(1),Je(" No ",w_a(a).toLowerCase()," found. "))},D_a=function(a){a&1&&(F(0,"li",28)(1,"a",29),P(2," View All Issues \u2192 "),G()());a&2&&(a=K(2),B(1),He("href",a.viewAllHref,Ud))},E_a=function(a){if(a&1){var b=y();F(0,"li",30)(1,"button",31);J("click",function(){z(b);var c=K(2);c.fetchIssues(c.page+1);Zn(c.analytics,
ao.MAGIC_BOX,"loadMore");return A()});H(2,"mat-icon",32);P(3," Load more ");G()()}},F_a=function(a){if(a&1){var b=y();F(0,"li",33)(1,"a",29)(2,"button",34);J("click",function(){z(b);var c=K(2);Zn(c.analytics,ao.MAGIC_BOX,"viewAll");return A()});P(3,"View all ");H(4,"mat-icon",35);G()()()}a&2&&(a=K(2),B(1),He("href",a.viewAllHref,Ud))},G_a=function(a){a&1&&(F(0,"li"),H(1,"b-spinner"),F(2,"span"),P(3,"Loading..."),G()())},H_a=function(a){a&1&&(F(0,"ul"),O(1,x_a,5,3,"li",4),O(2,y_a,2,0,"div",5),O(3,
B_a,2,1,"ng-container",4),O(4,C_a,2,1,"li",4),O(5,D_a,3,1,"li",6),O(6,E_a,4,0,"li",7),O(7,F_a,5,1,"li",8),O(8,G_a,4,0,"li",4),G());a&2&&(a=K(),B(1),D("ngIf",!a.hideHeader),B(1),D("ngIf",a.showSuggestedDupes),B(1),D("ngIf",!a.isRefreshing),B(1),D("ngIf",0==a.magicBoxIssues.length&&!a.isRefreshing),B(1),D("ngIf",!a.isRefreshing&&1<a.numPages&&!a.enableSimilarIssues),B(1),D("ngIf",!a.isRefreshing&&a.endIndex<a.numTotalResults&&a.enableSimilarIssues),B(1),D("ngIf",!a.isRefreshing&&1<a.numPages&&a.enableSimilarIssues),
B(1),D("ngIf",a.isRefreshing))},J_a=function(a){var b=new Set,c=0;a=r(a.matchAll(I_a));for(var d=a.next();!d.done;d=a.next())if(d=r(d.value).next().value,!b.has(d)){c+=d.length;if(2049<c)break;b.add(d)}return[].concat(v(b))},K_a=function(a){a&1&&Be(0)},M_a=function(a){a&1&&(ze(0),O(1,K_a,1,0,"ng-container",8),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Oe(2,L_a,a.value)))},N_a=function(a){a&1&&P(0);a&2&&(a=K(),Ke(a.value||"--"))},O_a=function(a){a&1&&(Uc(),
F(0,"svg",9),H(1,"path",10),G());a&2&&(a=K(),te("centered",a.centerEditIcon))},P_a=function(a){if(a&1){var b=y();F(0,"textarea",14);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),D("ngModel",a.editingValue)("cdkAutosizeMaxRows",a.multilineMaxLines))},Q_a=function(a){if(a&1){var b=y();F(0,"input",15);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.editingValue=c)});G()}a&2&&(a=K(2),D("ngModel",a.editingValue))},R_a=function(a){a&1&&(F(0,"div",11),
O(1,P_a,1,2,"textarea",12),O(2,Q_a,1,1,"ng-template",null,13,Pf),G());if(a&2){var b=M(3);a=K();B(1);D("ngIf",a.allowMultipleLines)("ngIfElse",b)}},S_a=function(){},T_a=function(a){a&1&&H(0,"span",2);a&2&&(a=K(),D("@indicatorRotate",a._getExpandedState()))},U_a=function(a){if(a&1){var b=y();F(0,"b-hotlist-picker",24);J("onApply",function(c){z(b);var d=K();return A(d.handleHotlistPickerSave(c))})("onLoad",function(c){z(b);var d=K();return A(d.loadHotlist(c))})("onCreate",function(c){z(b);var d=K();
return A(d.createHotlist(c))});G()}a&2&&(a=K(),D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},X_a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),P(3),G(),F(4,"a",27),P(5,"View access settings"),G()());a&2&&(a=K(),D("ngClass",Pe(5,V_a,zs(a),As(a))),B(1),D("name","alert")("size","small"),B(2),Je("",W_a(a),"\u00a0"),B(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,"access"):"",Ud))},$_a=function(a){a&1&&(F(0,"div",30),P(1),
G());a&2&&(a=K(2),B(1),Je(" Error: The following required field(s) have not been filled: ",Y_a(a).concat(Z_a(a)).join(", ")," "))},a0a=function(a){a&1&&(F(0,"div",30),P(1),G());if(a&2){a=K(2);B(1);var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');Je(" Error: The following field(s) have invalid values: ",b?b.join(" & ")+" must be"+((1>=b.length?" a":"")+" comma separated list")+((1<b.length?"s":"")+
" of issue IDs"):""," ")}},b0a=function(a){a&1&&(F(0,"div",30),P(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),G())},c0a=function(a){a&1&&(F(0,"div",28),O(1,$_a,2,1,"div",29),O(2,a0a,2,1,"div",29),O(3,b0a,2,0,"div",29),G());a&2&&(a=K(),B(1),D("ngIf",0!==Y_a(a).length||0!==Z_a(a).length),B(1),D("ngIf",!a.isBlockedByIssueIdValid||!a.isBlockingIssueIdValid||!a.isParentIssueIdsValid),B(1),D("ngIf",Bs(a.comment)))},d0a=function(a,b){if(a&1){var c=y();
F(0,"div",33)(1,"b-hotlist-chip",34);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(e.removeHotlist(d.hotlistId))});G()()}a&2&&(a=b.$implicit,B(1),D("hotlist",a))},e0a=function(a){a&1&&(F(0,"div",31),O(1,d0a,2,1,"div",32),G());a&2&&(a=K(),B(1),D("ngForOf",a.selectedHotlists))},f0a=function(a,b){if(a&1){var c=y();F(0,"button",43);J("click",function(){var d=z(c).$implicit,e=K(2);e.selectedTemplate=d;e.getIssueTemplate();return A()});P(1);G()}a&2&&(a=b.$implicit,B(1),Ke(a.name))},
g0a=function(a){if(a&1){var b=y();F(0,"button",43);J("click",function(){z(b);var c=K(2);c.selectedTemplate=c.availableExistingIssueTemplate;c.getIssueTemplate();return A()});P(1);G()}a&2&&(a=K(2),B(1),Ke(a.availableExistingIssueTemplate.name))},h0a=function(a){a&1&&(F(0,"div",35)(1,"div",14)(2,"label",36),P(3,"Template"),G()(),F(4,"button",37),P(5),H(6,"b-icon",38),G(),F(7,"mat-menu",39,40),O(9,f0a,2,1,"button",41),O(10,g0a,2,1,"button",42),G()());if(a&2){var b=M(8);a=K();var c;B(4);D("matMenuTriggerFor",
b);B(1);Ke(null!==(c=null==a.selectedTemplate?null:a.selectedTemplate.name)&&void 0!==c?c:"");B(2);D("overlapTrigger",!0);B(2);D("ngForOf",a.availablePredefinedTemplates);B(1);D("ngIf",a.availableExistingIssueTemplate)}},i0a=function(a){a&1&&(F(0,"div",44)(1,"div",30),P(2," You do not have permission to create issues in this component. "),G()())},j0a=function(a){if(a&1){var b=y();F(0,"div",66)(1,"b-magic-box",67);J("headerChange",function(c){z(b);var d=K(3);return A(d.magicBoxHeader=c)});G()()}a&
2&&(a=K(3),B(1),D("componentId",a.issue.componentId)("hideHeader",!0)("showInline",a.showRecentIssuesInline)("issueTitle",a.issue.title)("issue",a.issue)("customFieldMap",a.customFieldMap))},l0a=function(a){if(a&1){var b=y();F(0,"div",62)(1,"div",63)(2,"a",64);J("click",function(){z(b);var c=K(2);return A(k0a(c))})("keydown.enter",function(){z(b);var c=K(2);return A(k0a(c))})("keydown.space",function(){z(b);var c=K(2);return A(k0a(c))});P(3);G()();O(4,j0a,2,6,"div",65);G()}a&2&&(a=K(2),B(3),Le(" ",
a.showRecentIssuesInline?"Hide":"View"," ",a.magicBoxHeader.toLowerCase()," "),B(1),D("ngIf",!a.showRecentIssuesInline&&a.issue.componentId))},m0a=function(a,b){if(a&1){var c=y();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.setPriority(d.value))});P(1);G()}a&2&&(a=b.$implicit,B(1),Ke(a.displayText))},n0a=function(a){if(a&1){var b=y();F(0,"div",35)(1,"div",14)(2,"label",68);P(3,"Priority");G()();F(4,"button",69);P(5);H(6,"b-icon",38);G();F(7,"mat-menu",39,70)(9,"button",
71);J("click",function(){z(b);var d=K(2);return A(d.setPriority())});P(10,"--");G();O(11,m0a,2,1,"button",72);G()()}if(a&2){var c=M(8);a=K(2);B(4);D("matMenuTriggerFor",c);oe("aria-label","Priority, required"+(a.issue.priority?", "+a.issue.priority:""));B(1);Je("",a.issue.priority?a.issue.priority:"--"," ");B(2);D("overlapTrigger",!0);B(4);D("ngForOf",a.priorityChoices)}},p0a=function(a,b){if(a&1){var c=y();F(0,"button",76);J("click",function(){var d=z(c).$implicit,e=K(3);return A(o0a(e,d.value))});
P(1);G()}a&2&&(a=b.$implicit,He("title",a.altText||""),B(1),Ke(a.displayText))},q0a=function(a){if(a&1){var b=y();F(0,"div",35)(1,"div",14)(2,"label",73);P(3,"Type");G()();F(4,"button",69);Q(5,"enumToHuman");P(6);Q(7,"enumToHuman");H(8,"b-icon",38);G();F(9,"mat-menu",39,74)(11,"button",71);J("click",function(){z(b);var d=K(2);return A(o0a(d))});P(12,"--");G();O(13,p0a,2,2,"button",75);G()()}if(a&2){var c=M(10);a=K(2);B(4);D("matMenuTriggerFor",c);oe("aria-label","Type, required"+(a.issue.type?R(5,
5,", "+a.issue.type):""));B(2);Je("",R(7,7,a.issue.type||"--")," ");B(3);D("overlapTrigger",!0);B(4);D("ngForOf",a.issueTypeChoices)}},r0a=function(a){if(a&1){var b=y();F(0,"div",77)(1,"div",14)(2,"label",78);P(3,"Assignee");G()();F(4,"div",79)(5,"input",80);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.assigneeText=c)});G()()()}a&2&&(a=K(2),B(5),D("ngModel",a.assigneeText)("bContactAutocomplete","SINGLE"))},t0a=function(a){if(a&1){var b=y();F(0,"div",81)(1,"div",14)(2,"label",82);P(3,
"CC");G()();F(4,"div",79)(5,"input",83);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.ccsText=s0a(c))});G()()()}a&2&&(a=K(2),B(5),D("ngModel",Cs(a.ccsText))("bContactAutocomplete","MULTI"))},u0a=function(a,b){if(a&1){var c=y();F(0,"button",71);J("click",function(){var d=z(c).$implicit,e=K(3);return A(e.issue.severity=e.toIssueSeverity(d.value))});P(1);G()}a&2&&(a=b.$implicit,B(1),Ke(a.displayText))},v0a=function(a){a&1&&(F(0,"span"),P(1,"*"),G())},w0a=function(a){a&1&&(F(0,"span"),P(1,
"*"),G())},x0a=function(a){a&1&&(F(0,"span"),P(1,"*"),G())},y0a=function(a){if(a&1){var b=y();F(0,"div",91)(1,"div",14)(2,"label",109);P(3," Parents ");O(4,x0a,2,0,"span",20);G()();F(5,"input",110);J("ngModelChange",function(c){z(b);var d=K(3);d.parentIssueIds=Ds(d,c).map(Mn);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Cs(d.parentIssueIds));return A()});G()()}a&2&&(a=K(3),B(4),D("ngIf",!a.isParentIssueIdsValid),B(1),D("ngModel",Cs(a.parentIssueIds)))},z0a=function(a){a&1&&(F(0,"span"),P(1,
"*"),G())},A0a=function(a){if(a&1){var b=y();F(0,"div",91)(1,"div",14)(2,"label",111);P(3," Children ");O(4,z0a,2,0,"span",20);G()();F(5,"input",112);J("ngModelChange",function(c){z(b);var d=K(3);d.childrenIssueIds=Ds(d,c).map(Mn);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Cs(d.childrenIssueIds));return A()});G()()}a&2&&(a=K(3),B(4),D("ngIf",!a.isChildIssueIdsValid),B(1),D("ngModel",Cs(a.childrenIssueIds)))},B0a=function(a){if(a&1){var b=y();F(0,"onedev-text-field",116);J("valueChange",function(d){z(b);
var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);Ge("id","bv2-custom-field-",a.customFieldId,"");D("value",a.textValue);oe("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},C0a=function(a){if(a&1){var b=y();F(0,"onedev-numeric-field",116);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);Ge("id","bv2-custom-field-",
a.customFieldId,"");D("value",a.numericValue);oe("required",c.isCustomFieldRequired(a))("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},D0a=function(a){if(a&1){var b=y();F(0,"div")(1,"bv2-input-date-picker",117);J("boundValueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()()}if(a&2){a=K(2).$implicit;var c=K(3);B(1);He("bv2AriaLabelledby","bv2-custom-field-"+a.customFieldId+"-label");D("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id",
"bv2-custom-field-"+a.customFieldId)}},E0a=function(a){if(a&1){var b=y();F(0,"onedev-single-select",118);J("valueChange",function(d){z(b);var e=K(2).$implicit,f=K(3);return A(f.setCustomFieldValue(e,d))});G()}if(a&2){a=K(2).$implicit;var c=K(3);D("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0);oe("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},F0a=function(a,b){a&1&&(F(0,"div"),O(1,B0a,1,4,"onedev-text-field",114),O(2,C0a,1,4,"onedev-numeric-field",
114),O(3,D0a,2,4,"div",20),O(4,E0a,1,4,"onedev-single-select",115),G());a&2&&(a=b.ngIf,b=K(4),B(1),D("ngIf",a===b.FieldType.TEXT),B(1),D("ngIf",a===b.FieldType.NUMERIC),B(1),D("ngIf",a===b.FieldType.DATE),B(1),D("ngIf",a===b.FieldType.ENUM))},G0a=function(a,b){if(a&1){var c=y();F(0,"div")(1,"b-list-field",119);J("valuesChange",function(e){z(c);var f=K().$implicit,h=K(3);return A(h.setCustomFieldValue(f,e.values))});G()()}if(a&2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);D("defaultLineCount",2)("type",
a)("values",d.getListFieldValues(b))("enumChoices",d.customFieldAllowedValuesMap[b.customFieldId]||null)("truncate",!0);oe("aria-labelledby","bv2-custom-field-"+b.customFieldId+"-label")}},I0a=function(a,b){a&1&&(F(0,"div",91)(1,"div",14)(2,"label",113),P(3),G()(),O(4,F0a,5,4,"div",20),O(5,G0a,2,6,"div",20),G());if(a&2){a=b.$implicit;b=K(3);B(2);Ge("id","bv2-custom-field-",a.customFieldId,"-label");var c=b.customFieldMap[a.customFieldId];He("title",(c&&c.description?c.description:"Custom Field")+
" [ID: "+a.customFieldId+"]");D("ngClass",Oe(7,H0a,b.isCustomFieldRequired(a)));var d=(c=b.customFieldMap[a.customFieldId])?c.name:"";c&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&(d+=", required field");oe("aria-label",d);B(1);Je(" ",b.getCustomFieldName(a)," ");B(1);D("ngIf",b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]));B(1);D("ngIf",b.getListFieldType(b.customFieldMap[a.customFieldId]))}},J0a=function(a){if(a&1){var b=y();F(0,"mat-expansion-panel",84)(1,
"mat-expansion-panel-header")(2,"mat-panel-title");P(3," Advanced fields (Required fields marked with");F(4,"span",85);P(5,"*");G();P(6,") ");G()();F(7,"div",86)(8,"div",87)(9,"div",14)(10,"label",88);P(11," Severity ");G()();F(12,"button",89);P(13);H(14,"b-icon",38);G();F(15,"mat-menu",39,90);O(17,u0a,2,1,"button",72);G()();F(18,"div",91)(19,"div",14)(20,"label",92);P(21," Found in ");G()();F(22,"input",93);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.foundInVersion=s0a(d))});G()();
F(23,"div",94)(24,"div",14)(25,"label",95);P(26," In prod ");G()();F(27,"mat-slide-toggle",96);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.inProd=d)});G()();H(28,"div",55);F(29,"div",91)(30,"div",14)(31,"label",97);P(32," Reporter ");G()();F(33,"input",98);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.reporterText=d)});G()();F(34,"div",91)(35,"div",14)(36,"label",99);P(37," Verifier ");G()();F(38,"input",100);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.verifierText=
d)});G()();F(39,"div",91)(40,"div",14)(41,"label",101);P(42," Targeted to ");G()();F(43,"input",102);J("ngModelChange",function(d){z(b);var e=K(2);return A(e.issue.targetedToVersion=s0a(d))});G()();H(44,"div",55);F(45,"div",91)(46,"div",14)(47,"label",103);P(48," Blocked by ");O(49,v0a,2,0,"span",20);G()();F(50,"input",104);J("ngModelChange",function(d){z(b);var e=K(2);e.issue.blockedByIssueId=Ds(e,d);e.isBlockedByIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Cs(e.issue.blockedByIssueId));return A()});
G()();F(51,"div",91)(52,"div",14)(53,"label",105);P(54," Blocking ");O(55,w0a,2,0,"span",20);G()();F(56,"input",106);J("ngModelChange",function(d){z(b);var e=K(2);e.issue.blockingIssueId=Ds(e,d);e.isBlockingIssueIdValid=e.ISSUE_ID_LIST_PATTERN.test(Cs(e.issue.blockingIssueId));return A()});G()();O(57,y0a,6,2,"div",107);O(58,A0a,6,2,"div",107);H(59,"div",55);O(60,I0a,6,9,"div",108);G()()}if(a&2){var c=M(16);a=K(2);B(12);D("matMenuTriggerFor",c);oe("aria-label","Severity"+(a.issue.severity?", "+a.issue.severity:
""));B(1);Ke(a.issue.severity);B(2);D("overlapTrigger",!0);B(2);D("ngForOf",a.severityChoices);B(5);D("ngModel",Cs(a.originalIssueCopy.foundInVersion));B(5);D("ngModel",a.issue.inProd);B(6);D("ngModel",a.reporterText)("bContactAutocomplete","SINGLE");B(5);D("ngModel",a.verifierText)("bContactAutocomplete","SINGLE");B(5);D("ngModel",Cs(a.originalIssueCopy.targetedToVersion));B(6);D("ngIf",!a.isBlockedByIssueIdValid);B(1);D("ngModel",Cs(a.issue.blockedByIssueId));B(5);D("ngIf",!a.isBlockingIssueIdValid);
B(1);D("ngModel",Cs(a.issue.blockingIssueId));B(1);D("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(1);D("ngIf",a.enableWtdmMvpUi&&!a.sessionIsExternal);B(2);D("ngForOf",a.issue.customField)}},K0a=function(a){a&1&&(F(0,"div",25),H(1,"b-icon",26),F(2,"span"),P(3),G(),F(4,"a",27),P(5,"View access settings"),G()());a&2&&(a=K(2),D("ngClass",Pe(5,V_a,zs(a),As(a))),B(1),D("name","alert")("size","small"),B(2),Je("",W_a(a),"\u00a0"),B(1),D("href",a.selectedComponent?a.paths.manageComponent(a.selectedComponent.componentId,
"access"):"",Ud))},N0a=function(a){if(a&1){var b=y();F(0,"div");O(1,l0a,5,3,"div",45);F(2,"div",12)(3,"div",13)(4,"div",14)(5,"label",46);P(6,"Title");G()();F(7,"div",47)(8,"input",48);J("ngModelChange",function(c){z(b);var d=K();return A(d.setTitle(c))});G()()();O(9,n0a,12,5,"div",18);O(10,q0a,14,9,"div",18);G();F(11,"div",12);O(12,r0a,6,2,"div",49);O(13,t0a,6,2,"div",50);G();F(14,"div",51)(15,"div",12)(16,"div",13)(17,"div",14)(18,"label",52);P(19,"Description");G()();F(20,"b-comment-box",53);J("commentChange",
function(c){z(b);var d=K();return A(d.comment=c)})("onChange",function(){z(b);var c=K();return A(c.saveCommentDraft())})("onSubmit",function(c){z(b);var d=K();return A(L0a(d,!c))})("onRestrict",function(){z(b);var c=K();return A(c.showNewContentJudgementDialog())});H(21,"b-markdown-toggle",54);G()()();H(22,"div",55);F(23,"div",56);O(24,J0a,61,19,"mat-expansion-panel",57);G();O(25,K0a,6,8,"div",9);F(26,"div",58)(27,"b-button",59);J("onAction",function(){z(b);var c=K();return A(L0a(c,!0))});P(28," Create ");
G();F(29,"b-button",60);J("onAction",function(){z(b);var c=K();return A(L0a(c,!1))});P(30," Create & Start Another ");G();F(31,"b-button",61);J("onAction",function(){z(b);var c=K();c.draftStore.$window.sessionStorage.removeItem(qo(0));c.$route.reload();return A()});P(32," Discard ");G()()()()}a&2&&(a=K(),B(1),D("ngIf",a.selectedComponent),B(7),D("ngModel",a.issue.title)("bFocus",a.newIssueStarted),B(1),D("ngIf",a.canEditIssuesInComponent),B(1),D("ngIf",a.canEditIssuesInComponent),B(2),D("ngIf",a.canEditIssuesInComponent),
B(1),D("ngIf",a.canEditIssuesInComponent),B(7),D("supportsPreview",!0)("comment",a.comment)("loadFormatFromPrefs",!a.isFormatInRoute)("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("componentId",null==a.selectedComponent?null:a.selectedComponent.componentId)("placeholder",a.piiWarningMessage)("idForAriaLabel",a.descriptionBoxId)("audience",a.audience)("ngClass",Oe(23,M0a,Bs(a.comment))),B(1),D("initialValue",a.comment.formattingMode),B(3),D("ngIf",a.canEditIssuesInComponent),
B(1),D("ngIf",zs(a)||As(a)),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent),B(2),D("disabled",a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent))},O0a=function(a,b){a&1&&(F(0,"h2",120),P(1,"This component has a default description"),G(),F(2,"mat-dialog-content"),P(3," You have already entered a description, but the component you chose has a default description: "),
F(4,"div",121),P(5),G()(),F(6,"mat-dialog-actions")(7,"button",122),P(8,"Use component description"),G(),F(9,"button",123),P(10,"Keep my description"),G()());a&2&&(a=b.$implicit,B(5),Ke(a),B(2),D("mat-dialog-close",!0))},P0a=function(a,b){b.assigneeText=Ol(a.assigneeUser);b.reporterText=Ol(a.reporterUser);b.verifierText=Ol(a.verifierUser);b.ccsText=Pl(a.ccUsers)},Q0a=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=Vl(a.assigneeText));null!=a.reporterText&&(b.reporterUser=Vl(a.reporterText));null!=a.verifierText&&(b.verifierUser=Vl(a.verifierText));if(a.ccsText){c=[];a=r(a.ccsText);for(var d=a.next();!d.done;d=a.next())(d=Vl(d.value))&&c.push(d);c&&(b.ccUsers=c)}},R0a=function(a){a=Object.assign({},a);return delete a.hotlistId,a},S0a=function(a){if(a&1){var b=y();F(0,"b-star-toggle",12);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())});G()}a&2&&(a=K(2),D("starMessage","Star this bookmark group")("unStarMessage",
"Un-star this bookmark group")("starred",a.isStarred))},T0a=function(a){a&1&&H(0,"b-star-toggle",13);a&2&&D("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",!0)("disabled",!0)},U0a=function(a){if(a&1){var b=y();F(0,"div")(1,"div",7);O(2,S0a,1,3,"b-star-toggle",8);O(3,T0a,1,4,"b-star-toggle",9);F(4,"span",10);P(5);F(6,"span")(7,"button",11);J("click",function(){z(b);
var c=K();return A(c.editBookmarkGroup())});G()()()()()}a&2&&(a=K(),B(2),D("ngIf",!a.isAdmin),B(1),D("ngIf",a.isAdmin),B(2),Je("",a.bookmarkGroup.name," "))},X0a=function(a){if(a&1){var b=y();F(0,"b-saved-search-panel",17);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(V0a(k,h,f))})("selectionChange",function(f){z(b);var h=K(2);return A(W0a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;
c=c.last;var e=K();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",a.resourceId)("first",d)("last",c)}},Y0a=function(a){if(a&1){var b=y();F(0,"b-hotlist-panel",18);J("focusedRowIndexChange",function(f){z(b);var h=K().$implicit,k=K();return A(V0a(k,h,f))})("selectionChange",function(f){z(b);var h=K(2);return A(W0a(h,f))})("resultsLoaded",function(f){z(b);var h=K(2);return A(h.loadHotlists(f))});G()}if(a&2){var c=K();a=c.$implicit;var d=c.first;c=c.last;
var e=K();D("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",a.resourceId)("first",d)("last",c)}},Z0a=function(a,b){a&1&&(F(0,"div",14),O(1,X0a,1,6,"b-saved-search-panel",15),O(2,Y0a,1,6,"b-hotlist-panel",16),G());a&2&&(D("ngSwitch",b.$implicit.type),B(1),D("ngSwitchCase","SAVED_SEARCH"),B(1),D("ngSwitchCase","HOTLIST"))},$0a=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.archive())});P(1," Archive bookmark group ");
G()}a&2&&(a=K(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},a1a=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.unarchive())});P(1," Unarchive bookmark group ");G()}a&2&&(a=K(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},b1a=function(a){a&1&&(F(0,"span",32),P(1," (archived) "),G())},d1a=function(a,b){if(a&1){var c=y();F(0,"div")(1,"b-hotlist-chip-smart",48);J("removeHotlist",function(){var d=z(c).ngIf,e=K(4);return A(c1a(e,d))});G()()}a&
2&&(a=b.ngIf,B(1),D("id",a))},f1a=function(a,b){if(a&1){var c=y();F(0,"div",49)(1,"a",50);P(2);G();F(3,"span",51);J("click",function(){var e=z(c).ngIf,f=K(4);return A(e1a(f,e))})("keydown.enter",function(){var e=z(c).ngIf,f=K(4);return A(e1a(f,e))})("keydown.space",function(){var e=z(c).ngIf,f=K(4);return A(e1a(f,e))});P(4," \u00d7 ");G()()}if(a&2){a=b.ngIf;b=K().$implicit;var d=K(3);B(1);D("href",d.paths.viewSavedSearch(a),Ud)("matTooltip","Go to saved search: "+d.getDisplayName(b));B(1);Je(" S: ",
d.getDisplayName(b)," ");B(1);D("matTooltip","Remove item: "+d.getDisplayName(b));oe("aria-label","Remove item: "+d.getDisplayName(b))}},g1a=function(a){a&1&&(F(0,"span",52),P(1,"<None>"),G())},h1a=function(a,b){a&1&&(F(0,"div",45),O(1,d1a,2,1,"div",7),O(2,f1a,5,5,"div",46),O(3,g1a,2,0,"span",47),G());if(a&2){a=b.$implicit;b=K(3);B(1);var c;var d="HOTLIST"===a.resourceType?null==(c=a.hotlistId)?void 0:c.toString():void 0;D("ngIf",d);B(1);D("ngIf","SAVED_SEARCH"===a.resourceType?a.savedSearchId:void 0);
B(1);D("ngIf",!(null==b.bookmarkGroupUnderEdit.item?0:b.bookmarkGroupUnderEdit.item.length))}},j1a=function(a,b){if(a&1){var c=y();F(0,"button",61);J("click",function(){var d=z(c).$implicit,e=K(5);return A(i1a(e,d))});P(1);G()}a&2&&(a=b.$implicit,B(1),Je("",a.name," "))},k1a=function(a){a&1&&O(0,j1a,2,1,"button",60);a&2&&(a=K(4),D("ngForOf",a.savedSearchChoices))},l1a=function(a){a&1&&(F(0,"div",53)(1,"label",54),P(2,"Add from saved searches:"),G(),F(3,"button",55)(4,"span",56),P(5,"Select"),G(),
H(6,"mat-icon",57),G(),F(7,"mat-menu",null,58),O(9,k1a,1,1,"ng-template",59),G()());if(a&2){var b=M(8);B(3);D("matMenuTriggerFor",b)}},q1a=function(a){if(a&1){var b=y();ze(0);F(1,"div",30)(2,"label",33)(3,"span",18);P(4,"Selected items");G()();F(5,"div",34,35);O(7,h1a,4,3,"div",36);G()();F(8,"div",37)(9,"div",38)(10,"label",39);P(11,"Add hotlist from favorites:");G();F(12,"b-hotlist-picker",40);J("onApply",function(c){z(b);var d=K(2);return A(m1a(d,c))})("onCreate",function(c){z(b);var d=K(2);return A(n1a(d,
c))})("onLoad",function(c){z(b);var d=K(2);return A(o1a(d,c))});G()();F(13,"div",41)(14,"label",42);P(15,"Add hotlist by query:");G();F(16,"b-hotlist-search",43);J("itemSelect",function(c){z(b);var d=K(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(p1a(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return A()});G()();O(17,l1a,10,1,"div",44);G();Ae()}a&2&&(a=K(2),B(7),D("ngForOf",a.bookmarkGroupUnderEdit.item),B(5),
D("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),D("showGroups",!1)("allowStarring",!1),B(1),D("ngIf",0<a.savedSearchChoices.length))},s1a=function(a){a&1&&(F(0,"span"),P(1),F(2,"a",65),P(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);Je(" Hotlist ",a.hotlistId,": ");B(1);D("href",r1a(b,a),Ud);B(1);Je(" ",a.name||"(name not available)"," ")}},t1a=function(a){a&1&&(F(0,"span"),P(1),F(2,"a",65),P(3),G()());if(a&2){a=K().$implicit;var b=K(3);B(1);Je(" Saved search ",
a.savedSearchId,": ");B(1);D("href",r1a(b,a),Ud);B(1);Je(" ",a.name||"(name not available)"," ")}},u1a=function(a,b){a&1&&(F(0,"li"),O(1,s1a,4,3,"span",7),O(2,t1a,4,3,"span",7),G());a&2&&(a=b.$implicit,B(1),D("ngIf","HOTLIST"===a.resourceType),B(1),D("ngIf","SAVED_SEARCH"===a.resourceType))},v1a=function(a){a&1&&(F(0,"div",62)(1,"label")(2,"span",18),P(3,"Items"),G()(),F(4,"div",63)(5,"ul"),O(6,u1a,3,2,"li",64),G()()());a&2&&(a=K(2),B(6),D("ngForOf",a.bookmarkGroup.item))},w1a=function(a){if(a&1){var b=
y();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});P(2," Update ");G();F(3,"button",68);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});P(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},x1a=function(a){if(a&1){var b=y();F(0,"div",66)(1,"button",67);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});P(2," Update ");G();F(3,"button",68);J("click",function(){z(b);
var c=K(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},A1a=function(a){if(a&1){var b=y();ze(0);F(1,"div",9)(2,"h2");P(3);G();O(4,b1a,2,0,"span",10);F(5,"a",11);P(6," (View Dashboard)");G()();F(7,"mat-tab-group",12);J("selectedIndexChange",function(d){z(b);var e=K();return A(e.selectedTabIndex=d)})("selectedIndexChange",function(d){z(b);var e=
K();return A(e.tabChange(d))});F(8,"mat-tab",13)(9,"div",14);H(10,"b-error-banner",15);F(11,"div",16)(12,"label",17)(13,"span",18);P(14,"Name");G()();F(15,"input",19,20);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.name=d)});G()();F(17,"div",16)(18,"label",21)(19,"span",18);P(20,"Description");G()();F(21,"textarea",22);J("ngModelChange",function(d){z(b);var e=K();return A(e.bookmarkGroupUnderEdit.description=d)});G()();O(22,q1a,18,7,"ng-container",23);O(23,v1a,7,
1,"ng-template",null,24,Pf);O(25,w1a,5,1,"div",25);G()();F(26,"mat-tab",26)(27,"div",14)(28,"div",16)(29,"label")(30,"span",18);P(31,"Admins");G();F(32,"p",27);P(33," Edit access controls, edit name and description, reorder items, add/remove items ");G()();F(34,"b-multi-user-input",28);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.admins=d)})("isValid",function(d){z(b);var e=K();return A(e.isAdminsFieldValid=d)});G()();F(35,"div",16)(36,"label")(37,"span",18);P(38,"View only");
G();F(39,"p",27);P(40," View the bookmark group ");G();F(41,"b-multi-user-input",29);J("usersChange",function(d){z(b);var e=K();return A(e.accessPolicyUnderEdit.readers=d)})("isValid",function(d){z(b);var e=K();return A(e.isReaderFieldValid=d)});G()()();F(42,"div",30);P(43," See ");F(44,"a",31);P(45,"access control documentation");G();P(46," for an explanation of the settings. ");G();O(47,x1a,5,1,"div",25);G()()();Ae()}if(a&2){var c=M(24);a=K();B(3);Le(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,
": ",a.bookmarkGroup.name," ");B(1);D("ngIf",a.isArchived());B(1);D("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Ud);B(2);D("selectedIndex",a.selectedTabIndex);B(3);D("error",a.error);B(1);D("ngClass",Oe(28,Es,a.isEditDisabled()));B(4);D("ngModel",a.bookmarkGroupUnderEdit.name)("disabled",a.isEditDisabled());B(2);D("ngClass",Oe(30,Es,a.isEditDisabled()));B(4);D("ngModel",a.bookmarkGroupUnderEdit.description)("disabled",a.isEditDisabled());B(1);D("ngIf",a.isAdmin)("ngIfElse",c);B(3);D("ngIf",
a.isAdmin);B(3);D("ngClass",Oe(32,Es,a.isEditDisabled()));B(6);te("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.admins);B(1);D("ngClass",Oe(34,Es,a.isEditDisabled()));B(6);te("disabled",a.isEditDisabled());D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Oe(38,y1a,Oe(36,z1a,a.accessPolicyUnderEdit.admins)));B(3);D("href",yo(a.documentationLinks)+"#bookmark-groups",Ud);B(3);D("ngIf",a.isAdmin)}},B1a=function(a,b){if(a&&a.length)return a.map(b)},
C1a=function(a){return{filename:a.getFilename(),lineNumber:ob(a,2),changeNumber:fj(a,3)}},D1a=function(a){return{packageName:W(a,1),fileMentionSet:B1a(xb(a,Fs,2),C1a)}},E1a=function(a){return{totalMentions:fj(a,1),truncated:bj(a,2),packageMentionSet:B1a(xb(a,Gs,3),D1a)}},F1a=function(a){a&1&&H(0,"b-live-preview",10);a&2&&(a=K(),D("comment",a.newComment.text)("issueId",a.origComment.issueId)("audience",a.origComment.audience)("formattingMode",a.newComment.formattingMode))},G1a=function(a){var b=[],
c=new Map;a=r(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(v(e.relations),v(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},H1a=function(a){if(a&1){var b=y();F(0,"b-insights-graph-menu",28);J("openSidebar",function(c){z(b);K(4).issueInsightsSidebarService.openSidebar(c.panel);return A()});G()}a&2&&(a=K().ngIf,D("availablePanels",a))},I1a=function(a){a&1&&(F(0,"onedev-feature-tooltip-controller")(1,
"onedev-feature-tooltip",29)(2,"p",30),P(3,"Incident Context"),G(),P(4," Check incident context to learn more about this alert. "),G()());a&2&&(a=K(4),B(1),D("customPositions",a.insightsFeatureTooltipPositions))},J1a=function(a,b){a&1&&(ze(0),O(1,H1a,1,1,"b-insights-graph-menu",27),Q(2,"async"),O(3,I1a,5,1,"onedev-feature-tooltip-controller",12),Ae());a&2&&(a=b.ngIf,b=K(3),B(1),D("ngIf",R(2,2,b.issueInsightsSidebarService.shouldShowInsightsGraphMenu$)),B(2),D("ngIf",a.has("incidents")))},K1a=function(a){if(a&
1){var b=y();F(0,"g3c-widget-entry",31);J("userActionPerformed",function(c){z(b);var d=K(3);Zn(d.analytics,ao.G3C_WIDGET,c);return A()});G()}a&2&&(a=K(3),D("customWidgetClass","gmat-button medium")("taskId","b/"+a.issueId)("featureHighlightingEnabled",a.enableG3cFeatureHighlighting))},M1a=function(a){if(a&1){var b=y();F(0,"div",17)(1,"button",18);J("onHotkey",function(){z(b);K(2).refreshMonitor.refreshRequest.next();return A()})("click",function(){z(b);K(2).refreshMonitor.refreshRequest.next();return A()});
H(2,"mat-icon",19);G();H(3,"span",20);F(4,"div",21)(5,"edit-issue-controls",22);J("onHotkey",function(){z(b);var f=K(2);f.savingState.get("status")||(f.issue.duplicateOfIssueId?f.clearCanonicalIssue():L1a(f.issueMarkAsDuplicateDialogService,f.issueId));return A()})("onVote",function(){z(b);var f=K(2);return A(f.onVote())})("quickAction",function(f){z(b);var h=K(2);return A(h.performQuickAction("appbar",f))})("markAsDuplicate",function(){z(b);var f=K(2);return A(L1a(f.issueMarkAsDuplicateDialogService,
f.issueId))})("clearCanonical",function(){z(b);var f=K(2);return A(f.clearCanonicalIssue())});Q(6,"async");Q(7,"async");Q(8,"async");Q(9,"async");G()();F(10,"b-hotlist-picker",23,24);J("onHotkey",function(){z(b);var f=M(11);return A(f.open())})("onApply",function(f){z(b);var h=K(2);return A(h.handleHotlistPickerSave(f))})("onCreate",function(f){z(b);var h=K(2);return A(h.createHotlist(f))})("onLoad",function(f){z(b);var h=K(2);return A(h.loadHotlist(f))});G();F(12,"b-notification-menu",25);J("subscriptionChange",
function(f){z(b);var h=K(2);return A(h.updateSubscription(f))})("showNotificationSettings",function(f){z(b);var h=K(2);return A(h.showNotificationSettings(f))});G();O(13,J1a,4,4,"ng-container",12);Q(14,"async");O(15,K1a,1,3,"g3c-widget-entry",26);G()}if(a&2){a=K(2);var c,d,e;B(1);D("hotkey",a.HOTKEYS.REFRESH);B(4);D("issueId",a.issueId)("hasAclToEdit",!!R(6,18,a.issuePermissionService.hasAclToEdit$))("hasAclToComment",!!R(7,20,a.issuePermissionService.hasAclToComment$))("issueStatusQuickAction",null!==
(c=R(8,22,a.issueStatusQuickAction$))&&void 0!==c?c:void 0)("statusIsSaving",!!R(9,24,Hs(a.savingState.propertiesBeingSaved,Mn("status"))))("isDuplicate",!!a.issue.duplicateOfIssueId)("upvoted",null!==(d=null==a.userData?null:a.userData.voted)&&void 0!==d?d:!1)("voteCount",a.voteCount)("hotkey",a.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(5);D("choices",a.hotlists)("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER)("selectedHotlistIds",a.selectedHotlistIds);B(2);D("subscription",null!==(e=null==a.userData?null:a.userData.notificationSubscription)&&
void 0!==e?e:a.UNKNOWN_SUBSCRIPTION)("issueId",a.issueId)("matTooltip","Notification menu");B(1);D("ngIf",R(14,26,a.issueInsightsSidebarService.availablePanels$));B(2);D("ngIf",a.enableG3cWidgetIntegration&&a.frontendIsInternal)}},N1a=function(a){a&1&&(F(0,"span",33)(1,"strong"),P(2),G(),P(3,"\u00a0of\u00a0"),F(4,"strong"),P(5),Q(6,"async"),G()());if(a&2){a=K().ngIf;var b=K(2);B(2);Ke(a);B(3);Ke(R(6,2,b.currentSearchResults.totalText$))}},O1a=function(a,b){a&1&&(ze(0),O(1,N1a,7,4,"span",32),Ae());
a&2&&(a=b.ngIf,B(1),D("ngIf",-1!==a))},P1a=function(a){if(a&1){var b=y();F(0,"div",5)(1,"div",6)(2,"div",7)(3,"button",8);J("onHotkey",function(){z(b);var d=K();return A(Is(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Is(d.currentSearchResults))});Q(4,"async");Q(5,"async");H(6,"mat-icon",9);G();O(7,M1a,16,28,"div",10);G();F(8,"div",11);O(9,O1a,2,1,"ng-container",12);Q(10,"async");F(11,"button",13);J("onHotkey",function(){z(b);var d=K();return A(Js(d.currentSearchResults))})("click",
function(){z(b);var d=K();return A(Js(d.currentSearchResults))});Q(12,"async");H(13,"mat-icon",14);G();F(14,"button",15);J("onHotkey",function(){z(b);var d=K();return A(Ks(d.currentSearchResults))})("click",function(){z(b);var d=K();return A(Ks(d.currentSearchResults))});Q(15,"async");H(16,"mat-icon",16);G()()()()}if(a&2){a=K();var c;B(3);D("hotkey",a.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(c=R(4,9,a.currentSearchResults.backNavigationLabel$))&&void 0!==c?c:"");oe("aria-label",R(5,11,a.currentSearchResults.backNavigationLabel$));
B(4);D("ngIf",a.issue);B(2);D("ngIf",R(10,13,a.currentSearchResults.issueIndex$));B(2);D("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!R(12,15,a.currentSearchResults.hasPreviousIssue$));B(3);D("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!R(15,17,a.currentSearchResults.hasNextIssue$))}},Q1a=function(a){a&1&&(F(0,"div",34),H(1,"b-access-denied-metadata",35),G());a&2&&(a=K(),B(1),D("issueMetadata",a.issueMetadata))},R1a=function(a){a&1&&(F(0,"a",63),P(1,"Learn more"),G())},S1a=function(a){if(a&
1){var b=y();F(0,"b-button",64);J("onAction",function(){z(b);var c=K(3);return A(c.editIssueService.unarchive(c.issueIdString))});P(1,"Unarchive");G()}},T1a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),P(2," This issue has been archived. "),O(3,R1a,2,0,"a",61),G(),F(4,"b-callout-actions"),O(5,S1a,2,0,"b-button",62),Q(6,"async"),G()());a&2&&(a=K(2),D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.frontendIsInternal),B(2),D("ngIf",R(6,4,a.issuePermissionService.hasAclToEdit$)))},
U1a=function(a){a&1&&(F(0,"a",66),P(1,"Learn more"),G())},V1a=function(a){a&1&&(F(0,"b-callout",60)(1,"b-callout-body"),P(2," This issue is in an archived component. "),O(3,U1a,2,0,"a",65),G()());a&2&&(a=K(2),D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.frontendIsInternal))},W1a=function(a){a&1&&H(0,"b-issue-card",74,75);if(a&2){var b=M(1);a=K().ngIf;D("onedevIsHovercardReady",b.init)("issueId",a.issueId)}},X1a=function(a,b){a&1&&(F(0,"div",70),P(1," Duplicate of "),F(2,"a",71),
P(3),Q(4,"v2StatusToHuman"),G(),F(5,"onedev-hovercard",null,72),O(7,W1a,2,2,"b-issue-card",73),G()());if(a&2){a=b.ngIf;var c=M(6);b=K(3);B(2);D("href",b.paths.editIssue(a.issueId),Ud)("onedevHovercardTrigger",c);B(1);ifa(" Issue ",a.issueId," [",R(4,5,null==a.snapshot[0]?null:a.snapshot[0].status),"] (",null==a.snapshot[0]?null:a.snapshot[0].title,") ")}},Y1a=function(a){a&1&&(F(0,"div",70),P(1," Duplicate of "),F(2,"a",76),P(3),G(),P(4,". "),G());if(a&2){a=K().ngIf;var b=K(2);B(2);D("href",b.paths.editIssue(a),
Ud);B(1);Je(" Issue ",a,"")}},Z1a=function(a){a&1&&(F(0,"div",67),O(1,X1a,8,7,"div",68),Q(2,"async"),O(3,Y1a,5,2,"ng-template",null,69,Pf),G());if(a&2){var b=M(4);a=K(2);B(1);D("ngIf",R(2,2,a.canonicalIssue$))("ngIfElse",b)}},$1a=function(a){if(a&1){var b=y();F(0,"div",77);J("click",function(){z(b);var c=K(2);return A(Ls(c,"PARENTS"))})("keydown.enter",function(){z(b);var c=K(2);return A(Ls(c,"PARENTS"))})("keydown.space",function(){z(b);var c=K(2);return A(Ls(c,"PARENTS"))});F(1,"span",47);P(2);
G();H(3,"mat-icon",44);G()}a&2&&(a=K(2),te("expanded","PARENTS"==a.relatedIssuesTrayOpen),D("matTooltip","Parent issues"),oe("aria-expanded","PARENTS"==a.relatedIssuesTrayOpen)("aria-selected","PARENTS"==a.relatedIssuesTrayOpen),B(2),Je("Parents (",Ms(a.parentIssues),")"))},a2a=function(a){if(a&1){var b=y();F(0,"div",78);J("click",function(){z(b);var d=K(2);return A(Ls(d,"CHILDREN"))})("keydown.enter",function(){z(b);var d=K(2);return A(Ls(d,"CHILDREN"))})("keydown.space",function(){z(b);var d=K(2);
return A(Ls(d,"CHILDREN"))});F(1,"span",47);P(2);Q(3,"async");G();H(4,"mat-icon",44);G()}if(a&2){a=K(2);var c;te("expanded","CHILDREN"==a.relatedIssuesTrayOpen);D("matTooltip","Child issues");oe("aria-expanded","CHILDREN"==a.relatedIssuesTrayOpen)("aria-selected","CHILDREN"==a.relatedIssuesTrayOpen);B(2);Je("Children (",null!==(c=R(3,6,a.childIssuesCount$))&&void 0!==c?c:0,")")}},b2a=function(a,b){if(a&1){var c=y();F(0,"div",80);J("click",function(){z(c);var d=K(3);return A(Ls(d,"MENTIONS"))})("keydown.enter",
function(){z(c);var d=K(3);return A(Ls(d,"MENTIONS"))})("keydown.space",function(){z(c);var d=K(3);return A(Ls(d,"MENTIONS"))});F(1,"span",47);P(2);G();H(3,"mat-icon",44);G()}a&2&&(a=b.ngIf,b=K(3),te("expanded","MENTIONS"==b.relatedIssuesTrayOpen),D("matTooltip",b.mentionsLoadingStateTooltipText(a)),oe("aria-expanded","MENTIONS"==b.relatedIssuesTrayOpen)("aria-selected","MENTIONS"==b.relatedIssuesTrayOpen),B(2),Je("TODOs (","OK"===a.loadingState&&a.mentions?a.mentions.totalMentions:"?",")"))},c2a=
function(a){a&1&&(ze(0),O(1,b2a,4,6,"div",79),Q(2,"async"),Ae());a&2&&(a=K(2),B(1),D("ngIf",R(2,1,a.codeMentionsState$)))},g2a=function(a){if(a&1){var b=y();F(0,"div",36);Q(1,"async");O(2,T1a,7,6,"b-callout",37);O(3,V1a,4,3,"b-callout",37);O(4,Z1a,5,4,"div",38);Q(5,"async");F(6,"div",39)(7,"div",40)(8,"div",41)(9,"div",42);J("click",function(){z(b);var c=K();return A(Ls(c,"BLOCKED"))})("keydown.enter",function(){z(b);var c=K();return A(Ls(c,"BLOCKED"))})("keydown.space",function(){z(b);var c=K();
return A(Ls(c,"BLOCKED"))});F(10,"span",43);Q(11,"formatNumberOrUndef");Q(12,"countOpenIssues");P(13);Q(14,"formatNumberOrUndef");Q(15,"countOpenIssues");G();H(16,"mat-icon",44);G();F(17,"div",45);J("click",function(){z(b);var c=K();return A(Ls(c,"BLOCKING"))})("keydown.enter",function(){z(b);var c=K();return A(Ls(c,"BLOCKING"))})("keydown.space",function(){z(b);var c=K();return A(Ls(c,"BLOCKING"))});F(18,"span",43);Q(19,"formatNumberOrUndef");Q(20,"countOpenIssues");P(21);Q(22,"formatNumberOrUndef");
Q(23,"countOpenIssues");G();H(24,"mat-icon",44);G();F(25,"div",46);J("click",function(){z(b);var c=K();return A(Ls(c,"DUPLICATES"))})("keydown.enter",function(){z(b);var c=K();return A(Ls(c,"DUPLICATES"))})("keydown.space",function(){z(b);var c=K();return A(Ls(c,"DUPLICATES"))});F(26,"span",47);P(27);G();H(28,"mat-icon",44);G();O(29,$1a,4,6,"div",48);O(30,a2a,5,8,"div",49);O(31,c2a,3,3,"ng-container",12);G();F(32,"div",50)(33,"div",51)(34,"b-slide-toggle",52);J("modelChange",function(c){z(b);var d=
K();return A(d.preferences.showFullHistory=c)})("modelChange",function(){z(b);var c=K();return A(d2a(c))});G()()()()();F(35,"div",53)(36,"div",54);H(37,"edit-issue-main-content",55);G();F(38,"h3",0);P(39,"Issue metadata");G();F(40,"b-resizable-sidebar",56);J("widthChanged",function(c){z(b);var d=K();return A(e2a(d,c))});F(41,"div",57)(42,"div",58);H(43,"edit-issue-metadata",59);Q(44,"toString");G()()()()()}a&2&&(a=K(),D("ngClass",Pe(59,f2a,R(1,37,a.canonicalIssueId$),a.issue.isArchived||a.inArchivedComponent)),
B(2),D("ngIf",a.issue.isArchived),B(1),D("ngIf",!a.issue.isArchived&&a.inArchivedComponent),B(1),D("ngIf",R(5,39,a.canonicalIssueId$)),B(5),te("expanded","BLOCKED"==a.relatedIssuesTrayOpen),oe("aria-expanded","BLOCKED"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKED"==a.relatedIssuesTrayOpen),B(1),Ie("matTooltip","This issue is blocked by ",R(11,41,R(12,43,a.blockedByIssues))," open issue(s) (",a.blockedByIssues.length," total)"),B(3),Le(" Blocked by ",R(14,45,R(15,47,a.blockedByIssues)),"/",Ms(a.blockedByIssues),
" "),B(4),te("expanded","BLOCKING"==a.relatedIssuesTrayOpen),oe("aria-expanded","BLOCKING"==a.relatedIssuesTrayOpen)("aria-selected","BLOCKING"==a.relatedIssuesTrayOpen),B(1),Ie("matTooltip","This issue is blocking ",R(19,49,R(20,51,a.blockingIssues))," open issue(s) (",a.blockingIssues.length," total)"),B(3),Le(" Blocking ",R(22,53,R(23,55,a.blockingIssues)),"/",Ms(a.blockingIssues),""),B(4),te("expanded","DUPLICATES"==a.relatedIssuesTrayOpen),Ge("matTooltip","This issue has ",a.duplicateIssues.length,
" duplicate(s)"),oe("aria-expanded","DUPLICATES"==a.relatedIssuesTrayOpen)("aria-selected","DUPLICATES"==a.relatedIssuesTrayOpen),B(2),Je("Duplicates (",Ms(a.duplicateIssues),")"),B(2),D("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),D("ngIf",!a.sessionIsExternal&&a.enableWtdmMvpUi),B(1),D("ngIf",a.codeMentionsEnabled),B(3),D("model",a.preferences.showFullHistory)("tooltip",a.preferences.showFullHistory?"Show abridged history (major events only)":"Show full history"),B(3),D("parent",a),B(3),
D("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",a.rightSidebarMinWidth)("size",a.rightSidebarWidth),B(3),D("issueId",R(44,57,a.issueId)))},h2a=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(c.delete())});P(1," Delete saved search ");G()}a&2&&(a=K(),D("disabled",a.hasUnsavedChanges()||a.isSaving()))},i2a=function(a){a&1&&(ze(0),F(1,"div",9)(2,"h2"),P(3," Saved search not found "),G()(),Ae())},j2a=function(a){if(a&1){var b=y();F(0,"div",34)(1,
"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveMetadata())});P(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=K(2);return A(c.revertMetadataChanges())});P(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},k2a=function(a){if(a&1){var b=y();F(0,"div",34)(1,"button",35);J("click",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});P(2," Update ");G();F(3,"button",36);J("click",function(){z(b);var c=
K(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},n2a=function(a){if(a&1){var b=y();ze(0);F(1,"div",9)(2,"h2");P(3);G();F(4,"a",10);P(5," (View Issues)");G()();F(6,"mat-tab-group",11);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});F(7,
"mat-tab",12)(8,"div",13);H(9,"b-error-banner",14);F(10,"div",15)(11,"label",16)(12,"span",17);P(13,"Name");G()();F(14,"input",18,19);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.name=c)});G()();F(16,"div",15)(17,"label",20)(18,"span",17);P(19,"Description");G()();F(20,"textarea",21);J("ngModelChange",function(c){z(b);var d=K();return A(d.savedSearchUnderEdit.description=c)});P(21,"            ");G()();F(22,"div",22)(23,"label",23)(24,"span",17);P(25,"Query");G();F(26,
"p",24);P(27," To modify query and display preferences, run the saved search and modify its parameters ");G();F(28,"div",25);P(29);G()()();O(30,j2a,5,1,"div",26);G()();F(31,"mat-tab",27)(32,"div",13)(33,"div",15)(34,"label",28)(35,"span",17);P(36,"Admins");G();F(37,"p",24);P(38," Edit access controls, edit name and description, edit query ");G()();F(39,"b-multi-user-input",29);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){z(b);var d=
K();return A(d.isAdminsFieldValid=c)});G()();F(40,"div",15)(41,"label",30)(42,"span",17);P(43,"View and execute search");G()();F(44,"b-multi-user-input",31);J("usersChange",function(c){z(b);var d=K();return A(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){z(b);var d=K();return A(d.isReaderFieldValid=c)});G()();F(45,"div",32);P(46," See ");F(47,"a",33);P(48,"access control documentation");G();P(49," for an explanation of the settings. ");G();O(50,k2a,5,1,"div",26);G()()();Ae()}a&2&&(a=
K(),B(3),Le(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(1),D("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Ud),B(2),D("selectedIndex",a.selectedTabIndex),B(3),D("error",a.error),B(1),D("ngClass",Oe(26,Ns,a.isEditDisabled())),B(4),D("ngModel",a.savedSearchUnderEdit.name)("disabled",a.isEditDisabled()),B(2),D("ngClass",Oe(28,Ns,a.isEditDisabled())),B(4),D("ngModel",a.savedSearchUnderEdit.description)("disabled",a.isEditDisabled()),B(9),Je(" ",a.savedSearch.query,
" "),B(1),D("ngIf",a.isAdmin),B(3),D("ngClass",Oe(30,Ns,a.isEditDisabled())),B(6),te("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.admins),B(1),D("ngClass",Oe(32,Ns,a.isEditDisabled())),B(4),te("disabled",a.isEditDisabled()),D("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Oe(36,l2a,Oe(34,m2a,a.accessPolicyUnderEdit.admins))),B(3),D("href",yo(a.documentationLinks)+"#saved-searches",Ud),B(3),D("ngIf",a.isAdmin))},o2a=function(a){a&
1&&(F(0,"div",7),H(1,"b-spinner"),G())},p2a=function(a){if(a&1){var b=y();F(0,"div",39)(1,"span",40)(2,"b-checkbox",41);J("change",function(c){z(b);var d=K(2);return A(d.alertState.setValue(c))});G()();F(3,"div")(4,"strong",42);P(5,"SLO Notifications");G();F(6,"div",43);P(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=K(2),te("bv2-edit-resource-readonly",a.isEditDisabled()),B(2),D("checked",
a.alertState.getValue())("disabled",a.isEditDisabled()))},q2a=function(a){a&1&&(F(0,"div",44),P(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),F(2,"a",45),P(3," Learn more "),G()())},s2a=function(a){if(a&1){var b=y();F(0,"b-button",50);J("onAction",function(){z(b);var c=K(3);return A(r2a(c,!0))});P(1," Archive ");G()}a&2&&(a=K(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},t2a=function(a){if(a&1){var b=y();F(0,"b-button",51);J("onAction",
function(){z(b);var c=K(3);return A(r2a(c,!1))});P(1," Unarchive ");G()}a&2&&(a=K(3),D("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},u2a=function(a){if(a&1){var b=y();F(0,"div",26)(1,"b-button",46);J("onAction",function(){z(b);var d=K(2);return A(d.saveMetadata())});P(2," Update ");G();F(3,"b-button",47);J("onAction",function(){z(b);var d=K(2);return A(d.revertMetadataChanges())});P(4," Revert changes ");G();O(5,s2a,2,1,"b-button",48);O(6,t2a,2,1,"b-button",49);G()}if(a&2){K();var c=M(9);
a=K();B(1);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!a.elementPickerIsValid||!!c.pending||!!c.invalid);B(2);D("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()||!!c.pending||!!c.invalid);B(2);D("ngIf",a.slo&&!a.slo.getIsArchived());B(1);D("ngIf",a.slo&&a.slo.getIsArchived())}},v2a=function(a){if(a&1){var b=y();F(0,"div",25)(1,"b-button",52);J("onAction",function(){z(b);var c=K(2);return A(c.saveAccessPolicy())});P(2," Update ");G();F(3,"b-button",53);J("onAction",function(){z(b);
var c=K(2);return A(c.revertAccessPolicyChanges())});P(4," Revert changes ");G()()}a&2&&(a=K(2),B(1),D("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},w2a=function(a){if(a&1){var b=y();F(0,"div")(1,"div",8)(2,"h2")(3,"span",9);P(4);G()()();F(5,"mat-tab-group",10);J("selectedIndexChange",function(c){z(b);var d=K();return A(d.selectedTabIndex=c)})("selectedIndexChange",function(c){z(b);var d=K();return A(d.tabChange(c))});F(6,"mat-tab",11)(7,"div",12)(8,"form",13,14)(10,
"div",15)(11,"label",16)(12,"span",17);P(13,"Name");G()();F(14,"input",18);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setName(c))});G()();F(15,"div",15)(16,"label",19)(17,"span",17);P(18,"Description");G()();F(19,"textarea",20);J("ngModelChange",function(c){z(b);var d=K();return A(d.editableCopy.setDescription(c))});P(20,"              ");G()();O(21,p2a,8,4,"div",21);G();O(22,q2a,4,0,"div",22);F(23,"div",15)(24,"slo-elements-picker",23);J("onCollectionUpdate",function(c){z(b);
var d=K();return A(d.updateCollection(c))})("onValidation",function(c){z(b);var d=K();return A(d.elementPickerIsValid=c)});G()();F(25,"div",24)(26,"div",25)(27,"div",26)(28,"b-button",27);J("onAction",function(){z(b);var c=K();return A(c.showUpdateHistoryModal())});P(29," View history ");G()()();F(30,"div",25);O(31,u2a,7,4,"div",28);G()()()();F(32,"mat-tab",29)(33,"div",30)(34,"form",31)(35,"div",15)(36,"label",32)(37,"span",17);P(38,"Admins");G();F(39,"p",33);P(40," Edit name, description and metrics ");
G()();F(41,"b-multi-user-input",34);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.admins=c)})("isValid",function(c){z(b);var d=K();return A(d.validity.admins=c)});G()();F(42,"div",15)(43,"label",35)(44,"span",17);P(45,"Readers");G();F(46,"p",33);P(47," View the SLO definition (this is not required to see an issue's SLO status) ");G()();F(48,"b-multi-user-input",36);J("usersChange",function(c){z(b);var d=K();return A(d.editableAccessPolicy.readers=c)})("isValid",function(c){z(b);
var d=K();return A(d.validity.readers=c)});G()()();F(49,"div",15);P(50," See ");F(51,"a",37);P(52,"access control documentation");G();P(53," for an explanation of the settings. ");G();O(54,v2a,5,1,"div",38);G()()()()}a&2&&(a=K(),B(4),Le(" SLO ",a.slo.getSloId(),": ",a.slo.getName()," "),B(1),D("selectedIndex",a.selectedTabIndex),B(5),te("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),D("required",!0)("ngModel",a.editableCopy.getName())("disabled",a.isEditDisabled()),B(1),te("bv2-edit-resource-readonly",
a.isEditDisabled()),B(4),D("ngModel",a.editableCopy.getDescription())("disabled",a.isEditDisabled()),B(2),D("ngIf",a.isImportedFromBugScope||a.alertState.getSavedValue()),B(1),D("ngIf",a.isUneditedFromBugScope&&a.isAdmin()),B(1),te("bv2-edit-resource-readonly",a.isEditDisabled()),B(1),D("isDisabled",a.isEditDisabled())("collection",Os(a.editableCopy)),B(7),D("ngIf",a.isAdmin()),B(4),te("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),D("users",a.editableAccessPolicy.admins),oe("disabled",a.isEditDisabled()?
!0:null),B(1),te("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),D("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0),oe("disabled",a.isEditDisabled()?!0:null),B(3),Ge("href","",yo(a.documentationLinks),"#slos",Ud),B(3),D("ngIf",a.isAdmin()))},x2a=function(a){a&1&&(F(0,"b-person-hovercard",3),P(1),G());a&2&&(a=K(),D("email",a.assignee),B(1),Je(" ",a.assignee," "))},y2a=function(a){a&1&&P(0,"--")},z2a=function(a){a&1&&H(0,"b-formatted-date-time",3);a&2&&(a=
K(),D("timestamp",a.createdTime))},A2a=function(a){a&1&&P(0,"--")},B2a=function(a){a&1&&(F(0,"b-person-hovercard",3),P(1),G());a&2&&(a=K(),D("email",a.reporter),B(1),Je(" ",a.reporter," "))},C2a=function(a){a&1&&P(0,"--")},D2a=function(a,b){a&1&&(F(0,"div",3),P(1),G());a&2&&(a=b.$implicit,b=K(),ye("b-chip xs squared status status",a,""),D("title",b.STATUS_FULL_TEXT[a]),B(1),Je(" ",b.STATUS_TERSE[a]," "))},E2a=function(a){a&1&&P(0,"--")},F2a=function(a){a&1&&H(0,"b-team-display",3);a&2&&(a=K(),D("teamId",
a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},G2a=function(a){a&1&&P(0,"--")},H2a=function(a){a&1&&(ze(0),P(1),Q(2,"enumToHuman"),Ae());a&2&&(a=K(),B(1),Ke(R(2,1,a.type)))},I2a=function(a){a&1&&P(0,"--")},J2a=function(a){if(a&1){var b=y();F(0,"div",3);J("@arrowPosition.start",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){z(b);var c=K();return A(c._disableViewStateAnimation=!1)});H(1,"div",4);F(2,"div",5);H(3,"div",6)(4,"div",
7)(5,"div",8);G()()}a&2&&(a=K(),D("@arrowOpacity",a._getArrowViewState())("@arrowPosition",a._getArrowViewState())("@allowChildren",a._getArrowDirectionState()),B(2),D("@indicator",a._getArrowDirectionState()),B(1),D("@leftPointer",a._getArrowDirectionState()),B(1),D("@rightPointer",a._getArrowDirectionState()))},K2a=function(a){a&1&&H(0,"th",21)},L2a=function(a){a&1&&H(0,"td",22)},M2a=function(a){a&1&&(F(0,"th",21),P(1," Id "),G())},N2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-id-cell",24),
G());a&2&&(a=b.$implicit,B(1),D("id",a.id))},O2a=function(a){a&1&&(F(0,"th",21),P(1," Title "),G())},P2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-title-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},Q2a=function(a){a&1&&(F(0,"th",26),P(1," Type "),G())},R2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-type-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},S2a=function(a){a&1&&(F(0,"th",27),P(1," Assignee "),G())},T2a=function(a,
b){a&1&&(F(0,"td",23),H(1,"b-issue-assignee-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},U2a=function(a){a&1&&(F(0,"th",28),P(1," Reporter "),G())},V2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-reporter-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},W2a=function(a){a&1&&(F(0,"th",29),P(1," Status "),G())},X2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-status-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",
R(2,1,a.issue$)))},Y2a=function(a){a&1&&(F(0,"th",21),P(1," Team "),G())},Z2a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-team-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},$2a=function(a){a&1&&(F(0,"th",30),P(1," Created "),G())},a3a=function(a,b){a&1&&(F(0,"td",23),H(1,"b-issue-created-time-cell",25),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},b3a=function(a){a&1&&H(0,"th",21)},c3a=function(a,b){a&1&&(F(0,"td",23)(1,"b-actions-menu",
31),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),D("menuItems",b.getMenuItems(a.id)))},d3a=function(a){a&1&&H(0,"tr",32)},e3a=function(a,b){if(a&1){var c=y();F(0,"tr",33);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e.id))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ps(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,
f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&D("row",b.$implicit)},f3a=function(a,b){return(null==a?void 0:a.id)===(null==b?void 0:b.id)},h3a=function(a){if(a&1){var b=y();F(0,"div",5);H(1,"img",6)(2,"img",7);F(3,"p",8);P(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");G();F(5,"p",9);P(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. ');F(7,"a",10);P(8,"Learn more");G()();F(9,"button",11);
J("click",function(){z(b);var c=K(2);return A(g3a(c))});P(10," Add ");G()()}a&2&&(a=K(2),B(1),D("src",a.TEA_LIGHT,Ud),B(1),D("src",a.TEA_DARK,Ud))},i3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},j3a=function(a){a&1&&(ze(0),O(1,i3a,1,2,"b-issues-table",17),Q(2,"async"),Ae());a&2&&(a=K(5),B(1),D("ngIf",R(2,1,a.blockedAndOpenIds$)))},k3a=function(a){a&1&&(F(0,"p",19),P(1,"Not blocking any open issues \ud83e\udd73"),G())},l3a=
function(a,b){a&1&&(ze(0),F(1,"h4",15),P(2),G(),O(3,j3a,3,3,"ng-container",12),O(4,k3a,2,0,"ng-template",null,16,Pf),Ae());if(a&2){a=b.$implicit;var c=M(5);B(2);Je("Open (",a.length,")");B(1);D("ngIf",0<a.length)("ngIfElse",c)}},m3a=function(a,b){a&1&&H(0,"b-issues-table",18);a&2&&(a=b.ngIf,b=K(6),D("issueIds",a)("menuItemFactory",b.getMenuItems))},n3a=function(a){a&1&&(ze(0),F(1,"h4",15),P(2),G(),O(3,m3a,1,2,"b-issues-table",17),Q(4,"async"),Ae());if(a&2){a=K().$implicit;var b=K(4);B(2);Je("Closed (",
a.length,")");B(1);D("ngIf",R(4,2,b.blockedAndClosedIds$))}},o3a=function(a,b){a&1&&(ze(0),O(1,n3a,5,4,"ng-container",1),Ae());a&2&&(a=b.$implicit,B(1),D("ngIf",0<a.length))},p3a=function(a){a&1&&(ze(0),O(1,l3a,6,3,"ng-container",1),Q(2,"async"),O(3,o3a,2,1,"ng-container",1),Q(4,"async"),Ae());a&2&&(a=K(3),B(1),D("ngIf",R(2,2,a.blockedAndOpen$)),B(2),D("ngIf",R(4,4,a.blockedAndClosed$)))},q3a=function(a,b){a&1&&(F(0,"li")(1,"a",22)(2,"span",9),P(3),G(),F(4,"aside",23),H(5,"button",24),G()()());a&
2&&(a=b.$implicit,B(1),Ge("routerLink","/issues/",a,""),qe("aria-label","Issue ",a,""),B(2),Je("b/",a,""))},r3a=function(a){a&1&&(F(0,"h4",15),P(1,"Loading..."),G(),F(2,"ol",20),O(3,q3a,6,3,"li",21),G());a&2&&(a=K(2).$implicit,B(3),D("ngForOf",a))},s3a=function(a,b){a&1&&(ze(0),F(1,"a",25),P(2," View as search results "),G(),Ae());a&2&&(a=b.ngIf,B(1),D("routerLink",a.path)("queryParams",a.params))},t3a=function(a){if(a&1){var b=y();O(0,p3a,5,6,"ng-container",12);Q(1,"async");O(2,r3a,4,1,"ng-template",
null,13,Pf);F(4,"aside",14)(5,"button",11);J("click",function(){z(b);var d=K(2);return A(g3a(d))});P(6," Add ");G();O(7,s3a,3,2,"ng-container",1);Q(8,"async");G()}if(a&2){var c=M(3);a=K(2);D("ngIf",R(1,3,a.issuesBeingBlocked$))("ngIfElse",c);B(7);D("ngIf",R(8,5,a.searchUrl$))}},u3a=function(a,b){a&1&&(ze(0),O(1,h3a,11,2,"div",3),O(2,t3a,9,7,"ng-template",null,4,Pf),Ae());if(a&2){a=b.$implicit;var c=M(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},v3a=function(a){a&1&&(F(0,"aside",26),H(1,"b-spinner"),
G())},w3a=function(a){if(a&1){var b=y();F(0,"button",4);J("click",function(c){z(b);K().expansionChange.emit();c.stopPropagation();return A()});H(1,"b-icon",5);G()}a&2&&(a=K(),te("collapsed",!a.expanded),oe("aria-label",a.expanded?"Collapse children":"Expand children"))},x3a=function(a){a&1&&H(0,"div",6)},y3a=function(a){a&1&&(F(0,"p",7),P(1,"none"),G())},z3a=function(a){a&1&&H(0,"b-issue-card",11,12);if(a&2){var b=M(1);a=K().$implicit;var c=K(2);D("onedevIsHovercardReady",b.init)("issueId",a)("childContextId",
c.issueId)}},A3a=function(a,b){a&1&&(ze(0),F(1,"a",8),P(2),G(),P(3),F(4,"onedev-hovercard",null,9),O(6,z3a,2,3,"b-issue-card",10),G(),Ae());if(a&2){a=b.$implicit;b=b.last;var c=M(5),d=K().$implicit,e=K();B(1);qe("aria-label","Open issue ",a,"");D("routerLink",e.issueDetailsRoute(a).path)("onedevHovercardTrigger",c);B(1);Ke(d[1][a]||a);B(1);Je("",b?"":", "," ")}},B3a=function(a,b){a&1&&(F(0,"section",4),O(1,y3a,2,0,"p",5),O(2,A3a,7,5,"ng-container",6),G());a&2&&(a=b.$implicit,B(1),D("ngIf",0===a[0].length),
B(1),D("ngForOf",a[0]))},C3a=function(a){a&1&&(F(0,"section",13),P(1,"loading..."),G())},D3a=function(a){var b=1<a.length,c={};a=r(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?Pxa(e):e}}return c},E3a=function(a,b){a&1&&(ze(0),H(1,"b-issues-table",1),Ae());a&2&&(a=b.ngIf,b=K(),B(1),D("issueIds",a)("tableColumns",b.tableColumns)("menuItemFactory",b.getMenuItems)("initialSort",b.initialSort))},Qs=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))},F3a=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:sh(a)}},G3a=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=Rs(b),f=b.nextElementSibling&&Rs(b.nextElementSibling),h=b.previousElementSibling&&Rs(b.previousElementSibling);if("top"===a){var k;if((null==(k=b.previousElementSibling)?0:k.classList.contains("dragging"))&&h===e)return d="none",c();d="before";return c()}if("bottom"===a){if(null!=f&&e<f){var q;if(null==(q=b.nextElementSibling)?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var u;if((null==(u=b.nextElementSibling)?0:u.classList.contains("dragging"))&&
e===f)return d="none",c();d="after";return c()}d="current";return c()},Rs=function(a){return Number(a.dataset.level)},Ts=function(a){var b;return Ss(null!=(b=a.dataset.ancestorchain)?b:"")},H3a=function(a){a&1&&H(0,"th",27)},I3a=function(a){if(a&1){var b=y();F(0,"td",28,29);J("click",function(c){z(b);M(1).focus();return A(c.stopPropagation())});G()}},J3a=function(a){a&1&&H(0,"th",27)},K3a=function(a){if(a&1){var b=y();F(0,"td",30,31);J("click",function(c){z(b);M(1).focus();return A(c.stopPropagation())})("dragstart",
function(c){z(b);var d=K();return A(d.handleDragStart(c))});H(2,"mat-icon",32);G()}},L3a=function(a){a&1&&(F(0,"th",27),P(1," Id "),G())},M3a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-id-cell",34),G());a&2&&(a=b.$implicit,B(1),D("id",a.id))},N3a=function(a){a&1&&(F(0,"th",27),P(1," Id "),G())},O3a=function(a){a&1&&(F(0,"td",33),P(1,"--"),G())},P3a=function(a){a&1&&(F(0,"th",27),P(1," Title "),G())},Q3a=function(a,b){if(a&1){var c=y();F(0,"td",33)(1,"b-expandable-issue-title-cell",35);J("expansionChange",
function(){var d=z(c).$implicit,e=K();return A(e.toggleExpansion(d))});Q(2,"async");Q(3,"async");G()()}a&2&&(a=b.$implicit,B(1),D("issue",R(2,4,a.issue$))("expandable",R(3,6,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},R3a=function(a){a&1&&(F(0,"th",27),P(1," Type "),G())},S3a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-type-cell",36),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},T3a=function(a){a&1&&(F(0,"th",27),P(1," Assignee "),G())},U3a=function(a,
b){a&1&&(F(0,"td",33),H(1,"b-issue-assignee-cell",36),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},V3a=function(a){a&1&&(F(0,"th",27),P(1," Status "),G())},W3a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-status-cell",36),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,a.issue$)))},X3a=function(a){a&1&&(F(0,"th",27),P(1," Team "),G())},Y3a=function(a,b){a&1&&(F(0,"td",33),H(1,"b-issue-team-cell",36),Q(2,"async"),G());a&2&&(a=b.$implicit,B(1),D("issue",R(2,1,
a.issue$)))},Z3a=function(a){a&1&&H(0,"th",27)},$3a=function(a,b){a&1&&(F(0,"td",33)(1,"b-actions-menu",37),J("click",function(c){return c.stopPropagation()}),G()());a&2&&(a=b.$implicit,b=K(),B(1),D("menuItems",b.getMenuItems(a)))},a4a=function(a){a&1&&H(0,"th",27)},b4a=function(a){if(a&1){var b=y();F(0,"button",41);J("click",function(){z(b);var c=K().$implicit,d=K();return A(d.saveDraft(c))});H(1,"mat-icon",42);G()}a&2&&D("matTooltip","Save issue (Enter)")},c4a=function(a){a&1&&H(0,"b-spinner")},
d4a=function(a,b){a&1&&(F(0,"td",38),O(1,b4a,2,1,"button",39),O(2,c4a,1,0,"ng-template",null,40,Pf),G());if(a&2){a=b.$implicit;var c=M(3);B(1);D("ngIf",!a.saving)("ngIfElse",c)}},f4a=function(a,b){if(a&1){var c=y();F(0,"td",33)(1,"b-async-data-placeholder",43);Q(2,"async");F(3,"b-button",44);J("onAction",function(){var d=z(c).$implicit,e=K();return A(e4a(e,d))});F(4,"span",45);P(5);G()()()()}a&2&&(a=b.$implicit,b=K(),se("padding-left",24*a.level+b.TITLE_FIXED_OFFSET_PX,"px"),oe("colspan",b.tableColumns.length),
B(1),D("isReady",!!R(2,5,a.parentIssue$)),B(4),Je("Display ",a.truncatedSiblingCount," more"))},g4a=function(a){a&1&&(F(0,"th",27),P(1," Title "),G())},h4a=function(a,b){if(a&1){var c=y();F(0,"td",33)(1,"b-text-input-cell",46);J("valueChange",function(d){var e=z(c).$implicit;return A(e.title=d)})("commit",function(){var d=z(c).$implicit,e=K();return A(e.saveDraft(d))});G()()}a&2&&(a=b.$implicit,se("padding-left",24*(a.level+1),"px"),B(1),D("value",a.title)("readonly",a.saving))},i4a=function(a){a&
1&&H(0,"tr",47)},k4a=function(a,b){if(a&1){var c=y();F(0,"tr",48);J("click",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("mouseup",function(d){var e=z(c).$implicit,f=K();return A(f.navigateToIssue(d,e))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ps(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});Q(1,"async");G()}a&2&&(a=b.$implicit,b=K(),te("selected",R(1,6,j4a(b.selectionModel,a.ancestorChain))),D("row",
a),oe("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},l4a=function(a,b){if(a&1){var c=y();F(0,"tr",49);J("focusin",function(){var d=z(c).$implicit,e=K();return A(Ps(e.focusManager,d))})("keydown",function(d){var e=z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))});G()}a&2&&(a=b.$implicit,D("row",a),oe("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},n4a=function(a,b){if(a&1){var c=y();F(0,"tr",50);J("keydown",function(d){var e=
z(c).$implicit,f=K();return A(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=z(c).$implicit,e=K();return A(m4a(e,d))})("componentBlur",function(){var d=z(c).$implicit,e=K();return A(m4a(e,d))})("focusin",function(){var d=z(c).$implicit,e=K();return A(Ps(e.focusManager,d))});G()}a&2&&(a=b.$implicit,D("row",a),oe("data-type",a.type))},Us=function(a){var b=o4a(a.open);a=o4a(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},o4a=function(a){var b=a.count;a=a.exact;return 0===b||a?""+b:b+"+"},
Vs=function(a){return"("+o4a(a)+")"},Ws=function(a){return{count:99<a?99:a,exact:99<a?!1:!0}},p4a=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:sh(b)}},q4a=function(a){a&1&&H(0,"b-spinner")},r4a=function(a){a&1&&Be(0)},s4a=function(a){a&1&&(ze(0),O(1,r4a,1,0,"ng-container",20),Ae());if(a&2){K();var b=M(43);B(1);D("ngTemplateOutlet",
b)}},t4a=function(a){a&1&&(H(0,"b-blockers-table",22),Q(1,"async"));if(a&2){a=K().ngIf;var b=K();D("issueId",a)("blockerIds",R(1,2,b.blockerIds$))}},u4a=function(a){a&1&&(ze(0),O(1,t4a,2,4,"b-blockers-table",21),Q(2,"async"),Ae());if(a&2){a=K();var b=M(24);B(1);D("ngIf",R(2,2,a.blockersCount$))("ngIfElse",b)}},v4a=function(a){a&1&&Be(0)},w4a=function(a){a&1&&(F(0,"div")(1,"span",23),P(2,"This issue is not blocked "),F(3,"span",24),P(4,"\ud83c\udf89"),G()(),O(5,v4a,1,0,"ng-container",20),G());if(a&
2){K();var b=M(43);B(5);D("ngTemplateOutlet",b)}},x4a=function(a){a&1&&Be(0)},y4a=function(a){a&1&&(ze(0),O(1,x4a,1,0,"ng-container",20),Ae());if(a&2){K();var b=M(45);B(1);D("ngTemplateOutlet",b)}},z4a=function(a){a&1&&(F(0,"div",25)(1,"section",26)(2,"div",27),P(3," Progress: "),G(),F(4,"div",27),P(5),Q(6,"number"),Q(7,"async"),Q(8,"number"),Q(9,"async"),G(),F(10,"div",28),Q(11,"async"),F(12,"div",29)(13,"div",30),Q(14,"async"),G(),F(15,"onedev-hovercard",null,31)(17,"div",32)(18,"div",33),P(19),
Q(20,"async"),G()()()()(),H(21,"mat-icon",34),F(22,"onedev-hovercard",null,35)(24,"div",32)(25,"div",36)(26,"p"),P(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=M(16),c=M(23);a=K();B(5);Le(" ",Se(6,8,R(7,11,a.totalDaysComplete$),"1.0-2")," of ",Se(8,13,R(9,16,a.totalDaysCount$),"1.0-2"),
" days complete ");B(5);qe("aria-label","",R(11,18,a.totalDaysDisplayPercent$)," Percentage of effort completed");B(2);D("onedevHovercardTrigger",b);B(1);se("width",R(14,20,a.totalDaysDisplayPercent$),"%");B(6);Je(" ",R(20,22,a.progressHovercardContent$)," ");B(2);D("onedevHovercardTrigger",c)}},A4a=function(a,b){a&1&&(H(0,"b-issue-relations-table",37),Q(1,"async"));if(a&2){a=b.ngIf;b=K();var c;te("hidden",0===((null==(c=R(1,3,null==b.table?null:b.table.rows$))?null:c.length)||0));D("rootIssueId",
a)}},B4a=function(a){a&1&&Be(0)},C4a=function(a){a&1&&(ze(0),F(1,"span",23),P(2,"This issue has no children"),G(),O(3,B4a,1,0,"ng-container",20),Ae());if(a&2){K(2);var b=M(45);B(3);D("ngTemplateOutlet",b)}},D4a=function(a){a&1&&(ze(0),O(1,C4a,4,1,"ng-container",5),Q(2,"async"),Q(3,"async"),Ae());if(a&2){a=K();var b;B(1);D("ngIf",0===R(2,1,a.unarchivedChildIssueCount$)&&0===((null==(b=R(3,3,null==a.table?null:a.table.rows$))?null:b.length)||0))}},F4a=function(a){if(a&1){var b=y();F(0,"b-button",38);
J("onAction",function(){z(b);var c=K();return A(E4a(c))});Q(1,"async");P(2," Add ");G()}a&2&&(a=K(),D("disabled",!R(1,1,a.canEdit$)))},G4a=function(a){if(a&1){var b=y();F(0,"b-button",39);J("onAction",function(){z(b);var c=K();return A(c.createChild())});Q(1,"async");P(2," Create ");G();F(3,"b-button",40);J("onAction",function(){z(b);var c=K();return A(c.addChild())});Q(4,"async");P(5," Add ");G()}a&2&&(a=K(),D("disabled",!R(1,2,a.canEdit$)),B(3),D("disabled",!R(4,4,a.canEdit$)))},H4a=function(a,
b){return(0,U.combineLatest)([a,b]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return 0===d?0:Math.round(100*c/d*100)/100}))},I4a=function(a){return 1===a?a+" day":a+" days"},J4a=function(a){if(a&1){var b=y();F(0,"b-star-toggle",9);J("starClicked",function(){z(b);var c=K(2);return A(c.starClicked.emit())});Q(1,"async");Q(2,"async");G()}a&2&&(a=K(2),D("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("acceptInput",!R(1,4,Hs(a.isSavingStar,a.hotlist.hotlistId)))("starred",
R(2,6,Hs(a.starredHotlists,a.hotlist.hotlistId))))},K4a=function(a){a&1&&(F(0,"p",10),P(1),G());a&2&&(a=K(2),B(1),Je(" ",a.hotlist.description," "))},L4a=function(a){a&1&&(F(0,"div",1)(1,"div",2)(2,"label",3),P(3),G(),F(4,"span",4),O(5,J4a,3,8,"b-star-toggle",5),F(6,"a",6),J("click",function(b){return b.stopPropagation()})("keydown.enter",function(b){return b.stopPropagation()}),H(7,"mat-icon",7),G()()(),O(8,K4a,2,1,"p",8),G());a&2&&(a=K(),B(3),Je(" ",a.hotlist.name," "),B(2),D("ngIf",a.shouldShowStar(a.hotlist)),
B(1),D("routerLink",a.paths.viewHotlist(a.hotlist.hotlistId)),B(2),D("ngIf",!a.isCompact&&a.hotlist.description))},M4a=function(a){a&1&&Be(0)},N4a=function(a){a&1&&(ze(0),O(1,M4a,1,0,"ng-container",6),Ae());if(a&2){K();var b=M(12);B(1);D("ngTemplateOutlet",b)}},O4a=function(a){a&1&&Be(0)},P4a=function(a){a&1&&(ze(0),O(1,O4a,1,0,"ng-container",6),Ae());if(a&2){K();var b=M(6);B(1);D("ngTemplateOutlet",b)}},S4a=function(a){if(a&1){var b=y();F(0,"button",7);J("click",function(){z(b);var c=K();return A(Q4a(c))});
P(1," Create ");G()}a&2&&(a=K(),D("disabled",!(0<R4a(a).length)))},T4a=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(Xs(c))});P(1);G()}a&2&&(a=K(),D("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),oe("aria-label",a.saveBtnTooltip),B(1),Je(" ",a.saveBtnLabel," "))},U4a=function(a,b){if(a&1){var c=y();ze(0);F(1,"div",25,26);Q(3,"async");F(4,"mat-list-option",27);J("focus",function(){z(c);var f=M(2);return A(f.show())})("blur",
function(){z(c);var f=M(2);return A(f.hide())});Q(5,"async");F(6,"hotlist-matlist-option",28);J("starClicked",function(){var f=z(c).$implicit,h=K(5);return A(h.toggleStar(f.hotlistId))});G()()();Ae()}if(a&2){a=b.$implicit;b=K(5);var d,e;B(1);D("matTooltip",!1===(null==(d=R(3,10,a.permissions$))?null:d.appender)?b.NO_ACCESS_MESSAGE:"");B(3);se("height",b.compactHotlistItemHeight,"px");D("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(e=R(5,12,a.permissions$))?null:e.appender))("value",
a.hotlistId);B(2);D("hotlist",a)("isCompact",!0)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar)}},V4a=function(a,b){a&1&&(ze(0),F(1,"div",23),Q(2,"async"),O(3,U4a,7,14,"ng-container",24),G(),Ae());a&2&&(a=b.$implicit,b=K(4),B(1),se("overflow","auto")("height",R(2,6,b.hotlistViewportContainerHeight$),"px"),B(2),D("ngForOf",a)("ngForTrackBy",b.trackByHotlistId))},W4a=function(a){a&1&&(ze(0),O(1,V4a,4,8,"ng-container",18),Q(2,"async"),Q(3,"stagedHotlistSlice"),Ae());a&2&&(a=K().$implicit,
B(1),D("ngIf",R(2,1,R(3,3,a))))},X4a=function(a,b){if(a&1){var c=y();ze(0);F(1,"div",25,26);Q(3,"async");F(4,"mat-list-option",27);J("focus",function(){z(c);var f=M(2);return A(f.show())})("blur",function(){z(c);var f=M(2);return A(f.hide())});Q(5,"async");F(6,"hotlist-matlist-option",28);J("starClicked",function(){var f=z(c).$implicit,h=K(4);return A(h.toggleStar(f.hotlistId))});G()()();Ae()}if(a&2){a=b.$implicit;b=K(4);var d,e;B(1);D("matTooltip",!1===(null==(d=R(3,10,a.permissions$))?null:d.appender)?
b.NO_ACCESS_MESSAGE:"");B(3);se("height","auto");D("selected",b.selectedHotlistIds.has(a.hotlistId))("disabled",!1===(null==(e=R(5,12,a.permissions$))?null:e.appender))("value",a.hotlistId);B(2);D("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar)}},Y4a=function(a){a&1&&O(0,X4a,7,14,"ng-container",24);if(a&2){a=K().$implicit;var b=K(2);D("ngForOf",a)("ngForTrackBy",b.trackByHotlistId)}},Z4a=function(a){a&1&&(ze(0),O(1,W4a,4,5,"ng-container",0),Q(2,"async"),
O(3,Y4a,1,2,"ng-template",null,22,Pf),Ae());if(a&2){var b=M(4);a=K(2);B(1);D("ngIf",R(2,2,a.isCompactMode$))("ngIfElse",b)}},$4a=function(a){a&1&&(F(0,"div",29),P(1," (The number of hotlists is large: presenting in compact form.) "),G())},b5a=function(a){if(a&1){var b=y();F(0,"button",30);J("click",function(){z(b);var c=K(2),d=Ki(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),Xs(c)):a5a(c,d);return A()});P(1);Q(2,"async");F(3,"span",31);P(4,"(add hotlist by ID)");G()()}a&2&&(a=
K(2),B(1),Je(" ",R(2,1,a.query$)," "))},c5a=function(a){if(a&1){var b=y();F(0,"button",32);J("click",function(){z(b);K(2).showCreateNewPane=!0;return A()});P(1);Q(2,"async");F(3,"span",31);P(4,"(create new)");G()()}a&2&&(a=K(2),B(1),Je(" ",R(2,1,a.query$)," "))},e5a=function(a){if(a&1){var b=y();F(0,"header",9)(1,"h2");P(2,"Search for Hotlists");G();F(3,"div",10);H(4,"mat-icon",11);F(5,"input",12,13);J("input",function(){z(b);var c=M(6);K().query$.next(c.value);return A()});G()()();F(7,"section",
14,15)(9,"mat-selection-list",16,17);J("selectionChange",function(c){z(b);var d=K();return A(d5a(d,c))});O(11,Z4a,5,4,"ng-container",18);Q(12,"async");G();O(13,$4a,2,0,"div",19);Q(14,"async");O(15,b5a,5,3,"button",20);Q(16,"async");O(17,c5a,5,3,"button",21);Q(18,"async");G()}a&2&&(a=K(),B(11),D("ngIf",R(12,4,a.visibleHotlists$)),B(2),D("ngIf",R(14,6,a.isCompactMode$)),B(2),D("ngIf",R(16,8,a.showLoadById$)),B(2),D("ngIf",R(18,10,a.showCreateNew$)))},f5a=function(a){a&1&&(F(0,"header",9)(1,"h2"),P(2,
"Create new hotlist"),G()(),F(3,"section",33)(4,"div",34)(5,"form",35)(6,"label",36),P(7,"Name"),G(),H(8,"input",37),F(9,"label",38),P(10,"Description"),G(),H(11,"textarea",39),F(12,"p",31),P(13," Note: Access controls can be adjusted after the hotlist is created. "),G()()()());a&2&&(a=K(),B(5),D("formGroup",a.hotlistUnderEdit))},g5a=function(a,b){return a.name.localeCompare(b.name)},h5a=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)},i5a=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)"]},j5a=function(a){a&1&&(Uc(),Vc(),ze(0),P(1),Ae());a&2&&(a=K(),B(1),Je("Insights (",a.availablePanels.size,")"))},k5a=function(a,b){if(a&1){var c=y();
F(0,"button",19);J("click",function(){var d=z(c).$implicit;K().openSidebar.emit({panel:d.panel});return A()});P(1);G()}a&2&&(a=b.$implicit,b=K(),D("disabled",!b.availablePanels.has(a.panel)),B(1),Je(" ",a.label," "))},l5a=function(a){if(a&1){var b=y();F(0,"b-insights-graph-menu",2);J("openSidebar",function(d){z(b);var e=K(2);return A(e.openSidebar(d.panel))});G()}if(a&2){a=K().ngIf;var c=K();D("availablePanels",a)("iconOnly",c.iconOnly)("buttonClassname",c.buttonClassname)}},m5a=function(a){a&1&&
(ze(0),O(1,l5a,1,3,"b-insights-graph-menu",1),Q(2,"async"),Ae());a&2&&(a=K(),B(1),D("ngIf",R(2,1,a.shouldShowInsightsGraphMenu$)))},o5a=function(a,b){if(a&1){var c=y();F(0,"button",1);J("click",function(){z(c);var d=K();return A(n5a(d))});Q(1,"async");P(2);G()}a&2&&(a=b.ngIf,b=K(),D("disabled",b.disabled||b.fridge.isSaving(b.internalIssueId)||!1===R(1,3,b.canEdit$))("title",a.isDupe?b.TOOLTIP_UNMARK_DUPE:b.TOOLTIP_MARK_DUPE),B(2),Je(" ",a.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},p5a=function(a){a&
1&&Be(0)},q5a=function(a){a&1&&(ze(0),O(1,p5a,1,0,"ng-container",5),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.content))},r5a=function(a,b){if(a&1){var c=y();F(0,"button",13);J("click",function(e){var f=z(c).$implicit;return A(f.action(e))});H(1,"mat-icon",14);P(2);G()}if(a&2){a=b.$implicit;var d;D("disabled",a.disabled)("title",a.title);oe("aria-label",a.title);B(1);D("svgIcon",null!==(d=a.icon)&&void 0!==d?d:"");B(1);Je(" ",a.label," ")}},s5a=function(a){if(a&1){var b=y();ze(0);F(1,"button",
15);J("click",function(d){z(b);var e=K(2);d.stopPropagation();d.preventDefault();var f;null==(f=e.helpHover)||f.toggle();return A()});H(2,"mat-icon",16);P(3," Retention: ");H(4,"retention-text",17);P(5," \u00a0 ");H(6,"help-hover",18);G();Ae()}if(a&2){a=K().ngIf;var c=M(14);B(4);D("retentionState",a.retentionState);B(2);D("content",c)}},t5a=function(a){a&1&&(ze(0),H(1,"retention-help-text",19),Ae());a&2&&(a=K(2).ngIf,B(1),D("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},
u5a=function(a){a&1&&O(0,t5a,2,2,"ng-container",0);a&2&&(a=K().ngIf,D("ngIf",a.retentionState&&a.modifiedTimeMilliseconds))},v5a=function(a,b){if(a&1){var c=y();ze(0);H(1,"b-app-vote-button",1)(2,"hotlist-picker-btn",2);F(3,"smart-dupe-btn",3,4);J("onHotkey",function(){z(c);var e=M(4);return A(n5a(e))});G();F(5,"b-notification-menu",5);J("subscriptionChange",function(e){z(c);var f=K();return A(f.updateSubscription(e))})("showNotificationSettings",function(e){z(c);var f=K();return A(f.showNotificationSettings(e))});
G();H(6,"insights-graph-menu-smart",6);F(7,"button",7);H(8,"mat-icon",8);G();F(9,"mat-menu",9,10);O(11,r5a,3,5,"button",11);O(12,s5a,7,2,"ng-container",0);G();O(13,u5a,1,1,"ng-template",null,12,Pf);Ae()}if(a&2){a=b.ngIf;var d=M(10);b=K();B(1);D("issueId",a.issueId)("voteCount",a.voteCount)("upvoted",a.voted);B(1);D("issueId",a.issueId);B(1);D("issueId",a.issueId)("hotkey",b.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);D("subscription",a.notificationSubscription)("issueId",a.issueId)("iconOnly",!0);B(1);
D("iconOnly",!0);B(1);D("matMenuTriggerFor",d);B(4);D("ngForOf",a.menuItems);B(1);D("ngIf",null==a.retentionState?null:a.retentionState.scheduledDeletionTime)}},w5a=function(a){a&1&&(F(0,"div",3),H(1,"mat-icon",4),F(2,"span",5),P(3),Q(4,"async"),G()());if(a&2){a=K();var b;B(3);Je("",null==(b=R(4,1,a.issues$))?null:b.length," parent issues")}},x5a=function(a){a&1&&(F(0,"div",3),H(1,"mat-icon",6),F(2,"span",5),P(3),Q(4,"async"),G()());if(a&2){a=K();var b;B(3);Je("Blocked by ",null==(b=R(4,1,a.issues$))?
null:b.length," issues")}},y5a=function(a,b){a&1&&(ze(0),F(1,"div"),P(2),G(),Ae());a&2&&(a=b.$implicit,b=K(4),B(1),ye("b-chip xs squared status status",a,""),B(1),Ke(b.STATUS_TERSE[a]))},z5a=function(a){a&1&&(ze(0),F(1,"a",8)(2,"div",9)(3,"div",10)(4,"div",11),P(5),G(),F(6,"div",12),P(7),G()(),F(8,"div",10)(9,"div",13),P(10),G(),O(11,y5a,3,4,"ng-container",2),G()()(),Ae());if(a&2){var b=K();a=b.$implicit;b=b.last;var c=K(2);B(1);Ge("routerLink","/issues/",a.issueId,"");B(1);te("border-bottom",!b);
B(3);Ke(a.issueId);B(2);Ke(a.snapshot[0].title);B(2);D("ngClass",c.priorityClass(a.snapshot[0].priority));B(1);Ke(a.snapshot[0].priority);B(1);D("ngIf",c.IssueStatus_strToTag[a.snapshot[0].status])}},A5a=function(a,b){a&1&&(ze(0),O(1,z5a,12,8,"ng-container",2),Ae());a&2&&(a=b.index,B(1),D("ngIf",5>a))},C5a=function(a){if(a&1){var b=y();ze(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2);return A(B5a(c))});P(3,"View all parent issues");G()();Ae()}},D5a=function(a){if(a&1){var b=
y();ze(0);F(1,"div",14)(2,"button",15);J("click",function(){z(b);var c=K(2),d;null==(d=c.hovercardInstance)||d.closeHovercard$.next();Ys(c.router,"/issues/"+c.currentIssueId+"/dependencies");return A()});P(3,"View all blockers");G()();Ae()}},E5a=function(a,b){a&1&&(F(0,"div"),O(1,A5a,2,1,"ng-container",7),O(2,C5a,4,0,"ng-container",2),O(3,D5a,4,0,"ng-container",2),G());a&2&&(a=b.$implicit,b=K(),B(1),D("ngForOf",a),B(1),D("ngIf",5<a.length&&b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),D("ngIf",
5<a.length&&b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES))},F5a=function(a){a&1&&H(0,"mat-icon",7)},G5a=function(a){a&1&&(ze(0),H(1,"b-list-issues-card",8,9),Ae());if(a&2){var b=M(2);K();var c=M(5);a=K();B(1);D("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",a.multiParentIds)("mode",a.ListIssuesHovercardMode.PARENT_ISSUES)}},H5a=function(a){a&1&&(ze(0),F(1,"a",3),P(2),G(),O(3,F5a,1,0,"mat-icon",4),F(4,"onedev-hovercard",null,5),O(6,G5a,3,5,"ng-container",
6),G(),Ae());if(a&2){var b=M(5);a=K();B(1);Ge("title","",a.multiParentIds.length," parents at this position");D("onedevHovercardTrigger",b);B(1);Je("",a.multiParentIds.length," Parents\u2026");B(1);D("ngIf",1<a.multiParentIds.length)}},I5a=function(a){a&1&&H(0,"b-issue-card",13,9);if(a&2){var b=M(1);a=K().$implicit;D("onedevIsHovercardReady",b.init)("issueId",a)}},J5a=function(a,b){a&1&&(ze(0),F(1,"onedev-hovercard",null,10),O(3,I5a,2,2,"b-issue-card",11),G(),F(4,"b-issue-reference-widget",12),P(5),
G(),H(6,"mat-icon",7),Ae());if(a&2){a=b.$implicit;b=b.last;var c=M(2),d=K();B(4);D("href",d.getIssueLink(a))("issueId",a)("onedevHovercardTrigger",c);B(1);d.issueIdToTitle.has(a)?(a=d.issueIdToTitle.get(a),a=Pxa(a)):a=String(a);Ke(a);B(1);te("last",b)}},K5a=function(a){a&1&&(ze(0),P(1," > "),Ae())},L5a=function(a,b){a&1&&(ze(0),F(1,"a",7),P(2),G(),O(3,K5a,2,0,"ng-container",3),Ae());a&2&&(a=b.$implicit,b=b.last,B(1),qe("aria-label","View recent issues in ",a.name,""),D("routerLinkObj",a.route),B(1),
Ke(a.name),B(1),D("ngIf",!b))},M5a=function(a){a&1&&(F(0,"span"),P(1," [Archived]"),G())},N5a=function(a){a&1&&(F(0,"div",5),O(1,L5a,4,4,"ng-container",6),Q(2,"async"),O(3,M5a,2,0,"span",3),Q(4,"async"),G());a&2&&(a=K(),B(1),D("ngForOf",R(2,2,a.componentPath$)),B(2),D("ngIf",R(4,4,a.isArchived$)))},O5a=function(a,b){a&1&&(ze(0),F(1,"div",8),H(2,"mat-icon",9),F(3,"div",10),P(4),G()(),F(5,"p",11),P(6),G(),F(7,"p",10),P(8),G(),Ae());a&2&&(a=b.$implicit,B(4),Ke(a.name),B(2),Je("Component ID: ",a.componentId,
""),B(2),Ke(a.description))},P5a=function(a,b){a&1&&(F(0,"div",12)(1,"a",13),P(2,"View recent open issues"),G(),F(3,"a",14),P(4,"View component settings"),G(),F(5,"a",15),P(6,"Create issue in this component"),G()());a&2&&(a=b.$implicit,B(1),D("routerLinkObj",a.recentIssues),B(2),D("routerLinkObj",a.componentSettings),B(2),D("routerLinkObj",a.createIssue))},Q5a=function(a){a&1&&(ze(0),P(1,"\u2026 >"),Ae())},R5a=function(a){a&1&&(ze(0),P(1,"\u2026"),Ae())},S5a=function(a){if(a&1){var b=y();F(0,"a",
15);J("click",function(){z(b);var c=K(4);return A(c.compactMode$.next(!1))});O(1,Q5a,2,0,"ng-container",6);O(2,R5a,2,0,"ng-container",6);G()}a&2&&(a=K().$implicit,B(1),D("ngIf",a.isSpliced),B(1),D("ngIf",a.isTruncated))},T5a=function(a){a&1&&(ze(0),P(1," > "),Ae())},U5a=function(a){a&1&&(ze(0),H(1,"b-component-path-card",16,17),Ae());if(a&2){var b=M(2);a=K().$implicit;B(1);D("onedevIsHovercardReady",b.init)("componentId",a.id)}},V5a=function(a,b){a&1&&(ze(0),O(1,S5a,3,2,"a",11),F(2,"a",12),P(3),G(),
O(4,T5a,2,0,"ng-container",6),F(5,"onedev-hovercard",null,13),O(7,U5a,3,2,"ng-container",14),G(),Ae());if(a&2){a=b.$implicit;b=b.last;var c=M(6);B(1);D("ngIf",a.isSpliced||a.isTruncated);B(1);te("muted",a.name==a.id);D("routerLinkObj",a.route)("onedevHovercardTrigger",c);B(1);Ke(a.name);B(1);D("ngIf",!b)}},W5a=function(a,b){a&1&&(F(0,"span",9),O(1,V5a,8,7,"ng-container",10),G());a&2&&(a=b.$implicit,B(1),D("ngForOf",a))},X5a=function(a){a&1&&(F(0,"span"),P(1,"[Archived]"),G())},Y5a=function(a){if(a&
1){var b=y();F(0,"b-async-data-placeholder",2);Q(1,"async");F(2,"div",3);H(3,"mat-icon",4);O(4,W5a,2,1,"span",5);Q(5,"async");O(6,X5a,2,0,"span",6);Q(7,"async");F(8,"button",7);J("click",function(){z(b);K().editing=!0;return A()});H(9,"mat-icon",8);G()()()}a&2&&(a=K(),D("isReady",R(1,3,a.isReady$)),B(4),D("ngIf",R(5,5,a.componentPath$)),B(2),D("ngIf",R(7,7,a.isArchived$)))},$5a=function(a){if(a&1){var b=y();F(0,"b-team-component-picker",18);J("selectedComponentChange",function(c){z(b);var d=K();d.editing=
!1;c&&Z5a(d.issueEditComponentService,d.issueId,c);return A()})("dropdownClosed",function(){z(b);K().editing=!1;return A()});Q(1,"async");G()}a&2&&(a=K(),D("selectedComponent",R(1,3,a.component$))("isRequired",!0)("shouldFocus",!0))},a6a=function(a){a&1&&(F(0,"h3",3,4),P(2),G());a&2&&(a=K(),oe("title",(null==a.title?0:200<=a.title.length)?a.title:""),B(2),Je(" ",a.title,"\n"))},d6a=function(a){if(a&1){var b=y();F(0,"mat-form-field",5)(1,"input",6,7);J("keyup",function(c){z(b);var d=K();return A(b6a(d,
c))})("blur",function(){z(b);var c=K();return A(b6a(c,null))});G()()}a&2&&(a=K(),D("ngStyle",Oe(2,c6a,a.editModeWidth)),B(1),D("value",a.title))},f6a=function(a){if(a&1){var b=y();F(0,"button",8);J("click",function(){z(b);var c=K();return A(e6a(c))});H(1,"mat-icon",9);G()}a&2&&(a=K(),D("disabled",a.disabled))},g6a=function(a){a&1&&(F(0,"div",4),H(1,"mat-icon",5),P(2),Q(3,"async"),G());if(a&2){a=K();var b=M(4);D("onedevHovercardTrigger",b);B(2);Je("",R(3,2,a.teamName$)," ")}},h6a=function(a){a&1&&
Be(0)},i6a=function(a){a&1&&(ze(0),O(1,h6a,1,0,"ng-container",14),Ae());if(a&2){K();var b=M(21);B(1);D("ngTemplateOutlet",b)}},j6a=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().$implicit,B(1),Je(" ",a," "))},k6a=function(a,b){a&1&&(F(0,"div",15),H(1,"mat-icon",16),O(2,j6a,2,1,"ng-container",17),G());if(a&2){a=b.$implicit;K();var c=M(18);D("onedevHovercardTrigger",c);B(2);D("ngIf",2<=a)}},l6a=function(a){a&1&&(ze(0),H(1,"b-list-issues-card",18,19),Q(3,"async"),Ae());if(a&2){var b=M(2);a=K();var c=
M(18);B(1);D("onedevIsHovercardReady",b.init)("hovercardInstance",c)("currentIssueId",a.issueId)("issueIds",R(3,5,a.blockedByids$))("mode",a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},m6a=function(a,b){a&1&&H(0,"ancestors-breadcrumbs",25);a&2&&(a=b.ngIf,b=K(3),D("ancestors",a)("issueId",b.issueId))},n6a=function(a){a&1&&(ze(0),H(1,"b-component-breadcrumb-chip",21),Q(2,"async"),F(3,"div",22),O(4,m6a,1,2,"ancestors-breadcrumbs",23),Q(5,"async"),H(6,"b-issue-id-picker",24),Q(7,"async"),Q(8,"async"),
Q(9,"async"),G(),Ae());a&2&&(a=K(2),B(1),D("componentId",R(2,8,a.componentId$))("compactMode",!0)("issueId",a.issueId),B(3),D("ngIf",R(5,10,a.ancestors$)),B(2),D("issueId",a.issueId)("componentId",R(7,12,a.componentId$))("issueTitle",R(8,14,a.issueTitle$))("isExternalIssue",!!R(9,16,a.isWithinExternalComponent$)))},o6a=function(a){if(a&1){var b=y();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});Q(1,"async");Q(2,"async");G();O(3,n6a,10,18,"ng-container",
17)}a&2&&(a=K(),D("componentId",R(1,3,a.componentId$))("teamId",R(2,5,a.teamId$)),B(3),D("ngIf",a.isTeamLoaded))},p6a=function(a){a&1&&(ze(0),H(1,"b-component-breadcrumb-chip",26),Q(2,"async"),F(3,"div",27),H(4,"b-issue-id-picker",28),Q(5,"async"),Q(6,"async"),Q(7,"async"),G(),Ae());a&2&&(a=K(2),B(1),D("componentId",R(2,6,a.componentId$))("issueId",a.issueId),B(3),D("issueId",a.issueId)("componentId",R(5,8,a.componentId$))("issueTitle",R(6,10,a.issueTitle$))("isExternalIssue",!!R(7,12,a.isWithinExternalComponent$)))},
q6a=function(a){if(a&1){var b=y();F(0,"b-team-chip",20);J("onTeamLoaded",function(){z(b);var c=K();return A(c.isTeamLoaded=!0)});Q(1,"async");Q(2,"async");G();O(3,p6a,8,14,"ng-container",17)}a&2&&(a=K(),D("componentId",R(1,3,a.componentId$))("teamId",R(2,5,a.teamId$)),B(3),D("ngIf",a.isTeamLoaded))},r6a=function(a){return 1===a?"Blocked":"Blocked by "+a+" issues"},s6a=function(a){if(0!==a.length)return 1===a.length?Zs.ISSUE(a[0]):Zs.ISSUE_LIST},t6a=function(a){a&1&&(F(0,"output"),P(1),Q(2,"async"),
G());if(a&2){a=K().ngIf;var b=K();B(1);Le(" ",a," of ",R(2,2,b.currentSearchResults.totalText$)," ")}},v6a=function(a,b){if(a&1){var c=y();ze(0);O(1,t6a,3,4,"output",0);F(2,"span",1)(3,"button",2);J("onHotkey",function(){z(c);var d=K();return A(Js(d.currentSearchResults))})("click",function(){z(c);var d=K();return A(Js(d.currentSearchResults))});Q(4,"async");H(5,"mat-icon",3);G();F(6,"button",4);J("onHotkey",function(){z(c);var d=K();return A(Ks(d.currentSearchResults))})("click",function(){z(c);
var d=K();return A(Ks(d.currentSearchResults))});Q(7,"async");H(8,"mat-icon",5);G()();Ae()}a&2&&(a=b.ngIf,b=K(),B(1),D("ngIf",-1!==a),B(1),D("ngClass",Oe(10,u6a,-1===a)),B(1),D("hotkey",b.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!R(4,6,b.currentSearchResults.hasPreviousIssue$)),B(3),D("hotkey",b.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!R(7,8,b.currentSearchResults.hasNextIssue$)))},w6a=function(a){a&1&&H(0,"b-access-level-indicator",5);a&2&&(a=K(2).$implicit,D("accessLevel",a.accessLevel))},x6a=function(a){a&
1&&H(0,"b-retention-chip",6);a&2&&(a=K(2).$implicit,D("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},y6a=function(a){a&1&&(F(0,"div",2),O(1,w6a,1,1,"b-access-level-indicator",3),O(2,x6a,1,3,"b-retention-chip",4),G());a&2&&(a=K().$implicit,B(1),D("ngIf",a.isShowingPublicPartner),B(1),D("ngIf",a.isShowingRetention))},z6a=function(a,b){a&1&&(ze(0),O(1,y6a,3,2,"div",1),Ae());a&2&&(a=b.$implicit,B(1),D("ngIf",a.isShowingPublicPartner||a.isShowingRetention))},A6a=
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))},B6a=function(a){if(a&1){var b=y();F(0,"input",3,4);J("peoplekitAutocompleteSelectionChange",function(c){z(b);var d=K();0<c.length&&(d.inputValue=c[0].result().getPrimaryTarget().getValue());return A()})("ngModelChange",function(c){z(b);var d=K();return A(d.inputValue=c)});G()}a&2&&(a=K(),D("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",
a.sessionOptions)("ngModel",a.inputValue))},C6a=function(a){a&1&&Be(0)},E6a=function(a){a&1&&(ze(0),O(1,C6a,1,0,"ng-container",6),Ae());a&2&&(a=K(),B(1),D("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Oe(2,D6a,a.email)))},F6a=function(a){a&1&&P(0);a&2&&(a=K(),Je(" ",a.email," "))},G6a=function(a){a&1&&(Uc(),F(0,"svg",7),H(1,"path",8),G())},H6a=function(a){a&1&&H(0,"b-user-membership-chip",4);if(a&2){a=K().$implicit;var b=K(),c;D("email",a)("teamId",null!==(c=b.teamId)&&void 0!==
c?c:"")("enableSmallChip",!0)}},I6a=function(a,b){a&1&&O(0,H6a,1,3,"b-user-membership-chip",3);a&2&&D("ngIf",b.$implicit)},J6a=function(a){return function(b){return xb(b,$s,1).map(function(c){return{workspaceId:c.getWorkspaceId(),workspaceName:c.getName(),issueId:a}})}},K6a=function(a){a&1&&Be(0)},L6a=function(a){a&1&&(ze(0),O(1,K6a,1,0,"ng-container",33),Ae());if(a&2){K();var b=M(67);B(1);D("ngTemplateOutlet",b)}},N6a=function(a,b){a&1&&H(0,"b-list-field",35);a&2&&(a=b.ngIf,b=K(3),D("readonly",!0)("defaultLineCount",
3)("title","Team")("type",b.ListFieldType.TEAM)("values",Oe(5,M6a,a)))},O6a=function(a){a&1&&(ze(0),O(1,N6a,1,7,"b-list-field",34),Q(2,"async"),Ae());a&2&&(a=K(2),B(1),D("ngIf",R(2,1,a.teamHovercardInputs$)))},Q6a=function(a){if(a&1){var b=y();F(0,"div",37)(1,"b-team-warning",38);J("updateTeam",function(){z(b);var h=K(3);h.issueFridge.poke(h.issueId);return A()});Q(2,"async");Q(3,"async");G()()}if(a&2){a=K().ngIf;var c=K().ngIf,d=K(),e,f;B(1);D("warningType",a)("componentId",c.componentId)("parentComponentId",
(null==(e=R(2,4,d.component$))?null:e.parentComponentId)||0)("teamSuggestions",null!==(f=R(3,6,d.teamSuggestions$))&&void 0!==f?f:Ne(8,P6a))}},R6a=function(a){a&1&&(ze(0),O(1,Q6a,4,9,"div",36),Q(2,"async"),Ae());a&2&&(a=K(2),B(1),D("ngIf",R(2,1,a.shouldDisplayTeamSuggestions$)))},T6a=function(a){if(a&1){var b=y();ze(0);F(1,"b-edit-field",39,40);J("valueChange",function(f){z(b);var h=M(2),k=K(2);return A(S6a(k,h,null!==f&&void 0!==f?f:""))});Q(3,"async");Q(4,"async");Q(5,"async");G();Ae()}if(a&2){a=
K().ngIf;var c=K(),d,e;B(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",!R(3,10,c.hasAclToEdit$))("disabled",!!R(4,12,c.isSaving$("reporter")))("showAvailability",!0)("teamId",null!==(e=R(5,14,c.teamId$))&&void 0!==e?e:"")}},V6a=function(a){if(a&1){var b=y();F(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Reporter");G();F(3,"onedev-field-value",41);Q(4,"async");F(5,"b-user-picker",
42);J("emailChange",function(e){z(b);var f=K(2);return A(U6a(f.editIssueService,f.issueId,e))});Q(6,"async");Q(7,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);D("thinking",!!R(4,4,c.isSaving$("reporter")));B(2);D("user",a.reporterUser)("teamId",null!==(d=R(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!R(7,8,c.hasAclToEdit$))}},W6a=function(a){a&1&&Be(0)},X6a=function(a){a&1&&(ze(0),O(1,W6a,1,0,"ng-container",33),Ae());if(a&2){K();var b=M(69);B(1);D("ngTemplateOutlet",b)}},Y6a=function(a,b){if(a&
1){var c=y();F(0,"div",44);H(1,"div",45);F(2,"span",46);J("click",function(){var d=z(c).ngIf,e=K(3);return A(at(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;at(K(3),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;at(K(3),e);d.stopPropagation();return A(d.preventDefault())});Q(3,"async");Q(4,"async");P(5);G()()}a&2&&(a=b.ngIf,b=K(3),B(2),te("disabled",!!R(3,6,b.isSaving$("status"))),D("matTooltip",a.description||""),oe("aria-disabled",!!R(4,
8,b.isSaving$("status")))("aria-label",a.displayText||null),B(3),Je(" ",a.displayText," "))},Z6a=function(a){a&1&&(ze(0),O(1,Y6a,6,10,"div",43),Q(2,"async"),Ae());a&2&&(a=K(2),B(1),D("ngIf",R(2,1,a.issueStatusQuickAction$)))},$6a=function(a){a&1&&(H(0,"b-issue-card",47,48),Q(2,"async"));if(a&2){var b=M(1);a=K(2);D("onedevIsHovercardReady",b.init)("issueId",R(2,2,a.canonicalIssueId$))}},b7a=function(a){if(a&1){var b=y();F(0,"b-estimated-effort-row",49);J("effortChange",function(e){z(b);var f=K(2);
return A(a7a(f.editIssueService,f.issueId,e))});Q(1,"async");Q(2,"async");Q(3,"async");G()}if(a&2){a=K(2);var c,d;D("effort",null!==(c=R(1,3,a.effort$))&&void 0!==c?c:void 0)("effortSpec",null!==(d=R(2,5,a.effortSpec$))&&void 0!==d?d:void 0)("disabled",!R(3,7,a.hasAclToEdit$))}},d7a=function(a){a&1&&(F(0,"div"),P(1," Expanded access is turned on for this component. Assignees and verifiers can edit issues in this component, and CC'd users can comment on them. "),F(2,"a",55),P(3,"Learn more"),G()());
a&2&&(a=K(3),B(2),D("href",c7a(a.documentationLinks),Ud))},e7a=function(a){a&1&&(F(0,"div",50)(1,"span",51),P(2,"Expanded Access"),G(),F(3,"xap-bubble",52)(4,"xap-icon-trigger"),H(5,"mat-icon",53),G(),O(6,d7a,4,1,"ng-template",null,54,Pf),G()());if(a&2){var b=M(7);B(3);D("panelTemplate",b)}},f7a=function(a){a&1&&(F(0,"span",61),Q(1,"async"),P(2),G());if(a&2){a=K().ngIf;var b=K(4);te("disabled",!!R(1,3,b.isSaving$("assignee")));B(2);Je(" ",a.displayText," ")}},g7a=function(a,b){if(a&1){var c=y();F(0,
"div",59);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(at(e,d))})("click",function(){var d=z(c).ngIf,e=K(4);return A(at(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;at(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;at(K(4),e);d.stopPropagation();return A(d.preventDefault())});Q(1,"async");H(2,"div",45);O(3,f7a,3,5,"span",60);Q(4,"async");G()}a&2&&(a=b.ngIf,b=K(4),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",
a.description),oe("aria-disabled",!!R(1,5,b.isSaving$("assignee")))("aria-label",a.description),B(3),D("ngIf",R(4,7,b.hasAclToEdit$)))},h7a=function(a){a&1&&(ze(0),O(1,g7a,5,9,"div",58),Q(2,"async"),Ae());a&2&&(a=K(3),B(1),D("ngIf",R(2,1,a.issueAssigneeQuickAction$)))},j7a=function(a){if(a&1){var b=y();ze(0);F(1,"b-edit-field",56,57);J("onHotkey",function(){z(b);var f=M(2);return A(Zo(f,null,!0,!1))})("valueChange",function(f){z(b);var h=M(2),k=K(2);return A(i7a(k,h,null!==f&&void 0!==f?f:""))});
Q(3,"async");Q(4,"async");Q(5,"async");G();O(6,h7a,3,3,"ng-container",0);Ae()}if(a&2){a=K().ngIf;var c=K(),d,e;B(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",!R(3,12,c.hasAclToEdit$))("disabled",!!R(4,14,c.isSaving$("assignee")))("showAvailability",!0)("teamId",null!==(e=R(5,16,c.teamId$))&&void 0!==e?e:"");B(5);D("ngIf",c.defaultAssigneeQuickActionEnabled)}},
k7a=function(a){if(a&1){var b=y();F(0,"div",66);J("click",function(){z(b);var c=K(3);return A(bt(c.editIssueService,c.issueId,""))});P(1," Un-assign ");G()}},l7a=function(a,b){if(a&1){var c=y();F(0,"div",68);J("onHotkey",function(){var d=z(c).ngIf,e=K(4);return A(at(e,d))})("click",function(){var d=z(c).ngIf,e=K(4);return A(at(e,d))})("keydown.enter",function(d){var e=z(c).ngIf;at(K(4),e);d.stopPropagation();return A(d.preventDefault())})("keydown.space",function(d){var e=z(c).ngIf;at(K(4),e);d.stopPropagation();
return A(d.preventDefault())});Q(1,"async");Q(2,"async");P(3);G()}a&2&&(a=b.ngIf,b=K(4),te("disabled",!!R(1,7,b.isSaving$("assignee"))),D("hotkey",b.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",a.description),oe("aria-disabled",!!R(2,9,b.isSaving$("assignee")))("aria-label",a.description),B(3),Je(" ",a.displayText," "))},m7a=function(a){a&1&&(ze(0),O(1,l7a,4,11,"div",67),Q(2,"async"),Ae());a&2&&(a=K(3),B(1),D("ngIf",R(2,1,a.issueAssigneeQuickAction$)))},n7a=function(a){if(a&1){var b=y();
F(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Assignee");G();F(3,"onedev-field-value",41);Q(4,"async");F(5,"b-user-picker",62,63);J("onHotkey",function(){z(b);var e=M(6);return A(e.openPopOver())})("emailChange",function(e){z(b);var f=K(2);return A(bt(f.editIssueService,f.issueId,e))});Q(7,"async");Q(8,"async");G();F(9,"div",64);O(10,k7a,2,0,"div",65);Q(11,"async");O(12,m7a,3,3,"ng-container",0);Q(13,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);D("thinking",!!R(4,7,c.isSaving$("assignee")));
B(2);D("hotkey",c.HOTKEYS.CHANGE_ASSIGNEE)("user",a.assigneeUser)("teamId",null!==(d=R(7,9,c.teamId$))&&void 0!==d?d:"")("disabled",!R(8,11,c.hasAclToEdit$));B(5);D("ngIf",a.assigneeUser&&R(11,13,c.hasAclToEdit$));B(2);D("ngIf",c.defaultAssigneeQuickActionEnabled&&R(13,15,c.hasAclToEdit$))}},p7a=function(a){if(a&1){var b=y();ze(0);F(1,"b-edit-field",69,70);J("valueChange",function(f){z(b);var h=M(2),k=K(2);return A(o7a(k,h,null!==f&&void 0!==f?f:""))});Q(3,"async");Q(4,"async");Q(5,"async");G();Ae()}if(a&
2){a=K().ngIf;var c=K(),d,e;B(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",!R(3,10,c.hasAclToEdit$))("disabled",!!R(4,12,c.isSaving$("verifier")))("showAvailability",!0)("teamId",null!==(e=R(5,14,c.teamId$))&&void 0!==e?e:"")}},r7a=function(a){if(a&1){var b=y();F(0,"onedev-edit-field")(1,"onedev-field-label");P(2,"Verifier");G();F(3,"onedev-field-value",41);Q(4,"async");F(5,"b-user-picker",
42);J("emailChange",function(e){z(b);var f=K(2);return A(q7a(f.editIssueService,f.issueId,e))});Q(6,"async");Q(7,"async");G()()()}if(a&2){a=K().ngIf;var c=K(),d;B(3);D("thinking",!!R(4,4,c.isSaving$("verifier")));B(2);D("user",a.verifierUser)("teamId",null!==(d=R(6,6,c.teamId$))&&void 0!==d?d:"")("disabled",!R(7,8,c.hasAclToEdit$))}},s7a=function(a){a&1&&(F(0,"span"),P(1," Un-CC me "),G())},t7a=function(a){a&1&&(F(0,"span"),P(1," CC me "),G())},v7a=function(a){if(a&1){var b=y();F(0,"div",71);J("click",
function(){z(b);var c=K(2);return A(u7a(c))})("keydown.enter",function(c){z(b);u7a(K(2));c.stopPropagation();return A(c.preventDefault())})("keydown.space",function(c){z(b);u7a(K(2));c.stopPropagation();return A(c.preventDefault())});Q(1,"async");Q(2,"async");Q(3,"async");Q(4,"async");O(5,s7a,2,0,"span",0);Q(6,"async");O(7,t7a,2,0,"span",0);Q(8,"async");Q(9,"async");G()}a&2&&(a=K(2),te("disabled",!!R(1,7,a.isSaving$("ccs"))),D("matTooltip",R(4,13,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),
oe("aria-disabled",!!R(2,9,a.isSaving$("ccs")))("aria-label",R(3,11,a.isCurrentUserCCd$)?"Remove yourself from CC":"Add yourself to CC"),B(5),D("ngIf",R(6,15,a.isCurrentUserCCd$)),B(2),D("ngIf",!R(8,17,a.isCurrentUserCCd$)&&R(9,19,a.isAllowedToEditCC$)))},w7a=function(a){a&1&&Be(0)},x7a=function(a){a&1&&(ze(0),O(1,w7a,1,0,"ng-container",33),Ae());if(a&2){K();var b=M(71);B(1);D("ngTemplateOutlet",b)}},y7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K(2);D("readonly",!0)("defaultLineCount",
3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},z7a=function(a,b){a&1&&(ze(0),O(1,y7a,1,6,"b-list-field",20),Q(2,"async"),Ae());a&2&&(a=b.ngIf,b=K(2),B(1),D("ngIf",R(2,1,b.shouldDisplayWtdmUi$)&&a.length))},A7a=function(a){a&1&&H(0,"b-list-field",72);if(a&2){a=K().ngIf;var b=K();D("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip",
"Postmortems (auto-populated from a daily dump of Requiem)")}},C7a=function(a,b){a&1&&(F(0,"div"),Be(1,73),G());if(a&2){a=b.$implicit;K();var c=M(83);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Oe(2,B7a,a))}},D7a=function(a){a&1&&Be(0)},E7a=function(a){a&1&&(ze(0),O(1,D7a,1,0,"ng-container",33),Ae());if(a&2){K();var b=M(81);B(1);D("ngTemplateOutlet",b)}},F7a=function(a){a&1&&H(0,"hr",74)},G7a=function(a){a&1&&Be(0)},H7a=function(a){a&1&&(ze(0),O(1,G7a,1,0,"ng-container",33),Ae());if(a&
2){K(2);var b=M(67);B(1);D("ngTemplateOutlet",b)}},I7a=function(a){a&1&&Be(0)},J7a=function(a){a&1&&(ze(0),O(1,I7a,1,0,"ng-container",33),Ae());if(a&2){K(2);var b=M(69);B(1);D("ngTemplateOutlet",b)}},K7a=function(a){a&1&&Be(0)},L7a=function(a){a&1&&(ze(0),O(1,K7a,1,0,"ng-container",33),Ae());if(a&2){K(2);var b=M(71);B(1);D("ngTemplateOutlet",b)}},M7a=function(a,b){a&1&&(F(0,"div"),Be(1,73),G());if(a&2){a=b.$implicit;K(2);var c=M(83);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Oe(2,B7a,
a))}},N7a=function(a){a&1&&Be(0)},O7a=function(a){a&1&&(ze(0),O(1,N7a,1,0,"ng-container",33),Ae());if(a&2){K(2);var b=M(81);B(1);D("ngTemplateOutlet",b)}},P7a=function(a){a&1&&(F(0,"collapsible-panel",75),Q(1,"async"),O(2,H7a,2,1,"ng-container",0),Q(3,"async"),O(4,J7a,2,1,"ng-container",0),Q(5,"async"),O(6,L7a,2,1,"ng-container",0),Q(7,"async"),O(8,M7a,2,4,"div",21),Q(9,"async"),O(10,O7a,2,1,"ng-container",0),Q(11,"async"),G());if(a&2){a=K(2);var b;D("titleWhenCollapsed",null!==(b=R(1,8,a.showHiddenFieldsLabel$))&&
void 0!==b?b:"")("titleWhenExpanded","Hide additional fields");B(2);D("ngIf",a.showSloStatus&&!R(3,10,a.isSloStatusPrimary$));B(2);D("ngIf",!R(5,12,a.isSeverityPrimary$));B(2);D("ngIf",a.showChangelists&&!R(7,14,a.isChangelistPrimary$));B(2);D("ngForOf",R(9,16,a.hiddenCustomFields$))("ngForTrackBy",a.trackCustomField);B(2);D("ngIf",!R(11,18,a.isForgottenFourPrimary$))}},R7a=function(a){if(a&1){var b=y();F(0,"b-issue-slo-box",77);J("onSnoozeChange",function(h){z(b);var k=K(3);return A(Q7a(k.editIssueService,
k.issueId,h))});Q(1,"async");Q(2,"async");Q(3,"async");Q(4,"async");G()}if(a&2){a=K(2).ngIf;var c=K(),d,e,f;D("sloStatus",null!==(d=R(1,6,c.sloStatus$))&&void 0!==d?d:void 0)("sloSnoozeUntil",a.sloSnoozeUntil)("sloId",null!==(e=R(2,8,c.sloId$))&&void 0!==e?e:void 0)("componentId",a.componentId)("isEditable",!!R(3,10,c.hasAclToEdit$))("issueCreationTimestamp",null!==(f=R(4,12,c.createdTimeMicros$))&&void 0!==f?f:0)}},S7a=function(a){a&1&&O(0,R7a,5,14,"ng-template",76);a&2&&(a=K(2),D("refreshable",
a.refreshMonitor.getObservable()))},U7a=function(a){if(a&1){var b=y();F(0,"b-edit-field",78);J("valueChange",function(d){z(b);var e=K(2);return A(T7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"async");Q(2,"async");G()}if(a&2){a=K().ngIf;var c=K();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",!R(1,8,c.hasAclToEdit$))("disabled",
!!R(2,10,c.isSaving$("severity")))}},V7a=function(a){if(a&1){var b=y();F(0,"insights-graph-btn",82);J("pressed",function(){z(b);var c=K(3).issueInsightsSidebarService;Zn(c.analytics,ao.SIDEBAR,"ingress-click");c.openSidebar("deployments");return A()});G()}},X7a=function(a){if(a&1){var b=y();F(0,"b-list-field",79);J("valuesChange",function(h){z(b);var k=K(2);return A(W7a(k.editIssueService,k.issueId,h.values))});Q(1,"async");Q(2,"async");F(3,"div",80);O(4,V7a,1,0,"insights-graph-btn",81);Q(5,"async");
G()();H(6,"b-list-field",72);Q(7,"async");Q(8,"async");Q(9,"async")}if(a&2){a=K().ngIf;var c=K(),d,e,f;D("readonly",!R(1,15,c.hasAclToEdit$))("defaultLineCount",3)("title","Changelists")("type",c.ListFieldType.CHANGELISTS)("values",a.changelist)("listFieldDisabled",!!R(2,17,c.isSaving$("changelists")));B(4);D("ngIf",R(5,19,c.issueInsightsSidebarService.shouldShowInsightsGraphButton$));B(2);te("bv2-issue-metadata-error",null==(d=R(7,21,c.pendingChangelists$))?null:d.hasError);D("readonly",!0)("defaultLineCount",
3)("title","Pending Changelists")("type",c.ListFieldType.CHANGELISTS)("values",null!==(e=null==(e=R(8,23,c.pendingChangelists$))?null:e.cls)&&void 0!==e?e:Ne(27,P6a))("tooltip",(null==(f=R(9,25,c.pendingChangelists$))?0:f.hasError)?"Error fetching pending CLs":"Pending changelists (auto-populated)")}},Z7a=function(a){if(a&1){var b=y();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=K(2);return A(Y7a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"csv");Q(2,"async");Q(3,
"async");G()}if(a&2){a=K().ngIf;var c=K();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",R(1,8,a.foundInVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("foundInVersion")))}},a8a=function(a){if(a&1){var b=y();F(0,"b-edit-field",84);J("valueChange",function(d){z(b);var e=K(2);return A($7a(e.editIssueService,e.issueId,null!==d&&void 0!==
d?d:""))});Q(1,"csv");Q(2,"async");Q(3,"async");G()}if(a&2){a=K().ngIf;var c=K();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",R(1,8,a.targetedToVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("targetedToVersion")))}},c8a=function(a){if(a&1){var b=y();F(0,"b-edit-field",83);J("valueChange",function(d){z(b);var e=
K(2);return A(b8a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:""))});Q(1,"csv");Q(2,"async");Q(3,"async");G()}if(a&2){a=K().ngIf;var c=K();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",R(1,8,a.verifiedInVersion))("readonly",!R(2,10,c.hasAclToEdit$))("disabled",!!R(3,12,c.isSaving$("verifiedInVersion")))}},e8a=function(a){if(a&1){var b=
y();F(0,"b-edit-field",85);J("valueChange",function(d){z(b);var e=K(2);return A(d8a(e.editIssueService,e.issueId,null!==d&&void 0!==d?d:!1))});Q(1,"async");Q(2,"async");G()}if(a&2){a=K().ngIf;var c=K();D("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!R(1,7,c.hasAclToEdit$))("disabled",!!R(2,9,c.isSaving$("inProd")))}},f8a=function(a){a&1&&Be(0)},g8a=function(a){a&1&&Be(0)},h8a=function(a){a&1&&Be(0)},i8a=
function(a){a&1&&Be(0)},j8a=function(a){a&1&&(F(0,"div",4),O(1,f8a,1,0,"ng-container",33),O(2,g8a,1,0,"ng-container",33),O(3,h8a,1,0,"ng-container",33),O(4,i8a,1,0,"ng-container",33),G());if(a&2){K();var b=M(73),c=M(75),d=M(77),e=M(79);B(1);D("ngTemplateOutlet",b);B(1);D("ngTemplateOutlet",c);B(1);D("ngTemplateOutlet",d);B(1);D("ngTemplateOutlet",e)}},l8a=function(a,b){if(a&1){var c=y();F(0,"b-custom-field-editor",86);J("save",function(e){var f=z(c).$implicit,h=K(2);return A(k8a(h.editIssueService,
h.issueId,f.customFieldId,e))});Q(1,"async");Q(2,"async");G()}if(a&2){a=b.$implicit;b=K().ngIf;var d=K();D("issue",b)("field",a)("readonly",!R(1,4,d.hasAclToEdit$))("disabled",!!R(2,6,d.isSaving$(a.customFieldId)))}},r8a=function(a,b){if(a&1){var c=y();ze(0);O(1,L6a,2,1,"ng-container",0);Q(2,"async");O(3,O6a,3,3,"ng-container",0);O(4,R6a,3,3,"ng-container",0);Q(5,"async");O(6,T6a,6,16,"ng-container",1);O(7,V6a,8,10,"ng-template",null,2,Pf);F(9,"b-edit-field",3);J("valueChange",function(u){z(c);var x=
K();return A(m8a(x.editIssueService,x.issueId,null!==u&&void 0!==u?u:""))});Q(10,"async");Q(11,"async");G();F(12,"div",4)(13,"b-edit-field",5);J("onHotkey",function(u){z(c);var x=K();(u=n8a("P"+u))&&o8a(x.editIssueService,x.issueId,u);return A()})("valueChange",function(u){z(c);var x=K();return A(o8a(x.editIssueService,x.issueId,null!==u&&void 0!==u?u:""))});Q(14,"async");Q(15,"async");G();O(16,X6a,2,1,"ng-container",0);Q(17,"async");G();F(18,"div",6)(19,"b-edit-field",7);J("valueChange",function(u){z(c);
var x=K();return A(p8a(x,null!==u&&void 0!==u?u:""))});Q(20,"async");Q(21,"async");Q(22,"async");Q(23,"async");G();O(24,Z6a,3,3,"ng-container",0);Q(25,"async");G();F(26,"onedev-hovercard",null,8);O(28,$6a,3,4,"b-issue-card",9);G();O(29,b7a,4,9,"b-estimated-effort-row",10);Q(30,"async");Q(31,"async");F(32,"div",11);Q(33,"async");O(34,e7a,8,1,"div",12);Q(35,"async");F(36,"div",13);O(37,j7a,7,18,"ng-container",1);O(38,n7a,14,17,"ng-template",null,14,Pf);G();O(40,p7a,6,16,"ng-container",1);O(41,r7a,8,
10,"ng-template",null,15,Pf);F(43,"b-list-field",16,17);J("valuesChange",function(u){z(c);var x=M(44),E=K();return A(q8a(E,x,u.values))});Q(45,"async");Q(46,"async");Q(47,"async");F(48,"div",18);O(49,v7a,10,21,"div",19);Q(50,"async");Q(51,"async");Q(52,"async");G()()();O(53,x7a,2,1,"ng-container",0);Q(54,"async");O(55,z7a,3,3,"ng-container",0);Q(56,"async");O(57,A7a,1,6,"b-list-field",20);O(58,C7a,2,4,"div",21);Q(59,"async");O(60,E7a,2,1,"ng-container",0);Q(61,"async");O(62,F7a,1,0,"hr",22);Q(63,
"async");O(64,P7a,12,20,"collapsible-panel",23);Q(65,"async");O(66,S7a,1,1,"ng-template",null,24,Pf);O(68,U7a,3,12,"ng-template",null,25,Pf);O(70,X7a,10,28,"ng-template",null,26,Pf);O(72,Z7a,4,14,"ng-template",null,27,Pf);O(74,a8a,4,14,"ng-template",null,28,Pf);O(76,c8a,4,14,"ng-template",null,29,Pf);O(78,e8a,3,11,"ng-template",null,30,Pf);O(80,j8a,5,4,"ng-template",null,31,Pf);O(82,l8a,3,8,"ng-template",null,32,Pf);Ae()}if(a&2){a=b.ngIf;var d=M(8),e=M(27),f=M(39),h=M(42);b=K();var k,q;B(1);D("ngIf",
b.showSloStatus&&R(2,58,b.isSloStatusPrimary$));B(2);D("ngIf",b.sessionIsInternal);B(1);D("ngIf",R(5,60,b.teamWarningType$));B(2);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",d);B(3);D("name","type")("title","Type")("type",b.FieldType.ENUM)("value",a.type)("choices",b.typeChoices)("readonly",!R(10,62,b.hasAclToEdit$))("disabled",!!R(11,64,b.isSaving$("type")));B(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",!R(14,66,b.hasAclToEdit$))("disabled",!!R(15,68,b.isSaving$("priority")));B(3);D("ngIf",R(17,70,b.isSeverityPrimary$));B(3);D("name","status")("title","Status")("type",b.FieldType.ENUM)("value",a.status)("choices",null!==(k=R(20,72,b.statusChoices$))&&void 0!==k?k:Ne(114,P6a))("readonly",!R(21,74,b.hasAclToEdit$))("disabled",!!R(22,76,b.isSaving$("status")))("onedevHovercardActive",!!R(23,78,b.canonicalIssueId$))("onedevHovercardTrigger",
e);B(5);D("ngIf",R(25,80,b.hasAclToEdit$));B(5);D("ngIf",b.sessionIsInternal&&R(30,82,b.isEffortEnabled$)&&!R(31,84,b.isWithinExternalComponent$));B(3);te("implicit-access-box",R(33,86,b.showImplicitAccessIndicator$));B(2);D("ngIf",R(35,88,b.showImplicitAccessIndicator$));B(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",f);B(3);D("ngIf",!b.enablePeoplekitAc)("ngIfElse",h);B(3);D("defaultLineCount",5)("readonly",!R(45,90,b.isAllowedToEditCC$))("title","CC")("type",b.ListFieldType.CCS)("isUser",!0)("values",
a.cc)("users",a.ccUsers)("listFieldDisabled",!!R(46,92,b.isSaving$("ccs")))("teamId",null!==(q=R(47,94,b.teamId$))&&void 0!==q?q:"");B(6);D("ngIf",R(50,96,b.isCurrentUserCCd$)||!R(51,98,b.isCurrentUserCCd$)&&R(52,100,b.isAllowedToEditCC$));B(4);D("ngIf",b.showChangelists&&R(54,102,b.isChangelistPrimary$));B(2);D("ngIf",R(56,104,b.workspaces$));B(2);D("ngIf",!b.sessionIsExternal&&(null==a.postmortems?null:a.postmortems.length));B(1);D("ngForOf",R(59,106,b.visibleCustomFields$))("ngForTrackBy",b.trackCustomField);
B(2);D("ngIf",R(61,108,b.isForgottenFourPrimary$));B(2);D("ngIf",R(63,110,b.hasHiddenFields$));B(2);D("ngIf",R(65,112,b.hasHiddenFields$))}},s8a=function(a){a&1&&H(0,"edit-issue-metadata",5);a&2&&(a=K(),D("issueId",a.issueId))},t8a=function(a,b){var c=window.sessionStorage.getItem(b);if(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)}},u8a=function(a){return a instanceof ct},v8a=function(a){return a instanceof
dt},w8a=function(a,b){a&1&&(F(0,"h2",3),P(1),G());a&2&&(a=b.ngIf,B(1),Je("Issue ",a,""))},x8a=function(a){a&1&&(F(0,"a",15),P(1,"Learn more"),G())},y8a=function(a){if(a&1){var b=y();F(0,"button",16);J("click",function(){var c=z(b).ngIf,d=K(3);return A(d.editIssueService.unarchive(c))});P(1," Unarchive ");G()}},z8a=function(a){a&1&&(F(0,"b-callout",12)(1,"b-callout-body"),P(2,"This issue has been archived. "),O(3,x8a,2,0,"a",13),G(),F(4,"b-callout-actions"),O(5,y8a,2,0,"button",14),Q(6,"async"),G()());
a&2&&(a=K(2),D("messageType","caution")("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.activeSession.isInternalSession()),B(2),D("ngIf",R(6,5,a.id$)))},A8a=function(a){a&1&&(F(0,"a",19),P(1,"Learn more"),G())},B8a=function(a){a&1&&(F(0,"b-callout",17)(1,"b-callout-body"),P(2," This issue is in an archived component. "),O(3,A8a,2,0,"a",18),G()());a&2&&(a=K(2),D("format","app")("iconOverride","archive_24px"),B(3),D("ngIf",a.activeSession.isInternalSession()))},C8a=function(a,b){a&1&&
(ze(0),P(1," Reason: "),F(2,"code"),P(3),G(),P(4,". "),Ae());a&2&&(a=b.$implicit,B(3),Ke(a))},D8a=function(a){a&1&&(F(0,"a",24),P(1,"Learn more"),G())},F8a=function(a){if(a&1){var b=y();F(0,"button",25);J("click",function(){var d=z(b).ngIf,e=K(3);return A(E8a(e.editIssueService,d))});Q(1,"async");Q(2,"async");P(3," Undelete ");G()}if(a&2){a=K(3);var c;D("matTooltip",null!==(c=R(1,2,a.undeleteButtonTooltip$))&&void 0!==c?c:"")("disabled",!R(2,4,a.permissions.canUndeleteIssue$))}},G8a=function(a){a&
1&&(F(0,"b-callout",20)(1,"b-callout-body"),P(2," This issue has been deleted. "),O(3,C8a,5,1,"ng-container",21),Q(4,"async"),O(5,D8a,2,0,"a",22),G(),F(6,"b-callout-actions"),O(7,F8a,4,6,"button",23),Q(8,"async"),G()());if(a&2){a=K(2);var b;B(3);D("ngIf",null==(b=R(4,3,a.snapshot$))?null:b.deletionReason);B(2);D("ngIf",a.activeSession.isInternalSession());B(2);D("ngIf",R(8,5,a.id$))}},H8a=function(a,b){a&1&&(F(0,"output",37),P(1),G());a&2&&(a=b.$implicit,B(1),Je(" ",a," "))},J8a=function(a,b){a&1&&
(F(0,"a",34,35),P(2),O(3,H8a,2,1,"output",36),Q(4,"async"),G());if(a&2){a=b.$implicit;var c=M(1);D("routerLink",a.link)("active",c.isActive)("routerLinkActiveOptions",Ne(7,I8a));B(2);Je(" ",a.title," ");B(1);D("ngIf",R(4,5,a.count$))}},K8a=function(a,b){a&1&&(F(0,"header",26),H(1,"aside",27),Q(2,"async"),Q(3,"async"),F(4,"div",28),Q(5,"async"),Q(6,"async"),Q(7,"async"),H(8,"issue-banner",29),F(9,"aside",30)(10,"div",31),H(11,"chip-indicators")(12,"b-pagination-one-issue"),G(),H(13,"issue-actions",
29),G()(),F(14,"nav",32),O(15,J8a,5,8,"a",33),G()());a&2&&(a=b.$implicit,b=K(2),B(1),Ie("title","[",R(2,10,b.prettyStatus$),"] ",R(3,12,b.title$),""),B(3),te("overline",b.STATUS_IS_FEATURED[R(5,14,b.status$)])("color-field",b.STATUS_IS_FEATURED[R(6,16,b.status$)]),Ge("ngClass","status",R(7,18,b.status$),""),B(4),D("issueId",a),B(5),D("issueId",a),B(2),D("ngForOf",b.tabs))},L8a=function(a,b){a&1&&H(0,"issue-metadata-sidebar",29);a&2&&D("issueId",b.ngIf)},M8a=function(a){a&1&&(F(0,"div",4),Q(1,"async"),
O(2,z8a,7,7,"b-callout",5),Q(3,"async"),O(4,B8a,4,3,"b-callout",6),Q(5,"async"),O(6,G8a,9,7,"b-callout",7),Q(7,"async"),O(8,K8a,16,20,"header",8),Q(9,"async"),F(10,"div",9)(11,"article",10),H(12,"router-outlet"),G(),O(13,L8a,1,1,"issue-metadata-sidebar",11),Q(14,"async"),G()());a&2&&(a=K(),te("issue-editor-false",!R(1,7,a.permissions.hasAclToEdit$)),B(2),D("ngIf",R(3,9,a.archived$)),B(2),D("ngIf",R(5,11,a.inArchivedComponent$)),B(2),D("ngIf",R(7,13,a.deleted$)),B(2),D("ngIf",R(9,15,a.id$)),B(5),D("ngIf",
R(14,17,a.id$)))},N8a=function(a){a&1&&(F(0,"div",38),H(1,"b-access-denied-metadata",39),Q(2,"async"),G());a&2&&(a=K(),B(1),D("issueMetadata",R(2,1,a.issueMetadata$)))},O8a=function(a,b){a&1&&(ze(0),H(1,"b-issues-table",1),Ae());a&2&&(a=b.ngIf,b=K(),B(1),D("issueIds",a)("menuItemFactory",b.getMenuItems)("tableColumns",b.tableColumns)("initialSort",b.initialSort))},Q8a=function(a){if(a&1){var b=y();F(0,"div",5);H(1,"img",6);F(2,"p",7);P(3," This issue has no duplicates ");G();F(4,"p",8);P(5,' A duplicate is an issue with similar content. Marking an issue as a duplicate closes it and lists it as a duplicate of the original issue (sometimes called the "canonical issue"). ');
F(6,"a",9);P(7,"Learn more");G()();F(8,"button",10);J("click",function(){z(b);var c=K(2);return A(P8a(c))});P(9," Add ");G()()}a&2&&(a=K(2),B(1),D("src",a.ROBOT_SLEEPING,Ud))},R8a=function(a){a&1&&H(0,"b-duplicates-table",15);if(a&2){a=K(2).$implicit;var b=K();D("issueId",b.lastKnownId)("duplicateIds",a)}},S8a=function(a,b){a&1&&(ze(0),F(1,"a",16),P(2," View as search results "),G(),Ae());a&2&&(a=b.ngIf,B(1),D("routerLink",a.path)("queryParams",a.params))},T8a=function(a){if(a&1){var b=y();F(0,"h4",
11);P(1,"Duplicates ");F(2,"button",12);J("click",function(){z(b);var c=K(2);return A(P8a(c))});P(3," Add ");G()();O(4,R8a,1,2,"b-duplicates-table",13);F(5,"aside",14);O(6,S8a,3,2,"ng-container",1);Q(7,"async");G()}a&2&&(a=K(2),B(4),D("ngIf",a.lastKnownId),B(2),D("ngIf",R(7,2,a.dupeUrl$)))},U8a=function(a,b){a&1&&(ze(0),O(1,Q8a,10,1,"div",3),O(2,T8a,8,4,"ng-template",null,4,Pf),Ae());if(a&2){a=b.$implicit;var c=M(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},V8a=function(a){a&1&&(F(0,"aside",17),
H(1,"b-spinner"),G())},W8a=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:return sh(a,"Unexpected retention model")}},X8a=function(a){var b=a.hasRetentionPeriod()?{seconds:a.getRetentionPeriod().getSeconds(),nanos:a.getRetentionPeriod().getNanos()}:null;a=a.hasScheduledDeletionTime()?{seconds:a.getScheduledDeletionTime().getSeconds(),nanos:a.getScheduledDeletionTime().getNanos()}:null;return{retentionPeriod:b,scheduledDeletionTime:a}},
Y8a=function(a){a&1&&H(0,"b-restricted-chip",10);a&2&&(a=K(),D("label",a.getRestrictedLabel())("retentionState",null==a.attachment?null:a.attachment.piiRetentionState)("contentType","attachment"))},Z8a=function(a){a&1&&(F(0,"span",11),H(1,"b-actions-menu",12),G());a&2&&(a=K(),B(1),D("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},b9a=function(a){if(a&1){var b=y();F(0,"span")(1,"b-conditional-link",13);J("customHandler",function(){z(b);var c=
K();c.isRestricted()?$8a(c,!1):c.domSafe.openInNewTab(et(c,!1));return A()});G()()}a&2&&(a=K(),ye("bv2-issue-attachment-link ",a9a(a),""),B(1),D("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",et(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},c9a=function(a){if(a&1){var b=y();F(0,"span")(1,"b-conditional-link",13);J("customHandler",function(){z(b);var c=K();c.isRestricted()?$8a(c,!0):c.domSafe.openInNewTab(et(c,!0));return A()});G()()}a&2&&(a=K(),ye("bv2-issue-attachment-link ",
a9a(a),""),B(1),D("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",et(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},d9a=function(a){a&1&&(F(0,"span",14)(1,"a",15),H(2,"mat-icon",16),G()());a&2&&(a=K(),B(1),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud)("disableRipple",!0),B(1),D("svgIcon","help-outline"))},e9a=function(a){a&1&&(F(0,"div",17),P(1," You do not have access to this restricted attachment. "),F(2,"a",18),P(3,"Learn more"),G()());a&2&&(a=K(),B(2),
D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud))},g9a=function(a){if(a&1){var b=y();F(0,"button",18,19);J("click",function(){z(b);var c=K(2);return A(f9a(c))});P(2," Edit ");G()}},h9a=function(a){a&1&&(ze(0),P(1," on behalf of "),H(2,"b-user-display",6),Q(3,"async"),F(4,"onedev-hovercard",null,20),H(6,"b-issue-person-card",8),Q(7,"async"),G(),Ae());if(a&2){var b=M(5);a=K(2);B(2);D("onedevHovercardTrigger",b)("model",R(3,3,a.reporterUser$));B(4);D("email",R(7,5,a.reporterUserEmailAddress$))}},
i9a=function(a,b){if(a&1){var c=y();F(0,"a",21);J("click",function(d){var e=z(c).$implicit;K(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return A()});P(1);G()}a&2&&(a=b.$implicit,b=K().$implicit,K(),D("routerLinkObj",fn(a,{comment:1})),oe("aria-label","Comment number"+b.commentNumber),B(1),Je(" #",b.commentNumber,""))},k9a=function(a){a&1&&(ze(0),F(1,"span",22),P(2," \u2022 Edited"),G(),Ae());if(a&2){a=K().$implicit;var b=K();B(1);D("matTooltip",j9a(b,a))}},l9a=function(a){a&
1&&(ze(0),F(1,"p",23),P(2," Comment has been deleted. "),G(),Ae())},m9a=function(a){if(a&1){var b=y();F(0,"b-restricted-comment-placeholder",26);J("onConfirm",function(){z(b);var c=K().ngIf,d=K(3).$implicit,e=K();return A(e.loadRestrictedComment(c,d))});Q(1,"async");G()}a&2&&(a=K(5),D("disabled",!R(1,1,a.mayReadPii$)))},n9a=function(a){a&1&&(ze(0),O(1,m9a,2,3,"b-restricted-comment-placeholder",25),Q(2,"async"),Ae());a&2&&(a=K(4),B(1),D("ngIf",R(2,1,a.shouldShowRestrictedPlaceholder$)))},o9a=function(a){a&
1&&(ze(0),O(1,n9a,3,3,"ng-container",9),Q(2,"async"),Ae());a&2&&(a=K(3),B(1),D("ngIf",R(2,1,a.id$)))},p9a=function(a,b){a&1&&(H(0,"b-note-container",29),Q(1,"async"),Q(2,"async"));if(a&2){a=b.$implicit;b=K(4);var c;D("issueId",null!==(c=R(1,4,b.idAsNumber$))&&void 0!==c?c:0)("issueAccessLevel",R(2,6,b.accessLevel$))("note",a)("formattingMode",b.formattingMode)}},q9a=function(a){a&1&&(F(0,"div",30)(1,"div",31),P(2,"No description yet. Add one"),G()())},r9a=function(a){a&1&&(O(0,p9a,3,8,"b-note-container",
27),Q(1,"async"),O(2,q9a,3,0,"div",28));if(a&2){a=K(2).$implicit;var b=K();D("ngIf",""!==a.unlinkifiedComment&&R(1,2,b.firstNote$));B(2);D("ngIf",""===a.unlinkifiedComment)}},s9a=function(a){a&1&&(O(0,o9a,3,3,"ng-container",15),Q(1,"async"),O(2,r9a,3,4,"ng-template",null,24,Pf));if(a&2){var b=M(3);a=K(2);D("ngIf",R(1,2,a.isRedacted$))("ngIfElse",b)}},t9a=function(a,b){a&1&&(F(0,"div",34),H(1,"b-attachment-viewer",35),Q(2,"async"),G());if(a&2){a=b.$implicit;b=K(3);var c;Ge("id","attachment",a.attachmentId,
"");B(1);D("issueId",null!==(c=R(2,4,b.idAsNumber$))&&void 0!==c?c:0)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable())}},u9a=function(a){a&1&&(F(0,"div",32),O(1,t9a,3,6,"div",33),G());a&2&&(a=K().$implicit,B(1),D("ngForOf",a.attachments))},w9a=function(a,b){a&1&&(F(0,"div",1)(1,"h4",2)(2,"div",3)(3,"span",4),P(4,"Description"),G(),O(5,g9a,3,0,"button",5),H(6,"b-user-display",6),F(7,"onedev-hovercard",null,7),H(9,"b-issue-person-card",8),G(),P(10," created issue "),O(11,h9a,8,7,"ng-container",
9),Q(12,"async"),Q(13,"async"),O(14,i9a,2,3,"a",10),Q(15,"async"),O(16,k9a,3,1,"ng-container",9),Q(17,"async"),G(),F(18,"div",11),H(19,"b-formatted-date-time",12)(20,"b-actions-menu",13,14),Q(22,"async"),G()(),O(23,l9a,3,0,"ng-container",15),Q(24,"async"),O(25,s9a,4,4,"ng-template",null,16,Pf),O(27,u9a,2,1,"div",17),G());if(a&2){a=b.$implicit;var c=M(8),d=M(26);b=K();var e;B(5);D("ngIf",b.canEditComment());B(1);D("onedevHovercardTrigger",c)("model",a.userPerformingActionUser);B(3);D("email",b.getUserEmailIfAvailable());
B(2);D("ngIf",R(12,13,b.reporterUser$)&&R(13,15,b.isAuthorNotReporter$));B(3);D("ngIf",a.commentNumber&&R(15,17,b.idAsNumber$));B(2);D("ngIf",R(17,19,b.isShowCommentHistoryActionInMenu$));B(3);D("timestamp",a.modifiedDate);B(1);D("buttonLabel","Description actions")("menuItems",null!==(e=R(22,21,b.commentActionMenuItems$))&&void 0!==e?e:Ne(25,v9a));B(3);D("ngIf",R(24,23,b.isDeleted$))("ngIfElse",d);B(4);D("ngIf",null==a?null:null==a.attachments?null:a.attachments.length)}},x9a=function(a){a&1&&H(0,
"mat-icon",3)},y9a=function(a){a&1&&H(0,"b-spinner")},z9a=function(a,b){a&1&&(F(0,"span",11),P(1," of "),F(2,"a",12),P(3),G()());if(a&2){a=b.$implicit;K(2);var c=M(13);B(2);Ge("routerLink","/issues/",a,"");D("onedevHovercardTrigger",c);B(1);Je(" ",a," ")}},A9a=function(a,b){a&1&&(F(0,"div")(1,"div",9),P(2),G(),O(3,z9a,4,3,"span",10),Q(4,"async"),G());a&2&&(a=b.$implicit,b=K(),B(1),ye("b-chip xs squared status status",a,""),D("title",b.STATUS_FULL_TEXT[a]),B(1),Je(" ",b.STATUS_TERSE[a]," "),B(1),D("ngIf",
R(4,6,b.canonicalId$)))},B9a=function(a,b){a&1&&(F(0,"span"),P(1),G());a&2&&(a=b.$implicit,b=K(),ye("b-chip squared issue-type-",a,""),B(1),Je(" ",b.ISSUE_TYPE_TEXT.get(a)," "))},D9a=function(a,b){if(a&1){var c=y();F(0,"b-hotlist-chip-smart",17);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(C9a(e,d))});G()}a&2&&D("id",b.$implicit)},F9a=function(a,b){if(a&1){var c=y();F(0,"div",13)(1,"button",14);J("onHotkey",function(){z(c);var d=K();return A(E9a(d))})("click",function(){z(c);
var d=K();return A(E9a(d))});H(2,"mat-icon",15);P(3);Q(4,"async");G();O(5,D9a,1,1,"b-hotlist-chip-smart",16);G()}a&2&&(a=b.$implicit,b=K(),B(1),D("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER),B(2),Je(" ",R(4,3,b.textOfHotlistBtn$)," "),B(2),D("ngForOf",a))},G9a=function(a){a&1&&(H(0,"b-issue-card",18,19),Q(2,"async"));if(a&2){var b=M(1);a=K();D("onedevIsHovercardReady",b.init)("issueId",R(2,2,a.canonicalId$))}},H9a=function(a){return null==a?void 0:a.snapshot[0].hotlistId},I9a=function(a,b){a&1&&(F(0,"mat-option",
9)(1,"div",10),P(2),G(),F(3,"div",11),P(4),G()());a&2&&(a=b.$implicit,D("value",a),B(2),Ke(a.name),B(2),Ke(a.description))},J9a=function(a){if(a&1){var b=y();F(0,"mat-form-field",6)(1,"mat-select",7);J("valueChange",function(c){z(b);var d=K();return A(d.selectedFilter=c)});F(2,"mat-select-trigger");P(3);G();O(4,I9a,5,3,"mat-option",8);G()()}a&2&&(a=K(),B(1),D("value",a.selectedFilter),B(2),Ke(null==a.selectedFilter?null:a.selectedFilter.displayName),B(1),D("ngForOf",a.filters))},K9a=function(a){a&
1&&(ze(0),H(1,"mat-icon",12),P(2,"Oldest first"),Ae())},L9a=function(a){a&1&&(ze(0),H(1,"mat-icon",13),P(2,"Newest first"),Ae())},M9a=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K(2),B(1),Je(" by ",Ol(a.event.lastCommentEditorUser),""))},N9a=function(a){a&1&&(ze(0)(1),P(2,"Message last modified"),Ae(),O(3,M9a,2,1,"ng-container",0),ze(4),P(5," on "),H(6,"b-formatted-date-time",1),Ae()());a&2&&(a=K(),B(3),D("ngIf",0===a.event.version&&!!a.event.lastCommentEditorUser),B(3),D("timestamp",a.event.commentLastModifiedAtDate))},
O9a=function(a){a&1&&H(0,"b-user-email",5);a&2&&(a=K().$implicit,D("email",a.text)("withProfile",!0))},P9a=function(a){a&1&&(F(0,"b-issue-reference-widget",6),ze(1),P(2),Ae(),G());if(a&2){a=K().$implicit;var b=K();D("href",cn(a.text))("issueId",b.getIssueId(a));B(2);Ke(a.text)}},Q9a=function(a){a&1&&(ze(0),P(1),Ae());a&2&&(a=K().$implicit,B(1),Ke(a.text))},R9a=function(a,b){a&1&&(ze(0)(1,1),O(2,O9a,1,2,"b-user-email",2),O(3,P9a,3,3,"b-issue-reference-widget",3),O(4,Q9a,2,1,"ng-container",4),Ae()());
a&2&&(a=b.$implicit,B(1),D("ngSwitch",a.tag),B(1),D("ngSwitchCase","user"),B(1),D("ngSwitchCase","bug"))},S9a=function(a){a&1&&(ze(0),H(1,"b-component-card",3,4),Ae());if(a&2){var b=M(2);a=K();B(1);D("onedevIsHovercardReady",b.init)("componentId",a.id)}},T9a=function(a){a&1&&(F(0,"span"),P(1),G());if(a&2){a=K(5);var b;B(1);Ke(null!==(b=a.effortSpecName)&&void 0!==b?b:"Estimated Effort")}},U9a=function(a){a&1&&(F(0,"label"),O(1,T9a,2,1,"span",9),P(2,":\u200b "),G());if(a&2){a=K(4);var b=M(5);B(1);
D("ngIf",a.effortEnabled)("ngIfElse",b)}},V9a=function(a){a&1&&(F(0,"label"),P(1),G());a&2&&(a=K(3).$implicit,B(1),Je("",a.displayName,":\u200b"))},W9a=function(a){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),G());a&2&&(a=K().$implicit,B(1),D("email",a)("showEmail",!0))},X9a=function(a){a&1&&(ze(0),H(1,"plain-component-path",13),Ae());a&2&&(a=K(4).$implicit,B(1),D("id",a.oldValue))},Y9a=function(a){a&1&&H(0,"b-formatted-date-time",15);if(a&2){a=K(2).$implicit;var b=K(4);D("timestamp",1E3*b.asNumber(a))}},
Z9a=function(a){a&1&&(F(0,"span"),P(1,"[Issue creation date]"),G())},$9a=function(a){a&1&&(F(0,"span"),O(1,Y9a,1,1,"b-formatted-date-time",14),O(2,Z9a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),D("ngIf","<none>"!==a),B(1),D("ngIf","<none>"===a))},a$a=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Ke(a))},b$a=function(a){a&1&&(ze(0),O(1,W9a,2,2,"span",5),O(2,X9a,2,1,"ng-container",5),O(3,$9a,3,2,"span",5),O(4,a$a,2,1,"span",5),P(5," \u00a0 "),H(6,"span",11),P(7," \u00a0 "),Ae());
a&2&&(a=K(3).$implicit,B(1),D("ngIf",a.isUser),B(1),D("ngIf","component"===a.name),B(1),D("ngIf","sloSnoozeUntil"==a.name),B(1),D("ngIf",!a.isUser&&"component"!==a.name&&"sloSnoozeUntil"!==a.name))},c$a=function(a){a&1&&H(0,"b-user-display-name",12);a&2&&(a=K().$implicit,D("email",a)("showEmail",!0))},d$a=function(a){a&1&&(F(0,"span"),H(1,"plain-component-path",13),G());a&2&&(a=K(4).$implicit,B(1),D("id",a.newValue))},e$a=function(a){a&1&&H(0,"b-formatted-date-time",15);if(a&2){a=K(2).$implicit;var b=
K(4);D("timestamp",1E3*b.asNumber(a))}},f$a=function(a){a&1&&(F(0,"span"),P(1,"[Issue creation date]"),G())},g$a=function(a){a&1&&(F(0,"span"),O(1,e$a,1,1,"b-formatted-date-time",14),O(2,f$a,2,0,"span",5),G());a&2&&(a=K().$implicit,B(1),D("ngIf","<none>"!==a),B(1),D("ngIf","<none>"===a))},i$a=function(a){a&1&&(F(0,"span",18),P(1),G());if(a&2){a=K().$implicit;var b=K(3).$implicit;D("ngClass",Oe(2,h$a,b.oldValue&&"title"==b.name));B(1);Ke(a)}},j$a=function(a){a&1&&(ze(0),O(1,c$a,1,2,"b-user-display-name",
16),O(2,d$a,2,1,"span",5),O(3,g$a,3,2,"span",5),O(4,i$a,2,4,"span",17),Ae());a&2&&(a=K(3).$implicit,B(1),D("ngIf",a.isUser),B(1),D("ngIf","component"===a.name),B(1),D("ngIf","sloSnoozeUntil"===a.name),B(1),D("ngIf",!a.isUser&&"component"!=a.name&&"sloSnoozeUntil"!=a.name))},k$a=function(a){a&1&&(F(0,"div",8),O(1,U9a,3,2,"label",9),O(2,V9a,2,1,"ng-template",null,10,Pf),O(4,b$a,8,4,"ng-container",5),O(5,j$a,5,4,"ng-container",5),G());if(a&2){var b=M(3);a=K(2).$implicit;B(1);D("ngIf","effort"===a.name)("ngIfElse",
b);B(3);D("ngIf",a.oldValue);B(1);D("ngIf",a.newValue)}},l$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},m$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-user-display-name",12),O(2,l$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),D("email",a)("showEmail",!0),B(1),D("ngIf",!b))},n$a=function(a){a&1&&(F(0,"span"),O(1,m$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.added))},o$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},p$a=function(a,b){a&1&&(F(0,"span")(1,"span"),P(2),G(),
O(3,o$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),Ke(a),B(1),D("ngIf",!b))},q$a=function(a){a&1&&(F(0,"span"),O(1,p$a,4,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.added))},r$a=function(a){a&1&&(F(0,"div")(1,"label"),P(2),G(),O(3,n$a,2,1,"span",5),O(4,q$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),Je("+",a.displayName,":\u200b"),B(1),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser))},s$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},t$a=function(a,b){a&1&&(F(0,"span"),H(1,
"b-user-display-name",12),O(2,s$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),D("email",a)("showEmail",!0),B(1),D("ngIf",!b))},u$a=function(a){a&1&&(F(0,"span"),O(1,t$a,3,3,"span",19),G());a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.removed))},v$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},w$a=function(a,b){a&1&&(F(0,"span")(1,"span"),P(2),G(),O(3,v$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(2),Ke(a),B(1),D("ngIf",!b))},x$a=function(a){a&1&&(F(0,"span"),O(1,w$a,4,2,"span",19),G());
a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.removed))},y$a=function(a){a&1&&(F(0,"div")(1,"label"),P(2),G(),O(3,u$a,2,1,"span",5),O(4,x$a,2,1,"span",5),G());a&2&&(a=K(3).$implicit,B(2),Je("-",a.displayName,":\u200b"),B(1),D("ngIf",a.isUser),B(1),D("ngIf",!a.isUser))},z$a=function(a){a&1&&(F(0,"div",8),O(1,r$a,5,3,"div",5),O(2,y$a,5,3,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);D("ngIf",a.added&&a.added.length&&b.isStringArray(a.added));B(1);D("ngIf",a.removed&&a.removed.length&&b.isStringArray(a.removed))}},
A$a=function(a){a&1&&Be(0)},C$a=function(a,b){a&1&&(F(0,"span"),O(1,A$a,1,0,"ng-container",20),G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=M(3);B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Qe(B$a,c,a,b))}},D$a=function(a){a&1&&(F(0,"div")(1,"label"),P(2),G(),O(3,C$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),Je("+",a.displayName,":\u200b"),B(1),D("ngForOf",a.added))},E$a=function(a){a&1&&Be(0)},F$a=function(a,b){a&1&&(F(0,"span"),O(1,E$a,1,0,"ng-container",20),
G());if(a&2){a=b.$implicit;b=b.last;var c=K(4).$implicit;K();var d=M(3);B(1);D("ngTemplateOutlet",d)("ngTemplateOutletContext",Qe(B$a,c,a,b))}},G$a=function(a){a&1&&(F(0,"div")(1,"label"),P(2),G(),O(3,F$a,2,6,"span",19),G());a&2&&(a=K(3).$implicit,B(2),Je("-",a.displayName,":\u200b"),B(1),D("ngForOf",a.removed))},H$a=function(a){a&1&&(F(0,"div",8),O(1,D$a,4,2,"div",5),O(2,G$a,4,2,"div",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);D("ngIf",a.added&&a.added.length&&b.isLinkedItemArray(a.added));
B(1);D("ngIf",a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed))}},I$a=function(a){a&1&&H(0,"b-formatted-date-time",15);a&2&&(a=K().$implicit,D("timestamp",a))},J$a=function(a){a&1&&(F(0,"span"),P(1," - "),G())},K$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",15),O(2,J$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),D("timestamp",a),B(1),D("ngIf",!b))},L$a=function(a){a&1&&(F(0,"span"),O(1,K$a,3,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.oldValue.split(", ")))},
M$a=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Ke(a))},N$a=function(a){a&1&&(ze(0),O(1,I$a,1,1,"b-formatted-date-time",14),O(2,L$a,2,1,"span",5),O(3,M$a,2,1,"span",5),P(4," \u00a0 "),H(5,"span",11),P(6," \u00a0 "),Ae());if(a&2){a=K(3).$implicit;var b=K();B(1);D("ngIf",ft(b,a,"oldValue"));B(1);D("ngIf",gt(b,a,"oldValue"));B(1);D("ngIf",!ft(b,a,"oldValue")&&!gt(b,a,"oldValue"))}},O$a=function(a){a&1&&H(0,"b-formatted-date-time",15);a&2&&(a=K().$implicit,D("timestamp",a))},P$a=
function(a){a&1&&(F(0,"span"),P(1," - "),G())},Q$a=function(a,b){a&1&&(F(0,"span"),H(1,"b-formatted-date-time",15),O(2,P$a,2,0,"span",5),G());a&2&&(a=b.$implicit,b=b.last,B(1),D("timestamp",a),B(1),D("ngIf",!b))},R$a=function(a){a&1&&(F(0,"span"),O(1,Q$a,3,2,"span",19),G());a&2&&(a=K(4).$implicit,B(1),D("ngForOf",a.newValue.split(", ")))},S$a=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K().$implicit,B(1),Ke(a))},T$a=function(a){a&1&&(ze(0),O(1,O$a,1,1,"b-formatted-date-time",14),O(2,R$a,2,1,"span",
5),O(3,S$a,2,1,"span",5),Ae());if(a&2){a=K(3).$implicit;var b=K();B(1);D("ngIf",ft(b,a,"newValue"));B(1);D("ngIf",gt(b,a,"newValue"));B(1);D("ngIf",!ft(b,a,"newValue")&&!gt(b,a,"newValue"))}},U$a=function(a){a&1&&(F(0,"div",8)(1,"label"),P(2),G(),O(3,N$a,7,3,"ng-container",5),O(4,T$a,4,3,"ng-container",5),G());if(a&2){a=K(2).$implicit;var b=K();B(1);oe("title",b.customFieldName(a));B(1);Je("",b.customFieldName(a),":\u200b");B(1);D("ngIf",a.oldValue);B(1);D("ngIf",a.newValue)}},V$a=function(a){a&1&&
(ze(0),H(1,"b-formatted-date-time",6),O(2,k$a,6,4,"div",7),O(3,z$a,3,2,"div",7),O(4,H$a,3,2,"div",7),O(5,U$a,5,4,"div",7),Ae());a&2&&(a=K().$implicit,B(1),D("timestamp",a.timestamp),B(1),D("ngIf","SINGLE_VALUE"===a.type),B(1),D("ngIf","COLLECTION"===a.type||"USER_COLLECTION"===a.type),B(1),D("ngIf","LINKED_COLLECTION"===a.type),B(1),D("ngIf","CUSTOM_FIELD"===a.type))},W$a=function(a,b){a&1&&(F(0,"div",4),O(1,V$a,6,5,"ng-container",5),G());a&2&&(a=b.$implicit,b=K(),B(1),D("ngIf","sloSnoozeUntil"===
(null==a?void 0:a.name)?b.activeSession.isInternalSession():!0))},X$a=function(a){a&1&&H(0,"b-issue-card",25,26);if(a&2){var b=M(1);a=K(2).$implicit;var c=K(2);D("onedevIsHovercardReady",b.init)("issueId",c.asNumber(a))}},Y$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},Z$a=function(a){a&1&&(F(0,"span")(1,"onedev-hovercard",null,22),O(3,X$a,2,2,"b-issue-card",23),G(),F(4,"b-issue-reference-widget",24),P(5),G(),O(6,Y$a,2,0,"span",5),G());if(a&2){var b=M(2);a=K().$implicit;var c=K(),d=c.change;c=c.isLast;
var e=K();B(4);D("href",d.href)("onedevHovercardTrigger",b)("issueId",e.asNumber(a));B(1);Ke(a);B(1);D("ngIf",!c)}},$$a=function(a){a&1&&(F(0,"span"),P(1,", "),G())},aab=function(a){a&1&&(ze(0),H(1,"hotlist-link",13),O(2,$$a,2,0,"span",5),Ae());if(a&2){a=K(2).$implicit;var b=K().isLast;B(1);D("id",a);B(1);D("ngIf",!b)}},bab=function(a){a&1&&(F(0,"span"),P(1,", "),G())},cab=function(a){a&1&&(F(0,"a",28),P(1),G(),O(2,bab,2,0,"span",5));if(a&2){a=K(2).$implicit;var b=K(),c=b.isLast;D("href",b.change.href,
Ud);B(1);Ke(a);B(1);D("ngIf",!c)}},dab=function(a){a&1&&(O(0,aab,3,2,"ng-container",9),O(1,cab,3,3,"ng-template",null,27,Pf));if(a&2){var b=M(2);a=K(2).diff;var c=K();D("ngIf",c.isHotlistDiff(a))("ngIfElse",b)}},eab=function(a){a&1&&(ze(0),O(1,Z$a,7,5,"span",9),O(2,dab,3,2,"ng-template",null,21,Pf),Ae());if(a&2){var b=M(3);a=K().diff;var c=K();B(1);D("ngIf",c.isIssueDiff(a))("ngIfElse",b)}},fab=function(a,b){a&1&&O(0,eab,4,2,"ng-container",5);a&2&&D("ngIf",b.change.value)},gab=function(a){a&1&&(F(0,
"span"),P(1,"Estimated Effort (disabled)"),G())},hab=function(a,b){a&1&&(H(0,"b-user-membership-chip",24),Q(1,"async"));if(a&2){a=b.ngIf;b=K(2);var c;D("user",b.event.userPerformingActionUser)("email",a)("teamId",null!==(c=R(1,3,b.teamId$))&&void 0!==c?c:"")}},iab=function(a){a&1&&H(0,"b-user-display",25);a&2&&(a=K(2),D("model",a.event.userPerformingActionUser))},jab=function(a){a&1&&Be(0)},kab=function(a){a&1&&(ze(0),F(1,"span",26),O(2,jab,1,0,"ng-container",27),G(),F(3,"onedev-hovercard",null,28),
H(5,"b-issue-person-card",29),G(),Ae());if(a&2){var b=M(4);K();var c=M(11);a=K();B(1);D("onedevHovercardTrigger",b);B(1);D("ngTemplateOutlet",c);B(3);D("email",a.getUserEmailIfAvailable())}},lab=function(a){a&1&&(F(0,"span",30),P(1),G());a&2&&(a=K(2),B(1),Je(" <",Ol(a.event.userPerformingActionUser),"> "))},mab=function(a){if(a&1){var b=y();F(0,"span")(1,"a",31);J("click",function(c){z(b);var d=K(2);d.issueReferenceResolver.visit({issueId:d.issueId,elementId:"comment"+d.event.commentNumber,event:c});
return A()});P(2);G()()}a&2&&(a=K(2),B(1),D("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),oe("aria-label","Comment number"+a.event.commentNumber),B(1),Je(" #",a.event.commentNumber,""))},nab=function(a){if(a&1){var b=y();F(0,"button",32);J("click",function(){z(b);var c=K(2);return A(ht(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});G()}},oab=function(a){a&1&&H(0,"b-restricted-chip",33);if(a&2){a=K(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)}},qab=function(a){a&1&&(H(0,"b-actions-menu",34,35),Q(2,"async"));if(a&2){a=K(2);var b;D("buttonLabel","Comment actions")("menuItems",null!==(b=R(2,2,a.commentActionMenuItems$))&&void 0!==b?b:Ne(4,pab))}},rab=function(a){a&1&&(F(0,"div",36),H(1,"b-tagged-text",37),G());a&2&&(a=K(2),B(1),D("texts",a.event.taggedSummary))},sab=function(a){a&1&&(H(0,"b-issue-event-details",
38),Q(1,"async"),Q(2,"async"),Q(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;D("diffs",null!==(c=R(1,4,b.preEventDiffs$))&&void 0!==c?c:Ne(10,pab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=R(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",!!R(3,8,b.isEffortEnabled$))}},tab=function(a){a&1&&H(0,"b-formatted-date-time",39);a&2&&(a=K(2),D("timestamp",a.event.modifiedDate))},uab=function(a){a&1&&(F(0,"div",40),P(1," Comment has been deleted. "),G())},vab=function(a){if(a&1){var b=
y();F(0,"b-restricted-comment-placeholder",41);J("onConfirm",function(){z(b);var c=K(2);return A(c.loadRestrictedComment())});Q(1,"async");G()}a&2&&(a=K(2),D("disabled",!R(1,1,a.mayReadPii$)))},wab=function(a){a&1&&H(0,"b-note-container",42);a&2&&(a=K(2),D("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",a.formattingMode))},xab=function(a){if(a&1){var b=y();F(0,"a",46);J("click",function(){z(b);var c=K(3);return A(c.showCommentHistoryDialog(c.event.commentNumber))});
P(1," Show History ");G()}},yab=function(a){a&1&&(F(0,"div",43),H(1,"b-comment-edit-timestamp-message",44),O(2,xab,2,0,"a",45),G());a&2&&(a=K(2),B(1),D("event",a.event),B(1),D("ngIf",a.commentHistoryEnabled))},zab=function(a){a&1&&(H(0,"b-issue-event-details",38),Q(1,"async"),Q(2,"async"),Q(3,"async"));if(a&2){a=K().ngIf;var b=K(),c,d;D("diffs",null!==(c=R(1,4,b.postEventDiffs$))&&void 0!==c?c:Ne(10,pab))("customFieldMap",a.customFieldMap)("effortSpecName",null==(d=R(2,6,b.effortSpec$))?null:d.getName())("effortEnabled",
!!R(3,8,b.isEffortEnabled$))}},Aab=function(a,b){a&1&&(F(0,"div",49),H(1,"b-attachment-viewer",50),G());a&2&&(a=b.$implicit,b=K(3),Ge("id","attachment",a.attachmentId,""),B(1),D("issueId",b.issueId)("attachment",a)("attachmentUploader",b.getUserEmailIfAvailable()))},Bab=function(a){a&1&&(F(0,"div",47),O(1,Aab,2,4,"div",48),G());a&2&&(a=K(2),B(1),D("ngForOf",a.event.attachments))},Cab=function(a){a&1&&(ze(0),F(1,"div",1),H(2,"b-user-image",2),G(),F(3,"div",3)(4,"h4",4),Q(5,"async"),O(6,hab,2,5,"b-user-membership-chip",
5),O(7,iab,1,1,"ng-template",null,6,Pf),O(9,kab,6,3,"ng-container",7),O(10,lab,2,1,"ng-template",null,8,Pf),O(12,mab,3,3,"span",0),O(13,nab,1,0,"button",9),Q(14,"async"),F(15,"span",10),O(16,oab,1,3,"b-restricted-chip",11),H(17,"b-formatted-date-time",12),O(18,qab,3,5,"b-actions-menu",13),G()(),H(19,"div",14),O(20,rab,2,1,"div",15),O(21,sab,4,11,"b-issue-event-details",16),Q(22,"async"),H(23,"div",14),F(24,"div",17)(25,"div"),O(26,tab,1,1,"b-formatted-date-time",18),Q(27,"async"),O(28,uab,2,0,"div",
19),O(29,vab,2,3,"b-restricted-comment-placeholder",20),O(30,wab,1,4,"b-note-container",21),G(),O(31,yab,3,2,"div",22),G(),O(32,zab,4,11,"b-issue-event-details",16),Q(33,"async"),H(34,"div",14),O(35,Bab,2,1,"div",23),H(36,"div",14),G(),Ae());if(a&2){var b=M(8),c=M(11);a=K();B(2);D("email",a.getUserEmailIfAvailable());B(2);oe("aria-label",R(5,20,a.ariaLabelHeading$));B(2);D("ngIf",a.enableTeamAnnotations&&a.getUserEmailIfAvailable())("ngIfElse",b);B(3);D("ngIf",a.isNonObfuscatedEmail(a.getUserEmailIfAvailable()))("ngIfElse",
c);B(3);D("ngIf",a.isCommentEvent(a.event));B(1);D("ngIf",R(14,22,a.canEditComment$)&&!it(a));B(3);D("ngIf",a.isRestricted());B(1);D("timestamp",a.event.modifiedDate);B(1);D("ngIf",a.isCommentEvent(a.event));B(2);D("ngIf",a.event.taggedSummary&&a.event.taggedSummary.length);B(1);D("ngIf",R(22,24,a.showFullHistory$));B(5);D("ngIf",R(27,26,a.isShowingCommentTimestamp$));B(2);D("ngIf",a.isDeleted());B(1);D("ngIf",it(a)&&!a.isDeleted());B(1);D("ngIf",sn(a.event)&&!!a.event.unlinkifiedComment&&!it(a)&&
!a.isDeleted());B(1);D("ngIf",a.isCommentEvent(a.event)&&0<(a.event.commentVersion||0)&&!it(a));B(1);D("ngIf",R(33,28,a.showFullHistory$));B(3);D("ngIf",null==a.event?null:null==a.event.attachments?null:a.event.attachments.length)}},Dab=function(a){a&1&&(F(0,"aside",3),H(1,"b-spinner"),G())},Eab=function(a){a&1&&(F(0,"div",5),H(1,"b-history-event",6),G());if(a&2){a=K().$implicit;var b=K();B(1);D("issueId",b.internalIssueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Fab=function(a,b){a&1&&
(ze(0),O(1,Eab,2,3,"div",4),Ae());a&2&&(a=b.$implicit,b=K(),B(1),D("ngIf",b.internalIssueId&&b.showEvent(a)))},Gab=function(a){a&1&&(F(0,"aside",3),H(1,"b-spinner"),G())},Hab=function(a){a&1&&(F(0,"div",3),H(1,"b-history-event",4),G());if(a&2){a=K().$implicit;var b=K();B(1);D("issueId",b.issueId)("issueAccessLevel",b.issueAccessLevel)("event",a)}},Iab=function(a,b){a&1&&(ze(0),O(1,Hab,2,3,"div",2),Ae());a&2&&(a=b.$implicit,b=K(),B(1),D("ngIf",b.issueId&&b.showEvent(a)))},Kab=function(a,b){a&1&&(H(0,
"b-history-event-stream",4),Q(1,"async"),Q(2,"async"),Q(3,"async"));a&2&&(a=b.$implicit,b=K(),D("events",Oe(10,Jab,a))("issueId",R(1,4,b.idNumber$))("issueAccessLevel",R(2,6,b.accessLevel$))("showFullHistory",R(3,8,b.preferences.showFullHistory$)))},Lab=function(a){a&1&&(H(0,"b-event-stream",5),Q(1,"async"),Q(2,"async"),Q(3,"async"),Q(4,"async"));a&2&&(a=K(),D("issueId",R(1,4,a.idNumber$))("events",R(2,6,a.events$))("issueAccessLevel",R(3,8,a.accessLevel$))("showFullHistory",R(4,10,a.preferences.showFullHistory$)))},
Mab=function(a){a&1&&(H(0,"b-history-event-stream",6),Q(1,"async"),Q(2,"async"),Q(3,"slice"),Q(4,"async"),Q(5,"async"));a&2&&(a=K(),D("issueId",R(1,4,a.idNumber$))("issueAccessLevel",R(2,6,a.accessLevel$))("events",Se(3,8,R(4,11,a.events$),1))("showFullHistory",R(5,13,a.preferences.showFullHistory$)))},Nab=function(a){a&1&&(F(0,"aside",7),H(1,"b-spinner"),G())},Oab=function(a){if(a&1){var b=y();F(0,"span")(1,"b-checkbox",9);J("change",function(){z(b);var c=K(3);return A(c.toggleAutoCcOnComment())});
Q(2,"async");Q(3,"async");G()()}a&2&&(a=K(3),B(1),D("checked",!!R(2,2,a.autoCcOnComment$))("disabled",!!R(3,4,a.isCurrentUserCCd$)))},Pab=function(a){a&1&&(H(0,"b-checkbox",12),Q(1,"async"));a&2&&(a=K(4),D("checked",!0)("disabled",!0)("tooltip",R(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},Qab=function(a){a&1&&(F(0,"span",10),O(1,Pab,2,5,"b-checkbox",11),Q(2,"async"),G());a&2&&(a=K(3),B(1),D("ngIf",R(2,1,a.isCurrentUserCCd$)))},Rab=function(a){a&1&&H(0,"b-markdown-toggle")},Vab=
function(a){if(a&1){var b=y();ze(0);F(1,"h3",1);P(2,"Add comment");G();F(3,"div",2);Q(4,"async");F(5,"b-comment-box",3,4);J("onHotkey",function(){z(b);var h=M(6);return A(Sab(h,"editpage-hotkey"))})("onChange",function(){z(b);var h=K(2);return A(h.saveCommentDraft())})("onFocusEvent",function(){z(b);var h=K(2);return A(h.wasFocused=!0)})("onSubmit",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("onRestrict",function(){z(b);var h=K(2);return A(h.showNewContentJudgementDialog())});Q(7,
"async");Q(8,"async");Q(9,"async");Q(10,"async");Q(11,"async");F(12,"div",5)(13,"b-button",6);J("onAction",function(){z(b);var h=K(2);return A(h.submitCommentBox())})("click",function(){z(b);var h=K(2);return A(h.submitCommentBox())});Q(14,"async");P(15," Comment ");G();F(16,"div",5);O(17,Oab,4,6,"span",0);Q(18,"async");Q(19,"async");O(20,Qab,3,3,"span",7);Q(21,"async");Q(22,"async");O(23,Rab,1,0,"b-markdown-toggle",0);Q(24,"async");G();H(25,"b-access-level-indicator",8);Q(26,"async");G()()();Ae()}if(a&
2){a=K().ngIf;var c=K(),d,e,f;B(3);D("ngClass",Pe(41,Uab,R(4,15,c.empty$),!c.wasFocused));B(2);D("hotkey",c.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",R(7,17,c.comment$))("componentId",a.componentId)("placeholder",null!==(d=R(8,19,c.commentPlaceholderText$))&&void 0!==d?d:void 0)("judgementForNewContent",null!==(e=R(9,21,c.judgementForNewContent$))&&void 0!==e?e:void 0)("audience",null!==(f=R(10,23,c.audience$))&&void 0!==f?f:void 0)("disabled",!1===R(11,25,c.commentBoxEnabled$));
B(8);D("disabled",!1===R(14,27,c.commentButtonEnabled$));B(4);D("ngIf",!R(18,29,c.isCurrentUserCCd$)&&R(19,31,c.hasAclToEdit$));B(3);D("ngIf",R(21,33,c.isCurrentUserCCd$)||!R(22,35,c.hasAclToEdit$));B(3);D("ngIf",R(24,37,c.hasAclToComment$));B(2);D("accessLevel",R(26,39,c.accessLevel$))}},Wab=function(a,b){a&1&&(ze(0),O(1,Vab,27,44,"ng-container",0),Ae());a&2&&(a=b.ngIf,B(1),D("ngIf",!a.isDeleted))},Xab=function(a){a&1&&H(0,"b-issue-person-card",9);a&2&&(a=K().$implicit,D("email",a.author.emailAddress))},
Yab=function(a,b){a&1&&(F(0,"div",2),H(1,"b-secure-image-widget",3),F(2,"span",4)(3,"span",5),P(4),G(),F(5,"onedev-hovercard",null,6),O(7,Xab,1,1,"b-issue-person-card",7),G(),F(8,"a",8),P(9),G()()());if(a&2){a=b.$implicit;var c=M(6);B(1);D("showByDefault",!0)("alt",a.alt)("src",a.src);B(2);D("onedevHovercardTrigger",c);B(1);Je(" ",a.author.emailAddress," ");B(3);D("ngIf",a.author.emailAddress);B(1);Ge("href","#",a.commentNumber,"",Ud);B(1);Je(" #",a.commentNumber," ")}},Zab=function(a){a&1&&(F(0,
"a",9),P(1),G());a&2&&(a=K().$implicit,Ge("href","#",a.commentNumber,"",Ud),B(1),Je("#",a.commentNumber,""))},$ab=function(a,b){a&1&&(F(0,"div",6)(1,"b-person-hovercard",7),P(2),G(),O(3,Zab,2,2,"a",8),G());a&2&&(a=b.$implicit,B(1),D("email",a.author),B(1),Ke(a.author),B(1),D("ngIf",a.commentNumber))},abb=function(a,b){a&1&&(F(0,"li",2)(1,"section",3)(2,"div"),P(3),G(),F(4,"div"),P(5),G(),F(6,"div"),P(7),G()(),F(8,"section")(9,"div",4),O(10,$ab,4,3,"div",5),G()()());a&2&&(a=b.$implicit,B(3),Je(" ",
a.priority," "),B(2),Je(" ",a.title," "),B(2),Je(" ",a.issueId," "),B(3),D("ngForOf",a.sourceComments))},bbb=function(a,b){a&1&&(ze(0),F(1,"section")(2,"h3"),P(3),G(),F(4,"ol"),O(5,abb,11,4,"li",1),G()(),Ae());a&2&&(a=b.ngIf,B(3),Je("Mentioned bugs (",a.length,")"),B(2),D("ngForOf",a))},dbb=function(a){a&1&&(ze(0),H(1,"mat-icon",10),Be(2,11),Ae());if(a&2){a=K().$implicit;K();var b=M(13);B(2);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Oe(2,cbb,a))}},ebb=function(){},fbb=function(a){a&1&&O(0,
ebb,0,0,"ng-template")},gbb=function(a){a&1&&(ze(0),O(1,fbb,1,0,null,13),Ae());a&2&&(a=K(2).$implicit,B(1),D("ngTemplateOutlet",a.tabIconTemplate))},hbb=function(a){a&1&&(O(0,gbb,2,1,"ng-container",12),Be(1,11));if(a&2){a=K().$implicit;K();var b=M(13);D("ngIf",a.tabIconTemplate);B(1);D("ngTemplateOutlet",b)("ngTemplateOutletContext",Oe(3,cbb,a))}},ibb=function(a,b){if(a&1){var c=y();F(0,"button",8);J("click",function(){var e=z(c).$implicit,f=K();e=e.key;f.internalExpandedTabs.has(e)?f.internalExpandedTabs.delete(e):
f.internalExpandedTabs.add(e);f.expandedTabsChanged.emit(new Set(f.internalExpandedTabs));return A()});Q(1,"async");Q(2,"async");Q(3,"async");O(4,dbb,3,4,"ng-container",3);Q(5,"async");O(6,hbb,2,5,"ng-template",null,9,Pf);G()}if(a&2){a=b.$implicit;var d=M(7);b=K();te("expanded",!!R(1,8,Hs(b.internalExpandedTabs,a.key)));qe("aria-controls","expandable-tabs-",a.key,"-content");oe("aria-label",a.ariaLabel)("aria-expanded",!!R(2,10,Hs(b.internalExpandedTabs,a.key)))("aria-selected",!!R(3,12,Hs(b.internalExpandedTabs,
a.key)));B(4);D("ngIf",R(5,14,Hs(b.internalExpandedTabs,a.key)))("ngIfElse",d)}},jbb=function(a){if(a&1){var b=y();ze(0);F(1,"button",14);J("click",function(){z(b);var c=K();return A(c.hideAll())});P(2," Hide all ");G();Ae()}},kbb=function(a){if(a&1){var b=y();F(0,"button",15);J("click",function(){z(b);var c=K();return A(c.showAll())});P(1," Show all ");G()}},lbb=function(){},mbb=function(a){a&1&&O(0,lbb,0,0,"ng-template")},nbb=function(a){a&1&&(ze(0),O(1,mbb,1,0,null,13),Ae());a&2&&(a=K(2).$implicit,
B(1),D("ngTemplateOutlet",a.tabIconTemplate))},obb=function(){},pbb=function(a){a&1&&O(0,obb,0,0,"ng-template")},qbb=function(a){a&1&&(ze(0),O(1,pbb,1,0,null,13),Ae());a&2&&(a=K(2).$implicit,B(1),D("ngTemplateOutlet",a.tabContentTemplate))},rbb=function(a){a&1&&(F(0,"div",17)(1,"h4"),O(2,nbb,2,1,"ng-container",12),Be(3,11),G(),O(4,qbb,2,1,"ng-container",12),G());if(a&2){a=K().$implicit;K();var b=M(13);Ge("id","expandable-tabs-",a.key,"-content");B(2);D("ngIf",a.tabIconTemplate);B(1);D("ngTemplateOutlet",
b)("ngTemplateOutletContext",Oe(5,cbb,a));B(1);D("ngIf",a.tabContentTemplate)}},sbb=function(a,b){a&1&&(ze(0),O(1,rbb,5,7,"div",16),Q(2,"async"),Ae());a&2&&(a=b.$implicit,b=K(),B(1),D("ngIf",R(2,1,Hs(b.internalExpandedTabs,a.key))))},tbb=function(){},ubb=function(a){a&1&&O(0,tbb,0,0,"ng-template")},vbb=function(a){a&1&&(ze(0),O(1,ubb,1,0,null,13),Ae());a&2&&(a=K().tab,B(1),D("ngTemplateOutlet",a.tabHeaderTemplate))},wbb=function(a){a&1&&P(0);a&2&&(a=K().tab,Ke(a.key))},xbb=function(a,b){a&1&&(O(0,
vbb,2,1,"ng-container",3),O(1,wbb,1,1,"ng-template",null,18,Pf));if(a&2){a=b.tab;var c=M(2);D("ngIf",a.tabHeaderTemplate)("ngIfElse",c)}},ybb=function(a){a&1&&H(0,"mat-icon",8)},zbb=function(a){a&1&&(P(0),Q(1,"async"));if(a&2){a=K(2);var b;Je("Screenshots (",null!==(b=null==(b=R(1,1,a.images$))?null:b.length)&&void 0!==b?b:0,")")}},Bbb=function(a){a&1&&(H(0,"inline-images-summary",9),Q(1,"async"));if(a&2){a=K(2);var b;D("images",null!==(b=R(1,1,a.images$))&&void 0!==b?b:Ne(3,Abb))}},Cbb=function(a){a&
1&&H(0,"mat-icon",10)},Dbb=function(a){a&1&&(P(0),Q(1,"async"));if(a&2){a=K(2);var b;Je("Mentioned bugs (",null!==(b=null==(b=R(1,1,a.bugs$))?null:b.length)&&void 0!==b?b:0,")")}},Ebb=function(a,b){a&1&&H(0,"b-mentioned-bugs",12);a&2&&(a=b.ngIf,b=K(3),D("issueReferences",a)("currentIssueId",b.issueId))},Fbb=function(a){a&1&&(O(0,Ebb,1,2,"b-mentioned-bugs",11),Q(1,"async"));a&2&&(a=K(2),D("ngIf",R(1,1,a.bugs$)))},Gbb=function(a){a&1&&H(0,"mat-icon",13)},Hbb=function(a){a&1&&(P(0),Q(1,"async"));if(a&
2){a=K(2);var b;Je("Links (",null!==(b=null==(b=R(1,1,a.links$))?null:b.length)&&void 0!==b?b:0,")")}},Ibb=function(){},Jbb=function(a,b){if(a&1){var c=y();F(0,"expandable-tabs",1);J("expandedTabsChanged",function(d){var e=z(c).ngIf,f=K();return A(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))});F(1,"expandable-tab",2);O(2,ybb,1,0,"ng-template",3);O(3,zbb,2,3,"ng-template",4);O(4,Bbb,2,4,"ng-template",5);G();F(5,"expandable-tab",6);O(6,Cbb,1,0,"ng-template",3);O(7,Dbb,2,3,"ng-template",
4);O(8,Fbb,2,3,"ng-template",5);G();F(9,"expandable-tab",7);O(10,Gbb,1,0,"ng-template",3);O(11,Hbb,2,3,"ng-template",4);O(12,Ibb,0,0,"ng-template",5);G()()}a&2&&(a=b.ngIf,b=K(),D("tabKeys",a)("expandedTabs",b.initiallyExpandedTabs),B(1),D("key",b.TabKeys.IMAGES),B(4),D("key",b.TabKeys.MENTIONED_BUGS),B(4),D("key",b.TabKeys.LINKS))},Kbb=function(a,b){a&1&&(F(0,"div",3),H(1,"issue-description-area",4)(2,"b-issue-description",5),G());a&2&&(a=b.$implicit,B(1),D("id",a),B(1),D("id",a))},Lbb=function(a,
b){a&1&&(H(0,"issue-summary-card",6,7),Q(2,"async"));if(a&2){a=b.$implicit;var c=M(1);te("hidden",!R(2,3,c.shouldShowSummaryCard$));D("issueId",a)}},Mbb=function(a){a&1&&H(0,"issue-description-area",4);a&2&&(a=K().$implicit,D("id",a))},Nbb=function(a){a&1&&(ze(0),H(1,"b-event-stream-header"),Ae())},Obb=function(a){a&1&&H(0,"issue-event-list",5);a&2&&(a=K().$implicit,D("id",a))},Pbb=function(a){a&1&&H(0,"issue-event-list",5);a&2&&(a=K().$implicit,D("id",a))},Qbb=function(a,b){a&1&&(F(0,"div",8),O(1,
Mbb,1,1,"issue-description-area",9),O(2,Nbb,2,0,"ng-container",10),O(3,Obb,1,1,"issue-event-list",11),H(4,"b-post-comment",12),O(5,Pbb,1,1,"issue-event-list",11),G());a&2&&(a=b.$implicit,b=K(),te("recent-first",b.showRecentEventsFirst),D("bFocus",!0),B(1),D("ngIf",!b.enableEnhancedCommentThread),B(1),D("ngIf",b.enableEnhancedCommentThread),B(1),D("ngIf",!b.enableEnhancedCommentThread||!b.showRecentEventsFirst),B(1),D("issueId",a),B(1),D("ngIf",b.enableEnhancedCommentThread&&b.showRecentEventsFirst))},
Rbb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),P(3," This issue has no mentioned resources "),G(),F(4,"p",7),P(5," If there were any links or bugs mentioned in the comments or description of the issue, they would appear here. "),F(6,"a",8),P(7,"Learn more"),G()()());a&2&&(a=K(2),B(1),D("src",a.ROBOT_SLEEPING,Ud))},Sbb=function(a){a&1&&(ze(0),F(1,"h2"),P(2),G(),H(3,"b-issues-table",13),Ae());a&2&&(a=K(2).ngIf,B(2),Je("Mentioned issues (",a.ids.length,")"),B(1),D("issueIds",a.ids))},Tbb=
function(a){a&1&&(F(0,"h2"),P(1),G());a&2&&(a=K(2).ngIf,B(1),Je("Other linked resources (",a.urls.length,")"))},Ubb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,"b-external-hyperlink-widget",14),P(3),G()()());a&2&&(a=b.$implicit,B(2),D("href",a)("originalHref",a),B(1),Ke(a))},Vbb=function(a){a&1&&(F(0,"div",9),O(1,Sbb,4,2,"ng-container",1),H(2,"br"),O(3,Tbb,2,1,"h2",1),O(4,Ubb,4,3,"ul",10),H(5,"br")(6,"hr",11),F(7,"p",7),H(8,"mat-icon",12),P(9," This page shows links or bugs mentioned in the comments or description of the issue. "),
F(10,"a",8),P(11,"Learn more"),G()()());a&2&&(a=K().ngIf,B(1),D("ngIf",0<a.ids.length),B(2),D("ngIf",0<a.urls.length),B(1),D("ngForOf",a.urls))},Wbb=function(a,b){a&1&&(ze(0),O(1,Rbb,8,1,"div",2),O(2,Vbb,12,3,"ng-template",null,3,Pf),Ae());if(a&2){a=b.ngIf;var c=M(3);B(1);D("ngIf",a.hasNoResults)("ngIfElse",c)}},Xbb=function(a){a&1&&(F(0,"div",4),H(1,"img",5),F(2,"p",6),P(3," This issue has no TODOs "),G(),F(4,"p",7),P(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),
F(6,"a",8),P(7,"Learn more"),G()()());a&2&&(a=K(3),B(1),D("src",a.ROBOT_SLEEPING,Ud))},Ybb=function(a,b){a&1&&H(0,"b-package-mentions-listing",12);if(a&2){a=b.$implicit;b=K(3).ngIf;var c=K().ngIf,d=K();D("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},Zbb=function(a){if(a&1){var b=y();ze(0);O(1,Ybb,1,3,"b-package-mentions-listing",9);F(2,"p",10)(3,"a",11);J("click",function(){z(b);var c=K(4);return A(c.trackSqueegeeClick())});P(4,"View in Squeegee");G()();Ae()}a&
2&&(a=K(2).ngIf,B(1),D("ngForOf",a.mentions.packageMentionSet),B(2),D("href",a.link,Ud))},$bb=function(a){a&1&&O(0,Zbb,5,2,"ng-container",1);a&2&&(a=K().ngIf,D("ngIf",a.mentions))},acb=function(a,b){a&1&&(ze(0),O(1,Xbb,8,1,"div",2),O(2,$bb,1,1,"ng-template",null,3,Pf),Ae());if(a&2){a=b.ngIf;var c=M(3);K(2);B(1);D("ngIf",!(a.mentions&&0<a.mentions.totalMentions))("ngIfElse",c)}},bcb=function(a){a&1&&(ze(0),O(1,acb,4,2,"ng-container",1),Q(2,"async"),Ae());a&2&&(a=K(),B(1),D("ngIf",R(2,1,a.codeMentionsState$)))},
ccb=function(a){a&1&&H(0,"b-spinner",6);a&2&&D("large",!0)},dcb=function(a){a&1&&H(0,"b-hotlist-grid",7);a&2&&(a=K(),D("hotlists",a.hotlists))},ecb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),F(2,"span"),P(3),G()());a&2&&(a=K(),B(3),Je(" Searching",a.query?" for "+a.query:"","..."))},fcb=function(a){a&1&&(ze(0),P(1," No issues matched your search. "),Ae())},gcb=function(a){a&1&&P(0," Use search box to find issues. ")},hcb=function(a){a&1&&(F(0,"div",10),O(1,fcb,2,0,"ng-container",11),O(2,gcb,
1,0,"ng-template",null,12,Pf),G());if(a&2){var b=M(3);a=K();D("bFocus",!0);B(1);D("ngIf",a.query)("ngIfElse",b)}},jcb=function(a){if(a&1){var b=y();F(0,"div",13)(1,"b-issues-grid",14);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("columnsChange",function(){z(b);K();icb();return A()})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,
c.isRead,c.event))})("onNextPage",function(){z(b);var c=K();return A(jt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(jt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},kcb=function(a){a&1&&(F(0,"div",9),H(1,"b-spinner"),P(2," Loading recent issues... "),G())},lcb=function(a){a&1&&(F(0,"div",10),P(1," No recent issues found. "),
G())},mcb=function(a){if(a&1){var b=y();F(0,"div",11)(1,"b-issues-grid",12);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)+1))})("onPrevPage",function(){z(b);
var c=K(),d;return A(c.goToPage((null!==(d=c.page)&&void 0!==d?d:0)-1))});G()()}a&2&&(a=K(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},ncb=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=r(c);c=e.next().value;e.next();d=r(d);e=d.next().value;d.next();return c-e}).map(function(c){c=r(c);c.next();return c.next().value})},
ocb=function(a){a&1&&(F(0,"div",6)(1,"h2"),P(2,"Manage SLOs"),G(),F(3,"p",7),P(4,"You have admin rights for all SLOs listed below."),G()())},pcb=function(a){a&1&&H(0,"b-spinner",8);a&2&&D("large",!0)},qcb=function(a){a&1&&(F(0,"div",11),P(1,"You have no Active SLOs"),G())},rcb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(2),D("slos",a.activeSlos))},scb=function(a){a&1&&(ze(0),O(1,qcb,2,0,"div",9),O(2,rcb,1,1,"b-slo-grid",10),Ae());a&2&&(a=K(),B(1),D("ngIf",!a.activeSlos.length),B(1),D("ngIf",a.activeSlos.length))},
tcb=function(a){a&1&&(F(0,"p",19),P(1," You have no archived SLOs. "),G())},ucb=function(a){a&1&&H(0,"b-slo-grid",12);a&2&&(a=K(3),D("slos",a.archivedSlos))},vcb=function(a){a&1&&(F(0,"div",17),O(1,tcb,2,0,"p",18),O(2,ucb,1,1,"b-slo-grid",10),G());a&2&&(a=K(2),B(1),D("ngIf",!a.archivedSlos.length),B(1),D("ngIf",a.archivedSlos.length))},wcb=function(a){if(a&1){var b=y();ze(0);F(1,"button",13);J("click",function(){z(b);var c=K();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return A()});F(2,
"h4",14);H(3,"mat-icon",15);P(4);G()();O(5,vcb,3,2,"div",16);Ae()}a&2&&(a=K(),B(3),te("rotate-180",a.areArchivedSlosExpanded),D("svgIcon","arrow-dropdown"),B(1),Je(" Archived SLOs (",a.archivedSlos.length,") "),B(1),D("ngIf",a.areArchivedSlosExpanded))},xcb=function(a){var b={};a=r(a.groupMetadata);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.groupEmail]=c;return b},Acb=function(a){return{approximateSize:fj(a,2),groupEmail:W(a,1),sizeCategory:ycb[X(a,3,0)],permissionCategory:zcb[X(a,5,0)]}},
Bcb=function(a){var b;return{groupMetadata:(null!=(b=xb(a,kt,1))?b:[]).map(Acb)}},Ccb=function(a){a&1&&(ze(0),F(1,"p"),P(2,"Team inheritance path:"),G(),H(3,"b-team-breadcrumb",1),Ae());a&2&&(a=K(),B(3),D("teamPath",a.teamPath))},Dcb=function(a){a&1&&(ze(0),F(1,"p"),P(2,"Component inheritance path:"),G(),H(3,"b-component-breadcrumb",2),Ae());a&2&&(a=K(),B(3),D("componentPathInfo",a.componentPath))},Fcb=function(a,b){var c=[];if(!b||!a)return c;for(var d=r(Ecb),e=d.next();!e.done;e=d.next()){e=e.value;
var f=Qi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},Hcb=function(a,b){if(!a.appenders||!b||Ei(b.appenders,a.appenders))return!1;a=r(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,Gcb.has(c)&&!b.appenders.includes(c))return!0;return!1},Icb=function(a){var b=new Map;a=r(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},Jcb=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"},Kcb=function(a){if(0===a.size)return lt;for(var b=1===a.size?Kn("P",{},"The following large group is added: "):Kn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=
a.get(e).approximateSize;c.push(Kn("P",{},Ln(Kn("B",{},e)," has approximately ",Kn("B",{},f)," Googlers.")))}return Ln(b,c)},Lcb=function(a){if(0===a.size)return lt;var b=1===a.size?Kn("P",{},"The following open group is added: "):Kn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Kn("P",{},Kn("B",{},d.value)));return Ln(b,c)},Mcb=function(a){var b=new Map;a=r(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},Ncb=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},Ocb=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},mt=function(a){var b=a.split(":");a=Number(b[0]);return 4===a?(b=b[1],{value:b,displayText:Epa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},Pcb=function(a,b){a&1&&H(0,"b-contact-chip",6);a&2&&(a=b.$implicit,b=K(2),D("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},Qcb=function(a,b){a&1&&(ze(0),F(1,
"tr",3)(2,"th",4),P(3),G(),F(4,"td"),O(5,Pcb,1,5,"b-contact-chip",5),G()(),Ae());a&2&&(a=b.$implicit,B(3),Ke(a.permission),B(2),D("ngForOf",a.principals))},cdb=function(a){return[Rcb,Scb,Tcb,Ucb,Vcb,Wcb,Xcb,Ycb,Zcb,$cb,adb,bdb].reduce(function(b,c){return c(b)},a).permissionsFromRoles},Rcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.editors),v(b.editor),v(b.componentAdmin))).sort(),d=Fj([].concat(v(a.issuesPermissions.appenders),v(b.editor),v(b.componentAdmin))).sort(),
e=Fj([].concat(v(a.issuesPermissions.readers),v(b.editor),v(b.componentAdmin))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{admins:Fj([].concat(v(b.componentAdmin),v(b.componentAdminOnly))).sort(),appenders:Fj([].concat(v(b.componentAdmin),v(b.componentAdminOnly))).sort()}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,readers:e})})}},Scb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;
var c=Fj([].concat(v(a.componentPermissions.inheritedAdmins),v(b.inheritedComponentAdmin))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{inheritedAdmins:c})})}},Tcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.componentPermissions.appenders),v(b.issueAdmin))).sort(),d=Fj([].concat(v(a.issuesPermissions.admins),v(b.issueAdmin)).sort()),e=Fj([].concat(v(a.issuesPermissions.editors),v(b.issueAdmin)).sort()),
f=Fj([].concat(v(a.issuesPermissions.appenders),v(b.issueAdmin)).sort()),h=Fj([].concat(v(a.issuesPermissions.readers),v(b.issueAdmin)).sort());return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{admins:d,editors:e,appenders:f,readers:h})})}},Ucb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.admins),v(b.issueAdminOnly)).sort()),
d=Fj([].concat(v(a.issuesPermissions.editors),v(b.issueAdminOnly)).sort()),e=Fj([].concat(v(a.issuesPermissions.appenders),v(b.issueAdminOnly)).sort()),f=Fj([].concat(v(a.issuesPermissions.readers),v(b.issueAdminOnly)).sort());return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{admins:c,editors:d,appenders:e,readers:f})})}},Vcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.componentPermissions.appenders),
v(b.editor))).sort(),d=Fj([].concat(v(a.issuesPermissions.editors),v(b.editor))).sort(),e=Fj([].concat(v(a.issuesPermissions.appenders),v(b.editor))).sort(),f=Fj([].concat(v(a.issuesPermissions.readers),v(b.editor))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{editors:d,appenders:e,readers:f})})}},Wcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;
var c=Fj([].concat(v(a.componentPermissions.appenders),v(b.contributor))).sort(),d=Fj([].concat(v(a.issuesPermissions.appenders),v(b.contributor))).sort(),e=Fj([].concat(v(a.issuesPermissions.readers),v(b.contributor))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c}),issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:d,readers:e})})}},Xcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;
var c=Fj([].concat(v(a.issuesPermissions.readers),v(b.viewer))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{readers:c})})}},Ycb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.editors),v(b.editExistingIssuesOnly))).sort(),d=Fj([].concat(v(a.issuesPermissions.appenders),v(b.editExistingIssuesOnly))).sort(),e=Fj([].concat(v(a.issuesPermissions.readers),v(b.editExistingIssuesOnly))).sort();
return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{editors:c,appenders:d,readers:e})})}},Zcb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.componentPermissions.appenders),v(b.createIssuesOnly))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{componentPermissions:Object.assign({},a.componentPermissions,{appenders:c})})}},$cb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.appenders),
v(b.commentOnly))).sort(),d=Fj([].concat(v(a.issuesPermissions.readers),v(b.commentOnly))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{appenders:c,readers:d})})}},adb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.restrictedReaders),v(b.viewRestricted),v(b.viewRestrictedPlus))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},
a.issuesPermissions,{restrictedReaders:c})})}},bdb=function(a){var b=a.rolesMap;a=a.permissionsFromRoles;var c=Fj([].concat(v(a.issuesPermissions.restrictedPlusReaders),v(b.viewRestrictedPlus))).sort();return{rolesMap:b,permissionsFromRoles:Object.assign({},a,{issuesPermissions:Object.assign({},a.issuesPermissions,{restrictedPlusReaders:c})})}},ddb=function(a,b){return b.reduce(function(c,d){return d(c)},a).rolesMap},nt=function(a){return[].concat(v(a.componentAdmin),v(a.componentAdminOnly),v(a.issueAdmin),
v(a.issueAdminOnly))},ot=function(a){var b=new Set(a);return function(c){return!b.has(c)}},edb=function(){var a=xc.apply(0,arguments).map(function(b){return new Set(b)}).reduce(function(b,c){for(var d=r(c),e=d.next();!e.done;e=d.next())e=e.value,b.has(e)||c.delete(e);return c});return[].concat(v(a)).sort()},fdb=function(a,b){var c=new Set(b);a=a.reduce(function(d,e){return c.has(e)?Object.assign({},d,{componentAdminsWithIssuesPermissions:[].concat(v(d.componentAdminsWithIssuesPermissions),[e])}):
Object.assign({},d,{componentAdminOnlyUsers:[].concat(v(d.componentAdminOnlyUsers),[e])})},{componentAdminOnlyUsers:[],componentAdminsWithIssuesPermissions:[]});b=a.componentAdminsWithIssuesPermissions;return{componentAdminOnlyUsers:a.componentAdminOnlyUsers.sort(),componentAdminsWithIssuesPermissions:b.sort()}},gdb=function(a,b){var c=new Set(b);a=a.reduce(function(d,e){return c.has(e)?Object.assign({},d,{issueAdminUsers:[].concat(v(d.issueAdminUsers),[e])}):Object.assign({},d,{issueAdminOnlyUsers:[].concat(v(d.issueAdminOnlyUsers),
[e])})},{issueAdminUsers:[],issueAdminOnlyUsers:[]});b=a.issueAdminOnlyUsers;return{issueAdminsWithAppenderPermissions:a.issueAdminUsers.sort(),issueAdminOnlyUsers:b.sort()}},hdb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return Fj([].concat(v(b?[].concat(v(b.inheritedAdmins||[]),v(b.admins||[]),v(b.appenders||[])):[]),v(a?[].concat(v(a.admins||[]),v(a.editors||[]),v(a.appenders||[]),v(a.readers||[]),v(a.restrictedReaders||[]),v(a.restrictedPlusReaders||[])):[]))).sort()},idb=
function(a){return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:a.componentAccessPolicy.admins.sort()})})},jdb=function(a){var b=a.issueAccessPolicy;b=[].concat(v(b.admins),v(b.editors),v(b.appenders),v(b.readers),v(b.restrictedReaders),v(b.restrictedPlusReaders));b=fdb(a.rolesMap.componentAdmin,b);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{componentAdmin:b.componentAdminsWithIssuesPermissions,componentAdminOnly:b.componentAdminOnlyUsers})})},kdb=
function(a){var b=a.componentAccessPolicy.inheritedAdmins.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdmin:b})})},ldb=function(a){var b=new Set(a.rolesMap.componentAdmin),c=new Set(a.rolesMap.componentAdminOnly),d=a.rolesMap.inheritedComponentAdmin.filter(function(e){return!b.has(e)&&!c.has(e)}).sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{inheritedComponentAdminOnly:d})})},mdb=function(a){var b=Fj([].concat(v(a.issueAccessPolicy.admins))).sort();
return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{issueAdmin:b})})},ndb=function(a){var b=gdb(a.rolesMap.issueAdmin,a.componentAccessPolicy.appenders);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{issueAdmin:b.issueAdminsWithAppenderPermissions,issueAdminOnly:b.issueAdminOnlyUsers})})},odb=function(a){var b=edb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.editors),c=nt(a.rolesMap);b=b.filter(ot(c));return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,
{editor:b})})},pdb=function(a){var b=edb(a.componentAccessPolicy.appenders,a.issueAccessPolicy.appenders),c=nt(a.rolesMap);c=ot([].concat(v(c),v(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{contributor:b})})},qdb=function(a){var b=a.issueAccessPolicy.readers,c=nt(a.rolesMap);c=ot([].concat(v(c),v(a.issueAccessPolicy.editors),v(a.issueAccessPolicy.appenders)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,
{viewer:b})})},rdb=function(a){var b=a.issueAccessPolicy.editors,c=nt(a.rolesMap);c=ot([].concat(v(c),v(a.componentAccessPolicy.appenders)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{editExistingIssuesOnly:b})})},sdb=function(a){var b=a.componentAccessPolicy.appenders,c=nt(a.rolesMap);c=ot([].concat(v(c),v(a.issueAccessPolicy.editors),v(a.issueAccessPolicy.readers)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{createIssuesOnly:b})})},
tdb=function(a){var b=a.issueAccessPolicy.appenders,c=nt(a.rolesMap);c=ot([].concat(v(c),v(a.componentAccessPolicy.appenders),v(a.issueAccessPolicy.editors)));b=b.filter(c);return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{commentOnly:b})})},udb=function(a){var b=a.issueAccessPolicy.restrictedReaders.sort();return Object.assign({},a,{rolesMap:Object.assign({},a.rolesMap,{viewRestricted:b})})},vdb=function(a){var b=a.issueAccessPolicy.restrictedPlusReaders.sort();return Object.assign({},
a,{rolesMap:Object.assign({},a.rolesMap,{viewRestrictedPlus:b})})},pt=function(a,b){var c;(c=!b)||(c=!(!Ei(b.admins,a.admins)||!Ei(b.appenders,a.appenders)||!Ei(b.implicitAccess,a.implicitAccess)));return!c},wdb=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.editors,b.editors)||!Ei(a.appenders,b.appenders)||!Ei(a.readers,b.readers)||!Ei(a.restrictedReaders,b.restrictedReaders)||!Ei(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},xdb=function(a,b){var c=Object.keys(a);c=r(c);for(var d=
c.next();!d.done;d=c.next())if(d=d.value,!wna(a[d],b[d]))return!0;return!1},ydb=function(a){if(a&1){var b=y();F(0,"input",17);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),D("disabled",!a.rolesEditor.isAdmin)("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},zdb=function(a){if(a&1){var b=y();F(0,"input",18);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=
c)});G()}a&2&&(a=K(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Adb=function(a){if(a&1){var b=y();F(0,"input",19);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.rolesEditor.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(2),D("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic())("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Cdb=function(a){a&1&&(F(0,"div",3)(1,"div",4)(2,"span",5),P(3,"Component visibility: "),
G()(),F(4,"div",6)(5,"div",7),O(6,ydb,1,2,"input",8),F(7,"label",9),P(8),G()(),F(9,"div",7),O(10,zdb,1,2,"input",10),F(11,"label",11),P(12),G()(),F(13,"div",12),O(14,Adb,1,2,"input",13),F(15,"label",14),P(16),G()()(),F(17,"p",15)(18,"a",16),P(19," Learn more "),G()()());a&2&&(a=K(),B(6),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),
B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER)," "),B(2),D("ngIf",a.rolesEditor.component&&a.rolesEditor.component.accessLimit),B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),B(2),D("href",Bdb(a.documentationLinks),Ud))},Hdb=function(a,b){if(a&1){var c=y();ze(0);F(1,"tr")(2,"td")(3,"div",2)(4,"div",3)(5,"label",4);P(6);G();F(7,"button",5);H(8,"mat-icon",6);G()();F(9,"b-multi-user-input",7);J("usersChange",function(e){var f=z(c).$implicit,
h=K();return A(h.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=z(c).$implicit,h=K();h.aclFormValidity.set(f.roleType,e);e=[].concat(v(h.aclFormValidity.values())).every(Boolean);h.formIsValid.emit(e);return A()});G()()();F(10,"td");H(11,"b-icon",8);G();F(12,"td");H(13,"b-icon",8);G();F(14,"td");H(15,"b-icon",8);G();F(16,"td");H(17,"b-icon",8);G();F(18,"td");H(19,"b-icon",8);G();F(20,"td");H(21,"b-icon",8);G();F(22,"td");H(23,"b-icon",8);G();F(24,"td");H(25,"b-icon",8);G()();Ae()}if(a&
2){a=b.$implicit;b=K();var d;B(3);te("bv2-edit-resource-readonly",b.canEdit);B(2);D("htmlFor",a.roleType);B(1);Ke(a.label);B(1);D("matTooltip",a.tooltip);B(2);D("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",null!==(d=a.customValidators)&&void 0!==d?d:Ne(22,Ddb))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(null==a.chips?0:a.chips.values)&&0<a.chips.values.length?Oe(26,Edb,Pe(23,
Fdb,a.chips.displayText,a.chips.values)):Ne(28,Gdb));oe("disabled",b.canEdit?null:!0);B(2);D("name",b.getIconName(a,"componentAdmin"));B(2);D("name",b.getIconName(a,"createIssues"));B(2);D("name",b.getIconName(a,"issueAdmin"));B(2);D("name",b.getIconName(a,"issueEditor"));B(2);D("name",b.getIconName(a,"issueCommenter"));B(2);D("name",b.getIconName(a,"issueReader"));B(2);D("name",b.getIconName(a,"restrictedReader"));B(2);D("name",b.getIconName(a,"restrictedPlusReader"))}},Idb=function(a){a&1&&(F(0,
"div",1)(1,"p"),P(2," Your component is only using advanced roles. Simplify your component\u2019s role assignment by moving some users to standard roles. "),F(3,"a",2),P(4,"Learn more"),G()()());a&2&&(a=K(),B(3),Ge("href","",yo(a.documentationLinks),"#role-based-permissions",Ud))},Jdb=function(a){a&1&&(F(0,"div",2),H(1,"b-spinner"),G())},Ldb=function(a){if(a&1){var b=y();F(0,"div")(1,"div",3)(2,"mat-tab-group")(3,"mat-tab",4)(4,"roles-view",5);J("saveRolesMap",function(c){z(b);var d=K();Kdb(d.rolesEditor,
c);return A()});G()();F(5,"mat-tab",6);H(6,"permissions-view",7);G()()()()}a&2&&(a=K(),B(4),D("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(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))},Ndb=function(a){if(a&1){var b=y();F(0,"b-button",12,13);J("onAction",function(){z(b);var c=K(2);return A(Mdb(c))});P(2);G()}a&2&&(a=K(2),D("disabled",a.isSaving()),B(2),Je(" ",a.archiveAction," Component "))},Odb=function(a){if(a&1){var b=y();F(0,"b-button",14);J("onAction",function(){z(b);var c=K(2);return A(c.createIssue())});P(1," Create Issue ");G()}a&2&&(a=K(2),D("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",
a.isArchived()))},Pdb=function(a){a&1&&(ze(0),F(1,"a",9),P(2," Browse Components "),G(),O(3,Ndb,3,2,"b-button",10),O(4,Odb,2,2,"b-button",11),Ae());a&2&&(a=K(),B(1),D("routerLinkObj",a.componentListRoute(a.component.componentId)),B(2),D("ngIf",a.isAdmin()),B(1),D("ngIf",!a.isAnonymous))},Qdb=function(a){a&1&&(F(0,"div",15),H(1,"b-spinner"),G())},Rdb=function(a){a&1&&(F(0,"span",35),P(1," (archived) "),G())},Sdb=function(a){a&1&&Be(0)},Tdb=function(a){a&1&&Be(0)},Udb=function(a){a&1&&Be(0)},Vdb=function(a){a&
1&&Be(0)},Wdb=function(a){a&1&&Be(0)},Xdb=function(a){if(a&1){var b=y();F(0,"div",74)(1,"div",45)(2,"label",75)(3,"span",42);P(4,"Parent Component");G()();F(5,"span",47)(6,"div",76)(7,"strong");P(8,"Careful!");G();P(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. ");F(10,"div",49);H(11,"div",50)(12,"div",
51);G()()()();F(13,"b-team-component-picker",77);J("selectedComponentChange",function(c){z(b);var d=K(3);return A(d.parentComponent=null!==c&&void 0!==c?c:null)});G()()}a&2&&(a=K(3),B(2),te("required",a.isParentComponentRequired),B(11),D("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired))},Ydb=function(a){a&1&&(F(0,"a",78),P(1," Learn more "),G());a&2&&(K(3),D("href",o_a(),Ud))},Zdb=function(a){if(a&1){var b=y();F(0,"div",79)(1,"label",
80)(2,"span",42);P(3,"Retention Settings");G()();F(4,"div",81)(5,"p");P(6,"Please choose a period of time to retain the data stored in this component.");H(7,"br");F(8,"a",82);P(9," Learn more ");G()()();F(10,"div",83)(11,"b-retention-settings-form",84);J("modelChange",function(c){z(b);var d=K(3);return A(d.component.retentionSettings=c)})("validChange",function(c){z(b);K(3).retentionIsValid=c;return A()});G()()()}a&2&&(a=K(3),te("bv2-edit-resource-readonly",!a.isAdmin()),B(8),D("href",qt(),Ud),B(3),
D("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("initialModel",a.component.retentionSettings))},aeb=function(a){if(a&1){var b=y();F(0,"div",88)(1,"b-component-team-picker",89);J("modelChange",function(c){z(b);var d=K(4);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&$db(d);return A()});G()()}a&2&&(a=K(4),B(1),He("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))},beb=function(a){a&1&&(F(0,"div",85)(1,"label",86)(2,"span",42),P(3,"Team Configuration"),G()(),O(4,aeb,2,6,"div",87),G());a&2&&(a=K(3),te("bv2-edit-resource-readonly",!a.isAdmin()),B(4),D("ngIf",a.component.team))},ceb=function(a){a&1&&(F(0,"a",101),P(1),G());if(a&2){a=K().ngIf;var b=K(4),c;D("routerLinkObj",b.getSloManagementLink(a.id));B(1);Je(" ",null!==(c=null==a.slo?null:a.slo.getName())&&void 0!==
c?c:a.id," ")}},deb=function(a){a&1&&P(0," None ")},eeb=function(a,b){a&1&&(F(0,"div",98),P(1," Inherited SLO Policy: "),O(2,ceb,2,2,"a",99),O(3,deb,1,0,"ng-template",null,100,Pf),G());if(a&2){a=b.ngIf;var c=M(4);B(2);D("ngIf","0"!==a.id)("ngIfElse",c)}},feb=function(a){a&1&&(F(0,"a",106),P(1),Q(2,"titlecase"),G());a&2&&(a=K().ngIf,D("routerLinkObj",a.link),B(1),Le(" (",R(2,3,a.type),") ",a.name," "))},geb=function(a){a&1&&P(0," None ")},heb=function(a){a&1&&(F(0,"div",108),H(1,"slo-inheritance-breadcrumbs",
109),G());a&2&&(a=K().ngIf,B(1),D("componentPath",a.componentPath)("teamPath",a.teamPath))},ieb=function(a){a&1&&(ze(0),O(1,heb,2,2,"div",107),Ae());a&2&&(a=K(5),B(1),D("ngIf",a.showSloInheritancePath))},jeb=function(a,b){if(a&1){var c=y();F(0,"div",102);P(1," Policy Source: ");O(2,feb,3,5,"a",103);O(3,geb,1,0,"ng-template",null,104,Pf);F(5,"button",105);J("click",function(){z(c);var e=K(4);return A(e.showSloInheritancePath=!e.showSloInheritancePath)});P(6);G();O(7,ieb,2,1,"ng-container",5);Q(8,"async");
G()}if(a&2){a=b.ngIf;var d=M(4);b=K(4);B(2);D("ngIf",a.link)("ngIfElse",d);B(3);oe("aria-expanded",b.showSloInheritancePath);B(1);Je(" ",b.showSloInheritancePath?"Hide":"Show"," full path ");B(1);D("ngIf",R(8,5,b.policySourcePath$))}},keb=function(a){a&1&&(ze(0),H(1,"mat-icon",112),P(2," on "),Ae())},leb=function(a){a&1&&(H(0,"mat-icon",113),P(1," off "))},meb=function(a){a&1&&(ze(0),P(1," Lock: "),O(2,keb,3,0,"ng-container",110),Q(3,"async"),O(4,leb,2,0,"ng-template",null,111,Pf),Ae());if(a&2){var b=
M(5);a=K(4);B(2);D("ngIf",R(3,2,a.sloLocked$))("ngIfElse",b)}},oeb=function(a){if(a&1){var b=y();F(0,"div",114)(1,"mat-checkbox",115);J("change",function(c){z(b);var d=K(4);c=c.checked;d.component.slo.inherit=!c;c||$db(d);return A()});F(2,"span");P(3,"Override the inherited SLO policy");G()()()}a&2&&(a=K(4),B(1),D("checked",!a.component.slo.inherit)("disabled",!neb(a)))},peb=function(a){if(a&1){var b=y();F(0,"div",122)(1,"label",123);P(2," Justification ");G();H(3,"mat-icon",124);F(4,"textarea",125);
J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.slo.comment=c)});G()()}a&2&&(a=K(5),B(4),D("ngModel",a.component.slo.comment))},qeb=function(a){a&1&&(F(0,"a",126),H(1,"mat-icon",127),G());a&2&&(a=K(5),He("target",a.hasUnsavedChanges()?"_blank":"_self"),D("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},ueb=function(a){if(a&1){var b=y();ze(0);O(1,peb,5,1,"div",116);F(2,"mat-slide-toggle",117);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.isEnableSloChecked=
c)})("change",function(c){z(b);var d=K(4);c=c.checked;d.isEnableSloChecked=c;c||(d.component.slo.id="0");return A()});P(3," Enable SLO ");G();F(4,"div",118)(5,"label",119);P(6,"SLO policy");G();F(7,"slo-picker",120);J("onSloSelect",function(c){z(b);var d=K(4);return A(d.onSloChange(c))});G();O(8,qeb,2,2,"a",121);G();Ae()}a&2&&(a=K(4),B(1),D("ngIf",reb(a)),B(1),te("indented",seb(a)),D("ngModel",a.isEnableSloChecked)("disabled",!teb(a)),B(5),D("bv2Disabled",!a.isEnableSloChecked||!teb(a))("boundId",
a.component.slo.id)("bv2Placeholder",a.isEnableSloChecked&&teb(a)?"Type to search for an SLO":"SLO disabled"),B(1),D("ngIf",a.component.slo.id&&"0"!==a.component.slo.id))},veb=function(a){a&1&&(F(0,"div",90)(1,"div",45)(2,"label",91)(3,"span",42),P(4,"SLO Configuration"),G()(),F(5,"span",47)(6,"div",92)(7,"strong"),P(8,"Careful!"),G(),P(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. "),
F(10,"div",49),H(11,"div",50)(12,"div",51),G()()()(),F(13,"div",93),O(14,eeb,5,2,"div",94),Q(15,"async"),O(16,jeb,9,7,"div",95),Q(17,"async"),F(18,"div",96),O(19,meb,6,4,"ng-container",5),G()(),O(20,oeb,4,2,"div",97),O(21,ueb,9,9,"ng-container",5),G());if(a&2){a=K(3);te("bv2-edit-resource-readonly",!a.isAdmin());B(14);D("ngIf",R(15,7,a.inheritedSlo$));B(2);D("ngIf",R(17,9,a.sloPolicySource$));B(3);D("ngIf",a.enableSloLockingUi);B(1);D("ngIf",seb(a));B(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)}},web=function(a){if(a&1){var b=y();F(0,"div",70)(1,"b-button",128);J("onAction",function(){z(b);var c=K(3);return A(c.saveMetadata())});P(2," Update ");G();F(3,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.revertMetadataChanges())});P(4," Revert Changes ");G();F(5,"b-button",129);J("onAction",function(){z(b);var c=K(3);return A(c.createChild())});P(6," Create Child Component ");
G()()}a&2&&(a=K(3),B(1),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),D("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),D("disabled",a.hasUnsavedMetadataChanges()))},xeb=function(a){if(a&1){var b=y();F(0,"b-button",130);J("onAction",function(){z(b);var c=K(3);return A(c.showUpdateHistoryModal())});P(1," View History ");G()}},yeb=function(a){a&1&&H(0,"b-spinner")},zeb=function(a){if(a&1){var b=y();F(0,"b-component-children-list",131);J("onVisit",function(){z(b);var c=
K(3);return A(c.trackClick("openChildComponent"))});G()}a&2&&(a=K(3),D("children",a.childComponents))},Aeb=function(a){a&1&&(F(0,"span"),P(1," No child components. "),G())},Beb=function(a){if(a&1){var b=y();F(0,"div",36)(1,"form",37,38);H(3,"b-error-banner",39);F(4,"div",40)(5,"label",41)(6,"span",42);P(7,"Name");G()();F(8,"input",43);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.name=c)});G()();F(9,"div",44)(10,"div",45)(11,"label",46)(12,"span",42);P(13,"Description");G()();
F(14,"span",47)(15,"div",48);P(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. ");F(17,"div",49);H(18,"div",50)(19,"div",51);G()()()();F(20,"textarea",52);J("ngModelChange",function(c){z(b);var d=K(2);return A(d.component.description=c)});P(21,"            ");G()();O(22,Xdb,14,5,"div",53);F(23,"div",54)(24,"div",55)(25,"b-checkbox",56);J("change",function(c){z(b);var d=K(2);d.commentEditsEnabled=
c;return A(d.setCommentEditState())});G()();F(26,"div")(27,"strong",57);P(28,"Editable Comments");G();F(29,"div",58);P(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");H(31,"br");O(32,Ydb,2,1,"a",59);G()()();O(33,Zdb,12,6,"div",60);O(34,beb,5,3,"div",61);O(35,veb,22,11,"div",62);F(36,"div",63)(37,"div",45)(38,"label",64)(39,"span",42);P(40,"Component Alias");G()();F(41,"span",47)(42,"div",65);P(43," You can create a new issue in this component by sending an email to this alias. ");
H(44,"br");F(45,"a",66);P(46," Learn more ");G();F(47,"div",49);H(48,"div",50)(49,"div",51);G()()()();F(50,"div")(51,"a",67);P(52);G()()();F(53,"div",68);O(54,web,7,3,"div",69);F(55,"div",70);O(56,xeb,2,0,"b-button",71);G()();F(57,"div",72)(58,"label")(59,"span",42);P(60,"Child Components");G()();O(61,yeb,1,0,"b-spinner",5);O(62,zeb,1,1,"b-component-children-list",73);O(63,Aeb,2,0,"span",5);G()()()}a&2&&(a=K(2),B(1),te("show-errors",a.error),B(2),D("error",a.error),B(1),te("bv2-edit-resource-readonly",
rt(a)),B(4),D("ngModel",a.component.name)("disabled",rt(a)),B(1),te("bv2-edit-resource-readonly",rt(a)),B(11),D("ngModel",a.component.description)("disabled",rt(a)),B(2),D("ngIf",a.isAdmin()),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),D("checked",a.commentEditsEnabled)("disabled",rt(a)),B(7),D("ngIf",!a.sessionIsExternal),B(1),D("ngIf",!a.sessionIsExternal),B(1),D("ngIf",a.sessionIsInternal),B(1),D("ngIf",a.component.slo&&a.sessionIsInternal),B(10),D("href",a.documentationLinks.baseDocumentationUrl+
"/guides/create-issue-email",Ud),B(6),Ge("href","mailto:",a.component.emailAlias,"",Ud),oe("aria-label","Component Alias -"+a.component.emailAlias),B(1),Ke(a.component.emailAlias),B(2),D("ngIf",a.isEditor_),B(2),D("ngIf",a.componentHistoryUiEnabled),B(5),D("ngIf",void 0===a.childComponents),B(1),D("ngIf",a.childComponents&&0<a.childComponents.length),B(1),D("ngIf",a.childComponents&&0===a.childComponents.length))},Ceb=function(a){a&1&&(F(0,"div",136),P(1," Standard Fields "),G())},Eeb=function(a){if(a&
1){var b=y();F(0,"b-component-standard-fields",137);J("updateComponent",function(c){z(b);var d=K(3);return A(Deb(d,c))});G()}a&2&&(a=K(3),D("effortSpec",null==a.component?null:a.component.effortSpec)("parentEffortSpec",null==a.parentComponent?null:a.parentComponent.effortSpec)("disabled",!a.isEditor_))},Feb=function(a){a&1&&(F(0,"div",138),P(1," Custom Fields "),G())},Geb=function(a){a&1&&(O(0,Ceb,2,0,"div",132),O(1,Eeb,1,3,"b-component-standard-fields",133),O(2,Feb,2,0,"div",134),H(3,"b-component-custom-fields",
135));a&2&&(a=K(2),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("ngIf",a.sessionIsInternal&&!a.isExternal()),B(1),D("editMode",a.isEditor_)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},Ieb=function(a){a&1&&(F(0,"a",142),P(1," Learn more "),G());a&2&&(K(3),D("href",Heb(),Ud))},Keb=function(a){if(a&1){var b=y();F(0,"div",36)(1,"div",139);P(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");
O(3,Ieb,2,1,"a",140);G();F(4,"b-field-reorder",141);J("onReload",function(){z(b);var c=K(2);return A(Jeb(c))});G()()}a&2&&(a=K(2),B(3),D("ngIf",a.sessionIsInternal),B(1),D("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},Leb=function(a){a&1&&H(0,"b-edit-templates",144);a&2&&(a=K(3),D("componentId",a.componentId)("supportCustomFields",!0))},Meb=function(a){a&1&&(F(0,"div"),P(1),G());a&2&&(a=K().$implicit,B(1),Ke(a.description))},
Neb=function(a,b){a&1&&(F(0,"div",146)(1,"label"),P(2),G(),O(3,Meb,2,1,"div",5),F(4,"div")(5,"a",67),P(6),G()()());a&2&&(a=b.$implicit,B(2),Ke(a.name),B(1),D("ngIf",a.description),B(2),D("href",a.url,Ud),oe("aria-label","Click to open the template "+a.name),B(1),Ke(a.url))},Oeb=function(a){a&1&&(ze(0),O(1,Neb,7,5,"div",145),Ae());a&2&&(a=K(3),B(1),D("ngForOf",a.templates))},Peb=function(a){a&1&&(F(0,"div",36),O(1,Leb,1,2,"b-edit-templates",143),O(2,Oeb,2,1,"ng-container",5),G());a&2&&(a=K(2),B(1),
D("ngIf",a.isEditor_),B(1),D("ngIf",!a.isEditor_))},Qeb=function(a){a&1&&H(0,"role-based-permissions")},Reb=function(a){if(a&1){var b=y();F(0,"input",201);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),D("disabled",!a.isAdmin())("ngModel",a.component.accessLimit.accessLevel))},Seb=function(a){if(a&1){var b=y();F(0,"input",202);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=
K(5),D("disabled",!a.isAdmin()||!a.isParentPartner())("ngModel",a.component.accessLimit.accessLevel))},Teb=function(a){if(a&1){var b=y();F(0,"input",203);J("ngModelChange",function(c){z(b);var d=K(5);return A(d.component.accessLimit.accessLevel=c)});G()}a&2&&(a=K(5),D("disabled",!a.isAdmin()||!a.isParentPublic())("ngModel",a.component.accessLimit.accessLevel))},Ueb=function(a){a&1&&(F(0,"div",187)(1,"div",188)(2,"span",189),P(3,"Component visibility: "),G()(),F(4,"div",190)(5,"div",191),O(6,Reb,1,
2,"input",192),F(7,"label",193),P(8),G()(),F(9,"div",191),O(10,Seb,1,2,"input",194),F(11,"label",195),P(12),G()(),F(13,"div",196),O(14,Teb,1,2,"input",197),F(15,"label",198),P(16),G()()(),F(17,"p",199)(18,"a",200),P(19," Learn more "),G()()());a&2&&(a=K(4),B(6),D("ngIf",a.component&&a.component.accessLimit),B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.INTERNAL)," "),B(2),D("ngIf",a.component&&a.component.accessLimit),B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PARTNER),
" "),B(2),D("ngIf",a.component&&a.component.accessLimit),B(2),Je(" ",a.getAccessLevelDescription(a.AccessLevelStrings.EXTERNAL_PUBLIC)," "),B(2),D("href",Bdb(a.documentationLinks),Ud))},Veb=function(a){a&1&&(F(0,"a",204),P(1," Learn more "),G());a&2&&(a=K(4),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud))},Web=function(a){a&1&&(F(0,"span",47)(1,"div",48),P(2,' Only individuals or group aliases may be granted issue edit permission for components designated as "Visible to Public". '),
F(3,"div",49),H(4,"div",50)(5,"div",51),G()()())},Xeb=function(a){a&1&&(F(0,"a",205),P(1," Learn more "),G());a&2&&(a=K(4),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud))},Yeb=function(a){a&1&&(F(0,"a",206),P(1," Learn more "),G());a&2&&(a=K(4),D("href",a.documentationLinks.getRestrictedAccessHelpLink(),Ud))},Zeb=function(a){if(a&1){var b=y();F(0,"b-button",207);J("onAction",function(){z(b);var c=K(4);return A(c.revertAccessPolicyChanges())});P(1," Revert Changes ");G()}},efb=function(a){if(a&
1){var b=y();F(0,"div")(1,"div",36);O(2,Ueb,20,7,"div",147);F(3,"div",139);P(4," Access to issues is granted per component using the settings below. All settings provide access to view the component. ");F(5,"a",148);P(6,"Learn more");G()();F(7,"form",149)(8,"div",150)(9,"label",151)(10,"span",42);P(11,"Component Admins");G();F(12,"p",152);P(13," View component, edit component details and access controls, create issues (does not imply permission to view issues). ");G()();F(14,"b-multi-user-input",
153);J("usersChange",function(c){z(b);var d=K(3);d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{admins:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-admins"]=c)});G()();F(15,"div",154)(16,"label",155)(17,"span",42);P(18,"Create issues");G();F(19,"p",152);P(20," View component, create issues (does not imply permission to view issues). ");G()();F(21,"b-multi-user-input",156);J("usersChange",function(c){z(b);var d=K(3);
d.componentAccessPolicyUnderEdit=Object.assign({},d.componentAccessPolicyUnderEdit,{appenders:c});return A()})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-appenders"]=c)});G()();F(22,"div",157)(23,"label",158)(24,"span",42);P(25,"Issue Admins");G();F(26,"p",152);P(27," View component, view issues, add comments and attachments, edit all issue data,");H(28,"br");P(29," mark issues as spam, delete and undelete issues, change restriction level of content. ");O(30,Veb,2,
1,"a",159);G()();F(31,"b-multi-user-input",160);J("usersChange",function(c){z(b);var d=K(3);return A(st(d,{admins:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-admins"]=c)});G()();F(32,"div",161)(33,"label",162)(34,"div")(35,"span",42);P(36,"Edit issues");G();O(37,Web,6,0,"span",163);G();F(38,"p",152);P(39," View component, view issues, add comments and attachments, edit all issue data. ");G()();F(40,"b-multi-user-input",164);J("usersChange",function(c){z(b);var d=
K(3);return A(st(d,{editors:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-editors"]=c)});G()();F(41,"div",165)(42,"label",166)(43,"span",42);P(44,"Comment on issues");G();F(45,"p",152);P(46," View component, view issues, add comments and attachments. ");G()();F(47,"b-multi-user-input",167);J("usersChange",function(c){z(b);var d=K(3);return A(st(d,{appenders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-appenders"]=c)});G()();F(48,"div",
168)(49,"label",169)(50,"span",42);P(51,"View restricted+ content");G();F(52,"p",152);P(53," View component, view issues, view restricted content, view restricted+ content. This ACL does not accept groups. ");O(54,Xeb,2,1,"a",170);G()();F(55,"b-multi-user-input",171);J("usersChange",function(c){z(b);var d=K(3);return A(st(d,{restrictedPlusReaders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-plus-readers"]=c)});G()();F(56,"div",172)(57,"label",173)(58,"span",
42);P(59,"View restricted content");G();F(60,"p",152);P(61," View component, view issues, view restricted content. This ACL accepts groups. ");O(62,Yeb,2,1,"a",174);G()();F(63,"b-multi-user-input",175);J("usersChange",function(c){z(b);var d=K(3);return A(st(d,{restrictedReaders:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-restricted-readers"]=c)});G()();F(64,"div",176)(65,"label",177)(66,"span",42);P(67,"View issues");G();F(68,"p",152);P(69," View component, view issues. ");
G()();F(70,"b-multi-user-input",178);J("usersChange",function(c){z(b);var d=K(3);return A(st(d,{readers:c}))})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["issue-readers"]=c)});G()();F(71,"div",179)(72,"label",180)(73,"span",42);P(74,"View Component (Auto-populated)");G();F(75,"p",152);P(76," View component (view all settings for this component, view custom fields for this and all parent components). ");H(77,"br");P(78," This field is auto-populated with all users and groups listed in the above settings. ");
G()();F(79,"b-multi-user-input",181);J("usersChange",function(c){z(b);var d=K(3);return A(d.componentReaders=c)})("isValid",function(c){z(b);var d=K(3);return A(d.aclFormValidity["component-readers"]=c)});G()();F(80,"div",182)(81,"span",55)(82,"b-checkbox",183);J("change",function(c){z(b);var d=K(3);return A(d.implicitAccess.setValue(c))});G()();F(83,"div")(84,"strong",184);P(85,"Expanded access");G();F(86,"div",58);P(87," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. ");
F(88,"a",185);P(89,"Learn more");G()()()()();F(90,"div",68)(91,"b-button",128);J("onAction",function(){z(b);var c=K(3);return A(c.saveAccessPolicy())});P(92," Update ");G();O(93,Zeb,2,0,"b-button",186);G()()()}a&2&&(a=K(3),B(2),D("ngIf",a.shouldShowAccessLimitChangeUi()),B(3),Ge("href","",yo(a.documentationLinks),"#components",Ud),B(3),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.componentAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel())("containerChips",
Oe(72,tt,Oe(70,$eb,a.componentAccessPolicyUnderEdit.inheritedAdmins))),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.componentAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",Oe(76,tt,Oe(74,afb,a.componentAdmins)))("includeAliases",!0),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(8),D("ngIf",!a.sessionIsExternal),
B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.admins)("accessLevel",a.getComponentAccessLevel()),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),te("field-label-with-help",a.isPublic()),B(3),D("ngIf",a.isPublic()),B(3),D("users",a.issueDefaultAccessPolicyUnderEdit.editors)("accessLevel",a.getComponentAccessLevel())("containerChips",Oe(80,tt,Oe(78,bfb,a.issueDefaultAccessPolicyUnderEdit.admins)))("includeAliases",!a.isPublic()),
oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("users",a.issueDefaultAccessPolicyUnderEdit.appenders)("accessLevel",a.getComponentAccessLevel())("containerChips",Oe(84,tt,Oe(82,cfb,a.issueCommenters)))("includeAliases",!0),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("ngIf",!a.sessionIsExternal),B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders)("accessLevel",
a.getComponentAccessLevel())("customValidators",a.restrictedPlusReadersValidators),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(6),D("ngIf",!a.sessionIsExternal),B(1),D("users",a.issueDefaultAccessPolicyUnderEdit.restrictedReaders)("accessLevel",a.getComponentAccessLevel())("containerChips",Oe(88,tt,Oe(86,dfb,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders))),oe("disabled",a.isAccessEditDisabled()?!0:null),B(1),te("bv2-edit-resource-readonly",
a.isAccessEditDisabled()),B(6),D("users",a.issueDefaultAccessPolicyUnderEdit.readers)("accessLevel",a.getComponentAccessLevel())("containerChips",a.issueViewersChip)("includeAliases",!0)("includeViewAliases",!0),oe("disabled",a.isAccessEditDisabled()?!0:null),B(9),D("users",a.componentReaders)("accessLevel",a.getComponentAccessLevel()),oe("disabled",!0),B(1),te("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),D("checked",a.implicitAccess.getValue())("disabled",a.isAccessEditDisabled()),
B(6),D("href",yo(a.documentationLinks),Ud),B(3),D("disabled",!(ut(a)||vt(a))||a.isSaving()||a.aclFormIsInvalid()),B(2),D("ngIf",a.isAdmin()))},ffb=function(a){a&1&&(O(0,Qeb,1,0,"role-based-permissions",5),O(1,efb,94,90,"div",5));a&2&&(a=K(2),D("ngIf",a.enableRoleBasedPermissions),B(1),D("ngIf",!a.enableRoleBasedPermissions))},gfb=function(a){if(a&1){var b=y();F(0,"div")(1,"div",16)(2,"h2");P(3);G();O(4,Rdb,2,0,"span",17);F(5,"a",18);J("click",function(){z(b);var k=K();return A(k.trackClick("recentIssues"))});
P(6," (Recent Issues)");G();H(7,"b-access-level-indicator",19);G();F(8,"div",20);H(9,"b-component-breadcrumb",21)(10,"div",22);G();F(11,"mat-tab-group",23);J("selectedIndexChange",function(k){z(b);var q=K();return A(q.tabChange(k))});F(12,"mat-tab",24);O(13,Sdb,1,0,"ng-container",25);G();F(14,"mat-tab",26);O(15,Tdb,1,0,"ng-container",25);G();F(16,"mat-tab",27);O(17,Udb,1,0,"ng-container",25);G();F(18,"mat-tab",28);O(19,Vdb,1,0,"ng-container",25);G();F(20,"mat-tab",29);O(21,Wdb,1,0,"ng-container",
25);G()();O(22,Beb,64,29,"ng-template",null,30,Pf);O(24,Geb,4,7,"ng-template",null,31,Pf);O(26,Keb,5,5,"ng-template",null,32,Pf);O(28,Peb,3,2,"ng-template",null,33,Pf);O(30,ffb,2,2,"ng-template",null,34,Pf);G()}if(a&2){var c=M(23),d=M(25),e=M(27),f=M(29),h=M(31);a=K();B(3);Le(" Component ",a.component.componentId,": ",a.currentName," ");B(1);D("ngIf",a.isArchived());B(1);D("routerLinkObj",a.getRecentIssuesLink());B(2);D("accessLevel",a.getComponentAccessLevel());B(2);D("componentPathInfo",a.component.componentPathInfo)("isArchived",
a.isArchived())("label","Parent Component");B(2);D("selectedIndex",a.selectedTabIndex);B(1);D("id",a.Tab.BASIC);B(1);D("ngTemplateOutlet",c);B(1);D("id",a.Tab.CUSTOM_FIELDS)("label",a.sessionIsInternal&&!a.isExternal()?"Fields":"Custom Fields");B(1);D("ngTemplateOutlet",d);B(1);D("id",a.Tab.FIELD_ORDERING);B(1);D("ngTemplateOutlet",e);B(1);D("id",a.Tab.TEMPLATES);B(1);D("ngTemplateOutlet",f);B(1);D("id",a.Tab.ACCESS);B(1);D("ngTemplateOutlet",h)}},hfb=function(a){a&1&&(F(0,"span")(1,"p"),P(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),
H(3,"br"),F(4,"a",213),P(5," Learn more "),G()(),F(6,"p"),P(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"),P(9," so they can be scheduled for deletion. "),F(10,"a",214),P(11," Learn more "),G()()());a&2&&(K(2),B(4),D("href","http://go/archived-components",Ud),B(6),D("href",qt(),Ud))},ifb=function(a){a&1&&(F(0,"span"),P(1," : "),F(2,"b"),P(3),G()());if(a&2){a=K().$implicit;var b=K(2),c;te("b-archive-warning-indef",
!(null==(c=a.getRetentionSettings())?0:fj(c,2)));B(3);Ke(b.getRetentionPeriod(a))}},jfb=function(a,b){a&1&&(F(0,"span")(1,"span"),P(2),G(),O(3,ifb,4,3,"span",215),H(4,"br"),G());a&2&&(a=b.$implicit,b=K(2),B(2),Ke(W(a,1)),B(1),D("ngIf","Archive"===b.archiveAction))},kfb=function(a){if(a&1){var b=y();F(0,"h2",208);P(1);G();F(2,"mat-dialog-content");O(3,hfb,12,2,"span",5);F(4,"p");P(5," The following components will be affected: ");G();F(6,"div",209);O(7,jfb,5,2,"span",210);G()();F(8,"mat-dialog-actions")(9,
"button",211);J("click",function(){z(b);var c=K();c.archive();c.isArchiving_=!1;return A()});P(10," Yes ");G();F(11,"button",212);J("click",function(){z(b);K().isArchiving_=!1;return A()});P(12," No ");G()()}a&2&&(a=K(),B(1),Ke(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'" and its subcomponents?':""),B(2),D("ngIf","Archive"===a.archiveAction),B(4),D("ngForOf",a.descendants))},lfb=function(a){var b=null;if(a instanceof wt)var c=a.getSourceTeamId();
else c=a.sourceTeamId,b=a.sourceComponentId;return{sourceTeamId:c,sourceComponentId:b}},mfb=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)}},nfb=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},ofb=function(a,b){a&1&&(F(0,"div",39),H(1,"b-team-breadcrumb",40),G());a&2&&(a=b.ngIf,B(1),D("teamPath",a))},pfb=function(a,b){a&1&&(ze(0),P(1),Ae());a&2&&(a=b.ngIf,B(1),Ke(a.trim()))},qfb=function(a){a&1&&P(0," No description ")},rfb=function(a,b){a&1&&(ze(0),H(1,"b-multi-user-input",41),Ae());a&2&&(a=b.ngIf,B(1),D("users",a),oe("disabled",!0))},sfb=function(a){a&1&&(ze(0),F(1,"p"),P(2,"No child teams"),G(),Ae())},tfb=function(a,b){a&1&&(ze(0),H(1,
"br"),F(2,"a",44),P(3),G(),Ae());a&2&&(a=b.$implicit,B(2),Ge("routerLink","/teams/",a.getId(),"/edit"),B(1),Ke(a.getName()))},ufb=function(a){a&1&&O(0,tfb,4,2,"ng-container",43);a&2&&(a=K().ngIf,D("ngForOf",a))},vfb=function(a,b){a&1&&(ze(0),O(1,sfb,3,0,"ng-container",18),O(2,ufb,1,1,"ng-template",null,42,Pf),Ae());if(a&2){a=b.ngIf;var c=M(3);B(1);D("ngIf",0===a.length)("ngIfElse",c)}},wfb=function(a){a&1&&(F(0,"a",48),P(1),G());if(a&2){a=K().ngIf;var b;D("routerLinkObj",a.link);B(1);Je(" ",null!==
(b=null==a.slo?null:a.slo.getName())&&void 0!==b?b:a.id," ")}},xfb=function(a){a&1&&P(0," None ")},yfb=function(a,b){a&1&&(F(0,"div",45),P(1," Inherited SLO Policy: "),O(2,wfb,2,2,"a",46),O(3,xfb,1,0,"ng-template",null,47,Pf),G());if(a&2){a=b.ngIf;var c=M(4);B(2);D("ngIf",a.link)("ngIfElse",c)}},zfb=function(a,b){a&1&&(F(0,"a",49),P(1),G());a&2&&(a=b.ngIf,D("routerLinkObj",a.link),B(1),Je(" ",a.name," "))},Afb=function(a){a&1&&P(0," None ")},Bfb=function(a){a&1&&(ze(0),H(1,"mat-icon",51),P(2," on "),
Ae())},Cfb=function(a){a&1&&(H(0,"mat-icon",52),P(1," off "))},Dfb=function(a){a&1&&(ze(0),P(1," Lock: "),O(2,Bfb,3,0,"ng-container",18),O(3,Cfb,2,0,"ng-template",null,50,Pf),Ae());if(a&2){var b=M(4);a=K(2);B(2);D("ngIf",a.originalSloLock)("ngIfElse",b)}},Efb=function(a){if(a&1){var b=y();F(0,"div",54)(1,"mat-checkbox",55);J("change",function(c){z(b);var d=K(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.getSlo().getSloId());return A()});F(2,"span");P(3,"Override the inherited SLO");
G()()()}a&2&&(a=K(3),B(1),D("disabled",!a.hasEditAccess)("checked",!a.isSloInheritEnabled))},Ffb=function(a){if(a&1){var b=y();F(0,"div",60)(1,"label",61);P(2," Justification to override the org SLO ");G();H(3,"mat-icon",62);F(4,"textarea",63);J("ngModelChange",function(c){z(b);var d=K(4);return A(d.sloJustification$.next(c))});Q(5,"async");G()()}a&2&&(a=K(4),B(3),D("matTooltip",a.justificationRequiredText),oe("aria-label",a.justificationRequiredText),B(1),D("ngModel",R(5,4,a.sloJustification$))("disabled",
!a.hasEditAccess))},Gfb=function(a,b){a&1&&(F(0,"a",64),Q(1,"async"),H(2,"mat-icon",9),G());a&2&&(a=b.ngIf,b=K(4),He("target",R(1,2,b.hasUnsavedChanges$)?"_blank":"_self"),D("routerLinkObj",a))},Hfb=function(a){if(a&1){var b=y();ze(0);O(1,Ffb,6,6,"div",56);F(2,"div",14)(3,"mat-slide-toggle",57);J("ngModelChange",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d)})("change",function(d){z(b);var e=K(3);return A(e.enableSloChecked=d.checked)});P(4," Enable SLO ");G();F(5,"slo-picker",58);J("onSloSelect",
function(d){z(b);var e=K(3);return A(e.onSloChange(d))});G();O(6,Gfb,3,4,"a",59);Q(7,"async");G();Ae()}if(a&2){a=K().ngIf;var c=K(2);B(1);D("ngIf",!a.value);B(2);te("indented",!a.value);D("ngModel",c.enableSloChecked)("disabled",!c.hasEditAccess);B(2);D("boundId",c.sloId)("bv2Disabled",!c.hasEditAccess||!c.enableSloChecked||c.isSloInheritEnabled)("bv2Placeholder",c.enableSloChecked?"Type to search for an SLO":"SLO disabled");B(1);D("ngIf",R(7,9,c.sloPickerLink$))}},Ifb=function(a,b){a&1&&(ze(0),O(1,
Efb,4,2,"div",53),O(2,Hfb,8,11,"ng-container",6),Ae());a&2&&(a=b.ngIf,b=K(2),B(1),D("ngIf",!a.value),B(1),D("ngIf",!b.isSloInheritEnabled))},Jfb=function(a){if(a&1){var b=y();F(0,"div",14)(1,"mat-checkbox",65);J("change",function(c){z(b);var d=K(2);return A(d.sloLocked=c.checked)});F(2,"span");P(3,"Lock for all child teams");G()()()}a&2&&(a=K(2),B(1),D("checked",a.sloLocked)("disabled",!a.canEditSloLock))},Mfb=function(a){if(a&1){var b=y();F(0,"div",14)(1,"div",20)(2,"label",21)(3,"span",16);P(4,
" SLO lead ");G()();F(5,"span",22)(6,"div",23);P(7," Single team lead receiving SLO reports of unassigned issues. ");F(8,"div",24);H(9,"div",25)(10,"div",26);G()()()();F(11,"div");ze(12);F(13,"b-multi-user-input",66);J("usersChange",function(c){z(b);var d=K(2);1<c.length||(d.sloLead=1===c.length?c[0]:"");return A()})("isValid",function(c){z(b);var d=K(2);return A(d.isSloLeadValid=c)});G();Ae();G()()}a&2&&(a=K(2),B(13),D("users",a.sloLead?Oe(5,Kfb,a.sloLead):Ne(7,Lfb))("customValidators",a.sloLeadUserValidators)("detailedUserValidators",
a.sloLeadGooglerValidators)("maxUserAllowed",1),oe("disabled",a.hasEditAccess?null:!0))},Pfb=function(a){if(a&1){var b=y();F(0,"div",67)(1,"div",68)(2,"button",69);J("click",function(){z(b);var c=K().ngIf,d=K();return A(Nfb(d,c))});Q(3,"async");P(4," Update ");G();F(5,"button",70);J("click",function(){z(b);var c=K(2);return A(Ofb(c))});Q(6,"async");P(7," Revert changes ");G()()()}a&2&&(a=K(2),B(2),D("disabled",!R(3,2,a.hasUnsavedChanges$)),B(3),D("disabled",!R(6,4,a.hasUnsavedChanges$)))},Qfb=function(a){a&
1&&(ze(0),F(1,"p"),P(2,"No mapped components"),G(),Ae())},Rfb=function(a,b){a&1&&(F(0,"ul")(1,"li")(2,"a",44),P(3),G()()());a&2&&(a=b.$implicit,B(2),Ge("routerLink","/components/",a.componentId,"/manage"),B(1),Je(" ",a.name," "))},Sfb=function(a){a&1&&(O(0,Rfb,4,2,"ul",43),Q(1,"async"));a&2&&(a=K(3),D("ngForOf",R(1,1,a.associatedComponents$)))},Tfb=function(a,b){a&1&&(ze(0),O(1,Qfb,3,0,"ng-container",18),O(2,Sfb,2,3,"ng-template",null,71,Pf),Ae());if(a&2){a=b.ngIf;var c=M(3);B(1);D("ngIf",0===a.length)("ngIfElse",
c)}},Vfb=function(a,b){if(a&1){var c=y();ze(0);F(1,"div",7)(2,"h2");P(3);F(4,"a",8);P(5);H(6,"mat-icon",9);G()()();O(7,ofb,2,1,"div",10);Q(8,"async");F(9,"mat-tab-group",11);J("selectedIndexChange",function(f){z(c);var h=K();return A(h.selectedTabIndex=f)})("selectedIndexChange",function(f){z(c);var h=K();return A(h.tabChange(f))});F(10,"mat-tab",12)(11,"div",13);P(12," Team information on this page comes from ");F(13,"a",8);P(14," Team Graph ");H(15,"mat-icon",9);G();P(16," and is view only. ");
F(17,"div",14)(18,"div",15)(19,"label")(20,"span",16);P(21,"Description");G()();F(22,"div",17);O(23,pfb,2,1,"ng-container",18);O(24,qfb,1,0,"ng-template",null,19,Pf);G()()();F(26,"div",14)(27,"div",20)(28,"label",21)(29,"span",16);P(30," Team admins ");G();F(31,"span",22)(32,"div",23);P(33," Team admins are either team editors or team leads from Team Graph. ");F(34,"div",24);H(35,"div",25)(36,"div",26);G()()()();O(37,rfb,2,2,"ng-container",6);Q(38,"async");G()();F(39,"div",14)(40,"div",15)(41,"label")(42,
"span",16);P(43,"Child team(s)");G()();O(44,vfb,4,2,"ng-container",6);Q(45,"async");G()()()();F(46,"mat-tab",27)(47,"div",13)(48,"div",20)(49,"label",21)(50,"span",16);P(51,"SLO configuration");G()();F(52,"span",22)(53,"div",28)(54,"strong");P(55,"Careful!");G();P(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. ");F(57,"div",24);H(58,"div",25)(59,"div",26);G()()()();F(60,"div",29);O(61,yfb,
5,2,"div",30);Q(62,"async");F(63,"div",31);P(64," Policy Source: ");O(65,zfb,2,2,"a",32);Q(66,"async");O(67,Afb,1,0,"ng-template",null,33,Pf);G();F(69,"div",34);O(70,Dfb,5,2,"ng-container",6);G()();H(71,"b-error-banner",35);O(72,Ifb,3,2,"ng-container",6);Q(73,"async");O(74,Jfb,4,2,"div",36);O(75,Mfb,14,8,"div",36);O(76,Pfb,8,6,"div",37);G()();F(77,"mat-tab",38)(78,"div",13)(79,"div",14)(80,"div",15)(81,"label")(82,"span",16);P(83," Component(s) that have mapped to this team ");G()()();O(84,Tfb,4,
2,"ng-container",6);Q(85,"async");G()()()();Ae()}if(a&2){a=b.ngIf;var d=M(25),e=M(68);b=K();B(3);Je(" Team ",a.getTeamId(),": ");B(1);Ge("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Ud);B(1);Je(" ",a.getName()," ");B(2);D("ngIf",R(8,23,b.teamPath$));B(2);D("selectedIndex",b.selectedTabIndex);B(1);D("id",b.Tab.BASIC);B(3);Ge("href","https://moma.corp.google.com/team/",a.getTeamId(),"",Ud);B(10);D("ngIf",a.getDescription())("ngIfElse",d);B(14);D("ngIf",R(38,25,b.adminsAndLeads$));B(7);
D("ngIf",R(45,27,b.childTeams$));B(2);D("id",b.Tab.SLO);B(15);D("ngIf",R(62,29,b.inheritedSlo$));B(4);D("ngIf",R(66,31,b.sloPolicySource$))("ngIfElse",e);B(5);D("ngIf",b.enableSloLockingUi);B(1);D("error",b.error);B(1);D("ngIf",Oe(37,Ufb,R(73,33,b.isRootTeam$)));B(2);D("ngIf",b.enableSloLockingUi);B(1);D("ngIf",b.enableSloLead);B(1);D("ngIf",b.hasEditAccess);B(1);D("id",b.Tab.MAPPINGS);B(7);D("ngIf",R(85,35,b.associatedComponents$))}},Wfb=function(a){a&1&&Be(0)},Yfb=function(a,b){a&1&&(ze(0),O(1,
Wfb,1,0,"ng-container",7),Ae());if(a&2){a=b.$implicit;K(3);var c=M(5);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Oe(2,Xfb,a))}},Zfb=function(a){a&1&&(F(0,"div",4)(1,"div",5),P(2,"TEAMFOOD"),G(),O(3,Yfb,2,4,"ng-container",6),Q(4,"async"),G());a&2&&(a=K(2),B(3),D("ngForOf",R(4,1,a.beapFeaturesTF$)))},$fb=function(a){a&1&&Be(0)},agb=function(a,b){a&1&&(ze(0),O(1,$fb,1,0,"ng-container",7),Ae());if(a&2){a=b.$implicit;K(3);var c=M(5);B(1);D("ngTemplateOutlet",c)("ngTemplateOutletContext",Oe(2,
Xfb,a))}},bgb=function(a){a&1&&(F(0,"div",4)(1,"div",5),P(2,"EARLY ACCESS"),G(),O(3,agb,2,4,"ng-container",6),Q(4,"async"),G());a&2&&(a=K(2),B(3),D("ngForOf",R(4,1,a.beapFeaturesEA$)))},cgb=function(a){a&1&&(ze(0),O(1,Zfb,5,3,"div",3),Q(2,"async"),O(3,bgb,5,3,"div",3),Q(4,"async"),Ae());a&2&&(a=K(),B(1),D("ngIf",R(2,2,a.hasFeaturesTF$)),B(2),D("ngIf",R(4,4,a.hasFeaturesEA$)))},dgb=function(a){a&1&&(F(0,"div",8),P(1,"No available experiments"),G())},egb=function(a){a&1&&(F(0,"a",23),P(1," Learn more"),
G());a&2&&(a=K().feature,oe("href",W(a,6),Ud))},fgb=function(a){a&1&&(F(0,"b-callout",24)(1,"b-callout-body"),P(2," Reload page to see changes. "),G()())},igb=function(a,b){if(a&1){var c=y();F(0,"div",9)(1,"div",10)(2,"div",11);H(3,"mat-slide-toggle",12);Q(4,"featureState");Q(5,"featureState");G();F(6,"div",13)(7,"div",14);P(8);G();F(9,"span",15);P(10);O(11,egb,2,1,"a",16);G();F(12,"div",17)(13,"a",18);J("click",function(){var d=z(c).feature,e=K();d=d.getExperimentId();e.linkClicked[d]=!0;return A()});
H(14,"mat-icon",19);P(15);Q(16,"featureState");G()();O(17,fgb,3,0,"b-callout",20);G();F(18,"div",21);H(19,"b-app-beap-state-indicator",22);G()()()}a&2&&(a=b.feature,b=K(),B(3),D("checked",R(4,10,a.getState()))("matTooltip",R(5,12,a.getState())?"Opted in":"Opted out")("disabled",!0),B(5),Je(" ",a.getTitle()," "),B(2),Je("",a.getDescription()," "),B(1),D("ngIf",W(a,6)),B(2),oe("href","https://webdog.corp.google.com/app/list;frontend=buganizer;id="+a.getExperimentId(),Ud),B(2),Je(" ",R(16,14,a.getState())?
"Opt out":"Opt in"," "),B(2),D("ngIf",ggb(b,a.getExperimentId())),B(2),D("experimentId",a.getExperimentId()))},jgb=function(a){a&1&&(F(0,"mat-option",28),P(1),G());a&2&&(a=K().$implicit,D("value",a),B(1),Je(" ",a.name," "))},kgb=function(a,b){a&1&&(ze(0),O(1,jgb,2,2,"mat-option",27),Ae());a&2&&(a=b.$implicit,B(1),D("ngIf",a.shouldDisplay()))},lgb=function(a,b){a&1&&(F(0,"mat-option",31),P(1),G());a&2&&(a=b.$implicit,D("value",a.id),B(1),Je(" ",a.name," "))},ngb=function(a){if(a&1){var b=y();F(0,"mat-form-field",
8)(1,"mat-select",29);J("ngModelChange",function(c){z(b);var d=K();return A(d.preferredHomepage.selectedOptionId=c)})("selectionChange",function(){z(b);var c=K();return A(mgb(c.preferredHomepage))});O(2,lgb,2,2,"mat-option",30);G()()}a&2&&(a=K(),B(1),D("ngModel",a.preferredHomepage.selectedOptionId),B(1),D("ngForOf",a.preferredHomepage.selectedMainOption.options))},ogb=function(a,b){a&1&&(F(0,"mat-option",32),P(1),G());a&2&&(a=b.$implicit,D("value",a.value),B(1),Je(" ",a.label," "))},pgb=function(a,
b){a&1&&(F(0,"mat-option",32),P(1),G());a&2&&(a=b.$implicit,D("value",a.value),B(1),Je(" ",a.label," "))},qgb=function(a,b){a&1&&(F(0,"mat-option",32),P(1),G());a&2&&(a=b.$implicit,D("value",a.value),B(1),Je(" ",a.label," "))},rgb=function(a){if(a&1){var b=y();F(0,"div");H(1,"hr");F(2,"div",1)(3,"div",2);P(4," Other ");G();F(5,"div",5)(6,"div",6)(7,"label",33);P(8," Enable bug screensaver? ");G();F(9,"b-slide-toggle",34);J("modelChange",function(c){z(b);var d=K();return A(d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=
c)})("modelChange",function(){z(b);var c=K(),d=c.userPreferences.bugScreensaverPreferences.enableBugScreensaver;return A(c.save("saveBugScreensaverPreferences",void 0===d?"undefined":d.toString()))});G()()()()()}a&2&&(a=K(),B(9),D("model",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},sgb=function(a,b){a&1&&(F(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",R(2,2,a)," "))},tgb=function(a,b){a&1&&(F(0,"mat-option",20),P(1),
Q(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",R(2,2,a)," "))},ugb=function(a,b){a&1&&(F(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",R(2,2,a)," "))},vgb=function(a,b){a&1&&(F(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),B(1),Je(" ",R(2,2,a)," "))},wgb=function(a,b){a&1&&(F(0,"mat-option",20),P(1),Q(2,"toNewEmailPreference"),G());a&2&&(a=b.$implicit,D("value",a),B(1),
Je(" ",R(2,2,a)," "))},xgb=function(a){if(a&1){var b=y();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onBack.emit())});H(1,"mat-icon",4);G()}a&2&&(a=K(),D("matTooltip",a.backLabel))},ygb=function(a){if(a&1){var b=y();F(0,"button",3);J("click",function(){z(b);var c=K();return A(c.onRefresh.emit())});H(1,"mat-icon",5);G()}a&2&&(a=K(),D("matTooltip",a.refreshLabel))},zgb=function(a){a&1&&(F(0,"h2"),P(1),G());a&2&&(a=K(),B(1),Ke(a.title))},Agb=function(a){a&1&&(F(0,"mat-tab",6)(1,"div",
3),H(2,"b-beap-settings"),G()())},Bgb=function(a){if(a&1){var b=y();F(0,"b-star-toggle",13);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())});G()}a&2&&(a=K(2),D("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Cgb=function(a){a&1&&H(0,"b-star-toggle",14);a&2&&D("starMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("unStarMessage","You are the owner of this bookmark group, and cannot star/unstar it.")("starred",
!0)("disabled",!0)},Dgb=function(a,b){a&1&&(F(0,"li")(1,"a",15),P(2),G()());a&2&&(a=b.$implicit,b=K(2),B(1),D("href",b.getUrl(a),Ud)("title",a.description),B(1),Je(" ",b.getDisplayName(a)," "))},Egb=function(a){if(a&1){var b=y();F(0,"div")(1,"div",4)(2,"div",5);O(3,Bgb,1,3,"b-star-toggle",6);O(4,Cgb,1,4,"b-star-toggle",7);F(5,"span",8);P(6);G();F(7,"button",9);J("click",function(){z(b);var c=K();return A(c.openEditBookmarkGroup())});G()();F(8,"div",10);P(9);G()();F(10,"ul",11);O(11,Dgb,3,3,"li",12);
G()()}a&2&&(a=K(),B(3),D("ngIf",!a.userIsOwner),B(1),D("ngIf",a.userIsOwner),B(2),Je("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),Ke(a.bookmarkGroup.description),B(2),D("ngForOf",a.bookmarkGroup.item))},Fgb=function(a){if(a&1){var b=y();F(0,"b-star-toggle",16);J("starClicked",function(){z(b);var c=K(2);return A(c.toggleStar())})("keydown.space",function(c){return c.stopPropagation()})("keydown.enter",function(c){return c.stopPropagation()});G()}a&2&&(a=K(2),D("starMessage","Star this hotlist")("unStarMessage",
"Un-star this hotlist")("starred",a.isStarred))},Ggb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&D("starMessage","You are the owner of this hotlist, and cannot star/unstar it.")("unStarMessage","You are the owner of this hotlist, and cannot star/unstar it.")("starred",!0)("disabled",!0)},Hgb=function(a){a&1&&H(0,"b-star-toggle",17);a&2&&D("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},Igb=function(a){a&1&&(F(0,"div",18),P(1," Hotlist not found. "),G());a&2&&D("bFocus",!0)},
Jgb=function(a){a&1&&(F(0,"div"),P(1," Loading details... "),G())},Kgb=function(a){a&1&&(F(0,"span",25),P(1," (archived) "),G())},Lgb=function(a){a&1&&(F(0,"span",26),P(1," \u00a0(changed) "),G())},Mgb=function(a){if(a&1){var b=y();F(0,"div")(1,"span",19);P(2," Hotlist: ");F(3,"span",20);P(4);G()();O(5,Kgb,2,0,"span",21);F(6,"div",22)(7,"button",23);J("click",function(){z(b);var c=K(2);return A(c.openEditHotlist())});G()();O(8,Lgb,2,0,"span",24);G()}a&2&&(a=K(2),B(3),D("matTooltip",a.hotlist.description),
B(1),Je(" ",a.hotlist.name," "),B(1),D("ngIf",a.hotlist.archived),B(3),D("ngIf",a.hasParamChanges()))},Ngb=function(a){if(a&1){var b=y();F(0,"div",27)(1,"button",28);J("click",function(){z(b);var c=K(2);return A(c.save())});P(2,"Save ");G();F(3,"button",29);J("click",function(){z(b);var c=K(2);return A(c.discardChanges())});P(4,"Discard changes ");G()()}},Ogb=function(a){a&1&&(F(0,"div",9),O(1,Fgb,1,3,"b-star-toggle",10),O(2,Ggb,1,4,"b-star-toggle",11),O(3,Hgb,1,4,"b-star-toggle",11),F(4,"div",12),
O(5,Igb,2,1,"div",13),O(6,Jgb,2,0,"div",14),O(7,Mgb,9,4,"div",14),G(),O(8,Ngb,5,0,"div",15),G());a&2&&(a=K(),B(1),D("ngIf",!a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),D("ngIf",a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived),B(1),D("ngIf",!a.hotlist),B(2),D("ngIf",!a.hotlist&&!a.hotlistLoading),B(1),D("ngIf",a.hotlistLoading),B(1),D("ngIf",a.hotlist&&!a.hotlistLoading),B(1),D("ngIf",a.hasParamChanges()))},Pgb=function(a){a&1&&(F(0,"div",30),H(1,"b-spinner"),F(2,"span"),P(3),G()());
a&2&&(a=K(),B(3),Je(" Loading hotlist: ",a.hotlistId,""))},Qgb=function(a){a&1&&(F(0,"div",31),P(1),G());a&2&&(a=K(),D("bFocus",!0),B(1),Je(" No issues in hotlist ",a.hotlistId,". "))},Rgb=function(a){if(a&1){var b=y();F(0,"div",32)(1,"b-issues-grid",33);J("init",function(c){z(b);var d=K();return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K();return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K();return A(d.issueColumns=c)})("sortChange",function(c){z(b);
var d=K();return A(d.setSort(c.field,c.direction))})("rowClick",function(c){z(b);var d=K();return A(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){z(b);var d=K();return A(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){z(b);var c=K();return A(jt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K();return A(jt(c,c.page,-1))});G()()}a&2&&(a=K(),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",
!!a.isColumnSaveEnabled)("sort",a.getSort()))},Sgb=function(a){a&1&&(F(0,"div"),P(1," Loading details... "),G())},Tgb=function(a){a&1&&(F(0,"div"),P(1," Saved search not found. "),G())},Ugb=function(a){a&1&&(F(0,"span",15),P(1," \u00a0(changed) "),G())},Vgb=function(a){if(a&1){var b=y();F(0,"div",11);P(1," Saved search: ");F(2,"span",12);P(3);G();F(4,"button",13);J("click",function(){z(b);var c=K(2);return A(c.openEditSavedSearch())});G();O(5,Ugb,2,0,"span",14);G()}a&2&&(a=K(2),B(2),D("matTooltip",
a.savedSearch.description),B(1),Je(" ",a.savedSearch.name," "),B(2),D("ngIf",a.hasParamChanges()))},Wgb=function(a){a&1&&(F(0,"div",9),O(1,Sgb,2,0,"div",8),O(2,Tgb,2,0,"div",8),O(3,Vgb,6,3,"div",10),G());a&2&&(a=K(),B(1),D("ngIf",!a.savedSearch&&a.isLoading),B(1),D("ngIf",!a.savedSearch&&!a.isLoading),B(1),D("ngIf",a.savedSearch))},Xgb=function(a){if(a&1){var b=y();F(0,"div",16)(1,"button",17);J("click",function(){z(b);var c=K();return A(c.save())});P(2,"Save ");G();F(3,"button",18);J("click",function(){z(b);
var c=K();return A(c.discardChanges())});P(4,"Discard changes ");G();F(5,"span",19)(6,"a",20);J("click",function(){z(b);var c=K();Zn(c.analytics,c.ANALYTICS_CATEGORY,"backToNormalSearch");return A()});P(7," Back to normal search");G()()()}a&2&&(a=K(),B(6),D("href",a.exitLink,Ud))},Ygb=function(a){a&1&&(F(0,"span"),P(1),G());a&2&&(a=K(3),B(1),Je(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},Zgb=function(a){a&1&&(F(0,"div",24),H(1,"b-spinner"),O(2,Ygb,2,1,"span",8),G());
a&2&&(a=K(2),B(2),D("ngIf",a.searchParams))},$gb=function(a){a&1&&(F(0,"div",25),P(1," No issues in saved search. "),G());a&2&&D("bFocus",!0)},ahb=function(a){if(a&1){var b=y();F(0,"div",26)(1,"b-issues-grid",27);J("init",function(c){z(b);var d=K(2);return A(d.resultsGrid=c)})("focusedRowIndexChange",function(c){z(b);var d=K(2);return A(d.focusedRowIndex=c)})("columnsChange",function(c){z(b);var d=K(2);return A(d.issueColumns=c)})("sortChange",function(c){z(b);var d=K(2);return A(d.setSort(c.field,
c.direction))})("rowClick",function(c){z(b);var d=K(2);return A(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){z(b);var c=K(2);return A(jt(c,c.page,1))})("onPrevPage",function(){z(b);var c=K(2);return A(jt(c,c.page,-1))});G()()}a&2&&(a=K(2),B(1),D("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns)("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort()))},bhb=function(a){a&1&&(F(0,"div"),O(1,Zgb,3,1,"div",21),O(2,$gb,2,1,"div",22),
O(3,ahb,2,5,"div",23),G());a&2&&(a=K(),B(1),D("ngIf",a.isLoading),B(1),D("ngIf",!a.isLoading&&!a.hasResults()),B(1),D("ngIf",!a.isLoading&&a.hasResults()))},chb=function(a){if(a&1){var b=y();F(0,"div",7)(1,"label",8);P(2,"Issue email");G();F(3,"input",20,21);J("focus",function(){z(b);var d=M(4);return A(d.select())});G();F(5,"button",22);J("click",function(){z(b);var d=M(4),e=K();return A(xt(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=M(4);a=K();B(1);D("htmlFor",c.id);B(2);oe("value",a.getIssueEmail())}},
dhb=function(a){if(a&1){var b=y();F(0,"div",7)(1,"label",8);P(2,"TODO comment");G();F(3,"input",23,24);J("focus",function(){z(b);var d=M(4);return A(d.select())});G();F(5,"button",25);J("click",function(){z(b);var d=M(4),e=K();return A(xt(e,d))});H(6,"mat-icon",12);G()()}if(a&2){var c=M(4);a=K();B(1);D("htmlFor",c.id);B(2);oe("value",a.getTodoComment())}},ehb=function(a){if(a&1){var b=y();F(0,"b-button",6);J("onAction",function(){z(b);var c=K();return A(c.markAsDuplicate.emit())});F(1,"span");P(2,
"Mark as Duplicate");G()()}a&2&&(a=K(),D("disabled",!a.hasAclToEdit||a.statusIsSaving))},fhb=function(a){if(a&1){var b=y();F(0,"b-button",7);J("onAction",function(){z(b);var c=K();return A(c.clearCanonical.emit())});F(1,"span");P(2,"Unmark as Duplicate");G()()}a&2&&(a=K(),D("disabled",!a.hasAclToEdit||a.statusIsSaving))},ghb=function(a){if(a&1){var b=y();F(0,"b-app-vote-button",8);J("onVote",function(){z(b);var c=K();return A(c.onVote.emit())});G()}a&2&&(a=K(),D("issueId",a.issueId)("upvoted",a.upvoted)("voteCount",
a.voteCount))},hhb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",8),Q(1,"async"));a&2&&(a=K(),D("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!R(1,4,a.isWithinExternalComponent$)))},ihb=function(a){if(a&1){var b=y();F(0,"span",9);J("click",function(){z(b);var c=K();return A(yt(c.parent))})("keydown.enter",function(){z(b);var c=K();return A(yt(c.parent))});Q(1,"async");
Q(2,"async");Q(3,"async");Q(4,"async");G()}a&2&&(a=K(),te("bv2-disabled",!R(1,5,a.hasAclToEdit$)||!!R(2,7,a.isSaving$(a.IssueSavingKey.TITLE))),D("matTooltip",zt(a.parent)),oe("aria-label",zt(a.parent))("aria-disabled",!R(3,9,a.hasAclToEdit$)||!!R(4,11,a.isSaving$(a.IssueSavingKey.TITLE))))},khb=function(a){if(a&1){var b=y();F(0,"div",37)(1,"b-rel-issues-picker",38);J("itemsChange",function(c){z(b);var d=K(2);return A(jhb(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");G()()}a&
2&&(a=K(2),oe("aria-hidden","BLOCKED"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$("blockedByIssueId"))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove blocking issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add blocking issue":"")("items",a.parent.blockedByIssues)("searchLink",a.parent.blockingIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},mhb=function(a){if(a&1){var b=y();F(0,"div",
39)(1,"b-rel-issues-picker",40);J("itemsChange",function(c){z(b);var d=K(2);return A(lhb(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");G()()}a&2&&(a=K(2),oe("aria-hidden","BLOCKING"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$("blockingIssueId"))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove blocked issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add blocked issue":"")("items",a.parent.blockingIssues)("searchLink",
a.parent.blockedIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId))},nhb=function(a){a&1&&(F(0,"div",41),H(1,"b-rel-issues-picker",42),G());a&2&&(a=K(2),oe("aria-hidden","DUPLICATES"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!0)("hideStatus",!0)("items",a.parent.duplicateIssues))},ohb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",46)},qhb=function(a){if(a&1){var b=y();F(0,"div",43)(1,"b-rel-issues-picker",44);J("itemChange",function(c){z(b);var d=
K(2);return A(phb(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");O(6,ohb,1,0,"b-wtdm-info-hovercard",45);G()()}a&2&&(a=K(2),oe("aria-hidden","PARENTS"!=a.parent.relatedIssuesTrayOpen),B(1),D("disabled",!!R(2,8,a.isSaving$(a.IssueSavingKey.PARENT_ISSUES))||!R(3,10,a.hasAclToEdit$))("removeButtonTitle",R(4,12,a.hasAclToEdit$)?"Remove parent issue":"")("addButtonTitle",R(5,14,a.hasAclToEdit$)?"Add parent issue":"")("items",a.parent.parentIssues)("currentResourceId",a.parent.issueId)("componentId",
a.parent.issue.componentId),B(5),D("ngIf",!a.parent.sessionIsExternal))},rhb=function(a){a&1&&H(0,"b-wtdm-info-hovercard",46)},uhb=function(a){if(a&1){var b=y();F(0,"div",47)(1,"b-rel-issues-picker",48);J("itemChange",function(d){z(b);var e=K(2);return A(shb(e.parent,d))})("itemMove",function(d){z(b);var e=K(2);return A(shb(e.parent,d))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");Q(6,"async");O(7,rhb,1,0,"b-wtdm-info-hovercard",45);G()()}if(a&2){a=K(2);var c;oe("aria-hidden","CHILDREN"!=
a.parent.relatedIssuesTrayOpen);B(1);D("disabled",!!R(2,10,a.isSaving$("childIssues"))||!R(3,12,a.hasAclToEdit$))("removeButtonTitle",R(4,14,a.hasAclToEdit$)?"Remove child issue":"")("addButtonTitle",R(5,16,a.hasAclToEdit$)?"Add child issue":"")("items",null!==(c=R(6,18,a.parent.childIssues$))&&void 0!==c?c:Ne(20,thb))("searchLink",a.parent.childIssuesSearchUrl)("currentResourceId",a.parent.issueId)("componentId",a.parent.issue.componentId)("reorderable",!0);B(6);D("ngIf",!a.parent.sessionIsExternal)}},
vhb=function(a,b){a&1&&H(0,"b-package-mentions-listing",53);if(a&2){a=b.$implicit;b=K(2).ngIf;var c=K(3);D("issueId",""+c.parent.issueId)("packageMentionSet",a)("displayPackageName",c.parent.displayPackageNames(b))}},whb=function(a){a&1&&(ze(0),O(1,vhb,1,3,"b-package-mentions-listing",52),Ae());a&2&&(a=K().ngIf,B(1),D("ngForOf",a.mentions.packageMentionSet))},xhb=function(a,b){if(a&1){var c=y();ze(0);O(1,whb,2,1,"ng-container",36);F(2,"div",50)(3,"a",51);J("click",function(){z(c);var d=K(3);return A(d.parent.trackSqueegeeClick())});
P(4,"View in Squeegee");G()();Ae()}a&2&&(a=b.ngIf,B(1),D("ngIf",a.mentions),B(2),D("href",a.link,Ud))},yhb=function(a){a&1&&(F(0,"div",49),O(1,xhb,5,2,"ng-container",36),Q(2,"async"),G());a&2&&(a=K(2),oe("aria-hidden","MENTIONS"!=a.parent.relatedIssuesTrayOpen),B(1),D("ngIf",R(2,2,a.parent.codeMentionsState$)))},zhb=function(a){if(a&1){var b=y();F(0,"b-callout",54)(1,"b-callout-body");P(2," This issue is leveraging a new work tracking data model. Help us improve it by joining the early access group and reloading the page. ");
F(3,"a",55);P(4,"Learn more");G()();F(5,"b-callout-actions")(6,"b-button",56);J("onAction",function(){z(b);var c=K(2).wtdmEa;c.dismissalService.dismiss("wtdm-ea-announcement").pipe(jg(c.destroyed$)).subscribe();return A()});P(7,"Dismiss");G();F(8,"a",57)(9,"b-button",58);P(10,"Opt in");G()()()()}a&2&&D("messageType","info")("format","app")},Ahb=function(a){a&1&&(H(0,"b-issue-id-picker-legacy",59),Q(1,"async"));a&2&&(a=K(2),D("issueId",a.parent.issueId)("componentId",(null==a.parent.currentComponent?
null:a.parent.currentComponent.componentId)||0)("issueTitle",a.parent.issue.title)("isExternalIssue",!!R(1,4,a.isWithinExternalComponent$)))},Bhb=function(a){if(a&1){var b=y();F(0,"span",60,61);J("click",function(){z(b);var c=K(2);return A(yt(c.parent))})("keydown",function(c){z(b);var d=K(2);return A(yt(d.parent,c))});Q(2,"async");Q(3,"async");Q(4,"async");Q(5,"async");G()}a&2&&(a=K(2),te("bv2-disabled",!R(2,5,a.hasAclToEdit$)||!!R(3,7,a.isSaving$(a.IssueSavingKey.TITLE))),D("matTooltip",zt(a.parent)),
oe("aria-label",zt(a.parent))("aria-disabled",!R(4,9,a.hasAclToEdit$)||!!R(5,11,a.isSaving$(a.IssueSavingKey.TITLE))))},Chb=function(a){a&1&&(F(0,"div"),P(1," You must have "),F(2,"strong"),P(3,"issue admin"),G(),P(4," access. "),G())},Dhb=function(a){a&1&&(F(0,"div"),P(1," You can change admin settings in the "),F(2,"a",66),P(3,"component management page"),G(),P(4,". "),G());a&2&&(a=K(4),B(2),D("href",a.paths.manageComponentAcl(a.parent.issue.componentId),Ud))},Ehb=function(a){a&1&&(F(0,"xap-dialog-layout")(1,
"xap-dialog-layout-content"),P(2," Flag this issue as spam. "),O(3,Chb,5,0,"div",36),Q(4,"async"),O(5,Dhb,5,1,"div",36),Q(6,"async"),Q(7,"async"),G()());a&2&&(a=K(3),B(3),D("ngIf",!R(4,2,a.canDeleteIssue$)),B(2),D("ngIf",!R(6,4,a.canDeleteIssue$)&&R(7,6,a.userIsComponentAdmin$)))},Fhb=function(a){if(a&1){var b=y();F(0,"div",62)(1,"b-button",63);J("onAction",function(){z(b);var d=K(2);return A(d.parent.showFlagAsSpamDialog())});Q(2,"async");H(3,"b-icon",64);G();O(4,Ehb,8,8,"ng-template",null,65,Pf);
G()}if(a&2){var c=M(5);a=K(2);D("xapInlineDialog",c);B(1);D("disabled",!R(2,2,a.canDeleteIssue$))}},Hhb=function(a,b){if(a&1){var c=y();F(0,"b-hotlist-chip-smart",67);J("removeHotlist",function(){var d=z(c).$implicit,e=K(2);return A(Ghb(e,d))});G()}a&2&&D("id",""+b.$implicit)},Ihb=function(a){a&1&&(F(0,"div",68)(1,"span"),P(2),G()());a&2&&(a=K(2),B(2),Le("",a.parent.voteCount," ",1==a.parent.voteCount?"person has":"people have"," starred this issue."))},Jhb=function(a){if(a&1){var b=y();F(0,"a",72);
J("click",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()})("keydown.enter",function(c){z(b);var d=K(3).parent;d.newComponent=d.currentComponent;d.editComponent=!0;d.hotkeys.pause();c.stopPropagation();return A()});G()}a&2&&D("matTooltip","Change component")},Khb=function(a){a&1&&(F(0,"div",69)(1,"b-async-data-placeholder",18),Q(2,"async"),H(3,"b-component-breadcrumb",70),Q(4,"async"),O(5,Jhb,1,1,"a",71),Q(6,
"async"),G()());if(a&2){a=K(2);var b;B(1);D("isReady",!!R(2,4,a.parent.componentPathInfo$));B(2);D("componentPathInfo",R(4,6,a.parent.componentPathInfo$))("isArchived",null!==(b=null==a.parent.currentComponent?null:a.parent.currentComponent.archived)&&void 0!==b?b:!1);B(2);D("ngIf",R(6,8,a.hasAclToEdit$))}},Lhb=function(a){if(a&1){var b=y();F(0,"b-team-component-picker",73);J("selectedComponentChange",function(c){z(b);var d=K(2);return A(Z5a(d.issueEditComponentService,d.parent.issueId,null!==c&&
void 0!==c?c:null))})("dropdownClosed",function(){z(b);var c=K(2).parent;c.editComponent=!1;c.hotkeys.unpause();return A()});G()}a&2&&(a=K(2),D("selectedComponent",a.parent.newComponent)("placeholder","Choose Component")("isRequired",!0)("shouldFocus",!0))},Phb=function(a){a&1&&H(0,"b-actions-menu",74);if(a&2){a=K(2).parent;var b={permissions:a.issuePermissionService.issuePermissions(),accessLevel:a.issuePermissionService.accessLevel(),isDeleted:a.issue.isDeleted,isArchived:a.issue.isArchived,isInternal:a.activeSession.isInternalSession(),
isComponentAdmin:a.issuePermissionService.userIsComponentAdmin(),retentionOverride:a.issueDetailsBrain.retention(),retentionState:a.issueDetailsBrain.retentionState()};a=[Mhb(a,b),Nhb(a,b),Ohb(a,b)].filter(cl);D("menuItems",a)("buttonLabel","Issue actions")("matTooltip","Issue actions")}},Qhb=function(a){if(a&1){var b=y();F(0,"div",75)(1,"p");P(2);G();F(3,"b-button",76);J("onAction",function(){z(b);var c=K(2);return A(c.parent.undelete())});Q(4,"async");Q(5,"async");P(6," Undelete Issue ");G()()}a&
2&&(a=K(2),B(2),Je(" This issue has been marked for deletion for reason '",a.parent.issue.deletionReason,"'. Some changes can still be made to the issue but it will not appear in regular search results. "),B(1),D("tooltip",R(4,3,a.undeleteButtonTooltip$)||"")("disabled",!R(5,5,a.canUndeleteIssue$)))},Shb=function(a){a&1&&(H(0,"b-history-event-stream",77),Q(1,"async"));a&2&&(a=K(2),D("issueId",a.parent.issueId)("issueAccessLevel",R(1,3,a.accessLevel$))("events",Oe(5,Rhb,a.parent.firstEvent)))},Thb=
function(a){a&1&&(H(0,"b-history-event-stream",78),Q(1,"async"));a&2&&(a=K(2),D("issueId",a.parent.issueId)("issueAccessLevel",R(1,4,a.accessLevel$))("events",a.parent.events)("showFullHistory",a.parent.preferences.showFullHistory))},Uhb=function(a){a&1&&(F(0,"div",79)(1,"div",80)(2,"p",81),H(3,"b-spinner"),P(4," Loading history and comments... "),G()()())},Vhb=function(a){if(a&1){var b=y();F(0,"span")(1,"b-checkbox",89);J("change",function(){z(b);var d=K(3);return A(d.parent.toggleAutoCcOnComment())});
Q(2,"async");G()()}if(a&2){a=K(3);var c;B(1);D("checked",null!==(c=a.parent.preferences.autoCcOnComment)&&void 0!==c?c:!1)("disabled",!!R(2,2,a.isCurrentUserCCd$))}},Whb=function(a){a&1&&(H(0,"b-checkbox",92),Q(1,"async"));a&2&&(a=K(4),D("checked",!0)("disabled",!0)("tooltip",R(1,3,a.issuePermissionService.addMeToCcDisabledReason$)||""))},Xhb=function(a){a&1&&(F(0,"span",90),O(1,Whb,2,5,"b-checkbox",91),Q(2,"async"),G());a&2&&(a=K(3),B(1),D("ngIf",R(2,1,a.isCurrentUserCCd$)))},Yhb=function(a){a&1&&
H(0,"b-markdown-toggle")},bib=function(a){if(a&1){var b=y();F(0,"div")(1,"h3",82);P(2,"Add comment");G();F(3,"div",83)(4,"b-comment-box",84,85);J("onHotkey",function(){z(b);var d=M(5);return A(Sab(d,"editpage-hotkey"))})("onChange",function(){z(b);var d=K(2);return A(d.parent.saveCommentDraft())})("onSubmit",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())})("onRestrict",function(){z(b);var d=K(2);return A(d.parent.showNewContentJudgementDialog())});Q(6,"async");Q(7,"async");F(8,"div",
86)(9,"b-button",87);J("onAction",function(){z(b);var d=K(2);return A(d.parent.submitCommentBox())});P(10," Comment ");G();F(11,"div",86);O(12,Vhb,3,4,"span",36);Q(13,"async");Q(14,"async");O(15,Xhb,3,3,"span",88);Q(16,"async");Q(17,"async");O(18,Yhb,1,0,"b-markdown-toggle",36);Q(19,"async");G();H(20,"b-access-level-indicator",16);Q(21,"async");G()()()()}if(a&2){a=K(2);var c;B(4);D("hotkey",a.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.parent.issueId)("comment",a.parent.comment)("componentId",
a.parent.issue.componentId)("placeholder",Zhb(a.parent))("judgementForNewContent",a.parent.judgementForNewContent)("audience",null!==(c=R(6,15,a.audience$))&&void 0!==c?c:void 0)("disabled",!$hb(a.parent))("attachmentsDisabled",!R(7,17,a.hasAclToComment$));B(5);D("disabled",!aib(a.parent));B(3);D("ngIf",!R(13,19,a.isCurrentUserCCd$)&&R(14,21,a.hasAclToEdit$));B(3);D("ngIf",R(16,23,a.isCurrentUserCCd$)||!R(17,25,a.hasAclToEdit$));B(3);D("ngIf",R(19,27,a.hasAclToComment$));B(2);D("accessLevel",R(21,
29,a.accessLevel$))}},eib=function(a){if(a&1){var b=y();F(0,"div",1)(1,"div",2);O(2,khb,6,16,"div",3);O(3,mhb,6,16,"div",4);O(4,nhb,2,4,"div",5);O(5,qhb,7,16,"div",6);O(6,uhb,8,21,"div",7);O(7,yhb,3,4,"div",8);G();O(8,zhb,11,2,"b-callout",9);Q(9,"async");Q(10,"async");F(11,"div",10)(12,"edit-issue-scroll-eclipse",11);J("eclipsing",function(e){z(b);var f=K();return A(f.scrollEclipseShowing=e)});G();F(13,"div",12)(14,"div",13)(15,"b-star-toggle",14);J("onHotkey",function(){z(b);var e=K();return A(e.parent.toggleStarDebounced())})("starClicked",
function(){z(b);var e=K();return A(e.parent.toggleStar())});Q(16,"async");G();O(17,Ahb,2,6,"b-issue-id-picker-legacy",15);H(18,"b-access-level-indicator",16);Q(19,"async");F(20,"h3",17)(21,"b-async-data-placeholder",18)(22,"span",19)(23,"span",19);P(24);G();O(25,Bhb,6,13,"span",20);Q(26,"async");G()()();O(27,Fhb,6,4,"div",21);F(28,"span");O(29,Hhb,1,1,"b-hotlist-chip-smart",22);G()();H(30,"div",23);O(31,Ihb,3,2,"div",24);F(32,"div",25)(33,"div",26);O(34,Khb,7,10,"div",27);O(35,Lhb,1,4,"b-team-component-picker",
28);G();F(36,"span",29);H(37,"b-retention-chip",30);Q(38,"async");Q(39,"async");G();O(40,Phb,1,3,"b-actions-menu",31);G()();O(41,Qhb,7,7,"div",32);O(42,Shb,2,7,"b-history-event-stream",33);O(43,Thb,2,6,"b-history-event-stream",34);O(44,Uhb,5,0,"div",35);O(45,bib,22,31,"div",36);G()()}if(a&2){a=K();var c,d;B(2);D("ngIf","BLOCKED"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf","BLOCKING"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf","DUPLICATES"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",!a.parent.sessionIsExternal&&
a.parent.enableWtdmMvpUi&&"PARENTS"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",!a.parent.sessionIsExternal&&a.parent.enableWtdmMvpUi&&"CHILDREN"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",!a.parent.sessionIsExternal&&"MENTIONS"==a.parent.relatedIssuesTrayOpen);B(1);D("ngIf",cib(a.parent)&&!R(9,35,a.isWithinExternalComponent$)&&R(10,37,a.wtdmEa.shouldEnableEaCallout$));B(3);D("bFocus",!a.parent.isLoading);oe("aria-label",a.parent.issue.title);B(1);D("parent",a.parent);B(3);D("starMessage",
a.parent.starTooltip)("unStarMessage",a.parent.unStarTooltip)("starred",null==a.parent.userData?null:a.parent.userData.starred)("hotkey",a.HOTKEYS.TOGGLE_STAR)("disabled",!!R(16,39,a.isSaving$("star")));B(2);D("ngIf",!a.scrollEclipseShowing);B(1);D("accessLevel",R(19,41,a.accessLevel$));B(3);D("isReady",!!a.parent.issue.title);B(1);oe("aria-label",a.parent.ariaIssueTitle);B(2);Ke(a.parent.issue.title);B(1);D("ngIf",R(26,43,a.hasAclToEdit$));B(2);D("ngIf",dib(a));B(2);D("ngForOf",a.parent.issue.hotlistId);
B(2);D("ngIf",!a.parent.frontendIsInternalOrPartner);B(3);D("ngIf",!a.parent.editComponent);B(1);D("ngIf",a.parent.editComponent);B(2);D("retentionState",null!==(c=R(38,45,a.retentionState$))&&void 0!==c?c:void 0)("compactMode",!1)("modifiedTime",null!==(d=R(39,47,a.modifiedTime$))&&void 0!==d?d:void 0);B(3);D("ngIf",!a.parent.issue.isDeleted);B(1);D("ngIf",a.parent.issue.isDeleted);B(1);D("ngIf",a.parent.firstEvent);B(1);D("ngIf",!a.parent.areEventsLoading);B(1);D("ngIf",a.parent.areEventsLoading);
B(1);D("ngIf",!a.parent.issue.isDeleted)}},fib=function(a){a&1&&(F(0,"output",1),P(1),G());a&2&&(a=K(),se("background-color",a.entity.color)("color",a.entity.textColor||"inherit"),te("smallType",a.isMultiCharShortName())("uncoloredMultichar",a.isMultiCharShortName()&&null==a.entity.color)("noShortName",!a.entity.shortName),D("title",a.getTooltip(a.entity)),B(1),Je(" ",a.entity.shortName," "))},gib=function(a){return null==a?!1:1<Array.from(a.shortName||"").length},hib=function(a){if(null!=a){var b=
a.title,c=a.shortName;a=a.color;var d="";null!=c&&(d="["+c+"] ");c="";null!=a&&(c=" (color: "+a+")");return d+b+c}},iib=function(a){if(a&1){var b=y();ze(0);F(1,"mat-form-field",1)(2,"input",2);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.color=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();F(3,"mat-hint");P(4,"The main color that represents this item");G()();F(5,"mat-form-field",3)(6,"input",4);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.shortName=
c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();H(7,"mat-hint");G();F(8,"mat-form-field",1)(9,"input",5);J("ngModelChange",function(c){z(b);var d=K();return A(d.entity.textColor=c)})("input",function(){z(b);var c=K();return A(c.update(c.entity))});G();F(10,"mat-hint");P(11,"Only needed if you choose a dark color");G()();Ae()}a&2&&(a=K(),B(2),D("ngModel",a.entity.color),B(4),D("ngModel",a.entity.shortName),B(3),D("ngModel",a.entity.textColor))},jib=function(){return new At(new Bt("https://people-pa.googleapis.com",
"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s"))},kib=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},Ct="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},lib=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");},ji=lib(this),Dt=function(a,b){if(b)a:{var c=ji;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&&Ct(c,a,{configurable:!0,writable:!0,value:b})}};
Dt("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Ct(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});
Dt("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=ji[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&Ct(d.prototype,a,{configurable:!0,writable:!0,value:function(){return mib(kib(this))}})}return a});Dt("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var mib=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Et=function(a){return a.raw=a},r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:kib(a)}},wf=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},v=function(a){return a instanceof Array?a:wf(r(a))},Ft=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},nib="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)Ft(d,e)&&(a[e]=d[e])}return a};Dt("Object.assign",function(a){return a||nib});var oib="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},pib;
if("function"==typeof Object.setPrototypeOf)pib=Object.setPrototypeOf;else{var qib;a:{var rib={a:!0},sib={};try{sib.__proto__=rib;qib=sib.a;break a}catch(a){}qib=!1}pib=qib?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}
var Gt=pib,V=function(a,b){a.prototype=oib(b.prototype);a.prototype.constructor=a;if(Gt)Gt(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},Ht=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
Ht.prototype.start_=function(){if(this.isRunning_)throw new TypeError("g");this.isRunning_=!0};Ht.prototype.next_=function(a){this.yieldResult=a};Ht.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Ht.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var jf=function(a,b,c){a.nextAddress=c;return{value:b}};Ht.prototype.jumpTo=function(a){this.nextAddress=a};
var kf=function(a){a.nextAddress=0},It=function(a,b,c){a.catchAddress_=b;void 0!=c&&(a.finallyAddress_=c)},Jt=function(a,b){a.nextAddress=b;a.catchAddress_=0},Kt=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Lt=function(a){a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=0;a.finallyAddress_=0},Mt=function(a,b){var c=a.finallyContexts_.splice(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},Nt=function(a){this.context_=new Ht;this.program_=a};Nt.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return tib(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Ot(this)};
var uib=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return tib(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Ot(a)};Nt.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return tib(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Ot(this)};
var tib=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),Ot(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Ot(a)},Ot=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}},vib=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return uib(a,b)};this[Symbol.iterator]=function(){return this}},aTa=function(a){var b=bTa;a=new vib(new Nt(a));Gt&&b.prototype&&Gt(a,
b.prototype);return a},wib=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())})},hf=function(a){return wib(new vib(new Nt(a)))},Rfa=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))})},xc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};Dt("Reflect.setPrototypeOf",function(a){return a?a:Gt?function(b,c){try{return Gt(b,c),!0}catch(d){return!1}}:null});
Dt("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=ji.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(u){this.asyncThrow_(u)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(u){return function(x){q||(q=!0,u.call(k,x))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("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=ji.console;"undefined"!==typeof k&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=ji.CustomEvent,k=ji.Event,q=ji.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=ji.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(u){q.reject(u)}};e.prototype.then=function(h,k){function q(I,N){return"function"==typeof I?function(L){try{u(I(L))}catch(T){x(T)}}:
N}var u,x,E=new e(function(I,N){u=I;x=N});this.callWhenSettled_(q(h,u),q(k,x));return E};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(u.state_){case 1:h(u.result_);break;case 2:k(u.result_);break;default:throw Error("j`"+u.state_);}}var u=this;null==this.onSettledCallbacks_?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var u=r(h),x=u.next();!x.done;x=u.next())c(x.value).callWhenSettled_(k,q)})};e.all=function(h){var k=r(h),q=k.next();return q.done?c([]):new e(function(u,x){function E(L){return function(T){I[L]=T;N--;0==N&&u(I)}}var I=[],N=0;do I.push(void 0),N++,c(q.value).callWhenSettled_(E(I.length-1),x),q=k.next();while(!q.done)})};return e});var Pt=function(a,b,c){if(null==a)throw new TypeError("k`"+c);if(b instanceof RegExp)throw new TypeError("l`"+c);return a+""};
Dt("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Pt(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 xib=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}};Dt("Array.prototype.find",function(a){return a?a:function(b,c){return xib(this,b,c).v}});
Dt("WeakMap",function(a){function b(){}function c(q){var u=typeof q;return"object"===u&&null!==q||"function"===u}function d(q){if(!Ft(q,f)){var u=new b;Ct(q,f,{value:u})}}function e(q){var u=Object[q];u&&(Object[q]=function(x){if(x instanceof b)return x;Object.isExtensible(x)&&d(x);return u(x)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),u=Object.seal({}),x=new a([[q,2],[u,3]]);if(2!=x.get(q)||3!=x.get(u))return!1;x.delete(q);x.set(u,4);return!x.has(q)&&4==x.get(u)}catch(E){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=r(q);for(var u;!(u=q.next()).done;)u=u.value,this.set(u[0],u[1])}};k.prototype.set=function(q,u){if(!c(q))throw Error("m");d(q);if(!Ft(q,f))throw Error("n`"+q);q[f][this.id_]=u;return this};k.prototype.get=function(q){return c(q)&&Ft(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&Ft(q,f)&&Ft(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&Ft(q,f)&&Ft(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
Dt("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(r([[k,"s"]]));if("s"!=q.get(k)||1!=q.size||q.get({x:4})||q.set({x:4},"t")!=q||2!=q.size)return!1;var u=q.entries(),x=u.next();if(x.done||x.value[0]!=k||"s"!=x.value[1])return!1;x=u.next();return x.done||4!=x.value[0].x||"t"!=x.value[1]||!u.next().done?!1:!0}catch(E){return!1}}())return a;var b=new WeakMap,c=function(k){this.data_={};this.head_=
f();this.size=0;if(k){k=r(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=0===k?0:k;var u=d(this,k);u.list||(u.list=this.data_[u.id]=[]);u.entry?u.entry.value=q:(u.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:k,value:q},u.list.push(u.entry),this.head_.previous.next=u.entry,this.head_.previous=u.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||
delete this.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 u=this.entries(),x;!(x=u.next()).done;)x=x.value,k.call(q,x[1],x[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var u=q&&typeof q;"object"==u||"function"==u?b.has(q)?u=b.get(q):(u=""+ ++h,b.set(q,u)):u="p_"+q;var x=k.data_[u];if(x&&Ft(k.data_,u))for(k=0;k<x.length;k++){var E=x[k];if(q!==q&&E.key!==E.key||q===E.key)return{id:u,list:x,index:k,entry:E}}return{id:u,list:x,index:-1,
entry:void 0}},e=function(k,q){var u=k.head_;return mib(function(){if(u){for(;u.head!=k.head_;)u=u.previous;for(;u.next!=u.head;)return u=u.next,{done:!1,value:q(u)};u=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});Dt("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
Dt("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});var yib=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};Dt("Array.prototype.entries",function(a){return a?a:function(){return yib(this,function(b,c){return[b,c]})}});
Dt("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});Dt("Object.setPrototypeOf",function(a){return a||Gt});Dt("Array.prototype.keys",function(a){return a?a:function(){return yib(this,function(b){return b})}});Dt("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
Dt("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(r([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=
r(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});Dt("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}});
Dt("Array.prototype.values",function(a){return a?a:function(){return yib(this,function(b,c){return c})}});Dt("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Pt(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}});
Dt("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 Qt=function(a){return a?a:Array.prototype.fill};Dt("Int8Array.prototype.fill",Qt);Dt("Uint8Array.prototype.fill",Qt);Dt("Uint8ClampedArray.prototype.fill",Qt);Dt("Int16Array.prototype.fill",Qt);Dt("Uint16Array.prototype.fill",Qt);Dt("Int32Array.prototype.fill",Qt);
Dt("Uint32Array.prototype.fill",Qt);Dt("Float32Array.prototype.fill",Qt);Dt("Float64Array.prototype.fill",Qt);Dt("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});Dt("Array.prototype.findIndex",function(a){return a?a:function(b,c){return xib(this,b,c).i}});Dt("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}});
Dt("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}});Dt("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Pt(this,b,"includes").indexOf(b,c||0)}});Dt("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ft(b,d)&&c.push([d,b[d]]);return c}});
Dt("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}});Dt("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ft(b,d)&&c.push(b[d]);return c}});
Dt("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;})})}});Dt("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}});
Dt("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)}});
Dt("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)}});
Dt("String.prototype.codePointAt",function(a){return a?a:function(b){var c=Pt(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}}});
Dt("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}});
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Rt=Rt||{},da=this||self,Fo=function(a,b){a=a.split(".");b=b||da;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Oa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},Ea=function(a){var b=Oa(a);return"array"==b||"object"==b&&"number"==typeof a.length},Ha=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ia=function(a){return Object.prototype.hasOwnProperty.call(a,zib)&&a[zib]||(a[zib]=++Aib)},zib="closure_uid_"+(1E9*Math.random()>>>
0),Aib=0,Bib=function(a,b,c){return a.call.apply(a.bind,arguments)},Cib=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)}},St=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?St=Bib:St=Cib;return St.apply(null,arguments)},Tt=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)}},Ut=function(){return Date.now()},Dib=function(a){(0,eval)(a)},Vt=function(a,b){a=a.split(".");var c=da;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b},Wt=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)}},Eib=function(a){return a};
var aa={};
Wt(ba,Error);ba.prototype.name="CustomError";
var Fib;
Wt(ca,ba);ca.prototype.name="AssertionError";
var Mi=function(a,b){return 0==a.lastIndexOf(b,0)},Xt=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},TNa=function(a){return 0==Yt("@ldap.google.com",a.slice(a.length-16))},Wi=function(a){return/^[\s\xa0]*$/.test(a)},Ri=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Yt=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},Nib=function(a){if(!Gib.test(a))return a;-1!=a.indexOf("&")&&
(a=a.replace(Hib,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Iib,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Jib,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Kib,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Lib,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Mib,"&#0;"));return a},Hib=/&/g,Iib=/</g,Jib=/>/g,Kib=/"/g,Lib=/'/g,Mib=/\x00/g,Gib=/[\x00&<>"']/,fa=function(a,b){return-1!=a.indexOf(b)},pa=function(a,b){return fa(a.toLowerCase(),b.toLowerCase())},qa=function(a,b){var c=0;a=Ri(String(a)).split(".");
b=Ri(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=Oib(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||Oib(0==f[2].length,0==h[2].length)||Oib(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c},Oib=function(a,b){return a<b?-1:a>b?1:0};
var ua=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ta=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Pib=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},Zt=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},Qib=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 Rib=function(a){Rib[" "](a);return a};Rib[" "]=function(){};var Sib=function(a,b){try{return Rib(a[b]),!0}catch(c){}return!1},SGa=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
var Tib=ia("Opera"),$t=baa(),au=ia("Edge"),Kna=au||$t,bu=ia("Gecko")&&!(pa(ea(),"WebKit")&&!ia("Edge"))&&!(ia("Trident")||ia("MSIE"))&&!ia("Edge"),cu=pa(ea(),"WebKit")&&!ia("Edge"),Uib=cu&&ia("Mobile"),du=ia("Macintosh"),Vib=ia("Windows"),Wib=ia("Linux")||ia("CrOS"),Xib=da.navigator||null;Xib&&fa(Xib.appVersion||"","X11");var Yib=ia("Android"),Zib=na(),$ib=ia("iPad"),ajb=ia("iPod"),bjb=oa();pa(ea(),"KaiOS");var cjb=function(){var a=da.document;return a?a.documentMode:void 0},djb;
a:{var ejb="",fjb=function(){var a=ea();if(bu)return/rv:([^\);]+)(\)|;)/.exec(a);if(au)return/Edge\/([\d\.]+)/.exec(a);if($t)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(cu)return/WebKit\/(\S+)/.exec(a);if(Tib)return/(?:Version)[ \/]?(\S+)/.exec(a)}();fjb&&(ejb=fjb?fjb[1]:"");if($t){var gjb=cjb();if(null!=gjb&&gjb>parseFloat(ejb)){djb=String(gjb);break a}}djb=ejb}var eu=djb,hjb={},fu=function(a){return SGa(hjb,a,function(){return 0<=qa(eu,a)})},ijb;
if(da.document&&$t){var jjb=cjb();ijb=jjb?jjb:parseInt(eu,10)||void 0}else ijb=void 0;var gu=ijb;
var kjb=ka(),ljb=na()||ia("iPod"),mjb=ia("iPad"),njb=daa(),ojb=la(),pjb=caa()&&!oa();
var qjb={},hu=null,rjb=bu||cu||!pjb&&!$t&&"function"==typeof da.atob,lb=function(a,b){void 0===b&&(b=0);sjb();b=qjb[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],u=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=u+h+k+q}u=0;q=d;switch(a.length-e){case 2:u=a[e+1],q=b[(u&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|u>>4]+q+d}return c.join("")},KTa=function(a){if(rjb)return da.atob(a);var b="";tjb(a,function(c){b+=String.fromCharCode(c)});
return b},ujb=function(a){var b=[];tjb(a,function(c){b.push(c)});return b},raa=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):fa("=.",a[b-1])&&(c=fa("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;tjb(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},tjb=function(a,b){function c(q){for(;d<a.length;){var u=a.charAt(d++),x=hu[u];if(null!=x)return x;if(!Wi(u))throw Error("v`"+u);}return q}sjb();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))}},sjb=function(){if(!hu){hu={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));qjb[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===hu[f]&&(hu[f]=e)}}}};
var Pa="undefined"!==typeof Uint8Array,yb,Qa={};
var vjb,gb=function(a,b){taa(b);this.value_=a;if(null!=a&&0===a.length)throw Error("x");},eb=function(){return vjb||(vjb=new gb(null,Qa))},mb=function(a){var b=a.value_;null!=b&&"string"!==typeof b&&(Pa&&b instanceof Uint8Array?b=lb(b):(Oa(b),b=null));return null==b?"":a.value_=b};gb.prototype.isEmpty=function(){return null==this.value_};gb.prototype.sizeBytes=function(){var a=Paa(this);return a?a.length:0};var Paa=function(a){taa(Qa);var b=saa(a.value_);return null==b?b:a.value_=b};
var Ra="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;
var wjb,iu=Object.freeze(Wa([])),qb=function(a){if(cb(a))throw Error("B");},xjb="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;
var kb=function(a,b){this.arr_=a;this.valueCtor=b;this.map={};this.arrClean=!1;for(a=this.size=0;a<this.arr_.length;a++){b=this.arr_[a];var c=b[0].toString(),d=this.map[c];this.map[c]=b;void 0===d&&this.size++}},yjb=function(a){if(Za(a.arr_))throw Error("C");};kb.prototype.toArrayInternal=function(){if(!this.arrClean){var a=ju(this);a.sort();for(var b=0;b<a.length;b++)this.arr_[b]=this.map[a[b]];a.length<this.arr_.length&&(this.arr_.length=a.length);this.arrClean=!0;this.size=this.arr_.length}return this.arr_};
var Maa=function(a,b){var c=a.valueCtor,d=new kb(Wa([]),c),e;for(e in a.map){var f=a.map[e];c?d.set(f[0],b(ku(a,f))):d.set(f[0],f[1])}return d};g=kb.prototype;g.clear=function(){yjb(this);this.map={};this.size=this.arr_.length=0;this.arrClean=!0};g.delete=function(a){yjb(this);a=a.toString();return this.map.hasOwnProperty(a)?(delete this.map[a],this.size--,this.arrClean=!1,!0):!1};g.del=function(a){return this.delete(a)};
g.entries=function(){var a=[],b=ju(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d[0],ku(this,d)])}return new lu(a)};g.keys=function(){var a=[],b=ju(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]][0]);return new lu(a)};g.values=function(){var a=[],b=ju(this);b.sort();for(var c=0;c<b.length;c++)a.push(ku(this,this.map[b[c]]));return new lu(a)};
g.forEach=function(a,b){var c=ju(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,ku(this,e),e[0],this)}};g.set=function(a,b){yjb(this);var c=a.toString(),d=this.map[c];d?d[1]=b:(a=[a,b],this.map[c]=a,this.arr_.push(a),this.arrClean=!1,this.size++);return this};
var ku=function(a,b){var c=b[1],d=a.valueCtor;if(d){var e=!1,f;if(f=null!=c&&"object"===typeof c&&!(e=Array.isArray(c)))f=Array.isArray(c.internalArray_)&&c.constructor!==Object;d=f?c:e?new d(c):new d;d!==c&&(b[1]=d,Za(a.arr_)&&ab(d.internalArray_));return d}return c};kb.prototype.get=function(a){if(a=this.map[a.toString()])return ku(this,a)};kb.prototype.has=function(a){return a.toString()in this.map};
var ju=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};kb.prototype[Symbol.iterator]=function(){return this.entries()};var lu=function(a){this.idx_=0;this.arr_=a};lu.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}};lu.prototype[Symbol.iterator]=function(){return this};
var zjb=function(a){return a.internalSparseObject_||(a.internalSparseObject_=a.internalArray_[a.pivot_+a.arrayIndexOffset]={})},p=function(a,b,c){return-1===b?null:b>=a.pivot_?a.internalSparseObject_?a.internalSparseObject_[b]:void 0:(void 0===c?0:c)&&a.internalSparseObject_&&(c=a.internalSparseObject_[b],null!=c)?c:a.internalArray_[b+a.arrayIndexOffset]},l=function(a,b,c,d,e){d=void 0===d?!1:d;(void 0===e?0:e)||qb(a);b<a.pivot_&&!d?a.internalArray_[b+a.arrayIndexOffset]=c:zjb(a)[b]=c;return a},ej=
function(a,b){return null!=p(a,b)},mj=function(a,b){return Array.isArray(p(a,b))},yl=function(a,b,c){return Array.isArray(p(a,wb(a,c,b)))},ob=function(a,b,c,d){c=void 0===c?!0:c;var e=p(a,b,d);Array.isArray(e)||(e=iu);if(cb(a))c&&(ab(e),Object.freeze(e));else if(e===iu||Za(e))e=Wa(e.slice()),l(a,b,e,d);return e},mu=function(a,b){a=p(a,b);return null==a?a:+a},Mo=function(a,b){a=p(a,b);return null==a?a:!!a},nu=function(a,b){var c=p(a,b);if(null==c)return null;if(c instanceof gb)return c;c=hb(c);l(a,
b,c,void 0,!0);return c},X=function(a,b,c){a=p(a,b);return null==a?c:a},bj=function(a,b,c){c=void 0===c?!1:c;a=Mo(a,b);return null==a?c:a},Bl=function(a,b,c){c=void 0===c?0:c;a=mu(a,b);return null==a?c:a},xm=function(a,b){var c=void 0===c?"":c;a=nu(a,b);return null==a?c?new gb(c,Qa):eb():a},Zi=function(a,b,c){a:{var d=p(a,b);if(null==d)d=[];else if(d.constructor===kb){a=d;break a}var e=cb(a),f=Za(d);if(!e&&f){for(var h=d.slice(),k=0;k<d.length;k++)if(Array.isArray(h[k])){var q=h[k].slice();h[k]=q;
c&&1<q.length&&Array.isArray(q[1])&&ab(q[1])}d=h}c=new kb(d,c);e&&!f&&ab(c.arr_);l(a,b,c,!1,!0);a=c}return a},ll=function(a,b,c){null==c?c=iu:Wa(c);return l(a,b,c)},rb=function(a,b,c){return l(a,b,void 0,!1,c)},ou=function(a,b,c){qb(a);null==c||(c instanceof gb?c.isEmpty():0===c.length)?rb(a,b):l(a,b,c);return a},Yn=function(a,b,c,d){qb(a);(c=ub(a,c))&&c!==b&&null!=d&&(a.internalWrappers_&&c in a.internalWrappers_&&(a.internalWrappers_[c]=void 0),l(a,c));return l(a,b,d)},ub=function(a,b){for(var c=
0,d=0;d<b.length;d++){var e=b[d];null!=p(a,e)&&(0!==c&&rb(a,c,!0),c=e)}return c},pu=function(a,b,c){qb(a);a.internalWrappers_||(a.internalWrappers_={});var d=a.internalWrappers_[c];if(d)return b=d.toMutable(aa),b!==d&&(l(a,c,b.toArrayInternal()),a.internalWrappers_[c]=b),b;d=p(a,c);b=zaa(d,b,!0).toMutable(aa);d!==b.toArrayInternal()&&l(a,c,b.toArrayInternal());return a.internalWrappers_[c]=b},m=function(a,b,c,d,e){e=void 0===e?!1:e;var f=e;if(-1===c)d=null;else{a.internalWrappers_||(a.internalWrappers_=
{});var h=a.internalWrappers_[c];if(h)d=h;else{var k=p(a,c,f);b=zaa(k,b,d);void 0==b?d=h:(d&&b.toArrayInternal()!==k&&l(a,c,b.toArrayInternal(),f,!0),a.internalWrappers_[c]=b,cb(a)&&ab(b.internalArray_),d=b)}}if(null==d)return d;cb(d)&&!cb(a)&&(d=d.toMutable(aa),l(a,c,d.toArrayInternal(),e),a.internalWrappers_[c]=d);return d},Ajb=function(a,b,c,d,e){e=void 0===e?!0:e;a.internalWrappers_||(a.internalWrappers_={});var f=cb(a),h=a.internalWrappers_[c];d=ob(a,c,!0,d);var k=f||Za(d);if(!h){h=[];f=f||k;
for(var q=0;q<d.length;q++){var u=d[q];f=f||Za(u);u=zaa(u,b);void 0!==u&&(h.push(u),k&&ab(u.internalArray_))}a.internalWrappers_[c]=h;bb(d,!f)}b=k||e;e=Za(h);b&&!e&&(Object.isFrozen(h)&&(a.internalWrappers_[c]=h=h.slice()),ab(h),Object.freeze(h));!b&&e&&(a.internalWrappers_[c]=h=h.slice());return h},xb=function(a,b,c,d){d=void 0===d?!1:d;var e=cb(a);b=Ajb(a,b,c,d,e);a=ob(a,c,d);if(!(c=e)&&(c=a)){if(!Array.isArray(a))throw Error("z");c=!(Ua(a)&8)}if(c){for(c=0;c<b.length;c++)(d=b[c])&&cb(d)&&!e&&(b[c]=
b[c].toMutable(aa),a[c]=b[c].toArrayInternal());bb(a,!0)}return b},Gb=function(a,b,c,d){qb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=c?c.toArrayInternal():c;a.internalWrappers_[b]=c;return l(a,b,e,d)},qu=function(a,b,c,d){qb(a);a.internalWrappers_||(a.internalWrappers_={});var e=null!=d?d.toArrayInternal():d;a.internalWrappers_[b]=d;return Yn(a,b,c,e)},Fb=function(a,b,c,d){qb(a);if(null!=c){var e=Wa([]);for(var f=!1,h=0;h<c.length;h++)e[h]=c[h].toArrayInternal(),f=f||Za(e[h]);a.internalWrappers_||
(a.internalWrappers_={});a.internalWrappers_[b]=c;bb(e,!f)}else a.internalWrappers_&&(a.internalWrappers_[b]=void 0),e=iu;return l(a,b,e,d)},ru=function(a,b,c,d,e){qb(a);var f=Ajb(a,c,b,void 0,!1);c=null!=d?d:new c;b=ob(a,b);void 0!=e?(f.splice(e,0,c),b.splice(e,0,c.toArrayInternal())):(f.push(c),b.push(c.toArrayInternal()));c.isImmutable(aa)&&bb(b,!1);return a},fj=function(a,b,c){return X(a,b,void 0===c?0:c)},lj=function(a,b,c){return X(a,b,void 0===c?"0":c)},W=function(a,b,c){return X(a,b,void 0===
c?"":c)},Hr=function(a,b,c){return p(a,wb(a,c,b))},Al=function(a,b,c,d){return m(a,b,wb(a,d,c))},fo=function(a,b,c){return sb(a,b,c,!1)},Vk=function(a,b,c){return sb(a,b,c,0)},xl=function(a,b,c){return sb(a,b,c,"")},ul=function(a,b,c){return sb(a,b,c,0)};
var tu=function(a,b,c){a||(a=su);su=null;var d=this.constructor.messageId;a||(a=d?[d]:[]);this.arrayIndexOffset=(d?0:-1)-(this.constructor.internalGroupNumberDoNotUse||0);this.internalWrappers_=void 0;this.internalArray_=a;a:{d=this.internalArray_.length;a=d-1;if(d&&(d=this.internalArray_[a],vaa(d))){this.pivot_=a-this.arrayIndexOffset;this.internalSparseObject_=d;break a}void 0!==b&&-1<b?(this.pivot_=Math.max(b,a+1-this.arrayIndexOffset),this.internalSparseObject_=void 0):this.pivot_=Number.MAX_VALUE}if(c)for(b=
0;b<c.length;b++)if(a=c[b],a<this.pivot_)a+=this.arrayIndexOffset,(d=this.internalArray_[a])?Array.isArray(d)&&Wa(d):this.internalArray_[a]=iu;else{d=zjb(this);var e=d[a];e?Array.isArray(e)&&Wa(e):d[a]=iu}};tu.prototype.toArray=function(){return this.toJSON()};tu.prototype.toJSON=function(){var a=this.toArrayInternal();return wjb?a:nb(a,Kaa)};tu.prototype.toArrayInternal=function(){return this.internalArray_};
tu.prototype.serialize=function(){wjb=!0;try{return JSON.stringify(this.toJSON(),Naa)}finally{wjb=!1}};var bo=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("F`"+Oa(b)+"`"+b);su=b;a=new a(b);su=null;return a};g=tu.prototype;g.getExtension=function(a){return a.getExtensionFn(this)};g.hasExtension=function(a){return ej(this,a.fieldIndex)};g.clone=function(){var a=nb(this.toArrayInternal());su=a;a=new this.constructor(a);su=null;Oaa(a,this);return a};
g.isMutable=function(){aaa();return!cb(this)};g.isImmutable=function(a){aaa(a);return cb(this)};g.toString=function(){return this.toArrayInternal().toString()};var su;
var Bjb="function"===typeof Uint8Array.prototype.slice;
var uu=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=uu.prototype;g.init=function(a,b,c,d){d=void 0===d?{}:d;this.aliasBytesFields=void 0===d.aliasBytesFields?!1:d.aliasBytesFields;a&&(a=Qaa(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>vu.length&&vu.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){wu(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;wu(this,f);if(128>h)return a(b>>>0,c>>>0);throw Error("L");};var wu=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("M`"+b+"`"+a.end_);};g=uu.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("L");wu(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.readUint64=function(){var a=this.readUint32(),b=this.readUint32();return Raa(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 Saa(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 wu(this,b),!!(a&127)}throw Error("L");};
g.readByteString=function(a){if(0==a)return eb();if(0>a)throw Error("N`"+a);var b=this.cursor_,c=b+a;if(c>this.end_)throw Error("M`"+(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?yb||(yb=new Uint8Array(0)):Bjb?c.slice(b,a):new Uint8Array(c.subarray(b,a)));return 0==b.length?eb():new gb(b,Qa)};var vu=[];
var Cjb=function(a){if(vu.length){var b=vu.pop();b.init(a,void 0,void 0,void 0);a=b}else a=new uu(a);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions()};g=Cjb.prototype;g.setOptions=function(){var a={};this.discardUnknownFields=void 0===a.discardUnknownFields?!1:a.discardUnknownFields};g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;100>xu.length&&xu.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 eba=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("H`"+d+"`"+a.fieldCursor_);if(1>c)throw Error("I`"+c+"`"+a.fieldCursor_);a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},Cb=function(a){switch(a.nextWireType_){case 0:0!=a.nextWireType_?Cb(a):a.decoder_.readBool();break;case 1:a.decoder_.advance(8);break;case 2:if(2!=a.nextWireType_)Cb(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(!eba(a))throw Error("J");if(4==a.nextWireType_){if(a.nextField_!=b)throw Error("K");break}Cb(a)}while(1);break;default:throw Error("H`"+a.nextWireType_+"`"+a.fieldCursor_);}};g=Cjb.prototype;g.readInt32=function(){return this.decoder_.readSignedVarint32()};g.readInt64=function(){return this.decoder_.readSplitVarint64(Saa)};g.readUint32=function(){return this.decoder_.readSignedVarint32()>>>0};
g.readUint64=function(){return this.decoder_.readSplitVarint64(Raa)};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 xu=[];
var yu=function(){tu.apply(this,arguments)};V(yu,tu);var or=function(a,b,c){return b.setExtensionFn(a,c)};yu.prototype.toMutable=function(){return this};if(xjb){var Djb={};Object.defineProperties(yu,(Djb[Symbol.hasInstance]=yaa(function(){throw Error("P");}),Djb))}
;var Ab=Symbol(),Zaa=Symbol(),Bb=Symbol(),Ejb=Db(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt64());return!0},function(a,b,c){a.writeInt64(c,p(b,c))}),zu=Db(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readInt32());return!0},function(a,b,c){a.writeInt32(c,p(b,c))}),Fjb=Db(function(a,b,c){if(0!==a.nextWireType_&&2!==a.nextWireType_)return!1;b=ob(b,c);if(2==a.nextWireType_){c=uu.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,ob(b,c))}),Gjb=Db(function(a,b,c){if(1!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint64());return!0},function(a,b,c){a.writeFixed64(c,p(b,c))}),Hjb=Db(function(a,b,c){if(5!==a.nextWireType_)return!1;l(b,c,a.decoder_.readUint32());return!0},function(a,b,c){a.writeFixed32(c,p(b,c))}),Ijb=Db(function(a,b,c){if(0!==a.nextWireType_)return!1;l(b,c,a.readBool());return!0},
function(a,b,c){a.writeBool(c,p(b,c))}),Jjb=Db(function(a,b,c,d,e){if(2!==a.nextWireType_)return!1;b=pu(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("G`"+d+"`"+(d-h));a.decoder_.cursor_=f;a.decoder_.setEnd(c);return!0},function(a,b,c,d,e){a.writeMessage(c,m(b,d,c),e)});
var fba=function(a,b,c,d){var e=gba,f=hba;this.fieldIndex=a;this.fieldName=b;this.ctor=c;this.toObjectFn=d;this.isRepeated=0;this.getExtensionFn=e;this.setExtensionFn=f};
var iba=function(a){return a};
var Z=function(){yu.apply(this,arguments)};V(Z,yu);
Z.prototype.toMutable=function(a){aaa(a);if(cb(this)){a={copyRepeatedFields:!0};var b=cb(this);if(b&&!a.copyRepeatedFields)throw Error("R");var c=new this.constructor;this.internalUnknownFields_&&(c.internalUnknownFields_=this.internalUnknownFields_.slice());for(var d=this.toArrayInternal(),e=0;e<d.length;e++){var f=d[e];if(e===d.length-1&&vaa(f))for(k in f){var h=+k;Number.isNaN(h)?zjb(c)[k]=f[k]:jba(this,c,h,f[k],b,a)}else jba(this,c,e-this.arrayIndexOffset,f,b,a)}var k=c}else k=this;return k};
if(xjb){var Kjb={};Object.defineProperties(Z,(Kjb[Symbol.hasInstance]=yaa(Object[Symbol.hasInstance]),Kjb))}
;var Au=function(a){Z.call(this,a)};V(Au,Z);Au.prototype.getResourceKey=function(){return p(this,2)};Au.prototype.toObject=function(){return Ljb(void 0,this)};var Ljb=function(a,b){if(null!=b){var c={resourceKey:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Bu=function(a){Z.call(this,a)};V(Bu,Z);Bu.prototype.getCustomerId=function(){return p(this,1)};Bu.prototype.toObject=function(){return Mjb(void 0,this)};var Mjb=function(a,b){if(null!=b){var c={customerId:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Njb=function(a){Z.call(this,a)};V(Njb,Z);var Ojb=function(a){Z.call(this,a)};V(Ojb,Z);var Cu=function(a){Z.call(this,a)};V(Cu,Z);Cu.prototype.getCustomerId=function(){return m(this,Bu,1)};var Pjb=[1,2];Njb.prototype.toObject=function(){return Qjb(void 0,this)};var Qjb=function(a,b){if(null!=b){var c={consumerInfo:Rjb(a,Al(b,Ojb,1,Pjb)),customerInfo:Sjb(a,Al(b,Cu,2,Pjb))};a&&(c.$jspbMessageInstance=b);return c}};Ojb.prototype.toObject=function(){return Rjb(void 0,this)};
var Rjb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};Cu.prototype.toObject=function(){return Sjb(void 0,this)};var Sjb=function(a,b){if(null!=b){var c={customerId:Mjb(a,b.getCustomerId())};a&&(c.$jspbMessageInstance=b);return c}};
var Du=function(a){Z.call(this,a)};V(Du,Z);Du.prototype.getIndex=function(){return fj(this,1)};Du.prototype.setIndex=function(a){Vk(this,1,a)};Du.prototype.toObject=function(){return Tjb(void 0,this)};var Tjb=function(a,b){if(null!=b){var c={index:fj(b,1),dataSourceIndex:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Eu=function(a){Z.call(this,a)};V(Eu,Z);g=Eu.prototype;g.getId=function(){return W(this,1)};g.setId=function(a){return xl(this,1,a)};g.getSourceId=function(){return X(this,2,0)};g.setSourceId=function(a){return ul(this,2,a)};g.toObject=function(){return Ujb(void 0,this)};var Ujb=function(a,b){if(null!=b){var c={id:W(b,1),sourceId:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Fu=function(a){Z.call(this,a)};V(Fu,Z);g=Fu.prototype;g.getUrl=function(){return W(this,1)};g.setUrl=function(a){return xl(this,1,a)};g.getHeight=function(){return fj(this,2)};g.setHeight=function(a){return Vk(this,2,a)};g.getWidth=function(){return fj(this,3)};g.setWidth=function(a){return Vk(this,3,a)};g.toObject=function(){return Gu(void 0,this)};var Gu=function(a,b){if(null!=b){var c={url:W(b,1),height:fj(b,2),width:fj(b,3),rotation:fj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var km=function(a){Z.call(this,a)};V(km,Z);g=km.prototype;g.getSeconds=function(){return fj(this,1)};g.setSeconds=function(a){return Vk(this,1,a)};g.getNanos=function(){return fj(this,2)};g.setNanos=function(a){Vk(this,2,a)};g.toObject=function(){return Hu(void 0,this)};var Hu=function(a,b){if(null!=b){var c={seconds:fj(b,1),nanos:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Iu=function(a){Z.call(this,a)};V(Iu,Z);Iu.prototype.getDuration=function(){return m(this,km,2)};Iu.prototype.toObject=function(){return Vjb(void 0,this)};var Vjb=function(a,b){if(null!=b){var c={aspectRatio:Bl(b,1),duration:Hu(a,b.getDuration())};a&&(c.$jspbMessageInstance=b);return c}};
var Wjb=function(a){Z.call(this,a)};V(Wjb,Z);Wjb.prototype.toObject=function(){return Xjb(void 0,this)};var Xjb=function(a,b){if(null!=b){var c={left:Bl(b,1),top:Bl(b,2),right:Bl(b,3),bottom:Bl(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var Ju=function(a){Z.call(this,a)};V(Ju,Z);Ju.prototype.getRotate=function(){return fj(this,2)};Ju.prototype.setRotate=function(a){return Vk(this,2,a)};Ju.prototype.toObject=function(){return Yjb(void 0,this)};var Yjb=function(a,b){if(null!=b){var c={cropCoordinates:Xjb(a,m(b,Wjb,1)),rotate:fj(b,2),caption:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var Zjb=function(a){Z.call(this,a)};V(Zjb,Z);g=Zjb.prototype;g.getEmail=function(){return W(this,1)};g.setEmail=function(a){return xl(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return xl(this,2,a)};g.getDisplayName=function(){return W(this,3)};g.setDisplayName=function(a){return xl(this,3,a)};g.toObject=function(){return $jb(void 0,this)};
var $jb=function(a,b){if(null!=b){var c={email:W(b,1),name:W(b,2),displayName:W(b,3),templateProfilePhotoUrl:W(b,4),profilePhoto:Gu(a,m(b,Fu,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Ku=function(a){Z.call(this,a)};V(Ku,Z);Ku.prototype.getBackgroundColor=function(){return W(this,2)};Ku.prototype.setBackgroundColor=function(a){xl(this,2,a)};Ku.prototype.setSelected=function(a){return fo(this,5,a)};Ku.prototype.toObject=function(){return akb(void 0,this)};var akb=function(a,b){if(null!=b){var c={accessRole:X(b,1,0),backgroundColor:W(b,2),foregroundColor:W(b,3),hidden:bj(b,4),selected:bj(b,5),profileMetadata:$jb(a,m(b,Zjb,6))};a&&(c.$jspbMessageInstance=b);return c}};
var bkb=function(a){Z.call(this,a)};V(bkb,Z);bkb.prototype.toObject=function(){return ckb(void 0,this)};var ckb=function(a,b){if(null!=b){var c={rawBytes:Lb(xm(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Lu=function(a){Z.call(this,a,-1,dkb)};V(Lu,Z);var dkb=[1,2];Lu.prototype.toObject=function(){return ekb(void 0,this)};var ekb=function(a,b){if(null!=b){var c={emailList:n(ob(b,1)),groupIdList:n(ob(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Mu=function(a){Z.call(this,a)};V(Mu,Z);Mu.prototype.getCategory=function(){return X(this,1,0)};Mu.prototype.setCategory=function(a){ul(this,1,a)};Mu.prototype.toObject=function(){return fkb(void 0,this)};var fkb=function(a,b){if(null!=b){var c={category:X(b,1,0),categoryLabel:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var tj=function(a){Z.call(this,a)};V(tj,Z);g=tj.prototype;g.getSeconds=function(){return fj(this,1)};g.setSeconds=function(a){return Vk(this,1,a)};g.getNanos=function(){return fj(this,2)};g.setNanos=function(a){Vk(this,2,a)};g.toDate=function(){var a=this.getSeconds(),b=this.getNanos();return new Date(1E3*a+b/1E6)};g.toObject=function(){return Nu(void 0,this)};var Nu=function(a,b){if(null!=b){var c={seconds:fj(b,1),nanos:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Ou=function(a){Z.call(this,a)};V(Ou,Z);Ou.prototype.getTotalItems=function(){return fj(this,1)};Ou.prototype.setTotalItems=function(a){return Vk(this,1,a)};Ou.prototype.toObject=function(){return gkb(void 0,this)};var gkb=function(a,b){if(null!=b){var c={totalItems:fj(b,1),startTimestamp:Nu(a,m(b,tj,2)),endTimestamp:Nu(a,m(b,tj,3))};a&&(c.$jspbMessageInstance=b);return c}};
var hkb=function(a){Z.call(this,a)};V(hkb,Z);hkb.prototype.toObject=function(){return ikb(void 0,this)};var ikb=function(a,b){if(null!=b){var c={albumMetadata:gkb(a,m(b,Ou,1)),dedupKey:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var jkb=function(a){Z.call(this,a)};V(jkb,Z);jkb.prototype.toObject=function(){return kkb(void 0,this)};var kkb=function(a,b){if(null!=b){var c={dataUrl:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Pu=function(a){Z.call(this,a)};V(Pu,Z);Pu.prototype.getCategory=function(){return W(this,1)};Pu.prototype.setCategory=function(a){xl(this,1,a)};Pu.prototype.toObject=function(){return lkb(void 0,this)};var lkb=function(a,b){if(null!=b){var c={category:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var Qu=function(a){Z.call(this,a)};V(Qu,Z);g=Qu.prototype;g.getWidth=function(){return fj(this,1)};g.setWidth=function(a){return Vk(this,1,a)};g.getHeight=function(){return fj(this,2)};g.setHeight=function(a){return Vk(this,2,a)};g.toObject=function(){return mkb(void 0,this)};var mkb=function(a,b){if(null!=b){var c={width:fj(b,1),height:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var nkb=function(a){Z.call(this,a)};V(nkb,Z);nkb.prototype.toObject=function(){return okb(void 0,this)};var okb=function(a,b){if(null!=b){var c={imageSize:mkb(a,m(b,Qu,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Ru=function(a){Z.call(this,a)};V(Ru,Z);Ru.prototype.toObject=function(){return pkb(void 0,this)};var pkb=function(a,b){if(null!=b){var c={originalImage:Gu(a,m(b,Fu,1)),referrerUrl:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Su=function(a){Z.call(this,a)};V(Su,Z);Su.prototype.getVideoMetadata=function(){return m(this,Iu,1)};Su.prototype.toObject=function(){return qkb(void 0,this)};var qkb=function(a,b){if(null!=b){var c={videoMetadata:Vjb(a,b.getVideoMetadata()),channelName:W(b,2),channelId:W(b,3),viewCount:fj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var rkb=function(a){Z.call(this,a)};V(rkb,Z);rkb.prototype.toObject=function(){return skb(void 0,this)};var skb=function(a,b){if(null!=b){var c={youtubeVideoMetadata:qkb(a,m(b,Su,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Tu=function(a){Z.call(this,a)};V(Tu,Z);Tu.prototype.getVideoMetadata=function(){return m(this,Iu,3)};Tu.prototype.getResourceKey=function(){return W(this,11)};var Uu=function(a){Z.call(this,a,-1,tkb)};V(Uu,Z);g=Uu.prototype;g.getId=function(){return m(this,Eu,1)};g.setId=function(a){return Gb(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return xl(this,2,a)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return xl(this,3,a)};
g.getParentId=function(){return W(this,4)};g.setParentId=function(a){xl(this,4,a)};g.getType=function(){return X(this,6,0)};g.setType=function(a){return ul(this,6,a)};g.getMimeType=function(){return W(this,7)};g.setMimeType=function(a){xl(this,7,a)};g.getUrl=function(){return W(this,8)};g.setUrl=function(a){return xl(this,8,a)};g.getIconUrl=function(){return W(this,11)};var Vu=function(a){return xb(a,Fu,10)};Uu.prototype.getLastModifiedTimestamp=function(){return m(this,tj,12)};
var ukb=function(a){Z.call(this,a)};V(ukb,Z);Tu.prototype.toObject=function(){return vkb(void 0,this)};var vkb=function(a,b){if(null!=b){var c={shared:bj(b,1),hasPrimarySyncParent:bj(b,2),videoMetadata:Vjb(a,b.getVideoMetadata()),recencyTimestamp:Nu(a,m(b,tj,4)),recencyReason:fj(b,5),sharedDriveId:W(b,6),hasOwnPermissions:bj(b,7),shortcutDetails:wkb(a,m(b,ukb,8)),copyable:bj(b,9),downloadUrl:W(b,10),resourceKey:W(b,11),isRecentUpload:bj(b,12)};a&&(c.$jspbMessageInstance=b);return c}},tkb=[5,10,22];
Uu.prototype.toObject=function(){return Wu(void 0,this)};
var Wu=function(a,b){if(null!=b){var c={id:Ujb(a,b.getId()),name:W(b,2),description:W(b,3),parentId:W(b,4),allParentIdList:n(ob(b,5)),type:X(b,6,0),mimeType:W(b,7),url:W(b,8),templateThumbUrl:W(b,9),iconUrl:W(b,11),embedUrl:W(b,13),previewUrl:W(b,20),thumbnailList:Hb(Vu(b),Gu,a),internalThumbnailList:Hb(xb(b,Fu,22),Gu,a),lastModifiedTimestamp:Nu(a,b.getLastModifiedTimestamp()),creationTimestampMs:Nu(a,m(b,tj,16)),calendarMetadata:akb(a,m(b,Ku,14)),webMetadata:pkb(a,m(b,Ru,15)),photosMetadata:ikb(a,
m(b,hkb,18)),themesMetadata:lkb(a,m(b,Pu,19)),driveMetadata:vkb(a,m(b,Tu,21)),youtubeMetadata:skb(a,m(b,rkb,24)),cameraMetadata:ckb(a,m(b,bkb,26)),contactsMetadata:ekb(a,m(b,Lu,27)),partyMetadata:fkb(a,m(b,Mu,28)),urlMetadata:okb(a,m(b,nkb,29)),uploadMetadata:kkb(a,m(b,jkb,30)),cropPhotoMetadata:Yjb(a,m(b,Ju,32)),bucketId:W(b,17),sizeBytes:fj(b,23),itemDiagnosticsInfo:Tjb(a,m(b,Du,25)),isAttachment:bj(b,31)};a&&(c.$jspbMessageInstance=b);return c}};
ukb.prototype.toObject=function(){return wkb(void 0,this)};var wkb=function(a,b){if(null!=b){var c={targetId:W(b,1),targetMimeType:W(b,2),targetItem:Wu(a,m(b,Uu,3)),targetLookupStatus:X(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Xu=function(a){Z.call(this,a)};V(Xu,Z);Xu.prototype.setGmailDelegatorId=function(a){return xl(this,1,a)};Xu.prototype.toObject=function(){return xkb(this)};var xkb=function(a){if(null!=a)return{gmailDelegatorId:W(a,1)}};
var Yu=function(a){Z.call(this,a)};V(Yu,Z);g=Yu.prototype;g.getOrigin=function(){return W(this,1)};g.setOrigin=function(a){return xl(this,1,a)};g.getInstanceId=function(){return W(this,2)};g.setInstanceId=function(a){return xl(this,2,a)};g.getWidgetType=function(){return X(this,3,0)};g.getContainerType=function(){return X(this,4,0)};g.toObject=function(){return ykb(this)};
var ykb=function(a){if(null!=a)return{origin:W(a,1),instanceId:W(a,2),widgetType:X(a,3,0),containerType:X(a,4,0),iframeLoadStartTime:Nu(void 0,m(a,tj,5)),gapiLoadStartTimestamp:Nu(void 0,m(a,tj,6)),gapiLoadEndTimestamp:Nu(void 0,m(a,tj,7))}};
var Zu=function(a){Z.call(this,a)};V(Zu,Z);g=Zu.prototype;g.getAuthUser=function(){return fj(this,1)};g.setAuthUser=function(a){return Vk(this,1,a)};g.getEmail=function(){return W(this,2)};g.setEmail=function(a){return xl(this,2,a)};g.toObject=function(){return zkb(this)};var zkb=function(a){if(null!=a)return{authUser:fj(a,1),email:W(a,2),gaiaId:W(a,3)}};
var Akb=function(a){Z.call(this,a)};V(Akb,Z);Akb.prototype.toObject=function(){return Bkb(this)};var Bkb=function(a){if(null!=a)return{top:Bl(a,1),right:Bl(a,2),bottom:Bl(a,3),left:Bl(a,4)}};
var Ckb=function(a){Z.call(this,a)};V(Ckb,Z);Ckb.prototype.toObject=function(){return Dkb(this)};var Dkb=function(a){if(null!=a)return{contentPadding:Bkb(m(a,Akb,1)),gridElementHeight:Bl(a,2)}};
var Ekb=function(a){Z.call(this,a)};V(Ekb,Z);Ekb.prototype.toObject=function(){return Fkb(this)};var Fkb=function(a){if(null!=a)return{chromeMode:X(a,1,0),modeSettings:Dkb(m(a,Ckb,4)),deprecatedWidgetType:X(a,2,0),deprecatedContainerType:X(a,3,0)}};
var Gkb=function(a){Z.call(this,a)};V(Gkb,Z);Gkb.prototype.toObject=function(){return Hkb(this)};var Hkb=function(a){if(null!=a)return{jsDebug:W(a,1),forceDisableDriveIvdp:bj(a,2),enableLiveImpressions:bj(a,3)}};
var $u=function(a){Z.call(this,a)};V($u,Z);g=$u.prototype;g.getWidth=function(){return fj(this,1)};g.setWidth=function(a){return Vk(this,1,a)};g.getHeight=function(){return fj(this,2)};g.setHeight=function(a){return Vk(this,2,a)};g.toObject=function(){return Ikb(this)};var Ikb=function(a){if(null!=a)return{width:fj(a,1),height:fj(a,2)}};
var av=function(a){Z.call(this,a,-1,Jkb)};V(av,Z);var Kkb=function(a,b){return ll(a,1,b)},bv=function(a,b){tb(a,1,b)};av.prototype.getMaxSize=function(){return m(this,Qu,5)};av.prototype.setMaxSize=function(a){Gb(this,5,a)};var Jkb=[1,2,3,4];av.prototype.toObject=function(){return Lkb(this)};var Lkb=function(a){if(null!=a)return{typeList:n(ob(a,1)),mimetypeList:n(ob(a,2)),excludeTypeList:n(ob(a,3)),excludeMimetypeList:n(ob(a,4)),maxSize:mkb(void 0,a.getMaxSize()),maxSizeBytes:fj(a,6)}};
var Mkb=function(a){Z.call(this,a)};V(Mkb,Z);Mkb.prototype.toObject=function(){return Nkb(this)};var Nkb=function(a){if(null!=a)return{noDataFoundLabel:W(a,1),noDataFoundDescription:W(a,2)}};
var cv=function(a){Z.call(this,a)};V(cv,Z);cv.prototype.toObject=function(){return Okb(void 0,this)};var Okb=function(a,b){if(null!=b){var c={copyToTemporaryAlbum:bj(b,1),hasCaption:bj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Pkb=function(a){Z.call(this,a)};V(Pkb,Z);Pkb.prototype.toObject=function(){return Qkb(void 0,this)};var Qkb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var Rkb=function(a){Z.call(this,a)};V(Rkb,Z);Rkb.prototype.toObject=function(){return Skb(void 0,this)};var Skb=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};
var dv=function(a){Z.call(this,a)};V(dv,Z);dv.prototype.getId=function(){return X(this,1,0)};dv.prototype.setId=function(a){return ul(this,1,a)};var ev=[2,3,4];dv.prototype.toObject=function(){return Tkb(void 0,this)};var Tkb=function(a,b){if(null!=b){var c={id:X(b,1,0),profilePhotoOptions:Skb(a,Al(b,Rkb,2,ev)),cropPhotoOptions:Okb(a,Al(b,cv,3,ev)),photoSharingOptions:Qkb(a,Al(b,Pkb,4,ev))};a&&(c.$jspbMessageInstance=b);return c}};
var Ukb=function(a){Z.call(this,a)};V(Ukb,Z);Ukb.prototype.toObject=function(){return Vkb(this)};var Vkb=function(a){if(null!=a)return{previewMode:X(a,1,0)}};
var fv=function(a){Z.call(this,a)};V(fv,Z);fv.prototype.toObject=function(){return Wkb(this)};var Wkb=function(a){if(null!=a)return{selectionMode:X(a,1,0),allowCollectionSelection:bj(a,2)}};
var gv=function(a){Z.call(this,a,-1,Xkb)};V(gv,Z);g=gv.prototype;g.setHost=function(a){return ul(this,23,a)};g.getItemType=function(){return m(this,av,2)};g.setItemType=function(a){Gb(this,2,a)};g.getAuthUser=function(){return m(this,Zu,6)};g.setAuthUser=function(a){return Gb(this,6,a)};g.getBaseUrl=function(){return W(this,8)};var Ykb=function(a,b){return xl(a,8,b)};g=gv.prototype;g.getTitle=function(){return W(this,9)};g.setTitle=function(a){return xl(this,9,a)};
g.getLocale=function(){return W(this,10)};g.setLocale=function(a){return xl(this,10,a)};g.setSecretToken=function(a){return xl(this,12,a)};var Zkb=function(a){var b=new Yu;var c=b.setOrigin,d=window.location.origin;d||(d=hv(iv(new Xo,window.location.protocol),window.location.host).toString());b=c.call(b,d);b=ul(b,3,2);return Gb(a,20,b)};g=gv.prototype;g.addPostProcessor=function(a){ru(this,28,dv,a)};g.setBuildLabel=function(a){xl(this,31,a)};g.setMinSize=function(a){Gb(this,32,a)};
g.getMaxSize=function(){return m(this,$u,33)};g.setMaxSize=function(a){Gb(this,33,a)};g.setInitialView=function(a){ul(this,35,a)};var Xkb=[18,28];gv.prototype.toObject=function(){return $kb(this)};
var $kb=function(a){if(null!=a)return{host:X(a,23,0),hostUsecase:W(a,24),itemType:Lkb(a.getItemType()),selectionStrategy:Wkb(m(a,fv,3)),maxItemsToSelect:fj(a,5),previewStrategy:Vkb(m(a,Ukb,21)),authUser:zkb(a.getAuthUser()),oauth:W(a,7),baseUrl:W(a,8),topOrigin:W(a,27),title:W(a,9),locale:W(a,10),containerSpec:Fkb(m(a,Ekb,11)),secretToken:W(a,12),debugSpec:Hkb(m(a,Gkb,14)),clientEnabledExperimentsList:n(ob(a,18)),selectButtonLabel:W(a,19),additionalInfo:ykb(m(a,Yu,20)),messageTextOverrides:Nkb(m(a,
Mkb,22)),enableDragDrop:bj(a,25),preloaded:bj(a,26),postProcessorList:Hb(xb(a,dv,28),Tkb),accountDelegation:xkb(m(a,Xu,29)),initialViewLayout:X(a,30,0),buildLabel:W(a,31),minSize:Ikb(m(a,$u,32)),maxSize:Ikb(a.getMaxSize()),enableInsertAttachment:bj(a,34),initialView:X(a,35,0),deprecatedIsMultiselectAllowed:bj(a,4),deprecatedOrigin:W(a,13),deprecatedInstanceId:W(a,15),deprecatedEnablePreview:bj(a,17),deprecatedUseRefreshedUi:bj(a,16),deprecatedRpcTargetId:W(a,36)}};
var jv=function(a){Z.call(this,a)};V(jv,Z);jv.prototype.getEventType=function(){return X(this,1,0)};jv.prototype.setEventType=function(a){return ul(this,1,a)};jv.prototype.toObject=function(){return alb(this)};var alb=function(a){if(null!=a)return{eventType:X(a,1,0)}};
var kv=function(a){Z.call(this,a,-1,blb)};V(kv,Z);kv.prototype.getItemList=function(){return xb(this,Uu,1)};kv.prototype.setItemList=function(a){Fb(this,1,a)};kv.prototype.addItem=function(a,b){return ru(this,1,Uu,a,b)};var blb=[1];kv.prototype.toObject=function(){return clb(this)};var clb=function(a){if(null!=a)return{itemList:Hb(a.getItemList(),Wu),currentItem:Wu(void 0,m(a,Uu,2)),currentItemIndex:fj(a,3)}};
var lv=function(a){Z.call(this,a,-1,dlb)};V(lv,Z);g=lv.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return ul(this,1,a)};g.getItemList=function(){return xb(this,Uu,2)};g.setItemList=function(a){Fb(this,2,a)};g.addItem=function(a,b){return ru(this,2,Uu,a,b)};g.getErrorCode=function(){return X(this,4,0)};var dlb=[2];lv.prototype.toObject=function(){return elb(this)};
var elb=function(a){if(null!=a)return{status:X(a,1,0),itemList:Hb(a.getItemList(),Wu),action:X(a,3,0),errorCode:X(a,4,0)}};
var mv=function(a){Z.call(this,a)};V(mv,Z);mv.prototype.getQuery=function(){return W(this,1)};mv.prototype.setQuery=function(a){return xl(this,1,a)};mv.prototype.toObject=function(){return flb(void 0,this)};var flb=function(a,b){if(null!=b){var c={query:W(b,1),minAccessRole:X(b,2,0),showHidden:bj(b,3),fetchProfile:bj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var nv=function(a){Z.call(this,a)};V(nv,Z);nv.prototype.getUploadUrl=function(){return W(this,1)};nv.prototype.toObject=function(){return glb(void 0,this)};var glb=function(a,b){if(null!=b){var c={uploadUrl:W(b,1),metadataMap:Kb(Zi(b,2),a),agentId:X(b,3,0),configurationId:X(b,4,0),sendDataUrl:bj(b,5)};a&&(c.$jspbMessageInstance=b);return c}};
var ov=function(a){Z.call(this,a)};V(ov,Z);ov.prototype.getUploadSourceOptions=function(){return m(this,nv,2)};ov.prototype.setUploadSourceOptions=function(a){return Gb(this,2,a)};ov.prototype.toObject=function(){return hlb(void 0,this)};var hlb=function(a,b){if(null!=b){var c={uploadMode:X(b,1,0),uploadSourceOptions:glb(a,b.getUploadSourceOptions())};a&&(c.$jspbMessageInstance=b);return c}};
var pv=function(a){Z.call(this,a)};V(pv,Z);pv.prototype.getQuery=function(){return W(this,1)};pv.prototype.setQuery=function(a){return xl(this,1,a)};pv.prototype.toObject=function(){return ilb(void 0,this)};var ilb=function(a,b){if(null!=b){var c={query:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var qv=function(a){Z.call(this,a,-1,jlb)};V(qv,Z);var jlb=[1,3];qv.prototype.toObject=function(){return klb(void 0,this)};var klb=function(a,b){if(null!=b){var c={parentList:n(ob(b,1)),embeddingParent:W(b,2),fileExtensionsList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var tp=function(a){Z.call(this,a)};V(tp,Z);g=tp.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return ul(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return ul(this,2,a)};g.toObject=function(){return llb(void 0,this)};var llb=function(a,b){if(null!=b){var c={type:X(b,1,0),direction:X(b,2,0),foldersFirst:bj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var sp=function(a){Z.call(this,a)};V(sp,Z);g=sp.prototype;g.getParentId=function(){return W(this,1)};g.setParentId=function(a){xl(this,1,a)};g.getQuery=function(){return W(this,2)};g.setQuery=function(a){return xl(this,2,a)};g.getStarred=function(){return bj(this,7)};g.setStarred=function(a){fo(this,7,a)};g.setViewMode=function(a){ul(this,8,a)};g.getLastModified=function(){return m(this,tj,9)};g.toObject=function(){return mlb(void 0,this)};
var mlb=function(a,b){if(null!=b){var c={parentId:W(b,1),query:W(b,2),sortBy:llb(a,m(b,tp,3)),ownedBy:X(b,4,0),sharedWithMe:bj(b,5),starred:bj(b,7),viewMode:X(b,8,0),lastModified:Nu(a,b.getLastModified()),disableInstantUpdates:bj(b,10),inSharedDrive:bj(b,11),inComputers:bj(b,12),permissions:X(b,13,0),itemSuggest:bj(b,14),driveUploadOptions:klb(a,m(b,qv,15)),encryptedOnlyMode:bj(b,16),includeEncryptedItems:bj(b,17),itemSuggestScenarioType:X(b,18,0)};a&&(c.$jspbMessageInstance=b);return c}};
var rv=function(a){Z.call(this,a)};V(rv,Z);rv.prototype.getCategory=function(){return X(this,2,0)};rv.prototype.setCategory=function(a){ul(this,2,a)};rv.prototype.toObject=function(){return nlb(void 0,this)};var nlb=function(a,b){if(null!=b){var c={category:X(b,2,0),deprecatedCategory:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var up=function(a){Z.call(this,a,-1,olb)};V(up,Z);up.prototype.setViewMode=function(a){ul(this,3,a)};var olb=[8];up.prototype.toObject=function(){return plb(void 0,this)};var plb=function(a,b){if(null!=b){var c={parentAlbumKey:W(b,1),bucketBy:X(b,2,0),viewMode:X(b,3,0),queryText:W(b,4),includePhotos:bj(b,5),includeVideos:bj(b,6),viewType:X(b,7,0),associationOriginList:n(ob(b,8))};a&&(c.$jspbMessageInstance=b);return c}};
var qlb=function(a){Z.call(this,a)};V(qlb,Z);qlb.prototype.toObject=function(){return rlb(void 0,this)};var rlb=function(a,b){if(null!=b){var c={themeSourceId:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var sv=function(a){Z.call(this,a)};V(sv,Z);sv.prototype.setMode=function(a){return ul(this,1,a)};sv.prototype.toObject=function(){return slb(void 0,this)};var slb=function(a,b){if(null!=b){var c={mode:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var tv=function(a){Z.call(this,a)};V(tv,Z);tv.prototype.getQuery=function(){return W(this,1)};tv.prototype.setQuery=function(a){return xl(this,1,a)};tv.prototype.setViewMode=function(a){ul(this,4,a)};tv.prototype.toObject=function(){return tlb(void 0,this)};var tlb=function(a,b){if(null!=b){var c={query:W(b,1),usageRights:X(b,2,0),disableSafeSearchMode:bj(b,3),viewMode:X(b,4,0)};a&&(c.$jspbMessageInstance=b);return c}};
var uv=function(a){Z.call(this,a)};V(uv,Z);uv.prototype.setViewMode=function(a){ul(this,1,a)};uv.prototype.getQuery=function(){return W(this,2)};uv.prototype.setQuery=function(a){return xl(this,2,a)};uv.prototype.toObject=function(){return ulb(void 0,this)};var ulb=function(a,b){if(null!=b){var c={viewMode:X(b,1,0),query:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var rp=function(a){Z.call(this,a,-1,vlb)};V(rp,Z);g=rp.prototype;g.getSourceId=function(){return X(this,1,0)};g.setSourceId=function(a){return ul(this,1,a)};g.getName=function(){return W(this,8)};g.setName=function(a){return xl(this,8,a)};g.getUploadSourceOptions=function(){return m(this,nv,10)};g.setUploadSourceOptions=function(a){return Gb(this,10,a)};var vlb=[14];rp.prototype.toObject=function(){return vv(void 0,this)};
var vv=function(a,b){if(null!=b){var c={sourceId:X(b,1,0),name:W(b,8),driveSourceOptions:mlb(a,m(b,sp,3)),calendarSourceOptions:flb(a,m(b,mv,4)),webSourceOptions:tlb(a,m(b,tv,5)),photosSourceOptions:plb(a,m(b,up,6)),themesSourceOptions:rlb(a,m(b,qlb,7)),youtubeSourceOptions:ulb(a,m(b,uv,9)),uploadSourceOptions:glb(a,b.getUploadSourceOptions()),contactsSourceOptions:ilb(a,m(b,pv,12)),partySourceOptions:nlb(a,m(b,rv,13)),urlSourceOptions:slb(a,m(b,sv,15)),cameraSourceOptions:hlb(a,m(b,ov,16)),childSourceList:Hb(xb(b,
rp,14),vv,a)};a&&(c.$jspbMessageInstance=b);return c}};
var qp=function(a){Z.call(this,a,-1,wlb)};V(qp,Z);qp.prototype.getSourceList=function(){return xb(this,rp,1)};qp.prototype.setSourceList=function(a){return Fb(this,1,a)};qp.prototype.addSource=function(a){ru(this,1,rp,a)};var wlb=[1];qp.prototype.toObject=function(){var a=null!=this?{sourceList:Hb(this.getSourceList(),vv)}:void 0;return a};
var wv=function(a){Z.call(this,a,-1,xlb)};V(wv,Z);g=wv.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return ul(this,1,a)};g.getSource=function(){return m(this,rp,2)};g.setSource=function(a){return Gb(this,2,a)};g.hasSource=function(){return mj(this,2)};g.setVisible=function(a){return fo(this,5,a)};g.getItemList=function(){return xb(this,Uu,7)};g.setItemList=function(a){Fb(this,7,a)};g.addItem=function(a,b){return ru(this,7,Uu,a,b)};var xlb=[3,7];
wv.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),source:vv(void 0,this.getSource()),itemIdList:Hb(xb(this,Eu,3),Ujb),correlationId:W(this,4),visible:bj(this,5),cssVisibilityChanged:bj(this,6),itemList:Hb(this.getItemList(),Wu)}:void 0;return a};
var xv=function(a){Z.call(this,a,-1,ylb)};V(xv,Z);g=xv.prototype;g.getCommand=function(){return X(this,1,0)};g.setCommand=function(a){return ul(this,1,a)};g.getItemList=function(){return xb(this,Uu,4)};g.setItemList=function(a){Fb(this,4,a)};g.addItem=function(a,b){return ru(this,4,Uu,a,b)};var ylb=[4];
xv.prototype.toObject=function(){var a=null!=this?{command:X(this,1,0),pickerResult:elb(m(this,lv,2)),correlationId:W(this,3),itemList:Hb(this.getItemList(),Wu),previewData:clb(m(this,kv,5)),latencyData:alb(m(this,jv,6))}:void 0;return a};
var yv=function(a){Z.call(this,a,-1,zlb)};V(yv,Z);g=yv.prototype;g.getConfig=function(){return m(this,gv,1)};g.setConfig=function(a){return Gb(this,1,a)};g.getSourceList=function(){return xb(this,rp,2)};g.setSourceList=function(a){return Fb(this,2,a)};g.addSource=function(a){ru(this,2,rp,a)};var zlb=[2];yv.prototype.toObject=function(){var a=null!=this?{config:$kb(this.getConfig()),sourceList:Hb(this.getSourceList(),vv)}:void 0;return a};yv.messageId="ireq";
var Uk=function(a){Z.call(this,a)};V(Uk,Z);g=Uk.prototype;g.getYear=function(){return fj(this,1)};g.setYear=function(a){return Vk(this,1,a)};g.getMonth=function(){return fj(this,2)};g.setMonth=function(a){return Vk(this,2,a)};g.getDay=function(){return fj(this,3)};g.toObject=function(){return zv(void 0,this)};var zv=function(a,b){if(null!=b){var c={year:fj(b,1),month:fj(b,2),day:fj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var Av=function(a){Z.call(this,a)};V(Av,Z);Av.prototype.getGroupId=function(){return W(this,1)};Av.prototype.setGroupId=function(a){xl(this,1,a)};var Bv=function(a){Z.call(this,a)};V(Bv,Z);Bv.prototype.getResourceKey=function(){return m(this,Au,2)};Av.prototype.toObject=function(){return Alb(void 0,this)};var Alb=function(a,b){if(null!=b){var c={groupId:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};Bv.prototype.toObject=function(){return Blb(void 0,this)};
var Blb=function(a,b){if(null!=b){var c={documentId:W(b,1),resourceKey:Ljb(a,b.getResourceKey())};a&&(c.$jspbMessageInstance=b);return c}};
/*

 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
*/
(function(a){function b(va){q&&q.mark&&q.mark(va)}function c(va,Ba){q&&q.measure&&q.measure(va,Ba)}function d(va){return u+va}function e(va){Fa||a[Y]&&(Fa=a[Y].resolve(0));if(Fa){var Ba=Fa[ja];Ba||(Ba=Fa.then);Ba.call(Fa,va)}else a[T](va,0)}function f(va){0===Mb&&0===ha.length&&e(h);va&&ha.push(va)}function h(){if(!ra){for(ra=!0;ha.length;){var va=ha;ha=[];for(var Ba=0;Ba<va.length;Ba++){var Ga=va[Ba];try{Ga.zone.runTask(Ga,null,null)}catch(Xa){La.onUnhandledError(Xa)}}}La.microtaskDrainDone();ra=
!1}}function k(){}var q=a.performance;b("Zone");var u=a.__Zone_symbol_prefix||"__zone_symbol__",x=!0===a[d("forceDuplicateZoneCheck")];if(a.Zone){if(x||"function"!==typeof a.Zone.__symbol__)throw Error("V");return a.Zone}var E=function(va,Ba){this._parent=va;this._name=Ba?Ba.name||"unnamed":"<root>";this._properties=Ba&&Ba.properties||{};this._zoneDelegate=new N(this,this._parent&&this._parent._zoneDelegate,Ba)};E.assertZonePatched=function(){if(a.Promise!==Ca.ZoneAwarePromise)throw Error("W");};
E.__load_patch=function(va,Ba,Ga){Ga=void 0===Ga?!1:Ga;if(Ca.hasOwnProperty(va)){if(!Ga&&x)throw Error("X`"+va);}else a["__Zone_disable_"+va]||(Ga="Zone:"+va,b(Ga),Ca[va]=Ba(a,E,La),c(Ga,Ga))};E.prototype.get=function(va){var Ba=this.getZoneWith(va);if(Ba)return Ba._properties[va]};E.prototype.getZoneWith=function(va){for(var Ba=this;Ba;){if(Ba._properties.hasOwnProperty(va))return Ba;Ba=Ba._parent}return null};E.prototype.fork=function(va){if(!va)throw Error("Y");return this._zoneDelegate.fork(this,
va)};E.prototype.wrap=function(va,Ba){if("function"!==typeof va)throw Error("Z`"+va);var Ga=this._zoneDelegate.intercept(this,va,Ba),Xa=this;return function(){return Xa.runGuarded(Ga,this,arguments,Ba)}};E.prototype.run=function(va,Ba,Ga,Xa){jb={parent:jb,zone:this};try{return this._zoneDelegate.invoke(this,va,Ba,Ga,Xa)}finally{jb=jb.parent}};E.prototype.runGuarded=function(va,Ba,Ga,Xa){jb={parent:jb,zone:this};try{try{return this._zoneDelegate.invoke(this,va,void 0===Ba?null:Ba,Ga,Xa)}catch($a){if(this._zoneDelegate.handleError(this,
$a))throw $a;}}finally{jb=jb.parent}};E.prototype.runTask=function(va,Ba,Ga){if(va.zone!=this)throw Error("$`"+(va.zone||Ka).name+"`"+this.name);if("notScheduled"!==va.state||"eventTask"!==va.type&&"macroTask"!==va.type){var Xa="running"!=va.state;Xa&&va._transitionTo("running","scheduled");va.runCount++;var $a=db;db=va;jb={parent:jb,zone:this};try{"macroTask"==va.type&&va.data&&!va.data.isPeriodic&&(va.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,va,Ba,Ga)}catch(ec){if(this._zoneDelegate.handleError(this,
ec))throw ec;}}finally{"notScheduled"!==va.state&&"unknown"!==va.state&&("eventTask"==va.type||va.data&&va.data.isPeriodic?Xa&&va._transitionTo("scheduled","running"):(va.runCount=0,this._updateTaskCount(va,-1),Xa&&va._transitionTo("notScheduled","running","notScheduled"))),jb=jb.parent,db=$a}}};E.prototype.scheduleTask=function(va){if(va.zone&&va.zone!==this)for(var Ba=this;Ba;){if(Ba===va.zone)throw Error("aa`"+this.name+"`"+va.zone.name);Ba=Ba.parent}va._transitionTo("scheduling","notScheduled");
Ba=[];va._zoneDelegates=Ba;va._zone=this;try{va=this._zoneDelegate.scheduleTask(this,va)}catch(Ga){throw va._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ga),Ga;}va._zoneDelegates===Ba&&this._updateTaskCount(va,1);"scheduling"==va.state&&va._transitionTo("scheduled","scheduling");return va};E.prototype.scheduleMicroTask=function(va,Ba,Ga,Xa){return this.scheduleTask(new L("microTask",va,Ba,Ga,Xa,void 0))};E.prototype.scheduleMacroTask=function(va,Ba,Ga,Xa,
$a){return this.scheduleTask(new L("macroTask",va,Ba,Ga,Xa,$a))};E.prototype.scheduleEventTask=function(va,Ba,Ga,Xa,$a){return this.scheduleTask(new L("eventTask",va,Ba,Ga,Xa,$a))};E.prototype.cancelTask=function(va){if(va.zone!=this)throw Error("ba`"+(va.zone||Ka).name+"`"+this.name);va._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,va)}catch(Ba){throw va._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Ba),Ba;}this._updateTaskCount(va,
-1);va._transitionTo("notScheduled","canceling");va.runCount=0;return va};E.prototype._updateTaskCount=function(va,Ba){var Ga=va._zoneDelegates;-1==Ba&&(va._zoneDelegates=null);for(var Xa=0;Xa<Ga.length;Xa++)Ga[Xa]._updateTaskCount(va.type,Ba)};ji.Object.defineProperties(E.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});ji.Object.defineProperties(E,{root:{configurable:!0,enumerable:!0,get:function(){for(var va=
E.current;va.parent;)va=va.parent;return va}},current:{configurable:!0,enumerable:!0,get:function(){return jb.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return db}}});E.__symbol__=d;var I={name:"",onHasTask:function(va,Ba,Ga,Xa){return va.hasTask(Ga,Xa)},onScheduleTask:function(va,Ba,Ga,Xa){return va.scheduleTask(Ga,Xa)},onInvokeTask:function(va,Ba,Ga,Xa,$a,ec){return va.invokeTask(Ga,Xa,$a,ec)},onCancelTask:function(va,Ba,Ga,Xa){return va.cancelTask(Ga,Xa)}},N=function(va,Ba,
Ga){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this.zone=va;this._parentDelegate=Ba;this._forkZS=Ga&&(Ga&&Ga.onFork?Ga:Ba._forkZS);this._forkDlgt=Ga&&(Ga.onFork?Ba:Ba._forkDlgt);this._forkCurrZone=Ga&&(Ga.onFork?this.zone:Ba._forkCurrZone);this._interceptZS=Ga&&(Ga.onIntercept?Ga:Ba._interceptZS);this._interceptDlgt=Ga&&(Ga.onIntercept?Ba:Ba._interceptDlgt);this._interceptCurrZone=Ga&&(Ga.onIntercept?this.zone:Ba._interceptCurrZone);this._invokeZS=Ga&&(Ga.onInvoke?Ga:Ba._invokeZS);this._invokeDlgt=
Ga&&(Ga.onInvoke?Ba:Ba._invokeDlgt);this._invokeCurrZone=Ga&&(Ga.onInvoke?this.zone:Ba._invokeCurrZone);this._handleErrorZS=Ga&&(Ga.onHandleError?Ga:Ba._handleErrorZS);this._handleErrorDlgt=Ga&&(Ga.onHandleError?Ba:Ba._handleErrorDlgt);this._handleErrorCurrZone=Ga&&(Ga.onHandleError?this.zone:Ba._handleErrorCurrZone);this._scheduleTaskZS=Ga&&(Ga.onScheduleTask?Ga:Ba._scheduleTaskZS);this._scheduleTaskDlgt=Ga&&(Ga.onScheduleTask?Ba:Ba._scheduleTaskDlgt);this._scheduleTaskCurrZone=Ga&&(Ga.onScheduleTask?
this.zone:Ba._scheduleTaskCurrZone);this._invokeTaskZS=Ga&&(Ga.onInvokeTask?Ga:Ba._invokeTaskZS);this._invokeTaskDlgt=Ga&&(Ga.onInvokeTask?Ba:Ba._invokeTaskDlgt);this._invokeTaskCurrZone=Ga&&(Ga.onInvokeTask?this.zone:Ba._invokeTaskCurrZone);this._cancelTaskZS=Ga&&(Ga.onCancelTask?Ga:Ba._cancelTaskZS);this._cancelTaskDlgt=Ga&&(Ga.onCancelTask?Ba:Ba._cancelTaskDlgt);this._cancelTaskCurrZone=Ga&&(Ga.onCancelTask?this.zone:Ba._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=
this._hasTaskZS=null;var Xa=Ga&&Ga.onHasTask,$a=Ba&&Ba._hasTaskZS;if(Xa||$a)this._hasTaskZS=Xa?Ga:I,this._hasTaskDlgt=Ba,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=va,Ga.onScheduleTask||(this._scheduleTaskZS=I,this._scheduleTaskDlgt=Ba,this._scheduleTaskCurrZone=this.zone),Ga.onInvokeTask||(this._invokeTaskZS=I,this._invokeTaskDlgt=Ba,this._invokeTaskCurrZone=this.zone),Ga.onCancelTask||(this._cancelTaskZS=I,this._cancelTaskDlgt=Ba,this._cancelTaskCurrZone=this.zone)};N.prototype.fork=function(va,
Ba){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,va,Ba):new E(va,Ba)};N.prototype.intercept=function(va,Ba,Ga){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,va,Ba,Ga):Ba};N.prototype.invoke=function(va,Ba,Ga,Xa,$a){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,va,Ba,Ga,Xa,$a):Ba.apply(Ga,Xa)};N.prototype.handleError=function(va,Ba){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,
this._handleErrorCurrZone,va,Ba):!0};N.prototype.scheduleTask=function(va,Ba){var Ga=Ba;if(this._scheduleTaskZS)this._hasTaskZS&&Ga._zoneDelegates.push(this._hasTaskDlgtOwner),(Ga=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,va,Ba))||(Ga=Ba);else if(Ba.scheduleFn)Ba.scheduleFn(Ba);else if("microTask"==Ba.type)f(Ba);else throw Error("ca");return Ga};N.prototype.invokeTask=function(va,Ba,Ga,Xa){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,
this._invokeTaskCurrZone,va,Ba,Ga,Xa):Ba.callback.apply(Ga,Xa)};N.prototype.cancelTask=function(va,Ba){if(this._cancelTaskZS)va=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,va,Ba);else{if(!Ba.cancelFn)throw Error("da");va=Ba.cancelFn(Ba)}return va};N.prototype.hasTask=function(va,Ba){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,va,Ba)}catch(Ga){this.handleError(va,Ga)}};N.prototype._updateTaskCount=function(va,Ba){var Ga=this._taskCounts,
Xa=Ga[va];Ba=Ga[va]=Xa+Ba;if(0>Ba)throw Error("ea");0!=Xa&&0!=Ba||this.hasTask(this.zone,{microTask:0<Ga.microTask,macroTask:0<Ga.macroTask,eventTask:0<Ga.eventTask,change:va})};var L=function(va,Ba,Ga,Xa,$a,ec){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=va;this.source=Ba;this.data=Xa;this.scheduleFn=$a;this.cancelFn=ec;if(!Ga)throw Error("fa");this.callback=Ga;var Va=this;"eventTask"===va&&Xa&&Xa.useG?this.invoke=L.invokeTask:this.invoke=function(){return L.invokeTask.call(a,
Va,this,arguments)}};L.invokeTask=function(va,Ba,Ga){va||(va=this);Mb++;try{return va.runCount++,va.zone.runTask(va,Ba,Ga)}finally{1==Mb&&h(),Mb--}};L.prototype._transitionTo=function(va,Ba,Ga){if(this._state===Ba||this._state===Ga)this._state=va,"notScheduled"==va&&(this._zoneDelegates=null);else throw Error("ga`"+this.type+"`"+this.source+"`"+va+"`"+Ba+"`"+(Ga?" or '"+Ga+"'":"")+"`"+this._state);};L.prototype.toString=function(){return this.data&&"undefined"!==typeof this.data.handleId?this.data.handleId.toString():
Object.prototype.toString.call(this)};L.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};ji.Object.defineProperties(L.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var T=d("setTimeout"),Y=d("Promise"),ja=d("then"),ha=[],ra=!1,Fa,Ka={name:"NO ZONE"},Ca={},La={symbol:d,currentZoneFrame:function(){return jb},onUnhandledError:k,
microtaskDrainDone:k,scheduleMicroTask:f,showUncaughtError:function(){return!E[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 E(null,null)},db=null,Mb=0;c("Zone","Zone");return a.Zone=E})("undefined"!==typeof window&&window||"undefined"!==typeof self&&self||global);
Zone.__load_patch("Error",function(a,b,c){function d(ha){for(var ra={zoneName:ha.zone.name},Fa=ra;ha.parent;){ha=ha.parent;var Ka={zoneName:ha.zone.name};ra=ra.parent=Ka}return Fa}function e(ha,ra,Fa){Fa=void 0===Fa?!0:Fa;ha=ha.split("\n");for(var Ka=0;ha[Ka]!==u&&ha[Ka]!==x&&ha[Ka]!==E&&ha[Ka]!==I&&ha[Ka]!==N&&Ka<ha.length;)Ka++;for(;Ka<ha.length&&ra;Ka++){var Ca=ha[Ka];if(Ca.trim())switch(q[Ca]){case 0:ha.splice(Ka,1);Ka--;break;case 1:ra.parent?ra=ra.parent:ra=null;ha.splice(Ka,1);Ka--;break;default:ha[Ka]+=
Fa?" ["+ra.zone.name+"]":" ["+ra.zoneName+"]"}}return ha.join("\n")}function f(){var ha=this,ra=k.apply(this,arguments),Fa=ra.originalStack=ra.stack;if(f.stackRewrite&&Fa){var Ka=c.currentZoneFrame();if("lazy"===L)ra[c.symbol("zoneFrameNames")]=d(Ka);else if("default"===L)try{ra.stack=ra.zoneAwareStack=e(Fa,Ka)}catch(Ca){}}return this instanceof k&&this.constructor!=k?(Object.keys(ra).concat("stack","message").forEach(function(Ca){var La=ra[Ca];if(void 0!==La)try{ha[Ca]=La}catch(jb){}}),this):ra}
var h=c.symbol("zoneJsInternalStackFrames"),k=a[c.symbol("Error")]=a.Error,q={},u,x,E,I,N;a.Error=f;var L=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=k.prototype;f[h]=q;f.stackRewrite=!1;var T=c.symbol("zoneAwareStack");"lazy"===L&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[T]||(this[T]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[T]},set:function(ha){this.originalStack=
ha;this[T]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var Y=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(k))&&a.forEach(function(ha){0===Y.filter(function(ra){return ra===ha}).length&&Object.defineProperty(f,ha,{get:function(){return k[ha]},set:function(ra){k[ha]=ra}})});k.hasOwnProperty("stackTraceLimit")&&(k.stackTraceLimit=Math.max(k.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return k.stackTraceLimit},set:function(ha){return k.stackTraceLimit=
ha}}));k.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(ha,ra){k.captureStackTrace(ha,ra)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return k.prepareStackTrace},set:function(ha){return ha&&"function"===typeof ha?k.prepareStackTrace=function(ra,Fa){if(Fa)for(var Ka=0;Ka<Fa.length;Ka++)if("zoneCaptureStackTrace"===Fa[Ka].getFunctionName()){Fa.splice(Ka,1);break}return ha.call(this,ra,Fa)}:k.prepareStackTrace=ha}});if("disable"!==
L){var ja=b.current.fork({name:"detect",onHandleError:function(ha,ra,Fa,Ka){if(Ka.originalStack&&Error===f)for(ha=Ka.originalStack.split(/\n/),Ka=Fa=ra=!1;ha.length;){var Ca=ha.shift();if(/:\d+:\d+/.test(Ca)||"ZoneAwareError"===Ca){var La=Ca.split("(")[0].split("@")[0],jb=1;-1!==La.indexOf("ZoneAwareError")&&(-1!==La.indexOf("new ZoneAwareError")?(u=Ca,x=Ca.replace("new ZoneAwareError","new Error.ZoneAwareError")):(E=Ca,I=Ca.replace("Error.",""),-1===Ca.indexOf("Error.ZoneAwareError")&&(N=Ca.replace("ZoneAwareError",
"Error.ZoneAwareError"))),q[x]=0);-1!==La.indexOf("runGuarded")?Fa=!0:-1!==La.indexOf("runTask")?Ka=!0:-1!==La.indexOf("run")?ra=!0:jb=0;q[Ca]=jb;if(ra&&Fa&&Ka){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(ha,ra,Fa,Ka){return ha.scheduleTask(Fa,Ka)},onInvokeTask:function(ha,ra,Fa,Ka,Ca,La){return ha.invokeTask(Fa,Ka,Ca,La)},onCancelTask:function(ha,ra,Fa,Ka){return ha.cancelTask(Fa,Ka)},onInvoke:function(ha,ra,Fa,Ka,Ca,La,jb){return ha.invoke(Fa,Ka,Ca,La,jb)}});
b=Error.stackTraceLimit;Error.stackTraceLimit=100;ja.run(function(){ja.runGuarded(function(){var ha=function(){};ja.scheduleEventTask(h,function(){ja.scheduleMacroTask(h,function(){ja.scheduleMicroTask(h,function(){throw Error();},void 0,function(ra){ra._transitionTo=ha;ra.invoke()});ja.scheduleMicroTask(h,function(){throw Error();},void 0,function(ra){ra._transitionTo=ha;ra.invoke()})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},function(){})},void 0,function(ra){ra._transitionTo=ha;ra.invoke()},
function(){})})});Error.stackTraceLimit=b}});
var Nb=Object.getOwnPropertyDescriptor,rba=Object.defineProperty,uba=Object.getPrototypeOf,Clb=Object.create,Dlb=Array.prototype.slice,Elb=Zone.__symbol__("addEventListener"),Flb=Zone.__symbol__("removeEventListener"),Wb=Zone.__symbol__(""),Pb=Zone.__symbol__,Cv="undefined"!==typeof window,Vb=Cv?window:void 0,Rb=Cv&&Vb||"object"===typeof self&&self||global,Glb="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Yb=!("nw"in Rb)&&"undefined"!==typeof Rb.process&&"[object process]"===
{}.toString.call(Rb.process),Hlb=!Yb&&!Glb&&!(!Cv||!Vb.HTMLElement),Ilb="undefined"!==typeof Rb.process&&"[object process]"==={}.toString.call(Rb.process)&&!Glb&&!(!Cv||!Vb.HTMLElement),Qb={},qba=function(a){if(a=a||Rb.event){var b=Qb[a.type];b||(b=Qb[a.type]=Pb("ON_PROPERTY"+a.type));var c=this||a.target||Rb;b=c[b];Hlb&&c===Vb&&"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}},Sb=Pb("originalInstance"),wba=!1,xba=!1;
var Zb=!1;if("undefined"!==typeof window)try{var Dv=Object.defineProperty({},"passive",{get:function(){Zb=!0}});window.addEventListener("test",Dv,Dv);window.removeEventListener("test",Dv,Dv)}catch(a){Zb=!1}var Cba={useG:!0},Xb={},Bba={},Eba=new RegExp("^"+Wb+"(\\w+)(true|false)$"),Aba=Pb("propagationStopped");
Zone.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Va){if(Va&&Va.toString===Object.prototype.toString){var Ya=Va.constructor&&Va.constructor.name;return(Ya?Ya:"")+": "+JSON.stringify(Va)}return Va?Va.toString():Object.prototype.toString.call(Va)}function e(Va){c.onUnhandledError(Va);try{var Ya=b[Fa];"function"===typeof Ya&&Ya.call(this,Va)}catch(Sa){}}function f(Va){return Va}function h(Va){return $a.reject(Va)}function k(Va,Ya){return function(Sa){try{q(Va,Ya,Sa)}catch(vb){q(Va,!1,vb)}}}
function q(Va,Ya,Sa){var vb=Mb();if(Va===Sa)throw new TypeError("ia");if(null===Va[Ka]){var fb=null;try{if("object"===typeof Sa||"function"===typeof Sa)fb=Sa&&Sa.then}catch(zb){return vb(function(){q(Va,!1,zb)})(),Va}if(!1!==Ya&&Sa instanceof $a&&Sa.hasOwnProperty(Ka)&&Sa.hasOwnProperty(Ca)&&null!==Sa[Ka])u(Sa),q(Va,Sa[Ka],Sa[Ca]);else if(!1!==Ya&&"function"===typeof fb)try{fb.call(Sa,vb(k(Va,Ya)),vb(k(Va,!1)))}catch(zb){vb(function(){q(Va,!1,zb)})()}else{Va[Ka]=Ya;vb=Va[Ca];Va[Ca]=Sa;Va[La]===La&&
!0===Ya&&(Va[Ka]=Va[db],Va[Ca]=Va[jb]);!1===Ya&&Sa instanceof Error&&(fb=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&L(Sa,va,{configurable:!0,enumerable:!1,writable:!0,value:fb});for(fb=0;fb<vb.length;)x(Va,vb[fb++],vb[fb++],vb[fb++],vb[fb++]);if(0==vb.length&&0==Ya){Va[Ka]=0;Ya=Sa;try{throw Error("ja`"+d(Sa)+"`"+(Sa&&Sa.stack?"\n"+Sa.stack:""));}catch(zb){Ya=zb}ja&&(Ya.throwOriginal=!0);Ya.rejection=Sa;Ya.promise=Va;Ya.zone=b.current;Ya.task=b.currentTask;Y.push(Ya);
c.scheduleMicroTask()}}}return Va}function u(Va){if(0===Va[Ka]){try{var Ya=b[Ba];Ya&&"function"===typeof Ya&&Ya.call(this,{rejection:Va[Ca],promise:Va})}catch(Sa){}Va[Ka]=!1;for(Ya=0;Ya<Y.length;Ya++)Va===Y[Ya].promise&&Y.splice(Ya,1)}}function x(Va,Ya,Sa,vb,fb){u(Va);var zb=Va[Ka],Jb=zb?"function"===typeof vb?vb:f:"function"===typeof fb?fb:h;Ya.scheduleMicroTask("Promise.then",function(){try{var gc=Va[Ca],Ac=!!Sa&&La===Sa[La];Ac&&(Sa[jb]=gc,Sa[db]=zb);var ue=Ya.run(Jb,void 0,Ac&&Jb!==h&&Jb!==f?[]:
[gc]);q(Sa,!0,ue)}catch(jd){q(Sa,!1,jd)}},Sa)}function E(Va){var Ya=Va.prototype,Sa=N(Ya,"then");if(!Sa||!1!==Sa.writable&&Sa.configurable){var vb=Ya.then;Ya[ra]=vb;Va.prototype.then=function(fb,zb){var Jb=this;return(new $a(function(gc,Ac){vb.call(Jb,gc,Ac)})).then(fb,zb)};Va[ec]=!0}}function I(Va){return function(Ya,Sa){Ya=Va.apply(Ya,Sa);if(Ya instanceof $a)return Ya;Sa=Ya.constructor;Sa[ec]||E(Sa);return Ya}}var N=Object.getOwnPropertyDescriptor,L=Object.defineProperty,T=c.symbol,Y=[],ja=!0===
a[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ha=T("Promise"),ra=T("then");c.onUnhandledError=function(Va){if(c.showUncaughtError()){var Ya=Va&&Va.rejection;Ya?console.error("Unhandled Promise rejection:",Ya instanceof Error?Ya.message:Ya,"; Zone:",Va.zone.name,"; Task:",Va.task&&Va.task.source,"; Value:",Ya,Ya instanceof Error?Ya.stack:void 0):console.error(Va)}};c.microtaskDrainDone=function(){for(var Va={};Y.length;){Va.$jscomp$loop$prop$uncaughtPromiseError$1625=Y.shift();try{Va.$jscomp$loop$prop$uncaughtPromiseError$1625.zone.runGuarded(function(Ya){return function(){if(Ya.$jscomp$loop$prop$uncaughtPromiseError$1625.throwOriginal)throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1625.rejection;
throw Ya.$jscomp$loop$prop$uncaughtPromiseError$1625;}}(Va))}catch(Ya){e(Ya)}Va={$jscomp$loop$prop$uncaughtPromiseError$1625:Va.$jscomp$loop$prop$uncaughtPromiseError$1625}}};var Fa=T("unhandledPromiseRejectionHandler"),Ka=T("state"),Ca=T("value"),La=T("finally"),jb=T("parentPromiseValue"),db=T("parentPromiseState"),Mb=function(){var Va=!1;return function(Ya){return function(){Va||(Va=!0,Ya.apply(null,arguments))}}},va=T("currentTaskTrace"),Ba=T("rejectionHandledHandler"),Ga=function(){},Xa=a.AggregateError,
$a=function(Va){if(!(this instanceof $a))throw Error("ka");this[Ka]=null;this[Ca]=[];try{var Ya=Mb();Va&&Va(Ya(k(this,!0)),Ya(k(this,!1)))}catch(Sa){q(this,!1,Sa)}};$a.toString=function(){return"function ZoneAwarePromise() { [native code] }"};$a.resolve=function(Va){return q(new this(null),!0,Va)};$a.reject=function(Va){return q(new this(null),!1,Va)};$a.any=function(Va){if(!Va||"function"!==typeof Va[Symbol.iterator])return Promise.reject(new Xa([],"All promises were rejected"));var Ya=[],Sa=0;try{for(var vb=
r(Va),fb=vb.next();!fb.done;fb=vb.next()){var zb=fb.value;Sa++;Ya.push($a.resolve(zb))}}catch(Ac){return Promise.reject(new Xa([],"All promises were rejected"))}if(0===Sa)return Promise.reject(new Xa([],"All promises were rejected"));var Jb=!1,gc=[];return new $a(function(Ac,ue){for(var jd=0;jd<Ya.length;jd++)Ya[jd].then(function(Ed){Jb||(Jb=!0,Ac(Ed))},function(Ed){gc.push(Ed);Sa--;0===Sa&&(Jb=!0,ue(new Xa(gc,"All promises were rejected")))})})};$a.race=function(Va){function Ya(gc){vb(gc)}function Sa(gc){fb(gc)}
var vb,fb,zb=new this(function(gc,Ac){vb=gc;fb=Ac});Va=r(Va);for(var Jb=Va.next();!Jb.done;Jb=Va.next())(Jb=Jb.value)&&Jb.then||(Jb=this.resolve(Jb)),Jb.then(Ya,Sa);return zb};$a.all=function(Va){return $a.allWithCallback(Va)};$a.allSettled=function(Va){return(this&&this.prototype instanceof $a?this:$a).allWithCallback(Va,{thenCallback:function(Ya){return{status:"fulfilled",value:Ya}},errorCallback:function(Ya){return{status:"rejected",reason:Ya}}})};$a.allWithCallback=function(Va,Ya){var Sa,vb,fb=
new this(function(jd,Ed){Sa=jd;vb=Ed}),zb=2,Jb=0,gc=[],Ac={};Va=r(Va);for(var ue=Va.next();!ue.done;Ac={$jscomp$loop$prop$curValueIndex$1628:Ac.$jscomp$loop$prop$curValueIndex$1628},ue=Va.next()){(ue=ue.value)&&ue.then||(ue=this.resolve(ue));Ac.$jscomp$loop$prop$curValueIndex$1628=Jb;try{ue.then(function(jd){return function(Ed){gc[jd.$jscomp$loop$prop$curValueIndex$1628]=Ya?Ya.thenCallback(Ed):Ed;zb--;0===zb&&Sa(gc)}}(Ac),function(jd){return function(Ed){Ya?(gc[jd.$jscomp$loop$prop$curValueIndex$1628]=
Ya.errorCallback(Ed),zb--,0===zb&&Sa(gc)):vb(Ed)}}(Ac))}catch(jd){vb(jd)}zb++;Jb++}zb-=2;0===zb&&Sa(gc);return fb};ji.Object.defineProperty($a.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});ji.Object.defineProperty($a.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return $a}});$a.prototype.then=function(Va,Ya){var Sa,vb=null==(Sa=this.constructor)?void 0:Sa[Symbol.species];vb&&"function"===typeof vb||(vb=this.constructor||$a);
Sa=new vb(Ga);vb=b.current;null==this[Ka]?this[Ca].push(vb,Sa,Va,Ya):x(this,vb,Sa,Va,Ya);return Sa};$a.prototype.catch=function(Va){return this.then(null,Va)};$a.prototype.finally=function(Va){var Ya,Sa=null==(Ya=this.constructor)?void 0:Ya[Symbol.species];Sa&&"function"===typeof Sa||(Sa=$a);Ya=new Sa(Ga);Ya[La]=La;Sa=b.current;null==this[Ka]?this[Ca].push(Sa,Ya,Va,Va):x(this,Sa,Ya,Va,Va);return Ya};$a.resolve=$a.resolve;$a.reject=$a.reject;$a.race=$a.race;$a.all=$a.all;ha=a[ha]=a.Promise;a.Promise=
$a;var ec=T("thenPatched");c.patchThen=E;ha&&(E(ha),Ub(a,"fetch",function(Va){return I(Va)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=Y;return $a});
var $b=Pb("zoneTask");
Zone.__load_patch("toString",function(a){var b=Function.prototype.toString,c=Pb("OriginalDelegate"),d=Pb("Promise"),e=Pb("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)}});
/*

 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}
*/
Zone.__load_patch("util",function(a,b,c){var d=Jba(a);c.patchOnProperties=tba;c.patchMethod=Ub;c.bindArguments=nba;c.patchMacroTask=vba;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=Gba;c.patchEventTarget=Fba;c.isIEOrEdge=yba;c.ObjectDefineProperty=rba;c.ObjectGetOwnPropertyDescriptor=Nb;c.ObjectCreate=Clb;c.ArraySlice=Dlb;c.patchClass=Tb;c.wrapWithCurrentZone=mba;c.filterProperties=Iba;c.attachOriginToPatched=
Ob;c._redefineProperty=Object.defineProperty;c.patchCallbacks=Hba;c.getGlobalObjects=function(){return{globalSources:Bba,zoneSymbolEventNames:Xb,eventNames:d,isBrowser:Hlb,isMix:Ilb,isNode:Yb,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:Wb,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});
var bc,cc,Kba,Lba,dc;
var Tba=[].concat(v("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(" ")),
v(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),v(["autocomplete","autocompleteerror"]),v(["toggle"]),v("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),v("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(" ")),
v("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),v("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=Pba;Oba()});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){Qba(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||Sba(e,c)||(d="undefined"!==typeof WebSocket,Uba(e),e.patchClass("XMLHttpRequest"),d&&Rba(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){ac(a,"set","clear","Timeout");ac(a,"set","clear","Interval");ac(a,"set","clear","Immediate")});
Zone.__load_patch("requestAnimationFrame",function(a){ac(a,"request","cancel","AnimationFrame");ac(a,"mozRequest","mozCancel","AnimationFrame");ac(a,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",function(a,b){for(var c=["alert","prompt","confirm"],d=0;d<c.length;d++)Ub(a,c[d],function(e,f,h){return function(k,q){return b.current.run(e,a,q,h)}})});
Zone.__load_patch("EventTarget",function(a,b,c){c.patchEventPrototype(a,c);if(!Zone[c.symbol("patchEventTarget")]){var d=c.getGlobalObjects();b=d.eventNames;var e=d.zoneSymbolEventNames,f=d.TRUE_STR,h=d.FALSE_STR;d=d.ZONE_SYMBOL_PREFIX;for(var k=0;k<b.length;k++){var q=b[k],u=d+(q+h),x=d+(q+f);e[q]={};e[q][h]=u;e[q][f]=x}(b=a.EventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b&&b.prototype])}(b=a.XMLHttpRequestEventTarget)&&b.prototype&&c.patchEventTarget(a,c,[b.prototype])});
Zone.__load_patch("MutationObserver",function(){Tb("MutationObserver");Tb("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",function(){Tb("IntersectionObserver")});Zone.__load_patch("FileReader",function(){Tb("FileReader")});
Zone.__load_patch("on_property",function(a,b,c){if((!Yb||Ilb)&&!Zone[c.symbol("patchEvents")]){b=a.__Zone_ignore_on_properties;c=[];if(Hlb){var d=window;c=c.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));a:{try{var e=Vb.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=Jba(d);var h=b?b.concat(e):b;e=uba(d);d&&(f=Iba(d,f,h),tba(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=Jba(e.prototype),f&&(e=Iba(f,e,b),tba(f,e,void 0)))}});
Zone.__load_patch("customElements",function(a,b,c){b=c.getGlobalObjects();var d=b.isMix;(b.isBrowser||d)&&a.customElements&&"customElements"in a&&c.patchCallbacks(c,a.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])});
Zone.__load_patch("XHR",function(a,b){(function(q){function u(Fa){var Ka=Fa.data,Ca=Ka.target;Ca[f]=!1;Ca[k]=!1;var La=Ca[e];N||(N=Ca[Elb],L=Ca[Flb]);La&&L.call(Ca,"readystatechange",La);La=Ca[e]=function(){if(Ca.readyState===Ca.DONE)if(!Ka.aborted&&Ca[f]&&"scheduled"===Fa.state){var jb=Ca[b.__symbol__("loadfalse")];if(0!==Ca.status&&jb&&0<jb.length){var db=Fa.invoke;Fa.invoke=function(){for(var Mb=Ca[b.__symbol__("loadfalse")],va=0;va<Mb.length;va++)Mb[va]===Fa&&Mb.splice(va,1);Ka.aborted||"scheduled"!==
Fa.state||db.call(Fa)};jb.push(Fa)}else Fa.invoke()}else Ka.aborted||!1!==Ca[f]||(Ca[k]=!0)};N.call(Ca,"readystatechange",La);Ca[c]||(Ca[c]=Fa);ha.apply(Ca,Ka.args);Ca[f]=!0;return Fa}function x(){}function E(Fa){Fa=Fa.data;Fa.aborted=!0;return ra.apply(Fa.target,Fa.args)}var I=q.XMLHttpRequest;if(I){I=I.prototype;var N=I[Elb],L=I[Flb];!N&&(q=q.XMLHttpRequestEventTarget)&&(q=q.prototype,N=q[Elb],L=q[Flb]);var T=Ub(I,"open",function(){return function(Fa,Ka){Fa[d]=0==Ka[2];Fa[h]=Ka[1];return T.apply(Fa,
Ka)}}),Y=Pb("fetchTaskAborting"),ja=Pb("fetchTaskScheduling"),ha=Ub(I,"send",function(){return function(Fa,Ka){if(!0===b.current[ja]||Fa[d])return ha.apply(Fa,Ka);Ka={target:Fa,url:Fa[h],isPeriodic:!1,args:Ka,aborted:!1};var Ca=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Ka,u,E);Fa&&!0===Fa[k]&&!Ka.aborted&&"scheduled"===Ca.state&&Ca.invoke()}}),ra=Ub(I,"abort",function(){return function(Fa,Ka){var Ca=Fa[c];if(Ca&&"string"==typeof Ca.type)null==Ca.cancelFn||Ca.data&&Ca.data.aborted||Ca.zone.cancelTask(Ca);
else if(!0===b.current[Y])return ra.apply(Fa,Ka)}})}})(a);var c=Pb("xhrTask"),d=Pb("xhrSync"),e=Pb("xhrListener"),f=Pb("xhrScheduled"),h=Pb("xhrURL"),k=Pb("xhrErrorBeforeScheduled")});Zone.__load_patch("geolocation",function(a){a.navigator&&a.navigator.geolocation&&pba(a.navigator.geolocation)});
Zone.__load_patch("PromiseRejectionEvent",function(a,b){function c(d){return function(e){Dba(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[Pb("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),b[Pb("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 Yba=fc({__forward_ref__:fc});
var Zba=fc({"\u0275prov":fc}),cca=fc({"\u0275inj":fc}),$ba=fc({ngInjectableDef:fc}),dca=fc({ngInjectorDef:fc});
var sd=function(a,b){this._desc=a;this.\u0275prov=void 0;"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=lc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};sd.prototype.toString=function(){return"InjectionToken "+this._desc};ji.Object.defineProperties(sd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});
var ada=new sd("ENVIRONMENT_INITIALIZER");
var Cd="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof global&&global||"undefined"!==typeof window&&window||"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
var pc=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};V(pc,Error);
var fca;
/*

 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.
*/
var Ev={},Jlb=/\n/gm,sc=void 0;
var Klb=vc(yc(function(a){return{token:a}}),-1),Fv=vc(yc(),8);vc(yc(),2);var Gv=vc(yc(),4);vc(yc(),1);
var Bc=fc({"\u0275cmp":fc}),qca=fc({"\u0275dir":fc}),rca=fc({"\u0275pipe":fc}),Llb=fc({"\u0275mod":fc}),Hc=fc({"\u0275fac":fc}),cd=fc({__NG_ELEMENT_ID__:fc});
var Dc={},zc=[];
var kca=0;
var vca=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};vca.prototype.isFirstChange=function(){return this.firstChange};
Jc.ngInherit=!0;
var wca=void 0;
var Mlb={createRenderer:function(){return xca()}};
var Oc=Dca(null);
var kd=function(a,b){var c=C;this.factory=a;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};
var Ica=!0,Jca=0,gd={},ld=function(a,b){this._tNode=a;this._lView=b};ld.prototype.get=function(a,b,c){return Qca(this._tNode,this._lView,a,c,b)};
fc({provide:String,useValue:fc});
var $ca=new sd("INJECTOR_DEF_TYPES");
var bda=fc({provide:String,useValue:fc});
var Nlb=new sd("INJECTOR",-1);
var eda=function(){};eda.prototype.get=function(a,b){b=void 0===b?Ev:b;if(b===Ev)throw a=Error("pa`"+hc(a)),a.name="NullInjectorError",a;return b};
var Hha=new sd("Set Injector scope.");
var ud={},Olb={},dda=void 0,Hv=function(){},vd=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;kda(a,function(f){return Plb(e,f)});this.records.set(Nlb,td(void 0,this));d.has("environment")&&this.records.set(Hv,td(void 0,this));a=this.records.get(Hha);null!=a&&"string"===typeof a.value&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get($ca.multi,zc,2))};V(vd,Hv);
vd.prototype.destroy=function(){if(this._destroyed)throw new pc(205,!1);this._destroyed=!0;try{for(var a=r(this._ngOnDestroyHooks),b=a.next();!b.done;b=a.next())b.value.ngOnDestroy();for(var c=r(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}};vd.prototype.onDestroy=function(a){this._onDestroyHooks.push(a)};
vd.prototype.get=function(a,b,c){b=void 0===b?Ev:b;c=void 0===c?0:c;if(this._destroyed)throw new pc(205,!1);var d=tc(this),e=rc();try{if(!(c&4)){var f=this.records.get(a);if(void 0===f){var h=("function"===typeof a||"object"===typeof a&&a instanceof sd)&&aca(a),k;if(k=h)if(h.providedIn){var q=jc(h.providedIn);k="string"===typeof q?"any"===q||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=td(hda(a),ud):f=null;this.records.set(a,f)}if(null!=f){b=f;b.value===ud&&(b.value=Olb,b.value=b.factory());
var u;if(u="object"===typeof b.value&&b.value){var x=b.value;u=null!==x&&"object"===typeof x&&"function"===typeof x.ngOnDestroy}u&&this._ngOnDestroyHooks.add(b.value);return b.value}}var E=c&2?fda():this.parent;b=c&8&&b===Ev?null:b;return E.get(a,b)}catch(ra){if("NullInjectorError"===ra.name){(ra.ngTempTokenPath=ra.ngTempTokenPath||[]).unshift(hc(a));if(d)throw ra;u=ra;var I=this.source,N=u.ngTempTokenPath;a.__source&&N.unshift(a.__source);var L="\n"+u.message;a=I;a=void 0===a?null:a;L=L&&"\n"===
L.charAt(0)&&"\u0275"==L.charAt(1)?L.slice(2):L;var T=hc(N);if(Array.isArray(N))T=N.map(hc).join(" -> ");else if("object"===typeof N){I=[];for(var Y in N)if(N.hasOwnProperty(Y)){var ja=N[Y];I.push(Y+":"+("string"===typeof ja?JSON.stringify(ja):hc(ja)))}T="{"+I.join(", ")+"}"}var ha="R3InjectorError"+(a?"("+a+")":"")+"["+T+"]: "+L.replace(Jlb,"\n  ");u.message=ha;u.ngTokenPath=N;u.ngTempTokenPath=null;throw u;}throw ra;}finally{rc(e),tc(d)}};
var mda=function(a){var b=tc(a),c=rc();try{for(var d=a.get(ada.multi,zc,2),e=r(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{tc(b),rc(c)}};vd.prototype.toString=function(){for(var a=[],b=r(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(hc(c.value));return"R3Injector["+a.join(", ")+"]"};
var Plb=function(a,b){b=jc(b);var c=rd(b)?b:jc(b&&b.provide),d=jda(b);if(rd(b)||!0!==b.multi)a.records.get(c);else{var e=a.records.get(c);e||(e=td(void 0,ud,!0),e.factory=function(){return ica(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};ji.Object.defineProperties(vd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
var Iv=function(){},og=function(a){if(Array.isArray(a))return nda({name:""},void 0,a,"");var b,c=null!=(b=a.name)?b:"";return nda({name:c},a.parent,a.providers,c)},Qlb=new eda;Iv.\u0275prov=lc({token:Iv,providedIn:"any",factory:function(){return t(Nlb)}});Iv.__NG_ELEMENT_ID__=-1;
var Jv=function(a,b){this.token=a;this.id=b;if(!a)throw Error("qa");this.displayName=hc(this.token)};ji.Object.defineProperties(Jv,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Rlb.numberOfKeys}}});var Slb=function(){this._allKeys=new Map};Slb.prototype.get=function(a){if(a instanceof Jv)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Jv(a,Jv.numberOfKeys);this._allKeys.set(a,b);return b};
ji.Object.defineProperties(Slb.prototype,{numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});var Rlb=new Slb;
Rlb.get(jc(Iv));
var Kv=function(){};
var Lv=function(){},Tlb=function(){};
var Ulb=function(){},Vlb=function(){};
var wd=function(a){this.nativeElement=a};wd.__NG_ELEMENT_ID__=function(){return xd(Pc(),y())};
new sd("Renderer2Interceptor");var Mv=function(){},Nv=function(){};Nv.__NG_ELEMENT_ID__=function(){var a=y(),b=Mc(Pc().index,a);return(Fc(b)?b:a)[11]};
var ce=function(){this._console=console};ce.prototype.handleError=function(a){var b=this._findOriginalError(a);this._console.error("ERROR",a);b&&this._console.error("ORIGINAL ERROR",b)};ce.prototype._findOriginalError=function(a){for(a=a&&a.ngOriginalError;a&&a.ngOriginalError;)a=a.ngOriginalError;return a||null};
var pda=new Map,eea=0;
var Wlb=("undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Cd);
var Bd;
var $d={};
var Ld=function(a){this.changingThisBreaksApplicationSecurity=a};Ld.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"};var Xlb=function(){Ld.apply(this,arguments)};V(Xlb,Ld);Xlb.prototype.getTypeName=function(){return"HTML"};var Ylb=function(){Ld.apply(this,arguments)};V(Ylb,Ld);Ylb.prototype.getTypeName=function(){return"URL"};var Zlb=function(){Ld.apply(this,arguments)};V(Zlb,Ld);
Zlb.prototype.getTypeName=function(){return"ResourceURL"};
var Qda=function(a){this.inertDocumentHelper=a};Qda.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Dd(a),"text/html").body;if(null===b)return this.inertDocumentHelper.getInertBodyElement(a);b.removeChild(b.firstChild);return b}catch(c){return null}};
var Pda=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)}};
Pda.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=Dd(a),b;b=this.inertDocument.createElement("body");b.innerHTML=Dd(a);this.defaultDoc.documentMode&&$lb(this,b);return b};var $lb=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&&$lb(a,b),b=b.nextSibling};
var Jda=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Kda=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
var amb=Pd("area,br,col,hr,img,wbr"),bmb=Pd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cmb=Pd("rp,rt"),dmb=Qd(cmb,bmb),emb=Qd(bmb,Pd("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")),fmb=Qd(cmb,Pd("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")),
Sda=Qd(amb,emb,fmb,dmb),Uda=Pd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vda=Pd("srcset"),gmb=Pd("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
hmb=Pd("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"),
Tda=Qd(Uda,Vda,gmb,hmb),Wda=Pd("script,style,template"),Rda=function(){this.buf=[]};Rda.prototype.endElement=function(a){a=a.nodeName.toLowerCase();Sda.hasOwnProperty(a)&&!amb.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var Xda=function(a,b){if(b&&(a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("ta`"+a.outerHTML);return b},Mda=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nda=/([^#-~ |!])/g,Rd;
var imb={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 Sd;
var jmb=Promise.resolve(null);
var sg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=sg.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(Gc(a)){var b=a[8],c=b?b.indexOf(this):-1;-1<c&&(yda(a,c),od(b,c))}this._attachedToViewContainer=!1}Ada(this._lView[1],this._lView)};g.onDestroy=function(a){nea(this._lView[1],this._lView,null,a)};
g.markForCheck=function(){uea(this._cdRefInjectingView||this._lView)};g.detach=function(){this._lView[2]&=-65};g.detectChanges=function(){var a=this._lView[1],b=this._lView,c=this.context,d=b[10];d.begin&&d.begin();try{Yd(a,b,a.template,c)}catch(e){throw wea(b,e),e;}finally{d.end&&d.end()}};
ji.Object.defineProperties(sg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return ee(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 Ov=function(a){sg.call(this,a);this._view=a};V(Ov,sg);
Ov.prototype.detectChanges=function(){for(var a=this._view[8],b=0;b<a.components.length;b++){var c=a.components[b];var d=c.__ngContext__;d=(d="number"===typeof d?pda.get(d)||null:d||null)?Fc(d)?d:d.lView:null;if(null!==d){var e=d[1],f=e.template,h=d[10],k=4===(d[2]&4);try{k||!h.begin||h.begin(),k&&Xd(e,d,c),Yd(e,d,f,c)}finally{k||!h.end||h.end()}}}};ji.Object.defineProperties(Ov.prototype,{context:{configurable:!0,enumerable:!0,get:function(){return null}}});
var Pv=function(){};Pv.\u0275prov=lc({token:Pv,providedIn:"root",factory:function(){return null}});
var kmb=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 lmb={};
var Qv=function(a){this.ngModule=a};V(Qv,Kv);Qv.prototype.resolveComponentFactory=function(a){return new Rv(a[Bc]||null,this.ngModule)};var mmb=function(a,b){this.injector=a;this.parentInjector=b};mmb.prototype.get=function(a,b,c){var d=this.injector.get(a,lmb,c);return d!==lmb||b===lmb?d:this.parentInjector.get(a,b,c)};
var Rv=function(a,b){this.componentDef=a;this.ngModule=b;this.componentType=a.type;this.selector=a.selectors.map(Ida).join(",");this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[];this.isBoundToModule=!!b};V(Rv,Vlb);
Rv.prototype.create=function(a,b,c,d){d=d||this.ngModule;var e;(d=d instanceof Hv?d:null==(e=d)?void 0:e.injector)&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);var f=d?new mmb(a,d):a,h=f.get(Mv,Mlb),k=f.get(Pv,null);a=h.createRenderer(null,this.componentDef);e=this.componentDef.selectors[0][0]||"div";if(c)a.listen?e=a.selectRootElement(c,3===this.componentDef.encapsulation):(e="string"===typeof c?a.querySelector(c):c,e.textContent="");else{d=h.createRenderer(null,
this.componentDef);var q=e.toLowerCase();e=wda(d,e,"svg"===q?"svg":"math"===q?"math":null)}q=e;var u=this.componentDef.onPush?288:272;e={components:[],scheduler:Wlb,clean:jmb,playerHandler:null,flags:0};d=mea(0,null,null,1,0,null,null,null,null,null);f=Vd(null,d,e,u,null,null,h,a,k,f,null);Cca(f);try{var x=this.componentDef,E=f[1];f[22]=q;var I=Wd(E,22,2,"#host",null),N=I.mergedAttrs=x.hostAttrs;if(null!==N&&(de(I,N,!0),null!==q&&(Zc(a,q,N),null!==I.classes&&Eda(a,q,I.classes),null!==I.styles))){var L=
I.styles;a.listen?a.setAttribute(q,"style",L):q.style.cssText=L}var T=h.createRenderer(q,x),Y=Vd(f,jea(x),null,x.onPush?32:16,f[22],I,h,T,null,null,null);if(E.firstCreatePass){var ja=ed(I,f);dd(ja,E,x.type);qea(E,I);var ha=f.length;I.flags|=1;I.directiveStart=ha;I.directiveEnd=ha+1;I.providerIndexes=ha}Zd(f,Y);var ra=f[22]=Y;if(q)if(c)Zc(a,q,["ng-version",kmb.full]);else{var Fa=this.componentDef.selectors[0];c=[];x=[];E=1;for(I=2;E<Fa.length;){var Ka=Fa[E];if("string"===typeof Ka)2===I?""!==Ka&&c.push(Ka,
Fa[++E]):8===I&&x.push(Ka);else{if(0!==(I&1))break;I=Ka}E++}c&&Zc(a,q,c);x&&0<x.length&&Eda(a,q,x.join(" "))}var Ca=d.data[22];if(void 0!==b){var La=Ca.projection=[];for(Fa=0;Fa<this.ngContentSelectors.length;Fa++){var jb=b[Fa];La.push(null!=jb?Array.from(jb):null)}}var db=this.componentDef;b=[yea];var Mb=f[1],va=Pc();if(Mb.firstCreatePass){db.providersResolver&&db.providersResolver(db);var Ba=fea(Mb,f,1,null);rea(Mb,va,f,Ba,db)}var Ga=id(f,Mb,va.directiveStart,va);yd(Ga,f);var Xa=Lc(va,f);Xa&&yd(Xa,
f);e.components.push(Ga);ra[8]=Ga;if(null!==b)for(var $a=r(b),ec=$a.next();!ec.done;ec=$a.next()){var Va=ec.value;Va(Ga,db)}db.contentQueries&&db.contentQueries(1,Ga,Pc().directiveStart);var Ya=Pc();!Mb.firstCreatePass||null===db.hostBindings&&null===db.hostAttrs||(Oc.selectedIndex=Ya.index,tea(f[1],Ya,Ya.directiveStart,Ya.directiveEnd,db),null!==db.hostBindings&&db.hostBindings(1,Ga));var Sa=Ga;Xd(d,f,null)}finally{Fca()}return new Sv(this.componentType,Sa,xd(Ca,f),f,Ca)};
ji.Object.defineProperties(Rv.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){return zea(this.componentDef.inputs)}},outputs:{configurable:!0,enumerable:!0,get:function(){return zea(this.componentDef.outputs)}}});var Sv=function(a,b,c,d,e){this.location=c;this._rootLView=d;this._tNode=e;this.instance=b;this.hostView=this.changeDetectorRef=new Ov(d);this.componentType=a};V(Sv,Ulb);Sv.prototype.destroy=function(){this.hostView.destroy()};Sv.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
ji.Object.defineProperties(Sv.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new ld(this._tNode,this._rootLView)}}});
var Tv=function(a,b){this._parent=b;this._bootstrapComponents=[];this.injector=this;this.destroyCbs=[];this.componentFactoryResolver=new Qv(this);var c=(a[Llb]||null).bootstrap;this._bootstrapComponents=c instanceof Function?c():c;this._r3Injector=lda(a,b,[{provide:Lv,useValue:this},{provide:Kv,useValue:this.componentFactoryResolver}],hc(a),new Set(["environment"]));mda(this._r3Injector);this.instance=this.get(a)};V(Tv,Lv);
Tv.prototype.get=function(a,b,c){b=void 0===b?Ev:b;return a===Iv||a===Lv||a===Nlb?this:this._r3Injector.get(a,b,void 0===c?0:c)};Tv.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};Tv.prototype.onDestroy=function(a){this.destroyCbs.push(a)};var Uv=function(a){this.moduleType=a};V(Uv,Tlb);Uv.prototype.create=function(a){return new Tv(this.moduleType,a)};
var fe=function(a,b,c){this.componentFactoryResolver=new Qv(this);this.instance=null;this.injector=a=new vd([].concat(v(a),[{provide:Lv,useValue:this},{provide:Kv,useValue:this.componentFactoryResolver}]),b||fda(),c,new Set(["environment"]));mda(a)};V(fe,Lv);fe.prototype.destroy=function(){this.injector.destroy()};fe.prototype.onDestroy=function(a){this.injector.onDestroy(a)};
var nmb=new sd("Application Initializer"),Vv=function(a){var b=this;this.appInits=a;this.reject=this.resolve=Cea;this.done=this.initialized=!1;this.donePromise=new Promise(function(c,d){b.resolve=c;b.reject=d})},omb=function(a){if(!a.initialized){var b=[];if(a.appInits)for(var c={},d=0;d<a.appInits.length;c={$jscomp$loop$prop$initResult$1635:c.$jscomp$loop$prop$initResult$1635},d++)if(c.$jscomp$loop$prop$initResult$1635=a.appInits[d](),ge(c.$jscomp$loop$prop$initResult$1635))b.push(c.$jscomp$loop$prop$initResult$1635);
else if(Bea(c.$jscomp$loop$prop$initResult$1635)){var e=new Promise(function(f){return function(h,k){f.$jscomp$loop$prop$initResult$1635.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}};Vv.\u0275fac=function(a){return new (a||Vv)(t(nmb,8))};Vv.\u0275prov=lc({token:Vv,factory:Vv.\u0275fac,providedIn:"root"});
var pmb=new sd("AppId",{providedIn:"root",factory:Eea}),Bha=new sd("Platform Initializer"),Wv=new sd("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),qmb=new sd("appBootstrapListener");new sd("Application Packages Root URL");var Xv=new sd("AnimationModuleType");
var Yv=function(){};Yv.prototype.log=function(a){console.log(a)};Yv.prototype.warn=function(a){console.warn(a)};Yv.\u0275fac=function(a){return new (a||Yv)};Yv.\u0275prov=lc({token:Yv,factory:Yv.\u0275fac,providedIn:"platform"});
var Gea=["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 Hea={};
var oi=new sd("LocaleId",{providedIn:"root",factory:function(){return uc(oi,12)||("undefined"!==typeof Rt?"en-US":"undefined"!==typeof $localize&&$localize.locale||"en-US")}});new sd("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new sd("Translations");new sd("TranslationsFormat");
var Zv=function(){};Zv.prototype.getModuleId=function(){};Zv.\u0275fac=function(a){return new (a||Zv)};Zv.\u0275prov=lc({token:Zv,factory:Zv.\u0275fac,providedIn:"root"});new sd("compilerOptions");
var je=null;
var Uea=0,Vea=0,Wea=0;
/*


 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.
*/
var rmb=!1,$e={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):rmb&&console.log("RxJS: Back to a better error behavior. Thank you. <3");rmb=a},get useDeprecatedSynchronousErrorHandling(){return rmb}};
var of="function"===typeof Symbol&&Symbol.observable||"@@observable";
var $v={closed:!0,next:function(){},error:function(a){if($e.useDeprecatedSynchronousErrorHandling)throw a;Te(a)},complete:function(){}};
var Xe=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 ff=Array.isArray||function(a){return a&&"number"===typeof a.length};
var We=function(a){this.closed=!1;this._subscriptions=this._parentOrParents=null;a&&(this._ctorUnsubscribe=!0,this._unsubscribe=a)};
We.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 We)a.remove(this);else if(null!==a)for(var e=0;e<a.length;++e)a[e].remove(this);if(Ue(c)){b&&(this._unsubscribe=void 0);try{c.call(this)}catch(q){var f=q instanceof Xe?vfa(q.errors):[q]}}if(ff(d)){e=-1;for(var h=d.length;++e<h;){var k=d[e];if(Ve(k))try{k.unsubscribe()}catch(q){f=
f||[],q instanceof Xe?f=f.concat(vfa(q.errors)):f.push(q)}}}if(f)throw new Xe(f);}};
We.prototype.add=function(a){var b=a;if(!a)return We.EMPTY;switch(typeof a){case "function":b=new We(a);case "object":if(b===this||b.closed||"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;b instanceof We||(a=b,b=new We,b._subscriptions=[a]);break;default:throw Error("wa`"+a);}var c=b._parentOrParents;if(null===c)b._parentOrParents=this;else if(c instanceof We){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};We.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};var smb=new We;smb.closed=!0;We.EMPTY=smb;
var Ye=function(a,b,c){We.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=$v;break;case 1:if(!a){this.destination=$v;break}if("object"===typeof a){a instanceof Ye?(this.syncErrorThrowable=a.syncErrorThrowable,this.destination=a,a.add(this)):(this.syncErrorThrowable=!0,this.destination=new aw(this,a));break}default:this.syncErrorThrowable=!0,this.destination=new aw(this,a,b,c)}};V(Ye,We);Ye.EMPTY=We.EMPTY;
Ye.create=function(a,b,c){a=new Ye(a,b,c);a.syncErrorThrowable=!1;return a};g=Ye.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,We.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()};g._unsubscribeAndRecycle=function(){var a=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parentOrParents=a;return this};
var aw=function(a,b,c,d){Ye.call(this);this._parentSubscriber=a;var e=this;if(Ue(b))var f=b;else b&&(f=b.next,c=b.error,d=b.complete,b!==$v&&(e=Object.create(b),ufa(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};V(aw,Ye);aw.EMPTY=Ye.EMPTY;aw.create=Ye.create;g=aw.prototype;
g.next=function(a){if(!this.isStopped&&this._next){var b=this._parentSubscriber;$e.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=$e.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):Te(a),this.unsubscribe();else{this.unsubscribe();if(c)throw a;Te(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)};$e.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($e.useDeprecatedSynchronousErrorHandling)throw c;Te(c)}};
g.__tryOrSetError=function(a,b,c){if(!$e.useDeprecatedSynchronousErrorHandling)throw Error("xa");try{b.call(this._context,c)}catch(d){return $e.useDeprecatedSynchronousErrorHandling?(a.syncErrorValue=d,a.syncErrorThrown=!0):Te(d),!0}return!1};g._unsubscribe=function(){var a=this._parentSubscriber;this._parentSubscriber=this._context=null;a.unsubscribe()};
var bw=function(a){Ye.call(this);this.destination=a};V(bw,Ye);bw.EMPTY=Ye.EMPTY;bw.create=Ye.create;
var af=function(a){a&&(this._subscribe=a)};g=af.prototype;g.lift=function(a){var b=new af;b.source=this;b.operator=a;return b};
g.subscribe=function(a,b,c){var d=this.operator;a:{if(a){if(a instanceof Ye||yfa(a)&&ufa(a))break a;if(yfa(a)){a=new bw(a);break a}}a=a||b||c?new Ye(a,b,c):new Ye($v)}d?a.add(d.call(a,this.source)):a.add(this.source||$e.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if($e.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){$e.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),wfa(a)?a.error(b):console.warn(b)}};g.forEach=function(a,b){var c=this;b=zfa(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)};af.prototype[of]=function(){return this};
af.prototype.pipe=function(){var a=xc.apply(0,arguments);return 0===a.length?this:xfa(a)(this)};af.create=function(a){return new af(a)};
var cw=function(a,b){We.call(this);this.subject=a;this.subscriber=b;this.closed=!1};V(cw,We);cw.EMPTY=We.EMPTY;cw.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 dw=function(){function a(){this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}a.prototype=Object.create(Error.prototype);return a}();
var dg=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};V(dg,af);g=dg.prototype;g.lift=function(a){var b=new ew(this,this);b.operator=a;return b};g.next=function(a){if(this.closed)throw new dw;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 dw;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 dw;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 dw;return af.prototype._trySubscribe.call(this,a)};g._subscribe=function(a){if(this.closed)throw new dw;if(this.hasError)return a.error(this.thrownError),We.EMPTY;if(this.isStopped)return a.complete(),We.EMPTY;this.observers.push(a);return new cw(this,a)};var tmb=function(a){var b=new af;b.source=a;return b};
ji.Object.defineProperties(dg.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return 0<(null==(a=this.observers)?void 0:a.length)}}});dg.create=function(a,b){return new ew(a,b)};var ew=function(a,b){dg.call(this);this.destination=a;this.source=b};V(ew,dg);ew.create=dg.create;ew.prototype.next=function(a){var b=this.destination;b&&b.next&&b.next(a)};ew.prototype.error=function(a){var b=this.destination;b&&b.error&&this.destination.error(a)};
ew.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};ew.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):We.EMPTY};
var gf=function(){dg.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1};V(gf,dg);gf.create=dg.create;gf.prototype._subscribe=function(a){return this.hasError?(a.error(this.thrownError),We.EMPTY):this.hasCompleted&&this.hasNext?(a.next(this.value),a.complete(),We.EMPTY):dg.prototype._subscribe.call(this,a)};gf.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};gf.prototype.error=function(a){this.hasCompleted||dg.prototype.error.call(this,a)};
gf.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&dg.prototype.next.call(this,this.value);dg.prototype.complete.call(this)};
var fw=function(a){dg.call(this);this._value=a};V(fw,dg);fw.create=dg.create;fw.prototype._subscribe=function(a){var b=dg.prototype._subscribe.call(this,a);b&&!b.closed&&a.next(this._value);return b};fw.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new dw;return this._value};fw.prototype.next=function(a){dg.prototype.next.call(this,this._value=a)};ji.Object.defineProperties(fw.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});
var vf=new af(function(a){return a.complete()});
var Cfa=function(a){return function(b){for(var c=0,d=a.length;c<d&&!b.closed;c++)b.next(a[c]);b.complete()}};
var umb=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a};umb.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)}};
umb.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 gw={now:function(){return(gw.delegate||Date).now()},delegate:void 0};
var cg=function(a,b,c){a=void 0===a?Infinity:a;b=void 0===b?Infinity:b;c=void 0===c?gw:c;dg.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};V(cg,dg);cg.create=dg.create;g=cg.prototype;
g.nextInfiniteTimeWindow=function(a){var b=this._events;b.push(a);b.length>this._bufferSize&&b.shift();dg.prototype.next.call(this,a)};g.nextTimeWindow=function(a){this._events.push({time:this._getNow(),value:a});this._trimBufferThenGetEvents();dg.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 dw;if(this.isStopped||this.hasError)var e=We.EMPTY;else this.observers.push(a),e=new cw(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():gw.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 hw=function(a,b){b=void 0===b?vmb:b;this.SchedulerAction=a;this.now=b};hw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return(new this.SchedulerAction(this,a)).schedule(c,b)};var vmb=gw.now;
var Yf=function(){function a(){this.message="no elements in sequence";this.name="EmptyError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Ffa=function(){};Ffa.prototype.call=function(a,b){b._refCount++;a=new iw(a,b);var c=b.subscribe(a);a.closed||(a.connection=b.connect());return c};var iw=function(a,b){Ye.call(this,a);this.connectable=b;this.connection=null};V(iw,Ye);iw.EMPTY=Ye.EMPTY;iw.create=Ye.create;
iw.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 jw=function(a,b){this.source=a;this.subjectFactory=b;this._refCount=0;this._isComplete=!1};V(jw,af);jw.create=af.create;jw.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};jw.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};
jw.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new We,a.add(this.source.subscribe(new kw(this.getSubject(),this))),a.closed&&(this._connection=null,a=We.EMPTY));return a};jw.prototype.refCount=function(){return ef()(this)};var lha,lw=jw.prototype;
lha={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lw._subscribe},_isComplete:{value:lw._isComplete,writable:!0},getSubject:{value:lw.getSubject},connect:{value:lw.connect},refCount:{value:lw.refCount}};var kw=function(a,b){Ye.call(this);this.destination=a;this.connectable=b};V(kw,Ye);kw.EMPTY=Ye.EMPTY;kw.create=Ye.create;
kw.prototype._error=function(a){this._unsubscribe();Ye.prototype._error.call(this,a)};kw.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();Ye.prototype._complete.call(this)};kw.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 Gfa=function(a){this.project=a;this.thisArg=void 0};Gfa.prototype.call=function(a,b){return b.subscribe(new mw(a,this.project,this.thisArg))};var mw=function(a,b,c){Ye.call(this,a);this.project=b;this.count=0;this.thisArg=c||this};V(mw,Ye);mw.EMPTY=Ye.EMPTY;mw.create=Ye.create;mw.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 nf="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";
var Wfa=function(a){return a&&"number"===typeof a.length&&"function"!==typeof a};
var wmb=function(a){return function(b){var c=a[nf]();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 xmb=function(a){return function(b){var c=a[of]();if("function"!==typeof c.subscribe)throw new TypeError("Ba");return c.subscribe(b)}};
var ymb=function(a){return function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,Te);return b}};
var lf=function(a){if(a&&"function"===typeof a[of])return xmb(a);if(Wfa(a))return Cfa(a);if(Ofa(a))return ymb(a);if(a&&"function"===typeof a[nf])return wmb(a);if(Symbol&&Symbol.asyncIterator&&a&&"function"===typeof a[Symbol.asyncIterator])return Qfa(a);throw new TypeError("Ca`"+(Ve(a)?"an invalid object":"'"+a+"'"));};
var nw=function(a){Ye.call(this);this.parent=a};V(nw,Ye);nw.EMPTY=Ye.EMPTY;nw.create=Ye.create;nw.prototype._next=function(a){this.parent.notifyNext(a)};nw.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};nw.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};var ow=function(a,b,c){Ye.call(this);this.parent=a;this.outerValue=b;this.outerIndex=c};V(ow,Ye);ow.EMPTY=Ye.EMPTY;ow.create=Ye.create;
ow.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex)};ow.prototype._error=function(a){this.parent.notifyError(a);this.unsubscribe()};ow.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};var pw=function(){Ye.apply(this,arguments)};V(pw,Ye);pw.EMPTY=Ye.EMPTY;pw.create=Ye.create;pw.prototype.notifyNext=function(a){this.destination.next(a)};pw.prototype.notifyError=function(a){this.destination.error(a)};
pw.prototype.notifyComplete=function(){this.destination.complete()};var qw=function(){Ye.apply(this,arguments)};V(qw,Ye);qw.EMPTY=Ye.EMPTY;qw.create=Ye.create;qw.prototype.notifyNext=function(a,b){this.destination.next(b)};qw.prototype.notifyError=function(a){this.destination.error(a)};qw.prototype.notifyComplete=function(){this.destination.complete()};
var zmb={},Amb=function(a,b){this.resultSelector=a;this.keys=b};Amb.prototype.call=function(a,b){return b.subscribe(new rw(a,this.resultSelector,this.keys))};var rw=function(a,b,c){qw.call(this,a);this.resultSelector=b;this.keys=c;this.active=0;this.values=[];this.observables=[]};V(rw,qw);rw.EMPTY=qw.EMPTY;rw.create=qw.create;g=rw.prototype;g._next=function(a){this.values.push(zmb);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(mf(a[c],new ow(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===zmb?--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 Yfa=function(a,b){b=void 0===b?Infinity:b;this.project=a;this.concurrent=b};Yfa.prototype.call=function(a,b){return b.subscribe(new sw(a,this.project,this.concurrent))};var sw=function(a,b,c){c=void 0===c?Infinity:c;pw.call(this,a);this.destination=a;this.project=b;this.concurrent=c;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0};V(sw,pw);sw.EMPTY=pw.EMPTY;sw.create=pw.create;
sw.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 nw(this);this.destination.add(a);mf(c,a)}else this.buffer.push(a)};sw.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete();this.unsubscribe()};sw.prototype.notifyNext=function(a){this.destination.next(a)};
sw.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 $fa={now:function(){return($fa.delegate||performance).now()},delegate:void 0};
var aga=function(a){var b=requestAnimationFrame,c=cancelAnimationFrame;Bmb&&(b=Bmb.requestAnimationFrame,c=Bmb.cancelAnimationFrame);var d=b(function(e){c=void 0;a(e)});return new We(function(){var e;return null==(e=c)?void 0:e(d)})},Bmb=void 0;
var Cmb=bga();
var tw=function(){We.call(this)};V(tw,We);tw.EMPTY=We.EMPTY;tw.prototype.schedule=function(){return this};
var uw=function(a,b){We.call(this);this.scheduler=a;this.work=b;this.pending=!1};V(uw,tw);uw.EMPTY=tw.EMPTY;g=uw.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 setInterval(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;clearInterval(b)};g.execute=function(a,b){if(this.closed)return Error("Ga");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 vw=function(a,b){b=void 0===b?vmb:b;hw.call(this,a,function(){return vw.delegate&&vw.delegate!==c?vw.delegate.now():b()});var c=this;this.actions=[];this.active=!1;this.scheduled=void 0};V(vw,hw);vw.prototype.schedule=function(a,b,c){b=void 0===b?0:b;return vw.delegate&&vw.delegate!==this?vw.delegate.schedule(a,b,c):hw.prototype.schedule.call(this,a,b,c)};
vw.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 yf=new vw(uw);
var Dmb=new af(uf);
var kga=function(a,b){this.predicate=a;this.thisArg=b};kga.prototype.call=function(a,b){return b.subscribe(new ww(a,this.predicate,this.thisArg))};var ww=function(a,b,c){Ye.call(this,a);this.predicate=b;this.thisArg=c;this.count=0};V(ww,Ye);ww.EMPTY=Ye.EMPTY;ww.create=Ye.create;ww.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 Emb=function(){};Emb.prototype.call=function(a,b){return b.subscribe(new xw(a))};var xw=function(a){qw.call(this,a);this.hasFirst=!1;this.observables=[];this.subscriptions=[]};V(xw,qw);xw.EMPTY=qw.EMPTY;xw.create=qw.create;g=xw.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=mf(a[c],new ow(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;qw.prototype.notifyComplete.call(this,a)};g.notifyError=function(a){this.hasFirst=!0;qw.prototype.notifyError.call(this,a)};
var Fmb=function(a){this.resultSelector=a};Fmb.prototype.call=function(a,b){return b.subscribe(new yw(a,this.resultSelector))};var yw=function(a,b,c){void 0===c&&Object.create(null);Ye.call(this,a);this.iterators=[];this.active=0;this.resultSelector=b};V(yw,Ye);yw.EMPTY=Ye.EMPTY;yw.create=Ye.create;yw.prototype._next=function(a){var b=this.iterators;ff(a)?b.push(new zw(a)):"function"===typeof a[nf]?b.push(new Aw(a[nf]())):b.push(new Bw(this.destination,this,a))};
yw.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--}}};yw.prototype._tryresultSelector=function(a){try{var b=this.resultSelector.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};var Aw=function(a){this.iterator=a;this.nextResult=a.next()};Aw.prototype.hasValue=function(){return!0};
Aw.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};Aw.prototype.hasCompleted=function(){var a=this.nextResult;return a&&!!a.done};var zw=function(a){this.array=a;this.length=this.index=0;this.length=a.length};zw.prototype[nf]=function(){return this};zw.prototype.next=function(){var a=this.index++,b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};zw.prototype.hasValue=function(){return this.array.length>this.index};
zw.prototype.hasCompleted=function(){return this.array.length===this.index};var Bw=function(a,b,c){pw.call(this,a);this.parent=b;this.observable=c;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1};V(Bw,pw);Bw.EMPTY=pw.EMPTY;Bw.create=pw.create;Bw.prototype[nf]=function(){return this};g=Bw.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 mf(this.observable,new nw(this))};
var Cw=function(a,b,c){this.key=a;this.groupSubject=b;this.refCountSubscription=c};V(Cw,af);Cw.create=af.create;Cw.prototype._subscribe=function(a){var b=new We,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new Dw(c));b.add(d.subscribe(a));return b};var Dw=function(a){We.call(this);this.parent=a;a.count++};V(Dw,We);Dw.EMPTY=We.EMPTY;
Dw.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(We.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};
var sga=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}(),rga=function(a,b,c,d,e){this.first=a;this.each=b;this._with=c;this.scheduler=d;this.meta=e};rga.prototype.call=function(a,b){return b.subscribe(new Ew(a,this.first,this.each,this._with,this.scheduler,this.meta))};
var Ew=function(a,b,c,d,e,f){pw.call(this,a);this.each=c;this._with=d;this.scheduler=e;this.meta=f;this.seen=0;a=null!=b?"number"===typeof b?b:+b-e.now():c;Gmb(this,a)};V(Ew,pw);Ew.EMPTY=pw.EMPTY;Ew.create=pw.create;var Gmb=function(a,b){a._timerSubscription=a.scheduler.schedule(function(){var c=a.meta,d=a.seen,e=void 0===a.lastValue?null:a.lastValue;try{var f=a._with({meta:c,seen:d,lastValue:e})}catch(h){a.destination.error(h);return}a._unsubscribeAndRecycle();a.add(mf(f,new nw(a)))},b);a.add(a._timerSubscription)};
Ew.prototype._next=function(a){var b=this.each,c;null==(c=this._timerSubscription)||c.unsubscribe();this.seen++;this.lastValue=a;null!=b&&Gmb(this,b);pw.prototype._next.call(this,a)};
var Hmb=function(a,b){a=void 0===a?Fw:a;b=void 0===b?Infinity:b;vw.call(this,a,function(){return c.frame});var c=this;this.maxFrames=b;this.frame=0;this.index=-1};V(Hmb,vw);Hmb.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 Fw=function(a,b,c){c=void 0===c?a.index+=1:c;uw.call(this,a,b);this.scheduler=a;this.work=b;this.index=c;this.active=!0;this.index=a.index=c};V(Fw,uw);Fw.EMPTY=uw.EMPTY;Fw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(Number.isFinite(b)){if(!this.id)return uw.prototype.schedule.call(this,a,b);this.active=!1;var c=new Fw(this.scheduler,this.work);this.add(c);return c.schedule(a,b)}return We.EMPTY};
Fw.prototype.requestAsyncId=function(a,b,c){this.delay=a.frame+(void 0===c?0:c);a=a.actions;a.push(this);a.sort(Imb);return!0};Fw.prototype.recycleAsyncId=function(){};Fw.prototype._execute=function(a,b){if(!0===this.active)return uw.prototype._execute.call(this,a,b)};var Imb=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 Gw=function(a,b){uw.call(this,a,b);this.scheduler=a;this.work=b};V(Gw,uw);Gw.EMPTY=uw.EMPTY;Gw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return uw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=requestAnimationFrame(function(){return a.flush(void 0)}))};
Gw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return uw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(cancelAnimationFrame(b),a.scheduled=void 0)};
var Jmb=function(){vw.apply(this,arguments)};V(Jmb,vw);Jmb.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 Kmb=new Jmb(Gw);
var Lmb=1,Mmb,tga={},Nmb=function(a){var b=Lmb++;tga[b]=!0;Mmb||(Mmb=Promise.resolve());Mmb.then(function(){return uga(b)&&a()});return b};
var Hw=function(a,b){uw.call(this,a,b);this.scheduler=a;this.work=b};V(Hw,uw);Hw.EMPTY=uw.EMPTY;Hw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c)return uw.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=Nmb(a.flush.bind(a,void 0)))};
Hw.prototype.recycleAsyncId=function(a,b,c){c=void 0===c?0:c;if(null!==c&&0<c||null===c&&0<this.delay)return uw.prototype.recycleAsyncId.call(this,a,b,c);0===a.actions.length&&(uga(b),a.scheduled=void 0)};
var Omb=function(){vw.apply(this,arguments)};V(Omb,vw);Omb.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 Pmb=new Omb(Hw);
var Iw=function(a,b){uw.call(this,a,b);this.scheduler=a;this.work=b};V(Iw,uw);Iw.EMPTY=uw.EMPTY;Iw.prototype.schedule=function(a,b){b=void 0===b?0:b;if(0<b)return uw.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Iw.prototype.execute=function(a,b){return 0<b||this.closed?uw.prototype.execute.call(this,a,b):this._execute(a,b)};
Iw.prototype.requestAsyncId=function(a,b,c){c=void 0===c?0:c;return null!==c&&0<c||null===c&&0<this.delay?uw.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};
var Qmb=function(){vw.apply(this,arguments)};V(Qmb,vw);
var Rmb=new Qmb(Iw);
var Smb=function(){function a(){this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Tmb=function(){function a(b){this.message=b;this.name="NotFoundError";return this}a.prototype=Object.create(Error.prototype);return a}();
var Umb=function(){function a(b){this.message=b;this.name="SequenceError";return this}a.prototype=Object.create(Error.prototype);return a}();
var U={};U.Observable=af;U.ConnectableObservable=jw;U.GroupedObservable=Cw;U.observable=of;U.animationFrames=function(a){return a?bga(a):Cmb};U.Subject=dg;U.BehaviorSubject=fw;U.ReplaySubject=cg;U.AsyncSubject=gf;U.asap=Pmb;U.asapScheduler=Pmb;U.async=yf;U.asyncScheduler=yf;U.queue=Rmb;U.queueScheduler=Rmb;U.animationFrame=Kmb;U.animationFrameScheduler=Kmb;U.VirtualTimeScheduler=Hmb;U.VirtualAction=Fw;U.Scheduler=hw;U.Subscription=We;U.Subscriber=Ye;U.Notification=umb;
U.NotificationKind={NEXT:"N",ERROR:"E",COMPLETE:"C"};U.pipe=function(){return xfa(xc.apply(0,arguments))};U.noop=uf;U.identity=Ze;U.isObservable=function(a){return!!a&&(a instanceof af||"function"===typeof a.lift&&"function"===typeof a.subscribe)};U.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 Yf)}})})};
U.firstValueFrom=function(a){return new Promise(function(b,c){var d=new We;d.add(a.subscribe({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Yf)}}))})};U.ArgumentOutOfRangeError=Smb;U.EmptyError=Yf;U.NotFoundError=Tmb;U.ObjectUnsubscribedError=dw;U.SequenceError=Umb;U.TimeoutError=sga;U.UnsubscriptionError=Xe;U.bindCallback=Hfa;U.bindNodeCallback=Kfa;
U.combineLatest=function(){var a=xc.apply(0,arguments),b=void 0,c=void 0,d=void 0;cf(a[a.length-1])&&(c=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());if(1===a.length){var e=a[0];ff(e)&&(a=e);Ve(e)&&Object.getPrototypeOf(e)===Object.prototype&&(d=Object.keys(e),a=d.map(function(f){return e[f]}))}return df(bf(a,c),new Amb(b,d))};U.concat=sf;U.defer=Zfa;U.empty=function(a){return a?Afa(a):vf};
U.forkJoin=function(){var a=xc.apply(0,arguments);if(1===a.length){var b=a[0];if(ff(b))return tf(b,null);if(Ve(b)&&Object.getPrototypeOf(b)===Object.prototype)return a=Object.keys(b),tf(a.map(function(d){return b[d]}),a)}if("function"===typeof a[a.length-1]){var c=a.pop();a=1===a.length&&ff(a[0])?a[0]:a;return tf(a,null).pipe(S(function(d){return c.apply(null,v(d))}))}return tf(a,null)};U.from=pf;U.fromEvent=cga;U.fromEventPattern=ega;
U.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||Ze;e=a.scheduler}else void 0===d||cf(d)?(f=a,h=Ze,e=d):(f=a,h=d);return new af(function(k){var q=f;if(e)return e.schedule(fga,0,{subscriber:k,iterate:c,condition:b,resultSelector:h,state:q});do{if(b){var u=void 0;try{u=b(q)}catch(x){k.error(x);break}if(!u){k.complete();break}}u=void 0;try{u=h(q)}catch(x){k.error(x);break}k.next(u);if(k.closed)break;try{q=c(q)}catch(x){k.error(x);
break}}while(1)})};U.iif=function(a,b){var c=(0,U.of)(!1);b=void 0===b?vf:b;c=void 0===c?vf:c;return Zfa(function(){return a()?b:c})};U.interval=function(a,b){a=void 0===a?0:a;b=void 0===b?yf:b;if(!gga(a)||0>a)a=0;b&&"function"===typeof b.schedule||(b=yf);return new af(function(c){c.add(b.schedule(hga,a,{subscriber:c,counter:0,period:a}));return c})};
U.merge=function(){var a=xc.apply(0,arguments),b=Infinity,c=void 0,d=a[a.length-1];cf(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 af?a[0]:rf(b)(bf(a,c))};U.never=function(){return Dmb};U.of=Dfa;U.onErrorResumeNext=iga;
U.pairs=function(a,b){return b?new af(function(c){var d=Object.keys(a),e=new We;e.add(b.schedule(jga,0,{keys:d,index:0,subscriber:c,subscription:e,obj:a}));return e}):new af(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()})};U.partition=function(a,b,c){return[xf(b,c)(new af(lf(a))),xf(lga(b,c))(new af(lf(a)))]};
U.race=function(){var a=xc.apply(0,arguments);if(1===a.length)if(ff(a[0]))a=a[0];else return pf(a[0]);return df(bf(a),new Emb)};U.range=function(a,b,c){a=void 0===a?0:a;return new af(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)})};U.throwError=function(a,b){return b?new af(function(c){return b.schedule(Efa,0,{error:a,subscriber:c})}):new af(function(c){return c.error(a)})};
U.timer=pga;U.using=function(a,b){return new af(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?pf(e):vf).subscribe(c);return function(){f.unsubscribe();d&&d.unsubscribe()}})};U.zip=function(){var a=xc.apply(0,arguments),b=void 0;"function"===typeof a[a.length-1]&&(b=a.pop());return df(bf(a),new Fmb(b))};U.scheduled=Xfa;U.EMPTY=vf;U.NEVER=Dmb;U.config=$e;
var Jw=function(a){a=void 0===a?!1:a;U.Subject.call(this);this.__isAsync=a};V(Jw,U.Subject);Jw.create=U.Subject.create;Jw.prototype.emit=function(a){U.Subject.prototype.next.call(this,a)};
Jw.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=vga(b),d&&(d=vga(d)),c&&(c=vga(c)));d=U.Subject.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof U.Subscription&&a.add(d);return d};
var Kf=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=ke(),c=Kf.prototype;c[b]||(c[b]=wga)};g=Kf.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=Tca(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 Ff=function(a){!a._changes||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.emit(a)};Kf.prototype.setDirty=function(){this.dirty=!0};
Kf.prototype.destroy=function(){this.changes.complete();this.changes.unsubscribe()};ji.Object.defineProperties(Kf.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){return this._changes||(this._changes=new Jw)}}});Symbol.iterator;
var Df=function(){};Df.__NG_ELEMENT_ID__=xga;var Bf=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};V(Bf,Df);Bf.__NG_ELEMENT_ID__=Df.__NG_ELEMENT_ID__;
Bf.prototype.createEmbeddedView=function(a,b){var c=this._declarationTContainer.tViews;b=Vd(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));Xd(c,b,a);return new sg(b)};
var Ef=function(){};Ef.__NG_ELEMENT_ID__=zga;var Cf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};V(Cf,Ef);Cf.__NG_ELEMENT_ID__=Ef.__NG_ELEMENT_ID__;g=Cf.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){var d=a&&"function"!==typeof a;if(!d){var e=b||{};b=e.index;c=e.injector;var f=e.projectableNodes;e=e.environmentInjector||e.ngModuleRef}a=d?a:new Rv(a[Bc]||null);c=c||this.parentInjector;e||null!=a.ngModule||(d=(d?c:this.parentInjector).get(Hv,null))&&(e=d);f=a.create(c,f,void 0,e);this.insert(f.hostView,b);return f};
g.insert=function(a,b){var c=a._lView,d=c[1];if(Gc(c[3])){var e=this.indexOf(a);-1!==e?this.detach(e):(e=c[3],e=new Cf(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&&Vmb(f,d);c[2]|=64;f=Cda(b,e);h=c[11];var k=vda(h,e[7]);if(null!==
k){var q=e[6];c[0]=k;c[6]=q;Id(h,1,d.firstChild,c,k,f,!1)}if(a._appRef)throw new pc(902,"");a._attachedToViewContainer=!0;c=Aga(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=yda(this._lContainer,a);b&&(od(Aga(this._lContainer),a),Ada(b[1],b))};
g.detach=function(a){a=this._adjustIndex(a,-1);var b=yda(this._lContainer,a);return b&&null!=od(Aga(this._lContainer),a)?new sg(b):null};g._adjustIndex=function(a,b){return null==a?this.length+(void 0===b?0:b):a};
ji.Object.defineProperties(Cf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return xd(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new ld(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Mca(this._hostTNode,this._hostLView);if(-1!==a){var b=ad(a,this._hostLView);return new ld(b[1].data[(a&32767)+8],b)}return new ld(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});
var Mf=function(a){this.queryList=a;this.matches=null};Mf.prototype.clone=function(){return new Mf(this.queryList)};Mf.prototype.setDirty=function(){this.queryList.setDirty()};var Lf=function(a){this.queries=a=void 0===a?[]:a};Lf.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 Lf(c)}return null};
Lf.prototype.detachView=function(a){Vmb(this,a)};var Vmb=function(a,b){for(var c=0;c<a.queries.length;c++)null!==b.queries.queries[c].matches&&a.queries[c].setDirty()},Ega=function(a,b,c){this.predicate=a;this.flags=b;this.read=void 0===c?null:c},Nf=function(a){this.queries=a=void 0===a?[]:a};g=Nf.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 Nf(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)};ji.Object.defineProperties(Nf.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var Of=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};
Of.prototype.elementStart=function(a,b){if(Wmb(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}Kw(this,a,b,f);Kw(this,a,b,hd(b,a,e,!1,!1))}else c===Df?b.type&4&&Kw(this,a,b,-1):Kw(this,a,b,hd(b,a,c,!1,!1))}};Of.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
Of.prototype.template=function(a,b){this.elementStart(a,b)};Of.prototype.embeddedTView=function(a,b){return Wmb(this,a)?(this.crossesNgTemplate=!0,Lw(this,-a.index,b),new Of(this.metadata)):null};
var Wmb=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},Kw=function(a,b,c,d){if(null!==d){var e=a.metadata.read;null!==e?e===wd||e===Ef||e===Df&&c.type&4?Lw(a,c.index,-2):(b=hd(c,b,e,!1,!1),null!==b&&Lw(a,c.index,b)):Lw(a,c.index,d)}},Lw=function(a,b,c){null===a.matches?a.matches=[b,c]:a.matches.push(b,c)};
var Gga=Promise.resolve(0);
var qg=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 Jw(!1);this.onMicrotaskEmpty=new Jw(!1);this.onStable=new Jw(!1);this.onError=new Jw(!1);if("undefined"==typeof Zone)throw Error("Ia");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=Cd.requestAnimationFrame;c=Cd.cancelAnimationFrame;"undefined"!==typeof Zone&&b&&c&&((c=b[Zone.__symbol__("OriginalDelegate")])&&(b=c),Zone.__symbol__("OriginalDelegate"));
this.nativeRequestAnimationFrame=b;Lga(this)},Mw=function(){return"undefined"!==typeof Zone&&!0===Zone.current.get("isAngularZone")};qg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};qg.prototype.runTask=function(a,b,c){var d=this._inner;a=d.scheduleEventTask("NgZoneEvent: undefined",a,Xmb,Cea,Cea);try{return d.runTask(a,b,c)}finally{d.cancelTask(a)}};qg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};qg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var Xmb={},pg=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new Jw;this.onMicrotaskEmpty=new Jw;this.onStable=new Jw;this.onError=new Jw};pg.prototype.run=function(a,b,c){return a.apply(b,c)};pg.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};pg.prototype.runOutsideAngular=function(a){return a()};pg.prototype.runTask=function(a,b,c){return a.apply(b,c)};
var Ymb=new sd(""),Nw=new sd(""),Ow=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;Zmb||(Zmb=c,$mb(b));this._watchAngularEvents();a.run(function(){d.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})};
Ow.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(){if(Mw())throw Error("Ka");Hga(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};Ow.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Ow.prototype._runCallbacksIfReady=function(){var a=this;if(this.isStable())Hga(function(){for(;0!==a._callbacks.length;){var c=a._callbacks.pop();clearTimeout(c.timeoutId);c.doneCb(a._didWork)}a._didWork=!1});else{var b=anb(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0});this._didWork=!0}};
var anb=function(a){return a.taskTrackingZone?a.taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=Ow.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,anb(d))},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this.taskTrackingZone)throw Error("La");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[]};Ow.\u0275fac=function(a){return new (a||Ow)(t(qg),t(Pw),t(Nw))};Ow.\u0275prov=lc({token:Ow,factory:Ow.\u0275fac});var Pw=function(){this._applications=new Map};
Pw.prototype.registerApplication=function(a,b){this._applications.set(a,b)};Pw.prototype.unregisterApplication=function(a){this._applications.delete(a)};Pw.prototype.findTestabilityInTree=function(a,b){var c,d;return null!=(d=null==(c=Zmb)?void 0:c.findTestabilityInTree(this,a,void 0===b?!0:b))?d:null};Pw.\u0275fac=function(a){return new (a||Pw)};Pw.\u0275prov=lc({token:Pw,factory:Pw.\u0275fac,providedIn:"platform"});var Zmb;
var Mga=function(a){this.durationSelector=a};Mga.prototype.call=function(a,b){return b.subscribe(new Qw(a,this.durationSelector))};var Qw=function(a,b){pw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.throttled=null};V(Qw,pw);Qw.EMPTY=pw.EMPTY;Qw.create=pw.create;
Qw.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=mf(c,new nw(this));!a||a.closed?bnb(this):this.add(this.throttled=a)}};var bnb=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))};Qw.prototype.notifyNext=function(){bnb(this)};Qw.prototype.notifyComplete=function(){bnb(this)};
var Oga=function(a){this.closingNotifier=a};Oga.prototype.call=function(a,b){return b.subscribe(new Rw(a,this.closingNotifier))};var Rw=function(a,b){pw.call(this,a);this.buffer=[];this.add(mf(b,new nw(this)))};V(Rw,pw);Rw.EMPTY=pw.EMPTY;Rw.create=pw.create;Rw.prototype._next=function(a){this.buffer.push(a)};Rw.prototype.notifyNext=function(){var a=this.buffer;this.buffer=[];this.destination.next(a)};
var Qga=function(a){this.selector=a};Qga.prototype.call=function(a,b){return b.subscribe(new Sw(a,this.selector,this.caught))};var Sw=function(a,b,c){pw.call(this,a);this.selector=b;this.caught=c};V(Sw,pw);Sw.EMPTY=pw.EMPTY;Sw.create=pw.create;Sw.prototype.error=function(a){if(!this.isStopped){try{var b=this.selector(a,this.caught)}catch(c){pw.prototype.error.call(this,c);return}this._unsubscribeAndRecycle();a=new nw(this);this.add(a);mf(b,a)}};
var Sga=function(a){this.durationSelector=a};Sga.prototype.call=function(a,b){return b.subscribe(new Tw(a,this.durationSelector))};var Tw=function(a,b){pw.call(this,a);this.durationSelector=b;this.value=null;this.hasValue=!1;this.durationSubscription=null};V(Tw,pw);Tw.EMPTY=pw.EMPTY;Tw.create=pw.create;g=Tw.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(){cnb(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=mf(b,new nw(this)))&&!c.closed&&this.add(this.durationSubscription=c)};g.notifyNext=function(){cnb(this)};g.notifyComplete=function(){cnb(this)};var cnb=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;pw.prototype._next.call(a,b)}};
var Uga=function(a,b){this.dueTime=a;this.scheduler=b};Uga.prototype.call=function(a,b){return b.subscribe(new Uw(a,this.dueTime,this.scheduler))};var Uw=function(a,b,c){Ye.call(this,a);this.dueTime=b;this.scheduler=c;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1};V(Uw,Ye);Uw.EMPTY=Ye.EMPTY;Uw.create=Ye.create;Uw.prototype._next=function(a){dnb(this);this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(Wga,this.dueTime,this))};
Uw.prototype._complete=function(){Vga(this);this.destination.complete()};var Vga=function(a){dnb(a);if(a.hasValue){var b=a.lastValue;a.lastValue=null;a.hasValue=!1;a.destination.next(b)}},dnb=function(a){var b=a.debouncedSubscription;null!==b&&(a.remove(b),b.unsubscribe(),a.debouncedSubscription=null)};
var Xga=function(a){this.defaultValue=a};Xga.prototype.call=function(a,b){return b.subscribe(new Vw(a,this.defaultValue))};var Vw=function(a,b){Ye.call(this,a);this.defaultValue=b;this.isEmpty=!0};V(Vw,Ye);Vw.EMPTY=Ye.EMPTY;Vw.create=Ye.create;Vw.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};Vw.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};
var Yga=function(a,b){this.delay=a;this.scheduler=b};Yga.prototype.call=function(a,b){return b.subscribe(new Ww(a,this.delay,this.scheduler))};var Ww=function(a,b,c){Ye.call(this,a);this.destination=a;this.delay=b;this.scheduler=c;this.queue=[];this.active=!1};V(Ww,Ye);Ww.EMPTY=Ye.EMPTY;Ww.create=Ye.create;
var enb=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)};Ww.prototype._schedule=function(a){this.active=!0;var b=this.destination;b.add(a.schedule(enb,this.delay,{source:this,destination:b,scheduler:a}))};
Ww.prototype._next=function(a){var b=this.scheduler;a=new fnb(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)};Ww.prototype._error=function(a){this.queue.length=0;this.destination.error(a);this.unsubscribe()};Ww.prototype._complete=function(){0===this.queue.length&&this.destination.complete();this.unsubscribe()};var fnb=function(a,b){this.time=a;this.value=b};
var Zga=function(a){this.compare=a;this.keySelector=void 0};Zga.prototype.call=function(a,b){return b.subscribe(new Xw(a,this.compare,this.keySelector))};var Xw=function(a,b,c){Ye.call(this,a);this.keySelector=c;this.hasKey=!1;"function"===typeof b&&(this.compare=b)};V(Xw,Ye);Xw.EMPTY=Ye.EMPTY;Xw.create=Ye.create;Xw.prototype.compare=function(a,b){return a===b};
Xw.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 $ga=function(){this.count=1};$ga.prototype.call=function(a,b){return b.subscribe(new Yw(a,this.count))};var Yw=function(a,b){Ye.call(this,a);this.count=b;this._valueCount=0};V(Yw,Ye);Yw.EMPTY=Ye.EMPTY;Yw.create=Ye.create;Yw.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 bha=function(a){this.errorFactory=a};bha.prototype.call=function(a,b){return b.subscribe(new Zw(a,this.errorFactory))};var Zw=function(a,b){Ye.call(this,a);this.errorFactory=b;this.hasValue=!1};V(Zw,Ye);Zw.EMPTY=Ye.EMPTY;Zw.create=Ye.create;Zw.prototype._next=function(a){this.hasValue=!0;this.destination.next(a)};Zw.prototype._complete=function(){if(this.hasValue)return this.destination.complete();try{var a=this.errorFactory()}catch(b){a=b}this.destination.error(a)};
var dha=function(a){this.callback=a};dha.prototype.call=function(a,b){a=b.subscribe(a);a.add(this.callback);return a};
var eha=function(){};eha.prototype.call=function(a,b){return b.subscribe(new $w(a))};var $w=function(){Ye.apply(this,arguments)};V($w,Ye);$w.EMPTY=Ye.EMPTY;$w.create=Ye.create;$w.prototype._next=function(){};
var gha=function(){this.total=1};gha.prototype.call=function(a,b){return b.subscribe(new ax(a,this.total))};var ax=function(a,b){Ye.call(this,a);this.total=b;this.ring=[];this.count=0};V(ax,Ye);ax.EMPTY=Ye.EMPTY;ax.create=Ye.create;ax.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};
ax.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 jha=function(a){this.value=a};jha.prototype.call=function(a,b){return b.subscribe(new bx(a,this.value))};var bx=function(a,b){Ye.call(this,a);this.value=b};V(bx,Ye);bx.EMPTY=Ye.EMPTY;bx.create=Ye.create;bx.prototype._next=function(){this.destination.next(this.value)};
var kha=function(a,b,c){this.accumulator=a;this.seed=b;this.hasSeed=void 0===c?!1:c};kha.prototype.call=function(a,b){return b.subscribe(new cx(a,this.accumulator,this.seed,this.hasSeed))};var cx=function(a,b,c,d){Ye.call(this,a);this.accumulator=b;this._state=c;this._hasState=d;this.index=0};V(cx,Ye);cx.EMPTY=Ye.EMPTY;cx.create=Ye.create;
cx.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 qha=function(a){this.total=a};qha.prototype.call=function(a,b){return b.subscribe(new dx(a,this.total))};var dx=function(a,b){Ye.call(this,a);this.total=b;this.count=0};V(dx,Ye);dx.EMPTY=Ye.EMPTY;dx.create=Ye.create;dx.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};
var rha=function(a){this.project=a};rha.prototype.call=function(a,b){return b.subscribe(new ex(a,this.project))};var ex=function(a,b){pw.call(this,a);this.destination=a;this.project=b;this.index=0};V(ex,pw);ex.EMPTY=pw.EMPTY;ex.create=pw.create;g=ex.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 nw(this);this.destination.add(a);this.innerSubscription=a;mf(c,a)};
g._complete=function(){var a=this.innerSubscription;a&&!a.closed||pw.prototype._complete.call(this);this.unsubscribe()};g._unsubscribe=function(){this.innerSubscription=void 0};g.notifyComplete=function(){this.innerSubscription=void 0;this.isStopped&&pw.prototype._complete.call(this)};g.notifyNext=function(a){this.destination.next(a)};
var tha=function(a){this.notifier=a};tha.prototype.call=function(a,b){a=new fx(a);var c=mf(this.notifier,new nw(a));return c&&!a.notifierHasNotified?(a.add(c),b.subscribe(a)):a};var fx=function(a){pw.call(this,a);this.notifierHasNotified=!1};V(fx,pw);fx.EMPTY=pw.EMPTY;fx.create=pw.create;fx.prototype.notifyNext=function(){this.notifierHasNotified=!0;this.complete()};fx.prototype.notifyComplete=function(){};
var uha=function(a,b){this.predicate=a;this.inclusive=b};uha.prototype.call=function(a,b){return b.subscribe(new gx(a,this.predicate,this.inclusive))};var gx=function(a,b,c){Ye.call(this,a);this.predicate=b;this.inclusive=c;this.index=0};V(gx,Ye);gx.EMPTY=Ye.EMPTY;gx.create=Ye.create;gx.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 wha=function(a,b){this.nextOrObserver=a;this.error=b;this.complete=void 0};wha.prototype.call=function(a,b){return b.subscribe(new hx(a,this.nextOrObserver,this.error,this.complete))};var hx=function(a,b,c,d){Ye.call(this,a);this._tapComplete=this._tapError=this._tapNext=uf;this._tapError=c||uf;this._tapComplete=d||uf;Ue(b)?(this._context=this,this._tapNext=b):b&&(this._context=b,this._tapNext=b.next||uf,this._tapError=b.error||uf,this._tapComplete=b.complete||uf)};V(hx,Ye);hx.EMPTY=Ye.EMPTY;
hx.create=Ye.create;hx.prototype._next=function(a){try{this._tapNext.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.next(a)};hx.prototype._error=function(a){try{this._tapError.call(this._context,a)}catch(b){this.destination.error(b);return}this.destination.error(a)};hx.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(a){this.destination.error(a);return}return this.destination.complete()};
var xha={leading:!0,trailing:!1},yha=function(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c};yha.prototype.call=function(a,b){return b.subscribe(new ix(a,this.durationSelector,this.leading,this.trailing))};var ix=function(a,b,c,d){pw.call(this,a);this.destination=a;this.durationSelector=b;this._leading=c;this._trailing=d;this._sendValue=null;this._hasValue=!1};V(ix,pw);ix.EMPTY=pw.EMPTY;ix.create=pw.create;
ix.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():gnb(this,a))};ix.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),gnb(this,a));this._hasValue=!1;this._sendValue=null};var gnb=function(a,b){try{var c=a.durationSelector(b)}catch(d){a.destination.error(d);return}a.add(a._throttled=mf(c,new nw(a)))},hnb=function(a){var b=a._throttled,c=a._trailing;b&&b.unsubscribe();a._throttled=null;c&&a.send()};
ix.prototype.notifyNext=function(){hnb(this)};ix.prototype.notifyComplete=function(){hnb(this)};
var Aha=function(a,b){this.observables=a;this.project=b};Aha.prototype.call=function(a,b){return b.subscribe(new jx(a,this.observables,this.project))};var jx=function(a,b,c){qw.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(mf(b[c],new ow(this,void 0,c)))};V(jx,qw);jx.EMPTY=qw.EMPTY;jx.create=qw.create;
jx.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))};jx.prototype.notifyComplete=function(){};jx.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(v(this.values)),this.project?this._tryProject(a):this.destination.next(a))};jx.prototype._tryProject=function(a){try{var b=this.project.apply(this,a)}catch(c){this.destination.error(c);return}this.destination.next(b)};
var mg=null,Eha=new sd("AllowMultipleToken"),Iha=new sd("PlatformOnDestroy"),inb=function(a,b){this.name=a;this.token=b},ng=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},jnb=function(a,b,c){var d=Jha(null==c?void 0:c.ngZone,{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}),e=[{provide:qg,useValue:d}];return d.run(function(){var f=og({providers:e,
parent:a.injector,name:b.moduleType.name}),h=b.create(f),k=h.injector.get(ce,null);if(!k)throw new pc(402,"");d.runOutsideAngular(function(){var q=d.onError.subscribe({next:function(u){k.handleError(u)}});h.onDestroy(function(){rg(a._modules,h);q.unsubscribe()})});return Kha(k,d,function(){var q=h.injector.get(Vv);omb(q);return q.donePromise.then(function(){var u=h.injector.get(oi,"en-US")||"en-US";if(null==u)throw Error("na`Expected localeId to be defined` [Expected=> null != "+(u+" <=Actual]"));
a._moduleDoBootstrap(h);return h})})})},lnb=function(){var a=knb(),b=kx;var c=void 0===c?[]:c;var d=Lha({},c);Promise.resolve(new Uv(b)).then(function(e){return jnb(a,e,d)})};ng.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(lx);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 pc(403,"");this._modules.push(a)};ng.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
ng.prototype.destroy=function(){if(this._destroyed)throw new pc(404,"");this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a;null==(a=this._injector.get(Iha,null))||a();this._destroyed=!0};ji.Object.defineProperties(ng.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
ng.\u0275fac=function(a){return new (a||ng)(t(Iv))};ng.\u0275prov=lc({token:ng,factory:ng.\u0275fac,providedIn:"platform"});
var lx=function(a,b,c,d){var e=this;this._zone=a;this._injector=b;this._exceptionHandler=c;this._initStatus=d;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(){e._zone.run(function(){mnb(e)})}});this.isStable=(0,U.merge)(new U.Observable(function(f){e._stable=e._zone.isStable&&!e._zone.hasPendingMacrotasks&&
!e._zone.hasPendingMicrotasks;e._zone.runOutsideAngular(function(){f.next(e._stable);f.complete()})}),(new U.Observable(function(f){var h;e._zone.runOutsideAngular(function(){h=e._zone.onStable.subscribe(function(){if(Mw())throw Error("Ka");Hga(function(){e._stable||e._zone.hasPendingMacrotasks||e._zone.hasPendingMicrotasks||(e._stable=!0,f.next(!0))})})});var k=e._zone.onUnstable.subscribe(function(){if(!Mw())throw Error("Ja");e._stable&&(e._stable=!1,e._zone.runOutsideAngular(function(){f.next(!1)}))});
return function(){h.unsubscribe();k.unsubscribe()}})).pipe(eg()))};
lx.prototype.bootstrap=function(a,b){var c=this,d=a instanceof Vlb;if(!this._initStatus.done)throw new pc(405,!1);var e;d?e=a:e=this._injector.get(Kv).resolveComponentFactory(a);this.componentTypes.push(e.componentType);a=e.isBoundToModule?void 0:this._injector.get(Lv);var f=e.create(Qlb,[],b||e.selector,a),h=f.location.nativeElement,k=f.injector.get(Ymb,null);null==k||k.registerApplication(h);f.onDestroy(function(){c.detachView(f.hostView);rg(c.components,f);null==k||k.unregisterApplication(h)});
this._loadComponent(f);return f};var mnb=function(a){if(a._runningTick)throw new pc(101,"");try{a._runningTick=!0;for(var b=r(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}},nnb=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new pc(902,"");b._appRef=a};g=lx.prototype;
g.detachView=function(a){rg(this._views,a);a._appRef=null;var b=a._lView;Id(b[11],2,a._lView[1].firstChild,b,null,null,!1)};g._loadComponent=function(a){nnb(this,a.hostView);mnb(this);this.components.push(a);this._injector.get(qmb,[]).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 rg(b._destroyListeners,a)}};
g.destroy=function(){if(this._destroyed)throw new pc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};ji.Object.defineProperties(lx.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}}});lx.\u0275fac=function(a){return new (a||lx)(t(qg),t(Iv),t(ce),t(Vv))};
lx.\u0275prov=lc({token:lx,factory:lx.\u0275fac,providedIn:"root"});
var onb=new sd("AnalyzeForEntryComponents");
var mx=function(){};mx.\u0275fac=function(a){return new (a||mx)(t(lx))};mx.\u0275mod=Cc({type:mx});mx.\u0275inj=mc({});
var nx=function(){};nx.__NG_ELEMENT_ID__=Mha;
var pnb=function(){};pnb.prototype.supports=function(a){return Nea(a)};pnb.prototype.create=function(a){return new ox(a)};var qnb=function(a,b){return b},ox=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||qnb};
ox.prototype.forEachItem=function(a){var b;for(b=this._itHead;null!==b;b=b._next)a(b)};var rnb=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Nha(a,d,e)?c:a,h=Nha(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,null==f.previousIndex)d++;else{e||(e=[]);var q=h-d,u=k-d;if(q!=u){for(var x=0;x<q;x++){var E=x<e.length?e[x]:e[x]=0,I=E+x;u<=I&&I<q&&(e[x]=E+1)}e[f.previousIndex]=u-q}}h!==k&&b(f,h,k)}};
ox.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)};ox.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)};var snb=function(a,b){for(a=a._identityChangesHead;null!==a;a=a._nextIdentityChange)b(a)};g=ox.prototype;g.diff=function(a){null==a&&(a=[]);if(!Nea(a))throw new pc(900,"");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;Oea(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 tnb(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 px);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 px);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};ji.Object.defineProperties(ox.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}});
var tnb=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},qx=function(){this._tail=this._head=null};qx.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)};
qx.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};qx.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 px=function(){this.map=new Map};px.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new qx,this.map.set(b,c));c.add(a)};
px.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};px.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};px.prototype.clear=function(){this.map.clear()};ji.Object.defineProperties(px.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return 0===this.map.size}}});
var unb=function(){};unb.prototype.supports=function(a){return a instanceof Map||Mea(a)};unb.prototype.create=function(){return new rx};var rx=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};rx.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)};var vnb=function(a,b){for(a=a._changesHead;null!==a;a=a._nextChanged)b(a)};
g=rx.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||Mea(a)))throw new pc(900,"");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 wnb(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)})};ji.Object.defineProperties(rx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}});var wnb=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};
var sx=function(a){this.factories=a};sx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(null!=b)return b;throw new pc(901,"");};sx.\u0275prov=lc({token:sx,providedIn:"root",factory:function(){return new sx([new pnb])}});
var tx=function(a){this.factories=a};tx.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new pc(901,"");};tx.\u0275prov=lc({token:tx,providedIn:"root",factory:function(){return new tx([new unb])}});
var xnb=function(){};
var ynb=Gha(null,"core",[]);
var ux=function(a,b){this._viewContainer=a;this._context=new znb;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
ux.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)))};
ji.Object.defineProperties(ux.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){Oha("ngIfThen",a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Oha("ngIfElse",a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});ux.\u0275fac=function(a){return new (a||ux)(C(Ef),C(Df))};
ux.\u0275dir=w({type:ux,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var znb=function(){this.ngIf=this.$implicit=null};
var vx=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};vx.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};vx.prototype.registerOnTouched=function(a){this.onTouched=a};vx.prototype.registerOnChange=function(a){this.onChange=a};vx.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};vx.\u0275fac=function(a){return new (a||vx)(C(Nv),C(wd))};vx.\u0275dir=w({type:vx});
var Rg=function(){vx.apply(this,arguments)};V(Rg,vx);Rg.\u0275fac=function(){var a;return function(b){return(a||(a=md(Rg)))(b||Rg)}}();Rg.\u0275dir=w({type:Rg,features:[ie]});var wx=new sd("NgValueAccessor");
var xx=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=xx.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)});vnb(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("Oa`"+hc(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)})};
ji.Object.defineProperties(xx.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)Nea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create()}}});xx.\u0275fac=function(a){return new (a||xx)(C(sx),C(tx),C(wd),C(Nv))};xx.\u0275dir=w({type:xx,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});
var Anb=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};ji.Object.defineProperties(Anb.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 yx=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};yx.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)};
yx.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;rnb(a,function(h,k,q){null==h.previousIndex?c.createEmbeddedView(b._template,new Anb(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}snb(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
ji.Object.defineProperties(yx.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)}}});yx.\u0275fac=function(a){return new (a||yx)(C(Ef),C(Df),C(sx))};
yx.\u0275dir=w({type:yx,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});
var zx=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};zx.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};zx.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var Ax=function(){this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};Ax.prototype._addCase=function(){return this._caseCount++};
Ax.prototype._addDefault=function(a){this._defaultViews||(this._defaultViews=[]);this._defaultViews.push(a)};Ax.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};
Ax.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()}}};ji.Object.defineProperties(Ax.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;0===this._caseCount&&this._updateDefaultCases(!0)}}});Ax.\u0275fac=function(a){return new (a||Ax)};
Ax.\u0275dir=w({type:Ax,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var Bx=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new zx(a,b)};Bx.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};Bx.\u0275fac=function(a){return new (a||Bx)(C(Ef),C(Df),C(Ax,9))};Bx.\u0275dir=w({type:Bx,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var Cx=function(a,b,c){c._addDefault(new zx(a,b))};Cx.\u0275fac=function(a){return new (a||Cx)(C(Ef),C(Df),C(Ax,9))};Cx.\u0275dir=w({type:Cx,selectors:[["","ngSwitchDefault",""]]});
var Dx=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};Dx.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};Dx.prototype._setStyle=function(a,b){var c=r(a.split("."));a=c.next().value;c=c.next().value;b=null!=b&&c?""+b+c:b;null!=b?this._renderer.setStyle(this._ngEl.nativeElement,a,b):this._renderer.removeStyle(this._ngEl.nativeElement,a)};
Dx.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)});vnb(a,function(c){return b._setStyle(c.key,c.currentValue)})};ji.Object.defineProperties(Dx.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});Dx.\u0275fac=function(a){return new (a||Dx)(C(wd),C(tx),C(Nv))};
Dx.\u0275dir=w({type:Dx,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});
var Ex=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};
Ex.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)};
Ex.\u0275fac=function(a){return new (a||Ex)(C(Ef))};Ex.\u0275dir=w({type:Ex,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Jc]});
var Bnb=function(){};Bnb.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(c){throw c;}})};Bnb.prototype.dispose=function(a){a.unsubscribe()};var Cnb=function(){};Cnb.prototype.createSubscription=function(a,b){return a.then(b,function(c){throw c;})};Cnb.prototype.dispose=function(){};var Dnb=new Cnb,Enb=new Bnb,Fx=function(a){this._strategy=this._obj=this._subscription=this._latestValue=null;this._ref=a};g=Fx.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(ge(a))return Dnb;if(Bea(a))return Enb;throw zg();};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())};Fx.\u0275fac=function(a){return new (a||Fx)(C(nx,16))};Fx.\u0275pipe=Ec({name:"async",type:Fx,pure:!1});
var Gx=function(){};Gx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw zg();return a.toLowerCase()};Gx.\u0275fac=function(a){return new (a||Gx)};Gx.\u0275pipe=Ec({name:"lowercase",type:Gx,pure:!0});
var Fnb=/(?:[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,Hx=
function(){};Hx.prototype.transform=function(a){if(null==a)return null;if("string"!==typeof a)throw zg();return a.replace(Fnb,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Hx.\u0275fac=function(a){return new (a||Hx)};Hx.\u0275pipe=Ec({name:"titlecase",type:Hx,pure:!0});
var gia=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gg={},Yha=/((?:[^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]*)/,aia={};
var Gnb=new sd("DATE_PIPE_DEFAULT_TIMEZONE"),Ix=function(a,b){this.locale=a;this.defaultTimezone=b};Ix.prototype.transform=function(a,b,c,d){if(null==a||""===a||a!==a)return null;try{var e;return cia(a,void 0===b?"mediumDate":b,d||this.locale,null!=(e=null!=c?c:this.defaultTimezone)?e:void 0)}catch(f){throw zg();}};Ix.\u0275fac=function(a){return new (a||Ix)(C(oi,16),C(Gnb,24))};Ix.\u0275pipe=Ec({name:"date",type:Ix,pure:!0});
var Jx=function(a){this.differs=a;this.keyValues=[];this.compareFn=iia};Jx.prototype.transform=function(a,b){var c=this;b=void 0===b?iia: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};
Jx.\u0275fac=function(a){return new (a||Jx)(C(tx,16))};Jx.\u0275pipe=Ec({name:"keyvalue",type:Jx,pure:!1});
var lia=/^(\d+)?\.((\d+)(-(\d+))?)?$/;
var Kx=function(a){this._locale=a};
Kx.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("Ya`"+a);var d=a}else d=Number(a);a=d;var e=he(c)[14][0],f=yg(c,5);f=void 0===f?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],u=-1!==k.indexOf(".")?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],x=u[0],E=u[1]||"";d.posPre=x.substring(0,x.indexOf("#"));for(e=0;e<E.length;e++){var I=E.charAt(e);"0"===I?d.minFrac=d.maxFrac=e+1:"#"===I?d.maxFrac=e+1:d.posSuf+=I}var N=x.split(",");d.gSize=N[1]?N[1].length:0;d.lgSize=N[2]||N[1]?(N[2]||N[1]).length:0;if(q){var L=k.length-d.posPre.length-d.posSuf.length,T=q.indexOf("#");d.negPre=q.substring(0,T).replace(/'/g,"");d.negSuf=q.slice(T+L).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return oia(a,d,c,b)}catch(Y){throw zg();}};
Kx.\u0275fac=function(a){return new (a||Kx)(C(oi,16))};Kx.\u0275pipe=Ec({name:"number",type:Kx,pure:!0});
var Lx=function(){};Lx.prototype.transform=function(a,b,c){if(null==a)return null;if(!this.supports(a))throw zg();return a.slice(b,c)};Lx.prototype.supports=function(a){return"string"===typeof a||Array.isArray(a)};Lx.\u0275fac=function(a){return new (a||Lx)};Lx.\u0275pipe=Ec({name:"slice",type:Lx,pure:!1});
var Mx=function(){};Mx.\u0275fac=function(a){return new (a||Mx)};Mx.\u0275mod=Cc({type:Mx});Mx.\u0275inj=mc({});
var hi=new sd("DocumentToken");
var yh=null,Hnb=function(){};
var Nx=function(){};Nx.prototype.historyGo=function(){throw Error("Za");};Nx.\u0275fac=function(a){return new (a||Nx)};Nx.\u0275prov=lc({token:Nx,factory:function(){return t(Ox)},providedIn:"platform"});var Inb=new sd("Location Initialized"),Ox=function(a){this._doc=a;this._init()};V(Ox,Nx);Ox.prototype._init=function(){this.location=window.location;this._history=window.history};
Ox.prototype.onPopState=function(a){var b=Jnb(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};var Knb=function(a,b){var c=Jnb(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=Ox.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};
ji.Object.defineProperties(Ox.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}}});Ox.\u0275fac=function(a){return new (a||Ox)(t(hi))};Ox.\u0275prov=lc({token:Ox,factory:function(){return new Ox(t(hi))},providedIn:"platform"});
var Px=function(){};Px.prototype.historyGo=function(){throw Error("Za");};Px.\u0275fac=function(a){return new (a||Px)};Px.\u0275prov=lc({token:Px,factory:function(){var a=t(hi).location;return new Qx(t(Nx),a&&a.origin||"")},providedIn:"root"});var Rx=new sd("appBaseHref"),Qx=function(a,b){this._platformLocation=a;this._removeListenerFns=[];null==b&&(b=yh.getBaseHref());if(null==b)throw Error("$a");this._baseHref=b};V(Qx,Px);g=Qx.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Knb(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return pia(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+Jg(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+Jg(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+Jg(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)};Qx.\u0275fac=function(a){return new (a||Qx)(t(Nx),t(Rx,8))};Qx.\u0275prov=lc({token:Qx,factory:Qx.\u0275fac});
var Sx=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];null!=b&&(this._baseHref=b)};V(Sx,Px);g=Sx.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),Knb(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=pia(this._baseHref,a);return 0<a.length?"#"+a:a};g.pushState=function(a,b,c,d){c=this.prepareExternalUrl(c+Jg(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+Jg(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)};Sx.\u0275fac=function(a){return new (a||Sx)(t(Nx),t(Rx,8))};
Sx.\u0275prov=lc({token:Sx,factory:Sx.\u0275fac});
var Tx=function(a){var b=this;this._subject=new Jw;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._baseHref=qia(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=Tx.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 qia(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+Jg(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+Jg(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})};Tx.\u0275fac=function(a){return new (a||Tx)(t(Px))};Tx.\u0275prov=lc({token:Tx,factory:function(){return new Tx(t(Px))},providedIn:"root"});
var Lnb=function(){};Lnb.\u0275prov=lc({token:Lnb,providedIn:"root",factory:function(){return new Mnb}});var Mnb=function(){var a=t(hi),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}};Mnb.prototype.setOffset=function(a){Array.isArray(a)?this.offset=function(){return a}:this.offset=a};Mnb.prototype.getScrollPosition=function(){return Ux(this)?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]};
var Nnb=function(a,b){Ux(a)&&a.window.scrollTo(b[0],b[1])},Ux=function(a){try{return!!a.window&&!!a.window.scrollTo&&"pageXOffset"in a.window}catch(b){return!1}};
var Onb=function(){};
var Pnb={provide:wx,useExisting:ic(function(){return Qg}),multi:!0},Qnb=new sd("CompositionEventMode"),Qg=function(a,b,c){vx.call(this,a,b);this._compositionMode=c;this._composing=!1;null==this._compositionMode&&(this._compositionMode=!/android (\d+)/.test((yh?window.navigator.userAgent:"").toLowerCase()))};V(Qg,vx);Qg.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};Qg.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Qg.prototype._compositionStart=function(){this._composing=!0};Qg.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Qg.\u0275fac=function(a){return new (a||Qg)(C(Nv),C(wd),C(Qnb,8))};
Qg.\u0275dir=w({type:Qg,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&&J("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:[Me([Pnb]),ie]});
var Vx=new sd("NgValidators"),Wx=new sd("NgAsyncValidators"),Xx=function(a){return sia(a)};
var Yx=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=Yx.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Cia(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Eia(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};
ji.Object.defineProperties(Yx.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 Zx=function(){Yx.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};V(Zx,Yx);
var ay=function(){Yx.apply(this,arguments)};V(ay,Yx);ji.Object.defineProperties(ay.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});
var Rnb=function(a){this._cd=a};
ji.Object.defineProperties(Rnb.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 by=function(a){this._cd=a};V(by,Rnb);by.\u0275fac=function(a){return new (a||by)(C(Zx,2))};
by.\u0275dir=w({type:by,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&te("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:[ie]});var cy=function(a){this._cd=a};V(cy,Rnb);cy.\u0275fac=function(a){return new (a||cy)(C(ay,10))};
cy.\u0275dir=w({type:cy,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&te("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:[ie]});
var dy=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._rawValidators=a;this._rawAsyncValidators=b;this._composedValidatorFn=Via(this._rawValidators);this._composedAsyncValidatorFn=Wia(this._rawAsyncValidators)},Mia=function(a,b){a._rawValidators=b;a._composedValidatorFn=Via(b)},Nia=function(a,b){a._rawAsyncValidators=b;a._composedAsyncValidatorFn=
Wia(b)},Snb=function(a){a=a._rawValidators;return Array.isArray(a)?a.includes(Xx):a===Xx},Pia=function(a,b){b=void 0===b?{}:b;a.touched=!0;a._parent&&!b.onlySelf&&Pia(a._parent,b)},Tnb=function(a,b){b=void 0===b?{}:b;a.touched=!1;a._pendingTouched=!1;a._forEachChild(function(c){Tnb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updateTouched(b)},Qia=function(a,b){b=void 0===b?{}:b;a.pristine=!1;a._parent&&!b.onlySelf&&Qia(a._parent,b)},Unb=function(a,b){b=void 0===b?{}:b;a.pristine=!0;a._pendingDirty=
!1;a._forEachChild(function(c){Unb(c,{onlySelf:!0})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b)};g=dy.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}))});Pg(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&&(Pg(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 Pg=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&&Pg(a._parent,b)};g=dy.prototype;
g._updateTreeValidity=function(a){a=void 0===a?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Pg(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=xia(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 Jw;this.statusChanges=new Jw};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){Sg(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};
ji.Object.defineProperties(dy.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 ey=function(a,b,c){var d=dy.call,e=Uia(b);c=(Sg(b)?b.asyncValidators:c)||null;d.call(dy,this,e,c);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Pg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};V(ey,dy);var Vnb=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=ey.prototype;
g.addControl=function(a){var b=void 0===b?{}:b;Vnb(this,a);Pg(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];Pg(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;Xia(this,a);Object.keys(a).forEach(function(d){var e=c.controls;if(!Object.keys(e).length)throw new pc(1E3,"");if(!e[d])throw new pc(1001,"");c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Pg(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);Pg(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&&Pg(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=r(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=r(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=r(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 Wnb={provide:ay,useExisting:ic(function(){return fy})},Xnb=Promise.resolve(null),fy=function(a,b){ay.call(this);this.submitted=!1;this._directives=new Set;this.ngSubmit=new Jw;this.form=new ey({},Cia(a),Eia(b))};V(fy,ay);g=fy.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};g.addControl=function(a){var b=this;Xnb.then(function(){var c=b._findContainer(a.path);a.control=Vnb(c,a.name,a.control);Lg(a.control,a);Pg(a.control,{emitEvent:!1});b._directives.add(a)})};
g.removeControl=function(a){var b=this;Xnb.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;Xnb.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};g.onSubmit=function(a){this.submitted=!0;Sia(this.form,this._directives);this.ngSubmit.emit(a);return!1};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};ji.Object.defineProperties(fy.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}}});
fy.\u0275fac=function(a){return new (a||fy)(C(Vx,10),C(Wx,10))};fy.\u0275dir=w({type:fy,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Me([Wnb]),ie]});
var gy=function(a,b,c){a=void 0===a?null:a;var d=dy.call,e=Uia(b);c=(Sg(b)?b.asyncValidators:c)||null;d.call(dy,this,e,c);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Pg(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Sg(b)&&(b.nonNullable||b.initialValueIsDefault)&&(Yia(a)?this.defaultValue=a.value:this.defaultValue=a)};V(gy,dy);g=gy.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)});Pg(this,b)};g.reset=function(a,b){a=void 0===a?this.defaultValue:a;b=void 0===b?{}:b;this._applyFormState(a);Unb(this,b);Tnb(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&&Qia(this),this._pendingTouched&&Pia(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){Yia(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 Ynb={provide:Zx,useExisting:ic(function(){return hy})},Znb=Promise.resolve(null),hy=function(a,b,c,d,e){Zx.call(this);this._changeDetectorRef=e;this.control=new gy;this._registered=!1;this.update=new Jw;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Tia(d)};V(hy,Zx);g=hy.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);Ria(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(){Lg(this.control,this);Pg(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;Znb.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&&tg(a);Znb.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?Gia(a,this._parent):[a]};
ji.Object.defineProperties(hy.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}}});hy.\u0275fac=function(a){return new (a||hy)(C(ay,9),C(Vx,10),C(Wx,10),C(wx,10),C(nx,8))};
hy.\u0275dir=w({type:hy,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Me([Ynb]),ie,Jc]});
var iy=function(){};iy.\u0275fac=function(a){return new (a||iy)};iy.\u0275dir=w({type:iy,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});
var $nb={provide:wx,useExisting:ic(function(){return jy}),multi:!0},jy=function(){Rg.apply(this,arguments)};V(jy,Rg);jy.prototype.writeValue=function(a){this.setProperty("value",null==a?"":a)};jy.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};jy.\u0275fac=function(){var a;return function(b){return(a||(a=md(jy)))(b||jy)}}();
jy.\u0275dir=w({type:jy,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&J("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},features:[Me([$nb]),ie]});
var aob={provide:wx,useExisting:ic(function(){return ky}),multi:!0},ly=function(){};ly.\u0275fac=function(a){return new (a||ly)};ly.\u0275mod=Cc({type:ly});ly.\u0275inj=mc({});var my=function(){this._accessors=[]};my.prototype.add=function(a,b){this._accessors.push([a,b])};my.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}};
my.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};my.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};my.\u0275fac=function(a){return new (a||my)};my.\u0275prov=lc({token:my,factory:my.\u0275fac,providedIn:ly});var ky=function(a,b,c,d){Rg.call(this,a,b);this._registry=c;this._injector=d;this.onChange=function(){}};V(ky,Rg);g=ky.prototype;
g.ngOnInit=function(){this._control=this._injector.get(Zx);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)};
ky.\u0275fac=function(a){return new (a||ky)(C(Nv),C(wd),C(my),C(Iv))};ky.\u0275dir=w({type:ky,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&J("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Me([aob]),ie]});
var bob=new sd("NgModelWithFormControlWarning"),cob={provide:Zx,useExisting:ic(function(){return ny})},ny=function(a,b,c,d){Zx.call(this);this._ngModelWarningConfig=d;this.update=new Jw;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=Tia(c)};V(ny,Zx);
ny.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Ng(b,this);Lg(this.form,this);Pg(this.form,{emitEvent:!1})}Ria(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};ny.prototype.ngOnDestroy=function(){this.form&&Ng(this.form,this)};ny.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};ny.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
ji.Object.defineProperties(ny.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}}});ny.\u0275fac=function(a){return new (a||ny)(C(Vx,10),C(Wx,10),C(wx,10),C(bob,8))};
ny.\u0275dir=w({type:ny,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Me([cob]),ie,Jc]});
var dob={provide:ay,useExisting:ic(function(){return oy})},oy=function(a,b){ay.call(this);var c=this;this.validators=a;this.asyncValidators=b;this.submitted=!1;this._onCollectionChange=function(){return c._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new Jw;this._setValidators(a);this._setAsyncValidators(b)};V(oy,ay);g=oy.prototype;g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};
g.ngOnDestroy=function(){this.form&&(Mg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Lg(b,a);Pg(b,{emitEvent:!1});this.directives.push(a);return b};g.removeControl=function(a){Ng(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;Sia(this.form,this.directives);this.ngSubmit.emit(a);return!1};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&&(Ng(c||null,b),d instanceof gy&&(Lg(d,b),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Hia(b,a);Pg(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Mg(b,a)&&Pg(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Hia(this.form,this);this._oldForm&&Mg(this._oldForm,this)};g._checkFormPresent=function(){};
ji.Object.defineProperties(oy.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[]}}});oy.\u0275fac=function(a){return new (a||oy)(C(Vx,10),C(Wx,10))};
oy.\u0275dir=w({type:oy,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&J("submit",function(c){return b.onSubmit(c)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Me([dob]),ie,Jc]});
var eob={provide:Zx,useExisting:ic(function(){return py})},py=function(a,b,c,d,e){Zx.call(this);this._ngModelWarningConfig=e;this._added=!1;this.update=new Jw;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Tia(d)};V(py,Zx);g=py.prototype;g.ngOnChanges=function(a){this._added||this._setUpControl();Ria(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};
ji.Object.defineProperties(py.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Gia(null==this.name?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});py.\u0275fac=function(a){return new (a||py)(C(ay,13),C(Vx,10),C(Wx,10),C(wx,10),C(bob,8))};
py.\u0275dir=w({type:py,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Me([eob]),ie,Jc]});
var qy=function(){this._validator=uia};qy.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):uia,this._onChange&&this._onChange())};qy.prototype.validate=function(a){return this._validator(a)};qy.prototype.registerOnValidatorChange=function(a){this._onChange=a};qy.prototype.enabled=function(a){return null!=a};qy.\u0275fac=function(a){return new (a||qy)};
qy.\u0275dir=w({type:qy,features:[Jc]});var fob={provide:Vx,useExisting:ic(function(){return ry}),multi:!0},ry=function(){qy.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return"number"===typeof a?a:parseFloat(a)};this.createValidator=function(a){return ria(a)}};V(ry,qy);ry.\u0275fac=function(){var a;return function(b){return(a||(a=md(ry)))(b||ry)}}();
ry.\u0275dir=w({type:ry,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&&oe("min",b._enabled?b.min:null)},inputs:{min:"min"},features:[Me([fob]),ie]});var gob={provide:Vx,useExisting:ic(function(){return sy}),multi:!0},sy=function(){qy.apply(this,arguments);this.inputName="required";this.normalizeInput=tg;this.createValidator=function(){return sia}};
V(sy,qy);sy.prototype.enabled=function(a){return a};sy.\u0275fac=function(){var a;return function(b){return(a||(a=md(sy)))(b||sy)}}();sy.\u0275dir=w({type:sy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&oe("required",b._enabled?"":null)},inputs:{required:"required"},features:[Me([gob]),ie]});
var hob={provide:Vx,useExisting:ic(function(){return ty}),multi:!0},ty=function(){qy.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return"number"===typeof a?a:parseInt(a,10)};this.createValidator=function(a){return tia(a)}};V(ty,qy);ty.\u0275fac=function(){var a;return function(b){return(a||(a=md(ty)))(b||ty)}}();
ty.\u0275dir=w({type:ty,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&oe("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Me([hob]),ie]});var iob={provide:Vx,useExisting:ic(function(){return uy}),multi:!0},uy=function(){qy.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return via(a)}};
V(uy,qy);uy.\u0275fac=function(){var a;return function(b){return(a||(a=md(uy)))(b||uy)}}();uy.\u0275dir=w({type:uy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&oe("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},features:[Me([iob]),ie]});
var vy=function(){};vy.\u0275fac=function(a){return new (a||vy)};vy.\u0275mod=Cc({type:vy});vy.\u0275inj=mc({imports:[ly]});
var wy=function(){};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275mod=Cc({type:wy});wy.\u0275inj=mc({imports:[vy]});var xy=function(){};xy.\u0275fac=function(a){return new (a||xy)};xy.\u0275mod=Cc({type:xy});xy.\u0275inj=mc({imports:[vy]});
var Tg,Zia="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 Ug;
var Xg,Wg;
var dja;
var job;try{job="undefined"!==typeof Intl&&Intl.v8BreakIterator}catch(a){job=!1}
var yy=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&&!job)&&"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};yy.\u0275fac=function(a){return new (a||yy)(t(Wv))};yy.\u0275prov=lc({token:yy,factory:yy.\u0275fac,providedIn:"root"});
var zy=function(a){this._platform=a};zy.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};zy.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||"function"===typeof a.getClientRects&&a.getClientRects().length)&&"visible"===getComputedStyle(a).visibility};
var kob=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===gja(c)||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=gja(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};zy.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")||fja(a);return b&&!this.isDisabled(a)&&this.isVisible(a)};
zy.\u0275fac=function(a){return new (a||zy)(t(yy))};zy.\u0275prov=lc({token:zy,factory:zy.\u0275fac,providedIn:"root"});
var Cy=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 lob(f)};this.endAnchorListener=function(){return Ay(f)};this._enabled=!0;(void 0===e?0:e)||By(this)};
Cy.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 By=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))},Dy=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(mob(a))})})};
Cy.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)};
var mob=function(a){var b=a._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!a._checker.isFocusable(b))return a=a._getFirstTabbableElement(b),null==a||a.focus(void 0),!!a;b.focus(void 0);return!0}return Ay(a)},Ay=function(a){(a=a._getRegionBoundary("start"))&&a.focus(void 0);return!!a},lob=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=Cy.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&kob(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)&&kob(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 nob=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
Cy.prototype._executeOnStable=function(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe(Xf()).subscribe(a)};ji.Object.defineProperties(Cy.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 Ey=function(a,b,c){this._checker=a;this._ngZone=b;this._document=c};
Ey.prototype.create=function(a,b){return new Cy(a,this._checker,this._ngZone,this._document,void 0===b?!1:b)};Ey.\u0275fac=function(a){return new (a||Ey)(t(zy),t(qg),t(hi))};Ey.\u0275prov=lc({token:Ey,factory:Ey.\u0275fac,providedIn:"root"});var Fy=function(a,b){this._elementRef=a;this._focusTrapFactory=b;this._previouslyFocusedElement=null;this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)};g=Fy.prototype;
g.ngOnDestroy=function(){this.focusTrap.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){By(this.focusTrap);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap.hasAttached()||By(this.focusTrap)};g.ngOnChanges=function(a){(a=a.autoCapture)&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()};
g._captureFocus=function(){this._previouslyFocusedElement=Zg();Dy(this.focusTrap)};ji.Object.defineProperties(Fy.prototype,{enabled:{configurable:!0,enumerable:!0,get:function(){return this.focusTrap.enabled},set:function(a){this.focusTrap.enabled=bh(a)}},autoCapture:{configurable:!0,enumerable:!0,get:function(){return this._autoCapture},set:function(a){this._autoCapture=bh(a)}}});Fy.\u0275fac=function(a){return new (a||Fy)(C(wd),C(Ey),C(hi))};
Fy.\u0275dir=w({type:Fy,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Jc]});
/*

 SPDX-License-Identifier: Apache-2.0
*/
var rja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
var oob={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 Gy,pob=function(){if(void 0===Gy){var a=null,b=da.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Eib,createScript:Eib,createScriptURL:Eib})}catch(c){da.console&&da.console.error(c.message)}Gy=a}else Gy=a}return Gy};
var nh=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===qob&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=rob};nh.prototype.implementsGoogStringTypedString=!0;nh.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var oh=function(a){return a instanceof nh&&a.constructor===nh&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===rob?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},vo=function(a){return new nh(qob,a)},rob={},qob={};
var Hy=function(a,b){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=b===sob?a:""};Hy.prototype.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""};Hy.prototype.implementsGoogStringTypedString=!0;Hy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()};Hy.prototype.getDirection=function(){return 1};
var Ci=function(a){if(a instanceof Hy&&a.constructor===Hy)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;Oa(a);return"type_error:TrustedResourceUrl"},uo=function(a){return wh(oh(a))},sob={},wh=function(a){var b=pob();a=b?b.createScriptURL(a):a;return new Hy(a,sob)};
var lh=function(a,b){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=b===tob?a:""};lh.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};lh.prototype.implementsGoogStringTypedString=!0;lh.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()};lh.prototype.getDirection=function(){return 1};
var mh=function(a){if(a instanceof lh&&a.constructor===lh)return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;Oa(a);return"type_error:SafeUrl"},uob=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,vob=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(uob)?uh(a):null},wob=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Bja=function(a){if(a instanceof lh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return wob.test(a)?uh(a):vob(a)},Jj=
function(a,b){if(a instanceof lh)return a;a="object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);if(b&&/^data:/i.test(a)&&(b=vob(a)||ph,b.getTypedStringValue()==a))return b;wob.test(a)||(a="about:invalid#zClosurez");return uh(a)},tob={},uh=function(a){return new lh(a,tob)},ph=uh("about:invalid#zClosurez");
var xob={},Iy=function(a,b){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=b===xob?a:"";this.implementsGoogStringTypedString=!0};Iy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};Iy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()};
var yob=function(a){if(a instanceof Iy&&a.constructor===Iy)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;Oa(a);return"type_error:SafeStyle"},zob=new Iy("",xob),wja=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),vja=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),uja=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)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)",
"g"),xja=/\/\*/;
var Aob={},Jy=function(a,b){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=b===Aob?a:"";this.implementsGoogStringTypedString=!0};Jy.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()};Jy.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_};var Bob=function(a){if(a instanceof Jy&&a.constructor===Jy)return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;Oa(a);return"type_error:SafeStyleSheet"};
var Cob={},Ky=function(a,b){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=b===Cob?a:"";this.implementsGoogStringTypedString=!0};Ky.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};Ky.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()};
var Lj=function(a){if(a instanceof Ky&&a.constructor===Ky)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;Oa(a);return"type_error:SafeHtml"},In=function(a){return a instanceof Ky?a:qh(Nib("object"==typeof a&&a.implementsGoogStringTypedString?a.getTypedStringValue():String(a)))},Ly=function(a){if(a instanceof Ky)return a;a=In(a);a=Lj(a).toString().replace(/(\r\n|\r|\n)/g,"<br>");return qh(a)},Kn=function(a,b,c){var d=String(a);if(!Dob.test(d))throw Error("cb");if(d.toUpperCase()in Eob)throw Error("cb");
a=String(a);d="<"+a;var e="";if(b)for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){if(!Dob.test(f))throw Error("cb");var h=b[f];if(null!=h){var k=f;var q=h;if(q instanceof nh)q=oh(q);else if("style"==k.toLowerCase()){h=void 0;if(!Ha(q))throw Error("cb");if(!(q instanceof Iy)){var u="";for(h in q)if(Object.prototype.hasOwnProperty.call(q,h)){if(!/^[-_a-zA-Z0-9]+$/.test(h))throw Error("bb`"+h);var x=q[h];null!=x&&(x=Array.isArray(x)?x.map(Aja).join(" "):Aja(x),u+=h+":"+x+";")}q=u?new Iy(u,
xob):zob}q=yob(q)}else{if(/^on/i.test(k))throw Error("cb");if(k.toLowerCase()in Fob)if(q instanceof Hy)q=Ci(q).toString();else if(q instanceof lh)q=mh(q);else if("string"===typeof q)q=(Bja(q)||ph).getTypedStringValue();else throw Error("cb");}q.implementsGoogStringTypedString&&(q=q.getTypedStringValue());k=k+'="'+Nib(String(q))+'"';e+=" "+k}}b=d+e;null==c?c=[]:Array.isArray(c)||(c=[c]);!0===oob[a.toLowerCase()]?b+=">":(f=Ln(c),b+=">"+Lj(f).toString()+"</"+a+">");return qh(b)},Gob=function(a){var b=
In(lt),c=[],d=function(e){Array.isArray(e)?e.forEach(d):(e=In(e),c.push(Lj(e).toString()))};a.forEach(d);return qh(c.join(Lj(b).toString()))},Ln=function(a){return Gob(Array.prototype.slice.call(arguments))},qh=function(a){var b=pob();a=b?b.createHTML(a):a;return new Ky(a,Cob)},Dob=/^[a-zA-Z0-9-]+$/,Fob={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Eob={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},lt=
new Ky(da.trustedTypes&&da.trustedTypes.emptyHTML||"",Cob);
var Cja=function(a){this.isValid=a},Dja=[th("data"),th("http"),th("https"),th("mailto"),th("ftp"),new Cja(function(a){return/^[^:]*([/?#]|$)/.test(a)})];
var Hob=function(){};V(Hob,Hnb);
var My=function(){};V(My,Hob);var Iob=function(a,b,c){a.addEventListener(b,c,!1);return function(){a.removeEventListener(b,c,!1)}};My.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};My.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a)};My.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var Jnb=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.body:null};
My.prototype.getBaseHref=function(){var a=(Job=Job||document.querySelector("base"))?Job.getAttribute("href"):null;null==a?a=null:(Ny=Ny||document.createElement("a"),Ny.setAttribute("href",a),a=Ny.pathname,a="/"===a.charAt(0)?a:"/"+a);return a};var Job=null,Ny;
new sd("TRANSITION_ID");
var Kob=function(){},$mb=function(a){Cd.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,void 0===c?!0:c);if(null==b)throw Error("db");return b};Cd.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};Cd.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};Cd.frameworkStabilizers||(Cd.frameworkStabilizers=[]);Cd.frameworkStabilizers.push(function(b){var c=Cd.getAllAngularTestabilities(),d=c.length,e=!1,f=function(h){e=e||h;d--;
0==d&&b(e)};c.forEach(function(h){h.whenStable(f)})})};Kob.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 Oy=function(){};Oy.prototype.build=function(){return new XMLHttpRequest};Oy.\u0275fac=function(a){return new (a||Oy)};Oy.\u0275prov=lc({token:Oy,factory:Oy.\u0275fac});
var Py=new sd("EventManagerPlugins"),Qy=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()};Qy.prototype.addEventListener=function(a,b,c){return this._findPluginFor(b).addEventListener(a,b,c)};Qy.prototype.addGlobalEventListener=function(a,b,c){return this._findPluginFor(b).addGlobalEventListener(a,b,c)};
Qy.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("eb`"+a);};Qy.\u0275fac=function(a){return new (a||Qy)(t(Py),t(qg))};Qy.\u0275prov=lc({token:Qy,factory:Qy.\u0275fac});var Lob=function(a){this._doc=a};
Lob.prototype.addGlobalEventListener=function(a,b,c){a=Jnb(this._doc,a);if(!a)throw Error("fb`"+a+"`"+b);return this.addEventListener(a,b,c)};
var Ry=function(){this._stylesSet=new Set},Mob=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)};Ry.prototype.onStylesAdded=function(){};Ry.\u0275fac=function(a){return new (a||Ry)};Ry.\u0275prov=lc({token:Ry,factory:Ry.\u0275fac});var Sy=function(a){this._stylesSet=new Set;this._doc=a;this._hostNodes=new Map;this._hostNodes.set(a.head,[])};V(Sy,Ry);
Sy.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))})};Sy.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c,d){b._addStylesToHost(a,d,c)})};Sy.prototype.ngOnDestroy=function(){this._hostNodes.forEach(function(a){return a.forEach(Eja)})};Sy.\u0275fac=function(a){return new (a||Sy)(t(hi))};Sy.\u0275prov=lc({token:Sy,factory:Sy.\u0275fac});
var Nob={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/"},Fja=/%COMP%/g,Uy=function(a,b,c){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.rendererByCompId=new Map;this.defaultRenderer=new Ty(a)};
Uy.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 Oob(this.eventManager,this.sharedStylesHost,b,this.appId),this.rendererByCompId.set(b.id,c));Ty.prototype.setAttribute.call(c,a,c.hostAttr,"");return c;case 1:case 3:return new Pob(this.eventManager,this.sharedStylesHost,a,b);default:return this.rendererByCompId.has(b.id)||(a=zh(b.id,b.styles,[]),Mob(this.sharedStylesHost,a),this.rendererByCompId.set(b.id,
this.defaultRenderer)),this.defaultRenderer}};Uy.prototype.begin=function(){};Uy.prototype.end=function(){};Uy.\u0275fac=function(a){return new (a||Uy)(t(Qy),t(Sy),t(pmb))};Uy.\u0275prov=lc({token:Uy,factory:Uy.\u0275fac});var Ty=function(a){this.eventManager=a;this.data=Object.create(null);this.destroyNode=null};g=Ty.prototype;g.destroy=function(){};g.createElement=function(a,b){return b?document.createElementNS(Nob[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("gb`"+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=Nob[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};g.removeAttribute=function(a,b,c){if(c){var d=Nob[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,Gja(c)):this.eventManager.addEventListener(a,b,Gja(c))};
var Oob=function(a,b,c,d){Ty.call(this,a);this.component=c;a=zh(d+"-"+c.id,c.styles,[]);Mob(b,a);this.contentAttr="_ngcontent-%COMP%".replace(Fja,d+"-"+c.id);this.hostAttr="_nghost-%COMP%".replace(Fja,d+"-"+c.id)};V(Oob,Ty);Oob.prototype.createElement=function(a,b){a=Ty.prototype.createElement.call(this,a,b);Ty.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};
var Pob=function(a,b,c,d){Ty.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)};V(Pob,Ty);var Vy=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=Pob.prototype;
g.destroy=function(){var a=this.sharedStylesHost,b=this.shadowRoot,c=a._hostNodes.get(b);c&&c.forEach(Eja);a._hostNodes.delete(b)};g.appendChild=function(a,b){return Ty.prototype.appendChild.call(this,Vy(this,a),b)};g.insertBefore=function(a,b,c){return Ty.prototype.insertBefore.call(this,Vy(this,a),b,c)};g.removeChild=function(a,b){return Ty.prototype.removeChild.call(this,Vy(this,a),b)};g.parentNode=function(a){return Vy(this,Ty.prototype.parentNode.call(this,Vy(this,a)))};
var Wy=function(a){this._doc=a};V(Wy,Lob);Wy.prototype.supports=function(){return!0};Wy.prototype.addEventListener=function(a,b,c){var d=this;a.addEventListener(b,c,!1);return function(){return d.removeEventListener(a,b,c)}};Wy.prototype.removeEventListener=function(a,b,c){return a.removeEventListener(b,c)};Wy.\u0275fac=function(a){return new (a||Wy)(t(hi))};Wy.\u0275prov=lc({token:Wy,factory:Wy.\u0275fac});
var Qob=["alt","control","meta","shift"],Ija={"\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"},Hja={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\u0090":"NumLock"},Rob={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},
Xy=function(a){this._doc=a};V(Xy,Lob);Xy.prototype.supports=function(a){return null!=Sob(a)};Xy.prototype.addEventListener=function(a,b,c){var d=Sob(b),e=Tob(d.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return Iob(a,d.domEventName,e)})};
var Sob=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(0===b.length||"keydown"!==a&&"keyup"!==a)return null;var c=Uob(b.pop()),d="";Qob.forEach(function(e){var f=b.indexOf(e);-1<f&&(b.splice(f,1),d+=e+".")});d+=c;if(0!=b.length||0===c.length)return null;a={domEventName:a};a.fullKey=d;return a},Vob=function(a){var b="",c=Jja(a);c=c.toLowerCase();" "===c?c="space":"."===c&&(c="dot");Qob.forEach(function(d){d!=c&&(0,Rob[d])(a)&&(b+=d+".")});return b+=c},Tob=function(a,b,c){return function(d){Vob(d)===
a&&c.runGuarded(function(){return b(d)})}},Uob=function(a){switch(a){case "esc":return"escape";default:return a}};Xy.\u0275fac=function(a){return new (a||Xy)(t(hi))};Xy.\u0275prov=lc({token:Xy,factory:Xy.\u0275fac});
var knb=Gha(ynb,"browser",[{provide:Wv,useValue:"browser"},{provide:Bha,useValue:function(){var a=new My;yh||(yh=a)},multi:!0},{provide:hi,useFactory:function(){return wca=document},deps:[]}]),Wob=new sd(""),Xob=[{provide:Nw,useClass:Kob,deps:[]},{provide:Ymb,useClass:Ow,deps:[qg,Pw,Nw]},{provide:Ow,useClass:Ow,deps:[qg,Pw,Nw]}],Yob=[{provide:Hha,useValue:"root"},{provide:ce,useFactory:function(){return new ce},deps:[]},{provide:Py,useClass:Wy,multi:!0,deps:[hi,qg,Wv]},{provide:Py,useClass:Xy,multi:!0,
deps:[hi]},{provide:Uy,useClass:Uy,deps:[Qy,Sy,pmb]},{provide:Mv,useExisting:Uy},{provide:Ry,useExisting:Sy},{provide:Sy,useClass:Sy,deps:[hi]},{provide:Qy,useClass:Qy,deps:[Py,qg]},{provide:Onb,useClass:Oy,deps:[]},[]],Yy=function(){};[].concat(v(Yob),v(Xob));Yy.\u0275fac=function(a){return new (a||Yy)(t(Wob,12))};Yy.\u0275mod=Cc({type:Yy});Yy.\u0275inj=mc({providers:[].concat(v(Yob),v(Xob)),imports:[Mx,mx]});
var Zy=function(a){this._doc=a};Zy.prototype.getTitle=function(){return this._doc.title};Zy.prototype.setTitle=function(a){this._doc.title=a||""};Zy.\u0275fac=function(a){return new (a||Zy)(t(hi))};Zy.\u0275prov=lc({token:Zy,factory:function(a){var b=null;a?b=new a:b=new Zy(t(hi));return b},providedIn:"root"});
new sd("HammerGestureConfig");new sd("HammerLoader");new Fv;new Fv;
var $y=function(){};$y.\u0275fac=function(a){return new (a||$y)};$y.\u0275prov=lc({token:$y,factory:function(a){return a?new (a||$y):t(az)},providedIn:"root"});var az=function(a){this._doc=a};V(az,$y);
az.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case 0:return b;case 1:return Nd(b,"HTML")?Md(b):Yda(this._doc,String(b)).toString();case 2:return Nd(b,"Style")?Md(b):b;case 3:if(Nd(b,"Script"))return Md(b);throw Error("hb");case 4:return b instanceof Ld&&b.getTypeName(),Nd(b,"URL")?Md(b):Od(String(b));case 5:if(Nd(b,"ResourceURL"))return Md(b);throw Error("ib");default:throw Error("jb`"+a);}};az.prototype.bypassSecurityTrustHtml=function(a){return new Xlb(a)};
az.prototype.bypassSecurityTrustUrl=function(a){return new Ylb(a)};az.prototype.bypassSecurityTrustResourceUrl=function(a){return new Zlb(a)};az.\u0275fac=function(a){return new (a||az)(t(hi))};az.\u0275prov=lc({token:az,factory:function(a){a?a=new a:(a=t(Iv),a=new az(a.get(hi)));return a},providedIn:"root"});
var bz=function(a){this.decorated=new az(a)};V(bz,$y);bz.prototype.sanitize=function(a,b){if(null==b)return null;if(b instanceof Hy||b instanceof lh||b instanceof Ky){if(Zob(b,a))return this.decorated.sanitize(a,$ob(this,b));throw Error("kb`"+imb[a]+"`"+b);}return this.decorated.sanitize(a,b)};bz.prototype.bypassSecurityTrustHtml=function(){throw Error("lb");};bz.prototype.bypassSecurityTrustUrl=function(){throw Error("lb");};
bz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("lb");};
var $ob=function(a,b){if(null!=b){if(b instanceof Ky)return a.decorated.bypassSecurityTrustHtml(Lj(b).toString());if(b instanceof lh)return a.decorated.bypassSecurityTrustUrl(mh(b));if(b instanceof Hy)return a.decorated.bypassSecurityTrustResourceUrl(Ci(b).toString())}return null},Zob=function(a,b){switch(b){case 1:return a instanceof Ky;case 4:return a instanceof lh||a instanceof Hy;case 5:return a instanceof Hy;case 3:return!1;default:return!1}};bz.\u0275fac=function(a){return new (a||bz)(t(hi))};
bz.\u0275prov=lc({token:bz,factory:bz.\u0275fac});
var cz=function(){};cz.\u0275fac=function(a){return new (a||cz)};cz.\u0275mod=Cc({type:cz});cz.\u0275inj=mc({providers:[{provide:Pv,useExisting:$y},{provide:$y,useClass:bz}],imports:[Yy]});
var Ah=new Set(["true","1"]),Bh=new Set(["false","0"]);
var apb=function(){},bpb=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 Jh=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];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=Jh.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._onStartFns.push(a)};g.onDone=function(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(),cpb(this));this._started=!0};var cpb=function(a){Promise.resolve(null).then(function(){return a._onFinish()})};g=Jh.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._started=!1};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 Oja=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(null).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=Oja.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 dz=function(){return!1},dpb=function(){return[]},Vja=null;if(Nja()||"undefined"!==typeof Element)"undefined"!==typeof window&&"undefined"!==typeof window.document?(Vja=document.documentElement,dz=function(a,b){for(;b;){if(b===a)return!0;b=Wja(b)}return!1}):dz=function(a,b){return a.contains(b)},dpb=function(a,b,c){return c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[]};
var cka=RegExp("{{\\s*(.+?)\\s*}}","g"),dka=/-+([a-z0-9])/g;
var fka=RegExp("s*:selfs*,?","g"),epb=function(a){this._driver=a};g=epb.prototype;g.build=function(a,b){b=new fpb(b);this._resetContextStyleTimingState(b);return Wh(this,Th(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 pc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(0==k.type){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(u){k.name=u;f.push(c.visitState(k,b))});k.name=q}else 1==k.type?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new pc(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){aka(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&(Vh(e.values()),b.errors.push(new pc(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=Wh(this,Th(a.animation),b);return{type:1,matchers:Mja(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:Xh(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Wh(c,d,b)}),options:Xh(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=Wh(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:Xh(a.options)}};
g.visitAnimate=function(a,b){var c=ika(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:Eh({});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=Eh(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=r(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 pc(3002,!1)):c.push(Yja(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=r(k.values());for(var q=k.next();!q.done;q=k.next())if(0<=q.value.toString().indexOf("{{")){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&0<e&&(e-=c.duration+c.delay);a.styles.forEach(function(f){"string"!==typeof f&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),u=q.get(k),x=!0;u&&(e!=d&&e>=u.startTime&&d<=u.endTime&&(b.errors.push(new pc(3010,!1)),x=!1),e=u.startTime);x&&q.set(k,{startTime:e,endTime:d});b.options&&bka(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 pc(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,u=a.steps.map(function(T){T=c._makeStyleAst(T,b);var Y=null!=T.offset?T.offset:hka(T.styles),ja=0;null!=Y&&(e++,ja=T.offset=Y);k=k||0>ja||1<ja;h=h||ja<q;q=ja;f.push(ja);return T});k&&b.errors.push(new pc(3012,!1));h&&b.errors.push(new pc(3200,!1));a=a.steps.length;var x=0;0<e&&e<a?b.errors.push(new pc(3202,!1)):0==e&&(x=1/(a-1));
var E=a-1,I=b.currentTime,N=b.currentAnimateTimings,L=N.duration;u.forEach(function(T,Y){Y=0<x?Y==E?1:x*Y:f[Y];var ja=Y*L;b.currentTime=I+N.delay+ja;N.duration=ja;c._validateStyleAst(T,b);T.offset=Y;d.styles.push(T)});return d};g.visitReference=function(a,b){return{type:8,animation:Wh(this,Th(a.animation),b),options:Xh(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:Xh(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:Xh(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=r(gka(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;Mh(b.collectedStyles,b.currentQuerySelector,new Map);var h=Wh(this,Th(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:Xh(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new pc(3013,!1));var c="full"===a.timings?{duration:0,delay:0,easing:"full"}:Oh(a.timings,b.errors,!0);return{type:12,animation:Wh(this,Th(a.animation),b),timings:c,options:null}};var fpb=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 ez=function(){this._map=new Map};ez.prototype.get=function(a){return this._map.get(a)||[]};ez.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,v(b))};ez.prototype.has=function(a){return this._map.has(a)};ez.prototype.clear=function(){this._map.clear()};
var gpb=RegExp(":enter","g"),hpb=RegExp(":leave","g"),kka=function(){};g=kka.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,u){u=void 0===u?[]:u;q=q||new ez;a=new fz(a,b,q,d,e,u,[]);a.options=k;d=k.delay?Nh(k.delay):0;a.currentTimeline.delayNextStep(d);gz(a.currentTimeline,[f],null,a.errors,k);Wh(this,c,a);c=a.timelines.filter(function(E){return E.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&&gz(x,[h],null,a.errors,k)}return c.length?c.map(function(E){return E.buildKeyframes()}):
[jka(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=hz(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&iz(b,c)}b.previousNode=a};g.visitAnimateRef=function(a,b){var c=hz(b,a.options);iz(c);this.visitReference(a.animation,c);iz(b,c.currentTimeline.currentTime);b.previousNode=a};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=null!=c.duration?Nh(c.duration):null,f=null!=c.delay?Nh(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 jz(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){ipb(b,a.options,!0);Wh(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=hz(b,f),iz(e),null!=f.delay&&(6==e.previousNode.type&&(kz(e.currentTimeline),e.previousNode=lz),e.delayNextStep(Nh(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return Wh(c,h,e)}),mz(e.currentTimeline),e.subContextCount>d&&iz(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Nh(a.options.delay):0;a.steps.forEach(function(h){var k=hz(b,a.options);f&&k.delayNextStep(f);Wh(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return jpb(b.currentTimeline,h)});iz(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?Uh(a,b.params,b.errors):a,Oh(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&&(nz(b.currentTimeline,b.currentTimeline.duration+c.delay),kz(d));var e=a.style;5==e.type?this.visitKeyframes(e,b):(nz(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),mz(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=r(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else gz(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=hz(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){nz(f,(h.offset||0)*e);gz(f,h.styles,h.easing,b.errors,b.options);mz(f)});jpb(b.currentTimeline,f);iz(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Nh(e.delay):0;f&&(6===b.previousNode.type||0==d&&0<b.currentTimeline._currentKeyframe.size)&&(kz(b.currentTimeline),b.previousNode=lz);var h=d;d=kpb(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,u){b.currentQueryIndex=u;u=hz(b,a.options,q);f&&u.delayNextStep(f);q===b.element&&(k=u.currentTimeline);Wh(c,a.animation,u);mz(u.currentTimeline);
h=Math.max(h,u.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;iz(b,h);k&&(jpb(b.currentTimeline,k),kz(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;Wh(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var lz={},fz=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=lz;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new oz(this._driver,b,0);h.push(this.currentTimeline)},ipb=function(a,b,c){if(b){var d=a.options;null!=b.duration&&(d.duration=
Nh(b.duration));null!=b.delay&&(d.delay=Nh(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]=Uh(e[h],f,a.errors))})}}};fz.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 hz=function(a,b,c){b=void 0===b?null:b;c=c||a.element;c=new fz(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();ipb(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},iz=function(a,b){a.previousNode=lz;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};fz.prototype.delayNextStep=function(a){0<a&&this.currentTimeline.delayNextStep(a)};var kpb=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);0<b.length&&(b=b.replace(gpb,"."+a._enterClassName),b=b.replace(hpb,"."+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,v(a)));e||0!=h.length||f.push(new pc(3014,!1));return h};
ji.Object.defineProperties(fz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var oz=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()};oz.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return 0<this._currentKeyframe.size;default:return!0}};oz.prototype.delayNextStep=function(a){var b=1===this._keyframes.size&&this._pendingStyles.size;this.duration||b?(nz(this,this.currentTime+a),b&&kz(this)):this.startTime+=a};
oz.prototype.fork=function(a,b){mz(this);return new oz(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};oz.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 nz=function(a,b){mz(a);a.duration=b;a._loadKeyframe()};
oz.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 gz=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=nka(b,a._globalTimelineStyles);b=r(b);for(e=b.next();!e.done;e=b.next()){var f=r(e.value);e=f.next().value;f=f.next().value;f=Uh(f,c,d);a._pendingStyles.set(e,f);a._localTimelineStyles.has(e)||a._backFill.set(e,a._globalTimelineStyles.get(e)||"*");a._updateStyle(e,f)}},mz=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)}))},kz=function(a){for(var b=r(a._localTimelineStyles),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a._pendingStyles.set(c,d);a._updateStyle(c,d)}},jpb=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)})};
oz.prototype.buildKeyframes=function(){var a=this;mz(this);var b=new Set,c=new Set,d=1===this._keyframes.size&&0===this.duration,e=[];this._keyframes.forEach(function(u,x){u=Qh(u,new Map,a._backFill);u.forEach(function(E,I){"!"===E?b.add(I):"*"===E&&c.add(I)});d||u.set("offset",x/a.duration);e.push(u)});var f=b.size?Vh(b.values()):[],h=c.size?Vh(c.values()):[];if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return jka(this.element,e,f,h,this.duration,this.startTime,this.easing,
!1)};ji.Object.defineProperties(oz.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 jz=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;oz.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}};
V(jz,oz);jz.prototype.containsAnimation=function(){return 1<this.keyframes.length};
jz.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=Qh(a[0]);h.set("offset",0);b.push(h);h=Qh(a[0]);h.set("offset",mka(f));b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=Qh(a[h]),q=k.get("offset");k.set("offset",mka((c+q*d)/e));b.push(k)}d=e;c=0;e="";a=b}return jka(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};
var lpb=function(){};
var mpb=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(" ")),npb=function(){};V(npb,lpb);
var Pja=function(a,b,c){var d="",e=b.toString().trim();mpb.has(a)&&0!==b&&"0"!==b&&("number"===typeof b?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&0==a[1].length&&c.push(new pc(3005,!1)));return e+d};
var pz=function(){};g=pz.prototype;g.containsElement=function(a,b){return dz(a,b)};g.getParentElement=function(a){return Wja(a)};g.query=function(a,b,c){return dpb(a,b,c)};g.computeStyle=function(a,b,c){return c||""};g.animate=function(a,b,c,d){return new Jh(c,d)};pz.\u0275fac=function(a){return new (a||pz)};pz.\u0275prov=lc({token:pz,factory:pz.\u0275fac});var opb=function(){};
var ppb={},Yh=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};Yh.prototype.match=function(a,b,c,d){return pka(this.ast.matchers,a,b,c,d)};Yh.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};
Yh.prototype.build=function(a,b,c,d,e,f,h,k,q,u){var x=[],E=this.ast.options&&this.ast.options.params||ppb;h=this.buildStyles(c,h&&h.params||ppb,x);var I=k&&k.params||ppb;k=this.buildStyles(d,I,x);var N=new Set,L=new Map,T=new Map,Y="void"===d,ja;E={params:qka(I,E),delay:null==(ja=this.ast.options)?void 0:ja.delay};a=u?[]:lka(a,b,this.ast.animation,e,f,h,k,E,q,x);var ha=0;a.forEach(function(ra){ha=Math.max(ra.duration+ra.delay,ha)});if(x.length)return oka(b,this._triggerName,c,d,Y,h,k,[],[],L,T,ha,
x);a.forEach(function(ra){var Fa=ra.element,Ka=Mh(L,Fa,new Set);ra.preStyleProps.forEach(function(La){return Ka.add(La)});var Ca=Mh(T,Fa,new Set);ra.postStyleProps.forEach(function(La){return Ca.add(La)});Fa!==b&&N.add(Fa)});x=Vh(N.values());return oka(b,this._triggerName,c,d,Y,h,k,a,x,L,T,ha)};var qpb=function(a,b){this.styles=a;this.defaultParams=b};
qpb.prototype.buildStyles=function(a,b){var c=new Map,d=Ph(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=Uh(f,d,b));h=Lh(h);f=Pja(h,f,b);c.set(h,f)})});return c};
var rpb=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 qpb(e.style,e.options&&e.options.params||{}))});ska(this.states,"true","1");ska(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new Yh(a,e,d.states))});this.fallbackTransition=rka(a,this.states)},spb=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};
var tpb=new ez,upb=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=upb.prototype;g.register=function(a,b){var c=[];b=(new epb(this._driver)).build(b,c,[]);if(c.length)throw new pc(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=Qja(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=lka(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,tpb,e),b.forEach(function(k){var q=Mh(h,k.element,new Map);k.postStyleProps.forEach(function(u){return q.set(u,null)})})):(e.push(new pc(3300,!1)),b=[]);if(e.length)throw new pc(3504,!1);h.forEach(function(k,q){k.forEach(function(u,x){k.set(x,d._driver.computeStyle(q,x,"*"))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,
new Map,q)});e=Kh(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 pc(3301,!1);return a};g.listen=function(a,b,c,d){b=Tja(b,"","","");Sja(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 vpb=[],wpb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qz=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=Ph(a),delete a.value,this.options=a):this.options={};this.options.params||(this.options.params={})},xpb=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])})}};ji.Object.defineProperties(qz.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var ypb=new qz("void"),rz=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;$h(b,this._hostClassName)};g=rz.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new pc(3302,!1);if(null==c||0==c.length)throw new pc(3303,!1);if("start"!=c&&"done"!=c)throw new pc(3400,!1);var f=Mh(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=Mh(this._engine.statesByElement,a,new Map);k.has(b)||($h(a,"ng-trigger"),$h(a,"ng-trigger-"+b),k.set(b,ypb));return function(){sz(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 pc(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 tz(this.id,b,a),k=this._engine.statesByElement.get(a);k||($h(a,"ng-trigger"),$h(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),u=new qz(c,this.id);c&&c.hasOwnProperty("value")||!q||xpb(u,q.options);k.set(b,u);q||(q=ypb);if("void"!==u.value&&q.value===u.value){if(!Aka(q.params,u.params)){d=[];var x=f.fallbackTransition.buildStyles(q.value,q.params,d),E=f.fallbackTransition.buildStyles(u.value,
u.params,d);d.length?this._engine.reportError(d):sz(this._engine,function(){Sh(a,x);Rh(a,E)})}}else{c=Mh(this._engine.playersByElement,a,[]);c.forEach(function(N){N.namespaceId==e.id&&N.triggerName==b&&N.queued&&N.destroy()});k=spb(f,q.value,u.value,a,u.params);var I=!1;if(!k){if(!d)return;k=f.fallbackTransition;I=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:u,player:h,isFallbackTransition:I});I||($h(a,"ng-animate-queued"),h.onStart(function(){ai(a,
"ng-animate-queued")}));h.onDone(function(){var N=e.players.indexOf(h);0<=N&&e.players.splice(N,1);if(N=e._engine.playersByElement.get(a)){var L=N.indexOf(h);0<=L&&N.splice(L,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 uz=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))};
rz.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=zpb(c._engine,e);f.size?f.forEach(function(h){return Apb(h,e,b,!1,!0)}):uz(c,e)}});Bpb(this._engine,function(){return d.forEach(function(e){return uz(c,e)})})};
var Apb=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,u){h.set(u,q.value);a._triggers.has(u)&&(q=a.trigger(b,u,"void",e))&&k.push(q)});if(k.length){Cpb(a._engine,a.id,b,!0,c,h);if(d)Kh(k).onDone(function(){return bi(a._engine,b)});return!0}}return!1},Dpb=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)||ypb,q=new qz("void"),u=new tz(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:u,isFallbackTransition:!0})}})}};
rz.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!Apb(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}}Dpb(this,a);e?Cpb(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==wpb||(sz(d,function(){return uz(c,a)}),Epb(d,a),d._onRemovalComplete(a,b)))}};
rz.prototype.insertNode=function(a){$h(a,this._hostClassName)};
var Fpb=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=Tja(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;Sja(d.player,k.phase,q,k.callback)}});e.markedForDestroy?sz(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})};rz.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var vz=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=vz.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 rz(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);sz(this,function(){c.namespacesByHostElement.delete(d.hostElement);delete c._namespaceLookup[a];var e=c._namespaceList.indexOf(d);0<=e&&c._namespaceList.splice(e,1)});Bpb(this,function(){return d.destroy(b)})}};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var zpb=function(a,b){var c=new Set;if(b=a.statesByElement.get(b)){b=r(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};vz.prototype.trigger=function(a,b,c,d){return Zh(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
vz.prototype.insertNode=function(a,b,c,d){if(Zh(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 Gpb=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),$h(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),ai(b,"ng-animate-disabled"))};
vz.prototype.removeNode=function(a,b,c,d){if(Zh(b)){var e=a?this._fetchNamespace(a):null;e?e.removeNode(b,d):Cpb(this,a,b,!1,d);c&&(c=this.namespacesByHostElement.get(b))&&c.id!==a&&c.removeNode(b,d)}else this._onRemovalComplete(b,d)};var Cpb=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};
vz.prototype.listen=function(a,b,c,d,e){return Zh(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};vz.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 Epb=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return Hpb(a,d)});0!=a.playersByQueriedElement.size&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return Ipb(a,d)}))},Hpb=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},Ipb=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},bi=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
wpb;if(c.namespaceId){Epb(a,b);var d=a._fetchNamespace(c.namespaceId);d&&uz(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;(null==(e=b.classList)?0:e.contains("ng-animate-disabled"))&&Gpb(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){Gpb(a,f,!1)})};
vz.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++)$h(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++)bi(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)Kh(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
vz.prototype.reportError=function(){throw new pc(3402,!1);};
vz.prototype._flushAnimations=function(a,b){var c=this,d=new ez,e=[],f=new Map,h=[],k=new Map,q=new Map,u=new Map,x=new Set;this.disabledNodes.forEach(function(Sa){x.add(Sa);Sa=c.driver.query(Sa,".ng-animate-queued",!0);for(var vb=0;vb<Sa.length;vb++)x.add(Sa[vb])});var E=this.bodyNode,I=Array.from(this.statesByElement.keys()),N=wka(I,this.collectedEnterElements),L=new Map,T=0;N.forEach(function(Sa,vb){var fb="ng-enter"+T++;L.set(vb,fb);Sa.forEach(function(zb){return $h(zb,fb)})});for(var Y=[],ja=
new Set,ha=new Set,ra=0;ra<this.collectedLeaveElements.length;ra++){var Fa=this.collectedLeaveElements[ra],Ka=Fa.__ng_removed;Ka&&Ka.setForRemoval&&(Y.push(Fa),ja.add(Fa),Ka.hasAnimation?this.driver.query(Fa,".ng-star-inserted",!0).forEach(function(Sa){return ja.add(Sa)}):ha.add(Fa))}var Ca=new Map,La=wka(I,Array.from(ja));La.forEach(function(Sa,vb){var fb="ng-leave"+T++;Ca.set(vb,fb);Sa.forEach(function(zb){return $h(zb,fb)})});a.push(function(){N.forEach(function(Sa,vb){var fb=L.get(vb);Sa.forEach(function(zb){return ai(zb,
fb)})});La.forEach(function(Sa,vb){var fb=Ca.get(vb);Sa.forEach(function(zb){return ai(zb,fb)})});Y.forEach(function(Sa){bi(c,Sa)})});var jb=[],db=[];for(a=this._namespaceList.length-1;0<=a;a--)Fpb(this._namespaceList[a],b).forEach(function(Sa){var vb=Sa.player,fb=Sa.element;jb.push(vb);if(c.collectedEnterElements.length){var zb=fb.__ng_removed;if(zb&&zb.setForMove){if(zb.previousTriggersValues&&zb.previousTriggersValues.has(Sa.triggerName)){zb=zb.previousTriggersValues.get(Sa.triggerName);var Jb=
c.statesByElement.get(Sa.element);if(Jb&&Jb.has(Sa.triggerName)){var gc=Jb.get(Sa.triggerName);gc.value=zb;Jb.set(Sa.triggerName,gc)}}vb.destroy();return}}zb=!E||!c.driver.containsElement(E,fb);Jb=Ca.get(fb);gc=L.get(fb);var Ac=c._buildInstruction(Sa,d,gc,Jb,zb);if(Ac.errors&&Ac.errors.length)db.push(Ac);else if(zb)vb.onStart(function(){return Sh(fb,Ac.fromStyles)}),vb.onDestroy(function(){return Rh(fb,Ac.toStyles)}),e.push(vb);else if(Sa.isFallbackTransition)vb.onStart(function(){return Sh(fb,Ac.fromStyles)}),
vb.onDestroy(function(){return Rh(fb,Ac.toStyles)}),e.push(vb);else{var ue=[];Ac.timelines.forEach(function(jd){jd.stretchStartingKeyframe=!0;c.disabledNodes.has(jd.element)||ue.push(jd)});Ac.timelines=ue;d.append(fb,Ac.timelines);h.push({instruction:Ac,player:vb,element:fb});Ac.queriedElements.forEach(function(jd){return Mh(k,jd,[]).push(vb)});Ac.preStyleProps.forEach(function(jd,Ed){if(jd.size){var gh=q.get(Ed);gh||q.set(Ed,gh=new Set);jd.forEach(function(wK,am){return gh.add(am)})}});Ac.postStyleProps.forEach(function(jd,
Ed){var gh=u.get(Ed);gh||u.set(Ed,gh=new Set);jd.forEach(function(wK,am){return gh.add(am)})})}});if(db.length){var Mb=[];db.forEach(function(){Mb.push(new pc(3505,!1))});jb.forEach(function(Sa){return Sa.destroy()});this.reportError(Mb)}var va=new Map,Ba=new Map;h.forEach(function(Sa){var vb=Sa.element;d.has(vb)&&(Ba.set(vb,vb),c._beforeAnimationBuild(Sa.player.namespaceId,Sa.instruction,va))});e.forEach(function(Sa){var vb=Sa.element;c._getPreviousPlayers(vb,!1,Sa.namespaceId,Sa.triggerName,null).forEach(function(fb){Mh(va,
vb,[]).push(fb);fb.destroy()})});var Ga=Y.filter(function(Sa){return Bka(Sa,q,u)}),Xa=new Map;vka(Xa,this.driver,ha,u,"*").forEach(function(Sa){Bka(Sa,q,u)&&Ga.push(Sa)});var $a=new Map;N.forEach(function(Sa){vka($a,c.driver,new Set(Sa),q,"!")});Ga.forEach(function(Sa){var vb=Xa.get(Sa),fb=$a.get(Sa),zb,Jb;Xa.set(Sa,new Map([].concat(v(Array.from(null!=(zb=null==vb?void 0:vb.entries())?zb:[])),v(Array.from(null!=(Jb=null==fb?void 0:fb.entries())?Jb:[])))))});var ec=[],Va=[],Ya={};h.forEach(function(Sa){var vb=
Sa.element,fb=Sa.player,zb=Sa.instruction;if(d.has(vb))if(x.has(vb))fb.onDestroy(function(){return Rh(vb,zb.toStyles)}),fb.disabled=!0,fb.totalTime=zb.totalTime,e.push(fb);else{var Jb=Ya;if(1<Ba.size){Sa=vb;for(var gc=[];Sa=Sa.parentNode;){var Ac=Ba.get(Sa);if(Ac){Jb=Ac;break}gc.push(Sa)}gc.forEach(function(ue){return Ba.set(ue,Jb)})}Sa=c._buildAnimation(fb.namespaceId,zb,va,f,$a,Xa);Jpb(fb,Sa);Jb===Ya?ec.push(fb):((Sa=c.playersByElement.get(Jb))&&Sa.length&&(fb.parentPlayer=Kh(Sa)),e.push(fb))}else Sh(vb,
zb.fromStyles),fb.onDestroy(function(){return Rh(vb,zb.toStyles)}),Va.push(fb),x.has(vb)&&e.push(fb)});Va.forEach(function(Sa){var vb=f.get(Sa.element);vb&&vb.length&&(vb=Kh(vb),Jpb(Sa,vb))});e.forEach(function(Sa){Sa.parentPlayer?Kpb(Sa,Sa.parentPlayer):Sa.destroy()});for(b=0;b<Y.length;b++)if(ha=Y[b],a=ha.__ng_removed,ai(ha,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((I=k.get(ha))&&I.length&&a.push.apply(a,v(I)),I=this.driver.query(ha,".ng-animating",!0),ra=0;ra<I.length;ra++)(Fa=k.get(I[ra]))&&
Fa.length&&a.push.apply(a,v(Fa));a=a.filter(function(Sa){return!Sa.destroyed});a.length?xka(this,ha,a):bi(this,ha)}Y.length=0;ec.forEach(function(Sa){c.players.push(Sa);Sa.onDone(function(){Sa.destroy();var vb=c.players.indexOf(Sa);c.players.splice(vb,1)});Sa.play()});return ec};var sz=function(a,b){a._flushFns.push(b)},Bpb=function(a,b){a._whenQuietFns.push(b)};
vz.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};
vz.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=r(b.timelines),k=h.next();!k.done;f={$jscomp$loop$prop$players$1646:f.$jscomp$loop$prop$players$1646},k=h.next()){k=k.value.element;var q=k!==e;f.$jscomp$loop$prop$players$1646=Mh(c,k,[]);this._getPreviousPlayers(k,q,a,d,b.toState).forEach(function(u){return function(x){var E=x._player;E.beforeDestroy&&E.beforeDestroy();x.destroy();u.$jscomp$loop$prop$players$1646.push(x)}}(f))}Sh(e,
b.fromStyles)};
vz.prototype._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,u=[],x=new Set,E=new Set,I=b.timelines.map(function(L){var T=L.element;x.add(T);var Y=T.__ng_removed;if(Y&&Y.removedBeforeQueried)return new Jh(L.duration,L.delay);Y=T!==q;var ja=zka((c.get(T)||vpb).map(function(Fa){return Fa._player})).filter(function(Fa){return Fa.element?Fa.element===T:!1}),ha=e.get(T),ra=f.get(T);ha=Qja(L.keyframes,ha,ra);ja=h._buildPlayer(L,ha,ja);L.subTimeline&&d&&E.add(T);Y&&(L=new tz(a,
k,T),Jpb(L,ja),u.push(L));return ja});u.forEach(function(L){Mh(h.playersByQueriedElement,L.element,[]).push(L);L.onDone(function(){var T=h.playersByQueriedElement,Y=L.element,ja=T.get(Y);if(ja){if(ja.length){var ha=ja.indexOf(L);ja.splice(ha,1)}0==ja.length&&T.delete(Y)}return ja})});x.forEach(function(L){return $h(L,"ng-animating")});var N=Kh(I);N.onDestroy(function(){x.forEach(function(L){return ai(L,"ng-animating")});Rh(q,b.toStyles)});E.forEach(function(L){Mh(d,L,[]).push(N)});return N};
vz.prototype._buildPlayer=function(a,b,c){return 0<b.length?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Jh(a.duration,a.delay)};
var tz=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Jh;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.disabled=this.markedForDestroy=this.destroyed=!1;this.queued=!0;this.totalTime=0},Jpb=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return Sja(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},Kpb=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=tz.prototype;g._queueEvent=function(a,b){Mh(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 wz=function(a,b,c){var d=this;this.bodyNode=a;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new vz(a,b,c);this._timelineEngine=new upb(a,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=wz.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new epb(this._driver)).build(e,c,[]);if(c.length)throw new pc(3404,!1);c=new rpb(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){Gpb(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){"@"==c.charAt(0)?(c=r(Uja(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=r(Uja(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)};ji.Object.defineProperties(wz.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}});
var ci=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=Lpb.get(a);d||Lpb.set(a,d=new Map);this._initialStyles=d};ci.prototype.start=function(){1>this._state&&(this._startStyles&&Rh(this._element,this._startStyles,this._initialStyles),this._state=1)};ci.prototype.finish=function(){this.start();2>this._state&&(Rh(this._element,this._initialStyles),this._endStyles&&(Rh(this._element,this._endStyles),this._endStyles=null),this._state=1)};
ci.prototype.destroy=function(){this.finish();3>this._state&&(Lpb.delete(this._element),this._startStyles&&(Sh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sh(this._element,this._endStyles),this._endStyles=null),Rh(this._element,this._initialStyles),this._state=3)};var Lpb=new WeakMap;
var xz=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.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=xz.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._onStartFns.push(a)};g.onDone=function(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};
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};
ji.Object.defineProperties(xz.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});
var Mpb=function(){};g=Mpb.prototype;g.containsElement=function(a,b){return dz(a,b)};g.getParentElement=function(a){return Wja(a)};g.query=function(a,b,c){return dpb(a,b,c)};g.computeStyle=function(a,b){return window.getComputedStyle(a)[b]};
g.animate=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h={duration:c,delay:d,fill:0==d?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(u){return u instanceof xz});0!==c&&0!==d||e.forEach(function(u){u.currentSnapshot.forEach(function(x,E){return k.set(E,x)})});var q=Zja(b).map(function(u){return Qh(u)});q=eka(a,q,k);b=Dka(a,q);return new xz(a,q,h,b)};
var yz=function(a,b){this._nextAnimationId=0;this._renderer=a.createRenderer(b.body,{id:"0",encapsulation:2,styles:[],data:{animation:[]}})};V(yz,apb);yz.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 Npb(b,this._renderer)};yz.\u0275fac=function(a){return new (a||yz)(t(Mv),t(hi))};yz.\u0275prov=lc({token:yz,factory:yz.\u0275fac});
var Npb=function(a,b){this._id=a;this._renderer=b};V(Npb,bpb);Npb.prototype.create=function(a,b){return new Opb(this._id,a,b||{},this._renderer)};var Opb=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=Opb.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,xc.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 zz=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)}};
zz.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 Az("",d,this.engine),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 Bz(this,f,d,this.engine)};
zz.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};zz.prototype._scheduleCountTask=function(){var a=this;this.promise.then(function(){a._microtaskId++})};
var Ppb=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=r(e);e=f.next().value;f=f.next().value;e(f)});a._animationCallbacksBuffer=[]})}),a._animationCallbacksBuffer.push([c,d]))};
zz.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()};zz.\u0275fac=function(a){return new (a||zz)(t(Mv),t(wz),t(qg))};zz.\u0275prov=lc({token:zz,factory:zz.\u0275fac});var Az=function(a,b,c){this.namespaceId=a;this.delegate=b;this.engine=c;this.destroyNode=this.delegate.destroyNode?function(d){return b.destroyNode(d)}:null};g=Az.prototype;
g.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate);this.delegate.destroy()};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)};ji.Object.defineProperties(Az.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});
var Bz=function(a,b,c,d){Az.call(this,b,c,d);this.factory=a;this.namespaceId=b};V(Bz,Az);Bz.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)};
Bz.prototype.listen=function(a,b,c){var d=this;if("@"==b.charAt(0)){a=Eka(a);b=b.slice(1);var e="";"@"!=b.charAt(0)&&(e=r(Fka(b)),b=e.next().value,e=e.next().value);return this.engine.listen(this.namespaceId,a,b,e,function(f){Ppb(d.factory,f._data||-1,c,f)})}return this.delegate.listen(a,b,c)};
var Cz=function(a,b,c){wz.call(this,a.body,b,c)};V(Cz,wz);Cz.prototype.ngOnDestroy=function(){this.flush()};Cz.\u0275fac=function(a){return new (a||Cz)(t(hi),t(opb),t(lpb))};Cz.\u0275prov=lc({token:Cz,factory:Cz.\u0275fac});var Qpb=[{provide:apb,useClass:yz},{provide:lpb,useFactory:function(){return new npb}},{provide:wz,useClass:Cz},{provide:Mv,useFactory:function(a,b,c){return new zz(a,b,c)},deps:[Uy,wz,qg]}],Rpb=[{provide:opb,useFactory:function(){return new Mpb}},{provide:Xv,useValue:"BrowserAnimations"}].concat(v(Qpb));
[{provide:opb,useClass:pz},{provide:Xv,useValue:"NoopAnimations"}].concat(v(Qpb));
var Dz=function(){};Dz.\u0275fac=function(a){return new (a||Dz)};Dz.\u0275mod=Cc({type:Dz});Dz.\u0275inj=mc({providers:Rpb,imports:[cz]});
var Spb=new sd("cdk-input-modality-detector-options"),Tpb={ignoreKeys:[18,17,224,91,16]},Ez=Vg({passive:!0,capture:!0}),Fz=function(a,b,c,d){var e=this;this._platform=a;this._mostRecentTarget=null;this._modality=new U.BehaviorSubject(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;(null==(h=e._options)?0:null==(k=h.ignoreKeys)?0:k.some(function(q){return q===f.keyCode}))||(e._modality.next("keyboard"),e._mostRecentTarget=$g(f))};this._onMousedown=function(f){650>Date.now()-e._lastTouchMs||
(e._modality.next(di(f)?"keyboard":"mouse"),e._mostRecentTarget=$g(f))};this._onTouchstart=function(f){ei(f)?e._modality.next("keyboard"):(e._lastTouchMs=Date.now(),e._modality.next("touch"),e._mostRecentTarget=$g(f))};this._options=Object.assign({},Tpb,d);this.modalityDetected=this._modality.pipe(gg(1));this.modalityDetected.pipe(Wf());a.isBrowser&&b.runOutsideAngular(function(){c.addEventListener("keydown",e._onKeydown,Ez);c.addEventListener("mousedown",e._onMousedown,Ez);c.addEventListener("touchstart",
e._onTouchstart,Ez)})};Fz.prototype.ngOnDestroy=function(){this._modality.complete();this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ez),document.removeEventListener("mousedown",this._onMousedown,Ez),document.removeEventListener("touchstart",this._onTouchstart,Ez))};Fz.\u0275fac=function(a){return new (a||Fz)(t(yy),t(qg),t(hi),t(Spb,8))};Fz.\u0275prov=lc({token:Fz,factory:Fz.\u0275fac,providedIn:"root"});
var Upb=new sd("cdk-focus-monitor-default-options"),Gz=Vg({passive:!0,capture:!0}),Hz=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 U.Subject;this._rootNodeFocusAndBlurListener=function(h){for(var k=$g(h),q="focus"===h.type?f._onFocus:f._onBlur;k;k=k.parentElement)q.call(f,h,k)};this._document=d;this._detectionMode=(null==e?void 0:e.detectionMode)||0};
Hz.prototype.monitor=function(a,b){b=void 0===b?!1:b;a=dh(a);if(!this._platform.isBrowser||1!==a.nodeType)return(0,U.of)(null);var c=Yg(a)||this._getDocument(),d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new U.Subject,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};
Hz.prototype.stopMonitoring=function(a){a=dh(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};var Iz=function(a,b,c,d){b=dh(b);b===a._getDocument().activeElement?a._getClosestElementsInfo(b).forEach(function(e){var f=r(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=Hz.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:"program"};
g._shouldBeAttributedToTouch=function(a){return 1===this._detectionMode||!(null==a||!a.contains(this._inputModalityDetector._mostRecentTarget))};g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused","touch"===b);a.classList.toggle("cdk-keyboard-focused","keyboard"===b);a.classList.toggle("cdk-mouse-focused","mouse"===b);a.classList.toggle("cdk-program-focused","program"===b)};
g._setOrigin=function(a,b){var c=this;b=void 0===b?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction="touch"===a&&b;0===c._detectionMode&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=$g(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,Gz);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,Gz)});this._rootNodeFocusListenerCount.set(c,a+1);1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(jg(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,Gz),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gz),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};Hz.\u0275fac=function(a){return new (a||Hz)(t(qg),t(yy),t(Fz),t(hi,8),t(Upb,8))};Hz.\u0275prov=lc({token:Hz,factory:Hz.\u0275fac,providedIn:"root"});
var Jz=function(a,b){this._elementRef=a;this._focusMonitor=b;this.cdkFocusChange=new Jw};Jz.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){return a.cdkFocusChange.emit(c)})};Jz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
Jz.\u0275fac=function(a){return new (a||Jz)(C(wd),C(Hz))};Jz.\u0275dir=w({type:Jz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});
var Kz=function(a,b){this._platform=a;this._document=b},Vpb=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)":return 2;case "rgb(255,255,255)":return 1}return 0};
Kz.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=Vpb(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")}};
Kz.\u0275fac=function(a){return new (a||Kz)(t(yy),t(hi))};Kz.\u0275prov=lc({token:Kz,factory:Kz.\u0275fac,providedIn:"root"});
var Wpb=new sd("liveAnnouncerElement",{providedIn:"root",factory:Gka}),Xpb=new sd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");
var Lz=function(){};Lz.prototype.create=function(a){return"undefined"===typeof MutationObserver?null:new MutationObserver(a)};Lz.\u0275fac=function(a){return new (a||Lz)};Lz.\u0275prov=lc({token:Lz,factory:Lz.\u0275fac,providedIn:"root"});var Mz=function(a){this._mutationObserverFactory=a;this._observedElements=new Map};g=Mz.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=dh(a);return new U.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 U.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)}};Mz.\u0275fac=function(a){return new (a||Mz)(t(Lz))};Mz.\u0275prov=lc({token:Mz,factory:Mz.\u0275fac,providedIn:"root"});
var Nz=function(a,b,c){this._contentObserver=a;this._elementRef=b;this._ngZone=c;this.event=new Jw;this._disabled=!1;this._currentSubscription=null};Nz.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Nz.prototype.ngOnDestroy=function(){this._unsubscribe()};
Nz.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(Tf(a.debounce)):b).subscribe(a.event)})};Nz.prototype._unsubscribe=function(){var a;null==(a=this._currentSubscription)||a.unsubscribe()};
ji.Object.defineProperties(Nz.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=bh(a))?this._unsubscribe():this._subscribe()}},debounce:{configurable:!0,enumerable:!0,get:function(){return this._debounce},set:function(a){this._debounce=eh(a);this._subscribe()}}});Nz.\u0275fac=function(a){return new (a||Nz)(C(Mz),C(wd),C(qg))};
Nz.\u0275dir=w({type:Nz,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Oz=function(){};Oz.\u0275fac=function(a){return new (a||Oz)};Oz.\u0275mod=Cc({type:Oz});Oz.\u0275inj=mc({providers:[Lz]});
var Pz=function(a,b,c,d){this._ngZone=b;this._defaultOptions=d;this._document=c;this._liveElement=a||this._createLiveElement()};
Pz.prototype.announce=function(a){var b=xc.apply(1,arguments),c=this,d=this._defaultOptions;if(1===b.length&&"number"===typeof b[0])var e=b[0];else{b=r(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);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})};Pz.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
Pz.prototype.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};
Pz.prototype._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");this._document.body.appendChild(b);return b};Pz.\u0275fac=function(a){return new (a||Pz)(t(Wpb,8),t(qg),t(hi),t(Xpb,8))};
Pz.\u0275prov=lc({token:Pz,factory:Pz.\u0275fac,providedIn:"root"});
var Qz=function(a){a._applyBodyHighContrastModeCssClasses()};Qz.\u0275fac=function(a){return new (a||Qz)(t(Kz))};Qz.\u0275mod=Cc({type:Qz});Qz.\u0275inj=mc({imports:[Oz]});
var Kka=0,Rz=function(a,b){this._platform=b;this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+Kka++;this._document=a;this._id=uc(pmb)+"-"+Kka++},Ypb=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=Jka(c,d);"string"!==typeof c?(Lka(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)}},Zpb=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
Jka(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=Rz.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");Lka(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(Jka(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=gi(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);Hka(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--;Ika(a,b.messageElement.id);a.removeAttribute("cdk-describedby-host")};
g._isElementDescribedByMessage=function(a,b){a=gi(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};Rz.\u0275fac=function(a){return new (a||Rz)(t(hi),t(yy))};
Rz.\u0275prov=lc({token:Rz,factory:Rz.\u0275fac,providedIn:"root"});
var Sz=function(a,b,c,d,e,f,h){Cy.call(this,a,b,c,d,h.defer);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};V(Sz,Cy);Sz.prototype.destroy=function(){this._focusTrapManager.deregister(this);Cy.prototype.destroy.call(this)};Sz.prototype._enable=function(){this._inertStrategy.preventFocus(this);nob(this,!0)};Sz.prototype._disable=function(){this._inertStrategy.allowFocus(this);nob(this,!1)};
ji.Object.defineProperties(Sz.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 Tz=function(){this._listener=null};Tz.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)})};Tz.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
Tz.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)&&Ay(a)})};
var $pb=new sd("FOCUS_TRAP_INERT_STRATEGY");
var Uz=function(){this._focusTrapStack=[]};Uz.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()};Uz.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())};Uz.\u0275fac=function(a){return new (a||Uz)};Uz.\u0275prov=lc({token:Uz,factory:Uz.\u0275fac,providedIn:"root"});
var Vz=function(a,b,c,d,e){this._checker=a;this._ngZone=b;this._focusTrapManager=c;this._document=d;this._inertStrategy=e||new Tz};Vz.prototype.create=function(a,b){b=void 0===b?{defer:!1}:b;var c;"boolean"===typeof b?c={defer:b}:c=b;return new Sz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c)};Vz.\u0275fac=function(a){return new (a||Vz)(t(zy),t(qg),t(Uz),t(hi),t($pb,8))};Vz.\u0275prov=lc({token:Vz,factory:Vz.\u0275fac,providedIn:"root"});
var Wz=function(a){var b=this;this._items=a;this._activeItemIndex=-1;this._activeItem=null;this._wrap=!1;this._letterKeyStream=new U.Subject;this._typeaheadSubscription=U.Subscription.EMPTY;this._vertical=!0;this._allowedModifierKeys=[];this._homeAndEnd=!1;this._skipPredicateFn=function(c){return c.disabled};this._pressedLetters=[];this.tabOut=new U.Subject;this.change=new U.Subject;a instanceof Kf&&a.changes.subscribe(function(c){b._activeItem&&(c=c.toArray().indexOf(b._activeItem),-1<c&&c!==b._activeItemIndex&&
(b._activeItemIndex=c))})},aqb=function(a,b){a._skipPredicateFn=b;return a},Xz=function(a){a._wrap=!0;return a},Yz=function(a){a._vertical=!0;return a},Zz=function(a,b){a._horizontal=b;return a},bqb=function(a){a._allowedModifierKeys=["shiftKey"];return a},$z=function(a,b){b=void 0===b?200:b;a._typeaheadSubscription.unsubscribe();a._typeaheadSubscription=a._letterKeyStream.pipe(kg(function(c){return a._pressedLetters.push(c)}),Tf(b),xf(function(){return 0<a._pressedLetters.length}),S(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},aA=function(a){a._homeAndEnd=!0;return a};Wz.prototype.setActiveItem=function(a){var b=this._activeItem;bA(this,a);this._activeItem!==b&&this.change.next(this._activeItemIndex)};
Wz.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){cA(this);break}else return;case 35:if(this._homeAndEnd&&d){dA(this);break}else return;default:if(d||fi(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 cA=function(a){a._setActiveItemByIndex(0,1)},dA=function(a){a._setActiveItemByIndex(a._items.length-1,-1)};Wz.prototype.setNextItemActive=function(){0>this._activeItemIndex?cA(this):this._setActiveItemByDelta(1)};Wz.prototype.setPreviousItemActive=function(){0>this._activeItemIndex&&this._wrap?dA(this):this._setActiveItemByDelta(-1)};var bA=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=Wz.prototype;
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 Kf?this._items.toArray():this._items};ji.Object.defineProperties(Wz.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem}}});
var eA=function(){Wz.apply(this,arguments)};V(eA,Wz);eA.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Wz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};
var fA=function(){Wz.apply(this,arguments);this._origin="program"};V(fA,Wz);fA.prototype.setActiveItem=function(a){Wz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};
var cqb=new sd("cdk-dir-doc",{providedIn:"root",factory:Mka});
var dqb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,gA=function(a){this.value="ltr";this.change=new Jw;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)?dqb.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}};gA.prototype.ngOnDestroy=function(){this.change.complete()};
gA.\u0275fac=function(a){return new (a||gA)(t(cqb,8))};gA.\u0275prov=lc({token:gA,factory:gA.\u0275fac,providedIn:"root"});
var hA=function(){};hA.\u0275fac=function(a){return new (a||hA)};hA.\u0275mod=Cc({type:hA});hA.\u0275inj=mc({});
var iA=function(a){this._attachedOverlays=[];this._document=a};iA.prototype.ngOnDestroy=function(){this.detach()};iA.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};iA.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);-1<a&&this._attachedOverlays.splice(a,1);0===this._attachedOverlays.length&&this.detach()};iA.\u0275fac=function(a){return new (a||iA)(t(hi))};iA.\u0275prov=lc({token:iA,factory:iA.\u0275fac,providedIn:"root"});
var jA=function(a,b){iA.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$1648:f.$jscomp$loop$prop$keydownEvents$1648},h--)if(0<e[h]._keydownEvents.observers.length){f.$jscomp$loop$prop$keydownEvents$1648=e[h]._keydownEvents;c._ngZone?c._ngZone.run(function(k){return function(){return k.$jscomp$loop$prop$keydownEvents$1648.next(d)}}(f)):f.$jscomp$loop$prop$keydownEvents$1648.next(d);break}}};
V(jA,iA);jA.prototype.add=function(a){var b=this;iA.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)};jA.prototype.detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)};
jA.\u0275fac=function(a){return new (a||jA)(t(hi),t(qg,8))};jA.\u0275prov=lc({token:jA,factory:jA.\u0275fac,providedIn:"root"});
var kA=function(a,b,c){iA.call(this,a);var d=this;this._platform=b;this._ngZone=c;this._cursorStyleIsSet=!1;this._pointerDownListener=function(e){d._pointerDownEventTarget=$g(e)};this._clickListener=function(e){var f=$g(e),h="click"===e.type&&d._pointerDownEventTarget?d._pointerDownEventTarget:f;d._pointerDownEventTarget=null;for(var k=d._attachedOverlays.slice(),q={},u=k.length-1;-1<u;q={$jscomp$loop$prop$outsidePointerEvents$1650:q.$jscomp$loop$prop$outsidePointerEvents$1650},u--){var x=k[u];if(!(1>
x._outsidePointerEvents.observers.length)&&x.hasAttached()){if(x.overlayElement.contains(f)||x.overlayElement.contains(h))break;q.$jscomp$loop$prop$outsidePointerEvents$1650=x._outsidePointerEvents;d._ngZone?d._ngZone.run(function(E){return function(){return E.$jscomp$loop$prop$outsidePointerEvents$1650.next(e)}}(q)):q.$jscomp$loop$prop$outsidePointerEvents$1650.next(e)}}}};V(kA,iA);
kA.prototype.add=function(a){var b=this;iA.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}};
kA.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}};
kA.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)};kA.\u0275fac=function(a){return new (a||kA)(t(hi),t(yy),t(qg,8))};kA.\u0275prov=lc({token:kA,factory:kA.\u0275fac,providedIn:"root"});
var lA=function(a,b){this._platform=b;this._document=a};lA.prototype.ngOnDestroy=function(){var a;null==(a=this._containerElement)||a.remove()};var mA=function(a){a._containerElement||a._createContainer();return a._containerElement};
lA.prototype._createContainer=function(){if(this._platform.isBrowser||eja())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");eja()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
lA.\u0275fac=function(a){return new (a||lA)(t(hi),t(yy))};lA.\u0275prov=lc({token:lA,factory:lA.\u0275fac,providedIn:"root"});
var eqb=bja(),nA=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};nA.prototype.attach=function(){};
nA.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=ch(-this._previousScrollPosition.left);a.style.top=ch(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
nA.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");eqb&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);eqb&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
nA.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 oA=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()})}};oA.prototype.attach=function(a){this._overlayRef=a};
oA.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)}};
oA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};oA.prototype.detach=function(){this.disable();this._overlayRef=null};
var pA=function(){};pA.prototype.enable=function(){};pA.prototype.disable=function(){};pA.prototype.attach=function(){};
var qA=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};qA.prototype.attach=function(a){this._overlayRef=a};
qA.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;Nka(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
qA.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};qA.prototype.detach=function(){this.disable();this._overlayRef=null};
new sd("VIRTUAL_SCROLL_STRATEGY");
var rA=function(a,b,c){this._ngZone=a;this._platform=b;this._scrolled=new U.Subject;this._globalSubscription=null;this._scrolledCount=0;this.scrollContainers=new Map;this._document=c};rA.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};rA.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
rA.prototype.scrolled=function(a){var b=this;a=void 0===a?20:a;return this._platform.isBrowser?new U.Observable(function(c){b._globalSubscription||b._addGlobalListener();var d=0<a?b._scrolled.pipe(Rf(a)).subscribe(c):b._scrolled.subscribe(c);b._scrolledCount++;return function(){d.unsubscribe();b._scrolledCount--;b._scrolledCount||b._removeGlobalListener()}}):(0,U.of)()};
rA.prototype.ngOnDestroy=function(){var a=this;this._removeGlobalListener();this.scrollContainers.forEach(function(b,c){return a.deregister(c)});this._scrolled.complete()};var fqb=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};rA.prototype._getWindow=function(){return this._document.defaultView||window};
rA.prototype._scrollableContainsElement=function(a,b){b=dh(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};rA.prototype._addGlobalListener=function(){var a=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return(0,U.fromEvent)(a._getWindow().document,"scroll").subscribe(function(){return a._scrolled.next()})})};
rA.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)};rA.\u0275fac=function(a){return new (a||rA)(t(qg),t(yy),t(hi,8))};rA.\u0275prov=lc({token:rA,factory:rA.\u0275fac,providedIn:"root"});
var sA=function(a,b,c,d){var e=this;this.elementRef=a;this.scrollDispatcher=b;this.ngZone=c;this.dir=d;this._destroyed=new U.Subject;this._elementScrolled=new U.Observable(function(f){return e.ngZone.runOutsideAngular(function(){return(0,U.fromEvent)(e.elementRef.nativeElement,"scroll").pipe(jg(e._destroyed)).subscribe(f)})})};sA.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)};sA.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
sA.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!=cja()?(null!=a.left&&(a.right=b.scrollWidth-b.clientWidth-a.left),2==cja()?a.left=a.right:1==cja()&&(a.left=a.right?-a.right:a.right)):null!=a.right&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
sA.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;bja()?b.scrollTo(a):(null!=a.top&&(b.scrollTop=a.top),null!=a.left&&(b.scrollLeft=a.left))};sA.\u0275fac=function(a){return new (a||sA)(C(wd),C(rA),C(qg),C(gA,8))};sA.\u0275dir=w({type:sA,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});
var gqb=function(){},hqb=function(a,b,c,d){rnb(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})}})};gqb.prototype.detach=function(){};
var tA=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 U.Subject;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=tA.prototype;g.select=function(){var a=this;xc.apply(0,arguments).forEach(function(b){return a._markSelected(b)});this._emitChangeEvent()};
g.deselect=function(){var a=this;xc.apply(0,arguments).forEach(function(b){return a._unmarkSelected(b)});this._emitChangeEvent()};g.toggle=function(a){this.isSelected(a)?this.deselect(a):this.select(a)};g.clear=function(){this._unmarkAll();this._emitChangeEvent()};g.isSelected=function(a){if(this._compareWith){for(var b=r(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(){};
ji.Object.defineProperties(tA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});
var uA=function(){this._listeners=[]};uA.prototype.notify=function(a,b){for(var c=r(this._listeners),d=c.next();!d.done;d=c.next())d=d.value,d(a,b)};uA.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};uA.prototype.ngOnDestroy=function(){this._listeners=[]};uA.\u0275fac=function(a){return new (a||uA)};uA.\u0275prov=lc({token:uA,factory:uA.\u0275fac,providedIn:"root"});
var iqb=new sd("_ViewRepeater");
var vA=function(a,b,c){var d=this;this._platform=a;this._change=new U.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=vA.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(Rf(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}};vA.\u0275fac=function(a){return new (a||vA)(t(yy),t(qg),t(hi,8))};vA.\u0275prov=lc({token:vA,factory:vA.\u0275fac,providedIn:"root"});
new sd("VIRTUAL_SCROLLABLE");
var wA=function(){};wA.\u0275fac=function(a){return new (a||wA)};wA.\u0275mod=Cc({type:wA});wA.\u0275inj=mc({});var xA=function(){};xA.\u0275fac=function(a){return new (a||xA)};xA.\u0275mod=Cc({type:xA});xA.\u0275inj=mc({imports:[hA,wA,hA,wA]});
var yA=function(a,b,c,d){var e=this;this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this.noop=function(){return new pA};this.close=function(f){return new oA(e._scrollDispatcher,e._ngZone,e._viewportRuler,f)};this.block=function(){return new nA(e._viewportRuler,e._document)};this.reposition=function(f){return new qA(e._scrollDispatcher,e._viewportRuler,e._ngZone,f)};this._document=d};yA.\u0275fac=function(a){return new (a||yA)(t(rA),t(vA),t(qg),t(hi))};
yA.\u0275prov=lc({token:yA,factory:yA.\u0275fac,providedIn:"root"});
var zA=function(a){this.scrollStrategy=new pA;this.panelClass="";this.hasBackdrop=!1;this.backdropClass="cdk-overlay-dark-backdrop";this.disposeOnNavigation=!1;if(a){var b=Object.keys(a);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,void 0!==a[c]&&(this[c]=a[c])}};
var AA=function(a,b,c,d,e,f,h,k,q,u){var x=this;u=void 0===u?!1:u;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=u;this._backdropElement=null;this._backdropClick=new U.Subject;this._attachments=new U.Subject;this._detachments=new U.Subject;this._locationChanges=U.Subscription.EMPTY;this._backdropClickHandler=function(E){return x._backdropClick.next(E)};
this._backdropTransitionendHandler=function(E){x._disposeBackdrop(E.target)};this._keydownEvents=new U.Subject;this._outsidePointerEvents=new U.Subject;d.scrollStrategy&&(this._scrollStrategy=d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=AA.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(Xf()).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);return a};
g.detach=function(){if(this.hasAttached()){jqb(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 kqb=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};g=AA.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=ch(this._config.width);a.height=ch(this._config.height);a.minWidth=ch(this._config.minWidth);a.minHeight=ch(this._config.minHeight);a.maxWidth=ch(this._config.maxWidth);a.maxHeight=ch(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 jqb=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)})))};
AA.prototype._toggleClasses=function(a,b,c){b=ah(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,v(b)):a.classList.remove.apply(a.classList,v(b)))};
AA.prototype._detachContentWhenStable=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._ngZone.onStable.pipe(jg((0,U.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())})})};
AA.prototype._disposeScrollStrategy=function(){var a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())};AA.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)};
ji.Object.defineProperties(AA.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});
var lqb=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};
var Qka=/([A-Za-z%]+)$/,BA=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 U.Subject;this._resizeSubscription=U.Subscription.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};BA.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()})};
BA.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)mqb(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=mA(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=r(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),u=this._getOverlayPoint(q,b,k),x=this._getOverlayFit(u,b,c,k);if(x.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(x,u,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<x.visibleArea)f={overlayFit:x,
overlayPoint:u,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=r(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)}};BA.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
BA.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ii(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 mqb=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=mA(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},nqb=function(a,b){a._scrollables=b;return a},CA=function(a,b){a._preferredPositions=b;-1===b.indexOf(a._lastPosition)&&(a._lastPosition=
null);return a},DA=function(a,b){a._viewportMargin=b;return a},EA=function(a,b){a._hasFlexibleDimensions=void 0===b?!0:b;return a},oqb=function(a,b){a._growAfterOpen=void 0===b?!0:b;return a},FA=function(a,b){a._canPush=void 0===b?!0:b;return a},GA=function(a,b){a._positionLocked=void 0===b?!0:b;return a};BA.prototype.setOrigin=function(a){this._origin=a;return this};var pqb=function(a,b){a._transformOriginSelector=b;return a};g=BA.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=Ska(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=Rka(this._overlayRef.getConfig().minHeight);var e=Rka(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=Ska(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 lqb(a,b)));this._isInitialRender=!1};
g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a="center"===a.overlayX?"center":this._isRtl()?"start"===a.overlayX?"right":"left":"start"===a.overlayX?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if("top"===b.overlayY){var e=a.y;var f=c.height-e+this._viewportMargin}else if("bottom"===b.overlayY){var h=c.height-a.y+2*this._viewportMargin;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=2*e;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k="start"===b.overlayX&&!d||"end"===b.overlayX&&d;if("end"===b.overlayX&&!d||"start"===
b.overlayX&&d){var q=c.width-a.x+this._viewportMargin;b=a.x-this._viewportMargin}else if(k){var u=a.x;b=c.right-a.x}else u=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=2*u,u=a.x-u,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-c/2);return{top:e,left:u,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=ch(a.height);c.top=ch(a.top);c.bottom=ch(a.bottom);
c.width=ch(a.width);c.left=ch(a.left);c.right=ch(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=ch(d));e&&(c.maxWidth=ch(e))}this._lastBoundingBoxSize=a;ii(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){ii(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){ii(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();ii(c,this._getExactOverlayY(b,a,h));ii(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=ch(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=ch(f.maxWidth):e&&(c.maxWidth=""));ii(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=ch(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=ch(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:Oka(a,c),isOriginOutsideView:Nka(a,c),isOverlayClipped:Oka(b,c),isOverlayOutsideView:Nka(b,c)}};g._subtractOverflows=function(a){return xc.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&&ah(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 wd)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}};
ji.Object.defineProperties(BA.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});
var HA=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=HA.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 IA=function(a){a.left("");a._xPosition="center";return a},qqb=function(a){a.top("");a._alignItems="center";return a};
HA.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=("100%"===d||"100vw"===d)&&(!f||"100%"===f||"100vw"===f);e=("100%"===e||"100vh"===e)&&(!c||"100%"===c||"100vh"===c);f=this._xPosition;c=this._xOffset;var h="rtl"===this._overlayRef.getConfig().direction,k="",q="",u="";if(d)u="flex-start";else if("center"===
f)u="center",h?q=c:k=c;else if(h)if("left"===f||"end"===f)u="flex-end",k=c;else{if("right"===f||"start"===f)u="flex-start",q=c}else if("left"===f||"start"===f)u="flex-start",k=c;else if("right"===f||"end"===f)u="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=u;b.alignItems=e?"flex-start":this._alignItems}};
HA.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 JA=function(a,b,c,d){this._viewportRuler=a;this._document=b;this._platform=c;this._overlayContainer=d};JA.prototype.global=function(){return new HA};var KA=function(a,b){return new BA(b,a._viewportRuler,a._document,a._platform,a._overlayContainer)};JA.\u0275fac=function(a){return new (a||JA)(t(vA),t(hi),t(yy),t(lA))};JA.\u0275prov=lc({token:JA,factory:JA.\u0275fac,providedIn:"root"});
var LA=function(){};LA.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};LA.prototype.detach=function(){var a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())};ji.Object.defineProperties(LA.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return null!=this._attachedHost}}});var MA=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.componentFactoryResolver=d};V(MA,LA);
var NA=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};V(NA,LA);NA.prototype.attach=function(a,b){this.context=b=void 0===b?this.context:b;return LA.prototype.attach.call(this,a)};NA.prototype.detach=function(){this.context=void 0;return LA.prototype.detach.call(this)};ji.Object.defineProperties(NA.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var OA=function(){this._isDisposed=!1};g=OA.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof MA)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof NA)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 PA=function(a,b,c,d,e){this._isDisposed=!1;this.outletElement=a;this._componentFactoryResolver=b;this._appRef=c;this._defaultInjector=d;this._document=e};V(PA,OA);
PA.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);this.setDisposeFn(function(){return d.destroy()})}else d=c.create(a.injector||this._defaultInjector||Qlb),nnb(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};PA.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};
PA.prototype.dispose=function(){OA.prototype.dispose.call(this);this.outletElement.remove()};PA.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};
var QA=function(a,b){NA.call(this,a,b)};V(QA,NA);QA.\u0275fac=function(a){return new (a||QA)(C(Df),C(Ef))};QA.\u0275dir=w({type:QA,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ie]});var RA=function(a,b,c){this._isDisposed=!1;this._componentFactoryResolver=a;this._viewContainerRef=b;this._isInitialized=!1;this.attached=new Jw;this._document=c};V(RA,OA);g=RA.prototype;g.ngOnInit=function(){this._isInitialized=!0};
g.ngOnDestroy=function(){OA.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);b!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]);OA.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});OA.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};
ji.Object.defineProperties(RA.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&OA.prototype.detach.call(this),a&&OA.prototype.attach.call(this,a),this._attachedPortal=a||null}}});RA.\u0275fac=function(a){return new (a||RA)(C(Kv),C(Ef),C(hi))};
RA.\u0275dir=w({type:RA,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ie]});var SA=function(){};SA.\u0275fac=function(a){return new (a||SA)};SA.\u0275mod=Cc({type:SA});SA.\u0275inj=mc({});
var rqb=0,TA=function(a,b,c,d,e,f,h,k,q,u,x,E){this.scrollStrategies=a;this._overlayContainer=b;this._componentFactoryResolver=c;this._positionBuilder=d;this._keyboardDispatcher=e;this._injector=f;this._ngZone=h;this._document=k;this._directionality=q;this._location=u;this._outsideClickDispatcher=x;this._animationsModuleType=E};g=TA.prototype;
g.create=function(a){var b=this._createHostElement(),c=this._createPaneElement(b),d=this._createPortalOutlet(c);a=new zA(a);a.direction=a.direction||this._directionality.value;return new AA(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-"+rqb++;b.classList.add("cdk-overlay-pane");a.appendChild(b);return b};g._createHostElement=function(){var a=this._document.createElement("div");mA(this._overlayContainer).appendChild(a);return a};g._createPortalOutlet=function(a){this._appRef||(this._appRef=this._injector.get(lx));return new PA(a,this._componentFactoryResolver,this._appRef,this._injector,this._document)};
TA.\u0275fac=function(a){return new (a||TA)(t(yA),t(lA),t(Kv),t(JA),t(jA),t(Iv),t(qg),t(hi),t(gA),t(Tx),t(kA),t(Xv,8))};TA.\u0275prov=lc({token:TA,factory:TA.\u0275fac});
var sqb=[{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"}],tqb=new sd("cdk-connected-overlay-scroll-strategy"),UA=function(a){this.elementRef=a};UA.\u0275fac=function(a){return new (a||UA)(C(wd))};
UA.\u0275dir=w({type:UA,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var VA=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=U.Subscription.EMPTY;this.viewportMargin=0;this.disableClose=this.open=!1;this.backdropClick=new Jw;this.positionChange=new Jw;this.attach=new Jw;this.detach=new Jw;this.overlayKeydown=new Jw;this.overlayOutsideClick=new Jw;this._templatePortal=new NA(b,
c);this._scrollStrategyFactory=d;this.scrollStrategy=this._scrollStrategyFactory()};g=VA.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=sqb);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||fi(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 zA({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 pqb(GA(DA(oqb(FA(EA(CA(a.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=KA(this._overlay.position(),this._getFlexibleConnectedPositionStrategyOrigin());this._updatePositionStrategy(a);return a};g._getFlexibleConnectedPositionStrategyOrigin=function(){return this.origin instanceof UA?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(vha(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()};
ji.Object.defineProperties(VA.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=
bh(a)}},lockPosition:{configurable:!0,enumerable:!0,get:function(){return this._lockPosition},set:function(a){this._lockPosition=bh(a)}},flexibleDimensions:{configurable:!0,enumerable:!0,get:function(){return this._flexibleDimensions},set:function(a){this._flexibleDimensions=bh(a)}},growAfterOpen:{configurable:!0,enumerable:!0,get:function(){return this._growAfterOpen},set:function(a){this._growAfterOpen=bh(a)}},push:{configurable:!0,enumerable:!0,get:function(){return this._push},set:function(a){this._push=
bh(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"}}});VA.\u0275fac=function(a){return new (a||VA)(C(TA),C(Df),C(Ef),C(tqb),C(gA,8))};
VA.\u0275dir=w({type:VA,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:[Jc]});var uqb={provide:tqb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};
var WA=function(){};WA.\u0275fac=function(a){return new (a||WA)};WA.\u0275mod=Cc({type:WA});WA.\u0275inj=mc({providers:[TA,uqb],imports:[hA,SA,xA,xA]});
var vqb=new sd("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),XA=function(a,b,c){this._sanityChecks=b;this._document=c;this._hasDoneGlobalChecks=!1;a._applyBodyHighContrastModeCssClasses();this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)};XA.prototype._checkIsEnabled=function(a){return eja()?!1:"boolean"===typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[a]};XA.\u0275fac=function(a){return new (a||XA)(t(Kz),t(vqb,8),t(hi))};XA.\u0275mod=Cc({type:XA});
XA.\u0275inj=mc({imports:[hA,hA]});
var wqb=new sd("MAT_DATE_LOCALE",{providedIn:"root",factory:Vka}),YA=function(){this.localeChanges=this._localeChanges=new U.Subject},ZA=function(a,b){return a.isDateInstance(b)&&a.isValid(b)?b:null};YA.prototype.deserialize=function(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()};YA.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var $A=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};
YA.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!$A(this,a,b):c==d}return a==b};var aB=function(a,b,c,d){return c&&0>$A(a,b,c)?c:d&&0<$A(a,b,d)?d:b};
var bB=new sd("mat-date-formats");
var xqb=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,cB=function(a){YA.call(this);YA.prototype.setLocale.call(this,a)};V(cB,YA);g=cB.prototype;g.getYear=function(a){return a.getFullYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};
g.getMonthNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{month:a,timeZone:"utc"});return Wka(12,function(d){return b._format(c,new Date(2017,d,1))})};g.getDateNames=function(){var a=this,b=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Wka(31,function(c){return a._format(b,new Date(2017,0,c+1))})};
g.getDayOfWeekNames=function(a){var b=this,c=new Intl.DateTimeFormat(this.locale,{weekday:a,timeZone:"utc"});return Wka(7,function(d){return b._format(c,new Date(2017,0,d+1))})};g.getYearName=function(a){var b=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(b,a)};g.getFirstDayOfWeek=function(){return 0};g.getNumDaysInMonth=function(a){return this.getDate(this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+1,0))};g.clone=function(a){return new Date(a.getTime())};
g.createDate=function(a,b,c){a=this._createDateWithOverflow(a,b,c);a.getMonth();return a};g.today=function(){return new Date};g.parse=function(a){return"number"==typeof a?new Date(a):a?new Date(Date.parse(a)):null};g.format=function(a,b){if(!this.isValid(a))throw Error("mb");b=new Intl.DateTimeFormat(this.locale,Object.assign({},b,{timeZone:"utc"}));return this._format(b,a)};g.addCalendarYears=function(a,b){return this.addCalendarMonths(a,12*b)};
g.addCalendarMonths=function(a,b){var c=this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+b,this.getDate(a));this.getMonth(c)!=((this.getMonth(a)+b)%12+12)%12&&(c=this._createDateWithOverflow(this.getYear(c),this.getMonth(c),0));return c};g.addCalendarDays=function(a,b){return this._createDateWithOverflow(this.getYear(a),this.getMonth(a),this.getDate(a)+b)};
g.deserialize=function(a){if("string"===typeof a){if(!a)return null;if(xqb.test(a)){var b=new Date(a);if(this.isValid(b))return b}}return YA.prototype.deserialize.call(this,a)};g.isDateInstance=function(a){return a instanceof Date};g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new Date(NaN)};g._createDateWithOverflow=function(a,b,c){var d=new Date;d.setFullYear(a,b,c);d.setHours(0,0,0,0);return d};g._2digit=function(a){return("00"+a).slice(-2)};
g._format=function(a,b){var c=new Date;c.setUTCFullYear(b.getFullYear(),b.getMonth(),b.getDate());c.setUTCHours(b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds());return a.format(c)};cB.\u0275fac=function(a){return new (a||cB)(t(wqb,8),t(yy))};cB.\u0275prov=lc({token:cB,factory:cB.\u0275fac});
var dB=function(){};dB.\u0275fac=function(a){return new (a||dB)};dB.\u0275mod=Cc({type:dB});dB.\u0275inj=mc({providers:[{provide:YA,useClass:cB}]});var eB=function(){};eB.\u0275fac=function(a){return new (a||eB)};eB.\u0275mod=Cc({type:eB});
eB.\u0275inj=mc({providers:[{provide:bB,useValue:{parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}}}],imports:[dB]});
var fB=function(){};fB.\u0275fac=function(a){return new (a||fB)};fB.\u0275prov=lc({token:fB,factory:fB.\u0275fac,providedIn:"root"});
new sd("MAT_HAMMER_OPTIONS");
var gB=function(){};gB.\u0275fac=function(a){return new (a||gB)};gB.\u0275dir=w({type:gB,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var hB=function(){};hB.\u0275fac=function(a){return new (a||hB)};hB.\u0275mod=Cc({type:hB});hB.\u0275inj=mc({imports:[XA,XA]});
var yqb=new sd("MAT_OPTION_PARENT_COMPONENT");
mi(function(){});var zqb=new sd("MatOptgroup");
var Aqb=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 Bqb={enterDuration:225,exitDuration:150},Cqb=Vg({passive:!0}),Dqb=["mousedown","touchstart"],Eqb=["mouseup","mouseleave","touchend","touchcancel"],iB=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=dh(c))},jB=function(a,b,c,d){d=void 0===d?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},Bqb,d.animation);d.centered&&
(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||Yka(b,c,e);b-=e.left;e=c-e.top;c=f.enterDuration;var k=document.createElement("div");k.classList.add("mat-ripple-element");k.style.left=b-h+"px";k.style.top=e-h+"px";k.style.height=2*h+"px";k.style.width=2*h+"px";null!=d.color&&(k.style.backgroundColor=d.color);k.style.transitionDuration=c+"ms";a._containerElement.appendChild(k);h=window.getComputedStyle(k);b=h.transitionDuration;h="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b;var q=
new Aqb(a,k,d,h);k.style.transform="scale3d(1, 1, 1)";q.state=0;d.persistent||(a._mostRecentTransientRipple=q);var u=null;h||!c&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var x=function(){return a._finishRippleTransition(q)},E=function(){return a._destroyRipple(q)};k.addEventListener("transitionend",x);k.addEventListener("transitioncancel",E);u={onTransitionEnd:x,onTransitionCancel:E}});a._activeRipples.set(q,u);!h&&c||a._finishRippleTransition(q);return q},Fqb=function(a,b){if(2!==
b.state&&3!==b.state){var c=b.element,d=Object.assign({},Bqb,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};iB.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||Fqb(a._renderer,a)})};var Gqb=function(a,b){(b=dh(b))&&b!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=b,a._registerEvents(Dqb))};
g=iB.prototype;g.handleEvent=function(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._registerEvents(Eqb),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||Fqb(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=di(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,jB(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!ei(a)){this._lastTouchStartEvent=Date.now();this._isPointerDown=!0;a=a.changedTouches;for(var b=0;b<a.length;b++)jB(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&&Fqb(a._renderer,a)}))};g._registerEvents=function(a){var b=this;this._ngZone.runOutsideAngular(function(){a.forEach(function(c){b._triggerElement.addEventListener(c,b,Cqb)})})};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this;this._triggerElement&&(Dqb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Cqb)}),this._pointerUpEventsRegistered&&Eqb.forEach(function(b){a._triggerElement.removeEventListener(b,a,Cqb)}))};
var Hqb=new sd("mat-ripple-global-options"),kB=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 iB(this,b,a,c)};g=kB.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&&Gqb(this._rippleRenderer,this.trigger)};g.launch=function(a,b,c){return"number"===typeof a?jB(this._rippleRenderer,a,void 0===b?0:b,Object.assign({},this.rippleConfig,c)):jB(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
ji.Object.defineProperties(kB.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}}});kB.\u0275fac=function(a){return new (a||kB)(C(wd),C(qg),C(yy),C(Hqb,8),C(Xv,8))};
kB.\u0275dir=w({type:kB,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&te("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 lB=function(a){this._animationMode=a;this.state="unchecked";this.disabled=!1};lB.\u0275fac=function(a){return new (a||lB)(C(Xv,8))};
lB.\u0275cmp=w({type:lB,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(a,b){a&2&&te("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{width:16px;height:16px;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:transparent}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],
encapsulation:2,changeDetection:0});
var Iqb=0,Jqb=function(a,b){this.source=a;this.isUserInput=void 0===b?!1:b},mB=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-"+Iqb++;this.onSelectionChange=new Jw;this._stateChanges=new U.Subject};g=mB.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||fi(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=a,this._stateChanges.next())}};g.ngOnDestroy=function(){this._stateChanges.complete()};g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new Jqb(this,void 0===a?!1:a))};
ji.Object.defineProperties(mB.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=bh(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()}}});mB.\u0275fac=function(){Ad()};mB.\u0275dir=w({type:mB,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var nB=function(a,b,c,d){mB.call(this,a,b,c,d)};V(nB,mB);nB.\u0275dir=mB.\u0275dir;nB.\u0275fac=function(a){return new (a||nB)(C(wd),C(nx),C(yqb,8),C(zqb,8))};
nB.\u0275cmp=w({type:nB,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(a,b){a&1&&J("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Ce("id",b.id),oe("tabindex",b._getTabIndex())("aria-selected",b._getAriaSelected())("aria-disabled",b.disabled.toString()),te("mat-selected",b.selected)("mat-option-multiple",b.multiple)("mat-active",b.active)("mat-option-disabled",
b.disabled))},exportAs:["matOption"],features:[ie],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&&(Ee(),O(0,Zka,1,2,"mat-pseudo-checkbox",0),F(1,"span",1),Fe(2),G(),O(3,$ka,2,1,"span",
2),H(4,"div",3));a&2&&(D("ngIf",b.multiple),B(3),D("ngIf",b.group&&b.group._inert),B(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[kB,ux,lB],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:transparent}.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}.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 oB=function(){};oB.\u0275fac=function(a){return new (a||oB)};oB.\u0275mod=Cc({type:oB});oB.\u0275inj=mc({imports:[XA,XA]});
var pB=function(){};pB.\u0275fac=function(a){return new (a||pB)};pB.\u0275mod=Cc({type:pB});pB.\u0275inj=mc({imports:[XA]});
var qB=function(){};qB.\u0275fac=function(a){return new (a||qB)};qB.\u0275mod=Cc({type:qB});qB.\u0275inj=mc({imports:[oB,Mx,XA,pB]});
/*

 Copyright Google Inc. 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
*/
var Kqb=["mat-button",""],Lqb=["*"],Mqb=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:transparent;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:transparent;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:transparent;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:transparent;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}\n"},
Nqb="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),Oqb=ki(mi(li(function(a){this._elementRef=a}))),rB=function(a,b,c){var d=Oqb.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=r(Nqb),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};V(rB,Oqb);g=rB.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?Iz(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 xc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};rB.\u0275fac=function(a){return new (a||rB)(C(wd),C(Hz),C(Xv,8))};
rB.\u0275cmp=w({type:rB,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&&Hf(kB,5);if(a&2){var c;Gf(c=Jf())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(a,b){a&2&&(oe("disabled",b.disabled||null),te("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ie],attrs:Kqb,ngContentSelectors:Lqb,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&&(Ee(),F(0,"span",0),Fe(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),te("mat-button-ripple-round",b.isRoundButton||b.isIconButton),D("matRippleDisabled",
b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[kB],styles:[Mqb()],encapsulation:2,changeDetection:0});var sB=function(a,b,c,d){var e=rB.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};V(sB,rB);
sB.prototype.ngAfterViewInit=function(){var a=this;rB.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};sB.prototype.ngOnDestroy=function(){rB.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
sB.\u0275fac=function(a){return new (a||sB)(C(Hz),C(wd),C(Xv,8),C(qg,8))};
sB.\u0275cmp=w({type:sB,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&&(oe("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString()),te("_mat-animation-noopable","NoopAnimations"===b._animationMode)("mat-button-disabled",b.disabled))},
inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ie],attrs:Kqb,ngContentSelectors:Lqb,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&&(Ee(),F(0,"span",0),Fe(1),G(),H(2,"span",1)(3,"span",2));a&2&&(B(2),te("mat-button-ripple-round",b.isRoundButton||b.isIconButton),
D("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[kB],styles:[Mqb()],encapsulation:2,changeDetection:0});
var tB=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new U.Subject;this.selection=a};tB.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};tB.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};tB.prototype._isValidDateInstance=function(a){return this._adapter.isDateInstance(a)&&this._adapter.isValid(a)};tB.\u0275fac=function(){Ad()};
tB.\u0275prov=lc({token:tB,factory:tB.\u0275fac});var uB=function(a){tB.call(this,null,a)};V(uB,tB);uB.prototype.add=function(a){tB.prototype.updateSelection.call(this,a,this)};uB.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)};uB.prototype.isComplete=function(){return null!=this.selection};uB.prototype.clone=function(){var a=new uB(this._adapter);a.updateSelection(this.selection,this);return a};uB.\u0275fac=function(a){return new (a||uB)(t(YA))};
uB.\u0275prov=lc({token:uB,factory:uB.\u0275fac});var Pqb={provide:tB,deps:[[new Fv,new Gv,tB],YA],useFactory:function(a,b){return a||new uB(b)}};new Fv;new Gv;
var vB=function(){this.changes=new U.Subject};vB.\u0275fac=function(a){return new (a||vB)};vB.\u0275prov=lc({token:vB,factory:vB.\u0275fac,providedIn:"root"});
var Qqb=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},wB=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 Jw;this.previewChange=new Jw;this.activeDateChange=new Jw;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._leaveHandler=function(d){null!==c.previewEnd&&c.isRange&&d.target&&c._getCellFromElement(d.target)&&c._ngZone.run(function(){return c.previewChange.emit({value:null,event:d})})};b.runOutsideAngular(function(){var d=a.nativeElement;d.addEventListener("mouseenter",c._enterHandler,
!0);d.addEventListener("focus",c._enterHandler,!0);d.addEventListener("mouseleave",c._leaveHandler,!0);d.addEventListener("blur",c._leaveHandler,!0)})};g=wB.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};g._cellClicked=function(a,b){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("focus",this._enterHandler,!0);a.removeEventListener("mouseleave",this._leaveHandler,!0);a.removeEventListener("blur",this._leaveHandler,!0)};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(Xf()).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 gla(a,this.startValue,this.endValue)};
g._isRangeEnd=function(a){return hla(a,this.startValue,this.endValue)};g._isInRange=function(a){return ila(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return gla(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 hla(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return ila(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};
g._isPreviewStart=function(a){return gla(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return hla(a,this.previewStart,this.previewEnd)};g._isInPreview=function(a){return ila(a,this.previewStart,this.previewEnd,this.isRange)};g._getCellFromElement=function(a){if("TD"===a.nodeName)var b=a;else"TD"===a.parentNode.nodeName&&(b=a.parentNode);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};
wB.\u0275fac=function(a){return new (a||wB)(C(wd),C(qg))};
wB.\u0275cmp=w({type:wB,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"},outputs:{selectedValueChange:"selectedValueChange",
previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[Jc],attrs:["mat-calendar-body",""],decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["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&&(O(0,cla,3,6,"tr",0),O(1,fla,3,2,"tr",1));a&2&&(D("ngIf",b._firstRowOffset<b.labelMinRequiredCells),B(1),D("ngForOf",b.rows))},dependencies:[xx,yx,ux],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-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:transparent;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 Rqb=new sd("MAT_DATE_RANGE_SELECTION_STRATEGY");new Fv;new Gv;
var xB=function(a,b,c,d,e){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rangeStrategy=e;this._rerenderSubscription=U.Subscription.EMPTY;this.selectedChange=new Jw;this._userSelection=new Jw;this.activeDateChange=new Jw;this._activeDate=this._dateAdapter.today()};g=xB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(hg(null)).subscribe(function(){return a._init()})};
g.ngOnChanges=function(a){(a=a.comparisonStart||a.comparisonEnd)&&!a.firstChange&&this._setRanges(this.selected)};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._previewStart=this._previewEnd=null;this._changeDetectorRef.markForCheck()};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);$A(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=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,
1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,
1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:null==this._previewEnd||fi(a)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:a}),a.preventDefault(),a.stopPropagation());return;default:return}$A(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(this._dateAdapter.today());this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=
(7+this._dateAdapter.getDayOfWeek(a)-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;this._rangeStrategy&&(b=this._rangeStrategy.createPreview(a?a.rawValue:null,this.selected,b),this._previewStart=this._getCellCompareValue(b.start),this._previewEnd=this._getCellCompareValue(b.end),this._changeDetectorRef.detectChanges())};g._getDateFromDayOfMonth=function(a){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=this._dateAdapter.getDayOfWeekNames("narrow"),c=this._dateAdapter.getDayOfWeekNames("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=this._dateAdapter.getNumDaysInMonth(this.activeDate),b=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){7==d&&(this._weeks.push([]),d=0);var e=this._dateAdapter.createDate(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 Qqb(c+1,b[c],h,f,k,this._getCellCompareValue(e),e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||0<=$A(this._dateAdapter,a,this.minDate))&&(!this.maxDate||0>=$A(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)};
ji.Object.defineProperties(xB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=aB(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=ZA(this._dateAdapter,
this._dateAdapter.deserialize(a));this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});xB.\u0275fac=function(a){return new (a||xB)(C(nx),C(bB,8),C(YA,8),C(gA,8),C(Rqb,8))};
xB.\u0275cmp=w({type:xB,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&Hf(wB,5);if(a&2){var c;Gf(c=Jf())&&(b._matCalendarBody=c.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Jc],decls:7,
vars:13,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","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],
["aria-hidden","true"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead",1)(2,"tr"),O(3,jla,5,2,"th",2),G(),F(4,"tr"),H(5,"th",3),G()(),F(6,"tbody",4),J("selectedValueChange",function(c){return b._dateSelected(c)})("activeDateChange",function(c){return b._updateActiveDate(c)})("previewChange",function(c){return b._previewChanged(c)})("keyup",function(c){return b._handleCalendarBodyKeyup(c)})("keydown",function(c){return b._handleCalendarBodyKeydown(c)}),G()());a&2&&(B(3),D("ngForOf",b._weekdays),
B(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))},dependencies:[yx,wB],encapsulation:2,changeDetection:0});
var yB=function(a,b,c){this._changeDetectorRef=a;this._dateAdapter=b;this._dir=c;this._rerenderSubscription=U.Subscription.EMPTY;this.selectedChange=new Jw;this.yearSelected=new Jw;this.activeDateChange=new Jw;this._activeDate=this._dateAdapter.today()};g=yB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(hg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var b=this._dateAdapter.getYear(this._activeDate)-pi(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=this._dateAdapter.createDate(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);$A(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=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,
-pi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-pi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}$A(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 pi(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),c=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(a,b,1));return this._dateAdapter.createDate(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};
g._createCellForYear=function(a){var b=this._dateAdapter.createDate(a,0,1),c=this._dateAdapter.getYearName(b);b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Qqb(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=this._dateAdapter.createDate(a,0,1);this._dateAdapter.getYear(b)==a;b=this._dateAdapter.addCalendarDays(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))};
ji.Object.defineProperties(yB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=aB(this._dateAdapter,a,this.minDate,this.maxDate);lla(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=
ZA(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});yB.\u0275fac=function(a){return new (a||yB)(C(nx),C(YA,8),C(gA,8))};
yB.\u0275cmp=w({type:yB,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&Hf(wB,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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&&(B(4),D("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[wB],encapsulation:2,changeDetection:0});
var zB=function(a,b,c,d){this._changeDetectorRef=a;this._dateFormats=b;this._dateAdapter=c;this._dir=d;this._rerenderSubscription=U.Subscription.EMPTY;this.selectedChange=new Jw;this.monthSelected=new Jw;this.activeDateChange=new Jw;this._activeDate=this._dateAdapter.today()};g=zB.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(hg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=this._dateAdapter.createDate(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);$A(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=this._dateAdapter.addCalendarMonths(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,
-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}$A(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(this._dateAdapter.today());this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var b=this._dateAdapter.getMonthNames("short");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=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);b=this._dateAdapter.getNumDaysInMonth(b);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=this._dateAdapter.createDate(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 Qqb(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=this._dateAdapter.createDate(b,a,1);this._dateAdapter.getMonth(b)==a;b=this._dateAdapter.addCalendarDays(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)};
ji.Object.defineProperties(zB.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))||this._dateAdapter.today();this._activeDate=aB(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=
ZA(this._dateAdapter,this._dateAdapter.deserialize(a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}}});zB.\u0275fac=function(a){return new (a||zB)(C(nx),C(bB,8),C(YA,8),C(gA,8))};
zB.\u0275cmp=w({type:zB,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&Hf(wB,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"table",0)(1,"thead",1)(2,"tr"),H(3,"th",2),G()(),F(4,"tbody",3),J("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&&(B(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:[wB],encapsulation:2,changeDetection:0});
var Sqb=0,AB=function(a,b,c,d,e){this._intl=a;this.calendar=b;this._dateAdapter=c;this._dateFormats=d;this._buttonDescriptionId="mat-calendar-button-"+Sqb++;this.calendar.stateChanges.subscribe(function(){return e.markForCheck()})};
AB.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):lla(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
ji.Object.defineProperties(AB.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var a=this._dateAdapter.getYear(this.calendar.activeDate)-pi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),
b=a+24-1;a=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1));b=this._dateAdapter.getYearName(this._dateAdapter.createDate(b,0,1));return a+" \u2013 "+b}},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]}}});AB.\u0275fac=function(a){return new (a||AB)(C(vB),C(ic(function(){return BB})),C(YA,8),C(bB,8),C(nx))};
AB.\u0275cmp=w({type:AB,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",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"]],template:function(a,b){a&1&&(Ee(),F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){b.calendar.currentView="month"==b.calendar.currentView?"multi-year":"month"}),F(3,"span"),P(4),G(),Uc(),F(5,"svg",3),H(6,"polygon",4),G()(),Vc(),H(7,"div",5),Fe(8),F(9,"button",6),J("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,-1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,
"year"==b.calendar.currentView?-1:-24)}),G(),F(10,"button",7),J("click",function(){b.calendar.activeDate="month"==b.calendar.currentView?b._dateAdapter.addCalendarMonths(b.calendar.activeDate,1):b._dateAdapter.addCalendarYears(b.calendar.activeDate,"year"==b.calendar.currentView?1:24)}),G()()());a&2&&(B(2),oe("aria-label",b.periodButtonLabel)("aria-describedby",b._buttonDescriptionId),B(1),oe("id",b._buttonDescriptionId),B(1),Ke(b.periodButtonText),B(1),te("mat-calendar-invert","month"!==b.calendar.currentView),
B(4),D("disabled",!(b.calendar.minDate?!b.calendar.minDate||!b._isSameView(b.calendar.activeDate,b.calendar.minDate):1)),oe("aria-label",b.prevButtonLabel),B(1),D("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),oe("aria-label",b.nextButtonLabel))},dependencies:[rB],encapsulation:2,changeDetection:0});
var BB=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 Jw;this.yearSelected=new Jw;this.monthSelected=new Jw;this.viewChanged=new Jw(!0);this._userSelection=new Jw;this.stateChanges=new U.Subject;this._intlChanges=a.changes.subscribe(function(){d.markForCheck();e.stateChanges.next()})};g=BB.prototype;
g.ngAfterContentInit=function(){this._calendarHeaderPortal=new MA(this.headerComponent||AB);this.activeDate=this.startAt||this._dateAdapter.today();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._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
ji.Object.defineProperties(BB.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=ZA(this._dateAdapter,this._dateAdapter.deserialize(a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=aB(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)}}});BB.\u0275fac=function(a){return new (a||BB)(C(vB),C(YA,8),C(bB,8),C(nx))};
BB.\u0275cmp=w({type:BB,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(Hf(xB,5),Hf(zB,5),Hf(yB,5));if(a&2){var c;Gf(c=Jf())&&(b.monthView=c.first);Gf(c=Jf())&&(b.yearView=c.first);Gf(c=Jf())&&(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"},
outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Me([Pqb]),Jc],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","activeDateChange","_userSelection",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","activeDateChange","_userSelection"],[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&&(O(0,mla,0,0,"ng-template",0),F(1,"div",1),O(2,nla,1,8,"mat-month-view",2),O(3,ola,1,6,"mat-year-view",3),O(4,pla,1,6,"mat-multi-year-view",4),G());a&2&&(D("cdkPortalOutlet",b._calendarHeaderPortal),B(1),D("ngSwitch",b.currentView),B(1),D("ngSwitchCase","month"),B(1),D("ngSwitchCase","year"),B(1),D("ngSwitchCase",
"multi-year"))},dependencies:[Ax,Bx,Jz,RA,xB,zB,yB],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;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.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:""}\n'],
encapsulation:2,changeDetection:0});
var CB=function(a,b,c){var d=this;this._ref=a;this._containerInstance=c;this._afterOpened=new U.Subject;this._beforeClosed=new U.Subject;this._state=0;this.disableClose=b.disableClose;this.id=a.id;c._animationStateChanged.pipe(xf(function(e){return"opened"===e.state}),Xf()).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(xf(function(e){return"closed"===e.state}),Xf()).subscribe(function(){clearTimeout(d._closeFallbackTimeout);d._finishDialogClose()});
a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});(0,U.merge)(this.backdropClick(),this.keydownEvents().pipe(xf(function(e){return 27===e.keyCode&&!d.disableClose&&!fi(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType="keydown"===e.type?"keyboard":"mouse",d.close(void 0))})};
CB.prototype.close=function(a){var b=this;this._result=a;this._containerInstance._animationStateChanged.pipe(xf(function(c){return"closing"===c.state}),Xf()).subscribe(function(c){b._beforeClosed.next(a);b._beforeClosed.complete();jqb(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},c.totalTime+100)});this._state=1;this._containerInstance._startExitAnimation()};CB.prototype.afterOpened=function(){return this._afterOpened};var DB=function(a){return a._ref.closed};
g=CB.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):IA(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):qqb(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};
var EB=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 FB=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};V(FB,OA);g=FB.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":Dy(this._focusTrap).then(function(c){c||a._focusDialogContainer()});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}};
g._restoreFocus=function(){var a=this._config.restoreFocus,b=null;"string"===typeof a?b=this._document.querySelector(a):"boolean"===typeof a?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&"function"===typeof b.focus){a=Zg();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(Iz(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
g._focusDialogContainer=function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=Zg();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement);this._document&&(this._elementFocusedBeforeDialogWasOpened=Zg())};
g._handleBackdropClicks=function(){var a=this;this._overlayRef.backdropClick().subscribe(function(){a._config.disableClose&&a._recaptureFocus()})};FB.\u0275fac=function(a){return new (a||FB)(C(wd),C(Ey),C(hi,8),C(EB),C(zy),C(qg),C(AA),C(Hz))};
FB.\u0275cmp=w({type:FB,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&Hf(RA,7);if(a&2){var c;Gf(c=Jf())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&oe("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:[ie],decls:1,
vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&O(0,qla,0,0,"ng-template",0)},dependencies:[RA],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});
var Tqb=new sd("DialogScrollStrategy"),Uqb=new sd("DialogData"),Vqb=new sd("DefaultDialogConfig"),Wqb={provide:Tqb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.block()}}};
var GB=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new U.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||fi(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){c.disableClose||c.close(void 0,{focusOrigin:"mouse"})})};
g=GB.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 Xqb=0,HB=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 U.Subject;this._afterOpenedAtThisLevel=new U.Subject;this._ariaHiddenElements=new Map;(0,U.defer)(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(hg(void 0))});this._scrollStrategy=f};g=HB.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new EB,b);b.id=b.id||"cdk-dialog-"+Xqb++;b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=this._overlay.create(d);var e=new GB(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;rla(this._openDialogsAtThisLevel,function(b){!1===b.config.closeOnDestroy&&a._removeOpenDialog(b,!1)});rla(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new zA({positionStrategy:a.positionStrategy||qqb(IA(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,f=null!=(e=c.injector)?e:null==(d=c.viewContainerRef)?void 0:d.injector;b=[{provide:EB,useValue:c},{provide:GB,useValue:b},{provide:AA,useValue:a}];c.container?"function"===typeof c.container?d=c.container:(d=c.container.type,b.push.apply(b,v(c.container.providers(c)))):d=FB;c=new MA(d,c.viewContainerRef,og({parent:f||this._injector,providers:b}),c.componentFactoryResolver);return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){var e=this._createInjector(d,b,c);a instanceof Df?(b={$implicit:d.data,dialogRef:b},d.templateContext&&(b=Object.assign({},b,"function"===typeof d.templateContext?d.templateContext():d.templateContext)),c.attachTemplatePortal(new NA(a,null,b,e))):(a=c.attachComponentPortal(new MA(a,d.viewContainerRef,e,d.componentFactoryResolver)),b.componentInstance=a.instance)};
g._createInjector=function(a,b,c){var d=a&&a.viewContainerRef&&a.viewContainerRef.injector,e=[{provide:Uqb,useValue:a.data},{provide:GB,useValue:b}];a.providers&&("function"===typeof a.providers?e.push.apply(e,v(a.providers(b,a,c))):e.push.apply(e,v(a.providers)));!a.direction||d&&d.get(gA,null,8)||e.push({provide:gA,useValue:{value:a.direction,change:(0,U.of)()}});return og({parent:d||this._injector,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=mA(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};
ji.Object.defineProperties(HB.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}}});HB.\u0275fac=function(a){return new (a||HB)(t(TA),t(Iv),t(Vqb,8),t(HB,12),t(lA),t(Tqb))};HB.\u0275prov=lc({token:HB,factory:HB.\u0275fac});
var IB=function(){};IB.\u0275fac=function(a){return new (a||IB)};IB.\u0275mod=Cc({type:IB});IB.\u0275inj=mc({providers:[HB,Wqb],imports:[WA,SA,Qz,SA]});
var JB={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Yqb=Ch("dialogContainer",[Fh("void, exit",Eh({opacity:0,transform:"scale(0.7)"})),Fh("enter",Eh({transform:"none"})),Gh("* => enter",{type:3,steps:[Dh("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Eh({transform:"none",opacity:1})),Ih("@*",Hh())],options:null},JB),Gh("* => void, * => exit",{type:3,steps:[Dh("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Eh({opacity:0})),Ih("@*",Hh())],options:null},
JB)]);
var KB=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.autoFocus="first-tabbable";this.closeOnNavigation=this.delayFocusTrap=this.restoreFocus=!0;this.enterAnimationDuration=JB.params.enterAnimationDuration;this.exitAnimationDuration=JB.params.exitAnimationDuration};
var LB=function(a,b,c,d,e,f,h,k){FB.call(this,a,b,c,d,e,f,h,k);this._animationStateChanged=new Jw};V(LB,FB);LB.prototype._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};LB.prototype._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};LB.\u0275fac=function(a){return new (a||LB)(C(wd),C(Ey),C(hi,8),C(KB),C(zy),C(qg),C(AA),C(Hz))};
LB.\u0275cmp=w({type:LB,selectors:[["ng-component"]],features:[ie],decls:0,vars:0,template:function(){},encapsulation:2});var MB=function(a,b,c,d,e,f,h,k,q){LB.call(this,a,b,c,d,e,f,h,q);this._changeDetectorRef=k;this._state="enter"};V(MB,LB);MB.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})};
MB.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})};MB.prototype._startExitAnimation=function(){this._state="exit";this._changeDetectorRef.markForCheck()};
MB.prototype._getAnimationState=function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||JB.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||JB.params.exitAnimationDuration}}};MB.\u0275fac=function(a){return new (a||MB)(C(wd),C(Ey),C(hi,8),C(KB),C(zy),C(qg),C(AA),C(nx),C(Hz))};
MB.\u0275cmp=w({type:MB,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(a,b){a&1&&efa("@dialogContainer.start",function(c){return b._onAnimationStart(c)})("@dialogContainer.done",function(c){return b._onAnimationDone(c)});a&2&&(Ce("id",b._config.id),oe("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),De("@dialogContainer",b._getAnimationState()))},features:[ie],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&O(0,sla,0,0,"ng-template",0)},dependencies:[RA],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:[Yqb]}});
var NB=new sd("MatDialogData"),Zqb=new sd("mat-dialog-default-options"),$qb=new sd("mat-dialog-scroll-strategy"),arb={provide:$qb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.block()}}},brb=0,OB=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._defaultOptions=c;this._parentDialog=d;this._dialogRefConstructor=h;this._dialogContainerType=k;this._dialogDataToken=q;this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new U.Subject;this._afterOpenedAtThisLevel=
new U.Subject;this._idPrefix="mat-dialog-";(0,U.defer)(function(){return u.openDialogs.length?u._getAfterAllClosed():u._getAfterAllClosed().pipe(hg(void 0))});this._scrollStrategy=f;this._dialog=b.get(HB)};g=OB.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 KB,b);b.id=b.id||"mat-dialog-"+brb++;b.scrollStrategy=b.scrollStrategy||this._scrollStrategy();a=this._dialog.open(a,Object.assign({},b,{positionStrategy:qqb(IA(this._overlay.position().global())),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:KB,useValue:b},{provide:EB,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);DB(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()};
ji.Object.defineProperties(OB.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}}});OB.\u0275fac=function(){Ad()};OB.\u0275prov=lc({token:OB,factory:OB.\u0275fac});var PB=function(a,b,c,d,e,f,h,k){OB.call(this,a,b,d,f,h,e,CB,MB,NB,k)};V(PB,OB);
PB.\u0275fac=function(a){return new (a||PB)(t(TA),t(Iv),t(Tx,8),t(Zqb,8),t($qb),t(PB,12),t(lA),t(Xv,8))};PB.\u0275prov=lc({token:PB,factory:PB.\u0275fac});
var crb=0,QB=function(a,b,c){this.dialogRef=a;this._elementRef=b;this._dialog=c;this.type="button"};QB.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=tla(this._elementRef,this._dialog.openDialogs))};QB.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};QB.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=0===a.screenX&&0===a.screenY?"keyboard":"mouse";b.close(c)};
QB.\u0275fac=function(a){return new (a||QB)(C(CB,8),C(wd),C(PB))};QB.\u0275dir=w({type:QB,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b._onButtonClick(c)});a&2&&oe("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:[Jc]});
var RB=function(a,b,c){this._dialogRef=a;this._elementRef=b;this._dialog=c;this.id="mat-dialog-title-"+crb++};RB.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=tla(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){var b=a._dialogRef._containerInstance;b&&!b._ariaLabelledBy&&(b._ariaLabelledBy=a.id)})};RB.\u0275fac=function(a){return new (a||RB)(C(CB,8),C(wd),C(PB))};
RB.\u0275dir=w({type:RB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(a,b){a&2&&Ce("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var SB=function(){};SB.\u0275fac=function(a){return new (a||SB)};SB.\u0275dir=w({type:SB,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var TB=function(){this.align="start"};
TB.\u0275fac=function(a){return new (a||TB)};TB.\u0275dir=w({type:TB,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(a,b){a&2&&te("mat-dialog-actions-align-center","center"===b.align)("mat-dialog-actions-align-end","end"===b.align)},inputs:{align:"align"}});
var UB=function(){};UB.\u0275fac=function(a){return new (a||UB)};UB.\u0275mod=Cc({type:UB});UB.\u0275inj=mc({providers:[PB,arb],imports:[IB,WA,SA,XA,XA]});
var drb=Vg({passive:!0}),VB=function(a,b){this._platform=a;this._ngZone=b;this._monitoredElements=new Map};
VB.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return U.EMPTY;var c=dh(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new U.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,drb);c.classList.add("cdk-text-field-autofill-monitored")});this._monitoredElements.set(c,{subject:d,unlisten:function(){c.removeEventListener("animationstart",e,drb)}});return d};
VB.prototype.stopMonitoring=function(a){a=dh(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))};VB.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};VB.\u0275fac=function(a){return new (a||VB)(t(yy),t(qg))};VB.\u0275prov=lc({token:VB,factory:VB.\u0275fac,providedIn:"root"});
var WB=function(a,b,c,d){var e=this;this._elementRef=a;this._platform=b;this._ngZone=c;this._destroyed=new U.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=WB.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,XB(this),this._ngZone.runOutsideAngular(function(){(0,U.fromEvent)(a._getWindow(),"resize").pipe(Rf(16),jg(a._destroyed)).subscribe(function(){return XB(a,!0)});a._textareaElement.addEventListener("focus",a._handleFocusEvent);a._textareaElement.addEventListener("blur",a._handleFocusEvent)}),this._isViewInited=!0,XB(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&&XB(this)};
var XB=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=WB.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)};
ji.Object.defineProperties(WB.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=eh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=eh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){a=bh(a);this._enabled!==a&&((this._enabled=a)?XB(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()}}});WB.\u0275fac=function(a){return new (a||WB)(C(wd),C(yy),C(qg),C(hi,8))};
WB.\u0275dir=w({type:WB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&J("input",function(){})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});
var YB=function(){};YB.\u0275fac=function(a){return new (a||YB)};YB.\u0275mod=Cc({type:YB});YB.\u0275inj=mc({});
var erb=0,frb=new sd("MatError"),ZB=function(a,b){this.id="mat-error-"+erb++;a||b.nativeElement.setAttribute("aria-live","polite")};ZB.\u0275fac=function(a){return new (a||ZB)(fd("aria-live"),C(wd))};ZB.\u0275dir=w({type:ZB,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(a,b){a&2&&oe("id",b.id)},inputs:{id:"id"},features:[Me([{provide:frb,useExisting:ZB}])]});
var grb=Ch("transitionMessages",[Fh("enter",Eh({opacity:1,transform:"translateY(0%)"})),Gh("void => enter",[Eh({opacity:0,transform:"translateY(-5px)"}),Dh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var $B=function(){};$B.\u0275fac=function(a){return new (a||$B)};$B.\u0275dir=w({type:$B});
var hrb=0,irb=new sd("MatHint"),aC=function(){this.align="start";this.id="mat-hint-"+hrb++};aC.\u0275fac=function(a){return new (a||aC)};aC.\u0275dir=w({type:aC,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(a,b){a&2&&(oe("id",b.id)("align",null),te("mat-form-field-hint-end","end"===b.align))},inputs:{align:"align",id:"id"},features:[Me([{provide:irb,useExisting:aC}])]});
var bC=function(){};bC.\u0275fac=function(a){return new (a||bC)};bC.\u0275dir=w({type:bC,selectors:[["mat-label"]]});
var cC=function(){};cC.\u0275fac=function(a){return new (a||cC)};cC.\u0275dir=w({type:cC,selectors:[["mat-placeholder"]]});
var jrb=new sd("MatPrefix");
var krb=new sd("MatSuffix");
var lrb=["connectionContainer"],mrb=["inputContainer"],nrb=["label"],orb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],prb=0,qrb=ki(function(a){this._elementRef=a},"primary"),rrb=new sd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),dC=new sd("MatFormField"),eC=function(a,b,c,d,e,f,h){a=qrb.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 U.Subject;a._hideRequiredMarker=!1;a._showAlwaysAnimate=!1;a._subscriptAnimationState="";a._hintLabel="";a._hintLabelId="mat-hint-"+prb++;a._labelId="mat-form-field-label-"+prb++;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};V(eC,qrb);g=eC.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(hg(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});b.ngControl&&b.ngControl.valueChanges&&b.ngControl.valueChanges.pipe(jg(this._destroyed)).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.pipe(jg(a._destroyed)).subscribe(function(){a._outlineGapCalculationNeededOnStable&&
qi(a)})});(0,U.merge)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._outlineGapCalculationNeededOnStable=!0;a._changeDetectorRef.markForCheck()});this._hintChildren.changes.pipe(hg(null)).subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.pipe(hg(null)).subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._dir&&this._dir.change.pipe(jg(this._destroyed)).subscribe(function(){"function"===
typeof requestAnimationFrame?a._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return qi(a)})}):qi(a)})};g.ngAfterContentChecked=function(){this._outlineGapCalculationNeededImmediately&&qi(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,U.fromEvent)(this._label.nativeElement,"transitionend").pipe(Xf()).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,v(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,v(this._errorChildren.map(function(d){return d.id})));this._control.setDescribedByIds(a)}};g._validateControlChild=function(){};
var qi=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"};eC.prototype._getStartEnd=function(a){return this._dir&&"rtl"===this._dir.value?a.right:a.left};eC.prototype._isAttachedToDOM=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
ji.Object.defineProperties(eC.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=bh(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}}});eC.\u0275fac=function(a){return new (a||eC)(C(wd),C(nx),C(gA,8),C(rrb,8),C(yy),C(qg),C(Xv,8))};
eC.\u0275cmp=w({type:eC,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(If(c,$B,5),If(c,$B,7),If(c,bC,5),If(c,bC,7),If(c,cC,5),If(c,frb,5),If(c,irb,5),If(c,jrb,5),If(c,krb,5));if(a&2){var d;Gf(d=Jf())&&(b._controlNonStatic=d.first);Gf(d=Jf())&&(b._controlStatic=d.first);Gf(d=Jf())&&(b._labelChildNonStatic=d.first);Gf(d=Jf())&&(b._labelChildStatic=d.first);Gf(d=Jf())&&(b._placeholderChild=d.first);Gf(d=Jf())&&(b._errorChildren=d);Gf(d=Jf())&&(b._hintChildren=d);Gf(d=Jf())&&(b._prefixChildren=
d);Gf(d=Jf())&&(b._suffixChildren=d)}},viewQuery:function(a,b){a&1&&(Hf(lrb,7),Hf(mrb,5),Hf(nrb,5));if(a&2){var c;Gf(c=Jf())&&(b._connectionContainerRef=c.first);Gf(c=Jf())&&(b._inputContainerRef=c.first);Gf(c=Jf())&&(b._label=c.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(a,b){a&2&&te("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:[Me([{provide:dC,useExisting:eC}]),ie],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&&(Ee(orb),F(0,"div",0)(1,"div",
1,2),J("click",function(c){return b._control.onContainerClick&&b._control.onContainerClick(c)}),O(3,ula,9,0,"ng-container",3),O(4,vla,2,1,"div",4),F(5,"div",5,6),Fe(7),F(8,"span",7),O(9,zla,5,16,"label",8),G()(),O(10,Ala,2,0,"div",9),G(),O(11,Bla,2,4,"div",10),F(12,"div",11),O(13,Cla,2,1,"div",12),O(14,Ela,5,2,"div",13),G()());a&2&&(B(3),D("ngIf","outline"==b.appearance),B(1),D("ngIf",b._prefixChildren.length),B(5),D("ngIf",b._hasFloatingLabel()),B(1),D("ngIf",b._suffixChildren.length),B(1),D("ngIf",
"outline"!=b.appearance),B(1),D("ngSwitch",b._getDisplayedMessages()),B(1),D("ngSwitchCase","error"),B(1),D("ngSwitchCase","hint"))},dependencies:[ux,Ax,Bx,Nz],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}\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:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent;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 transparent;border-right:5px solid transparent;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:transparent}.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:transparent}.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:transparent}.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:[grb]},changeDetection:0});
var fC=function(){};fC.\u0275fac=function(a){return new (a||fC)};fC.\u0275mod=Cc({type:fC});fC.\u0275inj=mc({imports:[Mx,XA,Oz,XA]});
var srb=new sd("MAT_INPUT_VALUE_ACCESSOR");
var trb="button checkbox file hidden image radio range reset submit".split(" "),urb=0,vrb=Tka(function(a,b,c,d){this._defaultErrorStateMatcher=a;this._parentForm=b;this._parentFormGroup=c;this.ngControl=d;this.stateChanges=new U.Subject}),gC=function(a,b,c,d,e,f,h,k,q,u){var x=vrb.call(this,f,d,e,c)||this;x._elementRef=a;x._platform=b;x._autofillMonitor=k;x._formField=u;x._uid="mat-input-"+urb++;x.focused=!1;x.stateChanges=new U.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(I){return $ia().has(I)});x._iOSKeyupListener=function(I){I=I.target;I.value||0!==I.selectionStart||0!==I.selectionEnd||(I.setSelectionRange(1,1),I.setSelectionRange(0,0))};c=x._elementRef.nativeElement;var E=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"===E;x._isTextarea="textarea"===E;x._isInFormField=!!u;x._isNativeSelect&&(x.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select");return x};V(gC,vrb);g=gC.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();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._dirtyCheckPlaceholder=function(){var a=this._formField,b,c=!a||"legacy"!==a.appearance||(null==(b=a._hasLabel)?0:b.call(a))?this.placeholder:null;c!==this._previousPlaceholder&&(a=this._elementRef.nativeElement,(this._previousPlaceholder=c)?a.setAttribute("placeholder",c):a.removeAttribute("placeholder"))};g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};
g._validateType=function(){trb.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)};
ji.Object.defineProperties(gC.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=bh(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:Snb(b))?d:!1},set:function(a){this._required=bh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&$ia().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=bh(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}}});gC.\u0275fac=function(a){return new (a||gC)(C(wd),C(yy),C(Zx,10),C(fy,8),C(oy,8),C(fB),C(srb,10),C(VB),C(qg),C(dC,8))};
gC.\u0275dir=w({type:gC,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(a,b){a&1&&J("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(Ce("disabled",b.disabled)("required",b.required),oe("id",b.id)("data-placeholder",
b.placeholder)("name",b.name||null)("readonly",b.readonly&&!b._isNativeSelect||null)("aria-invalid",b.empty&&b.required?null:b.errorState)("aria-required",b.required),te("mat-input-server",b._isServer)("mat-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:[Me([{provide:$B,useExisting:gC}]),ie,Jc]});
var hC=function(){};hC.\u0275fac=function(a){return new (a||hC)};hC.\u0275mod=Cc({type:hC});hC.\u0275inj=mc({providers:[fB],imports:[YB,fC,XA,YB,fC]});
var wrb={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},iC=wrb;iC=wrb;
var jC=function(a){return function(){return a}},kC=function(){},iaa=function(a){return a},ECa=function(){var a=DCa;return function(){return!a.apply(this,arguments)}},lC=function(a,b){var c=0;return function(d){da.clearTimeout(c);var e=arguments;c=da.setTimeout(function(){a.apply(void 0,e)},b)}},xrb=function(a){var b=0,c=!1,d=[],e=function(){b=0;c&&(c=!1,f())},f=function(){b=da.setTimeout(e,10);var h=d;d=[];a.apply(void 0,h)};return function(h){d=arguments;b?c=!0:f()}};
var yrb=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=Lj(lt);return!b.parentElement}),To=function(a,b){if(yrb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Lj(b)},zrb=function(a,b){b=b instanceof lh?b:Jj(b);a.action=mh(b)},Brb=function(a,b){var c=Arb(a.ownerDocument&&a.ownerDocument.defaultView);
c&&a.setAttribute("nonce",c);a.src=Ci(b)},Jna=function(a,b,c,d){a=a instanceof lh?a:Jj(a);b=b||da;c=c instanceof nh?oh(c):c||"";return void 0!==d?b.open(mh(a),c,d):b.open(mh(a),c)},Crb=/^[\w+/_-]+[=]{0,2}$/,Arb=function(a){a=(a||da).document;return a.querySelector?(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Crb.test(a)?a:"":""};
var Drb=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")},mC=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},Kj=function(a){return a=Nib(a)},Erb=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},rRa=function(a,b,c){return a.replace(new RegExp(Jn(b),"g"),c.replace(/\$/g,
"$$$$"))},Jn=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},nC=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},oC=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+nC("0",Math.max(0,b-c))+a},Vi=function(a){return null==a?"":String(a)},pC=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^Ut()).toString(36)},qC=function(a){var b=Number(a);return 0==b&&Wi(a)?NaN:b},Mk=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Ki=function(a){isFinite(a)&&(a=String(a));return"string"===typeof a?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},Frb=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};
var Grb=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),Hrb=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,Irb=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,Jrb=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},Krb=function(a){var b=new Date(Ut()),c;if(c=a.getDate()==b.getDate())if(b=b||new Date(Ut()),c=a.getMonth()==b.getMonth())b=b||new Date(Ut()),c=a.getFullYear()==b.getFullYear();
return c},Lrb=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)},io=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)};
io.prototype.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("")};io.prototype.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};io.prototype.clone=function(){return new io(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
io.prototype.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 Ji=function(a,b,c){"number"===typeof a?(this.date=Mrb(a,b||0,c||1),rC(this,c||1)):Ha(a)?(this.date=Mrb(a.getFullYear(),a.getMonth(),a.getDate()),rC(this,a.getDate())):(this.date=new Date(Ut()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),rC(this,a))},Mrb=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};g=Ji.prototype;g.firstDayOfWeek_=iC.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=iC.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new Ji(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_};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(Jrb(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()),rC(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+oC(Math.abs(b),c?6:4),oC(this.getMonth()+1,2),oC(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 rC=function(a,b){a.getDate()!=b&&(b=a.getDate()<b?1:-1,a.date.setUTCHours(a.date.getUTCHours()+b))};Ji.prototype.valueOf=function(){return this.date.valueOf()};
var sC=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():Ut())};Wt(sC,Ji);g=sC.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){Ji.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=Ji.prototype.toIsoString.call(this,a);return a?b+"T"+oC(this.getHours(),2)+":"+oC(this.getMinutes(),2)+":"+oC(this.getSeconds(),2):b+"T"+oC(this.getHours(),2)+oC(this.getMinutes(),2)+oC(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new sC(this.date);a.firstDayOfWeek_=this.getFirstDayOfWeek();a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
var Nrb=function(){},ho=function(a){if("number"==typeof a){var b=new Nrb;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(":",oC(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=Orb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new Nrb;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},Orb=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(oC(Math.floor(a/60)%100,2),":",oC(a%60,2));return b.join("")},tC=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]};
Nrb.prototype.getOffset=function(a){a=this.standardOffset_-tC(this,a);return-1440===a?0:a};
var si=function(a){this.patternParts_=[];this.dateTimeSymbols_=iC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)},Prb=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],uC=function(a){return a.getHours?a.getHours():0};
si.prototype.applyPattern_=function(a){for(Qrb&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<Prb.length;++c){var d=a.match(Prb[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("nb`"+a);}};
si.prototype.format=function(a,b){if(!a)throw Error("ob");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(Rrb(this,h,a,d,e,b)):c.push(h)}return c.join("")};
si.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 wC=function(a,b){return vC(b,a.dateTimeSymbols_)},Qrb=!1,vC=function(a,b){a=String(a);b=b||iC;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("")},xC=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("pb");},Srb=function(a,b){xC(b);b=uC(b);return a.dateTimeSymbols_.AMPMS[12<=b&&24>b?1:0]},Rrb=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),wC(a,oC(c,h));case "Y":return c=d.getMonth(),e=d.getDate(),c=Lrb(d.getFullYear(),c,e,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),wC(a,oC(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=wC(a,oC(c+1,h))}return h;case "k":return xC(e),wC(a,oC(uC(e)||24,h));case "S":return wC(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(3<h?oC(0,h-3):""));case "E":return c=d.getDay(),4<=h?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return Srb(a,e);case "b":return Srb(a,e);case "B":return Srb(a,e);case "h":return xC(e),wC(a,oC(uC(e)%12||12,h));case "K":return xC(e),wC(a,oC(uC(e)%12,h));
case "H":return xC(e),wC(a,oC(uC(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=wC(a,oC(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=wC(a,oC(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 wC(a,oC(d.getDate(),h));case "m":return xC(e),wC(a,oC(e.getMinutes(),h));case "s":return xC(e),wC(a,oC(e.getSeconds(),h));case "v":return(f||ho(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||ho(c.getTimezoneOffset()),2>=h?a.timeZoneId_:0<tC(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=Lrb(e.getFullYear(),c,d,a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),wC(a,oC(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,h));case "z":return a=f||ho(c.getTimezoneOffset()),4>h?a.tzNames_[0<tC(a,c)?2:0]:a.tzNames_[0<tC(a,c)?3:1];case "Z":return d=
f||ho(c.getTimezoneOffset()),4>h?(h=-d.getOffset(c),a=[0>h?"-":"+"],h=Math.abs(h),a.push(oC(Math.floor(h/60)%100,2),oC(h%60,2)),h=a.join("")):h=wC(a,Orb(d.getOffset(c))),h;default:return""}};
var ri=function(a,b,c){this.dialogRef=a;this.dateAdapter=c;this.minDate=this.getDate(b.minDate);this.inputDate=this.getDate(b.initialDate);this.initialTime=b.initialTime;this.hideTimePicker=!!b.hideTimePicker;this.timeFormControl=new gy(b.initialTime,{validators:[Xx,this.dateTimeMustBeInTheFuture.bind(this)]});this.dateAdapter.setLocale(navigator.languages&&navigator.languages[0]||"en-US")};ri.prototype.onSaveClick=function(){var a=Trb(this.inputDate,this.timeFormControl.value).getTime();this.dialogRef.close(a)};
ri.prototype.dateTimeMustBeInTheFuture=function(a){var b=new Date;return Trb(this.inputDate,a.value)<=b?(a={},a.dateTimeMustBeInTheFuture=!0,a):null};var Trb=function(a,b){var c=r(b.split(":"));b=c.next().value;c=c.next().value;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))};ri.prototype.getDate=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getMilliseconds())};
ji.Object.defineProperties(ri.prototype,{hasRequiredError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("required")}},hasDatetimeNotInTheFutureError:{configurable:!0,enumerable:!0,get:function(){return this.timeFormControl.hasError("dateTimeMustBeInTheFuture")}},hasFormError:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError||this.hasDatetimeNotInTheFutureError}},formErrorMessage:{configurable:!0,enumerable:!0,get:function(){return this.hasRequiredError?
"Time is required":this.hasDatetimeNotInTheFutureError?"Time must be in the future":""}}});ri.\u0275fac=function(a){return new (a||ri)(C(CB),C(NB),C(YA))};
ri.\u0275cmp=w({type:ri,selectors:[["datetime-picker-dialog"]],decls:12,vars:7,consts:[["cdkTrapFocus","",1,"dialog_container"],["mat-dialog-title","",1,"title"],[1,"calendar",3,"startAt","selected","minDate","selectedChange"],["cdkFocusInitial","","type","time","matInput","","class","time-input gmat-body-2","required","",3,"formControl",4,"ngIf"],["class","time-error gmat-body2",4,"ngIf"],[1,"dialog-buttons"],["mat-button","",1,"cancel-button","gmat-button",3,"click"],["mat-button","",1,"save-button",
"gmat-button",3,"disabled","click"],["cdkFocusInitial","","type","time","matInput","","required","",1,"time-input","gmat-body-2",3,"formControl"],[1,"time-error","gmat-body2"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"h4",1),P(2),G(),F(3,"mat-dialog-content")(4,"mat-calendar",2),J("selectedChange",function(c){return b.inputDate=c})("selectedChange",function(){if(!b.hideTimePicker){var c=new Date;!Krb(b.inputDate)&&b.timeFormControl.pristine&&b.timeFormControl.setValue(b.initialTime);if(Krb(b.inputDate)&&
Trb(b.inputDate,b.timeFormControl.value)<=c){23===c.getHours()?c.setMinutes(59):c.setHours(c.getHours()+1);var d=new si("HH:mm");b.timeFormControl.setValue(d.format(c))}}Pg(b.timeFormControl)}),G(),O(5,Fla,1,1,"input",3),O(6,Gla,2,1,"mat-error",4),G(),F(7,"mat-dialog-actions",5)(8,"button",6),J("click",function(){b.dialogRef.close()}),P(9,"Cancel"),G(),F(10,"button",7),J("click",function(){return b.onSaveClick()}),P(11," Save "),G()()());a&2&&(B(2),Ke(b.hideTimePicker?"Pick date":"Pick date & time"),
B(2),D("startAt",b.inputDate)("selected",b.inputDate)("minDate",b.minDate),B(1),D("ngIf",!b.hideTimePicker),B(1),D("ngIf",b.hasFormError),B(4),D("disabled",b.hasFormError))},dependencies:[ux,Qg,by,sy,rB,BB,RB,SB,TB,ZB,gC,ny,Fy],styles:[".dark-mode,   :root{--g3c-shared-default-surface:var(--default-surface,#fff);--g3c-shared-hairline:var(--hairline,#dadce0);--g3c-shared-default-text:var(--default-text,#202124);--g3c-shared-primary-default:var(--primary-default,#1a73e8)}  .dark-mode{--g3c-shared-default-surface:var(--default-surface,#28292c);--g3c-shared-hairline:var(--hairline,#5f6368);--g3c-shared-default-text:var(--default-text,#e8eaed);--g3c-shared-primary-default:var(--primary-default,#8ab4f8)}.calendar[_ngcontent-%COMP%]{height:460px}.time-input[_ngcontent-%COMP%]{background:var(--g3c-shared-default-surface);border:1px solid var(--g3c-shared-hairline);border-radius:4px;box-sizing:border-box;color:var(--g3c-shared-default-text);font-size:14px;height:36px;padding:8px;width:120px}.time-input[_ngcontent-%COMP%]:focus{border:2px solid var(--g3c-shared-primary-default);outline:none}input[type=time][_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.time-error[_ngcontent-%COMP%]{margin-left:6px}.dialog-buttons[_ngcontent-%COMP%]{align-content:center;align-items:center;justify-content:flex-end}.time-input[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none;pointer-events:none}"],
changeDetection:0});
var Urb={TASK_STATUS_UNSPECIFIED:0,PINNED:1,SNOOZED:2,ARCHIVED:3,MUTED:5,INCOMING:6,0:"TASK_STATUS_UNSPECIFIED",1:"PINNED",2:"SNOOZED",3:"ARCHIVED",5:"MUTED",6:"INCOMING"},Vrb={G3C_WIDGET_LOADED:"loaded",G3C_WIDGET_MENU_OPENED:"menuOpened",G3C_WIDGET_TASK_ADDED_TO_G3C:"taskAddedToG3c",G3C_WIDGET_TASK_PINNED:"taskPinned",G3C_WIDGET_TASK_SNOOZED:"taskSnoozed",G3C_WIDGET_TASK_ARCHIVED:"taskArchived",G3C_WIDGET_TASK_MUTED:"taskMuted",G3C_WIDGET_TASK_MOVED_TO_INBOX:"taskMovedToInbox",G3C_WIDGET_OPEN_IN_G3C_CLICKED:"openInG3cClicked",
G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_SHOWN:"featureTooltipWithoutTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITHOUT_TASK_ACTIONS_ACKED:"featureTooltipWithoutTaskActionsAcked",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_SHOWN:"featureTooltipWithTaskActionsShown",G3C_WIDGET_FEATURE_TOOLTIP_WITH_TASK_ACTIONS_ACKED:"featureTooltipWithTaskActionsAcked"},Wrb={G3C_WIDGET_WITHOUT_TASK_ACTIONS:"g3cWidgetWithoutTaskActions",G3C_WIDGET_WITH_TASK_ACTIONS:"g3cWidgetWithTaskActions"};
var Xrb={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 yC=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new Jw;this.action=new Jw;this.pointerPosition=2;this.color="blue";this.actionBtnText="";this.Position=Xrb;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)};yC.prototype.ngAfterContentInit=function(){By(this.focusTrap);this.setPreviouslyFocusedElement();Dy(this.focusTrap)};
yC.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
yC.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)};ji.Object.defineProperties(yC.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+64*a}}});
yC.\u0275fac=function(a){return new (a||yC)(C(hi),C(Vz),C(wd))};
yC.\u0275cmp=w({type:yC,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&te("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"},outputs:{dismiss:"dismiss",action:"action"},features:[Me([{provide:$pb,useValue:{preventFocus:function(){},allowFocus:function(){}}},Vz])],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"]],template:function(a,b){a&1&&(Ee(),F(0,"div",0)(1,"div",1),H(2,"div",2),G(),Fe(3),F(4,"div",3),O(5,Kla,2,1,"button",4),F(6,"button",5),J("click",function(){return b.dismissTooltip()}),P(7," Got it "),G()()());a&2&&(se("width",b.width,
"px"),D("ngClass",b.color),B(5),D("ngIf",b.actionBtnText),B(1),D("color","white"===b.color?"primary":""))},dependencies:[Fy,xx,ux,rB],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,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,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(2*var(--pointer-edge-offset) + 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 .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 zC=function(){};zC.\u0275fac=function(a){return new (a||zC)};zC.\u0275mod=Cc({type:zC});zC.\u0275inj=mc({});
var AC=function(){this.anchorMap=new Map},BC=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new U.ReplaySubject(1),destroyed$:new U.Subject,dismissTooltip$:new U.Subject};a.anchorMap.set(b,c);return c},Yrb=function(a,b,c){BC(a,b).created$.next(c)},Zrb=function(a,b){BC(a,b).destroyed$.next();BC(a,b).created$.next(void 0)};AC.prototype.dismissTooltip=function(a){BC(this,a).dismissTooltip$.next()};AC.\u0275fac=function(a){return new (a||AC)};
AC.\u0275prov=lc({token:AC,factory:AC.\u0275fac,providedIn:zC});
var $rb={pointerPosition:0,connectedPosition:{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-12}},asb=[{pointerPosition:2,connectedPosition:{originX:"center",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-33}},{pointerPosition:3,connectedPosition:{originX:"center",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:33}},{pointerPosition:0,connectedPosition:{originX:"center",originY:"bottom",overlayX:"start",overlayY:"top",offsetX:-33}},{pointerPosition:1,connectedPosition:{originX:"center",
originY:"bottom",overlayX:"end",overlayY:"top",offsetX:33}}],bsb=[{pointerPosition:2,connectedPosition:{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetX:-12}},{pointerPosition:3,connectedPosition:{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetX:12}},$rb,{pointerPosition:1,connectedPosition:{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:12}}],csb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"center",overlayX:"end",
overlayY:"top",offsetY:-33}},{pointerPosition:7,connectedPosition:{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom",offsetY:33}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"top",offsetY:-33}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom",offsetY:33}}],dsb=[{pointerPosition:6,connectedPosition:{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetY:-12}},{pointerPosition:7,
connectedPosition:{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetY:12}},{pointerPosition:4,connectedPosition:{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetY:-12}},{pointerPosition:5,connectedPosition:{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetY:12}}];
var CC=function(){};CC.\u0275fac=function(a){return new (a||CC)};CC.\u0275mod=Cc({type:CC});CC.\u0275inj=mc({});
var DC=function(){},fsb=function(a,b){return esb(a,b).map(function(c){return c.connectedPosition})},gsb=function(a,b,c){a=esb(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("qb`"+JSON.stringify(c));return a.pointerPosition},esb=function(a,b){b=hsb(b).filter(function(c){return!a.includes(c)});return a.concat(b)},hsb=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?asb:bsb).concat(void 0!==a&&60>a?csb:dsb)};DC.\u0275fac=function(a){return new (a||DC)};DC.\u0275prov=lc({token:DC,factory:DC.\u0275fac,providedIn:CC});
var EC={};EC.AssertionError=ca;EC.ENABLE_ASSERTS=!1;EC.assert=function(a){return a};EC.assertArray=function(a){return a};EC.assertBoolean=function(a){return a};EC.assertElement=function(a){return a};EC.assertExists=function(a){return a};EC.assertFinite=function(a){return a};EC.assertFunction=function(a){return a};EC.assertInstanceof=function(a){return a};EC.assertNumber=function(a){return a};EC.assertObject=function(a){return a};EC.assertString=function(a){return a};EC.fail=function(){};
var isb=["template"],FC=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 U.Subject;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnText="";this.dismiss=new Jw;this.beforeShown=new Jw;this.action=new Jw;this.pointerPosition=0;this.destroyed$=new U.ReplaySubject;this.init$=new U.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}};FC.prototype.ngOnChanges=function(a){if(a.customPositions){var b;null==(b=this.overlayRef)||kqb(b,jsb(this))}};
FC.prototype.ngOnInit=function(){var a=BC(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;ksb(this,a.created$);b.pipe(jg(this.destroyed$)).subscribe(this.hideFeatureTooltip);lsb(this,c)};FC.prototype.ngAfterViewInit=function(){this.init$.next()};FC.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var ksb=function(a,b){a.open$.pipe(sha(a.init$),kg(function(){a.beforeShown.emit()}),ig(function(){return b.pipe(jg(a.dismiss))}),jg(a.destroyed$),xf(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:jsb(a),scrollStrategy:a.getScrollStrategy(),
minWidth:"fit-content",hasBackdrop:a.hasBackdrop});var f;null==(f=a.overlayRef)||f.attach(new NA(a.templateRef,a.containerRef))})},lsb=function(a,b){b.pipe(jg(a.destroyed$),xf(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};FC.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};
FC.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("rb");return CA(KA(this.overlay.position(),this.anchor),fsb(this.customPositions,this.anchor))};var jsb=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=gsb(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};FC.prototype.isVisible=function(){return!!this.overlayRef};
FC.\u0275fac=function(a){return new (a||FC)(C(AC),C(TA),C(Ef),C(qg),C(nx),C(DC))};
FC.\u0275cmp=w({type:FC,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&Hf(isb,5);if(a&2){var c;Gf(c=Jf())&&(b.templateRef=c.first)}},inputs:{tooltipId:"tooltipId",open$:"open$",customPositions:"customPositions",widthOffset:"widthOffset",color:"color",hasBackdrop:"hasBackdrop",actionBtnText:"actionBtnText"},outputs:{dismiss:"dismiss",beforeShown:"beforeShown",action:"action"},features:[Jc],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",""],[3,"actionBtnText","color",
"pointerPosition","widthOffset","action","dismiss"]],template:function(a){a&1&&(Ee(),O(0,Lla,2,4,"ng-template",null,0,Pf))},dependencies:[yC],encapsulation:2,changeDetection:0});
var GC=function(){};GC.\u0275fac=function(a){return new (a||GC)};GC.\u0275mod=Cc({type:GC});GC.\u0275inj=mc({});
var HC=function(){};HC.\u0275fac=function(a){return new (a||HC)};HC.\u0275mod=Cc({type:HC});HC.\u0275inj=mc({imports:[GC]});
var IC=function(){};IC.prototype.getValue=function(a){a=window.localStorage.getItem(a);return(0,U.of)(a?JSON.parse(a):null)};IC.prototype.getValues=function(a){return(0,U.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))};IC.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return(0,U.of)(void 0)};IC.\u0275fac=function(a){return new (a||IC)};
IC.\u0275prov=lc({token:IC,factory:IC.\u0275fac,providedIn:GC});
var msb=function(a){this.cellValue_=a};
var JC=function(a,b,c){this.metricName_=a;this.cellType_=b;this.fields_=c||[];this.cellMap_=new Map};g=JC.prototype;g.addCell=function(a){var b=xc.apply(1,arguments),c=this.getCells(b);c?c.push(new msb(a)):this.setCell(a,b)};g.setCell=function(a){this.cellMap_.set(this.getKey_(xc.apply(1,arguments)),[new msb(a)])};g.getCells=function(){var a=this.getKey_(xc.apply(0,arguments));return this.cellMap_.has(a)?this.cellMap_.get(a):void 0};
g.getCell=function(){var a=this.getCells(xc.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap_.clear()};g.getKey_=function(){var a=xc.apply(0,arguments);return a?a.join(","):"key"};
var KC=function(a,b){JC.call(this,a,3,b)};V(KC,JC);KC.prototype.incrementCounter=function(){this.incrementCounterBy(1,xc.apply(0,arguments))};KC.prototype.incrementCounterBy=function(a){var b=xc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue_);this.setCell(c+a,b)};
var LC=function(a,b){JC.call(this,a,2,b)};V(LC,JC);LC.prototype.record=function(a){this.addCell(a,xc.apply(1,arguments))};
var MC=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};MC.prototype.disposed_=!1;MC.prototype.isDisposed=function(){return this.disposed_};MC.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};var NC=function(a,b){b=Tt(ti,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};MC.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
var OC=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};OC.prototype.stopPropagation=function(){this.propagationStopped_=!0};OC.prototype.preventDefault=function(){this.defaultPrevented=!0};
var PC=[],QC=[],nsb=!1,RC=function(a){PC[PC.length]=a;if(nsb)for(var b=0;b<QC.length;b++)a(St(QC[b].wrap,QC[b]))};
var osb=function(a){var b=da.onerror;da.onerror=function(c,d,e,f,h){b&&b(c,d,e,f,h);a({message:c,fileName:d,line:e,lineNumber:e,col:f,error:h});return!1}},qsb=function(a){var b=Fo("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||
a.sourceURL||da.$googDebugFname||b}catch(h){e="Not available",c=!0}b=psb(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,SC[c])c=SC[c];else{c=String(c);if(!SC[c]){var f=/function\s+([^\(]+)/m.exec(c);SC[c]=f?f[1]:"[Anonymous]"}c=SC[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}},psb=function(a,b){b||(b={});b[rsb(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[rsb(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=psb(a,b));return c},rsb=function(a){var b="";
"function"===typeof a.toString&&(b=""+a);return b+a.stack},SC={};
var ssb=function(){if(!da.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{da.addEventListener("test",function(){},b),da.removeEventListener("test",function(){},b)}catch(c){}return a}();
var TC=function(a,b){OC.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.pointerId=0;this.pointerType="";this.event_=null;a&&this.init(a,b)};Wt(TC,OC);var tsb={2:"touch",3:"pen",4:"mouse"};
TC.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)?bu&&(Sib(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=cu||void 0!==a.offsetX?
a.offsetX:a.layerX,this.offsetY=cu||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.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?
a.pointerType:tsb[a.pointerType]||"";this.state=a.state;this.event_=a;a.defaultPrevented&&TC.superClass_.preventDefault.call(this)};TC.prototype.stopPropagation=function(){TC.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};TC.prototype.preventDefault=function(){TC.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};
var usb="closure_listenable_"+(1E6*Math.random()|0),UC=function(a){return!(!a||!a[usb])};
var vsb=0;
var wsb=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=++vsb;this.removed=this.callOnce=!1},VC=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};
var WC=function(a){this.src=a;this.listeners={};this.typeCount_=0};WC.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=xsb(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new wsb(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
WC.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=xsb(e,b,c,d);return-1<b?(VC(e[b]),ya(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};var ysb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=za(a.listeners[c],b);d&&(VC(b),0==a.listeners[c].length&&(delete a.listeners[c],a.typeCount_--));return d};
WC.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,VC(d[e]);delete this.listeners[c];this.typeCount_--}return b};WC.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=xsb(a,b,c,d));return-1<e?a[e]:null};
WC.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return jja(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 xsb=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 zsb="closure_lm_"+(1E6*Math.random()|0),Asb={},Bsb=0,Ko=function(a,b,c,d,e){if(d&&d.once)return XC(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ko(a,b[f],c,d,e);return null}c=YC(c);return UC(a)?a.listen(b,c,Ha(d)?!!d.capture:!!d,e):Csb(a,b,c,!1,d,e)},Csb=function(a,b,c,d,e,f){if(!b)throw Error("sb");var h=Ha(e)?!!e.capture:!!e,k=ZC(a);k||(a[zsb]=k=new WC(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=Dsb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)ssb||(e=h),void 0===e&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Esb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("tb");Bsb++;return c},Dsb=function(){var a=Fsb,b=function(c){return a.call(b.src,b.listener,c)};return b},XC=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)XC(a,b[f],c,d,e);return null}c=YC(c);return UC(a)?a.listenOnce(b,c,Ha(d)?!!d.capture:!!d,e):Csb(a,b,c,!0,d,e)},$C=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)$C(a,b[f],c,d,e);else d=Ha(d)?!!d.capture:!!d,c=YC(c),UC(a)?a.unlisten(b,c,d,e):a&&(a=ZC(a))&&(b=a.getListener(b,c,d,e))&&aD(b)},aD=function(a){if("number"===typeof a||!a||a.removed)return!1;var b=a.src;if(UC(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Esb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Bsb--;(c=ZC(b))?(ysb(c,a),0==c.typeCount_&&(c.src=null,b[zsb]=null)):VC(a);
return!0},Esb=function(a){return a in Asb?Asb[a]:Asb[a]="on"+a},Fsb=function(a,b){if(a.removed)a=!0;else{b=new TC(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&aD(a);a=c.call(d,b)}return a},ZC=function(a){a=a[zsb];return a instanceof WC?a:null},Gsb="__closure_events_fn_"+(1E9*Math.random()>>>0),YC=function(a){if("function"===typeof a)return a;a[Gsb]||(a[Gsb]=function(b){return a.handleEvent(b)});return a[Gsb]};RC(function(a){Fsb=a(Fsb)});
var Jo=function(){MC.call(this);this.eventTargetListeners_=new WC(this);this.actualEventTarget_=this;this.parentEventTarget_=null};Wt(Jo,MC);Jo.prototype[usb]=!0;g=Jo.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Ko(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){$C(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 OC(a,c);else if(a instanceof OC)a.target=a.target||c;else{var e=a;a=new OC(d,c);sja(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(){Jo.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 ysb(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 bD=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};bD.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};bD.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 Hsb=$t||cu;
var Isb=function(a,b){return a+Math.random()*(b-a)};
var Kq=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};Kq.prototype.clone=function(){return new Kq(this.x,this.y)};Kq.prototype.equals=function(a){return a instanceof Kq&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Lq=function(a,b){return new Kq(a.x-b.x,a.y-b.y)};g=Kq.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 Kq?(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 cD=function(a,b){this.width=a;this.height=b},iSa=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=cD.prototype;g.clone=function(){return new cD(this.width,this.height)};g.area=function(){return this.width*this.height};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!this.area()};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};
var So=function(a){return a?new dD(eD(a)):Fib||(Fib=new dD)},fD=function(a,b){return"string"===typeof b?a.getElementById(b):b},gD=function(a,b){return(b||document).getElementsByTagName(String(a))},Ksb=function(a,b){fh(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:Jsb.hasOwnProperty(d)?a.setAttribute(Jsb[d],c):Mi(d,"aria-")||Mi(d,"data-")?a.setAttribute(d,c):a[d]=c})},
Jsb={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"},iD=function(a){a=(a||window).document;a=hD(a)?a.documentElement:a.body;return new cD(a.clientWidth,a.clientHeight)},kD=function(a){var b=jD(a);a=a.parentWindow||a.defaultView;return $t&&fu("10")&&a.pageYOffset!=b.scrollTop?new Kq(b.scrollLeft,b.scrollTop):new Kq(a.pageXOffset||
b.scrollLeft,a.pageYOffset||b.scrollTop)},jD=function(a){return a.scrollingElement?a.scrollingElement:!cu&&hD(a)?a.documentElement:a.body||a.documentElement},lD=function(a){return a?a.parentWindow||a.defaultView:window},Msb=function(a,b,c){return Lsb(document,arguments)},Lsb=function(a,b){var c=b[1],d=Ij(a,String(b[0]));c&&("string"===typeof c?d.className=c:Array.isArray(c)?d.className=c.join(" "):Ksb(d,c));2<b.length&&Nsb(a,d,b,2);return d},Nsb=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(!Ea(f)||Ha(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(Ha(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}ta(h?Da(f):f,e)}}},Ij=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)},hD=function(a){return"CSS1Compat"==a.compatMode},Osb=function(a,b){Nsb(eD(a),a,arguments,
1)},mD=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},nD=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},oD=function(a){return Ha(a)&&1==a.nodeType},xSa=function(a){var b;if(Hsb&&!($t&&fu("9")&&!fu("10")&&da.SVGElement&&a instanceof da.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return oD(b)?b:null},qHa=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},eD=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},pD=function(a){return a.contentDocument||a.contentWindow.document},qD=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 mD(a),a.appendChild(eD(a).createTextNode(String(b)))},Psb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,
OBJECT:1},Qsb={IMG:" ",BR:"\n"},Rsb=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a},Ssb=function(a,b,c){if(!(a.nodeName in Psb))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 Qsb)b.push(Qsb[a.nodeName]);else for(a=a.firstChild;a;)Ssb(a,b,c),a=a.nextSibling},pRa=function(){var a=lD();return void 0!==a.devicePixelRatio?a.devicePixelRatio:a.matchMedia?rD(3)||rD(2)||rD(1.5)||rD(1)||.75:1},rD=function(a){return lD().matchMedia("(min-resolution: "+
a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+96*a+"dpi)").matches?a:0},dD=function(a){this.document_=a||da.document||document};g=dD.prototype;g.getDomHelper=So;g.getElement=function(a){return fD(this.document_,a)};g.$=dD.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&&wa(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;
b=d}else b=c;return b};g.$$=dD.prototype.getElementsByTagNameAndClass;g.setProperties=Ksb;g.getViewportSize=function(){return iD(this.getWindow())};g.createDom=function(a,b,c){return Lsb(this.document_,arguments)};g.createElement=function(a){return Ij(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=Osb;
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=mD;g.removeNode=nD;
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=oD;g.getParentElement=xSa;g.contains=qHa;
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")||Rsb(a)):b=a.hasAttribute("tabindex")&&Rsb(a);if(b&&$t){var c;"function"!==typeof a.getBoundingClientRect||$t&&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 Tsb,Usb=function(){var a=da.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ia("Presto")&&(a=function(){var e=Ij(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=St(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&&!baa()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){da.setTimeout(e,0)}},Vsb=iaa;RC(function(a){Vsb=a});
var Wsb=function(){this.workTail_=this.workHead_=null};Wsb.prototype.add=function(a,b){var c=Xsb.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};Wsb.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 Xsb=new bD(function(){return new Ysb},function(a){return a.reset()}),Ysb=function(){this.next=this.scope=this.fn=null};
Ysb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};Ysb.prototype.reset=function(){this.next=this.scope=this.fn=null};
var sD,Zsb=!1,$sb=new Wsb,tD=function(a,b){sD||atb();Zsb||(sD(),Zsb=!0);$sb.add(a,b)},atb=function(){if(da.Promise&&da.Promise.resolve){var a=da.Promise.resolve(void 0);sD=function(){a.then(btb)}}else sD=function(){var b=btb;b=Vsb(b);"function"!==typeof da.setImmediate||da.Window&&da.Window.prototype&&!ia("Edge")&&da.Window.prototype.setImmediate==da.setImmediate?(Tsb||(Tsb=Usb()),Tsb(b)):da.setImmediate(b)}},btb=function(){for(var a;a=$sb.remove();){try{a.fn.call(a.scope)}catch(b){ib(b)}Xsb.put(a)}Zsb=
!1};
var ctb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var vD=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=kC)try{var b=this;a.call(void 0,function(c){uD(b,2,c)},function(c){uD(b,3,c)})}catch(c){uD(this,3,c)}},dtb=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};dtb.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var etb=new bD(function(){return new dtb},function(a){a.reset()}),ftb=function(a,b,c){var d=etb.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},wD=function(a){if(a instanceof vD)return a;var b=new vD(kC);uD(b,2,a);return b},gtb=function(a){return new vD(function(b,c){c(a)})},itb=function(a,b,c){htb(a,b,c,null)||tD(Tt(b,a))},jtb=function(a){return new vD(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],itb(e,b,c)})},ktb=function(a){return new vD(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(u,x){d--;e[u]=x;0==d&&b(e)},h=function(u){c(u)},k=0,q;k<a.length;k++)q=a[k],itb(q,Tt(f,k),h);else b(e)})},ltb=function(a){return new vD(function(b,c){var d=a.length,e=[];if(d)for(var f=function(u){b(u)},h=function(u,x){d--;e[u]=x;0==d&&c(e)},k=0,q;k<a.length;k++)q=a[k],itb(q,f,Tt(h,k));else b(void 0)})},ntb=function(){var a,b,c=new vD(function(d,e){a=d;b=e});return new mtb(c,a,b)};
vD.prototype.then=function(a,b,c){return otb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};vD.prototype.$goog_Thenable=!0;var qtb=function(a,b){b=ftb(b,b);b.always=!0;ptb(a,b);return a};vD.prototype.thenCatch=function(a,b){return otb(this,null,a,b)};vD.prototype.catch=vD.prototype.thenCatch;vD.prototype.cancel=function(a){if(0==this.state_){var b=new xD(a);tD(function(){rtb(this,b)},this)}};
var rtb=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?rtb(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):stb(c),ttb(c,e,3,b)))}a.parent_=null}else uD(a,3,b)},ptb=function(a,b){a.callbackEntries_||2!=a.state_&&3!=a.state_||utb(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},otb=function(a,b,c,d){var e=ftb(null,null,null);e.child=new vD(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(u){h(u)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);void 0===q&&k instanceof xD?h(k):f(q)}catch(u){h(u)}}:h});e.child.parent_=a;ptb(a,e);return e.child};vD.prototype.unblockAndFulfill_=function(a){this.state_=0;uD(this,2,a)};vD.prototype.unblockAndReject_=function(a){this.state_=0;uD(this,3,a)};
var uD=function(a,b,c){0==a.state_&&(a===c&&(b=3,c=new TypeError("ub")),a.state_=1,htb(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,utb(a),3!=b||c instanceof xD||vtb(a,c)))},htb=function(a,b,c,d){if(a instanceof vD)return ptb(a,ftb(b||kC,c||null,d)),!0;if(ctb(a))return a.then(b,c,d),!0;if(Ha(a))try{var e=a.then;if("function"===typeof e)return wtb(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},wtb=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)}},utb=function(a){a.executing_||(a.executing_=!0,tD(a.executeCallbacks_,a))},stb=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};vD.prototype.executeCallbacks_=function(){for(var a;a=stb(this);)ttb(this,a,this.state_,this.result_);this.executing_=!1};
var ttb=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,xtb(b,c,d);else try{b.always?b.onFulfilled.call(b.context):xtb(b,c,d)}catch(e){ytb.call(null,e)}etb.put(b)},xtb=function(a,b,c){2==b?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},vtb=function(a,b){a.hadUnhandledRejection_=!0;tD(function(){a.hadUnhandledRejection_&&ytb.call(null,b)})},ytb=ib,xD=function(a){ba.call(this,
a);this.reportErrorToServer=!1};Wt(xD,ba);xD.prototype.name="cancel";var mtb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
var yD=function(a,b){Jo.call(this);this.interval_=a||1;this.timerObject_=b||da;this.boundTick_=St(this.tick_,this);this.last_=Ut()};Wt(yD,Jo);g=yD.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=Ut()-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_=Ut())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){yD.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var zD=function(a,b,c){if("function"===typeof a)c&&(a=St(a,c));else if(a&&"function"==typeof a.handleEvent)a=St(a.handleEvent,a);else throw Error("vb");return 2147483647<Number(b)?-1:da.setTimeout(a,b||0)},AD=function(a){da.clearTimeout(a)},ztb=function(a,b){var c=null;return(new vD(function(d,e){c=zD(function(){d(b)},a);-1==c&&e(Error("wb"))})).thenCatch(function(d){AD(c);throw d;})};
var Atb=function(a){this.streamzLogger_=a;this.metricMap=new Map;this.disabledMetrics_=new Set;this.invocationCount=0;this.flushInterval=3E4;this.flushTimer=new yD(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this)},Btb=function(a){a.flushTimer.enabled||a.flushTimer.start();a.invocationCount++;100<=a.invocationCount&&a.snapshotAndFlush()};g=Atb.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(v(a)).filter(function(b){return b.cellMap_.size});a.length&&this.streamzLogger_.flush(a,!1);Ctb(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=xc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new KC(a,b))};g.addNewEventMetric=function(a){var b=xc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new LC(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(v(xc.apply(1,arguments))))};g.incrementCounterBy=function(a,b){var c=xc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof KC&&(d.incrementCounterBy(b,c),Btb(this))};g.record=function(a,b){var c=xc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof LC&&(d.record(b,c),Btb(this))};var Ctb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
var Dtb=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"})};Dtb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Dtb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Etb=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"})};Etb.prototype.record=function(a,b,c){this.streamzService_.record(this.metricName_,a,b,c)};Etb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Ftb=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"})};Ftb.prototype.increment=function(a,b){this.streamzService_.incrementCounter(this.metricName_,a,b)};Ftb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Gtb=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"})};Gtb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};Gtb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var Itb=function(a){Z.call(this,a,-1,Htb)};V(Itb,Z);var BD=function(a){Z.call(this,a)};V(BD,Z);BD.prototype.getCount=function(){return p(this,2)};BD.prototype.setCount=function(a){l(this,2,a)};var Htb=[1];Itb.prototype.toObject=function(){return Jtb(void 0,this)};var Jtb=function(a,b){if(null!=b){var c={entryList:Hb(xb(b,BD,1),Ktb,a)};a&&(c.$jspbMessageInstance=b);return c}};BD.prototype.toObject=function(){return Ktb(void 0,this)};
var Ktb=function(a,b){if(null!=b){var c={valueOrBucket:n(mu(b,1)),count:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var CD=function(a){Z.call(this,a,-1,Ltb)};V(CD,Z);var DD=function(a){Z.call(this,a)};V(DD,Z);DD.prototype.getMobile=function(){return Al(this,ED,1,Mtb)};var ED=function(a){Z.call(this,a)};V(ED,Z);ED.prototype.getAppName=function(){return p(this,1)};var FD=function(a){Z.call(this,a)};V(FD,Z);FD.prototype.getAppName=function(){return p(this,1)};FD.prototype.getExperimentId=function(){return p(this,3)};var GD=function(a){Z.call(this,a,-1,Ntb)};V(GD,Z);var HD=function(a){Z.call(this,a)};V(HD,Z);
HD.prototype.getValueCase=function(){return ub(this,ID)};var JD=function(a){Z.call(this,a)};V(JD,Z);JD.prototype.getValueCase=function(){return ub(this,KD)};var Ltb=[3,6,4];CD.prototype.toObject=function(){return Otb(void 0,this)};var Otb=function(a,b){if(null!=b){var c={streamzName:n(p(b,1)),hashedStreamzName:n(p(b,5)),rootSpec:Ptb(a,m(b,DD,2)),fieldNameList:n(ob(b,3)),hashedFieldNameList:n(ob(b,6)),incList:Hb(xb(b,GD,4),Qtb,a)};a&&(c.$jspbMessageInstance=b);return c}},Mtb=[1,2];
DD.prototype.toObject=function(){return Ptb(void 0,this)};var Ptb=function(a,b){if(null!=b){var c={mobile:Rtb(a,b.getMobile()),mobileExp:Stb(a,Al(b,FD,2,Mtb))};a&&(c.$jspbMessageInstance=b);return c}};ED.prototype.toObject=function(){return Rtb(void 0,this)};var Rtb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),useMobilespec:n(Mo(b,3))};a&&(c.$jspbMessageInstance=b);return c}};FD.prototype.toObject=function(){return Stb(void 0,this)};
var Stb=function(a,b){if(null!=b){var c={appName:n(p(b,1)),appVersion:n(p(b,2)),experimentId:n(p(b,3)),useMobilespec:n(Mo(b,4))};a&&(c.$jspbMessageInstance=b);return c}},Ntb=[1];GD.prototype.toObject=function(){return Qtb(void 0,this)};var Qtb=function(a,b){if(null!=b){var c={fieldList:Hb(xb(b,HD,1),Ttb,a),incBy:Utb(a,m(b,JD,2))};a&&(c.$jspbMessageInstance=b);return c}},ID=[1,2,3];HD.prototype.toObject=function(){return Ttb(void 0,this)};
var Ttb=function(a,b){if(null!=b){var c={strVal:n(Hr(b,1,ID)),intVal:n(Hr(b,2,ID)),boolVal:n(Mo(b,wb(b,ID,3)))};a&&(c.$jspbMessageInstance=b);return c}},KD=[1,2,3];JD.prototype.toObject=function(){return Utb(void 0,this)};var Utb=function(a,b){if(null!=b){var c={int64Val:n(Hr(b,1,KD)),doubleVal:n(mu(b,wb(b,KD,2))),histogramVal:Jtb(a,Al(b,Itb,3,KD))};a&&(c.$jspbMessageInstance=b);return c}};
var LD=function(a){Z.call(this,a)};V(LD,Z);LD.prototype.getKey=function(){return p(this,1)};LD.prototype.hasKey=function(){return ej(this,1)};LD.prototype.toObject=function(){return Vtb(this)};var Vtb=function(a){if(null!=a)return{key:n(p(a,1))}};
var Xtb=function(a){Z.call(this,a,-1,Wtb)};V(Xtb,Z);var Wtb=[1];Xtb.prototype.toObject=function(){var a=null!=this?{batchList:Hb(xb(this,CD,1),Otb),slicerMetadata:Vtb(m(this,LD,2))}:void 0;return a};
var Ytb=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("xb`"+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("yb`"+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 $tb=function(a,b,c){var d=String(da.location.href);return d&&a&&b?[b,Ztb(Ytb(d),a,c||null)].join(" "):null},Ztb=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],ta(d,function(k){e.push(k)}),aub(e.join(" "));var f=[],h=[];ta(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];ta(d,function(k){e.push(k)});a=aub(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")},aub=function(a){var b=
Nla();b.update(a);return b.digestString().toLowerCase()};
var bub={};
var MD=function(){this.document_=document||{cookie:""}};g=MD.prototype;g.isEnabled=function(){if(!da.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("zb`"+a);if(/[;\r\n]/.test(b))throw Error("Ab`"+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=Ri(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 ND(this).keys};g.getValues=function(){return ND(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=ND(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=ND(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ND=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Ri(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 cub=function(a){return!!bub.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)},dub=function(a,b,c,d){(a=da[a])||(a=(new MD).get(b));return a?$tb(a,c,d):null},Ho=function(a,b){b=void 0===b?!1:b;var c=Ytb(String(da.location.href)),d=[];var e=b;e=void 0===e?!1:e;var f=da.__SAPISID||da.__APISID||da.__3PSAPISID||da.__OVERRIDE_SID;cub(e)&&(f=f||da.__1PSAPISID);if(f)e=!0;else{var h=new MD;f=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("SID");cub(e)&&(f=f||h.get("__Secure-1PAPISID"));
e=!!f}e&&(e=(c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:"))?da.__SAPISID:da.__APISID,e||(e=new MD,e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID")),(e=e?$tb(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e),c&&cub(b)&&((b=dub("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=dub("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a)));return 0==d.length?null:d.join(" ")};
var OD=function(a){Z.call(this,a,-1,eub)};V(OD,Z);var eub=[2];OD.prototype.toObject=function(){return fub(void 0,this)};var fub=function(a,b){if(null!=b){var c={clearBlob:Lb(nu(b,1)),clearBlobJs:n(p(b,4)),encryptedBlobList:Lb(pb(b,2,hb)),usersMatch:n(Mo(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var PD=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a};PD.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};PD.prototype.getValue=function(){return this.currValue_};
var gub=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,""))},hub=function(a){try{return da.JSON.parse(a)}catch(b){}a=String(a);if(gub(a))try{return eval("("+a+")")}catch(b){}throw Error("Bb`"+a);},QD=function(a,b){return(new iub(b)).serialize(a)},iub=function(a){this.replacer_=
a};iub.prototype.serialize=function(a){var b=[];jub(this,a,b);return b.join("")};
var jub=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],jub(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),kub(d,c),c.push(":"),jub(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":kub(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("Cb`"+typeof b);}}},lub={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},mub=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,kub=function(a,b){b.push('"',a.replace(mub,
function(c){var d=lub[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),lub[c]=d);return d}),'"')};
var nub=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 RD=function(){};RD.prototype.cachedOptions_=null;RD.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};
var oub,SD=function(){};Wt(SD,RD);SD.prototype.createInstance=function(){var a=pub(this);return a?new ActiveXObject(a):new XMLHttpRequest};SD.prototype.internalGetOptions=function(){var a={};pub(this)&&(a[0]=!0,a[1]=!0);return a};
var pub=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("Db");}return a.ieProgId_};oub=new SD;
var qub=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),rub=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," ")):"")}}},sub=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]},tub=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)tub(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))},uub=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)tub(a[b],a[b+1],c);return c.join("&")},vub=function(a){var b=[],c;for(c in a)tub(c,a[c],b);return b.join("&")},TD=function(a,b){var c=2==arguments.length?uub(arguments[1],0):uub(arguments,
1);return sub(a,c)},Asa=function(a,b){b=vub(b);return sub(a,b)},UD=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";return sub(a,b+c)},wub=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},xub=/#|$/,yub=function(a,b){var c=a.search(xub),d=wub(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," "))},zub=/[?&]($|#)/;
var VD=function(a){Jo.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};Wt(VD,Jo);
var Aub=/^https?$/i,Bub=["POST","PUT"],Cub=[],ui=function(a,b,c,d,e,f,h){var k=new VD;Cub.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};VD.prototype.cleanupSend_=function(){this.dispose();za(Cub,this)};VD.prototype.setTrustToken=function(a){this.trustToken_=a};
VD.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("Eb`"+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():oub.getOptions();this.xhr_.onreadystatechange=St(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=r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Fb`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=da.FormData&&a instanceof da.FormData;!wa(Bub,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=r(c);for(d=
b.next();!d.done;d=b.next())c=r(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{Dub(this),0<this.timeoutInterval_&&((this.useXhr2Timeout_=Eub(this.xhr_))?(this.xhr_.timeout=
this.timeoutInterval_,this.xhr_.ontimeout=St(this.timeout_,this)):this.timeoutId_=zD(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};var Eub=function(a){return $t&&fu(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};VD.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():oub.createInstance()};
VD.prototype.timeout_=function(){"undefined"!=typeof Rt&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};VD.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;Fub(this);WD(this)};var Fub=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
VD.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"),WD(this))};VD.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),WD(this,!0));VD.superClass_.disposeInternal.call(this)};
VD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Gub(this);else this.onReadyStateChangeEntryPoint_()};VD.prototype.onReadyStateChangeEntryPoint_=function(){Gub(this)};
var Gub=function(a){if(a.active_&&"undefined"!=typeof Rt&&(!a.xhrOptions_[1]||4!=a.getReadyState()||2!=a.getStatus()))if(a.inSend_&&4==a.getReadyState())zD(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()+"]";Fub(a)}}finally{WD(a)}}},WD=function(a,b){if(a.xhr_){Dub(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){}}},Dub=function(a){a.xhr_&&a.useXhr2Timeout_&&(a.xhr_.ontimeout=null);a.timeoutId_&&(AD(a.timeoutId_),a.timeoutId_=null)};g=VD.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(qub)[1]||null,!a&&da.self&&da.self.location&&(a=da.self.location.protocol.slice(0,-1)),a=!Aub.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));a:{a=b;if(da.JSON)try{var c=da.JSON.parse(a);break a}catch(d){}c=hub(a)}return c}};
var Hub=function(a){try{if(!a.xhr_)return null;if("response"in a.xhr_)return a.xhr_.response;switch(a.responseType_){case "":case "text":return a.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.xhr_)return a.xhr_.mozResponseArrayBuffer}return null}catch(b){return null}};g=VD.prototype;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(!Wi(b[c])){var d=Frb(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 ija(a,function(h){return h.join(", ")})};g.getLastErrorCode=function(){return this.lastErrorCode_};
g.getLastError=function(){return"string"===typeof this.lastError_?this.lastError_:String(this.lastError_)};RC(function(a){VD.prototype.onReadyStateChangeEntryPoint_=a(VD.prototype.onReadyStateChangeEntryPoint_)});
var XD=function(a){Z.call(this,a)};V(XD,Z);XD.prototype.getLocale=function(){return p(this,5)};XD.prototype.setLocale=function(a){return l(this,5,a)};XD.prototype.setBuildLabel=function(a){l(this,7,a)};var YD=function(a){Z.call(this,a,-1,Iub)};V(YD,Z);YD.prototype.getMobile=function(){return Mo(this,2)};var ZD=function(a){Z.call(this,a)};V(ZD,Z);ZD.prototype.getVersion=function(){return p(this,2)};ZD.prototype.setVersion=function(a){return l(this,2,a)};XD.prototype.toObject=function(){return Jub(this)};
var Jub=function(a){if(null!=a)return{os:n(p(a,1)),osVersion:n(p(a,2)),deviceType:n(p(a,3)),country:n(p(a,4)),locale:n(p(a,5)),osType:n(p(a,6)),buildLabel:n(p(a,7)),continent:n(p(a,8)),clientHints:Kub(m(a,YD,9))}},Iub=[1];YD.prototype.toObject=function(){return Kub(this)};var Kub=function(a){if(null!=a)return{uaListList:Hb(xb(a,ZD,1),Lub),mobile:n(Mo(a,2)),platform:n(p(a,3)),platformVersion:n(p(a,4)),architecture:n(p(a,5)),model:n(p(a,6)),uaFullVersion:n(p(a,7)),bitness:n(p(a,8))}};
ZD.prototype.toObject=function(){return Lub(void 0,this)};var Lub=function(a,b){if(null!=b){var c={brand:n(p(b,1)),version:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Mub=["platform","platformVersion","architecture","model","uaFullVersion"];new YD;
var $D=function(a){Z.call(this,a)};V($D,Z);var Nub=function(a){Z.call(this,a)};V(Nub,Z);$D.prototype.toObject=function(){return Oub(this)};var Oub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),buildType:n(p(a,4)),omahaChannel:n(p(a,5)),battlestarClientType:n(p(a,2)),graphicsCapabilities:Pub(m(a,Nub,3)),battlestarMachineTier:n(p(a,6))}};Nub.prototype.toObject=function(){return Pub(this)};var Pub=function(a){if(null!=a)return{guestAngle:n(Mo(a,1))}};
var aE=function(a){Z.call(this,a)};V(aE,Z);aE.prototype.getClientType=function(){return p(this,1)};aE.prototype.setClientType=function(a){return l(this,1,a)};aE.prototype.setBuildLabel=function(a){l(this,2,a)};aE.prototype.toObject=function(){return Qub(this)};var Qub=function(a){if(null!=a)return{clientType:n(p(a,1)),buildLabel:n(p(a,2)),birdsongBuildLabel:n(p(a,3))}};
var bE=function(a){Z.call(this,a)};V(bE,Z);bE.prototype.getLocale=function(){return p(this,1)};bE.prototype.setLocale=function(a){return l(this,1,a)};bE.prototype.toObject=function(){return Rub(this)};var Rub=function(a){if(null!=a)return{locale:n(p(a,1)),browser:n(p(a,2)),browserVersion:n(p(a,3)),flashVersion:n(p(a,4))}};
var Sub=function(a){Z.call(this,a)};V(Sub,Z);g=Sub.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,2)};g.setLoggingId=function(a){l(this,2,a)};g.toObject=function(){return Tub(this)};
var Tub=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,2)),os:n(p(a,3)),osMajorVersion:n(p(a,4)),osFullVersion:n(p(a,5)),applicationBuild:n(p(a,6)),country:n(p(a,7)),applicationBuildCl:n(p(a,8)),clearcutVersion:n(p(a,9))}};
var cE=function(a){Z.call(this,a)};V(cE,Z);cE.prototype.toObject=function(){return Uub(this)};var Uub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),driveDesktopClientType:n(p(a,2))}};
var dE=function(a){Z.call(this,a)};V(dE,Z);dE.prototype.toObject=function(){return Vub(this)};var Vub=function(a){if(null!=a)return{buildVersion:n(p(a,1)),g1DesktopClientType:n(p(a,2))}};
var eE=function(a){Z.call(this,a)};V(eE,Z);eE.prototype.getLocale=function(){return p(this,11)};eE.prototype.setLocale=function(a){return l(this,11,a)};eE.prototype.toObject=function(){return Wub(this)};
var Wub=function(a){if(null!=a)return{deviceId:n(p(a,9)),deviceModel:n(p(a,1)),appVersion:n(p(a,2)),acpVersion:n(p(a,16)),opalVersion:n(p(a,18)),virtualReleaseChannel:n(p(a,17)),manufacturer:n(p(a,3)),productName:n(p(a,4)),factoryCountry:n(p(a,5)),buildType:n(p(a,6)),systemBuild:n(p(a,7)),backendType:n(p(a,8)),locale:n(p(a,11)),onDeviceAssistantEnabled:n(Mo(a,12)),surfaceType:n(p(a,13)),osType:n(p(a,14)),optedInMetricsLogging:n(Mo(a,15))}};
var fE=function(a){Z.call(this,a)};V(fE,Z);fE.prototype.getLocale=function(){return p(this,5)};fE.prototype.setLocale=function(a){return l(this,5,a)};fE.prototype.toObject=function(){return Xub(this)};var Xub=function(a){if(null!=a)return{appVersion:n(p(a,1)),coreAppVersion:n(p(a,3)),deviceModel:n(p(a,2)),mccMnc:n(p(a,4)),locale:n(p(a,5))}};
var Yub=function(a){Z.call(this,a)};V(Yub,Z);Yub.prototype.toObject=function(){return Zub(this)};var Zub=function(a){if(null!=a)return{osMajorVersion:n(p(a,1)),osFullVersion:n(p(a,2)),applicationBuild:n(p(a,3)),country:n(p(a,4)),applicationBuildCl:n(p(a,5)),clearcutVersion:n(p(a,6)),applicationBundleId:n(p(a,7))}};
var gE=function(a){Z.call(this,a)};V(gE,Z);gE.prototype.getAppId=function(){return p(this,3)};gE.prototype.setAppId=function(a){l(this,3,a)};gE.prototype.toObject=function(){return $ub(this)};var $ub=function(a){if(null!=a)return{deviceId:n(p(a,1)),os:n(p(a,2)),appId:n(p(a,3)),appVersion:n(p(a,4)),mccMnc:n(p(a,5))}};
var avb=function(a){Z.call(this,a)};V(avb,Z);g=avb.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getLoggingId=function(){return p(this,7)};g.setLoggingId=function(a){l(this,7,a)};g.toObject=function(){return bvb(this)};var bvb=function(a){if(null!=a)return{clientId:n(p(a,1)),loggingId:n(p(a,7)),make:n(p(a,3)),model:n(p(a,4)),applicationBuild:n(p(a,5)),platformVersion:n(p(a,6)),country:n(p(a,8))}};
var hE=function(a){Z.call(this,a)};V(hE,Z);hE.prototype.getBattlestarClientInfo=function(){return Al(this,$D,1,cvb)};hE.prototype.getDriveDesktopClientInfo=function(){return Al(this,cE,2,cvb)};hE.prototype.getG1DesktopClientInfo=function(){return Al(this,dE,3,cvb)};var cvb=[1,2,3];hE.prototype.toObject=function(){return dvb(this)};var dvb=function(a){if(null!=a)return{battlestarClientInfo:Oub(a.getBattlestarClientInfo()),driveDesktopClientInfo:Uub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:Vub(a.getG1DesktopClientInfo())}};
var evb=function(a){Z.call(this,a)};V(evb,Z);evb.prototype.toObject=function(){return fvb(this)};var fvb=function(a){if(null!=a)return{machineClass:n(p(a,1))}};
var gvb=function(a){Z.call(this,a)};V(gvb,Z);gvb.prototype.toObject=function(){return hvb(this)};var hvb=function(a){if(null!=a)return{vrClientType:n(p(a,1)),sdkVersion:n(p(a,2)),fingerprint:n(p(a,3)),gvrVersion:n(p(a,4)),manufacturer:n(p(a,5)),model:n(p(a,6)),language:n(p(a,7)),country:n(p(a,8)),unityVersion:n(p(a,9)),unitySdkVersion:n(p(a,10))}};
var iE=function(a){Z.call(this,a)};V(iE,Z);iE.prototype.setBuildLabel=function(a){l(this,1,a)};iE.prototype.getEnvironment=function(){return p(this,3)};iE.prototype.setEnvironment=function(a){return l(this,3,a)};iE.prototype.toObject=function(){return ivb(this)};
var ivb=function(a){if(null!=a)return{buildLabel:n(p(a,1)),deploymentType:n(p(a,2)),environment:n(p(a,3)),location:n(p(a,4)),machine:n(p(a,5)),gameletId:n(p(a,6)),machineShape:n(p(a,7)),metro:n(p(a,8)),vmPurpose:n(p(a,9)),releaseStage:n(p(a,10))}};
var jE=function(a){Z.call(this,a)};V(jE,Z);g=jE.prototype;g.getClientType=function(){return p(this,1)};g.setClientType=function(a){return l(this,1,a)};g.getBattlestarClientInfo=function(){return m(this,$D,22)};g.getDriveDesktopClientInfo=function(){return m(this,cE,24)};g.getG1DesktopClientInfo=function(){return m(this,dE,25)};g.getMutableJsClientInfo=function(){return pu(this,XD,11)};g.toObject=function(){return jvb(this)};
var jvb=function(a){if(null!=a)return{clientType:n(p(a,1)),remoteHost:n(p(a,6)),remoteHost6:n(p(a,7)),battlestarClientInfo:Oub(a.getBattlestarClientInfo()),birdsongClientInfo:Qub(m(a,aE,14)),desktopClientInfo:Tub(m(a,Sub,3)),driveDesktopClientInfo:Uub(a.getDriveDesktopClientInfo()),g1DesktopClientInfo:Vub(a.getG1DesktopClientInfo()),googleHomeClientInfo:Wub(m(a,eE,16)),jsClientInfo:Jub(m(a,XD,11)),kaiosClientInfo:Xub(m(a,fE,20)),macClientInfo:Zub(m(a,Yub,13)),pancettaClientInfo:$ub(m(a,gE,10)),playCeClientInfo:bvb(m(a,
avb,5)),portablePhenotypeLibraryClientInfo:dvb(m(a,hE,23)),sparklightClientInfo:fvb(m(a,evb,18)),vrClientInfo:hvb(m(a,gvb,8)),yetiClientInfo:ivb(m(a,iE,15)),browserInfo:Rub(m(a,bE,9)),heterodyneConfigVersion:n(p(a,12))}};
var lvb=function(a){Z.call(this,a,-1,kvb)};V(lvb,Z);var kvb=[1,2,3,4,5];lvb.prototype.toObject=function(){return mvb(void 0,this)};var mvb=function(a,b){if(null!=b){var c={clientAlteringExperimentList:n(ob(b,1)),otherExperimentList:n(ob(b,2)),gwsExperimentList:n(ob(b,3)),playExperimentList:n(ob(b,4)),unsupportedPlayExperimentList:n(ob(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var kE=function(a){Z.call(this,a)};V(kE,Z);kE.prototype.getVersion=function(){return p(this,3)};kE.prototype.setVersion=function(a){return l(this,3,a)};kE.prototype.toObject=function(){return nvb(void 0,this)};var nvb=function(a,b){if(null!=b){var c={appType:n(p(b,1)),androidPackageName:n(p(b,2)),version:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var lE=function(a){Z.call(this,a)};V(lE,Z);g=lE.prototype;g.getKey=function(){return p(this,1)};g.hasKey=function(){return ej(this,1)};g.getValue=function(){return p(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.toObject=function(){return ovb(void 0,this)};var ovb=function(a,b){if(null!=b){var c={key:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pvb=function(a){Z.call(this,a)};V(pvb,Z);pvb.prototype.toObject=function(){return qvb(void 0,this)};var qvb=function(a,b){if(null!=b){var c={networkType:X(b,1,-1),mobileSubtype:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var mE=function(a){Z.call(this,a,31,rvb)};V(mE,Z);g=mE.prototype;g.getTag=function(){return p(this,2)};g.getComponentId=function(){return p(this,26)};g.setComponentId=function(a){return l(this,26,a)};g.hasComponentId=function(){return ej(this,26)};g.addValue=function(){return ru(this,3,lE)};var nE=function(a,b){return l(a,8,b)};mE.prototype.getExperimentIds=function(){return m(this,OD,16)};var oE=function(a,b){l(a,24,b)},svb={},rvb=[3,20,27];mE.prototype.toObject=function(){return tvb(void 0,this)};
var tvb=function(a,b){if(null!=b){var c={eventTimeMs:n(p(b,1)),eventUptimeMs:n(p(b,17)),sequencePosition:n(p(b,21)),tag:n(p(b,2)),eventCode:n(p(b,11)),componentId:n(p(b,26)),eventFlowId:n(p(b,12)),isUserInitiated:n(Mo(b,10)),valueList:Hb(xb(b,lE,3),ovb,a),store:Lb(nu(b,4)),appUsage1p:nvb(a,m(b,kE,9)),sourceExtension:Lb(nu(b,6)),sourceExtensionJs:n(p(b,8)),sourceExtensionJson:n(p(b,13)),sourceExtensionJsonProto3:n(p(b,29)),exp:mvb(a,m(b,lvb,7)),testId:n(p(b,14)),timezoneOffsetSeconds:fj(b,15,18E4),
experimentIds:fub(a,b.getExperimentIds()),clientVe:Lb(nu(b,18)),clientVeJs:n(p(b,24)),internalEvent:n(p(b,19)),testCodeList:n(ob(b,20)),genericDimensionsList:n(ob(b,27)),bootCount:n(p(b,22)),networkConnectionInfo:qvb(a,m(b,pvb,23)),inDirectBootMode:n(Mo(b,25)),zwiebackCookieOverride:n(p(b,28)),appliedSamplingRate:n(mu(b,30))};Ib(b,c,svb,a);a&&(c.$jspbMessageInstance=b);return c}};
var uvb=function(a){Z.call(this,a)};V(uvb,Z);uvb.prototype.toObject=function(){return vvb(this)};var vvb=function(a){if(null!=a)return{collectStartMs:n(p(a,3)),collectUntilMs:n(p(a,1)),skipPersistentLogStorage:n(Mo(a,2))}};
var wvb=function(a){Z.call(this,a)};V(wvb,Z);wvb.prototype.toObject=function(){return xvb(this)};var xvb=function(a){if(null!=a)return{isUnmetered:n(Mo(a,1)),isCharging:n(Mo(a,2)),autoTimeStatus:n(p(a,3)),isGooglerDevice:n(Mo(a,4))}};
var pE=function(a){Z.call(this,a)};V(pE,Z);pE.prototype.getSource=function(){return p(this,3)};pE.prototype.setSource=function(a){return l(this,3,a)};pE.prototype.hasSource=function(){return ej(this,3)};pE.prototype.toObject=function(){return yvb(this)};var yvb=function(a){if(null!=a)return{timeMs:n(p(a,1)),uptimeMs:n(p(a,2)),source:n(p(a,3))}};
var qE=function(a){Z.call(this,a,17,zvb)};V(qE,Z);g=qE.prototype;g.getClientInfo=function(){return m(this,jE,1)};g.getMutableClientInfo=function(){return pu(this,jE,1)};g.setClientInfo=function(a){Gb(this,1,a)};g.getLogSource=function(){return X(this,2,-1)};g.setLogSource=function(a){return l(this,2,a)};g.getQosTier=function(){return X(this,9,0)};var Avb={},zvb=[3,5];
qE.prototype.toObject=function(){if(null!=this){var a={requestTimeMs:n(p(this,4)),requestUptimeMs:n(p(this,8)),clientInfo:jvb(this.getClientInfo()),logSource:X(this,2,-1),logSourceName:n(p(this,6)),zwiebackCookie:n(p(this,7)),logEventList:Hb(xb(this,mE,3),tvb),serializedLogEventsList:Lb(pb(this,5,hb)),logEventDroppedCount:n(p(this,14)),qosTier:X(this,9,0),scheduler:n(p(this,10)),deviceStatus:xvb(m(this,wvb,11)),externalTimestamp:yvb(m(this,pE,12)),collectForDebug:vvb(m(this,uvb,13)),appMobilespecId:n(p(this,
16))};Ib(this,a,Avb)}else a=void 0;return a};
var Cvb=function(a){Z.call(this,a,-1,Bvb)};V(Cvb,Z);var Bvb=[1];Cvb.prototype.toObject=function(){return Dvb(this)};var Dvb=function(a){if(null!=a)return{idList:n(ob(a,1))}};
var Evb=function(a){Z.call(this,a)};V(Evb,Z);Evb.prototype.toObject=function(){return Fvb(void 0,this)};var Fvb=function(a,b){if(null!=b){var c={logRequestIndex:n(p(b,1)),responseAction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Hvb=function(a){Z.call(this,a,-1,Gvb)};V(Hvb,Z);var Gvb=[1];Hvb.prototype.toObject=function(){return Ivb(this)};var Ivb=function(a){if(null!=a)return{logSourceNameList:n(ob(a,1))}};
var rE=function(a){Z.call(this,a)};V(rE,Z);rE.prototype.getQosTier=function(){return p(this,2)};rE.prototype.getLogSource=function(){return X(this,3,-1)};rE.prototype.setLogSource=function(a){return l(this,3,a)};rE.prototype.toObject=function(){return Jvb(void 0,this)};var Jvb=function(a,b){if(null!=b){var c={logSourceName:n(p(b,1)),qosTier:n(p(b,2)),logSource:X(b,3,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var Lvb=function(a){Z.call(this,a,-1,Kvb)};V(Lvb,Z);var Kvb=[1];Lvb.prototype.toObject=function(){return Mvb(this)};var Mvb=function(a){if(null!=a)return{qosTierConfigurationList:Hb(xb(a,rE,1),Jvb),qosTierFingerprint:n(p(a,2))}};
var sE=function(a){Z.call(this,a,6,Nvb)};V(sE,Z);sE.prototype.getExperiments=function(){return m(this,Cvb,2)};sE.prototype.setExperiments=function(a){Gb(this,2,a)};sE.prototype.hasExperiments=function(){return mj(this,2)};sE.prototype.getQosTier=function(){return m(this,Lvb,3)};var Ovb={},Nvb=[5];
sE.prototype.toObject=function(){if(null!=this){var a={nextRequestWaitMillis:lj(this,1,"-1"),experiments:Dvb(this.getExperiments()),qosTier:Mvb(this.getQosTier()),logSourceBatchingBlacklist:Ivb(m(this,Hvb,4)),logResponseDetailsList:Hb(xb(this,Evb,5),Fvb)};Ib(this,a,Ovb)}else a=void 0;return a};
var Pvb=function(a){Z.call(this,a)};V(Pvb,Z);Pvb.prototype.toObject=function(){return Qvb(void 0,this)};var Qvb=function(a,b){if(null!=b){var c={suggestedFlushIntervalMillis:fj(b,1,-1)};a&&(c.$jspbMessageInstance=b);return c}};
var Rvb=Eb(175237375,{jsExtension:0},Pvb,Qvb);Ovb[175237375]=Rvb;
var uE=function(a,b,c,d,e,f,h,k,q,u,x){Jo.call(this);var E=this;this.componentId_="";this.pendingEvents_=[];this.lastFailedAuth_="";this.useGetRequestForFinalFlush=this.useSendBeaconForFinalFlush=this.clientSideLogOnlyForDevelopment_=!1;this.noFlushUntilMs=this.startWaitingMs=-1;this.clientSpecifiedFlushInterval=!1;this.gzipCompressor_=this.experimentIds_=null;this.numLogsDroppedSinceLastFlush=0;this.sequencePosition_=1;this.timeoutMillis=0;this.sendBeaconApiEnabled=!1;Jo.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=Tt(Isb,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<=ma("Chromium")||45<=ma("Firefox")||12<=ma("Safari")||oa()&&gaa())&&!!lD()&&!!lD().navigator&&
!!lD().navigator.sendBeacon;a=(new jE).setClientType(1);this.logRequestBuilder.setClientInfo(a);this.flushBackoff=new PD(1E4);this.flushTimer=new yD(this.flushBackoff.getValue());NC(this,this.flushTimer);u=Svb(this,u);Ko(this.flushTimer,"tick",u,!1,this);this.backupTimer=new yD(6E5);NC(this,this.backupTimer);Ko(this.backupTimer,"tick",u,!1,this);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(Ko(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
E.finalFlush()}),Ko(document,"pagehide",this.finalFlush,!1,this))};V(uE,Jo);var Svb=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};uE.prototype.disposeInternal=function(){this.finalFlush();Jo.prototype.disposeInternal.call(this)};uE.prototype.setClearcutUrl=function(a){this.clearcutUrl_=a};
var Tvb=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_};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 OD);ll(this.experimentIds_,2,a)};
g.setClearExperimentIds=function(a){a?(this.experimentIds_||(this.experimentIds_=new OD),a=a.serialize(),l(this.experimentIds_,4,a)):this.experimentIds_&&rb(this.experimentIds_,4)};g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment_=a};g.setGzipCompressor=function(a){this.gzipCompressor_=a};var Uvb=function(a,b){a.useSendBeaconForFinalFlush=b&&a.isSendBeaconSupported};uE.prototype.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};
uE.prototype.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;Vvb(this,a)};var Vvb=function(a,b){a.flushBackoff=new PD(1>b?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())};
uE.prototype.log=function(a){a=a.clone();var b=this.sequencePosition_++;l(a,21,b);this.componentId_&&a.setComponentId(this.componentId_);if(!p(a,1)){b=a;var c=Date.now().toString();l(b,1,c)}ej(a,15)||l(a,15,60*(new Date).getTimezoneOffset());this.experimentIds_&&(b=this.experimentIds_.clone(),Gb(a,16,b));for(;this.pendingEvents_.length>=this.bufferSize;)this.pendingEvents_.shift(),++this.numLogsDroppedSinceLastFlush;this.pendingEvents_.push(a);this.dispatchEvent(new Wvb(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)Xvb(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=Tvb(this);this.sessionIndex_&&(d["X-Goog-AuthUser"]=this.sessionIndex_,h=UD(h,"authuser",this.sessionIndex_));this.pageId&&
(d["X-Goog-PageId"]=this.pageId,h=UD(h,"pageId",this.pageId));if(f&&this.lastFailedAuth_===f)b&&b("stale-auth-token");else if(this.pendingEvents_=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment_)a&&a();else{var k=e.serialize(),q;this.gzipCompressor_&&this.gzipCompressor_.getHiddenPropertyName_()&&(q=this.gzipCompressor_.compress(k));var u={url:h,body:k,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,
timeoutMillis:this.timeoutMillis},x=function(N){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(N){var L=null;try{var T=JSON.parse(N.replace(")]}'\n",""));L=new sE(T)}catch(Y){}L&&(N=Number(lj(L,1,"-1")),0<N&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+N),L=L.getExtension(Rvb))&&(L=fj(L,1,-1),-1!=L&&(c.clientSpecifiedFlushInterval||Vvb(c,L)))}a&&a()},E=function(N,L){var T=xb(e,mE,3),Y=c.flushBackoff;Y.currBaseValue_=Math.min(3E5,2*Y.currBaseValue_);
Y.currValue_=Math.min(3E5,Y.currBaseValue_+Math.round(.2*(Math.random()-.5)*Y.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());401===N&&f&&(c.lastFailedAuth_=f);void 0===L&&(L=500<=N&&600>N||401===N||0===N);L&&(c.pendingEvents_=T.concat(c.pendingEvents_),c.disableAutomaticFlush||c.flushTimer.enabled||c.flushTimer.start());b&&b("net-send-failed",N)},I=function(){c.network_?c.network_.send(u,x,E):c.networkIOSend_(u,x,E)};q?q.then(function(N){u.requestHeaders["Content-Encoding"]=
"gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=N;u.bodyType=2;I()},function(){I()}):I()}}}};uE.prototype.finalFlush=function(){this.clientSideLogOnlyForDevelopment_||(this.useSendBeaconForFinalFlush&&Xvb(this),this.useGetRequestForFinalFlush&&Yvb(this),this.flush())};
var Xvb=function(a){Zvb(a,32,10,function(b,c){b=UD(b,"format","json");b=lD().navigator.sendBeacon(b,c.serialize());a.sendBeaconApiEnabled&&!b&&(a.sendBeaconApiEnabled=!1);return b})},Yvb=function(a){Zvb(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=lb(d,3);c=TD(b,"format","base64json","p",c);if(15360<c.length)return!1;b=new Image;c=c instanceof lh?c:Jj(c,/^data:image\//i.test(c));b.src=mh(c);return!0})},Zvb=function(a,
b,c,d){if(0!==a.pendingEvents_.length){var e=Tvb(a);for(var f=e.search(xub),h=0,k,q=[];0<=(k=wub(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(zub,"$1");e=TD(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()}},Wvb=function(){OC.call(this,"event-logged",void 0)};V(Wvb,OC);var tE=function(a,b){this.isServiceWorkerScope=b=void 0===b?!1:b;this.uach=this.locale=null;this.logRequest=new qE;this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new jE)};tE.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
tE.prototype.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType(1);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),m(a,YD,9)||Gb(a,9,this.uach))};tE.prototype.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};tE.prototype.getMutableClientInfo=function(){return this.logRequest.getClientInfo()};
var $vb=function(a,b){var c=void 0===c?Mub:c;b(lD(),c).then(function(d){a.uach=d;d=a.getMutableJsClientInfo();Gb(d,9,a.uach);return!0}).catch(function(){return!1})};tE.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=m(a,XD,11);b||(b=new XD,Gb(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=l(c,4,d);a=Fb(c,3,a);b&&l(a,14,b);return a};
g=Pla.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.build=function(){var a=new uE(this.logSource_,this.getAuthHeaderValue_?this.getAuthHeaderValue_:Ho,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_&&Uvb(a,this.useSendBeaconForFinalFlush_);this.useGetRequestForFinalFlush_&&(a.useGetRequestForFinalFlush=this.useGetRequestForFinalFlush_);this.flushIntervalMs_&&a.setFlushIntervalMs(this.flushIntervalMs_);this.userAgentClientHintsProvider_&&$vb(a.logRequestBuilder,this.userAgentClientHintsProvider_);return a};
var vE=function(a){a=void 0===a?-1:a;var b=void 0===b?"":b;var c=void 0===c?"":c;var d=void 0===d?!1:d;var e=void 0===e?"":e;var f=(new Pla(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};vE.prototype.getLogSource=function(){return this.logSource_};vE.prototype.getComponentId=function(){return this.componentId_};
vE.prototype.flush=function(a){var b=a||[];if(b.length){a=new Xtb;for(var c=[],d=0;d<b.length;d++){var e=b[d],f=e;var h=new CD;h=l(h,1,f.metricName_);for(var k=f,q=[],u=0;u<k.fields_.length;u++)q.push(k.fields_[u].field_name);h=ll(h,3,q);k=[];q=[];u=r(f.cellMap_.keys());for(var x=u.next();!x.done;x=u.next())q.push(x.value.split(","));for(u=0;u<q.length;u++){x=q[u];var E=f.cellType_;for(var I=f.getCells(x)||[],N=[],L=0;L<I.length;L++){var T=I[L];T=T&&T.cellValue_;var Y=new JD;switch(E){case 3:Yn(Y,
1,KD,Number(T));break;case 2:Yn(Y,2,KD,Number(T))}N.push(Y)}E=N;for(I=0;I<E.length;I++){N=E[I];L=new GD;N=Gb(L,2,N);L=x;T=[];Y=f;for(var ja=[],ha=0;ha<Y.fields_.length;ha++)ja.push(Y.fields_[ha].field_type);Y=ja;for(ja=0;ja<Y.length;ja++){ha=Y[ja];var ra=L[ja],Fa=new HD;switch(ha){case 3:Yn(Fa,1,ID,String(ra));break;case 2:Yn(Fa,2,ID,Number(ra));break;case 1:Yn(Fa,3,ID,"true"==ra)}T.push(Fa)}Fb(N,1,T);k.push(N)}}Fb(h,4,k);c.push(h);e.clear()}Fb(a,1,c);b=this.transport_;a instanceof mE?b.log(a):(a=
nE(new mE,a.serialize()),b.log(a));this.transport_.flush()}};
var awb=new sd("PRODUCTION_WHITELIST",{factory:function(){return"g3g-sidebar-source g3g-sidebar-b g3g-sidebar-critique-ng 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".split(" ")}}),
bwb=new sd("STREAMZ_PRODUCT_IDENTIFIER"),cwb=new sd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return uc(qg).runOutsideAngular(function(){var a=new vE(1503);a=new Atb(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);return a})}}),wE=function(a,b,c,d){this.streamzService=a;this.zone=b;this.productionWhitelist=c;this.oneDeveloperWorkflowUsageMetrics=new Dtb(this.streamzService);new Etb(this.streamzService);new Ftb(this.streamzService);new Gtb(this.streamzService);
this.productIdentifier=d||window.location.hostname},xE=function(a,b,c){a.zone.runOutsideAngular(function(){dwb(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,c)})},dwb=function(a){return a.productionWhitelist.some(function(b){return a.productIdentifier.includes(b)})};wE.\u0275fac=function(a){return new (a||wE)(t(cwb),t(qg),t(awb),t(bwb,8))};wE.\u0275prov=lc({token:wE,factory:wE.\u0275fac,providedIn:"root"});
var ewb=new sd("Feature Tooltip Controller Config"),yE=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(wE):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"},fwb=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(S(function(b){return null===
b?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))},gwb=function(a,b){a.keyValueStore.getValue(zE(a,b)).pipe(xf(function(c){return"SHOWING"!==c})).subscribe(function(){a.keyValueStore.setValue(zE(a,b),"HIDDEN")})},iwb=function(a,b,c){var d=c.map(function(e){return zE(a,e)});return a.keyValueStore.getValues(d).pipe(S(function(e){return hwb(a,b,c,e)}))},hwb=function(a,b,c,d){return c.filter(function(e){e=d.get(zE(a,e));return e===b||"UNSEEN"===b&&null===e})},zE=function(a,b){return"onedev.tooltips."+
a.config.productName+"."+b};yE.\u0275fac=function(a){return new (a||yE)(t(ewb),t(IC),t(Iv))};yE.\u0275prov=lc({token:yE,factory:yE.\u0275fac,providedIn:HC});
var AE=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=(0,U.of)(void 0);this.destroyed$=new U.ReplaySubject;this.getCurrentlyShowingTooltips=function(){return iwb(b.featureTooltipService,"SHOWING",jwb(b))}};
AE.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(ig(this.getCurrentlyShowingTooltips),ig(function(c){return 0<c.length?(0,U.of)(c[0]):(0,U.of)(void 0).pipe(kwb(a),lwb(a))}),S(function(c){return mwb(a,c)}),xf(function(c){return!!c}),S(function(c){return c}),fg({bufferSize:1,refCount:!0}));nwb(this,b);b.pipe(jg(this.destroyed$)).subscribe(function(c){c.open$.next();var d=a.featureTooltipService;c=c.tooltipId;var e;null==(e=d.clientStreamzService)||xE(e,d.config.shownMetricName,
!0);(0,U.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,(new Date).getTime()),d.keyValueStore.setValue(zE(d,c),"SHOWING")]).pipe(ag())})};AE.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var kwb=function(a){return(0,U.pipe)(ig(function(){return fwb(a.featureTooltipService)}),xf(U.identity))},lwb=function(a){return(0,U.pipe)(ig(function(){return iwb(a.featureTooltipService,"UNSEEN",jwb(a))}),xf(function(b){return 0<b.length}),S(function(b){return b[0]}))},nwb=function(a,b){b.pipe(ig(function(c){return c.dismiss.pipe(ag(c.tooltipId))}),jg(a.destroyed$)).subscribe(function(c){var d=a.featureTooltipService,e;null==(e=d.clientStreamzService)||xE(e,d.config.hiddenMetricName,!0);(0,U.forkJoin)([d.keyValueStore.setValue(d.lastTooltipKey,
(new Date).getTime()),d.keyValueStore.setValue(zE(d,c),"HIDDEN")]).pipe(ag())})},jwb=function(a){return a.tooltips.map(function(b){return b.tooltipId})},mwb=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===b})};AE.\u0275fac=function(a){return new (a||AE)(C(yE))};
AE.\u0275cmp=w({type:AE,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&If(c,FC,4);if(a&2){var d;Gf(d=Jf())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var BE=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};BE.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){r(b).next().value.isIntersecting?Yrb(a.anchorService,a.tooltipId,a.element):Zrb(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):Yrb(this.anchorService,this.tooltipId,this.element)};
BE.prototype.ngOnDestroy=function(){Zrb(this.anchorService,this.tooltipId);var a;null==(a=this.intersectionObserver)||a.disconnect()};BE.\u0275fac=function(a){return new (a||BE)(C(AC),C(wd))};BE.\u0275dir=w({type:BE,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:["onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"}});
var CE=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){gwb(d.featureTooltipService,d.tooltipId)}};CE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};CE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};
ji.Object.defineProperties(CE.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)}}});CE.\u0275fac=function(a){return new (a||CE)(C(yE),C(Nv),C(wd))};CE.\u0275dir=w({type:CE,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:["onedevTooltipPreventer","tooltipId"],event:["onedevPreventTooltipOn","event"]}});
var owb=new sd("TooltipAnchor"),pwb=new sd("TooltipPeventer"),DE=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)};DE.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
DE.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};ji.Object.defineProperties(DE.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}}});
DE.\u0275fac=function(a){return new (a||DE)(C(yE),C(AC),C(wd),C(Nv),C(owb),C(pwb))};DE.\u0275dir=w({type:DE,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:["onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:["onedevPreventTooltipOn","event"]},features:[Me([{provide:owb,useValue:BE},{provide:pwb,useValue:CE}])]});
var EE=function(a,b,c){this.anchorService=a;this.renderer=b;this.elementRef=c};EE.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};EE.prototype.ngOnDestroy=function(){var a;null==(a=this.unsubscribeFromEvent)||a.call(this)};ji.Object.defineProperties(EE.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){var b=this,c;null==(c=this.unsubscribeFromEvent)||c.call(this);this.unsubscribeFromEvent=this.renderer.listen(this.elementRef.nativeElement,a,function(){b.anchorService.dismissTooltip(b.tooltipId)})}}});
EE.\u0275fac=function(a){return new (a||EE)(C(AC),C(Nv),C(wd))};EE.\u0275dir=w({type:EE,selectors:[["","onedevTooltipDismisser",""]],inputs:{tooltipId:["onedevTooltipDismisser","tooltipId"],event:["onedevDismissOn","event"]}});
var FE=function(){this.className="gmat-subtitle-1 tooltip-title"};FE.\u0275fac=function(a){return new (a||FE)};FE.\u0275dir=w({type:FE,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&we(b.className)}});
var qwb=function(){},rwb=function(){};
var GE=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();swb(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),swb(b,
c,e))})}:this.headers=new Map};g=GE.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 swb=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};GE.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof GE?twb(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return uwb(a,b)}),this.lazyUpdate=null))};
var twb=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))})};GE.prototype.clone=function(a){var b=new GE;b.lazyInit=this.lazyInit&&this.lazyInit instanceof GE?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var uwb=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;swb(a,b.name,c);b=("a"===b.op?a.headers.get(c):void 0)||[];b.push.apply(b,v(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)}};
GE.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 vwb=function(){},Rla=/%(\d[a-f0-9])/gi,Sla={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},HE=function(a){var b=this;a=void 0===a?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new vwb;if(a.fromString){if(a.fromObject)throw Error("Gb");this.map=Qla(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(Ula):[""+d];b.map.set(c,d)})):this.map=null};g=HE.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=Tla(b);return a.map.get(b).map(function(d){return c+"="+Tla(d)}).join("&")}).filter(function(b){return""!==b}).join("&")};g.clone=function(a){var b=new HE({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 wwb=function(){this.map=new Map};g=wwb.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 IE=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 GE);this.context||(this.context=new wwb);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 HE,this.urlWithParams=b)},xwb=function(a){return null===a.body?null:Vla(a.body)||Wla(a.body)||Xla(a.body)||"undefined"!==typeof URLSearchParams&&a.body instanceof URLSearchParams||"string"===typeof a.body?a.body:a.body instanceof
HE?a.body.toString():"object"===typeof a.body||"boolean"===typeof a.body||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
IE.prototype.clone=function(a){a=void 0===a?{}:a;var b=a.method||this.method,c=a.url||this.url,d=a.responseType||this.responseType,e=void 0!==a.body?a.body:this.body,f=void 0!==a.withCredentials?a.withCredentials:this.withCredentials,h=void 0!==a.reportProgress?a.reportProgress:this.reportProgress,k=a.headers||this.headers,q=a.params||this.params,u,x=null!=(u=a.context)?u:this.context;void 0!==a.setHeaders&&(k=Object.keys(a.setHeaders).reduce(function(E,I){return E.set(I,a.setHeaders[I])},k));a.setParams&&
(q=Object.keys(a.setParams).reduce(function(E,I){return E.set(I,a.setParams[I])},q));return new IE(b,c,e,{params:q,headers:k,context:x,reportProgress:h,responseType:d,withCredentials:f})};
var JE=function(a,b,c){this.headers=a.headers||new GE;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},KE=function(a){a=void 0===a?{}:a;JE.call(this,a);this.type=2};V(KE,JE);KE.prototype.clone=function(a){a=void 0===a?{}:a;return new KE({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 LE=function(a){a=void 0===a?{}:a;JE.call(this,a);this.type=4;this.body=void 0!==a.body?a.body:null};V(LE,JE);LE.prototype.clone=function(a){a=void 0===a?{}:a;return new LE({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 ywb=function(a){JE.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};V(ywb,JE);
var ME=function(a){this.handler=a};g=ME.prototype;
g.request=function(a,b,c){var d=this;c=void 0===c?{}:c;if(a instanceof IE)b=a;else{var e=void 0;e=c.headers instanceof GE?c.headers:new GE(c.headers);var f=void 0;c.params&&(f=c.params instanceof HE?c.params:new HE({fromObject:c.params}));b=new IE(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,U.of)(b).pipe(qf(function(h){return d.handler.handle(h)},1));if(a instanceof
IE||"events"===c.observe)return e;a=e.pipe(xf(function(h){return h instanceof LE}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(S(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw Error("Hb");return h.body}));case "blob":return a.pipe(S(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw Error("Ib");return h.body}));case "text":return a.pipe(S(function(h){if(null!==h.body&&"string"!==typeof h.body)throw Error("Jb");return h.body}));
default:return a.pipe(S(function(h){return h.body}))}case "response":return a;default:throw Error("Kb`"+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 HE).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,Yla(c,b))};g.post=function(a,b,c){c=void 0===c?{}:c;return this.request("POST",a,Yla(c,b))};g.put=function(a,b,c){c=void 0===c?{}:c;return this.request("PUT",a,Yla(c,b))};ME.\u0275fac=function(a){return new (a||ME)(t(qwb))};ME.\u0275prov=lc({token:ME,factory:ME.\u0275fac});
var zwb=function(a,b){this.next=a;this.interceptor=b};zwb.prototype.handle=function(a){return this.interceptor.intercept(a,this.next)};var NE=new sd("HTTP_INTERCEPTORS");
var Awb=/^\)\]\}',?\n/,OE=function(a){this.xhrFactory=a};
OE.prototype.handle=function(a){var b=this;if("JSONP"===a.method)throw Error("Lb");return new U.Observable(function(c){var d=b.xhrFactory.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(N,L){return d.setRequestHeader(N,L.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=null===a.body||Xla(a.body)?null:Wla(a.body)?a.body.type||null:Vla(a.body)?
null:"string"===typeof a.body?"text/plain":a.body instanceof HE?"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=xwb(a),h=null,k=function(){if(null!==h)return h;var N=d.statusText||"OK",L=new GE(d.getAllResponseHeaders()),T=("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 KE({headers:L,status:d.status,statusText:N,url:T})},q=function(){var N=k(),L=N.headers,T=N.status,Y=N.statusText;N=N.url;var ja=null;204!==T&&(ja="undefined"===typeof d.response?d.responseText:d.response);0===T&&(T=ja?200:0);var ha=200<=T&&300>T;if("json"===a.responseType&&"string"===typeof ja){var ra=ja;ja=ja.replace(Awb,"");try{ja=""!==ja?JSON.parse(ja):null}catch(Fa){ja=ra,ha&&(ha=
!1,ja={error:Fa,text:ja})}}ha?(c.next(new LE({body:ja,headers:L,status:T,statusText:Y,url:N||void 0})),c.complete()):c.error(new ywb({error:ja,headers:L,status:T,statusText:Y,url:N||void 0}))},u=function(N){var L=k().url;c.error(new ywb({error:N,status:d.status||0,statusText:d.statusText||"Unknown Error",url:L||void 0}))},x=!1,E=function(N){x||(c.next(k()),x=!0);var L={type:3,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);"text"===a.responseType&&d.responseText&&(L.partialText=d.responseText);
c.next(L)},I=function(N){var L={type:1,loaded:N.loaded};N.lengthComputable&&(L.total=N.total);c.next(L)};d.addEventListener("load",q);d.addEventListener("error",u);d.addEventListener("timeout",u);d.addEventListener("abort",u);a.reportProgress&&(d.addEventListener("progress",E),null!==f&&d.upload&&d.upload.addEventListener("progress",I));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",u);d.removeEventListener("abort",u);d.removeEventListener("load",q);d.removeEventListener("timeout",
u);a.reportProgress&&(d.removeEventListener("progress",E),null!==f&&d.upload&&d.upload.removeEventListener("progress",I));d.readyState!==d.DONE&&d.abort()}})};OE.\u0275fac=function(a){return new (a||OE)(t(Onb))};OE.\u0275prov=lc({token:OE,factory:OE.\u0275fac});
var Bwb=new sd("XSRF_COOKIE_NAME"),Cwb=new sd("XSRF_HEADER_NAME"),Dwb=function(){},PE=function(a,b,c){this.doc=a;this.platform=b;this.cookieName=c;this.lastCookieString="";this.lastToken=null};
PE.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=r(a.split(";")),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.indexOf("=");e=r(-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};
PE.\u0275fac=function(a){return new (a||PE)(t(hi),t(Wv),t(Bwb))};PE.\u0275prov=lc({token:PE,factory:PE.\u0275fac});var QE=function(a,b){this.tokenService=a;this.headerName=b};QE.prototype.intercept=function(a,b){var c=a.url.toLowerCase();if("GET"===a.method||"HEAD"===a.method||c.startsWith("http://")||c.startsWith("https://"))return b.handle(a);c=this.tokenService.getToken();null===c||a.headers.has(this.headerName)||(a=a.clone({headers:a.headers.set(this.headerName,c)}));return b.handle(a)};
QE.\u0275fac=function(a){return new (a||QE)(t(Dwb),t(Cwb))};QE.\u0275prov=lc({token:QE,factory:QE.\u0275fac});
var RE=function(a,b){this.backend=a;this.injector=b;this.chain=null};RE.prototype.handle=function(a){null===this.chain&&(this.chain=this.injector.get(NE,[]).reduceRight(function(b,c){return new zwb(b,c)},this.backend));return this.chain.handle(a)};RE.\u0275fac=function(a){return new (a||RE)(t(rwb),t(Iv))};RE.\u0275prov=lc({token:RE,factory:RE.\u0275fac});var SE=function(){};SE.\u0275fac=function(a){return new (a||SE)};SE.\u0275mod=Cc({type:SE});
SE.\u0275inj=mc({providers:[QE,{provide:NE,useExisting:QE,multi:!0},{provide:Dwb,useClass:PE},{provide:Bwb,useValue:"XSRF-TOKEN"},{provide:Cwb,useValue:"X-XSRF-TOKEN"}]});var TE=function(){};TE.\u0275fac=function(a){return new (a||TE)};TE.\u0275mod=Cc({type:TE});var UE={cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"};UE=void 0===UE?{}:UE;
TE.\u0275inj=mc({providers:[ME,{provide:qwb,useClass:RE},OE,{provide:rwb,useExisting:OE}],imports:[{ngModule:SE,providers:[UE.cookieName?{provide:Bwb,useValue:UE.cookieName}:[],UE.headerName?{provide:Cwb,useValue:UE.headerName}:[]]}]});
var vi;
var VE=function(a,b){this.url=a;this.svgText=null;this.options=b},WE=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"];this._document=c},Ewb=function(a,b){return a._fontCssClassesByAlias.get(b)||b},Fwb=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,U.throwError)(Error("Mb`"+d))};g=WE.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?(0,U.of)(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(S(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return(0,U.of)(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(Sf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return(0,U.of)(null)}))});return(0,U.forkJoin)(d).pipe(S(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Mb`"+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(kg(function(c){return a.svgText=c}),S(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?(0,U.of)(null):this._fetchIcon(a).pipe(kg(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($la("<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("Pb");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString($la("<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("Nb");if(null==c)throw Error("Qb`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Ob`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(S(function(h){return $la(h)}),Zf(function(){return b._inProgressUrlFetches.delete(f)}),eg());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 VE(d.url,d.options):new VE(d)}};WE.\u0275fac=function(a){return new (a||WE)(t(ME,8),t($y),t(hi,8),t(ce))};WE.\u0275prov=lc({token:WE,factory:WE.\u0275fac,providedIn:"root"});new Fv;new Gv;new Fv;new Fv;
var Gwb=ki(function(a){this._elementRef=a}),Hwb=new sd("MAT_ICON_DEFAULT_OPTIONS"),Iwb=new sd("mat-icon-location",{providedIn:"root",factory:ama}),Jwb="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),Kwb=Jwb.map(function(a){return"["+a+"]"}).join(", "),Lwb=/^url\(['"]?#(.*?)['"]?\)$/,XE=function(a,b,c,d,e,f){var h=Gwb.call(this,a)||this;h._iconRegistry=b;h._location=d;h._errorHandler=e;h._inline=!1;h._previousFontSetClass=[];h._currentIconFetch=
U.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};V(XE,Gwb);g=XE.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("Rb`"+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?[Ewb(this._iconRegistry,this.fontSet)]: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&&(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(Kwb),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={$jscomp$loop$prop$i$1652:0};a.$jscomp$loop$prop$i$1652<b.length;a={$jscomp$loop$prop$i$1652:a.$jscomp$loop$prop$i$1652},a.$jscomp$loop$prop$i$1652++)Jwb.forEach(function(d){return function(e){var f=b[d.$jscomp$loop$prop$i$1652],h=f.getAttribute(e);if(h=h?h.match(Lwb):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=r(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=Fwb(this._iconRegistry,d,c).pipe(Xf()).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("Sb`"+c+"`"+d+"`"+e.message))})}};
ji.Object.defineProperties(XE.prototype,{inline:{configurable:!0,enumerable:!0,get:function(){return this._inline},set:function(a){this._inline=bh(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())}}});XE.\u0275fac=function(a){return new (a||XE)(C(wd),C(WE),fd("aria-hidden"),C(Iwb),C(ce),C(Hwb,8))};
XE.\u0275cmp=w({type:XE,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(a,b){a&2&&(oe("data-mat-icon-type",b._usingFontIcon()?"font":"svg")("data-mat-icon-name",b._svgName||b.fontIcon)("data-mat-icon-namespace",b._svgNamespace||b.fontSet),te("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:[ie],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ee(),Fe(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}[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 Mwb=Ch("transformMenu",[Fh("void",Eh({opacity:0,transform:"scale(0.8)"})),Gh("void => enter",Dh("120ms cubic-bezier(0, 0, 0.2, 1)",Eh({opacity:1,transform:"scale(1)"}))),Gh("* => void",Dh("100ms 25ms linear",Eh({opacity:0})))]),Nwb=Ch("fadeInItems",[Fh("showing",Eh({opacity:1})),Gh("void => *",[Eh({opacity:0}),Dh("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]);
var Owb=new sd("MatMenuContent"),YE=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 U.Subject};
YE.prototype.attach=function(a){a=void 0===a?{}:a;this._portal||(this._portal=new NA(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new PA(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()};
YE.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()};YE.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()};YE.\u0275fac=function(a){return new (a||YE)(C(Df),C(Kv),C(lx),C(Iv),C(Ef),C(hi),C(nx))};YE.\u0275dir=w({type:YE});var ZE=function(){YE.apply(this,arguments)};V(ZE,YE);ZE.\u0275fac=function(){var a;return function(b){return(a||(a=md(ZE)))(b||ZE)}}();
ZE.\u0275dir=w({type:ZE,selectors:[["ng-template","matMenuContent",""]],features:[Me([{provide:Owb,useExisting:ZE}]),ie]});
var Pwb=new sd("MAT_MENU_PANEL");
var Qwb=li(mi(function(){})),$E=function(a,b,c,d,e){var f=Qwb.call(this)||this;f._elementRef=a;f._document=b;f._focusMonitor=c;f._parentMenu=d;f._changeDetectorRef=e;f.role="menuitem";f._hovered=new U.Subject;f._focused=new U.Subject;f._highlighted=!1;f._triggersSubmenu=!1;var h;null==d||null==(h=d.addItem)||h.call(d,f);return f};V($E,Qwb);g=$E.prototype;g.focus=function(a,b){this._focusMonitor&&a?Iz(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._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};$E.\u0275fac=function(a){return new (a||$E)(C(wd),C(hi),C(Hz),C(Pwb,8),C(nx))};
$E.\u0275cmp=w({type:$E,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(a,b){a&1&&J("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(oe("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled.toString())("disabled",b.disabled||null),te("mat-menu-item",!0)("mat-menu-item-highlighted",b._highlighted)("mat-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{disabled:"disabled",
disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ie],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&&(Ee(),Fe(0),H(1,"div",0),O(2,bma,2,0,"svg",1));a&2&&(B(1),
D("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(1),D("ngIf",b._triggersSubmenu))},dependencies:[ux,kB],encapsulation:2,changeDetection:0});
var Rwb=new sd("mat-menu-default-options",{providedIn:"root",factory:dma}),Swb=0,aF=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 Kf;this._tabSubscription=U.Subscription.EMPTY;this._classList={};this._panelAnimationState="void";this._animationDone=new U.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 Jw;this.panelId="mat-menu-panel-"+Swb++};g=aF.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=aA($z(Xz(new fA(this._directDescendantItems))));this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(hg(this._directDescendantItems),ig(function(b){return U.merge.apply(null,v(b.map(function(c){return c._focused})))})).subscribe(function(b){return bA(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(){this._directDescendantItems.destroy();this._tabSubscription.unsubscribe();this.closed.complete()};g._hovered=function(){return this._directDescendantItems.changes.pipe(hg(this._directDescendantItems),ig(function(a){return U.merge.apply(null,v(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:fi(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 Twb=function(a,b){b=void 0===b?"program":b;a._ngZone.onStable.pipe(Xf()).subscribe(function(){var c=null;a._directDescendantItems.length&&(c=a._directDescendantItems.first._getHostElement().closest('[role="menu"]'));if(!c||!c.contains(document.activeElement)){var d=a._keyManager;d._origin=b;cA(d);!d.activeItem&&c&&c.focus()}})};g=aF.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(hg(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));Ff(a._directDescendantItems)})};
ji.Object.defineProperties(aF.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=bh(a)}},hasBackdrop:{configurable:!0,enumerable:!0,
get:function(){return this._hasBackdrop},set:function(a){this._hasBackdrop=bh(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}}});
aF.\u0275fac=function(a){return new (a||aF)(C(wd),C(qg),C(Rwb),C(nx))};
aF.\u0275dir=w({type:aF,contentQueries:function(a,b,c){a&1&&(If(c,Owb,5),If(c,$E,5),If(c,$E,4));if(a&2){var d;Gf(d=Jf())&&(b.lazyContent=d.first);Gf(d=Jf())&&(b._allItems=d);Gf(d=Jf())&&(b.items=d)}},viewQuery:function(a,b){a&1&&Hf(Df,5);if(a&2){var c;Gf(c=Jf())&&(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 bF=function(a,b,c,d){aF.call(this,a,b,c,d);this._elevationPrefix="mat-elevation-z";this._baseElevation=4};V(bF,aF);bF.\u0275dir=aF.\u0275dir;bF.\u0275fac=function(a){return new (a||bF)(C(wd),C(qg),C(Rwb),C(nx))};
bF.\u0275cmp=w({type:bF,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(a){a&2&&oe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Me([{provide:Pwb,useExisting:bF}]),ie],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&&(Ee(),O(0,cma,3,6,"ng-template"))},dependencies:[xx],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:transparent;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:[Mwb,Nwb]},changeDetection:0});
var Uwb=new sd("mat-menu-scroll-strategy"),Vwb={provide:Uwb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},Wwb=Vg({passive:!0}),dF=function(a,b,c,d,e,f,h,k,q){var u=this;this._overlay=a;this._element=b;this._viewContainerRef=c;this._menuItemInstance=f;this._dir=h;this._focusMonitor=k;this._ngZone=q;this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._hoverSubscription=this._closingActionsSubscription=U.Subscription.EMPTY;this._handleTouchStart=
function(x){ei(x)||(u._openedBy="touch")};this._openedBy=void 0;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new Jw;this.onMenuClose=this.menuClosed=new Jw;this._scrollStrategy=d;this._parentMaterialMenu=e instanceof aF?e:void 0;b.nativeElement.addEventListener("touchstart",this._handleTouchStart,Wwb);f&&(f._triggersSubmenu=cF(this))};dF.prototype.ngAfterContentInit=function(){this._handleHover()};
dF.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Wwb);this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._hoverSubscription.unsubscribe()};
var cF=function(a){return!(!a._menuItemInstance||!a._parentMaterialMenu)},xi=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?!cF(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 aF&&(b._startAnimation(),b._directDescendantItems.changes.pipe(jg(b.close)).subscribe(function(){mqb(GA(e,
!1));GA(e,!0)}))}};g=dF.prototype;g.closeMenu=function(){var a;null==(a=this.menu)||a.close.emit()};g.focus=function(a,b){this._focusMonitor&&a?Iz(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&&cF(this)||this.focus(this._openedBy);this._openedBy=void 0;if(c instanceof aF)c._resetAnimation(),c.lazyContent?c._animationDone.pipe(xf(function(e){return"void"===e.toState}),Xf(),jg(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=cF(this)?this._parentMaterialMenu:void 0;a.direction=this.dir;this._setMenuElevation(a);Twb(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();cF(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 zA({positionStrategy:pqb(oqb(GA(KA(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=r("before"===a.xPosition?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=r("above"===a.yPosition?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=r([f,e]),k=h.next().value;h=h.next().value;var q=r([d,c]),u=q.next().value;q=q.next().value;var x=0;cF(this)?(q=d="before"===a.xPosition?"start":"end",c=u="end"===d?"start":"end",this._parentMaterialMenu&&(null==this._parentInnerPadding&&(this._parentInnerPadding=(a=this._parentMaterialMenu.items.first)?
a._getHostElement().offsetTop:0),x="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k="top"===f?"bottom":"top",h="top"===e?"bottom":"top");CA(b,[{originX:d,originY:k,overlayX:u,overlayY:f,offsetY:x},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:x},{originX:d,originY:h,overlayX:u,overlayY:e,offsetY:-x},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-x}])};
g._menuClosingActions=function(){var a=this,b=this._overlayRef.backdropClick(),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(xf(function(f){return f!==a._menuItemInstance}),xf(function(){return a._menuOpen})):(0,U.of)();return(0,U.merge)(b,d,e,c)};g._handleMousedown=function(a){di(a)||(this._openedBy=0===a.button?"mouse":void 0,cF(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(13===a||32===a)this._openedBy="keyboard";cF(this)&&(39===a&&"ltr"===this.dir||37===a&&"rtl"===this.dir)&&(this._openedBy="keyboard",xi(this))};g._handleClick=function(a){cF(this)?(a.stopPropagation(),xi(this)):this._menuOpen?this.closeMenu():xi(this)};
g._handleHover=function(){var a=this;cF(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(xf(function(b){return b===a._menuItemInstance&&!b.disabled}),Vf(0,U.asapScheduler)).subscribe(function(){a._openedBy="mouse";a.menu instanceof aF&&a.menu._isAnimating?a.menu._animationDone.pipe(Xf(),Vf(0,U.asapScheduler),jg(a._parentMaterialMenu._hovered())).subscribe(function(){return xi(a)}):xi(a)}))};
g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new NA(a.templateRef,this._viewContainerRef));return this._portal};
ji.Object.defineProperties(dF.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;a!==this._menu&&(this._menu=a,this._menuCloseSubscription.unsubscribe(),a&&(this._menuCloseSubscription=a.close.subscribe(function(c){b._destroyMenu(c);"click"!==c&&"tab"!==c||!b._parentMaterialMenu||b._parentMaterialMenu.closed.emit(c)})))}},
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"}}});dF.\u0275fac=function(a){return new (a||dF)(C(TA),C(wd),C(Ef),C(Uwb),C(Pwb,8),C($E,10),C(gA,8),C(Hz),C(qg))};
dF.\u0275dir=w({type:dF,hostVars:3,hostBindings:function(a,b){a&1&&J("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&oe("aria-haspopup",b.menu?"menu":null)("aria-expanded",b.menuOpen||null)("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 eF=function(){dF.apply(this,arguments)};V(eF,dF);eF.\u0275fac=function(){var a;return function(b){return(a||(a=md(eF)))(b||eF)}}();eF.\u0275dir=w({type:eF,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ie]});
var fF=function(){};fF.\u0275fac=function(a){return new (a||fF)};fF.\u0275mod=Cc({type:fF});fF.\u0275inj=mc({providers:[Vwb],imports:[Mx,XA,oB,WA,wA,XA]});
var Xwb=new Set,gF,hF=function(a){this._platform=a;this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ema};hF.prototype.matchMedia=function(a){if((this._platform.WEBKIT||this._platform.BLINK)&&!Xwb.has(a))try{gF||(gF=document.createElement("style"),gF.setAttribute("type","text/css"),document.head.appendChild(gF)),gF.sheet&&(gF.sheet.insertRule("@media "+a+" {body{ }}",0),Xwb.add(a))}catch(b){console.error(b)}return this._matchMedia(a)};
hF.\u0275fac=function(a){return new (a||hF)(t(yy))};hF.\u0275prov=lc({token:hF,factory:hF.\u0275fac,providedIn:"root"});
var iF=function(a,b){this._mediaMatcher=a;this._zone=b;this._queries=new Map;this._destroySubject=new U.Subject};iF.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
iF.prototype.observe=function(a){var b=this;a=fma(ah(a)).map(function(c){return b._registerQuery(c).observable});a=(0,U.combineLatest)(a);a=(0,U.concat)(a.pipe(Xf()),a.pipe(gg(1),Tf(0)));return a.pipe(S(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}))};
iF.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 U.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(hg(c),S(function(e){return{query:a,matches:e.matches}}),jg(this._destroySubject)),mql:c};this._queries.set(a,d);return d};iF.\u0275fac=function(a){return new (a||iF)(t(hF),t(qg))};
iF.\u0275prov=lc({token:iF,factory:iF.\u0275fac,providedIn:"root"});
/*

 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 Ywb=["tooltip"],Zwb=Vg({passive:!0}),$wb=new sd("mat-tooltip-scroll-strategy"),axb={provide:$wb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},bxb=new sd("mat-tooltip-default-options",{providedIn:"root",factory:gma}),jF=function(a,b,c,d,e,f,h,k,q,u,x,E){var I=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=
u;this._defaultOptions=x;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=!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 U.Subject;this._scrollStrategy=q;this._document=E;x&&(x.position&&(this.position=x.position),x.touchGestures&&(this.touchGestures=x.touchGestures));
u.change.pipe(jg(this._destroyed)).subscribe(function(){I._overlayRef&&I._updatePosition(I._overlayRef)})};g=jF.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(jg(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=r(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,Zwb)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();Zpb(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a){var b=this;a=void 0===a?this.showDelay:a;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach();this._portal=this._portal||new MA(this._tooltipComponent,this._viewContainerRef);c=this._tooltipInstance=c.attach(this._portal).instance;c._triggerElement=this._elementRef.nativeElement;c._mouseLeaveHideDelay=this._hideDelay;c._onHide.pipe(jg(this._destroyed)).subscribe(function(){return b._detach()});
this._setTooltipClass(this._tooltipClass);this._updateTooltipMessage();c.show(a)}};g.hide=function(a){a=void 0===a?this.hideDelay:a;this._tooltipInstance&&this._tooltipInstance.hide(a)};g.toggle=function(){this._isTooltipVisible()?this.hide():this.show()};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(){var a=this;if(this._overlayRef)return this._overlayRef;var b=fqb(this._scrollDispatcher,this._elementRef);b=nqb(DA(EA(pqb(KA(this._overlay.position(),this._elementRef),".mat-tooltip"),!1),this._viewportMargin),b);b.positionChanges.pipe(jg(this._destroyed)).subscribe(function(d){a._updateCurrentPositionClass(d.connectionPair);a._tooltipInstance&&d.scrollableViewProperties.isOverlayClipped&&a._tooltipInstance.isVisible()&&a._ngZone.run(function(){return a.hide(0)})});this._overlayRef=
this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(jg(this._destroyed)).subscribe(function(){return a._detach()});this._overlayRef.outsidePointerEvents().pipe(jg(this._destroyed)).subscribe(function(){var d;return null==(d=a._tooltipInstance)?void 0:d._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(jg(this._destroyed)).subscribe(function(d){a._isTooltipVisible()&&
27===d.keyCode&&!fi(d)&&(d.preventDefault(),d.stopPropagation(),a._ngZone.run(function(){return a.hide(0)}))});var c;(null==(c=this._defaultOptions)?0:c.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();CA(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(Xf(),jg(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(){a._setupPointerExitEventsIfNeeded();a.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show()},
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,v(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=r(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,Zwb)})};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"}};
ji.Object.defineProperties(jF.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()}}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=bh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,
enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=eh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=eh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,get:function(){return this._message},set:function(a){var b=this;Zpb(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(){Ypb(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)}}});
jF.\u0275fac=function(){Ad()};jF.\u0275dir=w({type:jF,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var lF=function(a,b,c,d,e,f,h,k,q,u,x,E){jF.call(this,a,b,c,d,e,f,h,k,q,u,x,E);this._tooltipComponent=kF};V(lF,jF);
lF.\u0275fac=function(a){return new (a||lF)(C(TA),C(wd),C(rA),C(Ef),C(qg),C(yy),C(Rz),C(Hz),C($wb),C(gA,8),C(bxb,8),C(hi))};lF.\u0275dir=w({type:lF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ie]});var mF=function(a,b){this._changeDetectorRef=a;this._visibility="initial";this._isVisible=this._closeOnInteraction=!1;this._onHide=new U.Subject;this._animationsDisabled="NoopAnimations"===b};g=mF.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(){clearTimeout(this._showTimeoutId);clearTimeout(this._hideTimeoutId);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.hide(this._mouseLeaveHideDelay)};g._onShow=function(){};
g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};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))};
mF.\u0275fac=function(a){return new (a||mF)(C(nx),C(Xv,8))};mF.\u0275dir=w({type:mF});var kF=function(a,b,c){mF.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"};V(kF,mF);kF.\u0275dir=mF.\u0275dir;kF.\u0275fac=function(a){return new (a||kF)(C(nx),C(iF),C(Xv,8))};
kF.\u0275cmp=w({type:kF,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&Hf(Ywb,7);if(a&2){var c;Gf(c=Jf())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(a,b){a&1&&J("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&se("zoom",b.isVisible()?1:null)},features:[ie],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("animationend",function(d){return b._handleAnimationEnd(d)}),
Q(2,"async"),P(3),G());if(a&2){var c;te("mat-tooltip-handset",null==(c=R(2,4,b._isHandset))?null:c.matches);D("ngClass",b.tooltipClass);B(3);Ke(b.message)}},dependencies:[xx,Fx],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],
encapsulation:2,changeDetection:0});
var cxb=["widgetMenuTrigger"],dxb=["snoozeMenuTrigger"],exb=new Map([[0,{svgIcon:"g3c-widget-add",styleClass:"blue"}],[1,{svgIcon:"g3c-widget-pin-outlined",styleClass:"blue"}],[2,{svgIcon:"g3c-widget-schedule-outlined",styleClass:"orange"}],[3,{svgIcon:"g3c-widget-archive-outlined",styleClass:"red"}],[5,{svgIcon:"g3c-widget-notifications-off-outlined",styleClass:"purple"}]]),nF=function(a){this.dialog=a;this.destroyed$=new U.Subject;this.TaskStatus=Urb;this.G3cWidgetFeatureTooltips=Wrb;this.G3cWidgetUserActionType=
Vrb;this.snoozeUntilMsInternal=0;this.shouldShowAddToG3cButton=!1;this.pinnedTasksCount=0;this.menuXPosition="before";this.featureHighlightingEnabled=this.skipTasksActions=!1;this.customWidgetClass="";this.updateTaskStatus=new Jw;this.addTaskByUrl=new Jw;this.widgetMenuOpen=new Jw;this.openInG3cClicked=new Jw;this.featureTooltipActioned=new Jw};nF.prototype.ngOnDestroy=function(){this.destroyed$.complete()};nF.prototype.stopPropagation=function(a){a.stopPropagation()};
var wi=function(a,b,c){a.updateTaskStatus.emit({taskStatus:b,snoozeUntilMs:void 0===c?0:c})};nF.prototype.emitWidgetMenuOpen=function(){this.widgetMenuOpen.emit()};nF.prototype.emitOpenInG3cClicked=function(){this.openInG3cClicked.emit()};
var yi=function(a,b){if(isNaN(b.getTime()))throw Error("Tb");wi(a,2,b.getTime())},fxb=function(a){try{a.snoozeMenuTrigger.closeMenu();var b=new sC,c=new sC;c.add(new io("d",1));var d=Hla(a.dialog,{minDate:b,initialDate:c,initialTime:"08:00"});DB(d).pipe($f(),jg(a.destroyed$)).subscribe(function(e){e&&wi(a,2,e)});d.keydownEvents().pipe(jg(a.destroyed$)).subscribe(function(e){e.stopPropagation()})}catch(e){}},oF=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
ji.Object.defineProperties(nF.prototype,{task:{configurable:!0,enumerable:!0,set:function(a){a?(this.taskStatusInternal=a.taskStatus,this.shouldShowAddToG3cButton=0===a.taskStatus,this.snoozeUntilMsInternal=a.snoozeUntilMs):this.taskStatusInternal=void 0}},tooltipDescription:{configurable:!0,enumerable:!0,get:function(){try{return 2===this.taskStatusInternal?0===this.snoozeUntilMsInternal?"":(2592E6<=this.snoozeUntilMsInternal-Date.now()?"Unsnooze on":"Unsnooze")+" "+Jla(this.snoozeUntilMsInternal,
this.now.getTime()):this.pinnedTasksCount+" pinned tasks"}catch(a){return""}}},subscriptIconStyleClass:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return exb.get(this.taskStatusInternal).styleClass}catch(a){return""}}},subscriptIcon:{configurable:!0,enumerable:!0,get:function(){if(!this.taskStatusInternal)return"";try{return exb.get(this.taskStatusInternal).svgIcon}catch(a){return""}}},now:{configurable:!0,enumerable:!0,get:function(){return new sC}},laterToday:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;12<=a.getHours()?a.add(new io("h",3)):oF(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new io("d",1));oF(a,8);return a}},laterThisWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;if(3<a.getDay())return this.nextWeek;a.add(new io("d",2));oF(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);oF(a,8);return a}},aMonthFromNow:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new io("d",30));oF(a,8);return a}}});nF.\u0275fac=function(a){return new (a||nF)(C(PB))};
nF.\u0275cmp=w({type:nF,selectors:[["g3c-widget"]],viewQuery:function(a,b){a&1&&(Hf(cxb,5,eF),Hf(dxb,5,eF));if(a&2){var c;Gf(c=Jf())&&(b.widgetMenuTrigger=c.first);Gf(c=Jf())&&(b.snoozeMenuTrigger=c.first)}},inputs:{pinnedTasksCount:"pinnedTasksCount",task:"task",menuXPosition:"menuXPosition",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{updateTaskStatus:"updateTaskStatus",addTaskByUrl:"addTaskByUrl",widgetMenuOpen:"widgetMenuOpen",
openInG3cClicked:"openInG3cClicked",featureTooltipActioned:"featureTooltipActioned"},decls:49,vars:33,consts:[["mat-button","","color","primary",1,"widget-menu-trigger",3,"ngClass","matMenuTriggerFor","matTooltip","onedevFeatureTooltip","onedevTooltipDismisser","click"],["widgetMenuTrigger",""],["class","logo","svgIcon","g3c-console-logo-outlined",4,"ngIf"],[4,"ngIf"],[1,"logo-title"],["svgIcon","g3c-widget-arrow-drop-down",1,"g3c-widget-arrow-drop-down"],["mat-button","","aria-hidden","true",1,"invisible-trigger",
3,"matMenuTriggerFor"],["snoozeMenuTrigger",""],[1,"widget-menu",3,"xPosition"],["widgetMenu","matMenu"],["mat-menu-item","","href","https://g3c.corp.google.com/","target","_blank",1,"g3c-link",3,"click"],["svgIcon","g3c-widget-open-in-new",1,"open-g3c-in-new"],[1,"snooze-menu",3,"xPosition"],["snoozeMenu","matMenu"],["mat-menu-item","",1,"snooze-title",3,"disableRipple","click"],[1,"snooze-list"],["mat-menu-item","",3,"click"],[1,"snooze-date"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"snooze-bottom"],
["mat-menu-item","",1,"datetime-picker-button",3,"click"],["svgIcon","g3c-widget-schedule",1,"schedule-icon"],["svgIcon","g3c-console-logo-outlined",1,"logo"],[1,"subscript-badge"],[1,"subscript-icon",3,"ngClass","svgIcon"],["mat-menu-item","","class","snooze-until-indicator",3,"disableRipple","click",4,"ngIf"],[1,"action-button-list"],["class","action-button add-to-inbox-button","mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",3,"click",4,"ngIf"],["mat-menu-item","",1,"action-button",
"pin-button",3,"matTooltip","click"],["svgIcon","g3c-widget-keep",4,"ngIf"],["class","blue","svgIcon","g3c-widget-keep-off",4,"ngIf"],["mat-menu-item","",1,"action-button","snooze-button",3,"matTooltip","click"],["svgIcon","g3c-widget-schedule"],["mat-menu-item","",1,"action-button","archive-button",3,"matTooltip","click"],["svgIcon","g3c-widget-archive",4,"ngIf"],["class","red","svgIcon","g3c-widget-unarchive",4,"ngIf"],["mat-menu-item","",1,"action-button","mute-button",3,"matTooltip","click"],
["svgIcon","g3c-widget-notifications",4,"ngIf"],["class","purple","svgIcon","g3c-widget-notifications-off",4,"ngIf"],["mat-menu-item","",1,"snooze-until-indicator",3,"disableRipple","click"],["mat-menu-item","","matTooltip","Add to inbox","aria-label","Add to inbox",1,"action-button","add-to-inbox-button",3,"click"],["svgIcon","g3c-widget-add"],["svgIcon","g3c-widget-keep"],["svgIcon","g3c-widget-keep-off",1,"blue"],["svgIcon","g3c-widget-archive"],["svgIcon","g3c-widget-unarchive",1,"red"],["svgIcon",
"g3c-widget-notifications"],["svgIcon","g3c-widget-notifications-off",1,"purple"],["svgIcon","g3c-widget-highlight-off"],[3,"tooltipId","beforeShown","dismiss",4,"ngIf"],[3,"tooltipId","beforeShown","dismiss"],["onedevTooltipTitle",""]],template:function(a,b){a&1&&(F(0,"button",0,1),J("click",function(){return b.emitWidgetMenuOpen()}),O(2,hma,1,0,"mat-icon",2),O(3,ima,4,1,"ng-container",3),O(4,jma,3,2,"ng-container",3),F(5,"span",4),P(6,"G3C"),G(),H(7,"mat-icon",5),G(),H(8,"button",6,7),F(10,"mat-menu",
8,9),O(12,sma,15,18,"ng-container",3),F(13,"a",10),J("click",function(){return b.emitOpenInG3cClicked()}),P(14," Open G3 Console "),H(15,"mat-icon",11),G()(),F(16,"mat-menu",12,13)(18,"span",14),J("click",function(e){return b.stopPropagation(e)}),P(19," Snooze until... "),G(),F(20,"div",15)(21,"button",16),J("click",function(){yi(b,b.laterToday)}),P(22," Later today "),F(23,"span",17),P(24),Q(25,"date"),G()(),F(26,"button",16),J("click",function(){yi(b,b.tomorrow)}),P(27," Tomorrow "),F(28,"span",
17),P(29),Q(30,"date"),G()(),O(31,tma,5,4,"button",18),F(32,"button",16),J("click",function(){yi(b,b.nextWeek)}),P(33," Next week "),F(34,"span",17),P(35),Q(36,"date"),G()(),F(37,"button",16),J("click",function(){yi(b,b.aMonthFromNow)}),P(38," A month from now "),F(39,"span",17),P(40),Q(41,"date"),G()()(),F(42,"div",19),O(43,uma,3,0,"button",18),F(44,"button",20),J("click",function(){return fxb(b)}),H(45,"mat-icon",21),F(46,"span"),P(47,"Pick date & time"),G()()()(),O(48,xma,3,2,"onedev-feature-tooltip-controller",
3));if(a&2){var c=M(11),d=M(17);D("ngClass",b.customWidgetClass)("matMenuTriggerFor",c)("matTooltip",b.tooltipDescription)("onedevFeatureTooltip",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS)("onedevTooltipDismisser",b.skipTasksActions?b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITHOUT_TASK_ACTIONS:b.G3cWidgetFeatureTooltips.G3C_WIDGET_WITH_TASK_ACTIONS);oe("aria-label",b.pinnedTasksCount+" pinned tasks");B(2);D("ngIf",
!b.skipTasksActions&&void 0===b.taskStatusInternal);B(1);D("ngIf",b.skipTasksActions||b.taskStatusInternal===b.TaskStatus.INCOMING||b.taskStatusInternal===b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(1);D("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal&&b.taskStatusInternal!==b.TaskStatus.INCOMING&&b.taskStatusInternal!==b.TaskStatus.TASK_STATUS_UNSPECIFIED);B(4);D("matMenuTriggerFor",d);B(2);D("xPosition",b.menuXPosition);B(2);D("ngIf",!b.skipTasksActions&&void 0!==b.taskStatusInternal);B(4);
D("xPosition",b.menuXPosition);B(2);D("disableRipple",!0);B(6);Ke(Se(25,21,b.laterToday,"EEE, MMM d, h:mm a"));B(5);Ke(Se(30,24,b.tomorrow,"EEE, MMM d, h:mm a"));B(2);D("ngIf",b.laterThisWeek.getTime()!==b.nextWeek.getTime());B(4);Ke(Se(36,27,b.nextWeek,"EEE, MMM d, h:mm a"));B(5);Ke(Se(41,30,b.aMonthFromNow,"EEE, MMM d, h:mm a"));B(3);D("ngIf",b.taskStatusInternal===b.TaskStatus.SNOOZED);B(5);D("ngIf",b.featureHighlightingEnabled)}},dependencies:[xx,ux,FC,AE,DE,EE,FE,rB,XE,bF,$E,eF,lF,Ix],styles:["[_nghost-%COMP%]{position:relative}  .snooze-menu.mat-menu-panel{max-width:295px;width:295px}.widget-menu-trigger[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo[_ngcontent-%COMP%]{position:relative}.logo[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0}.logo-title[_ngcontent-%COMP%]{margin-left:5px}.subscript-badge[_ngcontent-%COMP%], .subscript-icon[_ngcontent-%COMP%]{bottom:-35%;position:absolute;right:-35%}.subscript-badge[_ngcontent-%COMP%]{background-color:#dadce0;border-radius:50%;color:#202124;font-size:12px;z-index:1}.action-button-list[_ngcontent-%COMP%]{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-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.action-button[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 48px;-moz-box-flex:1;-ms-flex:1 1 48px;flex:1 1 48px;height:48px;max-width:48px;min-width:48px;padding:0;text-align:center}.action-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:0}.g3c-link[_ngcontent-%COMP%]{text-align:center}.invisible-trigger[_ngcontent-%COMP%]{bottom:0;left:0;position:absolute;visibility:hidden}.blue[_ngcontent-%COMP%]{color:#1a73e8}.orange[_ngcontent-%COMP%]{color:#e8710a}.red[_ngcontent-%COMP%]{color:#d93025}.purple[_ngcontent-%COMP%]{color:#9334e6}.snooze-title[_ngcontent-%COMP%], .snooze-until-indicator[_ngcontent-%COMP%]{color:#5f6368;cursor:default;display:block;font-weight:500}.snooze-list[_ngcontent-%COMP%]{border-bottom:1px solid #dadce0}.snooze-date[_ngcontent-%COMP%]{color:#5f6368;float:right;font-weight:500}.datetime-picker-button[_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}.datetime-picker-button[_ngcontent-%COMP%]   .schedule-icon[_ngcontent-%COMP%]{margin-right:8px}"],
changeDetection:0});
var pF=function(){};pF.\u0275fac=function(a){return new (a||pF)};pF.\u0275mod=Cc({type:pF});pF.\u0275inj=mc({imports:[XA,XA]});
var gxb=Et(["https://ssl.gstatic.com/devopsconsole/images/tasks/g3c_logo_outlined.svg"]),hxb=Et(["https://www.gstatic.com/images/icons/material/system_gm/svg/","_24px.svg"]),ixb=Et(["https://www.gstatic.com/images/icons/material/system/svg/","_24px.svg"]),jxb=Et(["https://ssl.gstatic.com/devopsconsole/images/tasks/",".svg"]),kxb="add arrow_drop_down highlight_off keep keep_off notifications_off open_in_new schedule".split(" "),lxb=["archive","notifications","unarchive"],mxb=["archive_outlined","pin_outlined",
"notifications_off_outlined","schedule_outlined"],qF=function(a){this.iconRegistry=a;this.isMatIconRegistered=!1};qF.\u0275fac=function(a){return new (a||qF)(t(WE))};qF.\u0275prov=lc({token:qF,factory:qF.\u0275fac,providedIn:"root"});
var nxb=new sd("g3cWidgetTaskManagementServicePromiseClient"),oxb=new sd("g3cWidgetUserPrefsServicePromiseClient"),rF=new sd("g3cWidgetServiceConfig");
var sF=function(a){Z.call(this,a)};V(sF,Z);sF.prototype.getDueDate=function(){return Al(this,Uk,1,pxb)};var pxb=[1,2];sF.prototype.toObject=function(){return qxb(void 0,this)};var qxb=function(a,b){if(null!=b){var c={dueDate:zv(a,b.getDueDate()),dueTimeMs:n(Hr(b,2,pxb)),dueType:X(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var tF=function(a){Z.call(this,a)};V(tF,Z);tF.prototype.getTaskStatus=function(){return X(this,1,0)};tF.prototype.setTaskStatus=function(a){return ul(this,1,a)};tF.prototype.toObject=function(){return rxb(void 0,this)};var rxb=function(a,b){if(null!=b){var c={taskStatus:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var sxb=function(a){Z.call(this,a)};V(sxb,Z);g=sxb.prototype;g.getId=function(){return fj(this,1)};g.setId=function(a){return Vk(this,1,a)};g.getLabel=function(){return W(this,2)};g.setLabel=function(a){return xl(this,2,a)};g.toObject=function(){return txb(void 0,this)};var txb=function(a,b){if(null!=b){var c={id:fj(b,1),label:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var uxb=function(a){Z.call(this,a)};V(uxb,Z);g=uxb.prototype;g.getId=function(){return fj(this,2)};g.setId=function(a){return Vk(this,2,a)};g.getLabel=function(){return W(this,3)};g.setLabel=function(a){return xl(this,3,a)};g.toObject=function(){return vxb(void 0,this)};var vxb=function(a,b){if(null!=b){var c={deprecated:bj(b,1),id:fj(b,2),label:W(b,3),helpText:W(b,4)};a&&(c.$jspbMessageInstance=b);return c}};
var wxb=function(a){Z.call(this,a)};V(wxb,Z);g=wxb.prototype;g.getId=function(){return lj(this,1)};g.setId=function(a){qb(this);null!=a&&0!==+a?l(this,1,a):rb(this,1);return this};g.getLabel=function(){return W(this,2)};g.setLabel=function(a){return xl(this,2,a)};g.getTeamId=function(){return fj(this,3)};g.setTeamId=function(a){return Vk(this,3,a)};g.toObject=function(){return xxb(void 0,this)};
var xxb=function(a,b){if(null!=b){var c={id:lj(b,1),label:W(b,2),teamId:fj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var uF=function(a){Z.call(this,a,-1,yxb)};V(uF,Z);g=uF.prototype;g.getId=function(){return fj(this,1)};g.setId=function(a){return Vk(this,1,a)};g.getLabel=function(){return W(this,2)};g.setLabel=function(a){return xl(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return ul(this,3,a)};g.getOwner=function(){return bj(this,9)};g.setOwner=function(a){return fo(this,9,a)};g.getOptionsList=function(){return xb(this,uxb,16)};g.setOptionsList=function(a){return Fb(this,16,a)};
var yxb=[16],zxb=[5,6];uF.prototype.toObject=function(){return Axb(void 0,this)};
var Axb=function(a,b){if(null!=b){var c={id:fj(b,1),label:W(b,2),type:X(b,3,0),helpText:W(b,4),productArea:xxb(a,Al(b,wxb,5,zxb)),approverDefinition:txb(a,Al(b,sxb,6,zxb)),doNotCopy:bj(b,7),pdaRelated:bj(b,8),owner:bj(b,9),mcrRelated:bj(b,10),eventsRelated:bj(b,11),brandingRelated:bj(b,12),securityRelated:bj(b,13),marketingPdaRelated:bj(b,14),alwaysEditable:bj(b,15),onlyConfigurableByAdmins:bj(b,17),isConfigurationAttribute:bj(b,18),emptySetNotValid:bj(b,19),optionsList:Hb(b.getOptionsList(),vxb,
a)};a&&(c.$jspbMessageInstance=b);return c}};
var vF=function(a){Z.call(this,a)};V(vF,Z);vF.prototype.getYear=function(){return fj(this,1)};vF.prototype.setYear=function(a){return Vk(this,1,a)};vF.prototype.toObject=function(){return Bxb(void 0,this)};var Bxb=function(a,b){if(null!=b){var c={year:fj(b,1),number:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Cxb=function(a){Z.call(this,a)};V(Cxb,Z);var Dxb=[1,2,3];Cxb.prototype.toObject=function(){return Exb(void 0,this)};var Exb=function(a,b){if(null!=b){var c={specificDate:zv(a,Al(b,Uk,1,Dxb)),quarter:Bxb(a,Al(b,vF,2,Dxb)),toBeDetermined:n(Mo(b,wb(b,Dxb,3)))};a&&(c.$jspbMessageInstance=b);return c}};
var wF=function(a){Z.call(this,a)};V(wF,Z);wF.prototype.getTypeName=function(){return W(this,1).split("/").pop()};wF.prototype.getValue=function(){if(Array.isArray(p(this,2)))throw Error("T");return xm(this,2)};wF.prototype.setValue=function(a){if(null==a)a=this;else if(Array.isArray(a))a=l(this,2,nb(a));else if("string"===typeof a||a instanceof gb||Na(a))a=ou(this,2,a);else throw Error("U`"+a);return a};wF.prototype.toObject=function(){return Fxb(void 0,this)};
var Fxb=function(a,b){if(null!=b){var c={typeUrl:W(b,1),value:lba(b)};a&&(c.$jspbMessageInstance=b);return c}};
var xF=function(a){Z.call(this,a,-1,Gxb)};V(xF,Z);g=xF.prototype;g.getDescription=function(){return W(this,1)};g.setDescription=function(a){return xl(this,1,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ul(this,3,a)};g.getVersion=function(){return fj(this,5)};g.setVersion=function(a){return Vk(this,5,a)};g.setOwnedByMe=function(a){return fo(this,7,a)};var yF=function(a){Z.call(this,a,-1,Hxb)};V(yF,Z);yF.prototype.getLabel=function(){return W(this,1)};
yF.prototype.setLabel=function(a){return xl(this,1,a)};var zF=function(a){Z.call(this,a)};V(zF,Z);zF.prototype.getValue=function(){return m(this,wF,2)};zF.prototype.setValue=function(a){return Gb(this,2,a)};zF.prototype.hasValue=function(){return mj(this,2)};var Gxb=[4,6];xF.prototype.toObject=function(){return Ixb(void 0,this)};
var Ixb=function(a,b){if(null!=b){var c={description:W(b,1),launchDate:Exb(a,m(b,Cxb,2)),status:X(b,3,0),approversList:Hb(xb(b,yF,4),Jxb,a),version:fj(b,5),attributesList:Hb(xb(b,zF,6),Kxb,a),ownedByMe:bj(b,7),needBitApprovalFromMe:bj(b,8),creatorEmail:W(b,9)};a&&(c.$jspbMessageInstance=b);return c}},Hxb=[3];yF.prototype.toObject=function(){return Jxb(void 0,this)};var Jxb=function(a,b){if(null!=b){var c={label:W(b,1),approvalStatus:X(b,2,0),ownersList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
zF.prototype.toObject=function(){return Kxb(void 0,this)};var Kxb=function(a,b){if(null!=b){var c={definition:Axb(a,m(b,uF,1)),value:Fxb(a,b.getValue())};a&&(c.$jspbMessageInstance=b);return c}};
var AF=function(a){Z.call(this,a)};V(AF,Z);AF.prototype.getAccessLevel=function(){return X(this,1,0)};AF.prototype.setAccessLevel=function(a){ul(this,1,a)};AF.prototype.toObject=function(){return Lxb(void 0,this)};var Lxb=function(a,b){if(null!=b){var c={accessLevel:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var BF=function(a){Z.call(this,a,-1,Mxb)};V(BF,Z);g=BF.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return ul(this,1,a)};g.getPriority=function(){return X(this,2,0)};g.setPriority=function(a){return ul(this,2,a)};g.getSeverity=function(){return X(this,3,0)};g.setSeverity=function(a){return ul(this,3,a)};g.getStatus=function(){return X(this,4,0)};g.setStatus=function(a){return ul(this,4,a)};g.getSloStatus=function(){return m(this,CF,20)};
g.setSloStatus=function(a){Gb(this,20,a)};g.getComponentId=function(){return fj(this,11)};g.setComponentId=function(a){return Vk(this,11,a)};g.getVersion=function(){return fj(this,16)};g.setVersion=function(a){return Vk(this,16,a)};g.getAccessLimit=function(){return m(this,AF,21)};g.setAccessLimit=function(a){return Gb(this,21,a)};g.getCommentsList=function(){return xb(this,DF,10)};var DF=function(a){Z.call(this,a)};V(DF,Z);g=DF.prototype;g.getContent=function(){return W(this,1)};
g.setContent=function(a){xl(this,1,a)};g.getCommentNumber=function(){return fj(this,4)};g.setCommentNumber=function(a){return Vk(this,4,a)};g.getFormattingMode=function(){return X(this,5,0)};g.setFormattingMode=function(a){ul(this,5,a)};var CF=function(a){Z.call(this,a)};V(CF,Z);g=CF.prototype;g.getAssignmentBounds=function(){return m(this,EF,1)};g.setAssignmentBounds=function(a){Gb(this,1,a)};g.hasAssignmentBounds=function(){return mj(this,1)};g.getResponseBounds=function(){return m(this,EF,2)};
g.setResponseBounds=function(a){Gb(this,2,a)};g.hasResponseBounds=function(){return mj(this,2)};g.getClosureBounds=function(){return m(this,EF,3)};g.setClosureBounds=function(a){Gb(this,3,a)};g.hasClosureBounds=function(){return mj(this,3)};var EF=function(a){Z.call(this,a)};V(EF,Z);var Mxb=[7,10];BF.prototype.toObject=function(){return Nxb(void 0,this)};
var Nxb=function(a,b){if(null!=b){var c={type:X(b,1,0),priority:X(b,2,0),severity:X(b,3,0),status:X(b,4,0),sloStatus:Oxb(a,b.getSloStatus()),reporterEmail:W(b,5),assigneeEmail:W(b,6),verifierEmail:W(b,14),ccEmailsList:n(ob(b,7)),isStarred:bj(b,8),lastModifiedByUserEmail:W(b,9),componentId:fj(b,11),canonicalIssueId:fj(b,18),version:fj(b,16),majorModifiedTimestampMs:fj(b,19),reportedByMe:bj(b,12),assignedToMe:bj(b,13),ccIncludesMe:bj(b,17),bugjugglerInCcList:bj(b,15),accessLimit:Lxb(a,b.getAccessLimit()),
commentsList:Hb(b.getCommentsList(),Pxb,a)};a&&(c.$jspbMessageInstance=b);return c}};DF.prototype.toObject=function(){return Pxb(void 0,this)};var Pxb=function(a,b){if(null!=b){var c={content:W(b,1),authorEmail:W(b,2),modifiedTimestamp:fj(b,3),commentNumber:fj(b,4),formattingMode:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};CF.prototype.toObject=function(){return Oxb(void 0,this)};
var Oxb=function(a,b){if(null!=b){var c={assignmentBounds:FF(a,b.getAssignmentBounds()),responseBounds:FF(a,b.getResponseBounds()),closureBounds:FF(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};EF.prototype.toObject=function(){return FF(void 0,this)};var FF=function(a,b){if(null!=b){var c={startTimeMs:fj(b,1),endTimeMs:fj(b,2),targetTimeMs:fj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var GF=function(a){Z.call(this,a,-1,Qxb)};V(GF,Z);g=GF.prototype;g.getDescription=function(){return W(this,1)};g.setDescription=function(a){return xl(this,1,a)};g.getCategory=function(){return X(this,2,0)};g.setCategory=function(a){ul(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ul(this,3,a)};g.getCommentsList=function(){return xb(this,HF,7)};var IF=function(a){Z.call(this,a,-1,Rxb)};V(IF,Z);IF.prototype.getType=function(){return X(this,1,0)};
IF.prototype.setType=function(a){return ul(this,1,a)};IF.prototype.getState=function(){return X(this,5,0)};var HF=function(a){Z.call(this,a,-1,Sxb)};V(HF,Z);HF.prototype.getContent=function(){return W(this,3)};HF.prototype.setContent=function(a){xl(this,3,a)};HF.prototype.getRepliesList=function(){return xb(this,JF,5)};var JF=function(a){Z.call(this,a)};V(JF,Z);JF.prototype.getContent=function(){return W(this,4)};JF.prototype.setContent=function(a){xl(this,4,a)};var Qxb=[5,6,7,11,17,13,14];
GF.prototype.toObject=function(){return Txb(void 0,this)};
var Txb=function(a,b){if(null!=b){var c={description:W(b,1),descriptionUsesMarkdown:bj(b,16),category:X(b,2,0),status:X(b,3,0),isStarred:bj(b,4),approvalStatesList:Hb(xb(b,IF,5),Uxb,a),reviewerEmailsList:n(ob(b,6)),commentsList:Hb(b.getCommentsList(),Vxb,a),externalLinkToCider:W(b,8),needsAttentionFromReviewer:bj(b,9),authorEmail:W(b,10),ccEmailsList:n(ob(b,11)),needsAttention:bj(b,12),attentionSetUsersList:n(ob(b,17)),bugsList:n(ob(b,13)),fixedBugsList:n(ob(b,14)),workspaceName:W(b,15),changeSize:X(b,
18,0)};a&&(c.$jspbMessageInstance=b);return c}},Rxb=[3];IF.prototype.toObject=function(){return Uxb(void 0,this)};var Uxb=function(a,b){if(null!=b){var c={type:X(b,1,0),approverEmailsList:n(ob(b,3)),reasonMessage:W(b,4),state:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}},Sxb=[5];HF.prototype.toObject=function(){return Vxb(void 0,this)};
var Vxb=function(a,b){if(null!=b){var c={publishTimestamp:fj(b,1),authorEmail:W(b,2),content:W(b,3),resolved:bj(b,4),repliesList:Hb(b.getRepliesList(),Wxb,a),externalLink:W(b,6)};a&&(c.$jspbMessageInstance=b);return c}};JF.prototype.toObject=function(){return Wxb(void 0,this)};var Wxb=function(a,b){if(null!=b){var c={publishTimestamp:fj(b,2),authorEmail:W(b,3),content:W(b,4),resolved:bj(b,8)};a&&(c.$jspbMessageInstance=b);return c}};
var KF=function(a){Z.call(this,a,-1,Xxb)};V(KF,Z);KF.prototype.setOwnedByMe=function(a){return fo(this,3,a)};KF.prototype.getMimeType=function(){return W(this,15)};KF.prototype.setMimeType=function(a){xl(this,15,a)};KF.prototype.getCommentsList=function(){return xb(this,LF,6)};var LF=function(a){Z.call(this,a,-1,Yxb)};V(LF,Z);g=LF.prototype;g.getCommentId=function(){return W(this,1)};g.getContent=function(){return W(this,8)};g.setContent=function(a){xl(this,8,a)};
g.getRepliesList=function(){return xb(this,MF,14)};g.getDueDate=function(){return m(this,Uk,18)};var MF=function(a){Z.call(this,a)};V(MF,Z);MF.prototype.getContent=function(){return W(this,3)};MF.prototype.setContent=function(a){xl(this,3,a)};var Xxb=[17,6];KF.prototype.toObject=function(){return Zxb(void 0,this)};
var Zxb=function(a,b){if(null!=b){var c={createdTimestamp:fj(b,1),createdByMe:bj(b,2),ownedByMe:bj(b,3),recentlySharedWithMe:bj(b,8),sharedWithMeTimestamp:fj(b,4),sharedToMe:bj(b,14),sharedToMyGroups:bj(b,18),sharedToMyTeamDrive:bj(b,19),actionItemsChecksum:W(b,5),mimeType:W(b,15),teamDriveId:W(b,16),parentIdsList:n(ob(b,17)),openCommentsCount:fj(b,21),commentsAssignedToMeCount:fj(b,22),commentsMentioningMeCount:fj(b,23),suggestionsCount:fj(b,24),isDocwrapIncoming:bj(b,25),isDocwrapOutgoing:bj(b,
26),commentsList:Hb(b.getCommentsList(),$xb,a),lastCommentedTimestamp:fj(b,7),lastCommentedByGaiaId:fj(b,20),isStarred:bj(b,9),ownerEmail:W(b,10),creatorEmail:W(b,11),lastModifiedByUserEmail:W(b,12),lastCommentedByUserDisplayName:W(b,13)};a&&(c.$jspbMessageInstance=b);return c}},Yxb=[14];LF.prototype.toObject=function(){return $xb(void 0,this)};
var $xb=function(a,b){if(null!=b){var c={commentId:W(b,1),assignedToMe:bj(b,2),mentioningMe:bj(b,3),isSuggestion:bj(b,4),commentStatus:X(b,5,0),authorDisplayName:W(b,6),authorPhotoLink:W(b,7),content:W(b,8),prependQuotedContent:W(b,9),quotedContent:W(b,10),appendQuotedContent:W(b,11),externalLink:W(b,12),modifiedTimestamp:fj(b,13),repliesList:Hb(b.getRepliesList(),ayb,a),isDocwrapComment:bj(b,15),assignedToMeTimestampMs:fj(b,16),mentioningMeTimestampMs:fj(b,17),dueDate:zv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=
b);return c}};MF.prototype.toObject=function(){return ayb(void 0,this)};var ayb=function(a,b){if(null!=b){var c={authorDisplayName:W(b,1),authorPhotoLink:W(b,2),content:W(b,3),externalLink:W(b,4),modifiedTimestamp:fj(b,5),action:X(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};
var cyb=function(a){Z.call(this,a,-1,byb)};V(cyb,Z);var NF=function(a){Z.call(this,a)};V(NF,Z);NF.prototype.getTitle=function(){return W(this,2)};NF.prototype.setTitle=function(a){return xl(this,2,a)};var OF=function(a){Z.call(this,a)};V(OF,Z);OF.prototype.getId=function(){return W(this,1)};OF.prototype.setId=function(a){return xl(this,1,a)};OF.prototype.getTitle=function(){return W(this,2)};OF.prototype.setTitle=function(a){return xl(this,2,a)};var byb=[5],dyb=[9,10];
cyb.prototype.toObject=function(){return eyb(void 0,this)};var eyb=function(a,b){if(null!=b){var c={isCompleted:bj(b,4),details:W(b,1),dueDateTimestamp:fj(b,2),emailLink:W(b,3),subtasksList:Hb(xb(b,NF,5),fyb,a),isNewTask:bj(b,7),taskList:gyb(a,m(b,OF,8)),sourceGroup:Alb(a,Al(b,Av,9,dyb)),sourceDocument:Blb(a,Al(b,Bv,10,dyb))};a&&(c.$jspbMessageInstance=b);return c}};NF.prototype.toObject=function(){return fyb(void 0,this)};
var fyb=function(a,b){if(null!=b){var c={gtaskId:W(b,1),title:W(b,2),isCompleted:bj(b,3),details:W(b,4),dueDateTimestamp:fj(b,5)};a&&(c.$jspbMessageInstance=b);return c}};OF.prototype.toObject=function(){return gyb(void 0,this)};var gyb=function(a,b){if(null!=b){var c={id:W(b,1),title:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var PF=function(a){Z.call(this,a)};V(PF,Z);PF.prototype.getMembership=function(){return Al(this,QF,2,hyb)};var RF=function(a){Z.call(this,a,-1,iyb)};V(RF,Z);RF.prototype.getOriginal=function(){return m(this,SF,2)};RF.prototype.getState=function(){return X(this,6,0)};var TF=function(a){Z.call(this,a)};V(TF,Z);TF.prototype.getState=function(){return X(this,1,0)};var QF=function(a){Z.call(this,a)};V(QF,Z);QF.prototype.getParentId=function(){return fj(this,11)};
QF.prototype.setParentId=function(a){Vk(this,11,a)};var SF=function(a){Z.call(this,a)};V(SF,Z);SF.prototype.getMembership=function(){return Al(this,QF,1,jyb)};var hyb=[1,2];PF.prototype.toObject=function(){return kyb(void 0,this)};var kyb=function(a,b){if(null!=b){var c={proposal:lyb(a,Al(b,RF,1,hyb)),membership:myb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}},iyb=[7];RF.prototype.toObject=function(){return lyb(void 0,this)};
var lyb=function(a,b){if(null!=b){var c={upsert:nyb(a,m(b,SF,1)),original:nyb(a,b.getOriginal()),changeType:X(b,3,0),createTimeMs:fj(b,4),state:X(b,6,0),proposalUpdatesList:Hb(xb(b,TF,7),oyb,a)};a&&(c.$jspbMessageInstance=b);return c}};TF.prototype.toObject=function(){return oyb(void 0,this)};var oyb=function(a,b){if(null!=b){var c={state:X(b,1,0),updaterId:fj(b,2),updaterName:W(b,3),updaterEmail:W(b,4),updateTimeMs:fj(b,5),updateReason:W(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
QF.prototype.toObject=function(){return myb(void 0,this)};var myb=function(a,b){if(null!=b){var c={membershipId:fj(b,1),childId:fj(b,10),childName:W(b,2),childEmail:W(b,3),parentId:fj(b,11),parentName:W(b,4),parentEmail:W(b,5),createTimeMs:fj(b,6),expireTimeMs:fj(b,7),membershipType:X(b,8,0),getEmail:bj(b,9)};a&&(c.$jspbMessageInstance=b);return c}},jyb=[1];SF.prototype.toObject=function(){return nyb(void 0,this)};
var nyb=function(a,b){if(null!=b){var c={membership:myb(a,b.getMembership())};a&&(c.$jspbMessageInstance=b);return c}};
var UF=function(a){Z.call(this,a,-1,pyb)};V(UF,Z);g=UF.prototype;g.getDescription=function(){return W(this,1)};g.setDescription=function(a){return xl(this,1,a)};g.getCategory=function(){return X(this,15,0)};g.setCategory=function(a){ul(this,15,a)};g.setHost=function(a){return xl(this,8,a)};g.getCommentsList=function(){return xb(this,VF,14)};var ryb=function(a){Z.call(this,a,-1,qyb)};V(ryb,Z);var WF=function(a){Z.call(this,a)};V(WF,Z);WF.prototype.getValue=function(){return fj(this,1)};
WF.prototype.setValue=function(a){return Vk(this,1,a)};var VF=function(a){Z.call(this,a)};V(VF,Z);VF.prototype.getCommentId=function(){return W(this,1)};VF.prototype.getMessage=function(){return W(this,2)};var pyb=[3,6,7,17,12,14];UF.prototype.toObject=function(){return syb(void 0,this)};
var syb=function(a,b){if(null!=b){var c={description:W(b,1),category:X(b,15,0),ownerEmail:W(b,2),statusesList:n(ob(b,3)),submittable:bj(b,4),assigneeEmail:W(b,5),reviewerEmailsList:n(ob(b,6)),ccEmailsList:n(ob(b,7)),attentionSetEmailsList:n(ob(b,17)),needsAttention:bj(b,18),host:W(b,8),project:W(b,9),branch:W(b,10),changeSize:X(b,11,0),labelApprovalStatesList:Hb(xb(b,ryb,12),tyb,a),isStarred:bj(b,13),commentsList:Hb(b.getCommentsList(),uyb,a),hostRepoBranchLink:W(b,16)};a&&(c.$jspbMessageInstance=
b);return c}},qyb=[2];ryb.prototype.toObject=function(){return tyb(void 0,this)};var tyb=function(a,b){if(null!=b){var c={labelName:W(b,1),votesList:Hb(xb(b,WF,2),vyb,a),minVoteValue:fj(b,3),maxVoteValue:fj(b,4)};a&&(c.$jspbMessageInstance=b);return c}};WF.prototype.toObject=function(){return vyb(void 0,this)};var vyb=function(a,b){if(null!=b){var c={value:fj(b,1),voterEmail:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};VF.prototype.toObject=function(){return uyb(void 0,this)};
var uyb=function(a,b){if(null!=b){var c={commentId:W(b,1),message:W(b,2),authorEmail:W(b,3),updatedTimeMs:fj(b,4),unresolved:bj(b,5),inReplyTo:W(b,6)};a&&(c.$jspbMessageInstance=b);return c}};
var XF=function(a){Z.call(this,a,-1,wyb)};V(XF,Z);g=XF.prototype;g.getDescription=function(){return W(this,1)};g.setDescription=function(a){return xl(this,1,a)};g.getStatus=function(){return X(this,2,0)};g.setStatus=function(a){return ul(this,2,a)};g.getPriority=function(){return X(this,3,0)};g.setPriority=function(a){return ul(this,3,a)};g.getDueDate=function(){return m(this,Uk,13)};var yyb=function(a){Z.call(this,a,-1,xyb)};V(yyb,Z);var YF=function(a){Z.call(this,a)};V(YF,Z);
YF.prototype.getDescription=function(){return W(this,3)};YF.prototype.setDescription=function(a){return xl(this,3,a)};var wyb=[6];XF.prototype.toObject=function(){return zyb(void 0,this)};
var zyb=function(a,b){if(null!=b){var c={description:W(b,1),status:X(b,2,0),priority:X(b,3,0),assigneeEmail:W(b,4),requesterEmail:W(b,5),ccEmailsList:n(ob(b,6)),ticketType:W(b,7),worklog:Ayb(a,m(b,yyb,8)),requestedByMe:bj(b,9),assignedToMe:bj(b,10),myApprovalNeeded:bj(b,11),ccIncludesMe:bj(b,12),dueDate:zv(a,b.getDueDate())};a&&(c.$jspbMessageInstance=b);return c}},xyb=[1];yyb.prototype.toObject=function(){return Ayb(void 0,this)};
var Ayb=function(a,b){if(null!=b){var c={entriesList:Hb(xb(b,YF,1),Byb,a)};a&&(c.$jspbMessageInstance=b);return c}};YF.prototype.toObject=function(){return Byb(void 0,this)};var Byb=function(a,b){if(null!=b){var c={eventLogTimestamp:Nu(a,m(b,tj,1)),updaterEmail:W(b,2),description:W(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var ZF=function(a){Z.call(this,a,-1,Cyb)};V(ZF,Z);ZF.prototype.getTaskStatus=function(){return X(this,3,0)};ZF.prototype.setTaskStatus=function(a){return ul(this,3,a)};var $F=function(a){Z.call(this,a,-1,Dyb)};V($F,Z);g=$F.prototype;g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ul(this,3,a)};g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return ul(this,4,a)};g.getDescription=function(){return W(this,10)};
g.setDescription=function(a){return xl(this,10,a)};var Cyb=[2],Eyb=[101];ZF.prototype.toObject=function(){return Fyb(void 0,this)};var Fyb=function(a,b){if(null!=b){var c={ownerEmail:W(b,1),attentionSetList:n(ob(b,2)),taskStatus:X(b,3,0),referenceName:W(b,4),needsAttention:bj(b,5),trackable:Gyb(a,Al(b,$F,101,Eyb))};a&&(c.$jspbMessageInstance=b);return c}},Dyb=[7,8,11];$F.prototype.toObject=function(){return Gyb(void 0,this)};
var Gyb=function(a,b){if(null!=b){var c={productName:W(b,1),productLink:W(b,2),status:X(b,3,0),priority:X(b,4,0),resolveDeadline:Nu(a,m(b,tj,5)),creatorEmail:W(b,6),productEmailsList:n(ob(b,7)),privacyEmailsList:n(ob(b,8)),autoCreated:bj(b,9),description:W(b,10),descriptionUsesMarkdown:bj(b,13),participantEmailsList:n(ob(b,11)),bugId:fj(b,12)};a&&(c.$jspbMessageInstance=b);return c}};
var aG=function(a){Z.call(this,a)};V(aG,Z);g=aG.prototype;g.getResourceId=function(){return W(this,17)};g.setResourceId=function(a){xl(this,17,a)};g.getTitle=function(){return W(this,2)};g.setTitle=function(a){return xl(this,2,a)};g.getLastModifiedTimestamp=function(){return fj(this,3)};g.getIconName=function(){return W(this,10)};g.setIsDeleted=function(a){fo(this,19,a)};var bG=[5,6,7,8,9,18,22,23,24];aG.prototype.toObject=function(){return Hyb(void 0,this)};
var Hyb=function(a,b){if(null!=b){var c={resourceId:W(b,17),taskSource:W(b,1),title:W(b,2),lastModifiedTimestamp:fj(b,3),fingerprint:W(b,4),iconName:W(b,10),itemTypeName:W(b,11),statusDescription:W(b,12),latestAction:W(b,13),latestActionTimestamp:fj(b,14),latestActionByUserEmail:W(b,20),hasDetails:bj(b,15),externalLink:W(b,16),isDeleted:bj(b,19),driveResource:Zxb(a,Al(b,KF,5,bG)),buganizerResource:Nxb(a,Al(b,BF,6,bG)),gtasksResource:eyb(a,Al(b,cyb,7,bG)),critiqueResource:Txb(a,Al(b,GF,8,bG)),arianeResource:Ixb(a,
Al(b,xF,9,bG)),gerritResource:syb(a,Al(b,UF,18,bG)),ganpatiResource:kyb(a,Al(b,PF,22,bG)),gutsResource:zyb(a,Al(b,XF,23,bG)),privacyResource:Fyb(a,Al(b,ZF,24,bG))};a&&(c.$jspbMessageInstance=b);return c}};
var Iyb=function(a){Z.call(this,a)};V(Iyb,Z);g=Iyb.prototype;g.getName=function(){return W(this,1)};g.setName=function(a){return xl(this,1,a)};g.getContent=function(){return W(this,2)};g.setContent=function(a){xl(this,2,a)};g.toObject=function(){return Jyb(void 0,this)};var Jyb=function(a,b){if(null!=b){var c={name:W(b,1),content:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var cG=function(a){Z.call(this,a)};V(cG,Z);g=cG.prototype;g.getTaskId=function(){return W(this,1)};g.setTaskId=function(a){return xl(this,1,a)};g.getTaskStatus=function(){return X(this,3,0)};g.setTaskStatus=function(a){return ul(this,3,a)};g.getResource=function(){return m(this,aG,6)};var Kyb=function(a,b){return Vk(a,12,b)};cG.prototype.getNote=function(){return m(this,Iyb,22)};cG.prototype.hasNote=function(){return mj(this,22)};cG.prototype.toObject=function(){return dG(void 0,this)};
var dG=function(a,b){if(null!=b){var c={taskId:W(b,1),gaiaId:fj(b,2),taskStatus:X(b,3,0),naturallyCompleted:bj(b,4),hasNoActionItems:bj(b,24),naturallyCompletedDescription:W(b,11),priorityOrder:Bl(b,5),priorityOrderReservedUpper:Bl(b,9),priorityOrderResetTimestampMs:fj(b,16),currentStatusSince:fj(b,10),currentStatusAutoUpdated:bj(b,17),resource:Hyb(a,b.getResource()),snoozeUntilMs:fj(b,12),autoUnsnoozeOnUpdate:bj(b,18),prevStatusState:rxb(a,m(b,tF,13)),note:Jyb(a,b.getNote()),readTimestampMs:fj(b,
15),createdTimestamp:fj(b,7),updatedTimestamp:fj(b,8),manuallyAdded:bj(b,19),hasNote:bj(b,20),dueInfo:qxb(a,m(b,sF,23)),taskStatusRequiresAck:bj(b,25),taskStatusRequiresAckReason:W(b,26)};a&&(c.$jspbMessageInstance=b);return c}};
var eG=function(a){Z.call(this,a)};V(eG,Z);eG.prototype.getWorkingHours=function(){return bj(this,1)};eG.prototype.toObject=function(){return Lyb(void 0,this)};var Lyb=function(a,b){if(null!=b){var c={workingHours:bj(b,1),workingHoursStart:fj(b,2),workingHoursEnd:fj(b,3)};a&&(c.$jspbMessageInstance=b);return c}};
var fG=function(a){Z.call(this,a)};V(fG,Z);fG.prototype.getAttention=function(){return bj(this,2)};fG.prototype.getWorkingHours=function(){return m(this,eG,8)};fG.prototype.toObject=function(){return Myb(void 0,this)};
var Myb=function(a,b){if(null!=b){var c={failedMail:bj(b,1),attention:bj(b,2),ownerAttention:bj(b,3),ownerRosieAttention:bj(b,4),readyToSubmit:bj(b,5),monitoredUserAttention:bj(b,6),autoDismiss:bj(b,7),workingHours:Lyb(a,b.getWorkingHours()),ignoreArchived:bj(b,9)};a&&(c.$jspbMessageInstance=b);return c}};
var Oyb=function(a){Z.call(this,a,-1,Nyb)};V(Oyb,Z);var Nyb=[1];Oyb.prototype.toObject=function(){return Pyb(this)};var Pyb=function(a){if(null!=a)return{critiquePrefsList:Hb(xb(a,fG,1),Myb)}};
var Qyb=function(a){Z.call(this,a)};V(Qyb,Z);Qyb.prototype.toObject=function(){return Ryb(this)};var Ryb=function(a){if(null!=a)return{autoArchiveInactive:X(a,1,0),launchDateAsDueDate:X(a,2,0)}};
var Syb=function(a){Z.call(this,a)};V(Syb,Z);Syb.prototype.toObject=function(){return Tyb(this)};var Tyb=function(a){if(null!=a)return{autoArchiveClosed:X(a,1,0),sloAsDueDate:X(a,2,0)}};
var Uyb=function(a){Z.call(this,a)};V(Uyb,Z);Uyb.prototype.toObject=function(){return Vyb(this)};var Vyb=function(a){if(null!=a)return{autoArchiveSubmitted:X(a,1,0),dueAfterReceivingDays:fj(a,2),dueDateEnabled:X(a,3,0)}};
var Wyb=function(a){Z.call(this,a)};V(Wyb,Z);Wyb.prototype.toObject=function(){return Xyb(this)};var Xyb=function(a){if(null!=a)return{invitationUserAction:X(a,2,0),autoArchiveSelfOwnedAllResolved:X(a,3,0),autoArchiveOthersOwnedAllResolved:X(a,4,0),dueAfterMentionReceivingDays:fj(a,5),dueAfterAssignmentReceivingDays:fj(a,6),mentionDueDateEnabled:X(a,7,0),assignmentDueDateEnabled:X(a,8,0),dueAfterReceivingDays:fj(a,9),dueDateEnabled:X(a,10,0)}};
var Yyb=function(a){Z.call(this,a)};V(Yyb,Z);Yyb.prototype.toObject=function(){return Zyb(this)};var Zyb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),unsnoozedTasks:X(a,2,0)}};
var azb=function(a){Z.call(this,a,-1,$yb)};V(azb,Z);var $yb=[4];azb.prototype.toObject=function(){return bzb(this)};var bzb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),autoArchiveCompleted:X(a,2,0),completeOnArchiveOrMute:X(a,3,0),gtaskTaskListIdsList:n(ob(a,4))}};
var czb=function(a){Z.call(this,a)};V(czb,Z);czb.prototype.toObject=function(){return dzb(this)};var dzb=function(a){if(null!=a)return{expirationAsDue:X(a,4,0),autoArchiveResolved:X(a,3,0)}};
var fzb=function(a){Z.call(this,a,-1,ezb)};V(fzb,Z);var ezb=[1];fzb.prototype.toObject=function(){return gzb(this)};var gzb=function(a){if(null!=a)return{gerritHostsList:n(ob(a,1)),autoArchiveSubmitted:X(a,2,0),invitationUserAction:X(a,3,0),dueAfterReceivingDays:fj(a,4),dueDateEnabled:X(a,5,0)}};
var hzb=function(a){Z.call(this,a)};V(hzb,Z);hzb.prototype.toObject=function(){return izb(this)};var izb=function(a){if(null!=a)return{invitationUserAction:X(a,1,0),autoArchiveClosed:X(a,2,0),dueDateEnabled:X(a,3,0)}};
var jzb=function(a){Z.call(this,a)};V(jzb,Z);jzb.prototype.toObject=function(){return kzb(void 0,this)};var kzb=function(a,b){if(null!=b){var c={orderingOption:X(b,1,0),pinOverdueTasks:X(b,2,0),pinTasksDueInFiveDays:X(b,3,0)};a&&(c.$jspbMessageInstance=b);return c}};
var lzb=function(a){Z.call(this,a)};V(lzb,Z);lzb.prototype.toObject=function(){return mzb(this)};var mzb=function(a){if(null!=a)return{autoArchiveClosed:X(a,1,0),trackableDueDateEnabled:X(a,2,0)}};
var nzb=function(a){Z.call(this,a)};V(nzb,Z);nzb.prototype.toObject=function(){return ozb(this)};var ozb=function(a){if(null!=a)return{filterEnabled:bj(a,1),arianeLaunches:X(a,2,0),arianeReviews:X(a,3,0)}};
var pzb=function(a){Z.call(this,a)};V(pzb,Z);pzb.prototype.toObject=function(){return qzb(this)};var qzb=function(a){if(null!=a)return{filterEnabled:bj(a,1),assignedToMe:bj(a,2),reportedByMe:bj(a,3),ccIncludesMe:bj(a,6),bugjugglerInCcList:X(a,4,0),other:X(a,5,0)}};
var rzb=function(a){Z.call(this,a)};V(rzb,Z);rzb.prototype.toObject=function(){return szb(this)};var szb=function(a){if(null!=a)return{filterEnabled:bj(a,1),outgoingReviews:bj(a,2),incomingReviews:bj(a,3),ccedReviews:bj(a,4),inAttentionSet:X(a,5,0),inPending:X(a,7,0),other:X(a,6,0)}};
var tzb=function(a){Z.call(this,a)};V(tzb,Z);tzb.prototype.toObject=function(){return uzb(this)};
var uzb=function(a){if(null!=a)return{filterEnabled:bj(a,1),includeDocs:bj(a,2),includeSlides:bj(a,3),includeSheets:bj(a,4),includeOtherTypes:bj(a,5),commentsWithMentions:bj(a,6),commentsWithAssignments:bj(a,7),commentsWithSuggestions:bj(a,8),filterBySharingAge:bj(a,9),maxSharingAgeInDays:fj(a,10),openComments:bj(a,11),sharedToMe:X(a,12,0),sharedToMyGroups:X(a,13,0),sharedToMyTeamDrive:X(a,14,0),other:X(a,15,0),incomingDesignReview:X(a,16,0),outgoingDesignReview:X(a,17,0)}};
var vzb=function(a){Z.call(this,a)};V(vzb,Z);vzb.prototype.toObject=function(){return wzb(this)};var wzb=function(a){if(null!=a)return{filterEnabled:bj(a,1)}};
var xzb=function(a){Z.call(this,a)};V(xzb,Z);xzb.prototype.toObject=function(){return yzb(this)};var yzb=function(a){if(null!=a)return{filterEnabled:X(a,1,0)}};
var zzb=function(a){Z.call(this,a)};V(zzb,Z);zzb.prototype.toObject=function(){return Azb(this)};var Azb=function(a){if(null!=a)return{filterEnabled:bj(a,1),outgoingReviews:X(a,2,0),incomingReviews:X(a,3,0),ccedReviews:X(a,4,0),inAttentionSet:X(a,5,0),other:X(a,6,0)}};
var Bzb=function(a){Z.call(this,a)};V(Bzb,Z);Bzb.prototype.toObject=function(){return Czb(this)};var Czb=function(a){if(null!=a)return{filterEnabled:X(a,1,0)}};
var Dzb=function(a){Z.call(this,a)};V(Dzb,Z);Dzb.prototype.toObject=function(){return Ezb(this)};var Ezb=function(a){if(null!=a)return{filterEnabled:X(a,1,0),inAttentionSet:X(a,2,0),other:X(a,3,0)}};
var gG=function(a){Z.call(this,a)};V(gG,Z);gG.prototype.toObject=function(){return hG(this)};var hG=function(a){if(null!=a)return{critiqueFilter:szb(m(a,rzb,1)),driveFilter:uzb(m(a,tzb,2)),buganizerFilter:qzb(m(a,pzb,3)),arianeFilter:ozb(m(a,nzb,4)),gtasksFilter:wzb(m(a,vzb,5)),gerritFilter:Azb(m(a,zzb,7)),ganpatiFilter:yzb(m(a,xzb,8)),gutsFilter:Czb(m(a,Bzb,10)),privacyFilter:Ezb(m(a,Dzb,11)),taskAgeInDays:fj(a,6),showPrivateNoteOnly:X(a,9,0)}};
var iG=function(a){Z.call(this,a)};V(iG,Z);iG.prototype.toObject=function(){return Fzb(this)};
var Fzb=function(a){if(null!=a){var b=W(a,1),c=Ryb(m(a,Qyb,15)),d=Tyb(m(a,Syb,16)),e=Vyb(m(a,Uyb,17)),f=Xyb(m(a,Wyb,3)),h=dzb(m(a,czb,27)),k=gzb(m(a,fzb,23)),q=bzb(m(a,azb,4)),u=izb(m(a,hzb,29)),x=mzb(m(a,lzb,32)),E=bj(a,5),I=bj(a,6),N=bj(a,7),L=bj(a,8),T=bj(a,24),Y=X(a,28,0),ja=bj(a,22),ha=bj(a,9),ra=bj(a,30),Fa=X(a,31,0),Ka=hG(m(a,gG,10)),Ca=hG(m(a,gG,11)),La=hG(m(a,gG,12)),jb=hG(m(a,gG,13)),db=hG(m(a,gG,14)),Mb=W(a,19),va=fj(a,20),Ba=fj(a,21);var Ga=Zi(a,25,jzb);return{mostRecentWorkspaceId:b,
arianeTaskPrefs:c,buganizerTaskPrefs:d,critiqueTaskPrefs:e,driveTaskPrefs:f,ganpatiTaskPrefs:h,gerritTaskPrefs:k,gtasksTaskPrefs:q,gutsTaskPrefs:u,privacyTaskPrefs:x,arianeEnabled:E,buganizerEnabled:I,critiqueEnabled:N,driveEnabled:L,ganpatiEnabledDeprecated:T,ganpatiEnabled:Y,gerritEnabled:ja,gtasksEnabled:ha,gutsEnabled:ra,privacyEnabled:Fa,pinnedTaskFilter:Ka,inboxFilter:Ca,snoozedTaskFilter:La,completedTaskFilter:jb,dismissedTaskFilter:db,viewedLaunchVersion:Mb,hiringChipDismissedTimestampMs:va,
latestVisitTimestampMs:Ba,taskOrderingPrefsMap:Kb(Ga,void 0,kzb),g3NotificationsPrefs:Zyb(m(a,Yyb,26))}}};
var jG=function(a){Z.call(this,a)};V(jG,Z);var Gzb=[2,6];jG.prototype.toObject=function(){return Hzb(this)};var Hzb=function(a){if(null!=a)return{prefsId:W(a,1),taskManagementPrefs:Fzb(Al(a,iG,2,Gzb)),notificationsPrefs:Pyb(Al(a,Oyb,6,Gzb)),initialized:bj(a,5),createdTimestamp:fj(a,3),updatedTimestamp:fj(a,4)}};
var kG=function(a){Z.call(this,a)};V(kG,Z);g=kG.prototype;g.getTaskId=function(){return W(this,1)};g.setTaskId=function(a){return xl(this,1,a)};g.getClientId=function(){return fj(this,2)};g.setClientId=function(a){return Vk(this,2,a)};g.getWorkspaceId=function(){return W(this,3)};g.toObject=function(){var a=null!=this?{taskId:W(this,1),clientId:fj(this,2),workspaceId:W(this,3)}:void 0;return a};
var lG=function(a){Z.call(this,a,-1,Izb)};V(lG,Z);var Jzb=function(a,b){return ll(a,1,b)},Izb=[1];lG.prototype.toObject=function(){var a=null!=this?{taskIdsList:n(ob(this,1))}:void 0;return a};
var mG=function(a){Z.call(this,a,-1,Kzb)};V(mG,Z);var Lzb=function(){var a=new mG;return ll(a,1,[1])},Kzb=[1];mG.prototype.toObject=function(){var a=null!=this?{taskStatusesList:n(ob(this,1))}:void 0;return a};
var nG=function(a){Z.call(this,a)};V(nG,Z);g=nG.prototype;g.getId=function(){return W(this,1)};g.setId=function(a){return xl(this,1,a)};g.getVersion=function(){return W(this,2)};g.setVersion=function(a){return xl(this,2,a)};g.toObject=function(){return Mzb(void 0,this)};var Mzb=function(a,b){if(null!=b){var c={id:W(b,1),version:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var oG=function(a){Z.call(this,a)};V(oG,Z);g=oG.prototype;g.getTask=function(){return m(this,cG,8)};g.setTask=function(a){return Gb(this,8,a)};g.hasTask=function(){return mj(this,8)};g.setUndoToken=function(a){return xl(this,7,a)};g.getClientId=function(){return fj(this,9)};g.setClientId=function(a){return Vk(this,9,a)};
g.toObject=function(){var a=null!=this?{task:dG(void 0,this.getTask()),belowTaskId:W(this,3),undoToken:W(this,7),clientId:fj(this,9),clientTimeZone:Mzb(void 0,m(this,nG,10))}:void 0;return a};
var pG=function(a){Z.call(this,a)};V(pG,Z);pG.prototype.getName=function(){return W(this,1)};pG.prototype.setName=function(a){return xl(this,1,a)};pG.prototype.toObject=function(){var a=null!=this?{name:W(this,1)}:void 0;return a};
var rG=function(a,b,c){var d=this;this.userPrefsApiPromiseClient=a;this.taskManagementApiPromiseClient=b;this.config=c;this.isActiveG3cUser$=(0,U.defer)(function(){var e=(new pG).setName("keys/2");return(0,U.from)(d.userPrefsApiPromiseClient.getUserPrefs(e,qG(d)))}).pipe(S(function(e){return(e=Al(e.getUserPrefs()||new jG,iG,2,Gzb))?12096E5>=Date.now()-fj(e,21):!1}),fg(1))},Ozb=function(a){var b=Lzb();return(0,U.defer)(function(){var c=U.from;var d=a.taskManagementApiPromiseClient;var e=qG(a);d=sG(d.client_,
d.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",b,e||{},Nzb);return c.call(U,d)}).pipe(S(function(c){return c.getTasksList().length}))};
rG.prototype.getTask=function(a){var b=this,c=Jzb(new lG,[a]);return(0,U.defer)(function(){var d=U.from;var e=b.taskManagementApiPromiseClient;var f=qG(b);e=sG(e.client_,e.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",c,f||{},Pzb);return d.call(U,e)}).pipe(S(function(d){return(d=d.getTasksList())&&0!==d.length?{taskId:a,taskStatus:Qzb(d[0].getTaskStatus()),snoozeUntilMs:Number(fj(d[0],12)||"")}:{taskId:a,taskStatus:0,snoozeUntilMs:0}}))};
rG.prototype.updateTaskStatus=function(a,b,c){var d=this;c=void 0===c?0:c;var e=(new oG).setTask(Kyb((new cG).setTaskStatus(a).setTaskId(b),c||0)).setUndoToken("");return(0,U.defer)(function(){return(0,U.from)(d.taskManagementApiPromiseClient.updateTaskStatus(e,qG(d)))}).pipe(S(function(f){f=f.getTask();return{taskId:f.getTaskId(),taskStatus:Qzb(f.getTaskStatus()),snoozeUntilMs:Number(fj(f,12)||0)}}))};
rG.prototype.addTaskByUrl=function(a){var b=this,c=(new kG).setTaskId(a);return(0,U.defer)(function(){return(0,U.from)(b.taskManagementApiPromiseClient.addTaskByUrl(c,qG(b)))}).pipe(S(function(d){return!W(d,2)}))};
var qG=function(a){return{"X-Goog-Api-Key":a.config?a.config.apikey?a.config.apikey:"nonprod"===a.config.environment?"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA":"AIzaSyBIugcexIJggeGpV_dVry6fkIO6bKH_nHk":"AIzaSyA_nAdTKd1fntCxJ6UHI2Vf7AZ2idvJrrA",Authorization:Ho([])||"","X-Goog-AuthUser":"0"}},Qzb=function(a){switch(a){case 0:case 6:case 2:case 3:case 5:case 1:return a;default:sh(a)}};rG.\u0275fac=function(a){return new (a||rG)(t(oxb),t(nxb),t(rF,8))};
rG.\u0275prov=lc({token:rG,factory:rG.\u0275fac,providedIn:"root"});
var tG=function(a,b){var c=this;this.g3cWidgetService=a;this.g3cWidgetIconRegistry=b;this.destroyed$=new U.Subject;this.taskId$=new U.ReplaySubject;this.forceLoadTaskData$=new U.BehaviorSubject(void 0);this.isActiveG3cUser$=this.g3cWidgetService.isActiveG3cUser$.pipe(Sf(function(){return(0,U.of)(!1)}),xf(function(d){return d}),kg(function(){var d=c.g3cWidgetIconRegistry;if(!d.isMatIconRegistered){var e=xh(gxb);d.iconRegistry._addSvgIconConfig("","g3c-console-logo-outlined",new VE(e));e=r(kxb);for(var f=
e.next();!f.done;f=e.next()){var h=f.value;f="g3c-widget-"+h.replace(/_/g,"-");h=xh(hxb,h);d.iconRegistry._addSvgIconConfig("",f,new VE(h))}e=r(lxb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=xh(ixb,h),d.iconRegistry._addSvgIconConfig("",f,new VE(h));e=r(mxb);for(f=e.next();!f.done;f=e.next())h=f.value,f="g3c-widget-"+h.replace(/_/g,"-"),h=xh(jxb,h),d.iconRegistry._addSvgIconConfig("",f,new VE(h));d.isMatIconRegistered=!0}c.userActionPerformed.emit("loaded")}),
jg(this.destroyed$));this.task$=(0,U.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(ig(function(d){d=r(d).next().value;return c.g3cWidgetService.getTask(d).pipe(Sf(function(){return(0,U.of)(void 0)}))}),jg(this.destroyed$));this.pinnedTasksCount$=(0,U.combineLatest)([this.taskId$,this.forceLoadTaskData$]).pipe(ig(function(){return Ozb(c.g3cWidgetService).pipe(Sf(function(){return(0,U.of)(0)}))}),jg(this.destroyed$));this.taskIdInternal="";this.skipTasksActionsInternal=!1;this.menuXPosition=
"before";this.featureHighlightingEnabled=!1;this.customWidgetClass="";this.userActionPerformed=new Jw};g=tG.prototype;
g.updateTaskStatus=function(a){var b=this;this.g3cWidgetService.updateTaskStatus(a.taskStatus,this.taskIdInternal,a.snoozeUntilMs).pipe(S(function(){return!0}),Sf(function(){return(0,U.of)(!1)}),jg(this.destroyed$)).subscribe(function(c){if(c){c=a.taskStatus;if(0!==c)switch(c){case 1:b.userActionPerformed.emit("taskPinned");break;case 2:b.userActionPerformed.emit("taskSnoozed");break;case 3:b.userActionPerformed.emit("taskArchived");break;case 5:b.userActionPerformed.emit("taskMuted");break;case 6:b.userActionPerformed.emit("taskMovedToInbox");
break;default:sh(c)}b.forceLoadTaskData$.next()}})};g.addTaskByUrl=function(){var a=this;this.g3cWidgetService.addTaskByUrl(this.taskIdInternal).pipe(Sf(function(){return(0,U.of)(!1)}),jg(this.destroyed$)).subscribe(function(b){b&&(a.userActionPerformed.emit("taskAddedToG3c"),a.forceLoadTaskData$.next())})};g.emitWidgetMenuOpen=function(){this.userActionPerformed.emit("menuOpened")};g.emitOpenInG3cClicked=function(){this.userActionPerformed.emit("openInG3cClicked")};
g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};ji.Object.defineProperties(tG.prototype,{taskId:{configurable:!0,enumerable:!0,set:function(a){this.taskIdInternal=a;this.taskId$.next(a)}},skipTasksActions:{configurable:!0,enumerable:!0,set:function(a){if(this.skipTasksActionsInternal=a)this.taskId$.next(""),this.forceLoadTaskData$.next()}}});tG.\u0275fac=function(a){return new (a||tG)(C(rG),C(qF))};
tG.\u0275cmp=w({type:tG,selectors:[["g3c-widget-entry"]],inputs:{menuXPosition:"menuXPosition",taskId:"taskId",skipTasksActions:"skipTasksActions",featureHighlightingEnabled:"featureHighlightingEnabled",customWidgetClass:"customWidgetClass"},outputs:{userActionPerformed:"userActionPerformed"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"task","pinnedTasksCount","menuXPosition","skipTasksActions","featureHighlightingEnabled","customWidgetClass","updateTaskStatus","addTaskByUrl","widgetMenuOpen","openInG3cClicked",
"featureTooltipActioned"]],template:function(a,b){a&1&&(O(0,yma,4,10,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isActiveG3cUser$))},dependencies:[ux,nF,Fx],encapsulation:2});
var uG=function(){};uG.\u0275fac=function(a){return new (a||uG)};uG.\u0275mod=Cc({type:uG});uG.\u0275inj=mc({imports:[oB,XA,XA]});
var vG=function(){};vG.\u0275fac=function(a){return new (a||vG)};vG.\u0275mod=Cc({type:vG});vG.\u0275inj=mc({imports:[Qz,zC,Mx,HC,uG,WA,CC]});
var Rzb=function(a){Z.call(this,a)};V(Rzb,Z);Rzb.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var Szb=function(a,b,c){this.requestMessage_=a;this.methodDescriptor_=b;this.metadata_=c};Szb.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};Szb.prototype.getMetadata=function(){return this.metadata_};
var wG=function(a,b,c){c=void 0===c?{}:c;this.responseMessage_=a;this.metadata_=c;this.methodDescriptor_=b;this.status_=null};wG.prototype.getMetadata=function(){return this.metadata_};wG.prototype.getMethodDescriptor=function(){return this.methodDescriptor_};wG.prototype.getStatus=function(){return this.status_};
var xG=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},Tzb=function(a,b,c){c=void 0===c?{}:c;return new Szb(b,a,c)};xG.prototype.getName=function(){return this.name};
var yG=function(a){Z.call(this,a)};V(yG,Z);yG.prototype.getTask=function(){return m(this,cG,1)};yG.prototype.setTask=function(a){return Gb(this,1,a)};yG.prototype.hasTask=function(){return mj(this,1)};yG.prototype.toObject=function(){var a=null!=this?{task:dG(void 0,this.getTask()),addTaskFailureReason:W(this,2)}:void 0;return a};
var Uzb=new xG("/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",kG,yG,function(a){return a.serialize()},function(a){return bo(yG,a)});
var zG=function(a){Z.call(this,a,-1,Vzb)};V(zG,Z);zG.prototype.getTasksList=function(){return xb(this,cG,1)};var Vzb=[1];zG.prototype.toObject=function(){var a=null!=this?{tasksList:Hb(this.getTasksList(),dG)}:void 0;return a};
var Pzb=new xG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForIds",lG,zG,function(a){return a.serialize()},function(a){return bo(zG,a)});
var AG=function(a){Z.call(this,a,-1,Wzb)};V(AG,Z);AG.prototype.getTasksList=function(){return xb(this,cG,1)};var Wzb=[1];AG.prototype.toObject=function(){var a=null!=this?{tasksList:Hb(this.getTasksList(),dG)}:void 0;return a};
var Nzb=new xG("/google.internal.devopsconsole.v1.TaskManagementService/ListTasksForStatuses",mG,AG,function(a){return a.serialize()},function(a){return bo(AG,a)});
var BG=function(a){Z.call(this,a)};V(BG,Z);g=BG.prototype;g.getTask=function(){return m(this,cG,1)};g.setTask=function(a){return Gb(this,1,a)};g.hasTask=function(){return mj(this,1)};g.setUndoToken=function(a){return xl(this,4,a)};g.toObject=function(){var a=null!=this?{task:dG(void 0,this.getTask()),undoToken:W(this,4)}:void 0;return a};
var Xzb=new xG("/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",oG,BG,function(a){return a.serialize()},function(a){return bo(BG,a)});
var Yzb=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 CG=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};V(CG,Error);CG.prototype.name="RpcError";
var Zzb=Promise;
var DG=function(a){Z.call(this,a,-1,$zb)};V(DG,Z);DG.prototype.getCode=function(){return fj(this,1)};DG.prototype.setCode=function(a){return Vk(this,1,a)};DG.prototype.getMessage=function(){return W(this,2)};var $zb=[3];DG.prototype.toObject=function(){var a=null!=this?{code:fj(this,1),message:W(this,2),detailsList:Hb(xb(this,wF,3),Fxb)}:void 0;return a};
var EG=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_&&aAb(this)},dAb=function(a,b){Ko(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("Ub");c=atob(c)}try{var d=
a.grpcResponseDeserializeFn_(c)}catch(f){FG(a,new CG(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Yzb(a.xhr_.getStatus());GG(a,HG(a));0==c?bAb(a,d):FG(a,new CG(c,"Xhr succeeded but the status code is not 200"))}else{d=a.xhr_.getResponseText();var e={};d?(e=cAb(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+a.xhr_.getLastErrorCode()+", error: "+a.xhr_.getLastError());GG(a,HG(a));FG(a,new CG(d,c,e))}})},aAb=function(a){a.xhrNodeReadableStream_.on("data",
function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){FG(a,new CG(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&bAb(a,d)}if("2"in b)for(b=cAb(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){GG(a,HG(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=Yzb(c);break;default:d=14}GG(a,HG(a));b=nub(b)+", error: "+a.xhr_.getLastError();-1!=c&&(b+=", http status code: "+c);FG(a,new CG(d,b))}})},HG=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},cAb=function(a,b){var c=2,d={};try{var e=bo(DG,b);c=e.getCode();var f=e.getMessage();xb(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}};EG.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 IG=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
EG.prototype.removeListener=function(a,b){"data"==a?IG(this.onDataCallbacks_,b):"metadata"==a?IG(this.onMetadataCallbacks_,b):"status"==a?IG(this.onStatusCallbacks_,b):"end"==a?IG(this.onEndCallbacks_,b):"error"==a&&IG(this.onErrorCallbacks_,b);return this};EG.prototype.cancel=function(){this.xhr_.abort()};
var bAb=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},GG=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},FG=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};EG.prototype.cancel=EG.prototype.cancel;EG.prototype.removeListener=EG.prototype.removeListener;EG.prototype.on=EG.prototype.on;
var JG=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};Wt(JG,RD);JG.prototype.createInstance=function(){var a=new KG(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};JG.prototype.internalGetOptions=jC({});JG.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};
JG.prototype.setCacheMode=function(a){this.cacheMode_=a};var KG=function(a,b){Jo.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};
Wt(KG,Jo);KG.prototype.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Vb");this.method_=a;this.url_=b;this.readyState=1;LG(this)};KG.prototype.send=function(a){if(1!=this.readyState)throw this.abort(),Error("Wb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_};a&&(b.body=a);(this.worker_||da).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
KG.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,MG(this));this.readyState=0};
KG.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,LG(this)),this.inProgress_&&(this.readyState=3,LG(this),this.inProgress_)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if("undefined"!==typeof da.ReadableStream&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("Xb");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;eAb(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var eAb=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
KG.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?MG(this):LG(this);3==this.readyState&&eAb(this)}};KG.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,MG(this))};
KG.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,MG(this))};KG.prototype.handleSendFailure_=function(){this.inProgress_&&MG(this)};var MG=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;LG(a)};g=KG.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 LG=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(KG.prototype,"withCredentials",{get:function(){return"include"===this.credentialsMode_},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});
var fAb=function(a){if(a.getCount&&"function"==typeof a.getCount)a=a.getCount();else if(Ea(a)||"string"===typeof a)a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},NG=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(Ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return kja(a)},gAb=
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(Ea(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}}},hAb=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(Ea(a)||"string"===typeof a)Array.prototype.forEach.call(a,
b,c);else for(var d=gAb(a),e=NG(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},iAb=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(Ea(a)||"string"===typeof a)return Array.prototype.every.call(a,b,c);for(var d=gAb(a),e=NG(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};
var Xo=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Xo?(this.ignoreCase_=void 0!==b?b:a.ignoreCase_,iv(this,a.scheme_),this.setUserInfo(a.getUserInfo()),hv(this,a.getDomain()),OG(this,a.port_),this.setPath(a.getPath()),PG(this,a.queryData_.clone()),QG(this,a.fragment_)):a&&(c=String(a).match(qub))?(this.ignoreCase_=!!b,iv(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),hv(this,c[3]||"",!0),OG(this,c[4]),
this.setPath(c[5]||"",!0),PG(this,c[6]||"",!0),QG(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new RG(null,this.ignoreCase_))};
Xo.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(SG(b,jAb,!0),":");var c=this.getDomain();if(c||"file"==b)a.push("//"),(b=this.getUserInfo())&&a.push(SG(b,jAb,!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(SG(c,"/"==c.charAt(0)?kAb:lAb,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",SG(c,mAb));return a.join("")};
Xo.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?iv(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?hv(b,a.getDomain()):c=null!=a.port_;var d=a.getPath();if(c)OG(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(fa(e,"./")||fa(e,"/.")){d=Mi(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?PG(b,a.queryData_.clone()):c=!!a.fragment_;c&&QG(b,a.fragment_);return b};Xo.prototype.clone=function(){return new Xo(this)};var iv=function(a,b,c){a.scheme_=c?TG(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Xo.prototype.getUserInfo=function(){return this.userInfo_};
Xo.prototype.setUserInfo=function(a,b){this.userInfo_=b?TG(a):a;return this};Xo.prototype.hasUserInfo=function(){return!!this.userInfo_};Xo.prototype.getDomain=function(){return this.domain_};var hv=function(a,b,c){a.domain_=c?TG(b,!0):b;return a},OG=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Yb`"+b);a.port_=b}else a.port_=null;return a};Xo.prototype.getPath=function(){return this.path_};Xo.prototype.setPath=function(a,b){this.path_=b?TG(a,!0):a;return this};
Xo.prototype.hasPath=function(){return!!this.path_};Xo.prototype.hasQuery=function(){return""!==this.queryData_.toString()};var PG=function(a,b,c){b instanceof RG?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=SG(b,nAb)),a.queryData_=new RG(b,a.ignoreCase_));return a};Xo.prototype.setQuery=function(a){return PG(this,a)};Xo.prototype.getQuery=function(){return this.queryData_.toString()};
var UG=function(a,b,c){a.queryData_.set(b,c);return a},VG=function(a,b){return a.queryData_.get(b)},QG=function(a,b,c){a.fragment_=c?TG(b):b;return a};Xo.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Xo.prototype.isReadOnly=function(){return!1};Xo.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var WG=function(a,b){return a instanceof Xo?a.clone():new Xo(a,b)},TG=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},SG=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,oAb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},oAb=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},jAb=/[#\/\?@]/g,lAb=/[#\?:]/g,kAb=/[#\?]/g,nAb=/[#\?@]/g,mAb=/#/g,RG=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=
a||null;this.ignoreCase_=!!b},XG=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&rub(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=RG.prototype;g.getCount=function(){XG(this);return this.count_};g.add=function(a,b){XG(this);this.encodedQuery_=null;a=YG(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){XG(this);a=YG(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(){XG(this);return 0==this.count_};g.containsKey=function(a){XG(this);a=YG(this,a);return this.keyMap_.has(a)};g.containsValue=function(a){var b=this.getValues();return wa(b,a)};
g.forEach=function(a,b){XG(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){XG(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){XG(this);var b=[];if("string"===typeof a)this.containsKey(a)&&(b=b.concat(this.keyMap_.get(YG(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){XG(this);this.encodedQuery_=null;a=YG(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(YG(this,a),Da(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 RG;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var YG=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};RG.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(XG(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};
RG.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)hAb(arguments[b],function(c,d){this.add(d,c)},this)};
var pAb=function(a){var b="";fh(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b};
var ZG=function(a){MC.call(this);this.handler_=a;this.keys_={}};Wt(ZG,MC);var qAb=[];ZG.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(qAb[0]=b.toString()),b=qAb);for(var e=0;e<b.length;e++){var f=Ko(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};ZG.prototype.listenOnce=function(a,b,c,d){return rAb(this,a,b,c,d)};
var rAb=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)rAb(a,b,c[h],d,e,f);else{b=XC(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
ZG.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=Ha(d)?!!d.capture:!!d,e=e||this.handler_||this,c=YC(c),d=!!d,b=UC(a)?a.getListener(b,c,d,e):a?(a=ZC(a))?a.getListener(b,c,d,e):null:null,b&&(aD(b),delete this.keys_[b.key]);return this};ZG.prototype.removeAll=function(){fh(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&aD(a)},this);this.keys_={}};
ZG.prototype.disposeInternal=function(){ZG.superClass_.disposeInternal.call(this);this.removeAll()};ZG.prototype.handleEvent=function(){throw Error("$b");};
var sAb=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};sAb.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("ac`"+this.streamPos_+"`"+b+"`"+a);};
sAb.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=ujb(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 Ai=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};Ai.prototype.getErrorMessage=function(){return this.errorMessage_};Ai.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_);};Ai.prototype.acceptsBinaryInput=function(){return!0};
Ai.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("bc`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return 0<a.length?a:null};
var Bi=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new sAb;this.pbParser_=new Ai};Bi.prototype.getErrorMessage=function(){return this.errorMessage_};Bi.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Bi.prototype.acceptsBinaryInput=function(){return!1};
Bi.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 $G=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
var zma=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)},tAb={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=zma.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(;I<a.length;)if($G(a[I]))I++,f.pos_++;else break;return I<u}function c(){for(var L;;){L=a[I++];if(!L)break;f.pos_++;switch(f.state_){case q.INIT:"{"===L?f.state_=q.OBJECT_OPEN:"["===L?f.state_=q.ARRAY_OPEN:$G(L)||f.error_(a,I);continue;case q.KEY_START:case q.OBJECT_OPEN:if($G(L))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if("}"===L){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);'"'===L?f.state_=q.STRING:f.error_(a,I);continue;case q.KEY_END:case q.OBJECT_END:if($G(L))continue;
":"===L?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):"}"===L?(f.depth_--,e(),f.state_=d()):","===L?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,I);continue;case q.ARRAY_OPEN:case q.VALUE:if($G(L))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,"]"===L){f.depth_--;if(0===f.depth_){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);'"'===L?f.state_=q.STRING:"{"===L?f.state_=q.OBJECT_OPEN:
"["===L?f.state_=q.ARRAY_OPEN:"t"===L?f.state_=q.TRUE1:"f"===L?f.state_=q.FALSE1:"n"===L?f.state_=q.NULL1:"-"!==L&&(-1!=="0123456789".indexOf(L)?f.state_=q.NUM_DIGIT:f.error_(a,I));continue;case q.ARRAY_END:if(","===L)h.push(q.ARRAY_END),f.state_=q.VALUE,1===f.depth_&&(E=I);else if("]"===L){f.depth_--;if(0===f.depth_)return;e();f.state_=d()}else if($G(L))continue;else f.error_(a,I);continue;case q.STRING:var T=I;a:for(;;){for(;0<f.unicodeCount_;)if(L=a[I++],4===f.unicodeCount_?f.unicodeCount_=0:f.unicodeCount_++,
!L)break a;if('"'===L&&!f.slashed_){f.state_=d();break}if("\\"===L&&!f.slashed_&&(f.slashed_=!0,L=a[I++],!L))break;if(f.slashed_)if(f.slashed_=!1,"u"===L&&(f.unicodeCount_=1),L=a[I++])continue;else break;k.lastIndex=I;L=k.exec(a);if(!L){I=a.length+1;break}I=L.index+1;L=a[L.index];if(!L)break}f.pos_+=I-T;continue;case q.TRUE1:if(!L)continue;"r"===L?f.state_=q.TRUE2:f.error_(a,I);continue;case q.TRUE2:if(!L)continue;"u"===L?f.state_=q.TRUE3:f.error_(a,I);continue;case q.TRUE3:if(!L)continue;"e"===L?
f.state_=d():f.error_(a,I);continue;case q.FALSE1:if(!L)continue;"a"===L?f.state_=q.FALSE2:f.error_(a,I);continue;case q.FALSE2:if(!L)continue;"l"===L?f.state_=q.FALSE3:f.error_(a,I);continue;case q.FALSE3:if(!L)continue;"s"===L?f.state_=q.FALSE4:f.error_(a,I);continue;case q.FALSE4:if(!L)continue;"e"===L?f.state_=d():f.error_(a,I);continue;case q.NULL1:if(!L)continue;"u"===L?f.state_=q.NULL2:f.error_(a,I);continue;case q.NULL2:if(!L)continue;"l"===L?f.state_=q.NULL3:f.error_(a,I);continue;case q.NULL3:if(!L)continue;
"l"===L?f.state_=d():f.error_(a,I);continue;case q.NUM_DECIMAL_POINT:"."===L?f.state_=q.NUM_DIGIT:f.error_(a,I);continue;case q.NUM_DIGIT:if(-1!=="0123456789.eE+-".indexOf(L))continue;else I--,f.pos_--,f.state_=d();continue;default:f.error_(a,I)}}}function d(){var L=h.pop();return null!=L?L:q.VALUE}function e(L){1<f.depth_||(L||(L=-1===E?f.buffer_+a.substring(x,I):a.substring(E,I)),f.deliverMessageAsRawString_?f.result_.push(L):f.result_.push(JSON.parse(L)),E=I)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=tAb,u=a.length,x=0,E=-1,I=0;I<u;)switch(f.streamState_){case 3:return f.error_(a,I),null;case 2:return b()&&f.error_(a,I),null;case 0:if(b()){var N=a[I++];f.pos_++;if("["===N){f.streamState_=1;x=I;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,I)}return null;case 1:return c(),0===f.depth_&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(I)):f.buffer_=-1===E?f.buffer_+a.substring(x):a.substring(E),0<f.result_.length?(N=f.result_,f.result_=[],N):null}return null};
var zi=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};zi.prototype.getErrorMessage=function(){return this.errorMessage_};zi.prototype.acceptsBinaryInput=function(){return!1};
zi.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 zma({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var u=0;u<q.length;u++){var x={};x[1]=q[u];f.result_.push(x)}}function e(q){if(q){(f.statusParsed_||1<q.length)&&b("extra status: "+q);f.statusParsed_=!0;var u={};u[2]=q[0];f.result_.push(u)}}for(var f=
this,h=0;h<a.length;){var k;if(k=2!==f.state_){a:{for(;h<a.length;){if(!$G(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 uAb=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 ZG(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)},aH=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},bH=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};uAb.prototype.getStatus=function(){return this.status_};
uAb.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(Hub(this.xhr_)instanceof Array){var f=Hub(this.xhr_);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?aH(this,7):7==c?aH(this,8):d||aH(this,3)),this.parser_||(this.parser_=Ama(this.xhr_),null==this.parser_&&
aH(this,5)),2<this.status_)bH(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("cc");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){aH(this,5);bH(this);break a}}else if(e.length>
this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var u=this.parser_.parse(k);null!=u&&this.dataHandler_&&this.dataHandler_(u)}catch(x){aH(this,5);bH(this);break a}}4==b?(0!=e.length||this.hasStreamingResponseData_?aH(this,2):aH(this,4),bH(this)):aH(this,1)}}}catch(x){aH(this,6),bH(this)}};
var cH=function(a){this.xhrReader_=a;a=St(this.onData_,this);this.xhrReader_.dataHandler_=a;a=St(this.onStatusChange_,this);this.xhrReader_.statusHandler_=a;this.callbackMap_={};this.callbackOnceMap_={}};g=cH.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&za(c,b);(a=this.callbackOnceMap_[a])&&za(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&vAb(this,a,b);(b=this.callbackOnceMap_.data)&&vAb(this,a,b);this.callbackOnceMap_.data=[]};
var vAb=function(a,b,c){for(var d={},e=0;e<b.length;d={$jscomp$loop$prop$message$1654:d.$jscomp$loop$prop$message$1654},e++)d.$jscomp$loop$prop$message$1654=b[e],c.forEach(function(f){return function(h){try{h(f.$jscomp$loop$prop$message$1654)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};
cH.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:dH(this,"readable");break;case 5:case 6:case 4:case 7:case 3:dH(this,"error");break;case 8:dH(this,"close");break;case 2:dH(this,"end")}};var dH=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]=[]};cH.prototype.handleError_=function(){};
var eH=function(a){a=void 0===a?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||Fo("suppressCorsPreflight",a)||!1;this.withCredentials_=a.withCredentials||Fo("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},yAb=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return wAb(function(h){return new Zzb(function(k,q){var u=
{},x=xAb(a,h,f);x.on("error",function(E){return q(E)});x.on("metadata",function(E){u=E});x.on("data",function(E){var I=u;I=void 0===I?{}:I;k(new wG(E,h.getMethodDescriptor(),I))})})},a.unaryInterceptors_).call(a,Tzb(e,c,d)).then(function(h){return h.responseMessage_})},sG=function(a,b,c,d,e){return yAb(a,b,c,d,e)};
eH.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return wAb(function(h){var k=h.getMethodDescriptor(),q=h.getMetadata(),u=zAb(e,!1);q=AAb(e,q,u,f+k.getName());var x=BAb(u,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage_);u.send(q,"POST",h);return x},this.streamInterceptors_).call(this,Tzb(d,b,c))};
var xAb=function(a,b,c){var d=b.getMethodDescriptor(),e=b.getMetadata(),f=zAb(a,!0);a=AAb(a,e,f,c+d.getName());c=BAb(f,d.responseDeserializeFn,!1);dAb(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.requestSerializeFn(b.requestMessage_);f.send(a,"POST",b);return c},zAb=function(a,b){b=a.chunkedServerStreaming_&&!b;return a.workerScope_||b?new VD(new JG({worker:a.workerScope_,streamBinaryChunks:b})):new VD},AAb=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_)a=d,ih(b)?d=a:(b=pAb(b),"string"===typeof a?d=UD(a,encodeURIComponent("$httpHeaders"),b):(UG(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d},BAb=function(a,b,c){if(c)if(!$t||10<=Number(gu)){c=new uAb(a);var d=new cH(c)}else d=null;return new EG({xhr:a,nodeReadableStream:d},
b)},wAb=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});return c};
var CAb=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};CAb.prototype.updateTaskStatus=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/UpdateTaskStatus",a,b||{},Xzb)};CAb.prototype.addTaskByUrl=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.TaskManagementService/AddTaskByUrl",a,b||{},Uzb)};
var fH=function(a){Z.call(this,a)};V(fH,Z);fH.prototype.getUserPrefs=function(){return m(this,jG,1)};fH.prototype.toObject=function(){var a=null!=this?{userPrefs:Hzb(this.getUserPrefs())}:void 0;return a};
var DAb=new xG("/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",pG,fH,function(a){return a.serialize()},function(a){return bo(fH,a)});
var gH=function(a){Z.call(this,a,-1,EAb)};V(gH,Z);var EAb=[1];gH.prototype.toObject=function(){return hH(void 0,this)};var hH=function(a,b){if(null!=b){var c={pathsList:n(ob(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var FAb=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};FAb.prototype.getUserPrefs=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.internal.devopsconsole.v1.UserPrefsTaskService/GetUserPrefs",a,b||{},DAb)};
var iH=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},jH=function(a,b,c){var d=this;this._elementRef=a;this._dateAdapter=b;this._dateFormats=c;this.dateChange=new Jw;this.dateInput=new Jw;this.stateChanges=new U.Subject;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=U.Subscription.EMPTY;this._parseValidator=function(){return d._lastValueValid?null:{matDatepickerParse:{text:d._elementRef.nativeElement.value}}};
this._filterValidator=function(e){e=ZA(d._dateAdapter,d._dateAdapter.deserialize(e.value));return!e||d._matchesFilter(e)?null:{matDatepickerFilter:!0}};this._minValidator=function(e){e=ZA(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.min;return!f||!e||0>=$A(d._dateAdapter,f,e)?null:{matDatepickerMin:{min:f,actual:e}}};this._maxValidator=function(e){e=ZA(d._dateAdapter,d._dateAdapter.deserialize(e.value));var f=d._rangeInput.max;return!f||!e||0<=$A(d._dateAdapter,f,e)?null:
{matDatepickerMax:{max:f,actual:e}}};this._lastValueValid=!1;this._localeSubscription=b.localeChanges.subscribe(function(){d._assignValueProgrammatically(d.value)})};g=jH.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 iH(b,b._elementRef.nativeElement)),b.dateChange.emit(new iH(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(b.isDateInstance(d)&&b.isDateInstance(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=ZA(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 iH(this,this._elementRef.nativeElement)))};g._onChange=function(){this.dateChange.emit(new iH(this,this._elementRef.nativeElement))};
g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=null!=a?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};g._parentDisabled=function(){return!1};
g._assignValueProgrammatically=function(a){a=this._dateAdapter.deserialize(a);this._lastValueValid=this._isValidValue(a);a=ZA(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._rangeInput.dateFilter;return!b||b(a)};
ji.Object.defineProperties(jH.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=bh(a);var b=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0));a&&this._isInitialized&&b.blur&&b.blur()}}});
jH.\u0275fac=function(a){return new (a||jH)(C(wd),C(YA,8),C(bB,8))};jH.\u0275dir=w({type:jH,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Jc]});
var GAb=new sd("MAT_DATE_RANGE_INPUT_PARENT"),kH=function(a,b,c,d,e,f,h,k){jH.call(this,b,h,k);this._rangeInput=a;this._defaultErrorStateMatcher=c;this._injector=d;this._parentForm=e;this._parentFormGroup=f};V(kH,jH);g=kH.prototype;g.ngOnInit=function(){var a=this._injector.get(Zx,null,10);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){jH.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){jH.prototype._assignValueProgrammatically.call(this,a);var b;null==(b=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)||b._validatorOnChange()};kH.\u0275fac=function(a){return new (a||kH)(C(GAb),C(wd),C(fB),C(Iv),C(fy,8),C(oy,8),C(YA,8),C(bB,8))};kH.\u0275dir=w({type:kH,features:[ie]});Tka(kH);
var HAb={provide:new sd("mat-datepicker-scroll-strategy"),deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};ki(function(a){this._elementRef=a});
var lH=function(){};lH.\u0275fac=function(a){return new (a||lH)};lH.\u0275mod=Cc({type:lH});lH.\u0275inj=mc({providers:[vB,HAb],imports:[Mx,uG,WA,Qz,SA,XA,wA]});
var mH=function(){};mH.\u0275fac=function(a){return new (a||mH)};mH.\u0275mod=Cc({type:mH});mH.\u0275inj=mc({providers:[axb],imports:[Qz,Mx,WA,XA,XA,wA]});
var nH=function(){};nH.\u0275fac=function(a){return new (a||nH)};nH.\u0275mod=Cc({type:nH});nH.\u0275inj=mc({providers:[{provide:oxb,useFactory:function(a){return new FAb(Bma(a))},deps:[rF]},{provide:nxb,useFactory:function(a){return new CAb(Bma(a))},deps:[rF]},rG],imports:[Mx,vG,uG,lH,UB,pF,hC,fF,mH]});
var IAb=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"})};IAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};IAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var JAb=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"})};JAb.prototype.increment=function(a,b,c){this.streamzService_.incrementCounter(this.metricName_,a,b,c)};JAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var KAb=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"})};KAb.prototype.record=function(a,b,c,d){this.streamzService_.record(this.metricName_,a,b,c,d)};KAb.prototype.getMetric=function(){return this.streamzService_.getMetric(this.metricName_)};
var LAb="alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
var MAb=function(a){this.servicePromise_=a;a.then(St(function(){},this),function(){},this)},NAb=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("gc`"+b);return e.apply(d,c)})},PAb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=OAb(a,b).then(function(f){return f.apply(null,d)});return new MAb(e)},QAb={},OAb=function(a,b){var c=QAb[b];if(c)return c;c=(c=Fo(b))?wD(c):(new vD(function(d,e){var f=(new dD(document)).createElement("SCRIPT");
f.async=!0;Di(f,uo(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=Fo(b);if(!d)throw Error("hc`"+b+"`"+a);return d});return QAb[b]=c};
var oH=function(a){this.loader_=a};oH.prototype.startFeedback=function(a){NAb(this.loader_,"startFeedback",arguments)};oH.prototype.requestSurvey=function(a){NAb(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};oH.prototype.presentSurvey=function(a){NAb(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var RAb=vo("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");OAb(RAb,"help.service.Lazy.create").thenCatch(function(){});
var pH=function(){this.roundCorners=this.showDividers=!1};pH.\u0275fac=function(a){return new (a||pH)};
pH.\u0275cmp=w({type:pH,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&te("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ee(),Fe(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 SAb={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},Fpa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Hpa={ACCESS_LEVEL_UNSPECIFIED:0,INTERNAL:1,EXTERNAL_PARTNER:2,EXTERNAL_PUBLIC:3},Zqa={ACTION_TYPE_UNSPECIFIED:0,ADD:1,REMOVE:2},TAb={TEXT:"TEXT",DATE:"DATE",ENUM:"ENUM",NUMERIC:"NUMERIC",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",
REPEATED_NUMERIC:"REPEATED_NUMERIC"},Ypa={1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},cqa={TEXT:1,DATE:2,ENUM:3,NUMERIC:4,REPEATED_TEXT:5,REPEATED_DATE:6,REPEATED_ENUM:7,REPEATED_NUMERIC:8},Eqa={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},Pqa={DELETION_REASON_UNSPECIFIED:0,USER_REQUEST:1,ABUSE:2,PII:3,RETENTION:4},cna={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},mna={COMFORTABLE:1,COZY:2,COMPACT:3},
Nra={0:"UNKNOWN_DIFF_TYPE",1:"SINGLE_VALUE",2:"COLLECTION",5:"USER_COLLECTION",3:"LINKED_COLLECTION",4:"CUSTOM_FIELD"},$pa={0:"UNKNOWN",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},dqa={UNKNOWN:0,SILENT:1,MINOR:2,MAJOR:3,BULK:4,CLOSING:5},hj={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},vj={UNKNOWN_PRIORITY:0,CLOSURE_ONLY:4,MINIMAL:1,IMPORTANT:2,ALL:3},bna={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},lna={DEFAULT:0,ASSIGNMENT:1,RESPONSE:2,CLOSURE:3},QUa=
{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"},pra={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},UAb={FIELD_ORDERING_UNSPECIFIED:0,
INHERITED:1,CUSTOMIZED:2},Zpa={0:"UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},Mm={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},Zl={UNSPECIFIED_FORMATTING_MODE:0,PLAIN:1,MARKDOWN:2,LITERAL:3},Bta={0:"IMPLICIT_ACCESS_UNSPECIFIED",1:"ALLOW",2:"DENY"},VAb={IMPLICIT_ACCESS_UNSPECIFIED:0,ALLOW:1,DENY:2},Ata={0:"INHERITANCE_UNSPECIFIED",1:"INHERIT_ALL",2:"INHERIT_ADMINS",3:"INHERIT_NOTHING"},WAb={INHERITANCE_UNSPECIFIED:0,INHERIT_ALL:1,INHERIT_ADMINS:2,INHERIT_NOTHING:3},Bj=
{ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",
FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",
TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE"},ina={1:Bj.ISSUE_ID,2:Bj.COMPONENT_PATH,3:Bj.TYPE,4:Bj.STATUS,5:Bj.PRIORITY,6:Bj.SEVERITY,7:Bj.REPORTER,8:Bj.ASSIGNEE,9:Bj.VERIFIER,10:Bj.CC,43:Bj.COLLABORATOR,11:Bj.CHANGELIST,32:Bj.POSTMORTEM,12:Bj.BLOCKING_ISSUE_ID,13:Bj.BLOCKED_BY_ISSUE_ID,14:Bj.CREATED_TIME,15:Bj.MODIFIED_TIME,16:Bj.RESOLVED_TIME,17:Bj.VERIFIED_TIME,38:Bj.DELETION_TIME,18:Bj.TITLE,19:Bj.FOUND_IN_VERSION,
20:Bj.TARGETED_TO_VERSION,21:Bj.VERIFIED_IN_VERSION,22:Bj.IN_PROD,23:Bj.CANONICAL_ISSUE_ID,24:Bj.CUSTOM_FIELD,25:Bj.POSITION,26:Bj.VOTE_COUNT,27:Bj.DUPLICATE_COUNT,28:Bj.CC_COUNT,44:Bj.COLLABORATOR_COUNT,29:Bj.MODIFIED_BY,30:Bj.LAST_MODIFIER,31:Bj.ARCHIVED,33:Bj.MIN_SLO,35:Bj.ASSIGNMENT_SLO,36:Bj.RESPONSE_SLO,37:Bj.CLOSURE_SLO,39:Bj.TEAM,40:Bj.ESTIMATE,41:Bj.ESTIMATE_TOTAL_OPEN,42:Bj.ESTIMATE_TOTAL_COMPLETE},sna={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},fra={ISSUE_RELATION_UNSPECIFIED:0,BLOCKING:1,BLOCKED_BY:2,DUPLICATE:3,CANONICAL:4},Fqa={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"},Kqa={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},PUa={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},XAb={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},Rra={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},bra={UNKNOWN_SUBSCRIPTION:0,UNSUBSCRIBED:1,
SUBSCRIBED_CLOSURE_ONLY:2,SUBSCRIBED_MAJOR_UPDATES:3,SUBSCRIBED_ALL_UPDATES:4},RUa={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},zcb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},qqa={0:"PII_SEVERITY_UNSPECIFIED",1:"NONE_DETECTED",2:"PII",3:"SPII"},Nqa={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3},Gqa={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Lqa={PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5},Lra={0:"UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"PII",4:"RETENTION"},
Nsa={0:"UNKNOWN",1:"HOTLIST",2:"BOOKMARK_GROUP",3:"SAVED_SEARCH"},YAb={UNKNOWN:0,HOTLIST:1,BOOKMARK_GROUP:2,SAVED_SEARCH:3},ZAb={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},Wl={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Oqa={RETENTION_UNSPECIFIED:0,COMPONENT_DEFAULT:1,INDEFINITE:2},$Ab={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},
nra={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},oqa={UNSPECIFIED_RETENTION:0,BUGANIZER_DEFAULT:1,CUSTOM_PERIOD:2,INDEFINITE_RETENTION:3},Hqa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Mqa={SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5},LUa={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"},
ycb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},ora={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},tqa={SLO_SOURCE_UNSPECIFIED:0,USER:1,BUGSCOPE:2},Qpa={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"},Spa={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},Iqa={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"},Yl={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},Mra={0:"ACTIVE",1:"DELETED",
2:"PURGED"},Ota={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Esa={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"},Gsa={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},
TUa={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},Bqa={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},Cqa={UNSPECIFIED:0,ACTIVE:1,DELETED:2,UNAVAILABLE:3},NUa={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"};
var Dma=Object.prototype.hasOwnProperty,aBb=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)},bBb=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=aBb(a);null!=h?d(h):(setTimeout(f,c),c*=2)}f();setTimeout(function(){var h=aBb(a);null!=h?d(h):e("timeout: "+b)},b)})};
var Ti=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Ti.prototype.isCustomField=function(){return"CUSTOM_FIELD"===this.type};Ti.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Ti.prototype.toString=function(){return this.toApiUrlParam()};
var Xi=function(a,b){this.fieldId=a;this.direction=b};Xi.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+("ASCENDING"===this.direction?"asc":"desc")};Xi.prototype.toString=function(){return this.toApiUrlParam()};
var oj=function(a){Z.call(this,a)};V(oj,Z);oj.prototype.toObject=function(){return cBb(this)};var cBb=function(a){if(null!=a)return{announcementDismissed:n(Mo(a,2)),enableBugScreensaver:n(Mo(a,1))}};
var eBb=function(a){Z.call(this,a,-1,dBb)};V(eBb,Z);var dBb=[1];eBb.prototype.toObject=function(){return fBb(this)};var fBb=function(a){if(null!=a)return{recentComponentIdList:n(ob(a,1))}};
var xj=function(a){Z.call(this,a)};V(xj,Z);xj.prototype.getTimeZone=function(){return W(this,5)};xj.prototype.setTimeZone=function(a){return l(this,5,a)};xj.prototype.hasTimeZone=function(){return ej(this,5)};xj.prototype.toObject=function(){return gBb(this)};var gBb=function(a){if(null!=a)return{calendarFormat:n(p(a,1)),timeFormat:n(p(a,2)),calendarTimeFormat:n(p(a,3)),fullCalendarTimeFormat:n(p(a,4)),timeZone:n(p(a,5)),timeZoneOffset:n(p(a,6)),sloEtaViewAs:n(p(a,7))}};
var Aj=function(a){Z.call(this,a)};V(Aj,Z);g=Aj.prototype;g.getType=function(){return X(this,1,1)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getCustomFieldId=function(){return fj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return ej(this,2)};g.toObject=function(){return hBb(void 0,this)};var hBb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var zj=function(a){Z.call(this,a,-1,iBb)};V(zj,Z);zj.prototype.getColumnList=function(){return xb(this,Aj,1)};zj.prototype.setColumnList=function(a){return Fb(this,1,a)};var iBb=[1];zj.prototype.toObject=function(){return jBb(this)};var jBb=function(a){if(null!=a)return{columnList:Hb(a.getColumnList(),hBb)}};
var wj=function(a){Z.call(this,a)};V(wj,Z);wj.prototype.toObject=function(){return kBb(this)};var kBb=function(a){if(null!=a)return{leftSidebarWidth:n(p(a,1)),expandIssueSlo:n(Mo(a,2)),rightSidebarWidth:n(p(a,3))}};
var ij=function(a){Z.call(this,a)};V(ij,Z);ij.prototype.toObject=function(){return lBb(this)};var lBb=function(a){if(null!=a)return{showHotlists:n(Mo(a,1)),wrapTitles:n(Mo(a,2)),wrapComponents:n(Mo(a,3)),showStatusIcons:n(Mo(a,4)),rtlComponentPath:n(Mo(a,5))}};
var Dj=function(a){Z.call(this,a)};V(Dj,Z);Dj.prototype.getColumn=function(){return m(this,Aj,1)};Dj.prototype.setColumn=function(a){return Gb(this,1,a)};Dj.prototype.toObject=function(){return mBb(void 0,this)};var mBb=function(a,b){if(null!=b){var c={column:hBb(a,b.getColumn()),order:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Cj=function(a){Z.call(this,a,-1,nBb)};V(Cj,Z);Cj.prototype.getColumnList=function(){return xb(this,Dj,1)};Cj.prototype.setColumnList=function(a){return Fb(this,1,a)};var nBb=[1];Cj.prototype.toObject=function(){return oBb(this)};var oBb=function(a){if(null!=a)return{columnList:Hb(a.getColumnList(),mBb)}};
var jj=function(a){Z.call(this,a)};V(jj,Z);jj.prototype.getDensity=function(){return X(this,1,1)};jj.prototype.setDensity=function(a){return l(this,1,a)};jj.prototype.toObject=function(){return pBb(this)};var pBb=function(a){if(null!=a)return{density:n(p(a,1))}};
var pj=function(a){Z.call(this,a)};V(pj,Z);pj.prototype.toObject=function(){return qBb(this)};var qBb=function(a){if(null!=a)return{announcementDismissedMillis:n(p(a,1))}};
var yj=function(a){Z.call(this,a)};V(yj,Z);g=yj.prototype;g.getResourceType=function(){return X(this,1,1)};g.setResourceType=function(a){l(this,1,a)};g.hasResourceType=function(){return ej(this,1)};g.getResourceId=function(){return lj(this,2)};g.setResourceId=function(a){l(this,2,a)};g.hasResourceId=function(){return ej(this,2)};g.toObject=function(){return rBb(this)};var rBb=function(a){if(null!=a)return{resourceType:n(p(a,1)),resourceId:n(p(a,2))}};
var kj=function(a){Z.call(this,a)};V(kj,Z);kj.prototype.toObject=function(){return sBb(this)};var sBb=function(a){if(null!=a)return{enableAllHotkeys:bj(a,1,!0)}};
var qj=function(a){Z.call(this,a)};V(qj,Z);qj.prototype.toObject=function(){return tBb(this)};var tBb=function(a){if(null!=a)return{enableNewIssueDetailsPage:n(Mo(a,1)),onboardingDialogAcknowledgedMillis:n(p(a,2)),newIdpOptOut:n(Mo(a,3))}};
var gj=function(a){Z.call(this,a)};V(gj,Z);gj.prototype.toObject=function(){return uBb(this)};var uBb=function(a){if(null!=a)return{reportedPriority:n(p(a,1)),assignedPriority:n(p(a,2)),verifiedPriority:n(p(a,3)),ccdPriority:n(p(a,4)),collaboratorPriority:n(p(a,9)),starredPriority:n(p(a,5)),excludeChangesByMe:n(Mo(a,6)),unsubscribeFromAll:n(Mo(a,7)),enableV2Prefs:n(Mo(a,8))}};
var wBb=function(a){Z.call(this,a,-1,vBb)};V(wBb,Z);var vBb=[1];wBb.prototype.toObject=function(){return xBb(this)};var xBb=function(a){if(null!=a)return{hiddenSavedSearchList:n(ob(a,1))}};
var sj=function(a){Z.call(this,a)};V(sj,Z);sj.prototype.getComponentId=function(){return fj(this,1)};sj.prototype.setComponentId=function(a){return l(this,1,a)};sj.prototype.hasComponentId=function(){return ej(this,1)};sj.prototype.toObject=function(){return yBb(void 0,this)};var yBb=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),dismissMillis:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var rj=function(a){Z.call(this,a,-1,zBb)};V(rj,Z);var tna=function(a,b){Fb(a,1,b)},zBb=[1];rj.prototype.toObject=function(){return ABb(this)};var ABb=function(a){if(null!=a)return{componentTeamWarningsList:Hb(xb(a,sj,1),yBb)}};
var nj=function(a){Z.call(this,a)};V(nj,Z);nj.prototype.getCommentDisplayOverride=function(){return X(this,2,0)};nj.prototype.setCommentDisplayOverride=function(a){l(this,2,a)};nj.prototype.toObject=function(){return BBb(this)};var BBb=function(a){if(null!=a)return{lastPublishMode:n(p(a,1)),commentDisplayOverride:n(p(a,2))}};
var qH=function(a){Z.call(this,a)};V(qH,Z);qH.prototype.getValue=function(){return bj(this,1)};qH.prototype.setValue=function(a){return fo(this,1,a)};qH.prototype.toObject=function(){return CBb(this)};var CBb=function(a){if(null!=a)return{value:bj(a,1)}};
var uj=function(a){Z.call(this,a)};V(uj,Z);g=uj.prototype;g.getDisplayColumns=function(){return m(this,zj,4)};g.getSortColumns=function(){return m(this,Cj,6)};g.getLayoutPreferences=function(){return m(this,wj,10)};g.getDateTimePreferences=function(){return m(this,xj,11)};g.getHomepagePreferences=function(){return m(this,yj,13)};g.clearHomepagePreferences=function(){return Gb(this,13)};g.toObject=function(){return DBb(this)};
var DBb=function(a){if(null!=a)return{showFullHistory:n(Mo(a,1)),useCodefont:n(Mo(a,2)),notificationPreferences:uBb(m(a,gj,3)),displayColumns:jBb(a.getDisplayColumns()),resultsPerPage:n(p(a,5)),sortColumns:oBb(a.getSortColumns()),bannerMessageId:n(p(a,7)),themePreferences:pBb(m(a,jj,8)),listViewPreferences:lBb(m(a,ij,9)),layoutPreferences:kBb(a.getLayoutPreferences()),dateTimePreferences:gBb(a.getDateTimePreferences()),sidebarPreferences:xBb(m(a,wBb,12)),homepagePreferences:rBb(a.getHomepagePreferences()),
componentPreferences:fBb(m(a,eBb,14)),keyboardPreferences:sBb(m(a,kj,17)),termsAcknowledgedMillis:n(p(a,15)),newFeaturesAcknowledgedMillis:n(p(a,16)),autoCcOnComment:n(Mo(a,18)),enableMaterialStyles:CBb(m(a,qH,19)),textDisplayPreferences:BBb(m(a,nj,20)),bugScreensaverPreferences:cBb(m(a,oj,21)),newIssueDetailsPagePreferences:tBb(m(a,qj,22)),teamWarningPreferences:ABb(m(a,rj,23)),g3nPreferences:qBb(m(a,pj,24)),dismissalTimestampsMap:Kb(Zi(a,25,tj),void 0,Nu),showRecentEventsFirst:n(Mo(a,26)),collapsedMap:Kb(Zi(a,
27))}};
var rH=function(a){Z.call(this,a,-1,EBb)};V(rH,Z);g=rH.prototype;g.getAppName=function(){return W(this,2)};g.getDocumentationBaseUrl=function(){return W(this,3)};g.getEnvironmentType=function(){return W(this,5)};g.getMaxAccurateSearchResults=function(){return fj(this,6)};g.getOnePickUrl=function(){return W(this,7)};g.getOnePickSecretToken=function(){return W(this,12)};g.getCommentNumberLimit=function(){return fj(this,8)};g.getCreateComponentRedirectDelay=function(){return Bl(this,9)};
var EBb=[10,13,14,15];rH.prototype.toObject=function(){return FBb(this)};
var FBb=function(a){if(null!=a)return{analyticsId:n(p(a,1)),appName:n(p(a,2)),documentationBaseUrl:n(p(a,3)),enabledFlagsMap:Kb(Zi(a,4)),environmentType:n(p(a,5)),maxAccurateSearchResults:n(p(a,6)),onePickUrl:n(p(a,7)),onePickSecretToken:n(p(a,12)),commentNumberLimit:n(p(a,8)),createComponentRedirectDelay:n(mu(a,9)),whitelistedWhitelistDomainPartnerComponentIdsList:n(ob(a,10)),isDogfooder:n(Mo(a,11)),createRestrictedSubresourcesComponentWhitelistList:n(ob(a,13)),componentAllowlistList:n(ob(a,14)),
componentDenylistList:n(ob(a,15))}};
var sH=function(a){Z.call(this,a)};V(sH,Z);g=sH.prototype;g.getEmail=function(){return W(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return ej(this,1)};g.getSessionIdentifier=function(){return W(this,3)};g.toObject=function(){return GBb(this)};var GBb=function(a){if(null!=a)return{anonymous:n(Mo(a,4)),email:n(p(a,1)),sessionIdentifier:n(p(a,3))}};
var tH=function(a){Z.call(this,a,-1,HBb)};V(tH,Z);tH.prototype.getId=function(){return p(this,1)};tH.prototype.setId=function(a){return l(this,1,a)};var HBb=[2,4];tH.prototype.toObject=function(){return IBb(void 0,this)};var IBb=function(a,b){if(null!=b){var c={id:n(p(b,1)),namesList:n(ob(b,2)),stdOffset:n(p(b,3)),transitionsList:n(ob(b,4))};a&&(c.$jspbMessageInstance=b);return c}};tH.messageId="b.TimeZoneData";
var uH=function(a){Z.call(this,a,-1,JBb)};V(uH,Z);uH.prototype.getMessage=function(){return W(this,1)};var JBb=[4];uH.prototype.toObject=function(){return KBb(this)};var KBb=function(a){if(null!=a)return{message:n(p(a,1)),messageId:n(p(a,2)),dismissible:n(Mo(a,3)),tagsList:n(ob(a,4))}};uH.messageId="b.Announcement";
var vH=function(a){Z.call(this,a,-1,LBb)};V(vH,Z);var LBb=[1];vH.prototype.toObject=function(){return MBb(this)};var MBb=function(a){if(null!=a)return{timezonesList:Hb(xb(a,tH,1),IBb),announcement:KBb(m(a,uH,2))}};
var En=function(a){Z.call(this,a)};V(En,Z);En.prototype.getLogoUrl=function(){return W(this,1)};En.prototype.getTheme=function(){return X(this,2,0)};En.prototype.setTheme=function(a){return l(this,2,a)};En.prototype.toObject=function(){return NBb(void 0,this)};var NBb=function(a,b){if(null!=b){var c={logoUrl:n(p(b,1)),theme:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};En.messageId="b.Branding";
var wH=function(a){Z.call(this,a,-1,OBb)};V(wH,Z);g=wH.prototype;g.getTrackerId=function(){return lj(this,1)};g.setTrackerId=function(a){l(this,1,a)};g.getComponentId=function(){return lj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return ej(this,2)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};var OBb=[4];wH.prototype.toObject=function(){return PBb(void 0,this)};
var PBb=function(a,b){if(null!=b){var c={trackerId:n(p(b,1)),componentId:n(p(b,2)),name:n(p(b,3)),associatedTrackerIdsList:n(ob(b,4)),branding:NBb(a,m(b,En,5))};a&&(c.$jspbMessageInstance=b);return c}};wH.messageId="b.Tracker";
var Tma=function(a){Z.call(this,a)};V(Tma,Z);g=Tma.prototype;g.getUser=function(){return m(this,sH,1)};g.setUser=function(a){Gb(this,1,a)};g.getConfig=function(){return m(this,rH,2)};g.setConfig=function(a){return Gb(this,2,a)};g.getXsrfToken=function(){return W(this,3)};g.getCspNonce=function(){return W(this,8)};g.getUserPreferences=function(){return m(this,uj,7)};
g.toObject=function(){var a=null!=this?{user:GBb(this.getUser()),config:FBb(this.getConfig()),xsrfToken:n(p(this,3)),cspNonce:n(p(this,8)),frontendAccessMode:n(p(this,4)),mustAcknowledgeTerms:n(Mo(this,5)),showNewFeaturesDialog:n(Mo(this,6)),userPreferences:DBb(this.getUserPreferences()),preload:MBb(m(this,vH,9)),appBaseHref:n(p(this,10)),tracker:PBb(void 0,m(this,wH,11))}:void 0;return a};
var Sma=window,Rma;
var cj={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"},QBb={},RBb=(QBb[3]="LITERAL_FORMATTING_MODE",QBb[1]="PLAIN_FORMATTING_MODE",QBb[2]="MARKDOWN_FORMATTING_MODE",QBb),SBb=RBb[2],TBb=RBb[1],xH={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:void 0,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",
assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"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:{},newIssueDetailsPagePreferences:{enableNewIssueDetailsPage:!1},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1};
var yH=function(){this.session=Yi();this.user=this.session.getUser()||new sH;this.config=this.session.getConfig()||new rH;this.userPreferences=hna(Yi().getUserPreferences()||new uj);this.frontendAccessMode=W(this.session,4)||"INTERNAL";this.mustAcknowledgeTerms=bj(this.session,5);this.showNewFeaturesDialog=bj(this.session,6);this.appBaseHref=W(this.session,10)};yH.prototype.isExternalSession=function(){return"INTERNAL"!==this.frontendAccessMode};
yH.prototype.isInternalSession=function(){return"INTERNAL"===this.frontendAccessMode};var zH=function(a){return"PARTNER"===a.frontendAccessMode},AH=function(a,b){return!!Zi(a.config,4).get(b)};yH.prototype.isAnonymous=function(){return Vma(this.session)};yH.prototype.getUserEmail=function(){return this.user.getEmail()||""};yH.prototype.getSessionIdentifier=function(){return this.user.getSessionIdentifier()||"0"};yH.prototype.getEnvironmentType=function(){return this.config.getEnvironmentType()||"QA"};
var UBb=function(a){a=a.getEnvironmentType();switch(a){case "QA":return!1;case "NIGHTLY":case "PROD":return!0;default:sh(a,"Unknown environment type.")}},xs=function(a,b){return(void 0===b?0:b)||!a.isInternalSession()?UBb(a)?"https://issuetracker.google.com/":"https://issuetracker.sandbox.google.com/":UBb(a)?"http://b/":"http://b-qa/"};g=yH.prototype;g.getOnePickUrl=function(){return this.config.getOnePickUrl()||""};g.getAppName=function(){return this.config.getAppName()||""};
g.getCommentNumberLimit=function(){return this.config.getCommentNumberLimit()};g.getCreateComponentRedirectDelay=function(){return this.config.getCreateComponentRedirectDelay()};g.getDocumentationBaseUrl=function(){return this.config.getDocumentationBaseUrl()};g.getMaxAccurateSearchResults=function(){return this.config.getMaxAccurateSearchResults()};g.getUserPreferences=function(){return this.userPreferences};g.getXsrfToken=function(){return this.session.getXsrfToken()};g.getOnePickSecretToken=function(){return this.config.getOnePickSecretToken()};
g.getCspNonce=function(){return this.session.getCspNonce()};yH.\u0275fac=function(a){return new (a||yH)};yH.\u0275prov=lc({token:yH,factory:yH.\u0275fac,providedIn:"root"});
var VBb=function(a,b){return[a,b]},BH=function(){this.size=this.name=""};BH.prototype.ngOnInit=function(){};BH.\u0275fac=function(a){return new (a||BH)};
BH.\u0275cmp=w({type:BH,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",Pe(2,VBb,b.name,b.size))},dependencies:[xx,XE],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 n8a=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},WBb=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}},XBb=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},
YBb=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}},ZBb=function(a){return Mk(a.replace(/_/g," ").toLowerCase())};
var $Bb=function(a){return function(b){return Ej(b,a)}};
var aCb=function(a){Z.call(this,a)};V(aCb,Z);aCb.prototype.getBlobRef=function(){return xm(this,2)};aCb.prototype.toObject=function(){return bCb(void 0,this)};var bCb=function(a,b){if(null!=b){var c={resourceName:W(b,1),blobRef:Lb(b.getBlobRef())};a&&(c.$jspbMessageInstance=b);return c}};
var CH=function(a){Z.call(this,a)};V(CH,Z);CH.prototype.getSeverity=function(){return X(this,1,0)};CH.prototype.setSeverity=function(a){return ul(this,1,a)};CH.prototype.toObject=function(){return cCb(void 0,this)};var cCb=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};
var dCb=function(a){Z.call(this,a)};V(dCb,Z);dCb.prototype.toObject=function(){return eCb(void 0,this)};var eCb=function(a,b){if(null!=b){var c={restrictionVerdict:cCb(a,m(b,CH,1))};a&&(c.$jspbMessageInstance=b);return c}};
var DH=function(a){Z.call(this,a)};V(DH,Z);DH.prototype.getStatus=function(){return X(this,1,0)};DH.prototype.setStatus=function(a){return ul(this,1,a)};DH.prototype.setReason=function(a){ul(this,2,a)};DH.prototype.toObject=function(){return fCb(void 0,this)};var fCb=function(a,b){if(null!=b){var c={status:X(b,1,0),reason:X(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var EH=function(a){Z.call(this,a)};V(EH,Z);g=EH.prototype;g.getRetentionPeriod=function(){return m(this,km,1)};g.setRetentionPeriod=function(a){Gb(this,1,a)};g.hasRetentionPeriod=function(){return mj(this,1)};g.getScheduledDeletionTime=function(){return m(this,tj,2)};g.setScheduledDeletionTime=function(a){Gb(this,2,a)};g.hasScheduledDeletionTime=function(){return mj(this,2)};g.toObject=function(){return gCb(void 0,this)};
var gCb=function(a,b){if(null!=b){var c={retentionPeriod:Hu(a,b.getRetentionPeriod()),scheduledDeletionTime:Nu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};
var hCb=function(a){Z.call(this,a)};V(hCb,Z);g=hCb.prototype;g.getAttachmentId=function(){return fj(this,1)};g.setAttachmentId=function(a){Vk(this,1,a)};g.getFilename=function(){return W(this,4)};g.setFilename=function(a){xl(this,4,a)};g.getEntityStatus=function(){return m(this,DH,6)};g.getEtag=function(){return xm(this,7)};g.setEtag=function(a){ou(this,7,a)};g.getContentVerdict=function(){return m(this,dCb,10)};g.getRestrictedRetentionState=function(){return m(this,EH,11)};
g.toObject=function(){return iCb(void 0,this)};var iCb=function(a,b){if(null!=b){var c={attachmentId:fj(b,1),contentType:W(b,2),length:fj(b,3),filename:W(b,4),attachmentDataRef:bCb(a,m(b,aCb,5)),entityStatus:fCb(a,b.getEntityStatus()),etag:Lb(b.getEtag()),contentVerdict:eCb(a,b.getContentVerdict()),restrictedRetentionState:gCb(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,12,0)};a&&(c.$jspbMessageInstance=b);return c}};
var FH=function(a){Z.call(this,a)};V(FH,Z);g=FH.prototype;g.getValueCase=function(){return ub(this,GH)};g.getCustomFieldId=function(){return fj(this,1)};g.setCustomFieldId=function(a){return Vk(this,1,a)};g.setTextValue=function(a){Yn(this,2,GH,a)};g.getDateValue=function(){return Al(this,Uk,3,GH)};g.setDateValue=function(a){qu(this,3,GH,a)};g.setEnumValue=function(a){Yn(this,4,GH,a)};g.setNumericValue=function(a){Yn(this,5,GH,a)};g.getRepeatedTextValue=function(){return Al(this,HH,6,GH)};
g.setRepeatedTextValue=function(a){qu(this,6,GH,a)};g.getRepeatedDateValue=function(){return Al(this,IH,7,GH)};g.setRepeatedDateValue=function(a){qu(this,7,GH,a)};g.getRepeatedEnumValue=function(){return Al(this,HH,8,GH)};g.setRepeatedEnumValue=function(a){qu(this,8,GH,a)};g.getRepeatedNumericValue=function(){return Al(this,JH,9,GH)};g.setRepeatedNumericValue=function(a){qu(this,9,GH,a)};g.getDisplayString=function(){return W(this,10)};var HH=function(a){Z.call(this,a,-1,jCb)};V(HH,Z);
HH.prototype.getValuesList=function(){return ob(this,1)};HH.prototype.setValuesList=function(a){ll(this,1,a)};var IH=function(a){Z.call(this,a,-1,kCb)};V(IH,Z);IH.prototype.getValuesList=function(){return xb(this,Uk,1)};IH.prototype.setValuesList=function(a){Fb(this,1,a)};var JH=function(a){Z.call(this,a,-1,lCb)};V(JH,Z);JH.prototype.getValuesList=function(){return pb(this,1,Number)};JH.prototype.setValuesList=function(a){ll(this,1,a)};var GH=[2,3,4,5,6,7,8,9];
FH.prototype.toObject=function(){return mCb(void 0,this)};
var mCb=function(a,b){if(null!=b){var c={customFieldId:fj(b,1),textValue:n(Hr(b,2,GH)),dateValue:zv(a,b.getDateValue()),enumValue:n(Hr(b,4,GH)),numericValue:n(mu(b,wb(b,GH,5))),repeatedTextValue:nCb(a,b.getRepeatedTextValue()),repeatedDateValue:oCb(a,b.getRepeatedDateValue()),repeatedEnumValue:nCb(a,b.getRepeatedEnumValue()),repeatedNumericValue:pCb(a,b.getRepeatedNumericValue()),displayString:W(b,10)};a&&(c.$jspbMessageInstance=b);return c}},jCb=[1];
HH.prototype.toObject=function(){return nCb(void 0,this)};var nCb=function(a,b){if(null!=b){var c={valuesList:n(ob(b,1))};a&&(c.$jspbMessageInstance=b);return c}},kCb=[1];IH.prototype.toObject=function(){return oCb(void 0,this)};var oCb=function(a,b){if(null!=b){var c={valuesList:Hb(b.getValuesList(),zv,a)};a&&(c.$jspbMessageInstance=b);return c}},lCb=[1];JH.prototype.toObject=function(){return pCb(void 0,this)};
var pCb=function(a,b){if(null!=b){var c={valuesList:n(pb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var rCb=function(a){Z.call(this,a,-1,qCb)};V(rCb,Z);g=rCb.prototype;g.getCustomFieldId=function(){return fj(this,1)};g.setCustomFieldId=function(a){return Vk(this,1,a)};g.getComponentId=function(){return fj(this,2)};g.setComponentId=function(a){return Vk(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return ul(this,3,a)};g.setRequired=function(a){fo(this,4,a)};g.getName=function(){return W(this,5)};g.setName=function(a){return xl(this,5,a)};
g.getDescription=function(){return W(this,6)};g.setDescription=function(a){return xl(this,6,a)};g.getTypedDefaultValue=function(){return m(this,FH,10)};g.setTypedDefaultValue=function(a){Gb(this,10,a)};g.setFieldSignificance=function(a){return ul(this,9,a)};var qCb=[8];rCb.prototype.toObject=function(){return sCb(void 0,this)};
var sCb=function(a,b){if(null!=b){var c={customFieldId:fj(b,1),componentId:fj(b,2),type:X(b,3,0),required:bj(b,4),name:W(b,5),description:W(b,6),defaultValue:W(b,7),typedDefaultValue:mCb(a,b.getTypedDefaultValue()),enumValuesList:n(ob(b,8)),fieldSignificance:X(b,9,0)};a&&(c.$jspbMessageInstance=b);return c}};
var KH=function(a){Z.call(this,a)};V(KH,Z);KH.prototype.getCustomFieldId=function(){return fj(this,wb(this,LH,1))};KH.prototype.setCustomFieldId=function(a){return Yn(this,1,LH,a)};KH.prototype.hasCustomFieldId=function(){return 1===ub(this,LH)};KH.prototype.setStandardField=function(a){Yn(this,2,LH,a)};var LH=[1,2];KH.prototype.toObject=function(){return tCb(void 0,this)};
var tCb=function(a,b){if(null!=b){var c={customFieldId:n(Hr(b,1,LH)),standardField:n(Hr(b,2,LH))};a&&(c.$jspbMessageInstance=b);return c}};
var Hm=function(a){Z.call(this,a)};V(Hm,Z);Hm.prototype.toObject=function(){return MH(void 0,this)};var MH=function(a,b){if(null!=b){var c={privateDoNotAccessOrElseSafeHtmlWrappedValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var NH=function(a){Z.call(this,a)};V(NH,Z);NH.prototype.getContent=function(){return m(this,Hm,1)};NH.prototype.setContent=function(a){Gb(this,1,a)};NH.prototype.hasContent=function(){return mj(this,1)};NH.prototype.toObject=function(){return uCb(void 0,this)};var uCb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var OH=function(a){Z.call(this,a)};V(OH,Z);OH.prototype.getContent=function(){return m(this,Hm,1)};OH.prototype.setContent=function(a){Gb(this,1,a)};OH.prototype.hasContent=function(){return mj(this,1)};OH.prototype.toObject=function(){return vCb(void 0,this)};var vCb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var wCb=function(a){Z.call(this,a)};V(wCb,Z);g=wCb.prototype;g.getIsQuoted=function(){return bj(this,1)};g.getContent=function(){return m(this,Hm,2)};g.setContent=function(a){Gb(this,2,a)};g.hasContent=function(){return mj(this,2)};g.toObject=function(){return xCb(void 0,this)};var xCb=function(a,b){if(null!=b){var c={isQuoted:bj(b,1),content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var PH=function(a){Z.call(this,a,-1,yCb)};V(PH,Z);PH.prototype.getPlainSectionList=function(){return xb(this,wCb,1)};PH.prototype.addPlainSection=function(a){ru(this,1,wCb,a)};var yCb=[1];PH.prototype.toObject=function(){return zCb(void 0,this)};var zCb=function(a,b){if(null!=b){var c={plainSectionList:Hb(b.getPlainSectionList(),xCb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var ACb=function(a){Z.call(this,a)};V(ACb,Z);g=ACb.prototype;g.getKindCase=function(){return ub(this,QH)};g.getPlainFormat=function(){return Al(this,PH,1,QH)};g.setPlainFormat=function(a){qu(this,1,QH,a)};g.hasPlainFormat=function(){return yl(this,1,QH)};g.getMarkdownFormat=function(){return Al(this,OH,2,QH)};g.setMarkdownFormat=function(a){qu(this,2,QH,a)};g.hasMarkdownFormat=function(){return yl(this,2,QH)};g.getLiteralFormat=function(){return Al(this,NH,3,QH)};
g.setLiteralFormat=function(a){qu(this,3,QH,a)};g.hasLiteralFormat=function(){return yl(this,3,QH)};var QH=[1,2,3];ACb.prototype.toObject=function(){return BCb(void 0,this)};var BCb=function(a,b){if(null!=b){var c={plainFormat:zCb(a,b.getPlainFormat()),markdownFormat:vCb(a,b.getMarkdownFormat()),literalFormat:uCb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var RH=function(a){Z.call(this,a,-1,CCb)};V(RH,Z);g=RH.prototype;g.getEmailAddress=function(){return W(this,1)};g.setEmailAddress=function(a){return xl(this,1,a)};g.getObfuscatedEmailAddress=function(){return W(this,2)};g.setObfuscatedEmailAddress=function(a){xl(this,2,a)};g.getUserGaiaStatus=function(){return X(this,3,0)};g.setUserGaiaStatus=function(a){ul(this,3,a)};g.getAliasesList=function(){return ob(this,4)};g.setAliasesList=function(a){ll(this,4,a)};var CCb=[4];
RH.prototype.toObject=function(){return SH(void 0,this)};var SH=function(a,b){if(null!=b){var c={emailAddress:W(b,1),obfuscatedEmailAddress:W(b,2),userGaiaStatus:X(b,3,0),aliasesList:n(ob(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var TH=function(a){Z.call(this,a,-1,DCb)};V(TH,Z);TH.prototype.getMentionedUser=function(){return m(this,RH,1)};TH.prototype.getState=function(){return X(this,2,0)};var DCb=[3];TH.prototype.toObject=function(){return ECb(void 0,this)};var ECb=function(a,b){if(null!=b){var c={mentionedUser:SH(a,b.getMentionedUser()),state:X(b,2,0),displayEmailList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var GCb=function(a){Z.call(this,a,-1,FCb)};V(GCb,Z);g=GCb.prototype;g.getIssueId=function(){return fj(this,6)};g.setIssueId=function(a){return Vk(this,6,a)};g.getCommentNumber=function(){return fj(this,7)};g.setCommentNumber=function(a){return Vk(this,7,a)};g.getComment=function(){return W(this,1)};g.setComment=function(a){xl(this,1,a)};g.getFormattedComment=function(){return m(this,ACb,16)};g.getMentionsList=function(){return xb(this,TH,14)};g.getFormattingMode=function(){return X(this,9,0)};
g.setFormattingMode=function(a){ul(this,9,a)};g.getAttachmentsList=function(){return xb(this,hCb,2)};g.setAttachmentsList=function(a){Fb(this,2,a)};g.getModifiedTime=function(){return m(this,tj,4)};g.getEntityStatus=function(){return m(this,DH,5)};g.getVersion=function(){return fj(this,8)};g.setVersion=function(a){return Vk(this,8,a)};g.getContentVerdict=function(){return m(this,dCb,10)};g.getRestrictedRetentionState=function(){return m(this,EH,11)};g.getEtag=function(){return xm(this,15)};
g.setEtag=function(a){ou(this,15,a)};var FCb=[14,2];GCb.prototype.toObject=function(){return HCb(void 0,this)};
var HCb=function(a,b){if(null!=b){var c={issueId:fj(b,6),commentNumber:fj(b,7),comment:W(b,1),formattedComment:BCb(a,b.getFormattedComment()),mentionsList:Hb(b.getMentionsList(),ECb,a),formattingMode:X(b,9,0),attachmentsList:Hb(b.getAttachmentsList(),iCb,a),lastEditor:SH(a,m(b,RH,3)),modifiedTime:Nu(a,b.getModifiedTime()),entityStatus:fCb(a,b.getEntityStatus()),version:fj(b,8),contentVerdict:eCb(a,b.getContentVerdict()),restrictedRetentionState:gCb(a,b.getRestrictedRetentionState()),restrictedRetention:X(b,
12,0),redacted:bj(b,13),etag:Lb(b.getEtag())};a&&(c.$jspbMessageInstance=b);return c}};
var JCb=function(a){Z.call(this,a,-1,ICb)};V(JCb,Z);JCb.prototype.setNotificationSubscription=function(a){return ul(this,4,a)};var ICb=[3];JCb.prototype.toObject=function(){return KCb(void 0,this)};var KCb=function(a,b){if(null!=b){var c={hasStarred:bj(b,1),hasUpvoted:bj(b,2),editableCommentNumbersList:n(ob(b,3)),notificationSubscription:X(b,4,0),lastViewedTime:Nu(a,m(b,tj,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Um=function(a){Z.call(this,a)};V(Um,Z);Um.prototype.getHref=function(){return W(this,1)};Um.prototype.toObject=function(){return LCb(void 0,this)};var LCb=function(a,b){if(null!=b){var c={href:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Tm=function(a){Z.call(this,a)};V(Tm,Z);g=Tm.prototype;g.getIssueId=function(){return fj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return fj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.toObject=function(){return MCb(void 0,this)};var MCb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentNumber:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var NCb=function(a){Z.call(this,a)};V(NCb,Z);var Sm=[1,2];NCb.prototype.toObject=function(){return OCb(void 0,this)};var OCb=function(a,b){if(null!=b){var c={hyperlink:LCb(a,Al(b,Um,1,Sm)),issueReference:MCb(a,Al(b,Tm,2,Sm))};a&&(c.$jspbMessageInstance=b);return c}};
var QCb=function(a){Z.call(this,a,-1,PCb)};V(QCb,Z);g=QCb.prototype;g.getIssueId=function(){return fj(this,2)};g.setIssueId=function(a){return Vk(this,2,a)};g.getIssueState=function(){return m(this,RCb,3)};g.getAttachmentsList=function(){return xb(this,hCb,18)};g.setAttachmentsList=function(a){Fb(this,18,a)};g.getCreatedTime=function(){return m(this,tj,5)};g.getModifiedTime=function(){return m(this,tj,6)};g.getResolvedTime=function(){return m(this,tj,7)};
g.getVerifiedTime=function(){return m(this,tj,8)};g.getUserData=function(){return m(this,JCb,9)};g.setUserData=function(a){Gb(this,9,a)};g.setVoteCount=function(a){Vk(this,10,a)};g.getParentIssueIdsList=function(){return ob(this,37)};g.setParentIssueIdsList=function(a){ll(this,37,a)};g.getAccessLimit=function(){return m(this,AF,11)};g.setAccessLimit=function(a){return Gb(this,11,a)};g.getVersion=function(){return fj(this,12)};g.setVersion=function(a){return Vk(this,12,a)};
g.getEtag=function(){return xm(this,13)};g.setEtag=function(a){ou(this,13,a)};g.getCustomFieldsList=function(){return xb(this,rCb,15)};g.getVisibleFieldsList=function(){return xb(this,KH,34)};g.setVisibleFieldsList=function(a){Fb(this,34,a)};g.getSloStatus=function(){return m(this,SCb,16)};g.setSloStatus=function(a){Gb(this,16,a)};g.getSloId=function(){return fj(this,17)};g.setSloId=function(a){return Vk(this,17,a)};g.getTeamId=function(){return fj(this,33)};
g.setTeamId=function(a){return Vk(this,33,a)};g.getRetentionState=function(){return m(this,EH,29)};g.setRetentionState=function(a){Gb(this,29,a)};g.getAncestorsMap=function(){return Zi(this,38,mm)};g.getChildIssueCount=function(){return fj(this,39)};g.setChildIssueCount=function(a){Vk(this,39,a)};g.getIsArchived=function(){return bj(this,40)};g.setIsArchived=function(a){fo(this,40,a)};g.getRelatedLinksList=function(){return xb(this,NCb,41)};var SCb=function(a){Z.call(this,a)};V(SCb,Z);g=SCb.prototype;
g.getAssignmentBounds=function(){return m(this,UH,1)};g.setAssignmentBounds=function(a){Gb(this,1,a)};g.hasAssignmentBounds=function(){return mj(this,1)};g.getResponseBounds=function(){return m(this,UH,2)};g.setResponseBounds=function(a){Gb(this,2,a)};g.hasResponseBounds=function(){return mj(this,2)};g.getClosureBounds=function(){return m(this,UH,3)};g.setClosureBounds=function(a){Gb(this,3,a)};g.hasClosureBounds=function(){return mj(this,3)};var UH=function(a){Z.call(this,a)};V(UH,Z);g=UH.prototype;
g.getStartTime=function(){return m(this,tj,1)};g.setStartTime=function(a){Gb(this,1,a)};g.getEndTime=function(){return m(this,tj,2)};g.setEndTime=function(a){Gb(this,2,a)};g.hasEndTime=function(){return mj(this,2)};g.getTargetTime=function(){return m(this,tj,3)};g.setTargetTime=function(a){Gb(this,3,a)};g.hasTargetTime=function(){return mj(this,3)};var wl=function(a){Z.call(this,a)};V(wl,Z);var mm=function(a){Z.call(this,a,-1,TCb)};V(mm,Z);
mm.prototype.getSourceIssueIdsList=function(){return ob(this,1)};mm.prototype.setSourceIssueIdsList=function(a){return ll(this,1,a)};var RCb=function(a){Z.call(this,a,-1,UCb)};V(RCb,Z);g=RCb.prototype;g.getComponentId=function(){return fj(this,1)};g.setComponentId=function(a){return Vk(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return ul(this,2,a)};g.getStatus=function(){return X(this,3,0)};g.setStatus=function(a){return ul(this,3,a)};
g.getPriority=function(){return X(this,4,0)};g.setPriority=function(a){return ul(this,4,a)};g.getSeverity=function(){return X(this,5,0)};g.setSeverity=function(a){return ul(this,5,a)};g.getTitle=function(){return W(this,6)};g.setTitle=function(a){return xl(this,6,a)};g.getReporter=function(){return m(this,RH,7)};g.setReporter=function(a){Gb(this,7,a)};g.getAssignee=function(){return m(this,RH,8)};g.setAssignee=function(a){Gb(this,8,a)};g.clearAssignee=function(){return Gb(this,8)};
g.getVerifier=function(){return m(this,RH,9)};g.setVerifier=function(a){Gb(this,9,a)};g.clearVerifier=function(){return Gb(this,9)};g.getCcsList=function(){return xb(this,RH,10)};g.addHotlistIds=function(a,b){return tb(this,14,a,b)};g.getCustomFieldsList=function(){return xb(this,FH,15)};g.setInProd=function(a){fo(this,20,a)};g.getIsArchived=function(){return bj(this,21)};g.setIsArchived=function(a){fo(this,21,a)};g.setIsDeleted=function(a){fo(this,23,a)};
g.setDeletionReason=function(a){ul(this,24,a)};g.getEntityStatus=function(){return m(this,DH,25)};g.getSloSnoozeUntil=function(){return m(this,tj,26)};g.setSloSnoozeUntil=function(a){Gb(this,26,a)};g.setPostmortemsList=function(a){ll(this,27,a)};g.getRetention=function(){return X(this,28,0)};g.setRetention=function(a){ul(this,28,a)};g.getEffort=function(){return m(this,wl,29)};g.setEffort=function(a){Gb(this,29,a)};var PCb=[18,37,31,15,34,41];QCb.prototype.toObject=function(){return VCb(void 0,this)};
var VCb=function(a,b){if(null!=b){var c={issueId:fj(b,2),issueState:WCb(a,b.getIssueState()),issueComment:HCb(a,m(b,GCb,4)),attachmentsList:Hb(b.getAttachmentsList(),iCb,a),createdTime:Nu(a,b.getCreatedTime()),modifiedTime:Nu(a,b.getModifiedTime()),majorModifiedTime:Nu(a,m(b,tj,35)),minorModifiedTime:Nu(a,m(b,tj,36)),lastModifier:SH(a,m(b,RH,14)),resolvedTime:Nu(a,b.getResolvedTime()),verifiedTime:Nu(a,b.getVerifiedTime()),userData:KCb(a,b.getUserData()),voteCount:fj(b,10),parentIssueId:fj(b,30),
parentIssueIdsList:n(ob(b,37)),incomingDependencyIdsList:n(ob(b,31)),accessLimit:Lxb(a,b.getAccessLimit()),version:fj(b,12),etag:Lb(b.getEtag()),customFieldsList:Hb(b.getCustomFieldsList(),sCb,a),visibleFieldsList:Hb(b.getVisibleFieldsList(),tCb,a),sloStatus:XCb(a,b.getSloStatus()),sloId:fj(b,17),teamId:fj(b,33),retentionState:gCb(a,b.getRetentionState()),ancestorsMap:Kb(b.getAncestorsMap(),a,YCb),childIssueCount:fj(b,39),isArchived:bj(b,40),relatedLinksList:Hb(b.getRelatedLinksList(),OCb,a)};a&&
(c.$jspbMessageInstance=b);return c}};SCb.prototype.toObject=function(){return XCb(void 0,this)};var XCb=function(a,b){if(null!=b){var c={assignmentBounds:ZCb(a,b.getAssignmentBounds()),responseBounds:ZCb(a,b.getResponseBounds()),closureBounds:ZCb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};UH.prototype.toObject=function(){return ZCb(void 0,this)};
var ZCb=function(a,b){if(null!=b){var c={startTime:Nu(a,b.getStartTime()),endTime:Nu(a,b.getEndTime()),targetTime:Nu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};wl.prototype.toObject=function(){return $Cb(void 0,this)};var $Cb=function(a,b){if(null!=b){var c={specId:fj(b,1),estimate:W(b,2),averageDays:Bl(b,3),totalOpen:Bl(b,4),totalComplete:Bl(b,5)};a&&(c.$jspbMessageInstance=b);return c}},TCb=[1];mm.prototype.toObject=function(){return YCb(void 0,this)};
var YCb=function(a,b){if(null!=b){var c={sourceIssueIdsList:n(ob(b,1))};a&&(c.$jspbMessageInstance=b);return c}},UCb=[10,12,13,14,15,16,17,18,19,22,27];RCb.prototype.toObject=function(){return WCb(void 0,this)};
var WCb=function(a,b){if(null!=b){var c={componentId:fj(b,1),type:X(b,2,0),status:X(b,3,0),priority:X(b,4,0),severity:X(b,5,0),title:W(b,6),reporter:SH(a,b.getReporter()),assignee:SH(a,b.getAssignee()),verifier:SH(a,b.getVerifier()),ccsList:Hb(b.getCcsList(),SH,a),canonicalIssueId:fj(b,11),blockedByIssueIdsList:n(ob(b,12)),blockingIssueIdsList:n(ob(b,13)),hotlistIdsList:n(ob(b,14)),customFieldsList:Hb(b.getCustomFieldsList(),mCb,a),codeChangesList:n(ob(b,16)),foundInVersionsList:n(ob(b,17)),targetedToVersionsList:n(ob(b,
18)),verifiedInVersionsList:n(ob(b,19)),inProd:bj(b,20),isArchived:bj(b,21),duplicateIssueIdsList:n(ob(b,22)),isDeleted:bj(b,23),deletionReason:X(b,24,0),entityStatus:fCb(a,b.getEntityStatus()),sloSnoozeUntil:Nu(a,b.getSloSnoozeUntil()),sloSnoozeType:X(b,30,0),postmortemsList:n(ob(b,27)),retention:X(b,28,0),effort:$Cb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var aDb="TYPE_UNSPECIFIED BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),bDb=Hj({PRIORITY_UNSPECIFIED:0,P0:1,P1:2,P2:3,P3:4,P4:5}),cDb=Hj({SEVERITY_UNSPECIFIED:0,S0:1,S1:2,S2:3,S3:4,S4:5}),dDb=Hj({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}),eDb=Hj({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}),fDb=eDb.slice(0,7),gDb="PRIORITY_UNSPECIFIED P0 P1 P2 P3 P4".split(" ").slice(1),hDb="SEVERITY_UNSPECIFIED S0 S1 S2 S3 S4".split(" ").slice(1),iDb="STATUS_UNSPECIFIED NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE".split(" ").slice(1),jDb=aDb.slice(1),kDb=aDb.slice(1,8),VH={},lDb=(VH.PRIORITY_UNSPECIFIED="(Unspecified Priority)",
VH.P0="P0",VH.P1="P1",VH.P2="P2",VH.P3="P3",VH.P4="P4",VH),WH={},mDb=(WH.SEVERITY_UNSPECIFIED="(Unspecified Severity)",WH.S0="S0",WH.S1="S1",WH.S2="S2",WH.S3="S3",WH.S4="S4",WH),XH={},nDb=(XH.TYPE_UNSPECIFIED="(Unspecified Issue Type)",XH.BUG="Bug",XH.FEATURE_REQUEST="Feature Request",XH.CUSTOMER_ISSUE="Customer Issue",XH.INTERNAL_CLEANUP="Internal Cleanup",XH.PROCESS="Process",XH.VULNERABILITY="Vulnerability",XH.PRIVACY_ISSUE="Privacy Issue",XH.PROJECT="Project",XH.FEATURE="Feature",XH.MILESTONE=
"Milestone",XH.EPIC="Epic",XH.STORY="Story",XH.TASK="Task",XH),YH={},oDb=(YH.STATUS_UNSPECIFIED="(Unspecified Status)",YH.NEW="New",YH.ASSIGNED="Assigned",YH.ACCEPTED="Accepted",YH.FIXED="Fixed",YH.DUPLICATE="Duplicate",YH.VERIFIED="Fixed (Verified)",YH.NOT_REPRODUCIBLE="Won't Fix (Not reproducible)",YH.INTENDED_BEHAVIOR="Won't Fix (Intended behavior)",YH.OBSOLETE="Won't Fix (Obsolete)",YH.INFEASIBLE="Won't Fix (Infeasible)",YH),pDb=gDb.map(function(a){return lDb[a]}),qDb=hDb.map(function(a){return mDb[a]}),
rDb=jDb.map(function(a){return nDb[a]}),sDb=iDb.map(function(a){return oDb[a]}),tDb=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"]]),uDb=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 vDb=new Map(Gj(bDb,pDb)),wDb=new Map(Gj(cDb,qDb)),xDb=new Map(Gj(dDb,sDb)),yDb=new Map(Gj(eDb,rDb)),zDb=new Set("PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" ")),ADb=$i("enableWtdmMvpUi")?jDb:kDb,BDb=ADb.map(function(a){return{value:a,displayText:ZBb(a),altText:uDb.get(a)}}),ZH=function(){this.protoPriorities=bDb;this.protoSeverities=cDb;this.protoStatuses=dDb;this.protoIssueTypes=$i("enableWtdmMvpUi")?eDb:fDb;this.protoIssuePrioritiesEnumStrings=new Map(Gj(bDb,gDb));this.protoIssueSeveritiesEnumStrings=
new Map(Gj(cDb,hDb));this.protoIssueTypesEnumStrings=new Map(Gj(eDb,jDb));this.protoIssueStatusesEnumStrings=new Map(Gj(dDb,iDb));this.priorities=gDb;this.severities=hDb;this.issueTypes=kDb;this.editIssueTypes=ADb;this.editIssueTypeChoices=BDb;Gj(jDb,rDb);this.protoIssuePrioritiesDisplayNames=vDb;this.protoIssueSeveritiesDisplayNames=wDb;this.protoIssueStatusesDisplayNames=xDb;this.protoIssueTypesDisplayNames=yDb;this.protoIssueTypesShortDescriptions=tDb;this.issueTypesShortDescriptions=uDb;this.supportedTimeZones=
[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}]};ZH.\u0275fac=function(a){return new (a||ZH)};ZH.\u0275prov=lc({token:ZH,factory:ZH.\u0275fac,providedIn:"root"});
var $H=function(){this._inset=this._vertical=!1};ji.Object.defineProperties($H.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=bh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=bh(a)}}});$H.\u0275fac=function(a){return new (a||$H)};
$H.\u0275cmp=w({type:$H,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(oe("aria-orientation",b.vertical?"vertical":"horizontal"),te("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 aI=function(a,b){this.constants=a;this.activeSession=b;this.onBulkEdit=new Jw;this.onQuickBulkEdit=new Jw;this.onBulkEditIssueRelation=new Jw;this.onBulkMarkIssueRead=new Jw;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditParentChildRelationship=AH(this.activeSession,"enableBulkEditParentChildRelationship")};aI.prototype.bulkEdit=function(a){this.onBulkEdit.emit(a)};aI.prototype.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};
aI.prototype.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:void 0===b?!0:b})};aI.prototype.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};aI.\u0275fac=function(a){return new (a||aI)(C(ZH),C(yH))};
aI.\u0275cmp=w({type:aI,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:96,vars:20,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["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"],["mat-menu-item","",3,"click",4,"ngIf"],["ccMenu","matMenu"],["mat-menu-item","",3,"matTooltip","click"]],template:function(a,b){a&1&&(F(0,
"b-button-group")(1,"button",0)(2,"span"),P(3,"Edit"),G(),H(4,"b-icon",1),G(),F(5,"button",2),J("click",function(){return b.bulkMarkIssueRead()}),P(6),G(),F(7,"button",0)(8,"span"),P(9,"Link"),G(),H(10,"b-icon",1),G(),F(11,"button",0)(12,"span"),P(13,"CC"),G(),H(14,"b-icon",1),G()(),F(15,"mat-menu",null,3)(17,"button",4),J("click",function(){return b.bulkEdit("ASSIGNEE")}),P(18,"Assignee"),G(),F(19,"button",4),J("click",function(){return b.bulkEdit("COMPONENT")}),P(20,"Component"),G(),F(21,"button",
5),P(22,"Priority"),G(),F(23,"button",5),P(24,"Severity"),G(),F(25,"button",5),P(26,"Status"),G(),F(27,"button",5),P(28,"Type"),G(),F(29,"button",4),J("click",function(){return b.bulkEdit("VERIFIER")}),P(30,"Verifier"),G(),F(31,"button",4),J("click",function(){return b.bulkEdit("REPORTER")}),P(32,"Reporter"),G(),F(33,"button",4),J("click",function(){return b.bulkEdit("CHANGELIST")}),P(34,"Changelist"),G(),F(35,"button",4),J("click",function(){return b.bulkEdit("CUSTOM_FIELDS")}),P(36,"Custom Fields"),
G(),F(37,"button",5),P(38," Archival state "),G(),F(39,"button",4),J("click",function(){return b.bulkEdit("FOUND_IN")}),P(40,"Found In"),G(),F(41,"button",4),J("click",function(){return b.bulkEdit("VERIFIED_IN")}),P(42,"Verified In"),G(),F(43,"button",4),J("click",function(){return b.bulkEdit("TARGETED_TO")}),P(44,"Targeted To"),G(),F(45,"button",5),P(46,"In Prod"),G(),H(47,"mat-divider"),F(48,"button",4),J("click",function(){return b.bulkEdit("COMMENT")}),P(49,"Add Comment"),G()(),F(50,"mat-menu",
null,6),O(52,yna,2,1,"button",7),G(),F(53,"mat-menu",null,8),O(55,zna,2,1,"button",7),G(),F(56,"mat-menu",null,9),O(58,Ana,2,1,"button",7),G(),F(59,"mat-menu",null,10),O(61,Bna,2,2,"button",11),G(),F(62,"mat-menu",null,12)(64,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!0)}),P(65,"Archive"),G(),F(66,"button",4),J("click",function(){return b.quickBulkEdit("IS_ARCHIVED",!1)}),P(67,"Unarchive"),G()(),F(68,"mat-menu",null,13)(70,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",
!0)}),P(71,"In Prod"),G(),F(72,"button",4),J("click",function(){return b.quickBulkEdit("IN_PROD",!1)}),P(73,"Not in Prod"),G()(),F(74,"mat-menu",null,14)(76,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!0)}),P(77,"Mark as Blocked By"),G(),F(78,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!0)}),P(79,"Mark as Blocking"),G(),O(80,Cna,2,0,"button",15),F(81,"button",4),J("click",function(){return b.bulkEditIssueRelation("DUPLICATE")}),P(82,
"Duplicate"),G(),F(83,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKED_BY",!1)}),P(84,"Unmark as Blocked By"),G(),F(85,"button",4),J("click",function(){return b.bulkEditIssueRelation("BLOCKING",!1)}),P(86,"Unmark as Blocking"),G(),O(87,Dna,2,0,"button",15),G(),F(88,"mat-menu",null,16)(90,"button",4),J("click",function(){return b.quickBulkEdit("CC",!0)}),P(91,"CC me"),G(),F(92,"button",4),J("click",function(){return b.quickBulkEdit("CC",!1)}),P(93,"Un-CC me"),G(),F(94,"button",
4),J("click",function(){return b.bulkEdit("CC")}),P(95,"Edit CC"),G()());if(a&2){var c=M(16),d=M(51),e=M(54),f=M(57),h=M(60),k=M(63),q=M(69),u=M(75),x=M(89);B(1);D("disabled",b.isAnonymous)("matMenuTriggerFor",c);B(4);D("disabled",b.isAnonymous);B(1);Je(" ",b.readStatePrompt," ");B(1);D("disabled",b.isAnonymous)("matMenuTriggerFor",u);B(4);D("disabled",b.isAnonymous)("matMenuTriggerFor",x);B(10);D("matMenuTriggerFor",d);B(2);D("matMenuTriggerFor",e);B(2);D("matMenuTriggerFor",f);B(2);D("matMenuTriggerFor",
h);B(10);D("matMenuTriggerFor",k);B(8);D("matMenuTriggerFor",q);B(7);D("ngForOf",b.constants.protoPriorities);B(3);D("ngForOf",b.constants.protoSeverities);B(3);D("ngForOf",b.constants.protoStatuses);B(3);D("ngForOf",b.constants.protoIssueTypes);B(19);D("ngIf",b.enableBulkEditParentChildRelationship);B(7);D("ngIf",b.enableBulkEditParentChildRelationship)}},dependencies:[bF,$E,eF,yx,ux,BH,pH,rB,$H,lF],encapsulation:2,changeDetection:0});
var bI=function(a){this.activeSession=a;this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new Jw;this.flagAsSpamClicked=new Jw;this.isAnonymous=this.activeSession.isAnonymous()};bI.\u0275fac=function(a){return new (a||bI)(C(yH))};
bI.\u0275cmp=w({type:bI,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&&
O(0,Gna,9,4,"ng-container",0);a&2&&D("ngIf",b.showExportCsv||b.showFlagIssuesAsSpam)},dependencies:[bF,$E,eF,ux,BH,rB],encapsulation:2,changeDetection:0});
var cI=function(){};cI.\u0275fac=function(a){return new (a||cI)};cI.\u0275mod=Cc({type:cI});cI.\u0275inj=mc({imports:[Mx]});
var dI=function(){};dI.\u0275fac=function(a){return new (a||dI)};dI.\u0275mod=Cc({type:dI});dI.\u0275inj=mc({imports:[Mx,pF]});
var eI=function(){};eI.\u0275fac=function(a){return new (a||eI)};eI.\u0275mod=Cc({type:eI});eI.\u0275inj=mc({imports:[XA,XA]});
var fI=function(){};fI.\u0275fac=function(a){return new (a||fI)};fI.\u0275mod=Cc({type:fI});fI.\u0275inj=mc({imports:[fF,Mx,dI,cI,uG,eI,mH]});
var gI=function(a,b,c){var d=this;this.activeSession=a;this.connectionChecker=b;this.ssoInterceptorState=c;this.notifyUserAndWaitForGoodConnection$=new U.Observable(function(e){d.ssoInterceptorState.showRefreshSso$.next(!0);var f=d.watchForRestoredConnection$.subscribe(e),h=new U.ReplaySubject(1);d.watchForRestoredConnection$.pipe(jg(h)).subscribe(function(){d.ssoInterceptorState.showRefreshSso$.next(!1)});return function(){h.next();f.unsubscribe()}});this.watchForRestoredConnection$=(0,U.fromEvent)(window,
"focus").pipe(ig(function(){return d.connectionChecker.ok$}),xf(function(e){return e}),Xf(),S(function(){}),eg())};gI.prototype.intercept=function(a,b){return AH(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?CDb(this,b,a):b.handle(a)};
var CDb=function(a,b,c){return new U.Observable(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){DDb(a,b,c,h).pipe(jg(f)).subscribe(d)}}),f=new U.ReplaySubject(1);return function(){f.next();e.unsubscribe()}})},DDb=function(a,b,c,d){return 403===d.status||404===d.status||429===d.status?(0,U.throwError)(d):a.connectionChecker.ok$.pipe(ig(function(e){return e?(0,U.throwError)(d):a.notifyUserAndWaitForGoodConnection$.pipe(ig(function(){return b.handle(c)}))}))};
gI.\u0275fac=function(a){return new (a||gI)(t(yH),t(hI),t(iI))};gI.\u0275prov=lc({token:gI,factory:gI.\u0275fac,providedIn:"root"});var iI=function(){this.showRefreshSso$=new U.BehaviorSubject(!1)};iI.\u0275fac=function(a){return new (a||iI)};iI.\u0275prov=lc({token:iI,factory:iI.\u0275fac,providedIn:"root"});
var hI=function(a){var b=this;this.ngZone=a;this.ok$=new U.Observable(function(c){var d=ui("action/yes",function(){b.ngZone.run(function(){d.isSuccess()?c.next("yes"===d.getResponseText()):c.next(!1);c.complete()})});return function(){d.dispose()}})};hI.\u0275fac=function(a){return new (a||hI)(t(qg))};hI.\u0275prov=lc({token:hI,factory:hI.\u0275fac,providedIn:"root"});var EDb={provide:NE,useClass:gI,multi:!0};
var FDb=function(a,b){return[a,b]},GDb=[[["b-callout-body"]],[["b-callout-actions"]]],jI=function(){this.messageType="info";this.format="default"};jI.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"}};jI.\u0275fac=function(a){return new (a||jI)};
jI.\u0275cmp=w({type:jI,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&we(Pe(2,FDb,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&&(Ee(GDb),F(0,"div",0),H(1,"mat-icon",1),F(2,"div",2),Fe(3),G(),F(4,"div",3),Fe(5,1),G()());a&2&&(B(1),
D("svgIcon",b.getIconName()))},dependencies:[XE],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 kI=function(){};kI.\u0275fac=function(a){return new (a||kI)};kI.\u0275dir=w({type:kI,selectors:[["b-callout-body"],["b-callout-actions"]]});
var lI=function(a,b){this.activeSession=a;this.isAnonymous=this.activeSession.isAnonymous();this.showRefreshSsoMessage$=b.showRefreshSso$};lI.\u0275fac=function(a){return new (a||lI)(C(yH),C(iI))};
lI.\u0275cmp=w({type:lI,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&&(O(0,Mna,7,4,"b-callout",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.showRefreshSsoMessage$))},dependencies:[ux,jI,kI,rB,Fx],encapsulation:2,changeDetection:0});
var Nna=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var HDb=Symbol("lc"),IDb=Symbol("mc"),mI=Symbol("nc"),nI=function(){};nI.prototype.schedule=function(a,b){b=void 0===b?0:b;var c=Mj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[mI]=!0;return}c.resolve(e);d[mI]=!0},b);d[HDb]=b;d[IDb]=c.reject;d[mI]=!1;return c.promise};nI.prototype.cancel=function(a){var b=a[HDb];if(null==b||a[mI])return!1;clearTimeout(b);var c;null==(c=a[IDb])||c.call(a,Error("oc"));return a[mI]=!0};nI.\u0275fac=function(a){return new (a||nI)};
nI.\u0275prov=lc({token:nI,factory:nI.\u0275fac,providedIn:"root"});
var oI=function(a){this.timeout=a};oI.prototype.adapt=function(a){return new JDb(this.timeout,a)};oI.\u0275fac=function(a){return new (a||oI)(t(nI))};oI.\u0275prov=lc({token:oI,factory:oI.\u0275fac,providedIn:"root"});var JDb=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
JDb.prototype.get=function(a){var b=Mj(),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||KDb(this);return b.promise};
var KDb=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={$jscomp$loop$prop$batchedDeferred$1657:b.$jscomp$loop$prop$batchedDeferred$1657},c++){var d=a.batchedInputs[c];b.$jscomp$loop$prop$batchedDeferred$1657=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.$jscomp$loop$prop$batchedDeferred$1657.length;h++)e.$jscomp$loop$prop$batchedDeferred$1657[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=
r(e.$jscomp$loop$prop$batchedDeferred$1657),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];a.isBatchScheduled=!1})};
var Nj=function(a){Z.call(this,a)};V(Nj,Z);Nj.prototype.toObject=function(){return LDb(void 0,this)};var LDb=function(a,b){if(null!=b){var c={principalType:n(p(b,1)),detailedUserType:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var pI=function(a){this.http=a};g=pI.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(S(Rna(b.responseConstructor)))};pI.\u0275fac=function(a){return new (a||pI)(t(ME))};pI.\u0275prov=lc({token:pI,factory:pI.\u0275fac,providedIn:"root"});var qI=function(a){this.jspbExecutor=a};qI.prototype.get=function(a){return(0,U.firstValueFrom)(this.jspbExecutor.get(a))};
qI.prototype.delete=function(a){return(0,U.firstValueFrom)(this.jspbExecutor.delete(a))};qI.prototype.post=function(a){return(0,U.firstValueFrom)(this.jspbExecutor.post(a))};qI.prototype.put=function(a){return(0,U.firstValueFrom)(this.jspbExecutor.put(a))};qI.\u0275fac=function(a){return new (a||qI)(t(pI))};qI.\u0275prov=lc({token:qI,factory:qI.\u0275fac,providedIn:"root"});
var Zs={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"},MDb={ISSUE_ID:"issueId",COMPONENT_ID:"componentId",GROUP_ID:"groupId",HOTLIST_ID:"hotlistId",SAVED_SEARCH_ID:"savedSearchId",SLO_ID:"sloId",TEAM_ID:"teamId"};
var NDb=function(a){Z.call(this,a)};V(NDb,Z);NDb.prototype.toObject=function(){var a=null!=this?{principalTypeInfoMap:Kb(Zi(this,1,Nj),void 0,LDb)}:void 0;return a};NDb.messageId="b.PrincipalTypeInfoBatchResponse";
var rI=function(a,b){this.principalResources=a;this.principalTypeGetter=b.adapt(ODb(this,!1));this.principalTypeWithDetailGetter=b.adapt(ODb(this,!0))},ODb=function(a,b){return function(c){return PDb(a.principalResources,c,b).then(function(d){return Pna(c,d)})}};rI.prototype.get=function(a){return sI(this,a,!1)};var sI=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(Qna)};rI.\u0275fac=function(a){return new (a||rI)(t(tI),t(oI))};
rI.\u0275prov=lc({token:rI,factory:rI.\u0275fac,providedIn:"root"});var tI=function(a){this.executor=a},PDb=function(a,b,c){var d={};d.email=Fj(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:NDb}).then(Ona).then(function(e){for(var f={},h=r(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=e[k];if(q){var u=new Nj;u=l(u,1,q.principalType);q=l(u,2,q.detailedUserType)}else q=null;f[k]=q}return f})};
tI.\u0275fac=function(a){return new (a||tI)(t(qI))};tI.\u0275prov=lc({token:tI,factory:tI.\u0275fac,providedIn:"root"});
var uI=function(a,b){this.cdr=a;this.zone=b;this.destroyed=!1};uI.prototype.ngOnDestroy=function(){this.destroyed=!0};uI.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};uI.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};uI.\u0275fac=function(a){return new (a||uI)(t(nx),t(qg))};uI.\u0275prov=lc({token:uI,factory:uI.\u0275fac});
var vI=function(a,b,c){var d=this;this.session=a;this.principalTypes=b;this.cdr=c;this.showHiringBanner=!1;AH(this.session,"weAreHiring")&&sI(this.principalTypes,this.session.getUserEmail(),!0).then(function(e){d.showHiringBanner=1===X(e,2,0);d.cdr.detectChanges()}).catch(function(){})};vI.\u0275fac=function(a){return new (a||vI)(C(yH),C(rI),C(uI,2))};
vI.\u0275cmp=w({type:vI,selectors:[["b-hiring-banner"]],features:[Me([uI])],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&&O(0,Sna,2,0,"a",0);a&2&&D("ngIf",b.showHiringBanner)},dependencies:[ux],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:-85px;-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 wI=function(){};wI.\u0275fac=function(a){return new (a||wI)};wI.\u0275mod=Cc({type:wI});wI.\u0275inj=mc({imports:[Mx]});
var Oj=function(a,b){this.char=a;this.modifiers=b};
var QDb={category:"Edit Issue Page",keys:[Pj("r")],displayAs:"Shift + r",description:"Refresh"},xI={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[Pj("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:[Qj("p","0"),Qj("p","1"),Qj("p","2"),Qj("p","3"),Qj("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"},REFRESH:QDb,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(L,T,Y){L.addEventListener?L.addEventListener(T,Y,!1):L.attachEvent("on"+T,Y)}function e(L){if("keypress"==L.type){var T=String.fromCharCode(L.which);L.shiftKey||(T=T.toLowerCase());return T}return u[L.which]?u[L.which]:x[L.which]?x[L.which]:String.fromCharCode(L.which).toLowerCase()}function f(L){return"shift"==L||"ctrl"==L||"alt"==L||"meta"==L}function h(L,T){var Y,ja=[];"+"===L?L=["+"]:(L=L.replace(/\+{2}/g,"+plus"),L=L.split("+"));for(Y=0;Y<L.length;++Y){var ha=L[Y];
I[ha]&&(ha=I[ha]);T&&"keypress"!=T&&E[ha]&&(ha=E[ha],ja.push("shift"));f(ha)&&ja.push(ha)}L=ha;Y=T;if(!Y){if(!N){N={};for(var ra in u)95<ra&&112>ra||u.hasOwnProperty(ra)&&(N[u[ra]]=ra)}Y=N[L]?"keydown":"keypress"}"keypress"==Y&&ja.length&&(Y="keydown");return{key:ha,modifiers:ja,action:Y}}function k(L,T){return null===L||L===b?!1:L===T?!0:k(L.parentNode,T)}function q(L){function T(va){va=va||{};var Ba=!1,Ga;for(Ga in Ca)va[Ga]?Ba=!0:Ca[Ga]=0;Ba||(Mb=!1)}function Y(va,Ba,Ga,Xa,$a,ec){var Va,Ya,Sa=
[],vb=Ga.type;if(!Ka._callbacks[va])return[];"keyup"==vb&&f(va)&&(Ba=[va]);for(Va=0;Va<Ka._callbacks[va].length;++Va)if(Ya=Ka._callbacks[va][Va],(Xa||!Ya.seq||Ca[Ya.seq]==Ya.level)&&vb==Ya.action){var fb;(fb="keypress"==vb&&!Ga.metaKey&&!Ga.ctrlKey)||(fb=Ya.modifiers,fb=Ba.sort().join(",")===fb.sort().join(","));fb&&(fb=Xa&&Ya.seq==Xa&&Ya.level==ec,(!Xa&&Ya.combo==$a||fb)&&Ka._callbacks[va].splice(Va,1),Sa.push(Ya))}return Sa}function ja(va,Ba,Ga,Xa){Ka.stopCallback(Ba,Ba.target||Ba.srcElement,Ga,
Xa)||!1!==va(Ba,Ga)||(Ba.preventDefault?Ba.preventDefault():Ba.returnValue=!1,Ba.stopPropagation?Ba.stopPropagation():Ba.cancelBubble=!0)}function ha(va){"number"!==typeof va.which&&(va.which=va.keyCode);var Ba=e(va);if(Ba)if("keyup"==va.type&&jb===Ba)jb=!1;else{var Ga=Ka,Xa=Ga.handleKey,$a=[];va.shiftKey&&$a.push("shift");va.altKey&&$a.push("alt");va.ctrlKey&&$a.push("ctrl");va.metaKey&&$a.push("meta");Xa.call(Ga,Ba,$a,va)}}function ra(va,Ba,Ga,Xa){function $a(Sa){return function(){Mb=Sa;++Ca[va];
clearTimeout(La);La=setTimeout(T,1E3)}}function ec(Sa){ja(Ga,Sa,va);"keyup"!==Xa&&(jb=e(Sa));setTimeout(T,10)}for(var Va=Ca[va]=0;Va<Ba.length;++Va){var Ya=Va+1===Ba.length?ec:$a(Xa||h(Ba[Va+1]).action);Fa(Ba[Va],Ya,Xa,va,Va)}}function Fa(va,Ba,Ga,Xa,$a){Ka._directMap[va+":"+Ga]=Ba;va=va.replace(/\s+/g," ");var ec=va.split(" ");1<ec.length?ra(va,ec,Ba,Ga):(Ga=h(va,Ga),Ka._callbacks[Ga.key]=Ka._callbacks[Ga.key]||[],Y(Ga.key,Ga.modifiers,{type:Ga.action},Xa,va,$a),Ka._callbacks[Ga.key][Xa?"unshift":
"push"]({callback:Ba,modifiers:Ga.modifiers,action:Ga.action,seq:Xa,level:$a,combo:va}))}var Ka=this;L=L||b;if(!(Ka instanceof q))return new q(L);Ka.target=L;Ka._callbacks={};Ka._directMap={};var Ca={},La,jb=!1,db=!1,Mb=!1;Ka._handleKey=function(va,Ba,Ga){var Xa=Y(va,Ba,Ga),$a;Ba={};var ec=0,Va=!1;for($a=0;$a<Xa.length;++$a)Xa[$a].seq&&(ec=Math.max(ec,Xa[$a].level));for($a=0;$a<Xa.length;++$a)Xa[$a].seq?Xa[$a].level==ec&&(Va=!0,Ba[Xa[$a].seq]=1,ja(Xa[$a].callback,Ga,Xa[$a].combo,Xa[$a].seq)):Va||
ja(Xa[$a].callback,Ga,Xa[$a].combo);Xa="keypress"==Ga.type&&db;Ga.type!=Mb||f(va)||Xa||T(Ba);db=Va&&"keydown"==Ga.type};Ka._bindMultiple=function(va,Ba,Ga){for(var Xa=0;Xa<va.length;++Xa)Fa(va[Xa],Ba,Ga)};d(L,"keypress",ha);d(L,"keydown",ha);d(L,"keyup",ha)}if(a){var u={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},
x={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},I={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},N;for(c=1;20>c;++c)u[111+c]="f"+c;for(c=0;9>=c;++c)u[c+96]=c;q.prototype.bind=
function(L,T,Y){L=L instanceof Array?L:[L];this._bindMultiple.call(this,L,T,Y);return this};q.prototype.unbind=function(L,T){return this.bind.call(this,L,function(){},T)};q.prototype.trigger=function(L,T){if(this._directMap[L+":"+T])this._directMap[L+":"+T]({},L);return this};q.prototype.reset=function(){this._callbacks={};this._directMap={};return this};q.prototype.stopCallback=function(L,T){return-1<(" "+T.className+" ").indexOf(" mousetrap ")||k(T,this.target)?!1:"INPUT"==T.tagName||"SELECT"==
T.tagName||"TEXTAREA"==T.tagName||T.isContentEditable};q.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};q.addKeycodes=function(L){for(var T in L)L.hasOwnProperty(T)&&(u[T]=L[T]);N=null};q.init=function(){var L=q(b),T;for(T in L)"_"!==T.charAt(0)&&(q[T]=function(Y){return function(){return L[Y].apply(L,arguments)}}(T))};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 yI=function(){this.destroyed$=new U.ReplaySubject(1);this.subscriptions=new U.Subscription};yI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};yI.\u0275fac=function(a){return new (a||yI)};yI.\u0275dir=w({type:yI});
var zI=function(a){this.params=a||{}};zI.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};zI.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};zI.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};ji.Object.defineProperties(zI.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});
var aoa={exact:eoa,subset:hoa},boa={exact:doa,subset:foa,ignored:function(){return!0}},fk=function(a,b,c){this.root=a;this.queryParams=b;this.fragment=c};fk.prototype.toString=function(){return RDb.serialize(this)};ji.Object.defineProperties(fk.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new zI(this.queryParams));return this._queryParamMap}}});
var bk=function(a,b){var c=this;this.segments=a;this.children=b;this.parent=null;Sj(b,function(d){return d.parent=c})};bk.prototype.hasChildren=function(){return 0<this.numberOfChildren};bk.prototype.toString=function(){return Xj(this)};ji.Object.defineProperties(bk.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var hk=function(a,b){this.path=a;this.parameters=b};hk.prototype.toString=function(){return Wj(this.path)+koa(this.parameters)};
var SDb=function(){},TDb=function(){};TDb.prototype.parse=function(a){a=new UDb(a);AI(a,"/");var b=""===a.remaining||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new bk([],{}):new bk([],VDb(a));return new fk(b,a.parseQueryParams(),AI(a,"#")?decodeURIComponent(a.remaining):null)};TDb.prototype.serialize=function(a){var b="/"+Yj(a.root,!0),c=moa(a.queryParams);a="string"===typeof a.fragment?"#"+encodeURI(a.fragment):"";return b+c+a};
var RDb=new TDb,noa=/^[^\/()?;=#]+/,WDb=/^[^=?&#]+/,XDb=/^[^&#]+/,UDb=function(a){this.remaining=this.url=a};
UDb.prototype.parseQueryParams=function(){var a={};if(AI(this,"?")){do{var b,c=this.remaining.match(WDb);if(b=c?c[0]:""){this.capture(b);c="";if(AI(this,"=")){var d;if(d=(d=this.remaining.match(XDb))?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(AI(this,"&"))}return a};
var VDb=function(a){if(""===a.remaining)return{};AI(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(YDb(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(YDb(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=ZDb(a,!0));var d={};a.remaining.startsWith("(")&&(d=ZDb(a,!1));if(0<b.length||0<Object.keys(c).length)d.primary=new bk(b,c);return d},YDb=function(a){var b=ak(a.remaining);if(""===b&&a.remaining.startsWith(";"))throw Error("rc`"+
a.remaining);a.capture(b);b=decodeURIComponent(b);for(var c={};AI(a,";");){var d=a,e=ak(d.remaining);if(e){d.capture(e);var f="";if(AI(d,"=")){var h=ak(d.remaining);h&&(f=h,d.capture(f))}c[decodeURIComponent(e)]=decodeURIComponent(f)}}return new hk(b,c)},ZDb=function(a,b){var c={};for(a.capture("(");!AI(a,")")&&0<a.remaining.length;){var d=ak(a.remaining),e=a.remaining[d.length];if("/"!==e&&")"!==e&&";"!==e)throw Error("sc`"+a.url);e=void 0;-1<d.indexOf(":")?(e=d.slice(0,d.indexOf(":")),a.capture(e),
a.capture(":")):b&&(e="primary");d=VDb(a);c[e]=1===Object.keys(d).length?d.primary:new bk([],d);AI(a,"//")}return c},AI=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};UDb.prototype.capture=function(a){if(!AI(this,a))throw Error("tc`"+a);};
var roa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&0<c.length&&dk(c[0]))throw Error("uc");if((a=c.find(ek))&&a!==(0<c.length?c[c.length-1]:null))throw Error("vc");},$Db=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};
var BI=function(a,b){this.id=a;this.url=b},dt=function(a,b,c,d){c=void 0===c?"imperative":c;d=void 0===d?null:d;BI.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};V(dt,BI);dt.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var ct=function(a,b,c){BI.call(this,a,b);this.urlAfterRedirects=c;this.type=1};V(ct,BI);
ct.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var CI=function(a,b,c){BI.call(this,a,b);this.reason=c;this.type=2};V(CI,BI);CI.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var aEb=function(a,b,c){BI.call(this,a,b);this.error=c;this.type=3};V(aEb,BI);
aEb.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var bEb=function(a,b,c,d){BI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};V(bEb,BI);bEb.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var cEb=function(a,b,c,d){BI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};V(cEb,BI);
cEb.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var dEb=function(a,b,c,d,e){BI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};V(dEb,BI);
dEb.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var eEb=function(a,b,c,d){BI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};V(eEb,BI);eEb.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var fEb=function(a,b,c,d){BI.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};V(fEb,BI);fEb.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var gEb=function(a){this.route=a;this.type=9};gEb.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var hEb=function(a){this.route=a;this.type=10};
hEb.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var Soa=function(a){this.snapshot=a;this.type=11};Soa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var iEb=function(a){this.snapshot=a;this.type=12};iEb.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var Ak=function(a){this.snapshot=a;this.type=13};Ak.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var jEb=function(a){this.snapshot=a;this.type=14};jEb.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var kEb=function(a,b){this.position=a;this.anchor=b;this.type=15};
kEb.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};
var DI=function(a){this._root=a};DI.prototype.parent=function(a){a=this.pathFromRoot(a);return 1<a.length?a[a.length-2]:null};DI.prototype.children=function(a){return(a=yoa(a,this._root))?a.children.map(function(b){return b.value}):[]};DI.prototype.firstChild=function(a){return(a=yoa(a,this._root))&&0<a.children.length?a.children[0].value:null};DI.prototype.pathFromRoot=function(a){return zoa(a,this._root).map(function(b){return b.value})};
ji.Object.defineProperties(DI.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var kk=function(a,b){this.value=a;this.children=b};kk.prototype.toString=function(){return"TreeNode("+this.value+")"};
var nk=function(a,b){this._root=a;this.snapshot=b;Doa(this,a)};V(nk,DI);nk.prototype.toString=function(){return this.snapshot.toString()};var mk=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;this._futureSnapshot=k};mk.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
ji.Object.defineProperties(mk.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(S(function(a){return new zI(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(S(function(a){return new zI(a)})));return this._queryParamMap}}});
var lk=function(a,b,c,d,e,f,h,k,q,u,x,E){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=u;this._correctedLastPathIndex=null!=E?E:u;this._resolve=x};lk.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
ji.Object.defineProperties(lk.prototype,{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 zI(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap||(this._queryParamMap=new zI(this.queryParams));return this._queryParamMap}}});var jk=function(a,b){this._root=b;this.url=a;Doa(this,b)};V(jk,DI);jk.prototype.toString=function(){return Eoa(this._root)};
var lEb=function(){this.injector=this.resolver=this.route=this.outlet=null;this.children=new EI;this.attachRef=null},EI=function(){this.contexts=new Map},mEb=function(a){var b=a.contexts;a.contexts=new Map;return b},nEb=function(a,b){var c=a.getContext(b);c||(c=new lEb,a.contexts.set(b,c));return c};EI.prototype.getContext=function(a){return this.contexts.get(a)||null};
var FI=function(a,b,c,d,e){this.parentContexts=a;this.location=b;this.changeDetector=d;this.environmentInjector=e;this._activatedRoute=this.activated=null;this.activateEvents=new Jw;this.deactivateEvents=new Jw;this.attachEvents=new Jw;this.detachEvents=new Jw;b=this.name=c||"primary";c=nEb(a,b);c.outlet=this;a.contexts.set(b,c)};g=FI.prototype;g.ngOnDestroy=function(){var a=this.parentContexts.getContext(this.name);a&&(a.outlet=null,a.attachRef=null)};
g.ngOnInit=function(){if(!this.activated){var a=this.parentContexts.getContext(this.name);a&&a.route&&(a.attachRef?this.attach(a.attachRef,a.route):oEb(this,a.route,a.injector))}};g.detach=function(){if(!this.activated)throw Error("xc");this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};g.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);this.attachEvents.emit(a.instance)};
g.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var oEb=function(a,b,c){if(a.isActivated)throw Error("yc");a._activatedRoute=b;var d=a.location,e=b._futureSnapshot.component,f=nEb(a.parentContexts,a.name).children;b=new pEb(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)};
ji.Object.defineProperties(FI.prototype,{isActivated:{configurable:!0,enumerable:!0,get:function(){return!!this.activated}},component:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("xc");return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw Error("xc");return this._activatedRoute}}});FI.\u0275fac=function(a){return new (a||FI)(C(EI),C(Ef),fd("name"),C(nx),C(Hv))};
FI.\u0275dir=w({type:FI,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var pEb=function(a,b,c){this.route=a;this.childContexts=b;this.parent=c};pEb.prototype.get=function(a,b){return a===mk?this.route:a===EI?this.childContexts:this.parent.get(a,b)};
var qk=function(){};qk.\u0275fac=function(a){return new (a||qk)};qk.\u0275cmp=w({type:qk,selectors:[["ng-component"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[FI],encapsulation:2});
var rEb=function(a,b,c){return S(function(d){(new qEb(b,d.targetRouterState,d.currentRouterState,c)).activate(a);return d})},qEb=function(a,b,c,d){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d};qEb.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;sEb(this,b,c,a);Foa(this.futureState.root);GI(this,b,c,a)};
var sEb=function(a,b,c,d){var e=ik(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,u=k?k.value:null;q===u?q.component?(q=d.getContext(q.outlet))&&sEb(a,f,k,q.children):sEb(a,f,k,d):u&&tEb(a,k,d);delete e[h]});Sj(e,function(f){tEb(a,f,d)})},tEb=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=ik(b),f=r(Object.keys(e)),h=f.next();!h.done;h=f.next())tEb(a,e[h.value],c);d&&
d.outlet&&(c=d.outlet.detach(),d=mEb(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=ik(b);e=r(Object.keys(b));for(f=e.next();!f.done;f=e.next())tEb(a,b[f.value],c);d&&d.outlet&&(d.outlet.deactivate(),mEb(d.children),d.attachRef=null,d.resolver=null,d.route=null)}},GI=function(a,b,c,d){var e=ik(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;
Foa(k);if(k===q)k.component?(k=nEb(d,k.outlet),GI(a,f,h,k.children)):GI(a,f,h,d);else if(k.component){h=nEb(d,k.outlet);if(a.routeReuseStrategy.shouldAttach()){var u=a.routeReuseStrategy.retrieve();a.routeReuseStrategy.store(k.snapshot,null);h.children.contexts=u.contexts;h.attachRef=u.componentRef;h.route=u.route.value;h.outlet&&h.outlet.attach(u.componentRef,u.route.value);Foa(u.route.value)}else{q=Loa(k.snapshot);var x=null!=(u=null==q?void 0:q.get(Kv))?u:null;h.attachRef=null;h.route=k;h.resolver=
x;h.injector=q;h.outlet&&oEb(h.outlet,k,h.injector)}GI(a,f,null,h.children)}else GI(a,f,null,d);a.forwardEvent(new jEb(f.value.snapshot))});b.children.length&&a.forwardEvent(new iEb(b.value.snapshot))};
var uk=Symbol("zc");
var Noa=function(a){this.path=a;this.route=this.path[this.path.length-1]},yk=function(a,b){this.component=a;this.route=b};
var Zoa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};
var Dk=function(a){this.segmentGroup=a||null},uEb=function(a){this.urlTree=a},Fk=function(a,b,c,d,e){this.injector=a;this.configLoader=b;this.urlSerializer=c;this.urlTree=d;this.config=e;this.allowRedirects=!0};
Fk.prototype.apply=function(){var a=this,b=Ck(this.urlTree.root,[],[],this.config).segmentGroup;b=new bk(b.segments,b.children);return vEb(this,this.injector,this.config,b,"primary").pipe(S(function(c){return a.createUrlTree(ck(c),a.urlTree.queryParams,a.urlTree.fragment)})).pipe(Sf(function(c){if(c instanceof uEb)return a.allowRedirects=!1,a.match(c.urlTree);if(c instanceof Dk)throw Error("Fc`"+c.segmentGroup);throw c;}))};
Fk.prototype.match=function(a){var b=this;return vEb(this,this.injector,this.config,a.root,"primary").pipe(S(function(c){return b.createUrlTree(ck(c),a.queryParams,a.fragment)})).pipe(Sf(function(c){if(c instanceof Dk)throw Error("Fc`"+c.segmentGroup);throw c;}))};Fk.prototype.createUrlTree=function(a,b,c){a=ooa(a);return new fk(a,b,c)};
var vEb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?wEb(a,b,c,d).pipe(S(function(f){return new bk([],f)})):xEb(a,b,d,c,d.segments,e,!0)},wEb=function(a,b,c,d){for(var e=[],f=r(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,U.from)(e).pipe(qf(function(k){var q=d.children[k],u=Koa(c,k);return vEb(a,b,u,q,k).pipe(S(function(x){return{segment:x,outlet:k}}))},1),bg(function(k,q){k[q.outlet]=q.segment;return k},{}),iha())},
xEb=function(a,b,c,d,e,f,h){return(0,U.from)(d).pipe(qf(function(k){return yEb(a,b,c,d,k,e,f,h).pipe(Sf(function(q){if(q instanceof Dk)return(0,U.of)(null);throw q;}))},1),$f(function(k){return!!k}),Sf(function(k){if(k instanceof U.EmptyError||"EmptyError"===k.name)return 0!==e.length||c.children[f]?Ek(c):(0,U.of)(new bk([],{}));throw k;}))},yEb=function(a,b,c,d,e,f,h,k){if(cpa(e,c,f,h))if(void 0===e.redirectTo)a=zEb(a,b,c,e,f,h);else{var q;k&&a.allowRedirects?q="**"===e.path?AEb(a,b,d,e,h):BEb(a,
b,c,d,e,f,h):q=Ek(c);a=q}else a=Ek(c);return a},AEb=function(a,b,c,d,e){var f=CEb(a,[],d.redirectTo,{});return d.redirectTo.startsWith("/")?(0,U.throwError)(new uEb(f)):DEb(d,f).pipe(qf(function(h){var k=new bk(h,{});return xEb(a,b,k,c,h,e,!1)}))},BEb=function(a,b,c,d,e,f,h){f=Yoa(c,e,f);var k=f.consumedSegments,q=f.remainingSegments,u=f.positionalParamSegments;if(!f.matched)return Ek(c);f=CEb(a,k,e.redirectTo,u);return e.redirectTo.startsWith("/")?(0,U.throwError)(new uEb(f)):DEb(e,f).pipe(qf(function(x){return xEb(a,
b,c,d,x.concat(q),h,!1)}))},zEb=function(a,b,c,d,e,f){return"**"===d.path?(b=Joa(d,b),d.loadChildren?(d._loadedRoutes?(0,U.of)({routes:d._loadedRoutes,injector:d._loadedInjector}):a.configLoader.loadChildren(b,d)).pipe(S(function(h){d._loadedRoutes=h.routes;d._loadedInjector=h.injector;return new bk(e,{})})):(0,U.of)(new bk(e,{}))):$oa(c,d,e,b,a.urlSerializer).pipe(ig(function(h){var k=h.consumedSegments,q=h.remainingSegments;if(!h.matched)return Ek(c);b=Joa(d,b);return EEb(a,b,d,e).pipe(qf(function(u){var x,
E=null!=(x=u.injector)?x:b;u=u.routes;var I=Ck(c,k,q,u);x=I.segmentGroup;I=I.slicedSegments;x=new bk(x.segments,x.children);return 0===I.length&&x.hasChildren()?wEb(a,E,u,x).pipe(S(function(N){return new bk(k,N)})):0===u.length&&0===I.length?(0,U.of)(new bk(k,{})):xEb(a,E,x,u,I,rk(d)===f?"primary":f,!0).pipe(S(function(N){return new bk(k.concat(N.segments),N.children)}))}))}))},EEb=function(a,b,c,d){return c.children?(0,U.of)({routes:c.children,injector:b}):c.loadChildren?void 0!==c._loadedRoutes?
(0,U.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):Woa(b,c,d,a.urlSerializer).pipe(qf(function(e){return e?a.configLoader.loadChildren(b,c).pipe(kg(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):(0,U.throwError)(Yna("Cannot load children because the guard of the route \"path: '"+c.path+"'\" returned false"))})):(0,U.of)({routes:[],injector:b})},DEb=function(a,b){var c=[];for(b=b.root;;){c=c.concat(b.segments);if(0===b.numberOfChildren)return(0,U.of)(c);if(1<b.numberOfChildren||
!b.children.primary)return(0,U.throwError)(Error("Ec`"+a.redirectTo));b=b.children.primary}},CEb=function(a,b,c,d){var e=a.urlSerializer.parse(c);b=FEb(a,c,e.root,b,d);return new fk(b,GEb(e.queryParams,a.urlTree.queryParams),e.fragment)},GEb=function(a,b){var c={};Sj(a,function(d,e){c[e]="string"===typeof d&&d.startsWith(":")?b[d.substring(1)]:d});return c},FEb=function(a,b,c,d,e){var f=HEb(b,c.segments,d,e),h={};Sj(c.children,function(k,q){h[q]=FEb(a,b,k,d,e)});return new bk(f,h)},HEb=function(a,
b,c,d){return b.map(function(e){if(e.path.startsWith(":")){var f=d[e.path.substring(1)];if(!f)throw Error("Gc`"+a+"`"+e.path);e=f}else a:{f=0;for(var h=r(c),k=h.next();!k.done;k=h.next()){k=k.value;if(k.path===e.path){c.splice(f);e=k;break a}f++}}return e})};
var epa=function(){},gpa=function(a,b,c,d,e,f,h,k){this.injector=a;this.rootComponentType=b;this.config=c;this.urlTree=d;this.url=e;this.paramsInheritanceStrategy=f;this.relativeLinkResolution=h;this.urlSerializer=k};
gpa.prototype.recognize=function(){var a=this,b=Ck(this.urlTree.root,[],[],this.config.filter(function(c){return void 0===c.redirectTo}),this.relativeLinkResolution).segmentGroup;return IEb(this,this.injector,this.config,b,"primary").pipe(S(function(c){if(null===c)return null;var d=new lk([],Object.freeze({}),Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,{},"primary",a.rootComponentType,null,a.urlTree.root,-1,{});c=new jk(a.url,new kk(d,c));JEb(a,c._root);return c}))};
var JEb=function(a,b){var c=b.value,d=Coa(c,a.paramsInheritanceStrategy);c.params=Object.freeze(d.params);c.data=Object.freeze(d.data);b.children.forEach(function(e){return JEb(a,e)})},IEb=function(a,b,c,d,e){return 0===d.segments.length&&d.hasChildren()?a.processChildren(b,c,d):KEb(a,b,c,d,d.segments,e)};
gpa.prototype.processChildren=function(a,b,c){var d=this;return(0,U.from)(Object.keys(c.children)).pipe(qf(function(e){var f=c.children[e],h=Koa(b,e);return IEb(d,a,h,f,e)},1),bg(function(e,f){if(!e||!f)return null;e.push.apply(e,v(f));return e}),vha(function(e){return null!==e}),Uf(null),iha(),S(function(e){if(null===e)return null;e=kpa(e);ipa(e);return e}))};
var KEb=function(a,b,c,d,e,f){return(0,U.from)(c).pipe(qf(function(h){var k;return LEb(a,null!=(k=h._injector)?k:b,h,d,e,f)},1),$f(function(h){return!!h}),Sf(function(h){if(h instanceof U.EmptyError)return 0!==e.length||d.children[f]?(0,U.of)(null):(0,U.of)([]);throw h;}))},LEb=function(a,b,c,d,e,f){if(c.redirectTo||!cpa(c,d,e,f))return(0,U.of)(null);if("**"===c.path){var h=mpa(d)+e.length;var k,q;e=new lk(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||{},rk(c),null!=(q=null!=(k=c.component)?k:c._loadedComponent)?q:null,c,lpa(d),h,c.resolve||{},h);h=(0,U.of)({snapshot:e,consumedSegments:[],remainingSegments:[]})}else h=$oa(d,c,e,b,a.urlSerializer).pipe(S(function(u){var x=u.consumedSegments,E=u.remainingSegments;if(!u.matched)return null;var I=mpa(d)+x.length,N,L;return{snapshot:new lk(x,u.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,c.data||{},rk(c),null!=(L=null!=(N=c.component)?
N:c._loadedComponent)?L:null,c,lpa(d),I,c.resolve||{},I),consumedSegments:x,remainingSegments:E}}));return h.pipe(ig(function(u){if(null===u)return(0,U.of)(null);var x=u.snapshot,E=u.consumedSegments,I=u.remainingSegments;b=Joa(c,b);var N;u=null!=(N=c._loadedInjector)?N:b;N=c.children?c.children:c.loadChildren?c._loadedRoutes:[];I=Ck(d,E,I,N.filter(function(L){return void 0===L.redirectTo}),a.relativeLinkResolution);E=I.segmentGroup;I=I.slicedSegments;return 0===I.length&&E.hasChildren()?a.processChildren(u,
N,E).pipe(S(function(L){return null===L?null:[new kk(x,L)]})):0===N.length&&0===I.length?(0,U.of)([new kk(x,[])]):KEb(a,u,N,E,I,rk(c)===f?"primary":f).pipe(S(function(L){return null===L?null:[new kk(x,L)]}))}))};
var qpa=Symbol("Hc");
var MEb=function(){},NEb=function(){};g=NEb.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 OEb=function(){};V(OEb,NEb);
var PEb=new sd("ROUTES"),HI=function(a){this.injector=a;this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap};
HI.prototype.loadComponent=function(a){var b=this;if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,U.of)(a._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(a);var c=Tj(a.loadComponent()).pipe(kg(function(d){if(b.onLoadEndListener)b.onLoadEndListener(a);a._loadedComponent=d}),Zf(function(){b.componentLoaders.delete(a)}));c=(new U.ConnectableObservable(c,function(){return new U.Subject})).pipe(ef());this.componentLoaders.set(a,
c);return c};
HI.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return(0,U.of)({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=QEb(this,b.loadChildren).pipe(S(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(PEb,[],10))}return{routes:e.map(pk),injector:f}}),Zf(function(){c.childrenLoaders.delete(b)}));
d=(new U.ConnectableObservable(d,function(){return new U.Subject})).pipe(ef());this.childrenLoaders.set(b,d);return d};var QEb=function(a,b){return"string"===typeof b?(0,U.from)(a.injector.get(xnb).load(b)):Tj(b()).pipe(qf(function(c){return c instanceof Tlb||Array.isArray(c)?(0,U.of)(c):(0,U.from)(Promise.resolve(new Uv(c)))}))};HI.\u0275fac=function(a){return new (a||HI)(t(Iv),t(Zv))};HI.\u0275prov=lc({token:HI,factory:HI.\u0275fac});
var REb=function(){};REb.prototype.extract=function(a){return a};REb.prototype.merge=function(a){return a};
var SEb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TEb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gk=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.currentNavigation=this.lastSuccessfulNavigation=null;this.disposed=!1;this.currentPageId=this.navigationId=0;this.events=new U.Subject;this.errorHandler=vpa;this.malformedUriErrorHandler=wpa;this.navigated=
!1;this.lastSuccessfulId=-1;this.afterPreactivation=function(){return(0,U.of)(void 0)};this.urlHandlingStrategy=new REb;this.routeReuseStrategy=new OEb;this.onSameUrlNavigation="ignore";this.paramsInheritanceStrategy="emptyOnly";this.urlUpdateStrategy="deferred";this.relativeLinkResolution="corrected";this.canceledNavigationResolution="replace";this.configLoader=e.get(HI);this.configLoader.onLoadEndListener=function(q){k.events.next(new hEb(q))};this.configLoader.onLoadStartListener=function(q){k.events.next(new gEb(q))};
this.ngModule=e.get(Lv);this.console=e.get(Yv);e.get(qg)instanceof qg&&Mw();this.config=h.map(pk);this.navigated=!1;this.lastSuccessfulId=-1;this.browserUrlTree=this.rawUrlTree=this.currentUrlTree=new fk(new bk([],{}),{},null);this.routerState=Aoa(this.currentUrlTree,this.rootComponentType);this.transitions=new U.BehaviorSubject({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl: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=UEb(this,this.transitions);VEb(this)},UEb=function(a,b){var c=a.events;return b.pipe(xf(function(d){return 0!==d.id}),S(function(d){return Object.assign({},d,{extractedUrl:a.urlHandlingStrategy.extract(d.rawUrl)})}),
ig(function(d){var e=!1,f=!1;return(0,U.of)(d).pipe(kg(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}}),ig(function(h){var k=a.browserUrlTree.toString();k=!a.navigated||h.extractedUrl.toString()!==k||k!==a.currentUrlTree.toString();if("reload"===a.onSameUrlNavigation||k)return"imperative"!==h.source&&(a.browserUrlTree=
h.extractedUrl),(0,U.of)(h).pipe(ig(function(E){var I=a.transitions.getValue();c.next(new dt(E.id,II(a,E.extractedUrl),E.source,E.restoredState));return I!==a.transitions.getValue()?U.EMPTY:Promise.resolve(E)}),dpa(a.ngModule.injector,a.configLoader,a.urlSerializer,a.config),kg(function(E){a.currentNavigation=Object.assign({},a.currentNavigation,{finalUrl:E.urlAfterRedirects})}),npa(a.ngModule.injector,a.rootComponentType,a.config,a.urlSerializer,a.paramsInheritanceStrategy,a.relativeLinkResolution),
kg(function(E){if("eager"===a.urlUpdateStrategy){if(!E.extras.skipLocationChange){var I=a.urlHandlingStrategy.merge(E.urlAfterRedirects,E.rawUrl);WEb(a,I,E)}a.browserUrlTree=E.urlAfterRedirects}E=new bEb(E.id,II(a,E.extractedUrl),II(a,E.urlAfterRedirects),E.targetSnapshot);c.next(E)}));if(k&&a.rawUrlTree){k=h.extractedUrl;var q=h.source,u=h.restoredState,x=h.extras;q=new dt(h.id,II(a,k),q,u);c.next(q);q=Aoa(k,a.rootComponentType).snapshot;return(0,U.of)(Object.assign({},h,{targetSnapshot:q,urlAfterRedirects:k,
extras:Object.assign({},x,{skipLocationChange:!1,replaceUrl:!1})}))}a.rawUrlTree=h.rawUrl;h.resolve(null);return U.EMPTY}),kg(function(h){h=new cEb(h.id,II(a,h.extractedUrl),II(a,h.urlAfterRedirects),h.targetSnapshot);a.events.next(h)}),S(function(h){var k=Object,q=k.assign;var u=h.currentSnapshot;var x=h.targetSnapshot._root;u=xk(x,u?u._root:null,a.rootContexts,[x.value]);return q.call(k,{},h,{guards:u})}),Qoa(a.ngModule.injector,function(h){a.events.next(h)}),kg(function(h){if(tk(h.guardsResult)){var k=
Yna('Redirecting to "'+II(a,h.guardsResult)+'"');k.url=h.guardsResult;throw k;}h=new dEb(h.id,II(a,h.extractedUrl),II(a,h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);a.events.next(h)}),xf(function(h){return h.guardsResult?!0:(XEb(a,h),YEb(a,h,""),!1)}),upa(function(h){if(h.guards.canActivateChecks.length)return(0,U.of)(h).pipe(kg(function(k){k=new eEb(k.id,II(a,k.extractedUrl),II(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}),ig(function(k){var q=!1;return(0,U.of)(k).pipe(ppa(a.paramsInheritanceStrategy,
a.ngModule.injector),kg({next:function(){return q=!0},complete:function(){q||(XEb(a,k),YEb(a,k,"At least one route resolver didn't emit any value."))}}))}),kg(function(k){k=new fEb(k.id,II(a,k.extractedUrl),II(a,k.urlAfterRedirects),k.targetSnapshot);a.events.next(k)}))}),upa(function(){return a.afterPreactivation()}),upa(function(h){var k=function(q){var u=[],x;(null==(x=q.routeConfig)?0:x.loadComponent)&&!q.routeConfig._loadedComponent&&u.push(a.configLoader.loadComponent(q.routeConfig).pipe(kg(function(I){q.component=
I}),S(function(){})));x=r(q.children);for(var E=x.next();!E.done;E=x.next())u.push.apply(u,v(k(E.value)));return u};return(0,U.combineLatest)(k(h.targetSnapshot.root)).pipe(Uf(),Xf())}),S(function(h){var k=h.targetSnapshot;var q=h.currentRouterState;q=ok(a.routeReuseStrategy,k._root,q?q._root:void 0);k=new nk(q,k);return Object.assign({},h,{targetRouterState:k})}),kg(function(h){a.currentUrlTree=h.urlAfterRedirects;a.rawUrlTree=a.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);a.routerState=
h.targetRouterState;"deferred"===a.urlUpdateStrategy&&(h.extras.skipLocationChange||WEb(a,a.rawUrlTree,h),a.browserUrlTree=h.urlAfterRedirects)}),rEb(a.rootContexts,a.routeReuseStrategy,function(h){a.events.next(h)}),kg({next:function(){e=!0},complete:function(){e=!0}}),Zf(function(){e||f||YEb(a,d,"Navigation ID "+d.id+" is not equal to the current navigation id "+a.navigationId);var h;(null==(h=a.currentNavigation)?void 0:h.id)===d.id&&(a.currentNavigation=null)}),Sf(function(h){f=!0;if(h&&h.ngNavigationCancelingError){var k=
tk(h.url);k||(a.navigated=!0,XEb(a,d,!0));var q=new CI(d.id,II(a,d.extractedUrl),h.message);c.next(q);k?(h=a.urlHandlingStrategy.merge(h.url,a.rawUrlTree),ZEb(a,h,"imperative",null,{skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||"imperative"!==d.source},{resolve:d.resolve,reject:d.reject,promise:d.promise})):d.resolve(!1)}else{XEb(a,d,!0);k=new aEb(d.id,II(a,d.extractedUrl),h);c.next(k);try{d.resolve(a.errorHandler(h))}catch(u){d.reject(u)}}return U.EMPTY}))}))};
Gk.prototype.setTransition=function(a){this.transitions.next(Object.assign({},this.transitions.value,a))};Gk.prototype.initialNavigation=function(){$Eb(this);0===this.navigationId&&Ys(this,this.location.path(!0),{replaceUrl:!0})};
var $Eb=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;f&&(e=Object.assign({},f),delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(d.state=e));e=aFb(a,b.url);ZEb(a,e,c,f,d)},0)}))};Gk.prototype.ngOnDestroy=function(){this.dispose()};
Gk.prototype.dispose=function(){this.transitions.complete();this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0);this.disposed=!0};
Gk.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=bFb(c));b=this.currentUrlTree;d=null!=d?d:null;if(0===a.length)b=qoa(b.root,b.root,b.root,c,d);else if(a=soa(a),a.isAbsolute&&1===
a.commands.length&&"/"==a.commands[0])b=qoa(b.root,b.root,new bk([],{}),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 $Db(b.root,!0,0);else if(-1===h)k=new $Db(f,f===b.root,0);else{k=f;f=h+(dk(a.commands[0])?0:1);for(e=a.numberOfDoubleDots;e>f;){e-=f;k=k.parent;if(!k)throw Error("wc");f=k.segments.length}k=new $Db(k,!1,f-e)}a=k.processChildren?gk(k.segmentGroup,k.index,a.commands):voa(k.segmentGroup,k.index,a.commands);
b=qoa(b.root,k.segmentGroup,a,c,d)}return b};var Ys=function(a,b,c){c=void 0===c?{skipLocationChange:!1}:c;b=tk(b)?b:aFb(a,b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return ZEb(a,b,"imperative",null,c)};Gk.prototype.navigate=function(a,b){b=void 0===b?{skipLocationChange:!1}:b;for(var c=0;c<a.length;c++){var d=a[c];if(null==d)throw Error("Ic`"+d+"`"+c);}return Ys(this,this.createUrlTree(a,b),b)};
var II=function(a,b){return a.urlSerializer.serialize(b)},aFb=function(a,b){try{var c=a.urlSerializer.parse(b)}catch(d){c=a.malformedUriErrorHandler(d,a.urlSerializer,b)}return c};Gk.prototype.isActive=function(a,b){var c;!0===b?c=Object.assign({},SEb):!1===b?c=Object.assign({},TEb):c=b;if(tk(a))return coa(this.currentUrlTree,a,c);a=aFb(this,a);return coa(this.currentUrlTree,a,c)};
var bFb=function(a){return Object.keys(a).reduce(function(b,c){var d=a[c];null!==d&&void 0!==d&&(b[c]=d);return b},{})},VEb=function(a){a.navigations.subscribe(function(b){a.navigated=!0;a.lastSuccessfulId=b.id;a.currentPageId=b.targetPageId;a.events.next(new ct(b.id,II(a,b.extractedUrl),II(a,a.currentUrlTree)));a.lastSuccessfulNavigation=a.currentNavigation;var c;null==(c=a.titleStrategy)||c.updateTitle(a.routerState.snapshot);b.resolve(!0)},function(b){a.console.warn("Unhandled Navigation Error: "+
b)})},ZEb=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(I,N){h=I;k=N});var q=++a.navigationId;if("computed"===a.canceledNavigationResolution)if(0===a.currentPageId&&(d=a.location.getState()),d&&d.\u0275routerPageId)var u=d.\u0275routerPageId;else if(e.replaceUrl||e.skipLocationChange){var x;u=null!=(x=a.browserPageId)?x:0}else{var E;u=(null!=(E=a.browserPageId)?E:0)+1}else u=0;a.setTransition({id:q,targetPageId:u,
source:c,restoredState:d,currentUrlTree:a.currentUrlTree,currentRawUrl:a.rawUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(I){return Promise.reject(I)})},WEb=function(a,b,c){b=a.urlSerializer.serialize(b);var d=Object.assign({},c.extras.state,cFb(a,c.id,c.targetPageId)),e=a.location;var f=void 0===f?"":f;e.path()==e.normalize(b+Jg(f))||c.extras.replaceUrl?a.location.replaceState(b,"",d):a.location.go(b,
"",d)},XEb=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.currentNavigation)?void 0:d.finalUrl)||0===c){var e;a.currentUrlTree===(null==(e=a.currentNavigation)?void 0:e.finalUrl)&&0===c&&(a.resetState(b),a.browserUrlTree=b.currentUrlTree,dFb(a))}else a.location.historyGo(c)}else"replace"===a.canceledNavigationResolution&&(c&&a.resetState(b),
dFb(a))};Gk.prototype.resetState=function(a){this.routerState=a.currentRouterState;this.currentUrlTree=a.currentUrlTree;this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)};
var dFb=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",cFb(a,a.lastSuccessfulId,a.currentPageId))},YEb=function(a,b,c){c=new CI(b.id,II(a,b.extractedUrl),c);a.events.next(c);b.resolve(!1)},cFb=function(a,b,c){return"computed"===a.canceledNavigationResolution?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
ji.Object.defineProperties(Gk.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 II(this,this.currentUrlTree)}}});Gk.\u0275fac=function(){Ad()};Gk.\u0275prov=lc({token:Gk,factory:Gk.\u0275fac});
var JI=function(a,b,c,d,e){this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.commands=null;this.onChanges=new U.Subject;eFb(this,"0")},eFb=function(a,b){if(null==a.tabIndexAttribute){var c=a.renderer;a=a.el.nativeElement;null!==b?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};JI.prototype.ngOnChanges=function(){this.onChanges.next(this)};
JI.prototype.onClick=function(){if(null===this.urlTree)return!0;Ys(this.router,this.urlTree,{skipLocationChange:tg(this.skipLocationChange),replaceUrl:tg(this.replaceUrl),state:this.state});return!0};
ji.Object.defineProperties(JI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?(this.commands=Array.isArray(a)?a:[a],eFb(this,"0")):(this.commands=null,eFb(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:tg(this.preserveFragment)})}}});
JI.\u0275fac=function(a){return new (a||JI)(C(Gk),C(mk),fd("tabindex"),C(Nv),C(wd))};JI.\u0275dir=w({type:JI,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Jc]});
var KI=function(a,b,c){var d=this;this.router=a;this.route=b;this.locationStrategy=c;this.href=this.commands=null;this.onChanges=new U.Subject;this.subscription=a.events.subscribe(function(e){e instanceof ct&&fFb(d)})};KI.prototype.ngOnChanges=function(){fFb(this);this.onChanges.next(this)};KI.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
KI.prototype.onClick=function(a,b,c,d,e){if(0!==a||b||c||d||e||"string"===typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;Ys(this.router,this.urlTree,{skipLocationChange:tg(this.skipLocationChange),replaceUrl:tg(this.replaceUrl),state:this.state});return!1};var fFb=function(a){a.href=null!==a.urlTree?a.locationStrategy.prepareExternalUrl(II(a.router,a.urlTree)):null};
ji.Object.defineProperties(KI.prototype,{routerLink:{configurable:!0,enumerable:!0,set:function(a){null!=a?this.commands=Array.isArray(a)?a:[a]:this.commands=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:tg(this.preserveFragment)})}}});
KI.\u0275fac=function(a){return new (a||KI)(C(Gk),C(mk),C(Px))};
KI.\u0275dir=w({type:KI,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&oe("target",b.target)("href",b.href,Ud)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",
routerLink:"routerLink"},features:[Jc]});
var LI=function(a,b,c,d,e,f){var h=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.linkWithHref=f;this.classes=[];this.isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new Jw;this.routerEventsSubscription=a.events.subscribe(function(k){k instanceof ct&&h.update()})};LI.prototype.ngAfterContentInit=function(){var a=this;(0,U.of)(this.links.changes,this.linksWithHrefs.changes,(0,U.of)(null)).pipe(rf()).subscribe(function(){a.update();gFb(a)})};
var gFb=function(a){var b;null==(b=a.linkInputChangesSubscription)||b.unsubscribe();b=[].concat(v(a.links.toArray()),v(a.linksWithHrefs.toArray()),[a.link,a.linkWithHref]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=(0,U.from)(b).pipe(rf()).subscribe(function(c){a.isActive!==hFb(a,a.router)(c)&&a.update()})};LI.prototype.ngOnChanges=function(){this.update()};
LI.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;null==(a=this.linkInputChangesSubscription)||a.unsubscribe()};
LI.prototype.update=function(){var a=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var b=iFb(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 hFb=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}},iFb=function(a){var b=hFb(a,a.router);return a.link&&b(a.link)||a.linkWithHref&&b(a.linkWithHref)||a.links.some(b)||a.linksWithHrefs.some(b)};
ji.Object.defineProperties(LI.prototype,{routerLinkActive:{configurable:!0,enumerable:!0,set:function(a){this.classes=(Array.isArray(a)?a:a.split(" ")).filter(function(b){return!!b})}}});LI.\u0275fac=function(a){return new (a||LI)(C(Gk),C(wd),C(Nv),C(nx),C(JI,8),C(KI,8))};
LI.\u0275dir=w({type:LI,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&(If(c,JI,5),If(c,KI,5));if(a&2){var d;Gf(d=Jf())&&(b.links=d);Gf(d=Jf())&&(b.linksWithHrefs=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Jc]});
var jFb=function(){},kFb=function(a){for(a=a.root;void 0!==a;){var b=void 0;var c=null!=(b=a.data[qpa])?b:c;a=a.children.find(function(d){return"primary"===d.outlet})}return c},MI=function(a){this.title=a};V(MI,jFb);MI.prototype.updateTitle=function(a){a=kFb(a);void 0!==a&&this.title.setTitle(a)};MI.\u0275fac=function(a){return new (a||MI)(t(Zy))};MI.\u0275prov=lc({token:MI,factory:MI.\u0275fac,providedIn:"root"});
var lFb=function(){},mFb=function(){};mFb.prototype.preload=function(a,b){return b().pipe(Sf(function(){return(0,U.of)(null)}))};var nFb=function(){};nFb.prototype.preload=function(){return(0,U.of)(null)};var NI=function(a,b,c,d,e){this.router=a;this.injector=c;this.preloadingStrategy=d;this.loader=e},oFb=function(a){a.subscription=a.router.events.pipe(xf(function(b){return b instanceof ct}),qf(function(){return a.preload()},1)).subscribe(function(){})};
NI.prototype.preload=function(){return pFb(this,this.injector,this.router.config)};NI.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var pFb=function(a,b,c){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;e.providers&&!e._injector&&(e._injector=Aea(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||e.loadComponent&&!e._loadedComponent)d.push(qFb(a,h,e));else if(e.children||e._loadedRoutes)h=void 0,d.push(pFb(a,f,null!=(h=e.children)?h:e._loadedRoutes))}return(0,U.from)(d).pipe(rf())},qFb=function(a,b,c){return a.preloadingStrategy.preload(c,
function(){var d=(c.loadChildren&&void 0===c.canLoad?a.loader.loadChildren(b,c):(0,U.of)(null)).pipe(qf(function(f){if(null===f)return(0,U.of)(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return pFb(a,null!=(h=f.injector)?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(c);return(0,U.from)([d,e]).pipe(rf())}return d})};NI.\u0275fac=function(a){return new (a||NI)(t(Gk),t(Zv),t(Hv),t(lFb),t(HI))};NI.\u0275prov=lc({token:NI,factory:NI.\u0275fac});
var OI=function(a,b,c){c=void 0===c?{}:c;this.router=a;this.viewportScroller=b;this.options=c;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled";c.anchorScrolling=c.anchorScrolling||"disabled"};
OI.prototype.init=function(){if("disabled"!==this.options.scrollPositionRestoration){var a=this.viewportScroller;try{if(Ux(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=rFb(this);this.scrollEventsSubscription=
sFb(this)};
var rFb=function(a){return a.router.events.subscribe(function(b){b instanceof dt?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof ct&&(a.lastId=b.id,b=aFb(a.router,b.urlAfterRedirects).fragment,a.router.events.next(new kEb("popstate"===a.lastSource?a.store[a.restoredId]:null,b)))})},sFb=function(a){return a.router.events.subscribe(function(b){if(b instanceof kEb)if(b.position)"top"===a.options.scrollPositionRestoration?
Nnb(a.viewportScroller,[0,0]):"enabled"===a.options.scrollPositionRestoration&&Nnb(a.viewportScroller,b.position);else if(b.anchor&&"enabled"===a.options.anchorScrolling){var c=a.viewportScroller;if(Ux(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&&Nnb(a.viewportScroller,[0,0])})};OI.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe();this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()};
OI.\u0275fac=function(){Ad()};OI.\u0275prov=lc({token:OI,factory:OI.\u0275fac});
var PI=new sd("ROUTER_CONFIGURATION"),tFb=new sd("ROUTER_FORROOT_GUARD"),uFb=[Tx,{provide:SDb,useClass:TDb},{provide:Gk,useFactory:xpa,deps:[SDb,EI,Tx,Iv,Zv,PEb,PI,MI,[jFb,new Fv],[function(){},new Fv],[MEb,new Fv]]},EI,{provide:mk,useFactory:ypa,deps:[Gk]},NI,nFb,mFb,{provide:PI,useValue:{enableTracing:!1}},HI],QI=function(){};QI.\u0275fac=function(a){return new (a||QI)(t(tFb,8),t(Gk,8))};QI.\u0275mod=Cc({type:QI});QI.\u0275inj=mc({});
var RI=function(a){this.injector=a;this.destroyed=this.initNavigation=!1;this.resultOfPreactivationDone=new U.Subject};
RI.prototype.appInitializer=function(){var a=this;return this.injector.get(Inb,Promise.resolve(null)).then(function(){if(a.destroyed)return Promise.resolve(!0);var b=null,c=new Promise(function(f){return b=f}),d=a.injector.get(Gk),e=a.injector.get(PI);"disabled"===e.initialNavigation?($Eb(d),b(!0)):"enabledBlocking"===e.initialNavigation?(d.afterPreactivation=function(){if(a.initNavigation)return(0,U.of)(void 0);a.initNavigation=!0;b(!0);return a.resultOfPreactivationDone},d.initialNavigation()):
b(!0);return c})};RI.prototype.bootstrapListener=function(a){var b=this.injector.get(PI),c=this.injector.get(NI),d=this.injector.get(OI),e=this.injector.get(Gk),f=this.injector.get(lx);a===f.components[0]&&("enabledNonBlocking"!==b.initialNavigation&&void 0!==b.initialNavigation||e.initialNavigation(),oFb(c),d.init(),e.rootComponentType=f.componentTypes[0],e.routerState.root.component=e.rootComponentType,this.resultOfPreactivationDone.next(void 0),this.resultOfPreactivationDone.complete())};
RI.prototype.ngOnDestroy=function(){this.destroyed=!0};RI.\u0275fac=function(a){return new (a||RI)(t(Iv))};RI.\u0275prov=lc({token:RI,factory:RI.\u0275fac});var vFb=new sd("Router Initializer");
var wFb=[ct,aEb,CI],TI=function(a,b){yI.call(this);var c=this;this.router=a;this.activatedRoute=b;this.routeChangeStart=new U.Subject;this.routeChangeSuccess=new U.Subject;this.locationChangeStart=new U.Subject;this.locationChangeSuccess=new U.Subject;this.routeUpdate=new U.Subject;this.viewContentLoaded=new U.Subject;SI(this,Ak).subscribe(function(d){c.routeChangeStart.next({params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)})});a=this.router.events.pipe(xf(function(d){return wFb.some(function(e){return d instanceof
e})}),jg(this.destroyed$));b=SI(this,jEb);(0,U.merge)(a.pipe(ag(U.NEVER)),this.routeChangeStart.pipe(ag(b))).pipe(ig(Ze),jg(this.destroyed$),xf(function(d){return d.snapshot.routeConfig.isRootRoute}),S(function(d){return{params:Object.assign({},d.snapshot.queryParams,d.snapshot.params)}})).subscribe(function(d){c.routeChangeSuccess.next(d)});SI(this,dt).pipe(S(function(d){return d.url}),Wf()).subscribe(function(){c.locationChangeStart.next()});SI(this,ct).pipe(S(function(d){return d.url}),Wf()).subscribe(function(){c.locationChangeSuccess.next()});
b=this.activatedRoute.queryParams.pipe(lg(SI(this,bEb)));(0,U.merge)(this.routeChangeStart.pipe(ag(U.NEVER)),a.pipe(ag(b))).pipe(ig(Ze),jg(this.destroyed$)).subscribe(function(d){d=r(d);d.next();d=d.next().value;c.routeUpdate.next({params:d.state.root.params})});SI(this,ct).subscribe(function(){c.viewContentLoaded.next()})};V(TI,yI);TI.\u0275dir=yI.\u0275dir;var SI=function(a,b){return a.router.events.pipe(xf(function(c){return c instanceof b}),S(function(c){return c}),jg(a.destroyed$))};
TI.\u0275fac=function(a){return new (a||TI)(t(Gk),t(mk))};TI.\u0275prov=lc({token:TI,factory:TI.\u0275fac,providedIn:"root"});
var UI=function(a){this.executor=a},xFb=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:uj,body:qna(b)}).pipe(S(function(c){return hna(c)}))};UI.\u0275fac=function(a){return new (a||UI)(t(pI))};UI.\u0275prov=lc({token:UI,factory:UI.\u0275fac,providedIn:"root"});
var VI=function(a){this.userPreferencesManagerBase=a;this.destroyed$=new U.ReplaySubject(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(S(Fi));this.textDisplayPreferences$=this.preferences$.pipe(S(function(b){return b.textDisplayPreferences||{}}));this.textDisplayPreferencesSubject$=Hk(this.textDisplayPreferences$.pipe(jg(this.destroyed$)),{});this.lastPublishMode$=this.textDisplayPreferences$.pipe(S(function(b){return b.lastPublishMode}),
Wf());this.lastPublishModeProto$=this.lastPublishMode$.pipe(S(Yma));this.themePreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.themePreferences)?c:Fi(xH.themePreferences)}),Jk());this.listViewPreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.listViewPreferences)?c:Fi(xH.listViewPreferences)}),Jk());this.layoutPreferences$=this.preferences$.pipe(S(this.getLayoutPreferences),Jk());this.dateTimePreferences$=this.preferences$.pipe(S(function(b){var c;return null!=
(c=b.dateTimePreferences)?c:Fi(xH.dateTimePreferences)}),Jk());this.homepagePreferences$=this.preferences$.pipe(S(this.getHomepagePreferences),Jk());this.keyboardPrefs$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.keyboardPreferences)?c:Fi(xH.keyboardPreferences)}),Jk());this.displayColumnsPreferences$=this.preferences$.pipe(S(function(b){var c,d;return null!=(d=null==(c=b.displayColumns)?void 0:c.column)?d:[]}),Jk());this.sortColumnsPreferences$=this.preferences$.pipe(S(function(b){var c,
d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}),Jk());this.bugScreensaverPreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.bugScreensaverPreferences)?c:Fi(xH.bugScreensaverPreferences)}),Jk());this.bugScreensaverSubject$=Hk(this.bugScreensaverPreferences$.pipe(jg(this.destroyed$)),xH.bugScreensaverPreferences);this.g3nPreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.g3nPreferences)?c:Fi(xH.g3nPreferences)}),Jk());this.g3nSubject$=
Hk(this.g3nPreferences$.pipe(jg(this.destroyed$)),xH.g3nPreferences);this.newIssueDetailsPagePreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.newIssueDetailsPagePreferences)?c:Fi(xH.newIssueDetailsPagePreferences)}),Jk());this.newIssueDetailsPagePreferencesSubject$=Hk(this.newIssueDetailsPagePreferences$.pipe(jg(this.destroyed$)),xH.newIssueDetailsPagePreferences);this.teamWarningPreferences$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.teamWarningPreferences)?
c:Fi(xH.teamWarningPreferences)}),Jk());this.teamWarningPreferencesSubject$=Hk(this.teamWarningPreferences$.pipe(jg(this.destroyed$)),xH.teamWarningPreferences);this.codeFont$=this.preferences$.pipe(S(function(b){return!!b.useCodefont}),Wf());this.autoCcOnComment$=this.preferences$.pipe(S(function(b){var c;return null!=(c=b.autoCcOnComment)?c:!1}),Wf());this.showFullHistory$=this.preferences$.pipe(S(function(b){return!!b.showFullHistory}),Wf());this.showRecentEventsFirst$=this.preferences$.pipe(S(function(b){return!!b.showRecentEventsFirst}),
Wf())};VI.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};VI.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};var yFb=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(S(a.getLayoutPreferences))},zFb=function(a,b){return a.save({homepagePreferences:b}).pipe(S(a.getHomepagePreferences))};
VI.prototype.getDateTimePreferences=function(){var a;return null!=(a=(void 0).dateTimePreferences)?a:Fi(xH.dateTimePreferences)};var AFb=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},BFb=function(a,b){var c;return null==(c=a.preferencesSubject$.value.collapsed)?void 0:c[b]};VI.prototype.clearHomepagePreferences=function(){return zFb(this,{})};
var CFb=function(a,b){return a.save({displayColumns:{column:b}}).pipe(S(function(c){var d,e;return null!=(e=null==(d=c.displayColumns)?void 0:d.column)?e:[]}))};VI.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(S(function(b){var c,d;return null!=(d=null==(c=b.sortColumns)?void 0:c.column)?d:[]}))};var DFb=function(a,b){return a.save({teamWarningPreferences:b}).pipe(S(function(c){var d;return null!=(d=c.teamWarningPreferences)?d:Fi(xH.teamWarningPreferences)}))};
VI.prototype.getLayoutPreferences=function(a){var b;return null!=(b=a.layoutPreferences)?b:Fi(xH.layoutPreferences)};VI.prototype.getHomepagePreferences=function(a){var b;return null!=(b=a.homepagePreferences)?b:Fi(xH.homepagePreferences)};VI.\u0275fac=function(a){return new (a||VI)(t(WI))};VI.\u0275prov=lc({token:VI,factory:VI.\u0275fac,providedIn:"root"});
var WI=function(a,b){this.activeSession=a;this.userPreferencesResources=b;this.preferences$=new U.BehaviorSubject(Fi(xH));a=this.preferences$.value;if(b=this.activeSession.getUserPreferences())a=Object.assign({},a,b),EFb(a);this.preferences$.next(a)};WI.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?(0,U.of)(FFb(this,a)):xFb(this.userPreferencesResources,a).pipe(S(function(){return FFb(b,a)}))};
var FFb=function(a,b){var c=Fi(a.preferences$.value);c=Object.assign({},c,b);EFb(c);a.preferences$.next(c);return c},EFb=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=xH.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=xH.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=xH.dateTimePreferences.sloEtaViewAs))};
WI.\u0275fac=function(a){return new (a||WI)(t(yH),t(UI))};WI.\u0275prov=lc({token:WI,factory:WI.\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 GFb=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||""};
ji.Object.defineProperties(GFb.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 HFb=new sd("HotkeyOptions");
var XI=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new U.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 GFb(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new GFb("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=XI.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=r(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var u=h.target,x=u.nodeName.toUpperCase();-1<(" "+u.className+" ").indexOf(" mousetrap ")?q=!0:-1<c.preventIn.indexOf(x)&&-1===a.allowIn.map(function(E){return E.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=r(this.hotkeys);for(a=c.next();!a.done;a=c.next())b.push(this.remove(a.value));return b}if(Array.isArray(a)){c=r(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=r(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=r(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=r(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()};XI.\u0275fac=function(a){return new (a||XI)(t(HFb))};XI.\u0275prov=lc({token:XI,factory:XI.\u0275fac});
var YI=function(){};YI.\u0275fac=function(a){return new (a||YI)};YI.\u0275mod=Cc({type:YI});YI.\u0275inj=mc({imports:[Mx]});
var IFb;
tja("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));
var JFb="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),ZI=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},$I=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;""===c||void 0==c?(IFb||(c={},IFb=(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=IFb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},aJ=function(a,b){var c="";b&&(c=b.id);$I(a,"activedescendant",c)};
var bJ=function(a,b,c,d){yI.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=wa(JFb,f);h=f||"true"===h.contentEditable||"INPUT"===h.tagName&&"text"===h.type||"SELECT"===h.tagName||"TEXTAREA"===h.tagName||KFb(h)?!0:!1}return h};
b.keyboardPrefs$.pipe(jg(this.destroyed$)).subscribe(function(f){f&&(e.enabled=!!f.enableAllHotkeys)});a.routeChangeStart.pipe(jg(this.destroyed$)).subscribe(function(){e.unpause()});this.rawHotkeysService.mousetrap.stopCallback=this.stopCallback;this.destroyed$.subscribe(function(){LFb(e)})};V(bJ,yI);bJ.\u0275dir=yI.\u0275dir;bJ.prototype.isEnabled=function(){return this.enabled};
var cJ=function(a,b){var c=b.title,d=b.hotkeys,e;b=null!=(e=a.hotkeyGroups.get(c))?e:[];a.hotkeyGroups.set(c,[].concat(v(b),v(d)));MFb(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);MFb(a)}},LFb=function(a){var b=[].concat(v(a.rawHotkeysService.hotkeys));b=r(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},MFb=function(a){LFb(a);for(var b=r(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){var d=NFb(a,c.value);c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$binding$1661:c.$jscomp$loop$prop$binding$1661},e=d.next())c.$jscomp$loop$prop$binding$1661=e.value,e=new GFb(Xna(c.$jscomp$loop$prop$binding$1661.key),function(f){return function(h){a.ngZone.run(function(){f.$jscomp$loop$prop$binding$1661.command()});h.stopPropagation();return!1}}(c),c.$jscomp$loop$prop$binding$1661.allowIn),
a.rawHotkeysService.add(e)}},KFb=function(a){return[].concat(v(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return"static"===b.style.position}).some(function(b){return b.contains(a)})},NFb=function(a,b){var c=[],d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$hotkeySpec$1663:d.$jscomp$loop$prop$hotkeySpec$1663},e=b.next()){d.$jscomp$loop$prop$hotkeySpec$1663=e.value;e={};for(var f=r(d.$jscomp$loop$prop$hotkeySpec$1663.keys.entries()),h=f.next();!h.done;e={$jscomp$loop$prop$index$1665:e.$jscomp$loop$prop$index$1665},
h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$index$1665=h;c.push(new OFb(k,function(q,u){return function(){a.ngZone.run(function(){q.$jscomp$loop$prop$hotkeySpec$1663.onPress(u.$jscomp$loop$prop$index$1665)})}}(d,e),d.$jscomp$loop$prop$hotkeySpec$1663.allowIn))}}oaa(c,function(q,u){return q.strokeLength>u.strokeLength?-1:q.strokeLength<u.strokeLength?1:0});return c};bJ.prototype.pause=function(){this.paused=!0};bJ.prototype.unpause=function(){this.paused=!1};
var PFb=function(a){return[].concat(v(a.hotkeyGroups.entries())).map(function(b){var c=r(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Ej(c,Bpa)}})};bJ.\u0275fac=function(a){return new (a||bJ)(t(TI),t(VI),t(XI),t(qg))};bJ.\u0275prov=lc({token:bJ,factory:bJ.\u0275fac,providedIn:"root"});var OFb=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 dJ=function(a,b){yI.call(this);this.hotkeys=a;this.tooltip=b;this.onHotkey=new Jw;this.hasHotkey=!0};V(dJ,yI);dJ.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+")"}};dJ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(cJ(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};
dJ.\u0275fac=function(a){return new (a||dJ)(C(bJ),C(lF,8))};dJ.\u0275dir=w({type:dJ,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&te("has-hotkey",b.hasHotkey)},inputs:{hotkey:"hotkey",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[ie,Jc]});
var eJ=function(){};eJ.\u0275fac=function(a){return new (a||eJ)};eJ.\u0275mod=Cc({type:eJ});eJ.\u0275inj=mc({});
var fJ=function(a){this.hotkeys=a};fJ.prototype.ngOnInit=function(){this.hotkeys.pause()};fJ.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};fJ.\u0275fac=function(a){return new (a||fJ)(C(bJ))};
fJ.\u0275cmp=w({type:fJ,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&&(F(0,"h1",0),P(1,"Keyboard shortcuts"),G(),F(2,"mat-dialog-content")(3,"table"),O(4,Dpa,6,2,"thead",1),G()(),F(5,"mat-dialog-actions")(6,"button",2),P(7,"Close"),G()());
a&2&&(B(4),D("ngForOf",PFb(b.hotkeys)))},dependencies:[yx,rB,QB,RB,SB,TB],encapsulation:2});var gJ=function(){};gJ.\u0275fac=function(a){return new (a||gJ)};gJ.\u0275mod=Cc({type:gJ});gJ.\u0275inj=mc({imports:[Mx,uG,UB]});
var Gcb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"4:"+a.alias}));
var hJ=function(){};hJ.prototype.adapt=function(a){var b,c=new QFb(a.call.bind(a),a.split.bind(a),null!=(b=a.bufferTimeMs)?b:500,a.maxBatchSize||100);return c.get.bind(c)};hJ.\u0275fac=function(a){return new (a||hJ)};hJ.\u0275prov=lc({token:hJ,factory:hJ.\u0275fac,providedIn:"root"});
var QFb=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new U.Subject;this.inputs$=this.inputSubject.pipe(Pga(this.inputSubject.pipe(Rf(this.bufferTimeMs,U.asapScheduler))));this.removeDuplicates=S(function(f){return[].concat(v(new Set(f)))});this.limitInputSize=S(function(f){for(var h=r(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,U.pipe)(qf(function(f){try{return e.batchCall(f).pipe(Xf(),S(function(h){return{inputs:f,batchResponse:h,error:void 0}}),Sf(function(h){return(0,U.of)({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return(0,U.of)({inputs:f,batchResponse:void 0,error:h})}}),eg());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
QFb.prototype.get=function(a){var b=this;return new U.Observable(function(c){c=b.batchResults$.pipe(xf(function(d){return d.inputs.has(a)}),Xf(),S(function(d){if(!d.error&&d.batchResponse)return b.batchSplit(a,d.batchResponse);throw new RFb(d.error,d.inputs);})).subscribe(c);b.inputSubject.next(a);return c})};var RFb=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,RFb.prototype)};
V(RFb,Error);
var Nk=function(a){Z.call(this,a)};V(Nk,Z);Nk.prototype.getAccessLevel=function(){return X(this,1,0)};Nk.prototype.setAccessLevel=function(a){l(this,1,a)};Nk.prototype.toObject=function(){return SFb(void 0,this)};var SFb=function(a,b){if(null!=b){var c={accessLevel:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};Nk.messageId="b.AccessLimit";
var jl=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};
jl.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};jl.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 TFb=function(a){return a?Qk(Li(a)):null},UFb=function(a){return a?(a=qC(a),isNaN(a)?null:a):null};
var hl=function(a){Z.call(this,a)};V(hl,Z);hl.prototype.getCustomFieldId=function(){return fj(this,wb(this,iJ,1))};hl.prototype.setCustomFieldId=function(a){return Yn(this,1,iJ,a)};hl.prototype.hasCustomFieldId=function(){return 1===ub(this,iJ)};hl.prototype.setStandardField=function(a){Yn(this,2,iJ,a)};var iJ=[1,2];hl.prototype.toObject=function(){return jJ(void 0,this)};
var jJ=function(a,b){if(null!=b){var c={customFieldId:n(Hr(b,1,iJ)),standardField:n(Hr(b,2,iJ))};a&&(c.$jspbMessageInstance=b);return c}};hl.messageId="b.FieldId";
var kJ=function(a){Z.call(this,a)};V(kJ,Z);kJ.prototype.setStateOnIssues=function(a){l(this,2,a)};kJ.prototype.setEnabledOnIssues=function(a){l(this,3,a)};kJ.prototype.toObject=function(){var a=null!=this?{fieldId:jJ(void 0,m(this,hl,1)),stateOnIssues:n(p(this,2)),enabledOnIssues:n(Mo(this,3))}:void 0;return a};var Vpa={UNSPECIFIED:0,INHERIT:1,DISABLED:2,ENABLED:3};kJ.messageId="b.FieldConfig";
var il=function(){this.required=!1;this.allowedValue=null;this.stateOnIssues=1;this.type="TEXT";this.fieldSignificance="MINOR"};il.prototype.isDate=function(){return"DATE"===this.type};il.prototype.isText=function(){return"TEXT"===this.type};il.prototype.isRepeated=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var kl=function(a){Z.call(this,a,-1,VFb)};V(kl,Z);g=kl.prototype;g.getCustomFieldId=function(){return lj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return ej(this,1)};g.setTextValue=function(a){Yn(this,4,lJ,a)};g.getDateValue=function(){return Al(this,Uk,5,lJ)};g.setDateValue=function(a){qu(this,5,lJ,a)};g.setEnumValue=function(a){Yn(this,6,lJ,a)};g.setNumericValue=function(a){Yn(this,7,lJ,a)};g.getRepeatedTextValue=function(){return Al(this,ml,8,lJ)};
g.setRepeatedTextValue=function(a){qu(this,8,lJ,a)};g.getRepeatedDateValue=function(){return Al(this,ol,9,lJ)};g.setRepeatedDateValue=function(a){qu(this,9,lJ,a)};g.getRepeatedEnumValue=function(){return Al(this,ml,10,lJ)};g.setRepeatedEnumValue=function(a){qu(this,10,lJ,a)};g.getRepeatedNumericValue=function(){return Al(this,nl,11,lJ)};g.setRepeatedNumericValue=function(a){qu(this,11,lJ,a)};var ml=function(a){Z.call(this,a,-1,WFb)};V(ml,Z);ml.prototype.getValuesList=function(){return ob(this,1)};
ml.prototype.setValuesList=function(a){ll(this,1,a)};var ol=function(a){Z.call(this,a,-1,XFb)};V(ol,Z);ol.prototype.getValuesList=function(){return xb(this,Uk,1)};ol.prototype.setValuesList=function(a){Fb(this,1,a)};var nl=function(a){Z.call(this,a,-1,YFb)};V(nl,Z);nl.prototype.getValuesList=function(){return pb(this,1,Number)};nl.prototype.setValuesList=function(a){ll(this,1,a)};var VFb=[12],lJ=[4,5,6,7,8,9,10,11];kl.prototype.toObject=function(){return ZFb(void 0,this)};
var ZFb=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),displayValuesList:n(ob(b,12)),textValue:n(Hr(b,4,lJ)),dateValue:zv(a,b.getDateValue()),enumValue:n(Hr(b,6,lJ)),numericValue:n(mu(b,wb(b,lJ,7))),repeatedTextValue:$Fb(a,b.getRepeatedTextValue()),repeatedDateValue:aGb(a,b.getRepeatedDateValue()),repeatedEnumValue:$Fb(a,b.getRepeatedEnumValue()),repeatedNumericValue:bGb(a,b.getRepeatedNumericValue())};a&&(c.$jspbMessageInstance=b);return c}},WFb=[1];
ml.prototype.toObject=function(){return $Fb(void 0,this)};var $Fb=function(a,b){if(null!=b){var c={valuesList:n(ob(b,1))};a&&(c.$jspbMessageInstance=b);return c}},XFb=[1];ol.prototype.toObject=function(){return aGb(void 0,this)};var aGb=function(a,b){if(null!=b){var c={valuesList:Hb(b.getValuesList(),zv,a)};a&&(c.$jspbMessageInstance=b);return c}},YFb=[1];nl.prototype.toObject=function(){return bGb(void 0,this)};
var bGb=function(a,b){if(null!=b){var c={valuesList:n(pb(b,1,Number))};a&&(c.$jspbMessageInstance=b);return c}};
var pl=function(a){Z.call(this,a,-1,cGb)};V(pl,Z);g=pl.prototype;g.getCustomFieldId=function(){return lj(this,1)};g.setCustomFieldId=function(a){return l(this,1,a)};g.hasCustomFieldId=function(){return ej(this,1)};g.getComponentId=function(){return lj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return ej(this,2)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return ej(this,3)};
g.setRequired=function(a){l(this,4,a)};g.getName=function(){return W(this,5)};g.setName=function(a){return l(this,5,a)};g.hasName=function(){return ej(this,5)};g.getDescription=function(){return W(this,6)};g.setDescription=function(a){return l(this,6,a)};g.getTypedDefaultValue=function(){return m(this,kl,10)};g.setTypedDefaultValue=function(a){Gb(this,10,a)};g.setFieldSignificance=function(a){return l(this,9,a)};g.setStateOnIssues=function(a){l(this,11,a)};
g.setEnabledOnIssues=function(a){l(this,12,a)};var cGb=[8];pl.prototype.toObject=function(){return mJ(void 0,this)};var mJ=function(a,b){if(null!=b){var c={customFieldId:n(p(b,1)),componentId:n(p(b,2)),type:n(p(b,3)),required:n(Mo(b,4)),name:n(p(b,5)),description:n(p(b,6)),typedDefaultValue:ZFb(a,b.getTypedDefaultValue()),allowedValueList:n(ob(b,8)),fieldSignificance:n(p(b,9)),stateOnIssues:n(p(b,11)),enabledOnIssues:n(Mo(b,12))};a&&(c.$jspbMessageInstance=b);return c}};
var ql=function(a){Z.call(this,a)};V(ql,Z);g=ql.prototype;g.getInherit=function(){return bj(this,1)};g.setInherit=function(a){return fo(this,1,a)};g.getId=function(){return fj(this,2)};g.setId=function(a){return Vk(this,2,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return xl(this,3,a)};var fqa=function(a,b){qu(a,4,zl,b)},Cl=function(a){return Al(a,sl,5,zl)},hqa=function(a,b){qu(a,5,zl,b)};ql.prototype.getCustomFieldId=function(){return fj(this,100)};
ql.prototype.setCustomFieldId=function(a){return Vk(this,100,a)};var rl=function(a){Z.call(this,a)};V(rl,Z);var gqa=function(a,b){return sb(a,1,b,0)},sl=function(a){Z.call(this,a,-1,dGb)};V(sl,Z);sl.prototype.getOptionsList=function(){return xb(this,tl,1)};sl.prototype.setOptionsList=function(a){return Fb(this,1,a)};var tl=function(a){Z.call(this,a)};V(tl,Z);tl.prototype.getLabel=function(){return W(this,1)};tl.prototype.setLabel=function(a){return xl(this,1,a)};
tl.prototype.getValue=function(){return Bl(this,2)};tl.prototype.setValue=function(a){return sb(this,2,a,0)};var zl=[4,5];ql.prototype.toObject=function(){return eGb(void 0,this)};var eGb=function(a,b){if(null!=b){var c={inherit:bj(b,1),id:fj(b,2),name:W(b,3),numericSpec:fGb(a,Al(b,rl,4,zl)),enumSpec:gGb(a,Cl(b)),aggregationType:X(b,6,0),customFieldId:fj(b,100)};a&&(c.$jspbMessageInstance=b);return c}},hGb={AGGREGATION_TYPE_UNSPECIFIED:0,SUM:1,MAX:2};
rl.prototype.toObject=function(){return fGb(void 0,this)};var fGb=function(a,b){if(null!=b){var c={multiplier:Bl(b,1)};a&&(c.$jspbMessageInstance=b);return c}},dGb=[1];sl.prototype.toObject=function(){return gGb(void 0,this)};var gGb=function(a,b){if(null!=b){var c={optionsList:Hb(b.getOptionsList(),iGb,a)};a&&(c.$jspbMessageInstance=b);return c}};tl.prototype.toObject=function(){return iGb(void 0,this)};
var iGb=function(a,b){if(null!=b){var c={label:W(b,1),value:Bl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Gl=function(a){Z.call(this,a)};V(Gl,Z);g=Gl.prototype;g.getResourcePath=function(){return W(this,2)};g.setResourcePath=function(a){return l(this,2,a)};g.hasResourcePath=function(){return ej(this,2)};g.getSeverity=function(){return X(this,3,0)};g.setSeverity=function(a){return l(this,3,a)};g.getJudgementReason=function(){return W(this,4)};g.setJudgementReason=function(a){return l(this,4,a)};g.toObject=function(){return nJ(void 0,this)};
var nJ=function(a,b){if(null!=b){var c={contentJudgementId:n(p(b,1)),resourcePath:n(p(b,2)),severity:n(p(b,3)),judgementReason:n(p(b,4)),contentJudge:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};Gl.messageId="b.ContentJudgement";
var jGb={PII_SEVERITY_UNSPECIFIED:0,NONE_DETECTED:1,PII:2,SPII:3};
var Jl=function(a){Z.call(this,a)};V(Jl,Z);Jl.prototype.getSeverity=function(){return X(this,1,0)};Jl.prototype.setSeverity=function(a){return l(this,1,a)};Jl.prototype.toObject=function(){return kGb(void 0,this)};var kGb=function(a,b){if(null!=b){var c={severity:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var $l=function(a){Z.call(this,a)};V($l,Z);$l.prototype.toObject=function(){return lGb(void 0,this)};var lGb=function(a,b){if(null!=b){var c={piiVerdict:kGb(a,m(b,Jl,1))};a&&(c.$jspbMessageInstance=b);return c}};
var Hl=function(a){Z.call(this,a)};V(Hl,Z);Hl.prototype.hasRetentionSelection=function(){return ej(this,1)};Hl.prototype.toObject=function(){return mGb(void 0,this)};var mGb=function(a,b){if(null!=b){var c={retentionSelection:n(p(b,1)),retentionPeriodDays:n(p(b,2)),piiRetentionSelection:n(p(b,3)),piiRetentionPeriodDays:n(p(b,4)),spiiRetentionPeriodDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var jm=function(a){Z.call(this,a)};V(jm,Z);g=jm.prototype;g.getRetentionPeriod=function(){return m(this,km,1)};g.setRetentionPeriod=function(a){Gb(this,1,a)};g.hasRetentionPeriod=function(){return mj(this,1)};g.getScheduledDeletionTime=function(){return m(this,tj,2)};g.setScheduledDeletionTime=function(a){Gb(this,2,a)};g.hasScheduledDeletionTime=function(){return mj(this,2)};g.toObject=function(){return oJ(void 0,this)};
var oJ=function(a,b){if(null!=b){var c={retentionPeriod:Hu(a,b.getRetentionPeriod()),scheduledDeletionTime:Nu(a,b.getScheduledDeletionTime())};a&&(c.$jspbMessageInstance=b);return c}};jm.messageId="b.RetentionState";
var pJ=function(a){Z.call(this,a)};V(pJ,Z);pJ.prototype.getTeamId=function(){return fj(this,1)};pJ.prototype.setTeamId=function(a){return Vk(this,1,a)};pJ.prototype.getEffectiveSloEditPolicy=function(){return X(this,3,0)};pJ.prototype.toObject=function(){return nGb(this)};var nGb=function(a){if(null!=a)return{teamId:fj(a,1),sloEditPolicy:X(a,2,0),effectiveSloEditPolicy:X(a,3,0)}};
var Ml=function(a){Z.call(this,a)};V(Ml,Z);g=Ml.prototype;g.getInherit=function(){return bj(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSource=function(){return X(this,2,0)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return ej(this,2)};g.getId=function(){return lj(this,3)};g.setId=function(a){return l(this,3,a)};g.getSourceTeamId=function(){return lj(this,5)};g.setSourceTeamId=function(a){l(this,5,a)};g.getComment=function(){return W(this,4)};
g.setComment=function(a){l(this,4,a)};g.toObject=function(){return oGb(void 0,this)};var oGb=function(a,b){if(null!=b){var c={inherit:n(Mo(b,1)),source:n(p(b,2)),id:n(p(b,3)),sourceTeamId:n(p(b,5)),sourceComponentId:n(p(b,6)),comment:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Ll=function(a){Z.call(this,a)};V(Ll,Z);g=Ll.prototype;g.getStartTime=function(){return m(this,tj,1)};g.setStartTime=function(a){Gb(this,1,a)};g.getEndTime=function(){return m(this,tj,2)};g.setEndTime=function(a){Gb(this,2,a)};g.hasEndTime=function(){return mj(this,2)};g.getTargetTime=function(){return m(this,tj,3)};g.setTargetTime=function(a){Gb(this,3,a)};g.hasTargetTime=function(){return mj(this,3)};g.toObject=function(){return pGb(void 0,this)};
var pGb=function(a,b){if(null!=b){var c={startTime:Nu(a,b.getStartTime()),endTime:Nu(a,b.getEndTime()),targetTime:Nu(a,b.getTargetTime())};a&&(c.$jspbMessageInstance=b);return c}};
var lm=function(a){Z.call(this,a)};V(lm,Z);g=lm.prototype;g.getAssignmentBounds=function(){return m(this,Ll,1)};g.setAssignmentBounds=function(a){Gb(this,1,a)};g.hasAssignmentBounds=function(){return mj(this,1)};g.getResponseBounds=function(){return m(this,Ll,2)};g.setResponseBounds=function(a){Gb(this,2,a)};g.hasResponseBounds=function(){return mj(this,2)};g.getClosureBounds=function(){return m(this,Ll,3)};g.setClosureBounds=function(a){Gb(this,3,a)};
g.hasClosureBounds=function(){return mj(this,3)};g.toObject=function(){return qGb(void 0,this)};var qGb=function(a,b){if(null!=b){var c={assignmentBounds:pGb(a,b.getAssignmentBounds()),responseBounds:pGb(a,b.getResponseBounds()),closureBounds:pGb(a,b.getClosureBounds())};a&&(c.$jspbMessageInstance=b);return c}};
var Tl=function(a){Z.call(this,a,-1,rGb)};V(Tl,Z);g=Tl.prototype;g.getEmailAddress=function(){return W(this,1)};g.setEmailAddress=function(a){return l(this,1,a)};g.getObfuscatedEmailAddress=function(){return W(this,2)};g.setObfuscatedEmailAddress=function(a){l(this,2,a)};g.getUserGaiaStatus=function(){return X(this,3,0)};g.setUserGaiaStatus=function(a){l(this,3,a)};g.getAliasesList=function(){return ob(this,4)};g.setAliasesList=function(a){ll(this,4,a)};var rGb=[4];
Tl.prototype.toObject=function(){return qJ(void 0,this)};var qJ=function(a,b){if(null!=b){var c={emailAddress:n(p(b,1)),obfuscatedEmailAddress:n(p(b,2)),userGaiaStatus:n(p(b,3)),aliasesList:n(ob(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var rJ=function(a){Z.call(this,a)};V(rJ,Z);rJ.prototype.getIssueId=function(){return lj(this,1)};rJ.prototype.setIssueId=function(a){return l(this,1,a)};rJ.prototype.setReason=function(a){l(this,2,a)};rJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),reason:n(p(this,2))}:void 0;return a};rJ.messageId="b.DeleteIssueRequest";
var cm=function(a){Z.call(this,a)};V(cm,Z);cm.prototype.getFieldName=function(){return W(this,1)};var Yqa=function(a,b){return l(a,1,b)};g=cm.prototype;g.getValue=function(){return W(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.getActionType=function(){return X(this,3,0)};g.setActionType=function(a){l(this,3,a)};g.getCustomFieldValue=function(){return m(this,kl,5)};g.setCustomFieldValue=function(a){return Gb(this,5,a)};
g.clearCustomFieldValue=function(){return Gb(this,5)};g.hasCustomFieldValue=function(){return mj(this,5)};g.toObject=function(){return sGb(void 0,this)};var sGb=function(a,b){if(null!=b){var c={fieldName:n(p(b,1)),value:n(p(b,2)),actionType:n(p(b,3)),customFieldValue:ZFb(a,b.getCustomFieldValue())};a&&(c.$jspbMessageInstance=b);return c}};
var im=function(a){Z.call(this,a)};V(im,Z);g=im.prototype;g.setVoteCount=function(a){l(this,1,a)};g.getCreatedTimeMicros=function(){return fj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getModifiedTimeMicros=function(){return fj(this,3)};g.setModifiedTimeMicros=function(a){l(this,3,a)};g.getSloStatus=function(){return m(this,lm,6)};g.setSloStatus=function(a){Gb(this,6,a)};g.getSloId=function(){return lj(this,7)};g.setSloId=function(a){return l(this,7,a)};
g.getTeamId=function(){return lj(this,9)};g.setTeamId=function(a){return l(this,9,a)};g.getRetentionState=function(){return m(this,jm,8)};g.setRetentionState=function(a){Gb(this,8,a)};g.toObject=function(){return tGb(void 0,this)};
var tGb=function(a,b){if(null!=b){var c={voteCount:n(p(b,1)),createdTimeMicros:n(p(b,2)),modifiedTimeMicros:n(p(b,3)),resolvedTimeMicros:n(p(b,4)),verifiedTimeMicros:n(p(b,5)),sloStatus:qGb(a,b.getSloStatus()),sloId:n(p(b,7)),teamId:n(p(b,9)),retentionState:oJ(a,b.getRetentionState())};a&&(c.$jspbMessageInstance=b);return c}};
var Xl=function(a){Z.call(this,a,-1,uGb)};V(Xl,Z);g=Xl.prototype;g.getCreatedTimeMicros=function(){return fj(this,2)};g.setCreatedTimeMicros=function(a){l(this,2,a)};g.getComponentId=function(){return lj(this,3)};g.setComponentId=function(a){return l(this,3,a)};g.hasComponentId=function(){return ej(this,3)};g.getVersion=function(){return fj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getType=function(){return X(this,5,0)};g.setType=function(a){return l(this,5,a)};
g.hasType=function(){return ej(this,5)};g.getStatus=function(){return X(this,6,0)};g.setStatus=function(a){return l(this,6,a)};g.hasStatus=function(){return ej(this,6)};g.getPriority=function(){return X(this,7,0)};g.setPriority=function(a){return l(this,7,a)};g.getSeverity=function(){return X(this,8,0)};g.setSeverity=function(a){return l(this,8,a)};g.getTitle=function(){return W(this,9)};g.setTitle=function(a){return l(this,9,a)};g.setPostmortemsList=function(a){ll(this,35,a)};
g.setInProd=function(a){l(this,22,a)};g.setHotlistIdList=function(a){ll(this,23,a)};g.getRetention=function(){return X(this,42,0)};g.setRetention=function(a){l(this,42,a)};g.setIsDeleted=function(a){l(this,27,a)};g.setDeletionReason=function(a){l(this,28,a)};g.setSignificanceOverride=function(a){l(this,29,a)};g.getIsArchived=function(){return bj(this,31)};g.setIsArchived=function(a){l(this,31,a)};g.getComment=function(){return W(this,25)};g.setComment=function(a){l(this,25,a)};
g.getFormattingMode=function(){return X(this,45,0)};g.setFormattingMode=function(a){l(this,45,a)};g.getCommentContentVerdict=function(){return m(this,$l,46)};g.setCommentContentVerdict=function(a){Gb(this,46,a)};g.hasCommentContentVerdict=function(){return mj(this,46)};g.getSloSnoozeUntil=function(){return m(this,tj,34)};g.setSloSnoozeUntil=function(a){Gb(this,34,a)};g.getEffort=function(){return m(this,wl,50)};g.setEffort=function(a){Gb(this,50,a)};var uGb=[40,51,14,16,17,18,35,19,20,21,23,24,30];
Xl.prototype.toObject=function(){return sJ(void 0,this)};
var sJ=function(a,b){if(null!=b){var c={authorUser:qJ(a,m(b,Tl,36)),createdTimeMicros:n(p(b,2)),componentId:n(p(b,3)),version:n(p(b,4)),type:n(p(b,5)),status:n(p(b,6)),priority:n(p(b,7)),severity:n(p(b,8)),title:n(p(b,9)),reporterUser:qJ(a,m(b,Tl,37)),assigneeUser:qJ(a,m(b,Tl,38)),verifierUser:qJ(a,m(b,Tl,39)),ccUsersList:Hb(xb(b,Tl,40),qJ,a),collaboratorUsersList:Hb(xb(b,Tl,51),qJ,a),attachmentIdList:n(ob(b,14)),duplicateOfIssueId:n(p(b,15)),blockedByIssueIdList:n(ob(b,16)),blockingIssueIdList:n(ob(b,
17)),changelistList:n(ob(b,18)),postmortemsList:n(ob(b,35)),foundInVersionList:n(ob(b,19)),targetedToVersionList:n(ob(b,20)),verifiedInVersionList:n(ob(b,21)),inProd:n(Mo(b,22)),hotlistIdList:n(ob(b,23)),customFieldList:Hb(xb(b,kl,24),ZFb,a),retention:n(p(b,42)),isDeleted:n(Mo(b,27)),deletionReason:n(p(b,28)),significanceOverride:n(p(b,29)),duplicateIssueIdList:n(ob(b,30)),isArchived:n(Mo(b,31)),comment:n(p(b,25)),formattingMode:n(p(b,45)),commentRedacted:n(Mo(b,49)),snapshotNumber:n(p(b,26)),lastCommentEditorUser:qJ(a,
m(b,Tl,41)),commentLastModifiedAtMicros:n(p(b,33)),commentVersion:n(p(b,43)),commentDeletionStatus:n(p(b,44)),commentContentVerdict:lGb(a,b.getCommentContentVerdict()),commentRetention:n(p(b,47)),commentRetentionState:oJ(a,m(b,jm,48)),sloSnoozeUntil:Nu(a,b.getSloSnoozeUntil()),effort:$Cb(a,b.getEffort())};a&&(c.$jspbMessageInstance=b);return c}};
var hm=function(a){Z.call(this,a)};V(hm,Z);g=hm.prototype;g.getStarred=function(){return bj(this,1)};g.setStarred=function(a){l(this,1,a)};g.hasStarred=function(){return ej(this,1)};g.getVoted=function(){return bj(this,2)};g.setVoted=function(a){return l(this,2,a)};g.setNotificationSubscription=function(a){return l(this,4,a)};g.toObject=function(){return vGb(void 0,this)};
var vGb=function(a,b){if(null!=b){var c={starred:n(Mo(b,1)),voted:n(Mo(b,2)),notificationSubscription:n(p(b,4)),lastViewedTimeMicros:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};hm.messageId="b.IssueUserData";
var gm=function(a){Z.call(this,a,-1,wGb)};V(gm,Z);g=gm.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getUserData=function(){return m(this,hm,3)};g.setUserData=function(a){Gb(this,3,a)};g.getParentIssueIdsList=function(){return ob(this,8)};g.setParentIssueIdsList=function(a){ll(this,8,a)};g.getAccessLimit=function(){return m(this,Nk,5)};g.setAccessLimit=function(a){return Gb(this,5,a)};g.getVisibleFieldsList=function(){return xb(this,hl,6)};
g.setVisibleFieldsList=function(a){Fb(this,6,a)};g.getAncestorsMap=function(){return Zi(this,9,mm)};g.getChildIssueCount=function(){return fj(this,10)};g.setChildIssueCount=function(a){l(this,10,a)};g.getIsArchived=function(){return bj(this,11)};g.setIsArchived=function(a){l(this,11,a)};g.getRelatedLinksList=function(){return xb(this,NCb,12)};var wGb=[2,8,6,12];gm.prototype.toObject=function(){return tJ(void 0,this)};
var tJ=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),snapshotList:Hb(xb(b,Xl,2),sJ,a),userData:vGb(a,b.getUserData()),aggregatedData:tGb(a,m(b,im,4)),parentIssueIdsList:n(ob(b,8)),accessLimit:SFb(a,b.getAccessLimit()),visibleFieldsList:Hb(b.getVisibleFieldsList(),jJ,a),majorModifiedTimeMicros:n(p(b,7)),ancestorsMap:Kb(b.getAncestorsMap(),a,YCb),childIssueCount:n(p(b,10)),isArchived:n(Mo(b,11)),relatedLinksList:Hb(b.getRelatedLinksList(),OCb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var fm=function(a){Z.call(this,a)};V(fm,Z);g=fm.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getPosition=function(){return fj(this,2)};g.setPosition=function(a){return l(this,2,a)};g.getIssue=function(){return m(this,gm,3)};g.setIssue=function(a){Gb(this,3,a)};g.toObject=function(){return xGb(this)};var xGb=function(a){if(null!=a)return{issueId:n(p(a,1)),position:n(p(a,2)),issue:tJ(void 0,a.getIssue())}};fm.messageId="b.HotlistIssue";
var zGb=function(a){Z.call(this,a,-1,yGb)};V(zGb,Z);g=zGb.prototype;g.getSnapshot=function(){return m(this,Xl,1)};g.setSnapshot=function(a){Gb(this,1,a)};g.getAttachmentsList=function(){return pb(this,2,hb)};g.setAttachmentsList=function(a){ll(this,2,a)};g.getTemplateId=function(){return lj(this,4)};g.setTemplateId=function(a){l(this,4,a)};g.getContentJudgement=function(){return m(this,Gl,5)};g.setContentJudgement=function(a){return Gb(this,5,a)};var yGb=[2,3];
zGb.prototype.toObject=function(){var a=null!=this?{snapshot:sJ(void 0,this.getSnapshot()),attachmentsList:Lb(this.getAttachmentsList()),attachmentStringsList:n(ob(this,3)),templateId:n(p(this,4)),contentJudgement:nJ(void 0,this.getContentJudgement())}:void 0;return a};
var dm=function(a){Z.call(this,a,-1,AGb)};V(dm,Z);g=dm.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getActionsList=function(){return xb(this,cm,2)};g.setActionsList=function(a){Fb(this,2,a)};g.getAttachmentsList=function(){return pb(this,3,hb)};g.setAttachmentsList=function(a){ll(this,3,a)};g.setSignificanceOverride=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return X(this,6,0)};
g.setCommentDisplayOverride=function(a){l(this,6,a)};var AGb=[2,3,5];dm.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),actionsList:Hb(this.getActionsList(),sGb),attachmentsList:Lb(this.getAttachmentsList()),significanceOverride:n(p(this,4)),attachmentStringsList:n(ob(this,5)),commentDisplayOverride:n(p(this,6))}:void 0;return a};
var uJ=function(a){Z.call(this,a)};V(uJ,Z);uJ.prototype.getCount=function(){return fj(this,2)};uJ.prototype.setCount=function(a){l(this,2,a)};uJ.prototype.getNextPageToken=function(){return W(this,5)};uJ.prototype.toObject=function(){var a=null!=this?{q:n(p(this,1)),count:n(p(this,2)),s:n(p(this,3)),p:n(p(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};
var Vqa=function(a){Z.call(this,a)};V(Vqa,Z);g=Vqa.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return lj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return ej(this,2)};g.getCommentDisplayOverride=function(){return X(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var Tqa=function(a){Z.call(this,a)};V(Tqa,Z);g=Tqa.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComponentId=function(){return lj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return ej(this,2)};g.getCommentDisplayOverride=function(){return X(this,3,0)};g.setCommentDisplayOverride=function(a){l(this,3,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),componentId:n(p(this,2)),commentDisplayOverride:n(p(this,3))}:void 0;return a};
var nm=function(a){Z.call(this,a,-1,BGb)};V(nm,Z);g=nm.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRelation=function(){return X(this,3,0)};g.setRelation=function(a){l(this,3,a)};g.getActionType=function(){return X(this,4,0)};g.setActionType=function(a){l(this,4,a)};g.getCommentDisplayOverride=function(){return X(this,5,0)};g.setCommentDisplayOverride=function(a){l(this,5,a)};var BGb=[2];
nm.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),targetIdsList:n(ob(this,2)),relation:n(p(this,3)),actionType:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var bm=function(a){Z.call(this,a)};V(bm,Z);g=bm.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentDisplayOverride=function(){return X(this,2,0)};g.setCommentDisplayOverride=function(a){l(this,2,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentDisplayOverride:n(p(this,2))}:void 0;return a};bm.messageId="b.UnCcUserActionRequest";
var vJ=function(a){Z.call(this,a)};V(vJ,Z);vJ.prototype.getIssueId=function(){return lj(this,1)};vJ.prototype.setIssueId=function(a){return l(this,1,a)};vJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};vJ.messageId="b.UndeleteIssueRequest";
var em=function(a){Z.call(this,a,-1,CGb)};V(em,Z);em.prototype.setAddHotlistIdsList=function(a){ll(this,1,a)};em.prototype.setRemoveHotlistIdsList=function(a){ll(this,2,a)};var cra=function(a,b){Gb(a,3,b)};em.prototype.setSignificanceOverride=function(a){l(this,4,a)};em.prototype.getCommentDisplayOverride=function(){return X(this,5,0)};em.prototype.setCommentDisplayOverride=function(a){l(this,5,a)};var CGb=[1,2];
em.prototype.toObject=function(){var a=null!=this?{addHotlistIdsList:n(ob(this,1)),removeHotlistIdsList:n(ob(this,2)),hotlistIssue:xGb(m(this,fm,3)),significanceOverride:n(p(this,4)),commentDisplayOverride:n(p(this,5))}:void 0;return a};
var hra=function(a){Z.call(this,a)};V(hra,Z);g=hra.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getRetention=function(){return X(this,2,0)};g.setRetention=function(a){l(this,2,a)};g.setSignificanceOverride=function(a){l(this,3,a)};g.getCommentDisplayOverride=function(){return X(this,4,0)};g.setCommentDisplayOverride=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),retention:n(p(this,2)),significanceOverride:n(p(this,3)),commentDisplayOverride:n(p(this,4))}:void 0;return a};
var om=function(a){Z.call(this,a)};V(om,Z);om.prototype.getTeamId=function(){return fj(this,1)};om.prototype.setTeamId=function(a){return Vk(this,1,a)};om.prototype.toObject=function(){return DGb(void 0,this)};var DGb=function(a,b){if(null!=b){var c={teamId:fj(b,1),score:Bl(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var pm=function(a){Z.call(this,a)};V(pm,Z);g=pm.prototype;g.getInherit=function(){return bj(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getId=function(){return lj(this,2)};g.setId=function(a){return l(this,2,a)};g.toObject=function(){return EGb(void 0,this)};var EGb=function(a,b){if(null!=b){var c={inherit:n(Mo(b,1)),id:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var qm=function(a){Z.call(this,a,-1,FGb)};V(qm,Z);var FGb=[1,2,4];qm.prototype.toObject=function(){return GGb(void 0,this)};var GGb=function(a,b){if(null!=b){var c={componentPathIdList:n(ob(b,1)),componentPathNameList:n(ob(b,2)),allCustomFieldList:Hb(xb(b,pl,4),mJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var sm=function(a){Z.call(this,a,-1,HGb)};V(sm,Z);g=sm.prototype;g.getComponentId=function(){return lj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return ej(this,1)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return bj(this,5)};
g.setArchived=function(a){l(this,5,a)};g.setHotlistIdList=function(a){ll(this,8,a)};g.getAccessLimit=function(){return m(this,Nk,12)};g.setAccessLimit=function(a){return Gb(this,12,a)};g.setCommentEditState=function(a){return l(this,15,a)};g.getSloId=function(){return lj(this,16)};g.setSloId=function(a){return l(this,16,a)};g.getSlo=function(){return m(this,Ml,19)};g.setSlo=function(a){Gb(this,19,a)};g.hasSlo=function(){return mj(this,19)};g.getRetentionSettings=function(){return m(this,Hl,21)};
g.setRetentionSettings=function(a){Gb(this,21,a)};g.hasRetentionSettings=function(){return mj(this,21)};g.getTeam=function(){return m(this,pm,22)};g.setTeam=function(a){Gb(this,22,a)};g.hasTeam=function(){return mj(this,22)};g.getEffortSpec=function(){return m(this,ql,24)};g.getTeamSuggestionsList=function(){return xb(this,om,25)};g.setTeamSuggestionsList=function(a){Fb(this,25,a)};var HGb=[6,7,8,9,25];sm.prototype.toObject=function(){return wJ(void 0,this)};
var wJ=function(a,b){if(null!=b){var c={componentId:n(p(b,1)),parentComponentId:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),archived:n(Mo(b,5)),codenameList:n(ob(b,6)),customFieldIdList:n(ob(b,7)),hotlistIdList:n(ob(b,8)),templateIdList:n(ob(b,9)),componentPathInfo:GGb(a,m(b,qm,10)),accessLimit:SFb(a,b.getAccessLimit()),emailAlias:n(p(b,13)),userHasEditAccess:n(Mo(b,14)),commentEditState:n(p(b,15)),sloId:n(p(b,16)),effectiveSloId:n(p(b,17)),defaultTemplateId:n(p(b,18)),slo:oGb(a,b.getSlo()),bugscopeSloId:n(p(b,
20)),retentionSettings:mGb(a,b.getRetentionSettings()),team:EGb(a,b.getTeam()),fieldOrdering:n(p(b,23)),effortSpec:eGb(a,b.getEffortSpec()),teamSuggestionsList:Hb(b.getTeamSuggestionsList(),DGb,a)};a&&(c.$jspbMessageInstance=b);return c}};sm.messageId="b.Component";
var tm=function(a){Z.call(this,a)};V(tm,Z);g=tm.prototype;g.getTemplateId=function(){return fj(this,1)};g.setTemplateId=function(a){l(this,1,a)};g.getComponentId=function(){return lj(this,2)};g.setComponentId=function(a){return l(this,2,a)};g.hasComponentId=function(){return ej(this,2)};g.getDefault=function(){return bj(this,6)};g.setDefault=function(a){l(this,6,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};
g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getSnapshot=function(){return m(this,Xl,5)};g.setSnapshot=function(a){Gb(this,5,a)};g.toObject=function(){return IGb(void 0,this)};var IGb=function(a,b){if(null!=b){var c={templateId:n(p(b,1)),componentId:n(p(b,2)),pb_default:n(Mo(b,6)),name:n(p(b,3)),description:n(p(b,4)),snapshot:sJ(a,b.getSnapshot())};a&&(c.$jspbMessageInstance=b);return c}};
var xJ=function(a){Z.call(this,a)};V(xJ,Z);xJ.prototype.getSlo=function(){return m(this,Ml,1)};xJ.prototype.setSlo=function(a){Gb(this,1,a)};xJ.prototype.hasSlo=function(){return mj(this,1)};xJ.prototype.toObject=function(){var a=null!=this?{slo:oGb(void 0,this.getSlo())}:void 0;return a};xJ.messageId="b.UpdateComponentSloRequest";
var yJ=function(a){Z.call(this,a)};V(yJ,Z);yJ.prototype.getTeam=function(){return m(this,pm,1)};yJ.prototype.setTeam=function(a){Gb(this,1,a)};yJ.prototype.hasTeam=function(){return mj(this,1)};yJ.prototype.toObject=function(){var a=null!=this?{team:EGb(void 0,this.getTeam())}:void 0;return a};yJ.messageId="b.UpdateComponentTeamRequest";
var JGb=function(a){Z.call(this,a)};V(JGb,Z);JGb.prototype.toObject=function(){var a=null!=this?{component:wJ(void 0,m(this,sm,1))}:void 0;return a};JGb.messageId="b.CreateComponentResponse";
var LGb=function(a){Z.call(this,a,-1,KGb)};V(LGb,Z);var KGb=[1];LGb.prototype.toObject=function(){var a=null!=this?{componentList:Hb(xb(this,sm,1),wJ)}:void 0;return a};LGb.messageId="b.ListComponentsResponse";
var MGb=function(){},NGb=function(){},zJ=function(a){this.executor=a};V(zJ,NGb);g=zJ.prototype;g.get=function(a){return this.query({id:[a]}).pipe(S(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:String(a)};if(void 0===b?0:b)a.includearchived=!0;return this.query(a)};g.fetchComponent=function(a,b){var c={};b.checkEditAccess&&(c.checkEditAccess="true");return this.executor.get({url:"action/components/"+a,options:{params:c},responseConstructor:sm}).pipe(S(rm))};
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");return this.executor.get({url:"action/components",options:{params:b},responseConstructor:LGb}).pipe(S(wra))};g.create=function(a){a=qra(a);return this.executor.post({url:"action/components",body:a,responseConstructor:JGb}).pipe(S(function(b){return rm(m(b,sm,1))}))};
g.update=function(a){var b=a.componentId,c=new sm;c.setComponentId(String(a.componentId));l(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);ll(c,7,d)}if(a.componentPathInfo){var e=a.componentPathInfo;d=new qm;if(e.componentPathId){var f=e.componentPathId.map(String);ll(d,1,f)}e.componentPathName&&(f=e.componentPathName.map(String),ll(d,2,f));e.allCustomField&&(e=e.allCustomField.map(eqa),
Fb(d,4,e));Gb(c,10,d)}a.accessLimit&&c.setAccessLimit(Ipa(a.accessLimit));l(c,13,a.emailAlias);a.userHasEditAccess&&l(c,14,a.userHasEditAccess);a.commentEditState&&c.setCommentEditState("ENABLED"===a.commentEditState?1:2);a.slo&&c.setSlo(uqa(a.slo));l(c,20,a.bugscopeSloId);a.retentionSettings&&c.setRetentionSettings(pqa(a.retentionSettings));a.fieldOrdering&&l(c,23,UAb[a.fieldOrdering]);a.effortSpec&&(d=vl(a.effortSpec),Gb(c,24,d));a.team&&c.setTeam(mra(a.team));var h;c.setTeamSuggestionsList((null!=
(h=a.teamSuggestions)?h:[]).map(lra));return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:sm}).pipe(S(rm))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:String(b)}},responseConstructor:sm}).pipe(S(rm))};g.updateSlo=function(a,b){var c=new xJ;c.setSlo(uqa(b));return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:sm}).pipe(S(rm))};
g.updateTeam=function(a,b){var c=new yJ;c.setTeam(mra(b));return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:sm}).pipe(S(rm))};zJ.\u0275fac=function(a){return new (a||zJ)(t(pI))};zJ.\u0275prov=lc({token:zJ,factory:zJ.\u0275fac,providedIn:"root"});var AJ=function(a){this.observableApi=a};V(AJ,MGb);g=AJ.prototype;g.get=function(a){return(0,U.firstValueFrom)(this.observableApi.get(a))};
g.getChildren=function(a,b){return(0,U.firstValueFrom)(this.observableApi.getChildren(a,void 0===b?!1:b))};g.fetchComponent=function(a,b){return(0,U.firstValueFrom)(this.observableApi.fetchComponent(a,b))};g.query=function(a){return(0,U.firstValueFrom)(this.observableApi.query(a))};g.create=function(a){return(0,U.firstValueFrom)(this.observableApi.create(a))};g.update=function(a){return(0,U.firstValueFrom)(this.observableApi.update(a))};
g.move=function(a,b){return(0,U.firstValueFrom)(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateTeam(a,b))};AJ.\u0275fac=function(a){return new (a||AJ)(t(zJ))};AJ.\u0275prov=lc({token:AJ,factory:AJ.\u0275fac,providedIn:"root"});
var BJ=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()},CJ=function(a){return Date.now()-a.lastValidated};BJ.prototype.isFresh=function(){return CJ(this)<this.cfg.freshUntil};BJ.prototype.isAncient=function(){return CJ(this)>this.cfg.ancientAfter};BJ.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};BJ.prototype.toString=function(){var a=String(this.data);return Math.ceil(CJ(this)/1E3)+"s old -- "+a};
var OGb=function(a){this.cfg=a;this.cache=new Map},PGb=function(a,b){a=DJ(a,b);return null==a?Infinity:a},DJ=function(a,b){var c;return null==(c=a.get(b,!0))?void 0:CJ(c)};OGb.prototype.isFresh=function(a){return PGb(this,a)<this.cfg.freshUntil};var QGb=function(a,b){return PGb(a,b)<=a.cfg.ancientAfter};g=OGb.prototype;g.isAncient=function(){var a=DJ(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 CJ(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 BJ(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new BJ(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=r(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 RGb=function(){},EJ={trustMemory:!0},SGb=function(){},Hma=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],TGb=function(a){this.ids=[];Object.assign(this,a)};V(TGb,SGb);TGb.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var UGb={freshUntil:1E4,ancientAfter:792E5},GJ=function(a){var b=this;a=void 0===a?{}:a;this.error$=new U.Subject;this.defaultQuery={};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("Jc`"+b.idKey+"`"+c);throw Error("Kc`"+c);};this.vals$ById=new Map;this.collections$ById=new Map;this.sets$ByLabel=new Map;this.inFlightGets$=new U.BehaviorSubject(Object.freeze({}));
this.inFlightSaves$=new U.BehaviorSubject(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(S(um));this.saving$=this.inFlightSaves$.pipe(S(um));this.thinking$=(0,U.combineLatest)(this.getting$,this.saving$).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Wf());this.gotOne=function(c){return function(d,e){e=void 0===e?{}:e;e=e.doNotTrack?RGb:FJ({label:c,value:DJ(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.vals$ById.get(c);e("one-isChanged");f?f.next(d):Sk(b.recordType+"::gotOne("+c+") !isEqual. Nobody's listening")}}};this.gotSet=function(c){return function(d){for(var e=r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=b.idForRecord(f);b.gotOne(h)(f,{doNotTrack:!0})}(e=VGb(b,c))?e.next(d):Tk("gotSet("+c+"), but no channel is set up")}};this.gotAll=function(c){return function(d){for(var e=FJ({label:c,value:DJ(b.collectiveMemory,c)}),f=r(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,Gma);b.collectiveMemory.set(c,f);e("all-isChanged");(e=b.collections$ById.get(c))?(d=WGb(b,f,d.results),e.next(d)):Lpa(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&&Tk("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=r(c);c=d.next().value;d=d.next().value;return c+": "+d}).join(", "),inFlightSaves:Object.entries(b.inFlightSaves).map(function(c){var d=r(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?um(b.inFlightSaves):!!b.inFlightSaves[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(S(function(d){return!!d[c]}),Wf())};this.isGetting=function(c){return null==c?um(b.inFlightGets):!!b.inFlightGets[c]};this.watchOne=this.watch=function(c,d){d=void 0===d?EJ:d;"number"===typeof d&&(d=EJ);if(null==c)return(0,U.of)();"number"===typeof c&&(c=String(c));
var e=XGb(b,c);YGb(b,c,d).catch(function(){});return tmb(e)};this.watchSet=function(c,d){d=void 0===d?EJ:d;"number"===typeof d&&(d=EJ);if(0===c.length)return(0,U.of)([]);c=c.map(function(f){return"number"===typeof f?String(f):f});var e=VGb(b,c);ZGb(b,c,d);return e};this.watchMany=function(c){var d=void 0===d?EJ:d;c=Object.assign({},b.defaultQuery,c);var e=$Gb(b,c);b.getAll(c,d);return tmb(e)};this.save=function(c){var d=b.idForRecord(c);if(null==d)throw Error("Lc");c=b.doSave(c).pipe(Vf(0,U.asapScheduler),
nha(),ef());b.setIsSaving(d);c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),aHb(d,b.inFlightSaves$));return c};this.setIsSaving=function(c){var d={};xra(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){vm(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};xra(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){vm(b.inFlightGets$,c)};this.poke=function(c){return null==c?bHb():YGb(b,String(c))};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("Mc");b.gotOne(e)(c,Object.assign({},{doNotTrack:!0},d))}};this.memory=new OGb(Object.assign({},UGb,a));this.collectiveMemory=new OGb(Object.assign({},UGb,a))};g=GJ.prototype;g.fetchOne=function(){throw Error("Nc");};g.fetchAll=function(){throw Error("Oc");};g.fetchSet=function(){throw Error("Pc");};g.doSave=function(){throw Error("Qc");};
g.copy=function(){throw Error("Rc");};g.isEqual=function(a,b){return Gma(a,b,100)};
var YGb=function(a,b,c){c=void 0===c?{}:c;var d=c.trustMemory,e=c.trustUncertainMemory;c=FJ({label:b,value:DJ(a.memory,b)});d=d&&a.memory.isFresh(b);e=e&&QGb(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Cra(c);if(a.inFlightGets[b])return c("one-inFlight"),c=XGb(a,b),Bra(c).then(Cra);c("one-fetch");var f=a.fetchOne(b).pipe(Vf(0,U.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)},aHb(b,a.inFlightGets$))})},ZGb=function(a,b,c){c=(void 0===c?{}:c).trustMemory;var d="["+[].concat(v(b)).sort().join("-")+"]",e=FJ({label:d});if(c&&cHb(a,b))dHb(a,b),e("set-trustMemory");else if(a.inFlightGets[d])e("set-inFlight");else{e("set-fetch");c=a.fetchSet(b).pipe(Vf(0,U.asapScheduler));e={};e=(e[d]=!0,e);for(var f=r(b),h=f.next();!h.done;h=f.next())e[h.value]=!0;xra(a.inFlightGets$,e);c.subscribe(a.gotSet(b),function(k){yra(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){yra(a.inFlightGets$,
[d].concat(v(b)))})}},cHb=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},dHb=function(a,b){var c=eHb(a,b);c.length!==b.length?Tk("broadcastSet("+b+"): cached records ("+c.length+") !== ids ("+b.length+")"):VGb(a,b).next(c)};
GJ.prototype.getAll=function(a,b){var c=(void 0===b?{}:b).trustMemory;b=wm(a);var d=FJ({label:b,value:DJ(this.collectiveMemory,b)});if(c&&this.collectiveMemory.isFresh(b))return d("all-trustMemory"),a=this.collectiveMemory.getData(b),b=eHb(this,a.ids),a=WGb(this,a,b),Promise.resolve(a);if(this.inFlightGets[b])return d("all-inFlight"),a=$Gb(this,a),Bra(a);d("all-fetch");c=this.fetchAll(a).pipe(Vf(0,U.asapScheduler));this.setIsGetting(b);c.subscribe(this.gotAll(b),this.gotErr(b,this.inFlightGets$),
aHb(b,this.inFlightGets$));a=$Gb(this,a);return Bra(a)};GJ.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);Mpa(a+" gotErr()",d);vm(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};var aHb=function(a,b){return function(){vm(b,a)}};GJ.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new TGb(Object.assign({},Ara(a),{ids:b}))};
var WGb=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},Ara(b),{results:a})},eHb=function(a,b){return b.map(function(c){return a.memory.getData(c)}).filter(cl)},$Gb=function(a,b){b=wm(b);return zra(a.collections$ById,b,new U.ReplaySubject(1))},VGb=function(a,b){b="["+[].concat(v(b)).sort().join("-")+"]";return zra(a.sets$ByLabel,b,new U.ReplaySubject(1))},XGb=function(a,b){var c=new U.ReplaySubject(1),d=a.memory.getData(b);null!=d&&c.next(d);return zra(a.vals$ById,
b,c)},fHb=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(wm(b))};GJ.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(wm(a))};
var HJ=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)};ji.Object.defineProperties(GJ.prototype,{inFlightGets:{configurable:!0,enumerable:!0,get:function(){return this.inFlightGets$.getValue()}},inFlightSaves:{configurable:!0,enumerable:!0,get:function(){return this.inFlightSaves$.getValue()}}});
var FJ=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,null==a[c]&&delete a[c];return function(){}},bHb=function(){return new Promise(function(){})};
var IJ=function(a){GJ.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=a;this.recordType="component";this.idKey="componentId"};V(IJ,GJ);IJ.prototype.fetchOne=function(a){return this.batchedComponentApi.get(a)};IJ.prototype.fetchSet=function(a){var b=this;return(0,U.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(S(function(c){return c.filter(cl)}))};IJ.\u0275fac=function(a){return new (a||IJ)(t(JJ))};IJ.\u0275prov=lc({token:IJ,factory:IJ.\u0275fac,providedIn:"root"});
var Dra={QA:124156,NIGHTLY:190923,PROD:190923},JJ=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)}})};
JJ.prototype.call=function(a){return 1===a.size?this.observableComponentApi.fetchComponent([].concat(v(a))[0],{}).pipe(S(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(v(a))}).pipe(S(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};JJ.prototype.splitBatch=function(a,b){return b.get(Number(a))};JJ.\u0275fac=function(a){return new (a||JJ)(t(NGb),t(hJ))};JJ.\u0275prov=lc({token:JJ,factory:JJ.\u0275fac,providedIn:"root"});
var KJ=function(a){Z.call(this,a)};V(KJ,Z);KJ.prototype.getSnapshot=function(){return m(this,Xl,1)};KJ.prototype.setSnapshot=function(a){Gb(this,1,a)};KJ.prototype.toObject=function(){var a=null!=this?{snapshot:sJ(void 0,this.getSnapshot()),customFieldMapMap:Kb(Zi(this,2,pl),void 0,mJ)}:void 0;return a};KJ.messageId="b.IssueTemplateResponse";
var hHb=function(a){Z.call(this,a,-1,gHb)};V(hHb,Z);var gHb=[1];hHb.prototype.toObject=function(){var a=null!=this?{templatesList:Hb(xb(this,tm,1),IGb)}:void 0;return a};hHb.messageId="b.ListTemplatesResponse";
var LJ=function(a){Z.call(this,a)};V(LJ,Z);LJ.prototype.toObject=function(){var a=null!=this?{template:IGb(void 0,m(this,tm,1))}:void 0;return a};LJ.messageId="b.TemplateResponse";
var MJ=function(){},NJ=function(a){this.executor=a};g=NJ.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:LJ}).pipe(S(Fra))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:hHb}).pipe(S(Gra))};g.create=function(a,b){b=ura(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:LJ,body:b}).pipe(S(Fra))};
g.update=function(a,b,c){c=ura(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:LJ,body:c}).pipe(S(Fra))};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:KJ,options:{params:{templateId:String(b)}}}).pipe(S(vra))};NJ.\u0275fac=function(a){return new (a||NJ)(t(pI))};
NJ.\u0275prov=lc({token:NJ,factory:NJ.\u0275fac,providedIn:"root"});var OJ=function(a){this.observableApi=a};V(OJ,MJ);g=OJ.prototype;g.get=function(a,b){return(0,U.firstValueFrom)(this.observableApi.get(a,b))};g.query=function(a){return(0,U.firstValueFrom)(this.observableApi.query(a))};g.create=function(a,b){return(0,U.firstValueFrom)(this.observableApi.create(a,b))};g.update=function(a,b,c){return(0,U.firstValueFrom)(this.observableApi.update(a,b,c))};
g.delete=function(a,b){return(0,U.firstValueFrom)(this.observableApi.delete(a,b))};g.getIssueTemplate=function(a,b){return(0,U.firstValueFrom)(this.observableApi.getIssueTemplate(a,b))};OJ.\u0275fac=function(a){return new (a||OJ)(t(NJ))};OJ.\u0275prov=lc({token:OJ,factory:OJ.\u0275fac,providedIn:"root"});
var PJ=function(a){Z.call(this,a,-1,iHb)};V(PJ,Z);PJ.prototype.getIssueId=function(){return lj(this,1)};PJ.prototype.setIssueId=function(a){return l(this,1,a)};PJ.prototype.getAttachmentsList=function(){return pb(this,2,hb)};PJ.prototype.setAttachmentsList=function(a){ll(this,2,a)};var ym=function(a){Z.call(this,a)};V(ym,Z);ym.prototype.getContentJudgement=function(){return m(this,Gl,2)};ym.prototype.setContentJudgement=function(a){return Gb(this,2,a)};var iHb=[2,3];
PJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentsList:Lb(this.getAttachmentsList()),attachmentsWithJudgementsList:Hb(xb(this,ym,3),jHb)}:void 0;return a};ym.prototype.toObject=function(){return jHb(void 0,this)};var jHb=function(a,b){if(null!=b){var c={attachment:Lb(xm(b,1)),contentJudgement:nJ(a,b.getContentJudgement())};a&&(c.$jspbMessageInstance=b);return c}};
var kHb=function(a){Z.call(this,a)};V(kHb,Z);g=kHb.prototype;g.getFilename=function(){return W(this,1)};g.setFilename=function(a){l(this,1,a)};g.getMimeType=function(){return W(this,2)};g.setMimeType=function(a){l(this,2,a)};g.getSize=function(){return fj(this,5)};g.setSize=function(a){return l(this,5,a)};g.toObject=function(){var a=null!=this?{filename:n(p(this,1)),mimeType:n(p(this,2)),encryptedBlobId:n(p(this,3)),docId:n(p(this,4)),size:n(p(this,5))}:void 0;return a};
var mHb=function(a){Z.call(this,a,-1,lHb)};V(mHb,Z);g=mHb.prototype;g.setSignificanceOverride=function(a){l(this,3,a)};g.setIssueIdsList=function(a){ll(this,1,a)};g.addIssueIds=function(a){tb(this,1,a)};g.getActionsList=function(){return xb(this,cm,2)};g.setActionsList=function(a){Fb(this,2,a)};var Qm=function(a){Z.call(this,a,-1,nHb)};V(Qm,Z);Qm.prototype.getActionsList=function(){return xb(this,cm,1)};Qm.prototype.setActionsList=function(a){Fb(this,1,a)};
Qm.prototype.setIssueIdsList=function(a){ll(this,2,a)};Qm.prototype.addIssueIds=function(a){tb(this,2,a)};var lHb=[4,1,2];mHb.prototype.toObject=function(){var a=null!=this?{bulkEditOpsList:Hb(xb(this,Qm,4),oHb),significanceOverride:n(p(this,3)),issueIdsList:n(ob(this,1)),actionsList:Hb(this.getActionsList(),sGb)}:void 0;return a};var nHb=[1,2];Qm.prototype.toObject=function(){return oHb(void 0,this)};
var oHb=function(a,b){if(null!=b){var c={actionsList:Hb(b.getActionsList(),sGb,a),issueIdsList:n(ob(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Wm=function(a){Z.call(this,a)};V(Wm,Z);Wm.prototype.getContent=function(){return m(this,Hm,1)};Wm.prototype.setContent=function(a){Gb(this,1,a)};Wm.prototype.hasContent=function(){return mj(this,1)};Wm.prototype.toObject=function(){return pHb(void 0,this)};var pHb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var zp=function(a){Z.call(this,a)};V(zp,Z);zp.prototype.getContent=function(){return m(this,Hm,1)};zp.prototype.setContent=function(a){Gb(this,1,a)};zp.prototype.hasContent=function(){return mj(this,1)};zp.prototype.toObject=function(){return qHb(void 0,this)};var qHb=function(a,b){if(null!=b){var c={content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Bp=function(a){Z.call(this,a)};V(Bp,Z);g=Bp.prototype;g.getIsQuoted=function(){return bj(this,1)};g.getContent=function(){return m(this,Hm,2)};g.setContent=function(a){Gb(this,2,a)};g.hasContent=function(){return mj(this,2)};g.toObject=function(){return rHb(void 0,this)};var rHb=function(a,b){if(null!=b){var c={isQuoted:n(Mo(b,1)),content:MH(a,b.getContent())};a&&(c.$jspbMessageInstance=b);return c}};
var Ap=function(a){Z.call(this,a,-1,sHb)};V(Ap,Z);Ap.prototype.getPlainSectionList=function(){return xb(this,Bp,1)};Ap.prototype.addPlainSection=function(a){ru(this,1,Bp,a)};var sHb=[1];Ap.prototype.toObject=function(){return tHb(void 0,this)};var tHb=function(a,b){if(null!=b){var c={plainSectionList:Hb(b.getPlainSectionList(),rHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Vm=function(a){Z.call(this,a)};V(Vm,Z);g=Vm.prototype;g.getKindCase=function(){return ub(this,QJ)};g.getPlainFormat=function(){return Al(this,Ap,1,QJ)};g.setPlainFormat=function(a){qu(this,1,QJ,a)};g.hasPlainFormat=function(){return yl(this,1,QJ)};g.getMarkdownFormat=function(){return Al(this,zp,2,QJ)};g.setMarkdownFormat=function(a){qu(this,2,QJ,a)};g.hasMarkdownFormat=function(){return yl(this,2,QJ)};g.getLiteralFormat=function(){return Al(this,Wm,3,QJ)};
g.setLiteralFormat=function(a){qu(this,3,QJ,a)};g.hasLiteralFormat=function(){return yl(this,3,QJ)};var QJ=[1,2,3];Vm.prototype.toObject=function(){return uHb(void 0,this)};var uHb=function(a,b){if(null!=b){var c={plainFormat:tHb(a,b.getPlainFormat()),markdownFormat:qHb(a,b.getMarkdownFormat()),literalFormat:pHb(a,b.getLiteralFormat())};a&&(c.$jspbMessageInstance=b);return c}};
var Rm=function(a){Z.call(this,a)};V(Rm,Z);Rm.prototype.getIssueId=function(){return lj(this,1)};Rm.prototype.setIssueId=function(a){return l(this,1,a)};Rm.prototype.getMessage=function(){return W(this,2)};Rm.prototype.toObject=function(){return vHb(void 0,this)};var vHb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),message:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var xHb=function(a){Z.call(this,a,-1,wHb)};V(xHb,Z);var wHb=[2];xHb.prototype.toObject=function(){var a=null!=this?{affectedIssuesMap:Kb(Zi(this,1,gm),void 0,tJ),errorsList:Hb(xb(this,Rm,2),vHb),componentMapMap:Kb(Zi(this,3,sm),void 0,wJ)}:void 0;return a};xHb.messageId="b.BulkEditResponse";
var RJ=function(a){Z.call(this,a)};V(RJ,Z);RJ.prototype.getIssueId=function(){return lj(this,1)};RJ.prototype.setIssueId=function(a){return l(this,1,a)};RJ.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1))}:void 0;return a};RJ.messageId="b.IssueCreateResponse";
var yHb=function(a){Z.call(this,a)};V(yHb,Z);yHb.prototype.toObject=function(){return zHb(void 0,this)};var zHb=function(a,b){if(null!=b){var c={blobId:n(p(b,1)),blobGeneration:n(p(b,5)),readToken:n(p(b,2)),uploadMetadataContainer:Lb(nu(b,3)),downloadReadHandle:Lb(nu(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var AHb=function(a){Z.call(this,a)};V(AHb,Z);AHb.prototype.toObject=function(){return BHb(void 0,this)};var BHb=function(a,b){if(null!=b){var c={bucketName:n(p(b,1)),objectName:n(p(b,2)),generation:n(p(b,7))};a&&(c.$jspbMessageInstance=b);return c}};
var SJ=function(a){Z.call(this,a)};V(SJ,Z);g=SJ.prototype;g.getPath=function(){return p(this,3)};g.setPath=function(a){return l(this,3,a)};g.hasPath=function(){return ej(this,3)};g.getBlobRef=function(){return nu(this,4)};g.getInline=function(){return nu(this,5)};g.getObjectId=function(){return m(this,AHb,6)};g.setObjectId=function(a){Gb(this,6,a)};g.getBlobstore2Info=function(){return m(this,yHb,7)};g.getCosmoBinaryReference=function(){return nu(this,8)};g.getMd5Hash=function(){return nu(this,10)};
g.getSha1Hash=function(){return nu(this,11)};g.toObject=function(){return TJ(void 0,this)};var TJ=function(a,b){if(null!=b){var c={length:n(p(b,1)),referenceType:n(p(b,2)),path:n(p(b,3)),blobRef:Lb(b.getBlobRef()),inline:Lb(b.getInline()),objectId:BHb(a,b.getObjectId()),blobstore2Info:zHb(a,b.getBlobstore2Info()),cosmoBinaryReference:Lb(b.getCosmoBinaryReference()),crc32cHash:n(p(b,9)),md5Hash:Lb(b.getMd5Hash()),sha1Hash:Lb(b.getSha1Hash())};a&&(c.$jspbMessageInstance=b);return c}};
var CHb=function(a){Z.call(this,a)};V(CHb,Z);CHb.prototype.toObject=function(){return DHb(void 0,this)};var DHb=function(a,b){if(null!=b){var c={bestGuess:n(p(b,1)),fromHeader:n(p(b,2)),fromFileName:n(p(b,3)),fromUrlPath:n(p(b,4)),fromBytes:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var EHb=function(a){Z.call(this,a)};V(EHb,Z);EHb.prototype.getObjectLocation=function(){return m(this,SJ,5)};EHb.prototype.toObject=function(){return FHb(void 0,this)};var FHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2)),chunkSizeBytes:n(p(b,3)),checksumsLocation:TJ(a,m(b,SJ,4)),objectLocation:TJ(a,b.getObjectLocation())};a&&(c.$jspbMessageInstance=b);return c}};
var GHb=function(a){Z.call(this,a)};V(GHb,Z);GHb.prototype.getObjectLocation=function(){return m(this,SJ,1,1)};GHb.prototype.toObject=function(){return HHb(void 0,this)};var HHb=function(a,b){if(null!=b){var c={objectLocation:TJ(a,m(b,SJ,1))};a&&(c.$jspbMessageInstance=b);return c}};
var IHb=function(a){Z.call(this,a)};V(IHb,Z);IHb.prototype.toObject=function(){return JHb(void 0,this)};var JHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectInfo:TJ(a,m(b,SJ,2)),checksumsInfo:TJ(a,m(b,SJ,3))};a&&(c.$jspbMessageInstance=b);return c}};
var KHb=function(a){Z.call(this,a)};V(KHb,Z);KHb.prototype.toObject=function(){return LHb(void 0,this)};var LHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),originalObject:TJ(a,m(b,SJ,2))};a&&(c.$jspbMessageInstance=b);return c}};
var MHb=function(a){Z.call(this,a)};V(MHb,Z);MHb.prototype.toObject=function(){return NHb(void 0,this)};var NHb=function(a,b){if(null!=b){var c={objectVersion:n(p(b,1)),objectSizeBytes:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var OHb=function(a){Z.call(this,a)};V(OHb,Z);OHb.prototype.toObject=function(){return PHb(void 0,this)};var PHb=function(a,b){if(null!=b){var c={allowGzipCompression:n(Mo(b,1)),ignoreRange:n(Mo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Am=function(a){Z.call(this,a,-1,QHb)};V(Am,Z);g=Am.prototype;g.getTimestamp=function(){return p(this,2)};g.setTimestamp=function(a){return l(this,2,a)};g.hasTimestamp=function(){return ej(this,2)};g.getToken=function(){return p(this,3)};g.setToken=function(a){return l(this,3,a)};g.getFilename=function(){return p(this,5)};g.setFilename=function(a){l(this,5,a)};g.getPath=function(){return p(this,7)};g.setPath=function(a){return l(this,7,a)};g.hasPath=function(){return ej(this,7)};
g.getBlobRef=function(){return nu(this,8)};g.getInline=function(){return nu(this,9)};g.getHash=function(){return p(this,11)};g.setHash=function(a){return l(this,11,a)};g.getObjectId=function(){return m(this,AHb,15)};g.setObjectId=function(a){Gb(this,15,a)};g.getBlobstore2Info=function(){return m(this,yHb,16)};g.getMd5Hash=function(){return nu(this,25)};g.getSha1Hash=function(){return nu(this,26)};g.getCosmoBinaryReference=function(){return nu(this,28)};var QHb=[13];
Am.prototype.toObject=function(){return RHb(void 0,this)};
var RHb=function(a,b){if(null!=b){var c={contentType:n(p(b,1)),timestamp:n(p(b,2)),token:n(p(b,3)),length:n(p(b,4)),filename:n(p(b,5)),referenceType:n(p(b,6)),path:n(p(b,7)),blobRef:Lb(b.getBlobRef()),inline:Lb(b.getInline()),mediaId:Lb(nu(b,10)),hash:n(p(b,11)),algorithm:n(p(b,12)),compositeMediaList:Hb(xb(b,SJ,13),TJ,a),bigstoreObjectRef:Lb(nu(b,14)),objectId:BHb(a,b.getObjectId()),blobstore2Info:zHb(a,b.getBlobstore2Info()),diffVersionResponse:NHb(a,m(b,MHb,17)),diffChecksumsResponse:FHb(a,m(b,
EHb,18)),diffDownloadResponse:HHb(a,m(b,GHb,19)),diffUploadRequest:JHb(a,m(b,IHb,20)),diffUploadResponse:LHb(a,m(b,KHb,21)),contentTypeInfo:DHb(a,m(b,CHb,22)),downloadParameters:PHb(a,m(b,OHb,23)),crc32cHash:n(p(b,24)),md5Hash:Lb(b.getMd5Hash()),sha1Hash:Lb(b.getSha1Hash()),sha256Hash:Lb(nu(b,30)),isPotentialRetry:bj(b,27,!0),cosmoBinaryReference:Lb(b.getCosmoBinaryReference()),hashVerified:n(Mo(b,29))};a&&(c.$jspbMessageInstance=b);return c}};
var UJ=function(a){Z.call(this,a)};V(UJ,Z);g=UJ.prototype;g.getStatus=function(){return X(this,1,0)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return ej(this,1)};g.setReason=function(a){l(this,2,a)};g.toObject=function(){return SHb(void 0,this)};var SHb=function(a,b){if(null!=b){var c={status:n(p(b,1)),reason:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Nm=function(a){Z.call(this,a)};V(Nm,Z);g=Nm.prototype;g.getAttachmentId=function(){return lj(this,1)};g.setAttachmentId=function(a){l(this,1,a)};g.getDescription=function(){return W(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getFilename=function(){return W(this,5)};g.setFilename=function(a){l(this,5,a)};g.getEtag=function(){return W(this,8)};g.setEtag=function(a){l(this,8,a)};g.hasEtag=function(){return ej(this,8)};g.getContentVerdict=function(){return m(this,$l,9)};
g.getEntityStatus=function(){return m(this,UJ,10)};g.getPiiRetentionState=function(){return m(this,jm,12)};g.hasPiiRetentionState=function(){return mj(this,12)};g.getPiiRetention=function(){return X(this,13,0)};g.setPiiRetention=function(a){return l(this,13,a)};g.toObject=function(){return THb(void 0,this)};
var THb=function(a,b){if(null!=b){var c={attachmentId:n(p(b,1)),description:n(p(b,2)),media:RHb(a,m(b,Am,3)),contentType:n(p(b,4)),filename:n(p(b,5)),length:n(p(b,6)),filecompUrl:n(p(b,7)),etag:n(p(b,8)),contentVerdict:lGb(a,b.getContentVerdict()),entityStatus:SHb(a,b.getEntityStatus()),piiRetentionState:oJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,13))};a&&(c.$jspbMessageInstance=b);return c}};Nm.messageId="b.Attachment";
var VJ=function(a){Z.call(this,a)};V(VJ,Z);VJ.prototype.getCustomFieldId=function(){return fj(this,3)};VJ.prototype.setCustomFieldId=function(a){return l(this,3,a)};VJ.prototype.hasCustomFieldId=function(){return ej(this,3)};VJ.prototype.toObject=function(){return UHb(void 0,this)};var UHb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2)),customFieldId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var VHb=function(a){Z.call(this,a)};V(VHb,Z);g=VHb.prototype;g.getHref=function(){return W(this,1)};g.getValue=function(){return W(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.toObject=function(){return WHb(void 0,this)};var WHb=function(a,b){if(null!=b){var c={href:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Gm=function(a){Z.call(this,a,-1,XHb)};V(Gm,Z);Gm.prototype.getAddedList=function(){return xb(this,VHb,1)};Gm.prototype.getRemovedList=function(){return xb(this,VHb,2)};var XHb=[1,2];Gm.prototype.toObject=function(){return YHb(void 0,this)};var YHb=function(a,b){if(null!=b){var c={addedList:Hb(b.getAddedList(),WHb,a),removedList:Hb(b.getRemovedList(),WHb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var ZHb=function(a){Z.call(this,a)};V(ZHb,Z);ZHb.prototype.toObject=function(){return $Hb(void 0,this)};var $Hb=function(a,b){if(null!=b){var c={oldValue:n(p(b,1)),newValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Em=function(a){Z.call(this,a)};V(Em,Z);Em.prototype.toObject=function(){return aIb(void 0,this)};var aIb=function(a,b){if(null!=b){var c={oldUser:qJ(a,m(b,Tl,1)),newUser:qJ(a,m(b,Tl,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Cm=function(a){Z.call(this,a)};V(Cm,Z);var Dm=[1,2];Cm.prototype.toObject=function(){return bIb(void 0,this)};var bIb=function(a,b){if(null!=b){var c={userDiff:aIb(a,Al(b,Em,1,Dm)),stringDiff:$Hb(a,Al(b,ZHb,2,Dm))};a&&(c.$jspbMessageInstance=b);return c}};
var WJ=function(a){Z.call(this,a,-1,cIb)};V(WJ,Z);WJ.prototype.getAddedList=function(){return ob(this,1)};WJ.prototype.getRemovedList=function(){return ob(this,2)};var cIb=[1,2];WJ.prototype.toObject=function(){return dIb(void 0,this)};var dIb=function(a,b){if(null!=b){var c={addedList:n(ob(b,1)),removedList:n(ob(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Fm=function(a){Z.call(this,a,-1,eIb)};V(Fm,Z);Fm.prototype.getAddedList=function(){return xb(this,Tl,1)};Fm.prototype.getRemovedList=function(){return xb(this,Tl,2)};var eIb=[1,2];Fm.prototype.toObject=function(){return fIb(void 0,this)};var fIb=function(a,b){if(null!=b){var c={addedList:Hb(b.getAddedList(),qJ,a),removedList:Hb(b.getRemovedList(),qJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Km=function(a){Z.call(this,a)};V(Km,Z);g=Km.prototype;g.getName=function(){return W(this,1)};g.setName=function(a){return l(this,1,a)};g.hasName=function(){return ej(this,1)};g.getDisplayName=function(){return W(this,2)};g.setDisplayName=function(a){return l(this,2,a)};g.getType=function(){return X(this,3,0)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return ej(this,3)};g.getTimestamp=function(){return m(this,tj,4)};g.setTimestamp=function(a){return Gb(this,4,a)};
g.hasTimestamp=function(){return mj(this,4)};var Bm=[6,7,8,9,10];Km.prototype.toObject=function(){return gIb(void 0,this)};var gIb=function(a,b){if(null!=b){var c={name:n(p(b,1)),displayName:n(p(b,2)),type:n(p(b,3)),timestamp:Nu(a,b.getTimestamp()),important:n(Mo(b,5)),singleValueDiff:bIb(a,Al(b,Cm,6,Bm)),collectionDiff:dIb(a,Al(b,WJ,7,Bm)),linkedCollectionDiff:YHb(a,Al(b,Gm,8,Bm)),customFieldDiff:UHb(a,Al(b,VJ,9,Bm)),userCollectionDiff:fIb(a,Al(b,Fm,10,Bm))};a&&(c.$jspbMessageInstance=b);return c}};
Km.messageId="b.EventDiff";
var XJ=function(a){Z.call(this,a,-1,hIb)};V(XJ,Z);XJ.prototype.getMentionedUser=function(){return m(this,Tl,1)};XJ.prototype.getState=function(){return X(this,2,0)};var hIb=[3];XJ.prototype.toObject=function(){return iIb(void 0,this)};var iIb=function(a,b){if(null!=b){var c={mentionedUser:qJ(a,b.getMentionedUser()),state:n(p(b,2)),displayEmailList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var YJ=function(a){Z.call(this,a,-1,jIb)};V(YJ,Z);g=YJ.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentId=function(){return fj(this,2)};g.getComment=function(){return W(this,3)};g.setComment=function(a){l(this,3,a)};g.getMentionsList=function(){return xb(this,XJ,16)};g.getCommentContentVerdict=function(){return m(this,$l,14)};g.setCommentContentVerdict=function(a){Gb(this,14,a)};g.hasCommentContentVerdict=function(){return mj(this,14)};
g.getLastModified=function(){return fj(this,5)};g.getVersion=function(){return fj(this,6)};g.setVersion=function(a){return l(this,6,a)};g.getEntityStatus=function(){return m(this,UJ,9)};g.getFormattingMode=function(){return X(this,10,0)};g.setFormattingMode=function(a){l(this,10,a)};g.getFormattedComment=function(){return m(this,Vm,13)};g.getPiiRetentionState=function(){return m(this,jm,11)};g.hasPiiRetentionState=function(){return mj(this,11)};g.getPiiRetention=function(){return X(this,12,0)};
g.setPiiRetention=function(a){return l(this,12,a)};g.getEtag=function(){return W(this,17)};g.setEtag=function(a){l(this,17,a)};g.hasEtag=function(){return ej(this,17)};var jIb=[16];YJ.prototype.toObject=function(){return kIb(void 0,this)};
var kIb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),commentId:n(p(b,2)),comment:n(p(b,3)),mentionsList:Hb(b.getMentionsList(),iIb,a),commentContentVerdict:lGb(a,b.getCommentContentVerdict()),lastEditorUser:qJ(a,m(b,Tl,8)),lastModified:n(p(b,5)),version:n(p(b,6)),unlinkifiedComment:n(p(b,7)),entityStatus:SHb(a,b.getEntityStatus()),formattingMode:n(p(b,10)),formattedComment:uHb(a,b.getFormattedComment()),piiRetentionState:oJ(a,b.getPiiRetentionState()),piiRetention:n(p(b,12)),redacted:n(Mo(b,
15)),etag:n(p(b,17))};a&&(c.$jspbMessageInstance=b);return c}};YJ.messageId="b.IssueComment";
var Lm=function(a){Z.call(this,a)};V(Lm,Z);Lm.prototype.getTag=function(){return W(this,1)};Lm.prototype.toObject=function(){return lIb(void 0,this)};var lIb=function(a,b){if(null!=b){var c={tag:n(p(b,1)),text:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Om=function(a){Z.call(this,a,-1,mIb)};V(Om,Z);g=Om.prototype;g.getComment=function(){return m(this,YJ,6)};g.setComment=function(a){Gb(this,6,a)};g.getAttachmentsList=function(){return xb(this,Nm,10)};g.setAttachmentsList=function(a){Fb(this,10,a)};g.getVersion=function(){return fj(this,7)};g.setVersion=function(a){return l(this,7,a)};var mIb=[1,2,3,10,9];Om.prototype.toObject=function(){return nIb(void 0,this)};
var nIb=function(a,b){if(null!=b){var c={addedAttachmentIdsList:n(ob(b,1)),preDiffsList:Hb(xb(b,Km,2),gIb,a),postDiffsList:Hb(xb(b,Km,3),gIb,a),modifiedDate:Nu(a,m(b,tj,4)),userPerformingAction:qJ(a,m(b,Tl,5)),isHumanAuthor:n(Mo(b,11)),isCollaboratorAuthor:n(Mo(b,12)),comment:kIb(a,b.getComment()),attachmentsList:Hb(b.getAttachmentsList(),THb,a),version:n(p(b,7)),isMajorEvent:n(Mo(b,8)),taggedSummaryList:Hb(xb(b,Lm,9),lIb,a)};a&&(c.$jspbMessageInstance=b);return c}};Om.messageId="b.IssueEvent";
var an=function(a){Z.call(this,a,-1,oIb)};V(an,Z);an.prototype.getIssue=function(){return m(this,gm,1)};an.prototype.setIssue=function(a){Gb(this,1,a)};an.prototype.getCustomFieldsList=function(){return xb(this,pl,3)};var oIb=[2,3];an.prototype.toObject=function(){return pIb(void 0,this)};
var pIb=function(a,b){if(null!=b){var c={issue:tJ(a,b.getIssue()),eventsList:Hb(xb(b,Om,2),nIb,a),firstEvent:nIb(a,m(b,Om,5)),customFieldsList:Hb(b.getCustomFieldsList(),mJ,a),attachmentMapMap:Kb(Zi(b,4,Nm),a,THb)};a&&(c.$jspbMessageInstance=b);return c}};an.messageId="b.IssueFetchResponse";
var ZJ=function(a){Z.call(this,a,-1,qIb)};V(ZJ,Z);ZJ.prototype.getIssuesList=function(){return xb(this,gm,1)};ZJ.prototype.getNumTotalResults=function(){return fj(this,2)};ZJ.prototype.getNextPageToken=function(){return W(this,5)};var qIb=[1];ZJ.prototype.toObject=function(){var a=null!=this?{issuesList:Hb(this.getIssuesList(),tJ),numTotalResults:n(p(this,2)),componentsMap:Kb(Zi(this,3,sm),void 0,wJ),positionsMap:Kb(Zi(this,4)),nextPageToken:n(p(this,5))}:void 0;return a};ZJ.messageId="b.IssueSearchResponse";
var $J=function(a){Z.call(this,a)};V($J,Z);g=$J.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getStatus=function(){return X(this,2,0)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return ej(this,2)};g.getTitle=function(){return W(this,3)};g.setTitle=function(a){return l(this,3,a)};g.getVersion=function(){return fj(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getIsArchived=function(){return bj(this,5)};
g.setIsArchived=function(a){l(this,5,a)};g.toObject=function(){return rIb(void 0,this)};var rIb=function(a,b){if(null!=b){var c={issueId:n(p(b,1)),status:n(p(b,2)),title:n(p(b,3)),version:n(p(b,4)),isArchived:n(Mo(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var aK=function(a){Z.call(this,a,-1,sIb)};V(aK,Z);aK.prototype.getIssueDigestsList=function(){return xb(this,$J,1)};aK.prototype.getNumTotalResults=function(){return fj(this,2)};var sIb=[1];aK.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Hb(this.getIssueDigestsList(),rIb),numTotalResults:n(p(this,2))}:void 0;return a};aK.messageId="b.RelatedIssuesResponse";
var bK=function(){},cK=function(a){this.executor=a};g=cK.prototype;g.createIssue=function(a){var b=new zGb;b.setSnapshot(Qqa(a.snapshot));a.attachments&&b.setAttachmentsList(a.attachments);a.templateId&&b.setTemplateId(String(a.templateId));a.contentJudgement&&b.setContentJudgement(nqa(a.contentJudgement));return this.executor.post({url:"action/issues",body:b,responseConstructor:RJ}).pipe(S(jra))};
g.getIssue=function(a,b){var c={};(void 0===b?0:b)&&(c.omitLegacyComment="1");return this.executor.get({url:"action/issues/"+a,options:{params:c},responseConstructor:an}).pipe(S(function(d){return Pm(d)}))};g.updateIssue=function(a,b){b=ara(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};g.moveIssueExternal=function(a,b){b=Wqa(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};
g.moveIssue=function(a,b){b=Uqa(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};g.unCcUser=function(a){var b=Sqa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};g.relateIssue=function(a,b){b=gra(b);return this.executor.post({url:"action/issues/"+a+"/relate",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};
g.updateIssueHotlists=function(a,b){b=dra(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};g.updateIssueRetention=function(a,b){b=ira(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:an}).pipe(S(function(c){return Pm(c)}))};
g.listIssues=function(a,b){b=void 0===b?{}:b;var c=new uJ;l(c,1,a);b.count&&c.setCount(b.count);b.s&&l(c,3,b.s);b.p&&l(c,4,b.p);return this.executor.post({url:"action/issues/list",body:c,responseConstructor:ZJ}).pipe(S(fsa))};
g.issueBulkEdit=function(a){var b=new mHb;if(void 0!==a.actions)b.setIssueIdsList(a.issueIds.map(String)),b.setActionsList(a.actions.map($qa));else{var c=a.bulkEditOps.map(Vra);Fb(b,4,c);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride)}return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:xHb}).pipe(S(Xra))};
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));var c="action/related";a.resourceType&&(c+="/"+a.resourceType,a.resourceId&&(c+="/"+a.resourceId));return this.executor.get({url:c,options:{params:b},responseConstructor:aK}).pipe(S(era))};cK.\u0275fac=function(a){return new (a||cK)(t(pI))};cK.\u0275prov=lc({token:cK,factory:cK.\u0275fac,providedIn:"root"});var dK=function(a){this.observableApi=a};V(dK,bK);g=dK.prototype;
g.createIssue=function(a){return(0,U.firstValueFrom)(this.observableApi.createIssue(a))};g.getIssue=function(a,b){return(0,U.firstValueFrom)(this.observableApi.getIssue(a,void 0===b?!1:b))};g.updateIssue=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return(0,U.firstValueFrom)(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return(0,U.firstValueFrom)(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return(0,U.firstValueFrom)(this.observableApi.unCcUser(a))};
g.relateIssue=function(a,b){return(0,U.firstValueFrom)(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateIssueHotlists(a,b))};g.updateIssueRetention=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=void 0===b?{}:b;return(0,U.firstValueFrom)(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a){return(0,U.firstValueFrom)(this.observableApi.issueBulkEdit(a))};
g.getRelatedIssues=function(a){return(0,U.firstValueFrom)(this.observableApi.getRelatedIssues(a))};dK.\u0275fac=function(a){return new (a||dK)(t(cK))};dK.\u0275prov=lc({token:dK,factory:dK.\u0275fac,providedIn:"root"});
var Xm=function(a){Z.call(this,a)};V(Xm,Z);Xm.prototype.getResource=function(){return W(this,1)};Xm.prototype.getRelation=function(){return X(this,2,0)};Xm.prototype.setRelation=function(a){l(this,2,a)};Xm.prototype.toObject=function(){return tIb(void 0,this)};var tIb=function(a,b){if(null!=b){var c={resource:n(p(b,1)),relation:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};Xm.messageId="b.ResourceRelation";
var eK=function(a){Z.call(this,a,-1,uIb)};V(eK,Z);var uIb=[1];eK.prototype.toObject=function(){var a=null!=this?{grantedList:Hb(xb(this,Xm,1),tIb)}:void 0;return a};eK.messageId="b.UserAccessBatchResponse";
var fK=function(a,b){var c=this;this.userAccess=a;this.accesses={};this.resourceNamePattern=RegExp("^((components|issues|hotlists|savedSearches|bookmarkGroups|templates|slos|teams)\\/\\d+|components\\/\\d+\\/issueDefaults|teams\\/\\d+\\/slo|issues\\/\\d+\\/(attachments|comments)\\/\\d+)$");this.accessGetter=b.adapt(function(d){return vIb(c,d)})},vIb=function(a,b){return wIb(a,b).then(function(c){return jsa(b,c)})},gK=function(a,b,c){return a.resourceNamePattern.test(c)?xIb(a,b,c):Promise.reject("invalid resource name: "+
c)},wIb=function(a,b){var c=[],d=[];b=r(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)},xIb=function(a,b,c){var d=b+"/"+c;a.accesses[d]||(a.accesses[d]=a.accessGetter.get({relation:b,resourceName:c}).then(function(e){return null==e?!1:e}),a.accesses[d].then(function(){delete a.accesses[d]}));return a.accesses[d]};fK.\u0275fac=function(a){return new (a||fK)(t(hK),t(oI))};
fK.\u0275prov=lc({token:fK,factory:fK.\u0275fac,providedIn:"root"});var iK=function(a){this.executor=a};iK.prototype.bulkGetUserAccess=function(a,b){return this.executor.get({url:"action/user_access",options:{params:{relations:a.join(","),resourceNames:b.join(",")}},responseConstructor:eK}).pipe(S(isa))};iK.\u0275fac=function(a){return new (a||iK)(t(pI))};iK.\u0275prov=lc({token:iK,factory:iK.\u0275fac,providedIn:"root"});var hK=function(a){this.observableApi=a};
hK.prototype.bulkGetUserAccess=function(a,b){return(0,U.firstValueFrom)(this.observableApi.bulkGetUserAccess(a,b))};hK.\u0275fac=function(a){return new (a||hK)(t(iK))};hK.\u0275prov=lc({token:hK,factory:hK.\u0275fac,providedIn:"root"});
var yIb=new sd("MatSnackBarData"),Ym=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};
var zIb=Math.pow(2,31)-1,jK=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new U.Subject;this._afterOpened=new U.Subject;this._onAction=new U.Subject;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};jK.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
var psa=function(a){a._onAction.closed||(a._dismissedByAction=!0,a._onAction.next(),a._onAction.complete(),a.dismiss());clearTimeout(a._durationTimeoutId)};g=jK.prototype;g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,zIb))};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 kK=function(a,b){this.snackBarRef=a;this.data=b};kK.prototype.action=function(){psa(this.snackBarRef)};ji.Object.defineProperties(kK.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});kK.\u0275fac=function(a){return new (a||kK)(C(jK),C(yIb))};
kK.\u0275cmp=w({type:kK,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&&(F(0,"span",0),P(1),G(),O(2,ksa,3,1,"div",1));a&2&&(B(1),Ke(b.data.message),B(1),D("ngIf",b.hasAction))},dependencies:[ux,rB],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 AIb=Ch("state",[Fh("void, hidden",Eh({transform:"scale(0.8)",opacity:0})),Fh("visible",Eh({transform:"scale(1)",opacity:1})),Gh("* => visible",Dh("150ms cubic-bezier(0, 0, 0.2, 1)")),Gh("* => void, * => hidden",Dh("75ms cubic-bezier(0.4, 0.0, 1, 1)",Eh({opacity:0})))]);
var lK=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 U.Subject;this._onExit=new U.Subject;this._onEnter=new U.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"))};V(lK,OA);lK.prototype.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};lK.prototype.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};var BIb=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=lK.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(Xf()).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)})};lK.\u0275fac=function(a){return new (a||lK)(C(qg),C(wd),C(nx),C(yy),C(Ym))};lK.\u0275dir=w({type:lK,viewQuery:function(a,b){a&1&&Hf(RA,7);if(a&2){var c;Gf(c=Jf())&&(b._portalOutlet=c.first)}},features:[ie]});var mK=function(){lK.apply(this,arguments)};V(mK,lK);mK.\u0275dir=lK.\u0275dir;
mK.prototype._afterPortalAttached=function(){lK.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")};mK.\u0275fac=function(){var a;return function(b){return(a||(a=md(mK)))(b||mK)}}();
mK.\u0275cmp=w({type:mK,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,b){a&1&&efa("@state.done",function(c){return BIb(b,c)});a&2&&De("@state",b._animationState)},features:[ie],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(F(0,"div",0),O(1,lsa,0,0,"ng-template",1),G(),H(2,"div"));a&2&&(B(2),oe("aria-live",b._live)("role",b._role))},dependencies:[RA],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:[AIb]}});
var nK=function(){};nK.\u0275fac=function(a){return new (a||nK)};nK.\u0275mod=Cc({type:nK});nK.\u0275inj=mc({imports:[WA,SA,Mx,uG,XA,XA]});
var CIb=new sd("mat-snack-bar-default-options",{providedIn:"root",factory:msa}),oK=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=oK.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=og({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:Ym,useValue:b}]});a=a.attach(new MA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new Ym,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new jK(b,e);if(a instanceof Df)f.instance=b.attachTemplatePortal(new NA(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new MA(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(jg(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 zA;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"):IA(c);"top"===a.verticalPosition?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return og({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:jK,useValue:b},{provide:yIb,useValue:a.data}]})};ji.Object.defineProperties(oK.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}}});
oK.\u0275fac=function(a){return new (a||oK)(t(TA),t(Pz),t(Iv),t(iF),t(oK,12),t(CIb))};oK.\u0275prov=lc({token:oK,factory:oK.\u0275fac});var pK=function(a,b,c,d,e,f){oK.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=kK;this.snackBarContainerComponent=mK;this.handsetCssClass="mat-snack-bar-handset"};V(pK,oK);pK.\u0275fac=function(a){return new (a||pK)(t(TA),t(Pz),t(Iv),t(iF),t(pK,12),t(CIb))};pK.\u0275prov=lc({token:pK,factory:pK.\u0275fac,providedIn:nK});
var qK=function(a){this.snackBar=a};qK.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=qh(Lj(b).toString());switch(d){case "ERROR":b="error";break;default:b=void 0}b={data:a,panelClass:b};c&&(b.duration=c);return this.snackBar._attach(rK,b)};qK.\u0275fac=function(a){return new (a||qK)(t(pK))};qK.\u0275prov=lc({token:qK,factory:qK.\u0275fac,providedIn:"root"});
var rK=function(a,b){this.data=a;this.snackBarRef=b};rK.\u0275fac=function(a){return new (a||rK)(C(yIb),C(jK))};
rK.\u0275cmp=w({type:rK,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&&(F(0,"div",0),O(1,nsa,2,1,"span",1),O(2,
osa,1,1,"span",2),F(3,"div",3),O(4,qsa,2,1,"button",4),O(5,rsa,2,1,"button",4),O(6,ssa,2,0,"button",5),G()());a&2&&(B(1),D("ngIf",!b.data.htmlMessage),B(1),D("ngIf",b.data.htmlMessage),B(2),D("ngIf",b.data.actionLabel),B(1),D("ngIf",b.data.dismissLabel),B(1),D("ngIf",!b.data.dismissLabel))},dependencies:[ux,rB,XE],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 sK=function(a){this.snackbar=a};sK.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var tK=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},DIb=function(a,b,c){a.open({message:b,duration:void 0===c?1E4:c})},uK=function(a,b,c){a.open({message:b,duration:void 0===c?0:c,snackbarType:"ERROR"})};sK.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};sK.\u0275fac=function(a){return new (a||sK)(t(qK))};
sK.\u0275prov=lc({token:sK,factory:sK.\u0275fac,providedIn:"root"});
var vK=function(){};g=vK.prototype;g.debug=function(){Sk.apply(null,v(xc.apply(0,arguments)))};g.error=function(){Mpa.apply(null,v(xc.apply(0,arguments)))};g.info=function(){Kpa.apply(null,v(xc.apply(0,arguments)))};g.log=function(){Lpa.apply(null,v(xc.apply(0,arguments)))};g.warn=function(){Tk.apply(null,v(xc.apply(0,arguments)))};vK.\u0275fac=function(a){return new (a||vK)};vK.\u0275prov=lc({token:vK,factory:vK.\u0275fac,providedIn:"root"});
var xK=function(a,b,c,d){this.butterBar=a;this.activeSession=b;this.$log=c;this.timeout=d};
xK.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.":$m(b)?$m(b):404===b.status?"Invalid ID.":"Unknown HTTP error "+b.status+". Please copy your data and refresh the page.";c.$log.error(d,b);uK(c.butterBar,d)})};
var yK=function(a,b){a.$log.warn(b);uK(a.butterBar,b)},zK=function(a,b){if(Zm(b))a.errorHandler(null,b);else throw b;};xK.\u0275fac=function(a){return new (a||xK)(t(sK),t(yH),t(vK),t(nI))};xK.\u0275prov=lc({token:xK,factory:xK.\u0275fac,providedIn:"root"});
var AK=function(a,b,c,d){this.issueApi=a;this.templatesApi=b;this.errorHandler=c;this.userAccess=d},FIb=function(a,b){b=a.issueApi.getIssue(b).then(function(c){var d=sa(c.issue.snapshot);c=c.events[0].unlinkifiedComment;d.comment=c?c.trim():"";d.status="NEW";delete d.createdTimeMicros;delete d.version;delete d.changelist;delete d.significanceOverride;delete d.duplicateIssueId;delete d.duplicateOfIssueId;return{snapshot:d,customFieldMap:{}}}).then(function(c){return EIb(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,
c)});return b},EIb=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return gK(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})};AK.\u0275fac=function(a){return new (a||AK)(t(bK),t(MJ),t(xK),t(fK))};AK.\u0275prov=lc({token:AK,factory:AK.\u0275fac,providedIn:"root"});
var BK=function(){this.bookmarkGroupModified=new U.Subject;this.commentSubmitted=new U.Subject;this.commentRendered=new U.Subject;this.componentModified=new U.Subject;this.contactChipsRevertChanges=new U.Subject;this.customFieldsModified=new U.Subject;this.dashboardPanels={moveDown:new U.Subject,moveUp:new U.Subject,moveToTop:new U.Subject,moveToBottom:new U.Subject,remove:new U.Subject};this.favoritesModified=new U.Subject;this.hotlistCreated=new U.Subject;this.onClickAppMenuIcon=new U.Subject;this.openEditField=
new U.Subject;this.sidebarWidthChanged=new U.Subject;this.hotlistChanged=new U.Subject;this.savedSearchModified=new U.Subject;this.sidebarUpdated=new U.Subject;this.topBarEvents={browseComponents:new U.Subject,manageHotlists:new U.Subject,manageSlos:new U.Subject,setDensity:new U.Subject,openSettings:new U.Subject};this.templateModified=new U.Subject;this.issueViewed=new U.Subject;this.issueEdited=new U.Subject;this.focusCommentBox=new U.Subject;this.scrollToCommentBox=new U.Subject};
BK.\u0275fac=function(a){return new (a||BK)};BK.\u0275prov=lc({token:BK,factory:BK.\u0275fac,providedIn:"root"});
var CK=function(a,b){GJ.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(xf(cl),S(function(e){return e.templates}),S(function(e){var f;return null!=(f=e.find(function(h){return h.default}))?f:e[0]}))};this.appEvents.templateModified.pipe(xf(function(d){return!!d&&"0"!==d})).subscribe(function(d){c.poke(d)})};V(CK,GJ);
CK.prototype.fetchOne=function(a){return(0,U.from)(this.template.templatesApi.query(Number(a)).then(function(b){return{componentId:a,templates:b}}))};CK.\u0275fac=function(a){return new (a||CK)(t(AK),t(BK))};CK.\u0275prov=lc({token:CK,factory:CK.\u0275fac,providedIn:"root"});
var usa=function(a){Z.call(this,a,-1,GIb)};V(usa,Z);var GIb=[1];usa.prototype.toObject=function(){var a=null!=this?{issueDetailsList:Hb(xb(this,an,1),pIb)}:void 0;return a};
var HIb=!1;
var JIb=function(a){Z.call(this,a,-1,IIb)};V(JIb,Z);g=JIb.prototype;g.getComponentId=function(){return fj(this,1)};g.setComponentId=function(a){return l(this,1,a)};g.hasComponentId=function(){return ej(this,1)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return ej(this,2)};g.getPriority=function(){return X(this,3,0)};g.setPriority=function(a){return l(this,3,a)};g.getSeverity=function(){return X(this,4,0)};
g.setSeverity=function(a){return l(this,4,a)};g.getStatus=function(){return X(this,5,0)};g.setStatus=function(a){return l(this,5,a)};g.hasStatus=function(){return ej(this,5)};g.getReporter=function(){return m(this,Tl,6)};g.setReporter=function(a){Gb(this,6,a)};g.getAssignee=function(){return m(this,Tl,7)};g.setAssignee=function(a){Gb(this,7,a)};g.clearAssignee=function(){return Gb(this,7)};g.getVerifier=function(){return m(this,Tl,8)};g.setVerifier=function(a){Gb(this,8,a)};
g.clearVerifier=function(){return Gb(this,8)};g.getCcsList=function(){return xb(this,Tl,9)};g.addHotlistIds=function(a,b){return tb(this,10,a,b)};g.setInProd=function(a){l(this,15,a)};g.getSloSnoozeUntil=function(){return m(this,tj,16)};g.setSloSnoozeUntil=function(a){Gb(this,16,a)};g.getRetention=function(){return X(this,17,0)};g.setRetention=function(a){l(this,17,a)};g.getEntityStatus=function(){return m(this,UJ,18)};g.getIsArchived=function(){return bj(this,19)};
g.setIsArchived=function(a){l(this,19,a)};var IIb=[9,10,11,12,14];JIb.prototype.toObject=function(){return KIb(this)};
var KIb=function(a){if(null!=a)return{componentId:n(p(a,1)),type:n(p(a,2)),priority:n(p(a,3)),severity:n(p(a,4)),status:n(p(a,5)),reporter:qJ(void 0,a.getReporter()),assignee:qJ(void 0,a.getAssignee()),verifier:qJ(void 0,a.getVerifier()),ccsList:Hb(a.getCcsList(),qJ),hotlistIdsList:n(ob(a,10)),blockedByIssueIdsList:n(ob(a,11)),blockingIssueIdsList:n(ob(a,12)),canonicalIssueId:n(p(a,13)),duplicateIssueIdsList:n(ob(a,14)),inProd:n(Mo(a,15)),sloSnoozeUntil:Nu(void 0,a.getSloSnoozeUntil()),retention:n(p(a,
17)),entityStatus:SHb(void 0,a.getEntityStatus()),isArchived:n(Mo(a,19))}};
var LIb=function(a){Z.call(this,a)};V(LIb,Z);g=LIb.prototype;g.getIssueId=function(){return fj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getIssueState=function(){return m(this,JIb,2)};g.getVersion=function(){return fj(this,3)};g.setVersion=function(a){return l(this,3,a)};g.getCreatedTime=function(){return m(this,tj,4)};g.getModifiedTime=function(){return m(this,tj,5)};g.getResolvedTime=function(){return m(this,tj,6)};g.getVerifiedTime=function(){return m(this,tj,7)};
g.getSloId=function(){return fj(this,9)};g.setSloId=function(a){return l(this,9,a)};g.getSloStatus=function(){return m(this,lm,10)};g.setSloStatus=function(a){Gb(this,10,a)};g.getRetentionState=function(){return m(this,jm,11)};g.setRetentionState=function(a){Gb(this,11,a)};g.getAccessLimit=function(){return m(this,Nk,12)};g.setAccessLimit=function(a){return Gb(this,12,a)};g.getTeamId=function(){return fj(this,13)};g.setTeamId=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),issueState:KIb(this.getIssueState()),version:n(p(this,3)),createdTime:Nu(void 0,this.getCreatedTime()),modifiedTime:Nu(void 0,this.getModifiedTime()),resolvedTime:Nu(void 0,this.getResolvedTime()),verifiedTime:Nu(void 0,this.getVerifiedTime()),sloId:n(p(this,9)),sloStatus:qGb(void 0,this.getSloStatus()),retentionState:oJ(void 0,this.getRetentionState()),accessLimit:SFb(void 0,this.getAccessLimit()),teamId:n(p(this,13))}:void 0;return a};
LIb.messageId="b.IssueMetadata";
var DK=function(a){Z.call(this,a,-1,MIb)};V(DK,Z);DK.prototype.setIssueIdsList=function(a){ll(this,1,a)};DK.prototype.addIssueIds=function(a){tb(this,1,a)};var MIb=[1];DK.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(ob(this,1)),read:n(Mo(this,2))}:void 0;return a};
var NIb=function(a){Z.call(this,a)};V(NIb,Z);NIb.prototype.toObject=function(){var a=null!=this?{readTimestamp:n(p(this,1))}:void 0;return a};NIb.messageId="b.UpdateIssueReadTimestampResponse";
var EK=function(a){this.executor=a};EK.prototype.delete=function(a,b){var c=new rJ;c.setIssueId(String(a));c.setReason(Pqa[b]);return this.executor.post({url:"action/issues/"+a+"/delete",body:c,responseConstructor:null})};EK.prototype.undelete=function(a){var b=new vJ;b.setIssueId(String(a));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};EK.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:LIb}).then(asa)};
EK.prototype.markRead=function(a,b){b=void 0===b?!0:b;var c=new DK;c.setIssueIdsList(a.map(Number));l(c,2,b);return this.executor.post({url:"action/issues/read_timestamp",body:c,responseConstructor:NIb}).then($ra)};EK.\u0275fac=function(a){return new (a||EK)(t(qI))};EK.\u0275prov=lc({token:EK,factory:EK.\u0275fac,providedIn:"root"});
var OIb=function(a){this.allowExecution=a;this.queue=[]};OIb.prototype.addTask=function(a){this.queue.push(a);PIb(this)};var PIb=function(a){if(0!==a.queue.length)if(a.allowExecution()){var b=r(a.queue),c=b.next().value;a.queue=wf(b);c();PIb(a)}else setTimeout(function(){PIb(a)},0)};
var FK=function(a,b,c,d){var e=this;this.location=a;this.platformLocation=b;this.activatedRoute=c;this.router=d;this.scheduler=new OIb(function(){return!e.router.currentNavigation})};g=FK.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 QIb=function(a,b){a.path(b,!0)};g=FK.prototype;g.getPath=function(){var a=r(this.location.path().split("?")).next().value;return r(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 Dsa(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(){Ys(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)};FK.\u0275fac=function(a){return new (a||FK)(t(Tx),t(Nx),t(mk),t(Gk))};FK.\u0275prov=lc({token:FK,factory:FK.\u0275fac,providedIn:"root"});
var GK=function(a){this.bLocation=a};GK.prototype.createIssue=function(a){return dn("issues/new",{params:a})};GK.prototype.editIssue=function(a,b){return cn(a,b)};GK.prototype.listIssues=function(a){return en(a)};GK.prototype.viewSavedSearch=function(a){return bn("savedsearches/:savedSearchId",{id:a,params:void 0})};
var RIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;return a.bLocation.path()===b},SIb=function(a,b){b="/"!==b.charAt(0)?"/"+b:b;a=a.bLocation.url();a=new Xo(a);b=new Xo(b);return a.getPath()===b.getPath()&&TG(a.queryData_.toString())===TG(b.queryData_.toString())};g=GK.prototype;g.viewHotlist=function(a){return bn("hotlists/:hotlistId",{id:a})};g.editHotlist=function(a){return dn("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 bn("bookmark-groups/:groupId",{id:a})};g.editBookmarkGroup=function(a){return dn("bookmark-groups/:groupId/edit",{id:a})};g.editSavedSearch=function(a){return dn("savedsearches/:savedSearchId/edit",{id:a})};g.dashboard=function(a){return dn("dashboard/:groupId",{id:a})};g.issuesCsvAction=function(a,b,c,d){b=wsa(b);c=xsa(c);return TD("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=wsa(b);(c=xsa(c))&&(c="position,"+c);return TD(a,"s",b,"c",c,"h",d)};g.toApiSortParamValue=function(a){return wsa(a)};g.getAttachmentAction=function(a,b){return"action/issues/"+a.toString()+"/attachments/"+b.toString()};g.listComponents=function(){return dn("components",{params:void 0})};g.viewComponent=function(a,b){return bn("components/:componentId",{id:a,tab:b})};g.manageComponent=function(a,b){return ysa(a,b)};
g.manageComponentAcl=function(a){return bn("components/:componentId/manage#access",{id:a,tab:void 0})};g.createComponent=function(a){return dn("components/new",{params:a})};g.editComponent=function(a,b){return dn("components/:componentId/edit",{id:a,tab:b})};g.createSlo=function(){return dn("slos/new",{params:void 0})};g.editSlo=function(a){return hn(a).path};g.listSlos=function(){return dn("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"};GK.\u0275fac=function(a){return new (a||GK)(t(FK))};GK.\u0275prov=lc({token:GK,factory:GK.\u0275fac,providedIn:"root"});
var TIb=function(a,b){this.childIterator_=a[da.Symbol.iterator]();this.mapFn_=b};TIb.prototype[Symbol.iterator]=function(){return this};TIb.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 UIb=function(a,b){return new TIb(a,b)};
var HK=function(){};HK.prototype.next=function(){return VIb};var VIb={done:!0,value:void 0};HK.prototype.__iterator__=function(){return this};
var WIb=function(a){if(a instanceof IK||a instanceof JK||a instanceof KK)return a;if("function"==typeof a.next)return new IK(function(){return a});if("function"==typeof a[Symbol.iterator])return new IK(function(){return a[Symbol.iterator]()});if("function"==typeof a.__iterator__)return new IK(function(){return a.__iterator__()});throw Error("Tc");},IK=function(a){this.func_=a};IK.prototype.__iterator__=function(){return new JK(this.func_())};IK.prototype[Symbol.iterator]=function(){return new KK(this.func_())};
IK.prototype.toEs6=function(){return new KK(this.func_())};var JK=function(a){this.iter_=a};V(JK,HK);JK.prototype.next=function(){return this.iter_.next()};JK.prototype[Symbol.iterator]=function(){return new KK(this.iter_)};JK.prototype.toEs6=function(){return new KK(this.iter_)};var KK=function(a){IK.call(this,function(){return a});this.iter_=a};V(KK,IK);KK.prototype.next=function(){return this.iter_.next()};
var LK=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uc");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=LK.prototype;g.getCount=function(){return this.size};g.getValues=function(){MK(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){MK(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return NK(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(NK(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||XIb;MK(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var XIb=function(a,b){return a===b};LK.prototype.isEmpty=function(){return 0==this.size};
LK.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};LK.prototype.remove=function(a){return this.delete(a)};LK.prototype.delete=function(a){return NK(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&MK(this),!0):!1};
var MK=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];NK(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],NK(e,d)||(a.keys_[c++]=d,e[d]=1),b++;a.keys_.length=c}};g=LK.prototype;g.get=function(a,b){return NK(this.map_,a)?this.map_[a]:b};g.set=function(a,b){NK(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 LK)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 LK(this)};g.toObject=function(){MK(this);for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};g.keys=function(){return WIb(this.__iterator__(!0)).toEs6()};g.values=function(){return WIb(this.__iterator__(!1)).toEs6()};
g.entries=function(){var a=this;return UIb(this.keys(),function(b){return[b,a.get(b)]})};g.__iterator__=function(a){MK(this);var b=0,c=this.version_,d=this,e=new HK;e.next=function(){if(c!=d.version_)throw Error("Vc");if(b>=d.keys_.length)return VIb;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var NK=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var OK=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new LK;this.head_=new YIb("");this.head_.next=this.head_.prev=this.head_},$Ib=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),ZIb(a,b));return b};OK.prototype.get=function(a,b){return(a=$Ib(this,a))?a.value:b};var aJb=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=OK.prototype;g.set=function(a,b){var c=$Ib(this,a);c?c.value=b:(c=new YIb(a,b),this.map_.set(a,c),ZIb(this,c))};
g.shift=function(){return bJb(this,this.head_.next)};g.pop=function(){return bJb(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(){cJb(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 ZIb=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_&&cJb(a,a.maxCount_)},cJb=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)}},bJb=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},YIb=function(a,b){this.key=a;this.value=b};
YIb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var PK=function(){this.caches=new Map};PK.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Wc`"+a);b=new QK(null==b?void 0:b.capacity);this.caches.set(a,b);return b};PK.prototype.get=function(a){return this.caches.get(a)};PK.\u0275fac=function(a){return new (a||PK)};PK.\u0275prov=lc({token:PK,factory:PK.\u0275fac,providedIn:"root"});var QK=function(a){this.lruCache=new OK(a,!0)};QK.prototype.get=function(a){return this.lruCache.get(a)};
QK.prototype.put=function(a,b){void 0!==b&&this.lruCache.set(a,b);return b};QK.prototype.remove=function(a){this.lruCache.remove(a)};QK.prototype.removeAll=function(){this.lruCache.clear()};
var jn=function(a){Z.call(this,a)};V(jn,Z);g=jn.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getCustomFieldId=function(){return lj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};g.hasCustomFieldId=function(){return ej(this,2)};g.getCustomFieldName=function(){return W(this,3)};g.toObject=function(){return dJb(void 0,this)};
var dJb=function(a,b){if(null!=b){var c={type:n(p(b,1)),customFieldId:n(p(b,2)),customFieldName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var kn=function(a){Z.call(this,a)};V(kn,Z);g=kn.prototype;g.getField=function(){return m(this,jn,1)};g.setField=function(a){Gb(this,1,a)};g.getDirection=function(){return X(this,2,0)};g.setDirection=function(a){return l(this,2,a)};g.toObject=function(){return eJb(void 0,this)};var eJb=function(a,b){if(null!=b){var c={field:dJb(a,b.getField()),direction:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var ln=function(a){Z.call(this,a,-1,fJb)};V(ln,Z);g=ln.prototype;g.getHotlistId=function(){return lj(this,1)};g.setHotlistId=function(a){l(this,1,a)};g.getOwnerUser=function(){return m(this,Tl,13)};g.setOwnerUser=function(a){Gb(this,13,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getArchived=function(){return bj(this,6)};
g.setArchived=function(a){l(this,6,a)};g.getDisplayColumnList=function(){return xb(this,jn,8)};g.setDisplayColumnList=function(a){Fb(this,8,a)};g.getSortOrderList=function(){return xb(this,kn,9)};g.setSortOrderList=function(a){Fb(this,9,a)};g.getCreatedTimeMicros=function(){return fj(this,10)};g.setCreatedTimeMicros=function(a){l(this,10,a)};g.getModifiedTimeMicros=function(){return fj(this,11)};g.setModifiedTimeMicros=function(a){l(this,11,a)};g.getAdminUsersList=function(){return xb(this,Tl,14)};
g.setAdminUsersList=function(a){Fb(this,14,a)};g.getEtag=function(){return W(this,15)};g.setEtag=function(a){l(this,15,a)};g.hasEtag=function(){return ej(this,15)};var fJb=[8,9,14];ln.prototype.toObject=function(){return gJb(void 0,this)};
var gJb=function(a,b){if(null!=b){var c={hotlistId:n(p(b,1)),ownerUser:qJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),archived:n(Mo(b,6)),displayColumnList:Hb(b.getDisplayColumnList(),dJb,a),sortOrderList:Hb(b.getSortOrderList(),eJb,a),createdTimeMicros:n(p(b,10)),modifiedTimeMicros:n(p(b,11)),adminUsersList:Hb(b.getAdminUsersList(),qJ,a),etag:n(p(b,15))};a&&(c.$jspbMessageInstance=b);return c}};ln.messageId="b.Hotlist";
var RK=function(a){Z.call(this,a,-1,hJb)};V(RK,Z);RK.prototype.getHotlistsList=function(){return xb(this,ln,1)};var hJb=[1];RK.prototype.toObject=function(){var a=null!=this?{hotlistsList:Hb(this.getHotlistsList(),gJb)}:void 0;return a};RK.messageId="b.ListHotlistsResponse";
var SK=function(a,b){this.hotlistApi=b;this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:250})};SK.prototype.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};SK.prototype.bulkLoad=function(a){var b=this;a=a.filter(function(d){return!b.hotlistCache.get(String(d))});if(!a.length)return Promise.resolve(void 0);var c=this.hotlistApi.bulkLoad(a);iJb(this,a,c);return c};
var iJb=function(a,b,c){c=c.then(function(f){if(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,h[k.hotlistId]=k;return h}});var d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$id$1667:d.$jscomp$loop$prop$id$1667},e=b.next())d.$jscomp$loop$prop$id$1667=e.value,a.hotlistCache.put(String(d.$jscomp$loop$prop$id$1667),c.then(function(f){return function(h){return h&&h[f.$jscomp$loop$prop$id$1667]?h[f.$jscomp$loop$prop$id$1667]:Promise.reject({data:{message:"Could not load hotlist "+
f.$jscomp$loop$prop$id$1667}})}}(d)))};g=SK.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){return this.hotlistApi.getPagedHotlistContent(a,b,c,d)};SK.\u0275fac=function(a){return new (a||SK)(t(PK),t(TK))};SK.\u0275prov=lc({token:SK,factory:SK.\u0275fac,providedIn:"root"});var UK=function(a,b){this.paths=a;this.executor=b};g=UK.prototype;g.get=function(a){return this.executor.get({url:"action/hotlists/"+a,responseConstructor:ln}).pipe(S(mn))};g.bulkLoad=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:RK,options:{params:{id:a.map(String)}}}).pipe(S(Lsa))};
g.repositionHotlistIssue=function(a,b,c){var d=new fm;d.setIssueId(String(Number(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 ln;c.setName(a);b&&c.setDescription(b);return this.executor.post({url:"action/hotlists",body:c,responseConstructor:ln}).pipe(S(mn))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:RK,options:{params:{q:a}}}).pipe(S(function(b){var c;return(null!=(c=b.getHotlistsList())?c:[]).map(mn)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:Ksa(b),responseConstructor:ln}).pipe(S(mn))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:Ksa(b),options:{headers:c},responseConstructor:ln}).pipe(S(mn))};g.getPagedHotlistContent=function(a,b,c,d){b={p:String(b),count:String(c)};(d=this.paths.toApiSortParamValue(d))&&(b.s=d);return this.executor.get({url:"action/hotlists/"+a+"/issues",options:{params:b},responseConstructor:ZJ}).pipe(S(fsa))};UK.\u0275fac=function(a){return new (a||UK)(t(GK),t(pI))};
UK.\u0275prov=lc({token:UK,factory:UK.\u0275fac,providedIn:"root"});var TK=function(a){this.observableApi=a};g=TK.prototype;g.get=function(a){return(0,U.firstValueFrom)(this.observableApi.get(a))};g.bulkLoad=function(a){return(0,U.firstValueFrom)(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return(0,U.firstValueFrom)(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return(0,U.firstValueFrom)(this.observableApi.createHotlist(a,b))};
g.queryHotlists=function(a){return(0,U.firstValueFrom)(this.observableApi.queryHotlists(a))};g.archiveHotlist=function(a,b){return(0,U.firstValueFrom)(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return(0,U.firstValueFrom)(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d){return(0,U.firstValueFrom)(this.observableApi.getPagedHotlistContent(a,b,c,d))};TK.\u0275fac=function(a){return new (a||TK)(t(UK))};
TK.\u0275prov=lc({token:TK,factory:TK.\u0275fac,providedIn:"root"});
var jJb=function(a){Z.call(this,a)};V(jJb,Z);g=jJb.prototype;g.getUser=function(){return m(this,Tl,5)};g.setUser=function(a){Gb(this,5,a)};g.getResourceType=function(){return X(this,2,0)};g.setResourceType=function(a){l(this,2,a)};g.hasResourceType=function(){return ej(this,2)};g.getResourceId=function(){return lj(this,3)};g.setResourceId=function(a){l(this,3,a)};g.hasResourceId=function(){return ej(this,3)};g.getName=function(){return W(this,4)};g.setName=function(a){return l(this,4,a)};
g.hasName=function(){return ej(this,4)};g.toObject=function(){return kJb(this)};var kJb=function(a){if(null!=a)return{user:qJ(void 0,a.getUser()),resourceType:n(p(a,2)),resourceId:n(p(a,3)),name:n(p(a,4))}};
var nn=function(a){Z.call(this,a,-1,lJb)};V(nn,Z);g=nn.prototype;g.getOwnerUser=function(){return m(this,Tl,10)};g.setOwnerUser=function(a){Gb(this,10,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getQuery=function(){return W(this,7)};g.setQuery=function(a){return l(this,7,a)};g.clearQuery=function(){rb(this,7)};
g.hasQuery=function(){return ej(this,7)};g.getSortOrderList=function(){return xb(this,kn,8)};g.setSortOrderList=function(a){Fb(this,8,a)};g.getDisplayColumnList=function(){return xb(this,jn,6)};g.setDisplayColumnList=function(a){Fb(this,6,a)};g.getAdminUsersList=function(){return xb(this,Tl,11)};g.setAdminUsersList=function(a){Fb(this,11,a)};var lJb=[8,6,11];nn.prototype.toObject=function(){return mJb(void 0,this)};
var mJb=function(a,b){if(null!=b){var c={searchId:n(p(b,1)),ownerUser:qJ(a,b.getOwnerUser()),name:n(p(b,3)),description:n(p(b,4)),query:n(p(b,7)),sortOrderList:Hb(b.getSortOrderList(),eJb,a),displayColumnList:Hb(b.getDisplayColumnList(),dJb,a),adminUsersList:Hb(b.getAdminUsersList(),qJ,a)};a&&(c.$jspbMessageInstance=b);return c}};
var VK=function(a){Z.call(this,a)};V(VK,Z);VK.prototype.getFavorite=function(){return m(this,jJb,1)};VK.prototype.toObject=function(){var a=null!=this?{favorite:kJb(this.getFavorite())}:void 0;return a};VK.messageId="b.Favorite";
var WK=function(a){Z.call(this,a,-1,nJb)};V(WK,Z);WK.prototype.addHotlist=function(a){ru(this,1,ln,a)};var nJb=[1];WK.prototype.toObject=function(){var a=null!=this?{hotlistList:Hb(xb(this,ln,1),gJb)}:void 0;return a};WK.messageId="b.HotlistBatchResponse";
var on=function(a){Z.call(this,a)};V(on,Z);g=on.prototype;g.getId=function(){return lj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return ej(this,2)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Tl,7)};g.setOwnerUser=function(a){Gb(this,7,a)};g.getStarred=function(){return bj(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return ej(this,5)};g.getResourceType=function(){return W(this,6)};g.setResourceType=function(a){l(this,6,a)};g.hasResourceType=function(){return ej(this,6)};g.toObject=function(){return oJb(void 0,this)};var oJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:qJ(a,b.getOwnerUser()),starred:n(Mo(b,5)),resourceType:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var pn=function(a){Z.call(this,a,-1,pJb)};V(pn,Z);g=pn.prototype;g.getId=function(){return lj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return ej(this,2)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Tl,7)};g.setOwnerUser=function(a){Gb(this,7,a)};g.getStarred=function(){return bj(this,5)};
g.setStarred=function(a){l(this,5,a)};g.hasStarred=function(){return ej(this,5)};var pJb=[6];pn.prototype.toObject=function(){return qJb(void 0,this)};var qJb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:qJ(a,b.getOwnerUser()),starred:n(Mo(b,5)),sublinksList:Hb(xb(b,on,6),oJb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var XK=function(a){Z.call(this,a,-1,rJb)};V(XK,Z);XK.prototype.getHotlistsList=function(){return xb(this,on,1)};XK.prototype.getBookmarkGroupsList=function(){return xb(this,pn,2)};var rJb=[1,2,3,4];XK.prototype.toObject=function(){var a=null!=this?{hotlistsList:Hb(this.getHotlistsList(),oJb),bookmarkGroupsList:Hb(this.getBookmarkGroupsList(),qJb),archivedHotlistsList:Hb(xb(this,on,3),oJb),archivedBookmarkGroupsList:Hb(xb(this,pn,4),qJb)}:void 0;return a};XK.messageId="b.SidebarInfo";
var tJb=function(a){Z.call(this,a,-1,sJb)};V(tJb,Z);var sJb=[1];tJb.prototype.toObject=function(){var a=null!=this?{componentsList:Hb(xb(this,sm,1),wJ)}:void 0;return a};tJb.messageId="b.UserRecentComponentResponse";
var vJb=function(a){Z.call(this,a,-1,uJb)};V(vJb,Z);var uJb=[1];vJb.prototype.toObject=function(){var a=null!=this?{searchesList:Hb(xb(this,nn,1),mJb)}:void 0;return a};vJb.messageId="b.UserSavedSearchesResponse";
var YK=function(){},ZK=function(){};ZK.\u0275fac=function(a){return new (a||ZK)};ZK.\u0275prov=lc({token:ZK,factory:ZK.\u0275fac,providedIn:"root"});var $K=function(a){this.executor=a};V($K,ZK);g=$K.prototype;g.getUserHotlists=function(){return this.executor.get({url:"action/current_user/hotlists",responseConstructor:WK}).pipe(S(Msa))};g.getUserSidebar=function(){return this.executor.get({url:"action/current_user/sidebar",responseConstructor:XK}).pipe(S(Tsa))};
g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:tJb}).pipe(S(rra))};g.getUserSavedSearches=function(){return this.executor.get({url:"action/current_user/searches",responseConstructor:vJb}).pipe(S(Qsa))};g.getFavorite=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:VK}).pipe(S(Osa))};
g.saveFavorite=function(a){var b=new jJb;b.setResourceType(YAb[a.resourceType]);b.setResourceId(String(a.resourceId));return this.executor.post({url:"action/favorites",body:b,responseConstructor:VK}).pipe(S(Osa))};g.deleteFavorite=function(a){return this.executor.delete({url:"action/favorites/"+a.resourceType+"/"+a.resourceId,responseConstructor:null})};$K.\u0275fac=function(a){return new (a||$K)(t(pI))};$K.\u0275prov=lc({token:$K,factory:$K.\u0275fac,providedIn:"root"});
var aL=function(a){this.observableApi=a};V(aL,YK);g=aL.prototype;g.getUserHotlists=function(){return(0,U.firstValueFrom)(this.observableApi.getUserHotlists())};g.getUserSidebar=function(){return(0,U.firstValueFrom)(this.observableApi.getUserSidebar())};g.getRecentComponents=function(){return(0,U.firstValueFrom)(this.observableApi.getRecentComponents())};g.getUserSavedSearches=function(){return(0,U.firstValueFrom)(this.observableApi.getUserSavedSearches())};
g.getFavorite=function(a,b){return(0,U.firstValueFrom)(this.observableApi.getFavorite(a,b))};g.saveFavorite=function(a){return(0,U.firstValueFrom)(this.observableApi.saveFavorite(a))};g.deleteFavorite=function(a){return(0,U.firstValueFrom)(this.observableApi.deleteFavorite(a))};aL.\u0275fac=function(a){return new (a||aL)(t($K))};aL.\u0275prov=lc({token:aL,factory:aL.\u0275fac,providedIn:"root"});
var wJb={parent:"me"},bL=function(a,b,c){GJ.call(this,{freshUntil:3E5});var d=this;this.observableHotlistResources=a;this.observableUserResources=b;this.appEvents=c;this.recordType="hotlist";this.idKey="hotlistId";(0,U.merge)(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified).subscribe(function(){d.pokeMany(wJb)})};V(bL,GJ);
bL.prototype.fetchOne=function(a){return this.observableHotlistResources.get(a).pipe(Sf(function(b){return 403===b.status?(0,U.of)(void 0):(0,U.throwError)(b)}))};bL.prototype.fetchAll=function(a){if("me"===a.parent)return this.observableUserResources.getUserHotlists().pipe(S(function(b){return{results:b}}));Tk("Unsupported query for Fridge['"+this.recordType+"']",a);return(0,U.of)({results:[]})};
bL.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a).pipe(S(function(b){return(null!=b?b:[]).filter(cl)}))};bL.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};var xJb=function(a){return a.watchMany(wJb).pipe(S(function(b){return b.results}))};bL.\u0275fac=function(a){return new (a||bL)(t(UK),t($K),t(BK))};bL.\u0275prov=lc({token:bL,factory:bL.\u0275fac,providedIn:"root"});
var Usa={enable_jspb:"true"},cL=function(a){this.http=a};cL.prototype.get=function(a,b){return this.http.get(a,qn(b.httpOptions||{})).pipe(S(function(c){if(b.responseCtor)return new b.responseCtor(c[0])}))};cL.prototype.post=function(a,b){return this.http.post(a,b.request?b.request.toJSON():void 0,qn(b.httpOptions)).pipe(S(function(c){if(b.responseCtor)return bo(b.responseCtor,JSON.stringify(c[0]))}))};
cL.prototype.put=function(a,b){return this.http.put(a,b.request?b.request.toJSON():void 0,qn(b.httpOptions)).pipe(S(function(c){if(b.responseCtor)return bo(b.responseCtor,JSON.stringify(c[0]))}))};cL.prototype.delete=function(a,b){b=void 0===b?{}:b;return this.http.delete(a,qn(b))};cL.\u0275fac=function(a){return new (a||cL)(t(ME))};cL.\u0275prov=lc({token:cL,factory:cL.\u0275fac,providedIn:"root"});
var dL=function(){this.refreshRequest=new U.Subject};dL.prototype.getObservable=function(){return this.refreshRequest};var yJb=function(a,b){return a.getObservable().pipe(hg(void 0)).pipe(ig(function(){return b}))};dL.\u0275fac=function(a){return new (a||dL)};dL.\u0275prov=lc({token:dL,factory:dL.\u0275fac,providedIn:"root"});
var eL=function(a){Z.call(this,a)};V(eL,Z);eL.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};eL.messageId="f.mt";
var fL=function(a){Z.call(this,a,-1,zJb)};V(fL,Z);fL.prototype.setIssueIdsList=function(a){ll(this,1,a)};fL.prototype.addIssueIds=function(a){tb(this,1,a)};var zJb=[1];fL.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(ob(this,1))}:void 0;return a};fL.messageId="b.BatchGetIssuesRequest";
var gL=function(a){Z.call(this,a,-1,AJb)};V(gL,Z);gL.prototype.getIssuesList=function(){return xb(this,gm,1)};var AJb=[1];gL.prototype.toObject=function(){var a=null!=this?{issuesList:Hb(this.getIssuesList(),tJ)}:void 0;return a};gL.messageId="b.BatchGetIssuesResponse";
var hL=function(a,b,c,d,e,f){GJ.call(this);var h=this;this.batchApiAdapter=a;this.jspbClient=b;this.refreshMonitor=c;this.issueService=d;this.activeSession=e;this.hotlistFridge=f;this.recordType="issue";this.idForRecord=function(k){return String(k.issueId)};this.isEqual=Ei;this.issueFetchResponse$=new U.Subject;this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(k){return h.call(k)},split:function(k,q){return h.splitBatch(k,q)}});this.refreshMonitor.getObservable().subscribe(function(){h.invalidate()})};
V(hL,GJ);hL.prototype.fetchOne=function(a){return this.get(Number(a)).pipe(S(Im),Sf(function(){return(0,U.of)(void 0)}))};hL.prototype.fetchSet=function(a){var b=this;return(0,U.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(S(function(c){return c.filter(cl)}))};hL.prototype.copy=function(a){return a&&Fi(a)};
var BJb=function(a,b,c){var d={id:b,star:String(c)};Wma()&&(d.vote=String(c));return a.jspbClient.post("action/current_user/issue_data",{responseCtor:eL,httpOptions:{params:d}}).pipe(kg(function(){HJ(a,b,function(e){e.userData&&(e.userData.starred=c,Wma()&&(e.userData.voted=c))})}))};
hL.prototype.setVoted=function(a,b){var c=this;return this.jspbClient.post("action/current_user/issue_data",{responseCtor:eL,httpOptions:{params:{id:a,vote:String(b)}}}).pipe(kg(function(){HJ(c,a,function(d){d.userData&&(d.userData.voted=b)})}))};
hL.prototype.setNotificationSubscription=function(a,b){var c=this;return hf(function(d){if(1==d.nextAddress)return jf(d,(0,U.firstValueFrom)(c.jspbClient.post("action/current_user/issue_data",{responseCtor:eL,httpOptions:{params:{id:a,subscription:b}}})),2);HJ(c,a,function(e){e.userData&&(e.userData.notificationSubscription=b)});kf(d)})};
var CJb=function(a,b,c){var d=new dm,e=Yqa(new cm,"title").setValue(c);d.setIssueId(b);d.setActionsList([e]);HJ(a,b,function(f){f.snapshot[0].title=c});return a.jspbClient.post("action/issues/"+b,{request:d,responseCtor:an}).pipe(S(Pm),kg(function(f){f&&a.announce(f.issue)}))},DJb=function(a,b,c,d){var e,f,h,k,q,u,x,E,I;return hf(function(N){if(1==N.nextAddress){e="action/issues/"+b+"/hotlists";f=new em;f.setRemoveHotlistIdsList(d);f.setAddHotlistIdsList(c);cra(f,(new fm).setIssueId(b));h=r([].concat(v(c),
v(d)));for(k=h.next();!k.done;k=h.next())q=k.value,a.hotlistFridge.setIsSaving(q);It(N,2);return jf(N,(0,U.firstValueFrom)(a.jspbClient.post(e,{request:f,responseCtor:an})).finally(function(){for(var L=r([].concat(v(c),v(d))),T=L.next();!T.done;T=L.next())a.hotlistFridge.clearIsSaving(T.value)}),4)}if(2!=N.nextAddress)return u=N.yieldResult,(x=Pm(u))&&a.announce(x.issue),N.return(null==(E=x)?void 0:E.issue);I=Kt(N);a.poke(b);throw I;})},EJb=function(a,b,c){"number"===typeof b&&(b=String(b));return iL(a,
1,3,c,[b]).then(function(){return a.poke(b)})};hL.prototype.removeDuplicate=function(a,b){var c=this;"number"===typeof a&&(a=String(a));return iL(this,2,3,b,[a]).then(function(){return c.poke(a)})};
var iL=function(a,b,c,d,e){if(0===e.length||null==d)return Promise.resolve(void 0);d=String(d);var f=new nm;f.setActionType(b);f.setRelation(c);f.setIssueId(d);ll(f,2,e);FJb(a,f);var h=[d].concat(v(e));b=r(h);for(c=b.next();!c.done;c=b.next())a.setIsSaving(c.value);return(0,U.firstValueFrom)(a.jspbClient.post("action/issues/"+d+"/relate",{request:f,responseCtor:an})).then(Pm).then(function(k){k&&a.announce(k.issue)}).catch(function(k){a.poke(d);throw k;}).finally(function(){for(var k=r(h),q=k.next();!q.done;q=
k.next())a.clearIsSaving(q.value)})},jL=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 hf(function(u){if(1==u.nextAddress)return a.activeSession.isAnonymous()?u.return():jf(u,a.issueService.markRead(b.map(Number),d),2);f=u.yieldResult;if(e)for(h=r(b),k=h.next();!k.done;k=h.next())q=k.value,HJ(a,String(q),function(x){x.userData&&(x.userData.lastViewedTimeMicros=f.readTimestamp)});return u.return(f.readTimestamp?Math.round(f.readTimestamp/
1E3):void 0)})},FJb=function(a,b){HJ(a,b.getIssueId(),function(c){switch(b.getRelation()){case 2:if(1===b.getActionType()){var d;c.snapshot[0].blockedByIssueId=[].concat(v(null!=(d=c.snapshot[0].blockedByIssueId)?d:[]),v(ob(b,2).map(Number)))}else if(2===b.getActionType()){var e,f;c.snapshot[0].blockedByIssueId=null!=(f=null==(e=c.snapshot[0].blockedByIssueId)?void 0:e.filter(function(h){return!ob(b,2).includes(String(h))}))?f:[]}}})};
hL.prototype.call=function(a){var b=this;if(1===a.size){var c=[].concat(v(a))[0];return this.jspbClient.get("action/issues/"+String(c),{responseCtor:an,httpOptions:{params:{excludeEvents:"1"}}}).pipe(kg(function(f){b.issueFetchResponse$.next(f)}),S(function(f){return new Map([[c,f.getIssue()]])}))}var d=new fL;a=r(a);for(var e=a.next();!e.done;e=a.next())d.addIssueIds(e.value);return this.jspbClient.post("action/issues/batch",{responseCtor:gL,request:d}).pipe(S(function(f){return new Map(f.getIssuesList().map(function(h){return[Number(h.getIssueId()),
h]}))}))};hL.prototype.splitBatch=function(a,b){return b.get(a)};hL.\u0275fac=function(a){return new (a||hL)(t(hJ),t(cL),t(dL),t(EK),t(yH),t(bL))};hL.\u0275prov=lc({token:hL,factory:hL.\u0275fac,providedIn:"root"});
var kL=function(a,b){GJ.call(this);this.jspb=a;this.issueFridge=b;this.recordType="issue-fr";this.idForRecord=function(c){return c.issueId};this.isEqual=Ei;this.destroyed$=new U.ReplaySubject(1);HIb?a=void 0:(HIb=!0,a=vsa());a&&GJb(this,a);this.issueFridge.issueFetchResponse$.pipe(S(Pm),xf(cl),S(Vsa),jg(this.destroyed$)).subscribe(this.announce)};V(kL,GJ);
var lL=function(a,b){return a.watch(b).pipe(ig(function(c){return a.issueFridge.watch(b).pipe(S(function(d){return c&&d&&Object.assign({},c,{issue:d})}))}))},mL=function(a,b){return a.poke(b).then(function(){return(0,U.firstValueFrom)(lL(a,b))})},GJb=function(a,b){var c=Object.assign({},b);b=b.issue;c=(delete c.issue,c);a.announce(Object.assign({},c,{issueId:String(b.issueId)}));a.issueFridge.announce(b)};
kL.prototype.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.jspb.get("action/issues/"+a,{responseCtor:an,httpOptions:{params:{excludeEvents:"1"}}}).pipe(S(Pm),kg(function(c){(null==c?0:c.issue)&&b.issueFridge.announce(c.issue);b.issueFridge.clearIsGetting(a)}),S(function(c){return c&&Vsa(c)}),Sf(function(c){b.issueFridge.clearIsGetting(a);return(0,U.throwError)(c)}))};kL.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
kL.prototype.copy=function(a){return a&&Object.assign({},a)};kL.\u0275fac=function(a){return new (a||kL)(t(cL),t(hL))};kL.\u0275prov=lc({token:kL,factory:kL.\u0275fac,providedIn:"root"});
var Ysa=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);
var nL=function(a,b,c,d,e){this.status=a;this.displayValue=b;this.open=c;this.assigneeRequirement=d;this.sortOrder=e},oL={},vn=(oL.NEW=new nL("NEW","New",!0,"FORBIDDEN",10),oL.ASSIGNED=new nL("ASSIGNED","Assigned",!0,"REQUIRED",20),oL.ACCEPTED=new nL("ACCEPTED","Accepted",!0,"REQUIRED",30),oL.FIXED=new nL("FIXED","Fixed",!1,"REQUIRED",40),oL.VERIFIED=new nL("VERIFIED","Fixed (Verified)",!1,"REQUIRED",50),oL.DUPLICATE=new nL("DUPLICATE","Duplicate",!1,"ALLOWED",60),oL.INFEASIBLE=new nL("INFEASIBLE",
"Won't Fix (Infeasible)",!1,"ALLOWED",70),oL.NOT_REPRODUCIBLE=new nL("NOT_REPRODUCIBLE","Won't Fix (Not reproducible)",!1,"ALLOWED",80),oL.OBSOLETE=new nL("OBSOLETE","Won't Fix (Obsolete)",!1,"ALLOWED",90),oL.INTENDED_BEHAVIOR=new nL("INTENDED_BEHAVIOR","Won't Fix (Intended behavior)",!1,"ALLOWED",100),oL),HJb=[vn.NEW,vn.ASSIGNED,vn.ACCEPTED,vn.FIXED,vn.VERIFIED,vn.NOT_REPRODUCIBLE,vn.INTENDED_BEHAVIOR,vn.OBSOLETE,vn.INFEASIBLE,vn.DUPLICATE],IJb=HJb.map(function(a){return{value:a.status,displayText:a.displayValue}}),
JJb=new Set(Object.values(hh(vn,function(a){return"REQUIRED"===a.assigneeRequirement})));
var pL={},qL=(pL[0]="",pL[1]="New",pL[2]="Assigned",pL[3]="In Progress",pL[4]="Fixed",pL[5]="Verified",pL[10]="Duplicate",pL[9]="Infeasible",pL[6]="Can't Repro",pL[8]="Obsolete",pL[7]="WAI",pL[901]="Blocked",pL[902]="Archived",pL),rL={},pta=(rL[0]=0,rL[1]=10,rL[2]=20,rL[3]=30,rL[4]=40,rL[5]=50,rL[10]=60,rL[9]=70,rL[6]=80,rL[8]=90,rL[7]=100,rL[901]=35,rL[902]=110,rL),sL={},KJb=(sL[4]=!0,sL[5]=!0,sL[10]=!0,sL[9]=!0,sL[6]=!0,sL[8]=!0,sL[7]=!0,sL[901]=!0,sL[902]=!0,sL),tL={},uL=Object.assign({},qL,(tL[3]=
"Accepted (In Progress)",tL[5]="Fixed (Verified)",tL[9]="Won't fix (Infeasible)",tL[6]="Won't fix (Not reproducible)",tL[8]="Won't fix (Obsolete)",tL[7]="Won't fix (Intended behavior)",tL)),LJb=new Map([[1,"P0"],[2,"P1"],[3,"P2"],[4,"P3"],[5,"P4"],[0,"--"]]),MJb=new Map([["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"],["PRIORITY_UNSPECIFIED","--"]]),NJb=new Map([["S0","S0"],["S1","S1"],["S2","S2"],["S3","S3"],["S4","S4"],["SEVERITY_UNSPECIFIED","--"]]),OJb=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"]]);
var PJb=function(a){Z.call(this,a)};V(PJb,Z);g=PJb.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getComment=function(){return W(this,2)};g.setComment=function(a){l(this,2,a)};g.getFormattingMode=function(){return X(this,3,0)};g.setFormattingMode=function(a){l(this,3,a)};g.getContentJudgement=function(){return m(this,Gl,4)};g.setContentJudgement=function(a){return Gb(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),comment:n(p(this,2)),formattingMode:n(p(this,3)),contentJudgement:nJ(void 0,this.getContentJudgement())}:void 0;return a};
var vL=function(a){Z.call(this,a,-1,QJb)};V(vL,Z);var QJb=[1];vL.prototype.toObject=function(){var a=null!=this?{issueEventsList:Hb(xb(this,Om,1),nIb)}:void 0;return a};vL.messageId="b.ListIssueEventsResponse";
var RJb=function(a){return function(b){b=xb(b,Om,1).map(Tra).filter(cl);return{id:a,events:b}}},wL=function(a,b){GJ.call(this);this.jspb=a;this.issueFetchResponseFridge=b;this.recordType="eventsForIssue"};V(wL,GJ);wL.prototype.isEqual=function(a,b){return(null==a?void 0:a.id)!==(null==b?void 0:b.id)?!1:ota(null==a?void 0:a.events,null==b?void 0:b.events)};wL.prototype.copy=function(a){return a&&Fi(a)};wL.prototype.fetchOne=function(a){return this.jspb.get("action/issues/"+a+"/events",{responseCtor:vL}).pipe(S(RJb(a)))};
wL.\u0275fac=function(a){return new (a||wL)(t(cL),t(kL))};wL.\u0275prov=lc({token:wL,factory:wL.\u0275fac,providedIn:"root"});
var xL=function(a){Z.call(this,a,-1,SJb)};V(xL,Z);xL.prototype.getIssueId=function(){return fj(this,1)};xL.prototype.setIssueId=function(a){return l(this,1,a)};var SJb=[2];xL.prototype.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumbersList:n(ob(this,2))}:void 0;return a};xL.messageId="b.BatchGetIssueCommentsRequest";
var yL=function(a){Z.call(this,a,-1,TJb)};V(yL,Z);yL.prototype.getIssueCommentsList=function(){return xb(this,YJ,1)};var TJb=[1];yL.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Hb(this.getIssueCommentsList(),kIb)}:void 0;return a};yL.messageId="b.BatchGetIssueCommentsResponse";
var zL=function(a){this.jspbExecutor=a};zL.prototype.batchGet=function(a,b){a=(new xL).setIssueId(a);b=ll(a,2,b);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:yL,body:b}).pipe(S(Yra))};zL.\u0275fac=function(a){return new (a||zL)(t(pI))};zL.\u0275prov=lc({token:zL,factory:zL.\u0275fac,providedIn:"root"});
var AL=function(a,b){GJ.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)}})};V(AL,GJ);
AL.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return(0,U.combineLatest)(a.map(function(d){return b.get(d)})).pipe(S(function(d){var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:Number(c),commentId:null!=(h=f.commentNumber)?h:0};e.push({id:k,formattedComment:f})}return e}))};
AL.prototype.call=function(a){var b="",c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=r(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(Number(b),c).pipe(S(function(f){var h=b,k=new Map;f=r(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var u=void 0,x=Number(h)+"-"+(null!=(u=q.commentNumber)?u:0);k.set(x,q)}return k}))};AL.prototype.splitBatch=function(a,b){return b.get(a)};
AL.\u0275fac=function(a){return new (a||AL)(t(zL),t(hJ))};AL.\u0275prov=lc({token:AL,factory:AL.\u0275fac,providedIn:"root"});
var zn=function(a){Z.call(this,a)};V(zn,Z);g=zn.prototype;g.getUser=function(){return Al(this,Tl,1,BL)};g.setUser=function(a){qu(this,1,BL,a)};g.getGroup=function(){return Al(this,Tl,2,BL)};g.setGroup=function(a){qu(this,2,BL,a)};g.getAlias=function(){return W(this,wb(this,BL,3))};g.setAlias=function(a){Yn(this,3,BL,a)};var BL=[1,2,3];zn.prototype.toObject=function(){return CL(void 0,this)};
var CL=function(a,b){if(null!=b){var c={user:qJ(a,b.getUser()),group:qJ(a,b.getGroup()),alias:n(Hr(b,3,BL))};a&&(c.$jspbMessageInstance=b);return c}};
var DL=function(a){Z.call(this,a,-1,UJb)};V(DL,Z);g=DL.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){l(this,1,a)};g.getAdminsList=function(){return xb(this,zn,2)};g.setAdminsList=function(a){Fb(this,2,a)};g.getInheritedAdminsList=function(){return xb(this,zn,3)};g.getEditorsList=function(){return xb(this,zn,4)};g.setEditorsList=function(a){Fb(this,4,a)};g.getImplicitEditorsList=function(){return xb(this,zn,5)};
g.getAppendersList=function(){return xb(this,zn,6)};g.setAppendersList=function(a){Fb(this,6,a)};g.getImplicitAppendersList=function(){return xb(this,zn,7)};g.getReadersList=function(){return xb(this,zn,8)};g.setReadersList=function(a){Fb(this,8,a)};g.getImplicitReadersList=function(){return xb(this,zn,9)};g.getRestrictedReadersList=function(){return xb(this,zn,11)};g.setRestrictedReadersList=function(a){Fb(this,11,a)};g.getRestrictedPlusReadersList=function(){return xb(this,zn,12)};
g.setRestrictedPlusReadersList=function(a){Fb(this,12,a)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return l(this,10,a)};var UJb=[2,3,4,5,6,7,8,9,11,12];
DL.prototype.toObject=function(){var a=null!=this?{inheritance:n(p(this,1)),adminsList:Hb(this.getAdminsList(),CL),inheritedAdminsList:Hb(this.getInheritedAdminsList(),CL),editorsList:Hb(this.getEditorsList(),CL),implicitEditorsList:Hb(this.getImplicitEditorsList(),CL),appendersList:Hb(this.getAppendersList(),CL),implicitAppendersList:Hb(this.getImplicitAppendersList(),CL),readersList:Hb(this.getReadersList(),CL),implicitReadersList:Hb(this.getImplicitReadersList(),CL),restrictedReadersList:Hb(this.getRestrictedReadersList(),
CL),restrictedPlusReadersList:Hb(this.getRestrictedPlusReadersList(),CL),implicitAccess:n(p(this,10))}:void 0;return a};DL.messageId="b.AccessPolicy";
var WJb=function(a){Z.call(this,a,-1,VJb)};V(WJb,Z);var VJb=[1,2];WJb.prototype.toObject=function(){var a=null!=this?{noAccessEmailsList:n(ob(this,1)),unknownEmailsList:n(ob(this,2))}:void 0;return a};WJb.messageId="b.CheckPermissionResponse";
var EL=function(){},FL=function(a){this.executor=a};g=FL.prototype;g.get=function(a,b){a=yn(Dn(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:DL}).pipe(S(Cta))};
g.update=function(a,b,c){a=yn(Dn(a,b));b=new DL;var d=c.inheritance;b.setInheritance(WAb[null!=d?d:"INHERITANCE_UNSPECIFIED"]);var e;b.setAdminsList((null!=(e=c.admins)?e:[]).map(An));var f;b.setAppendersList((null!=(f=c.appenders)?f:[]).map(An));var h;b.setEditorsList((null!=(h=c.editors)?h:[]).map(An));var k;b.setReadersList((null!=(k=c.readers)?k:[]).map(An));var q;b.setRestrictedReadersList((null!=(q=c.restrictedReaders)?q:[]).map(An));var u;b.setRestrictedPlusReadersList((null!=(u=c.restrictedPlusReaders)?
u:[]).map(An));c.implicitAccess&&b.setImplicitAccess(VAb[c.implicitAccess]);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:DL}).pipe(S(Cta))};g.checkPermission=function(a,b,c,d){a=yn(a.join(","));b=yn(b);c=yn(Dn(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:WJb}).pipe(S(yta))};g.setAccessLimit=function(a,b,c){a=yn(Dn(a,b));c=Ipa(c);return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:Nk}).pipe(S(Gpa))};
g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(S(function(b){return"ALLOW"===b.implicitAccess}))};FL.\u0275fac=function(a){return new (a||FL)(t(pI))};FL.\u0275prov=lc({token:FL,factory:FL.\u0275fac,providedIn:"root"});var GL=function(a){this.observableApi=a};V(GL,EL);g=GL.prototype;g.get=function(a,b){return(0,U.firstValueFrom)(this.observableApi.get(a,b))};g.update=function(a,b,c){return(0,U.firstValueFrom)(this.observableApi.update(a,b,c))};
g.checkPermission=function(a,b,c,d){return(0,U.firstValueFrom)(this.observableApi.checkPermission(a,b,c,d))};g.setAccessLimit=function(a,b,c){return(0,U.firstValueFrom)(this.observableApi.setAccessLimit(a,b,c))};g.checkComponentImplicitAccessEnabled=function(a){return(0,U.firstValueFrom)(this.observableApi.checkComponentImplicitAccessEnabled(a))};GL.\u0275fac=function(a){return new (a||GL)(t(FL))};GL.\u0275prov=lc({token:GL,factory:GL.\u0275fac,providedIn:"root"});
var HL=function(a){GJ.call(this);this.accessPolicyApi=a;this.recordType="hotlistAccessPolicy";this.isEqual=Ei};V(HL,GJ);HL.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(S(function(b){return Object.assign({},{id:a},b)}))};HL.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(S(function(c){return Object.assign({},{id:b},c)}))};HL.\u0275fac=function(a){return new (a||HL)(t(FL))};
HL.\u0275prov=lc({token:HL,factory:HL.\u0275fac,providedIn:"root"});
var IL=function(a){Z.call(this,a)};V(IL,Z);var JL=function(a,b){return Vk(a,1,b)},XJb=function(a,b){return Vk(a,2,b)};IL.prototype.toObject=function(){return KL(void 0,this)};var KL=function(a,b){if(null!=b){var c={targetIssueId:fj(b,1),afterIssueId:fj(b,2),targetIssue:VCb(a,m(b,QCb,3))};a&&(c.$jspbMessageInstance=b);return c}};
var LL=function(a){Z.call(this,a,-1,YJb)};V(LL,Z);LL.prototype.getSourceIssueIdsList=function(){return ob(this,1)};LL.prototype.setSourceIssueIdsList=function(a){return ll(this,1,a)};LL.prototype.setRelationshipType=function(a){return l(this,2,a)};LL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var YJb=[1];LL.prototype.toObject=function(){var a=null!=this?{sourceIssueIdsList:n(ob(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Mo(this,3))}:void 0;return a};LL.messageId="b.BatchGetIssueRelationshipsRequest";
var ML=function(a){Z.call(this,a,-1,ZJb)};V(ML,Z);ML.prototype.getIssueRelationshipsList=function(){return xb(this,IL,1)};ML.prototype.getTotalSize=function(){return fj(this,2)};var ZJb=[1];ML.prototype.toObject=function(){return $Jb(void 0,this)};var $Jb=function(a,b){if(null!=b){var c={sourceIssueId:fj(b,3),issueRelationshipsList:Hb(b.getIssueRelationshipsList(),KL,a),totalSize:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var bKb=function(a){Z.call(this,a,-1,aKb)};V(bKb,Z);var aKb=[1];bKb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesList:Hb(xb(this,ML,1),$Jb)}:void 0;return a};bKb.messageId="b.BatchGetIssueRelationshipsResponse";
var NL=function(a){Z.call(this,a)};V(NL,Z);NL.prototype.getIssueRelationship=function(){return m(this,IL,1)};NL.prototype.toObject=function(){var a=null!=this?{issueRelationship:KL(void 0,this.getIssueRelationship())}:void 0;return a};NL.messageId="b.CreateIssueRelationshipResponse";
var OL=function(a){Z.call(this,a,-1,cKb)};V(OL,Z);var dKb=function(a,b){return ll(a,1,b)};OL.prototype.setRelationshipType=function(a){return l(this,2,a)};OL.prototype.setIncludeArchived=function(a){return l(this,3,a)};var eKb=function(a,b){return l(a,4,b)},fKb=function(a,b){return l(a,5,b)},cKb=[1];
OL.prototype.toObject=function(){var a=null!=this?{rootIssueIdsList:n(ob(this,1)),relationshipType:n(p(this,2)),includeArchived:n(Mo(this,3)),depthLimit:n(p(this,4)),prefixSizeLimit:n(p(this,5))}:void 0;return a};OL.messageId="b.GetIssueDescendantsRequest";
var gKb=function(a){Z.call(this,a)};V(gKb,Z);gKb.prototype.toObject=function(){var a=null!=this?{issueRelationshipsPrefixesMap:Kb(Zi(this,1,ML),void 0,$Jb)}:void 0;return a};gKb.messageId="b.GetIssueDescendantsResponse";
var PL=function(a){Z.call(this,a,-1,hKb)};V(PL,Z);PL.prototype.getIssueRelationshipsList=function(){return xb(this,IL,1)};var hKb=[1];PL.prototype.toObject=function(){var a=null!=this?{issueRelationshipsList:Hb(this.getIssueRelationshipsList(),KL)}:void 0;return a};PL.messageId="b.ListIssueRelationshipsResponse";
var QL=function(a){Z.call(this,a)};V(QL,Z);QL.prototype.getIssueRelationship=function(){return m(this,IL,1)};QL.prototype.toObject=function(){var a=null!=this?{issueRelationship:KL(void 0,this.getIssueRelationship())}:void 0;return a};QL.messageId="b.UpdateIssueRelationshipResponse";
var RL=function(a){this.executor=a};g=RL.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+b,responseConstructor:PL}).pipe(S(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:NL}).pipe(S(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new IL}))};
g.update=function(a,b,c){return this.executor.put({url:"action/issues/"+a+"/relationships/"+fj(c,1)+"?relationshipType="+b,body:c,responseConstructor:QL}).pipe(S(function(d){var e;return null!=(e=d.getIssueRelationship())?e:new IL}))};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 LL).setSourceIssueIdsList(a).setRelationshipType(b).setIncludeArchived();return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:bKb}).pipe(S(function(c){return xb(c,ML,1)}))};
g.getDescendants=function(a){var b=a.issueIds,c=a.relationshipType,d=a.includeArchived,e=a.depthLimit;a=a.prefixSizeLimit;b=fKb(eKb(dKb(new OL,b).setRelationshipType(c).setIncludeArchived(d),e),a);return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:gKb}).pipe(S(function(f){var h=new Map;f=r(Zi(f,1,ML).entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(String(k),q)}return h}))};
RL.\u0275fac=function(a){return new (a||RL)(t(pI))};RL.\u0275prov=lc({token:RL,factory:RL.\u0275fac,providedIn:"root"});
var SL=function(a,b,c){GJ.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=Ei;this.activeMoveOperation$=new U.BehaviorSubject(new Set);this.assignParentToIssues=Hta(function(e,f){return iKb(d,e,f)});this.assignParentToOneIssue=function(e,f){return iKb(d,String(e),[{issueId:String(f)}])};this.moveChildrenInAPI=Gta(function(e){return d.moveChildrenInAPISequentially(e)});
this.moveChildrenInAPISequentially=Hta(function(e){var f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba,Ga,Xa;return hf(function($a){switch($a.nextAddress){case 1:h=Nta(e);if(0===h.length)return $a.return();k=h.map(function(ec){return ec.issues.map(function(Va){return Va.parentId})}).flat();q=h.map(function(ec){return ec.newParentId});u=Fj([].concat(v(k),v(q)));x=r(u);for(E=x.next();!E.done;E=x.next())I=E.value,d.setIsSaving(I);It($a,2);N=r(h);L=N.next();case 4:if(L.done){Jt($a,3);break}T=
L.value;Y={};ja=r(T.newRelations);ha=ja.next();case 7:if(ha.done){L=N.next();$a.jumpTo(4);break}Y.$jscomp$loop$prop$newRelation$1671=ha.value;ra=T.issues.find(function(ec){return function(Va){return Va.issueId===ec.$jscomp$loop$prop$newRelation$1671.targetIssueId}}(Y)).parentId;if(T.newParentId===ra)return Ka=void 0,jf($a,(0,U.firstValueFrom)(d.issueRelationshipService.update(T.newParentId,1,JL(XJb(new IL,null!=(Ka=Yk(Y.$jscomp$loop$prop$newRelation$1671.afterIssueId))?Ka:0),Number(Y.$jscomp$loop$prop$newRelation$1671.targetIssueId)))),
8);Fa=void 0;return jf($a,(0,U.firstValueFrom)(d.issueRelationshipService.create(T.newParentId,1,JL(XJb(new IL,null!=(Fa=Yk(Y.$jscomp$loop$prop$newRelation$1671.afterIssueId))?Fa:0),Number(Y.$jscomp$loop$prop$newRelation$1671.targetIssueId)))).catch(function(ec){var Va,Ya;if(!(null==ec?0:null==(Va=ec.error)?0:null==(Ya=Va.details)?0:Ya.includes("ALREADY_EXISTS")))throw ec;}),12);case 12:return jf($a,(0,U.firstValueFrom)(d.issueRelationshipService.delete(ra,1,Y.$jscomp$loop$prop$newRelation$1671.targetIssueId)),
8);case 8:Y={$jscomp$loop$prop$newRelation$1671:Y.$jscomp$loop$prop$newRelation$1671};ha=ja.next();$a.jumpTo(7);break;case 2:f=Ca=Kt($a);case 3:La=d.activeMoveOperation$.value;jb=r(e.map(function(ec){return ec.eventTimestamps}).flat());for(db=jb.next();!db.done;db=jb.next())Mb=db.value,La.delete(Mb);d.activeMoveOperation$.next(La);va=r(u);for(E=va.next();!E.done;E=va.next())Ba=E.value,d.clearIsSaving(Ba);Promise.all(u.map(function(ec){return d.poke(ec)}));Ga=r(h);for(L=Ga.next();!L.done;L=Ga.next())Xa=
L.value,f&&Xa.done.reject(f),Xa.done.resolve();kf($a)}})});this.refreshMonitor.getObservable().subscribe(function(){d.invalidate()})};V(SL,GJ);SL.prototype.fetchOne=function(a){var b=this;return jKb(this,function(){return b.issueRelationshipService.list(a,1).pipe(S(function(c){return{issueId:a,relatedChildren:c.map(Rqa),totalChildCount:c.length}}))})};
SL.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(v(null!=(c=a.ids)?c:[]));return 0===d.length?(0,U.of)({results:[]}):jKb(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:1,includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(S(Ura),S(function(e){return{results:e}}))});default:sh(a.type)}};SL.prototype.copy=function(a){return a&&Fi(a)};
var jKb=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(xf(function(d){return 0===d.size}),ig(function(){return b()}),ig(function(d){return 0===a.activeMoveOperation$.value.size?(0,U.of)(d):c()}),Xf())};return c()},kKb=function(a,b){return a.watch(b).pipe(ig(function(c){return c&&c.totalChildCount===c.relatedChildren.length?(0,U.of)(c):a.watch(b,{trustMemory:!1})}))},lKb=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:void 0===c?100:c})};
SL.prototype.unlinkFromParent=function(a,b,c){c=void 0===c?!1:c;var d=this,e;return hf(function(f){switch(f.nextAddress){case 1:HJ(d.issueFridge,b,function(h){--h.childIssueCount});HJ(d,b,function(h){var k=h.relatedChildren;h.relatedChildren=Mta(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();It(f,2);return jf(f,(0,U.firstValueFrom)(d.issueRelationshipService.delete(b,1,a)),4);case 4:Jt(f,0);break;case 2:return e=Kt(f),jf(f,d.poke(b),5);case 5:throw e;}})};
var iKb=function(a,b,c){var d,e,f,h,k,q,u,x,E,I;return hf(function(N){switch(N.nextAddress){case 1:d=[];e=[];f=[];if(0===c.length)return N.return({added:d,notAdded:e});h=mKb(a,b);k=c.map(function(L,T){var Y="-1"===L.afterIssueId?h:L.afterIssueId;return{targetIssueId:L.issueId,afterIssueId:T?c[T-1].issueId:Y}});nKb(a,b,k);q=r(k);u=q.next();case 2:if(u.done){N.jumpTo(4);break}x=u.value;It(N,5);E=void 0;return jf(N,(0,U.firstValueFrom)(a.issueRelationshipService.create(b,1,JL(XJb(new IL,null!=(E=Yk(x.afterIssueId))?
E:0),Number(x.targetIssueId)))),7);case 7:d.push(x.targetIssueId);Jt(N,3);break;case 5:I=Kt(N);if(!Zm(I))throw I;f.push(I);e.push(x.targetIssueId);case 3:u=q.next();N.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFridge.poke(b)]),N.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},nKb=function(a,b,c){var d=0;HJ(a,b,function(e){var f=Lta(e.relatedChildren,c);d=f.length-e.relatedChildren.length;e.relatedChildren=f;e.totalChildCount+=d},{evenWhenInFlight:!0});HJ(a.issueFridge,
b,function(e){e.childIssueCount+=d},{evenWhenInFlight:!0})},oKb=function(a,b,c){var d,e,f,h,k,q,u,x,E,I,N,L;return hf(function(T){if(1==T.nextAddress)return d=[],e=[],f=[],0===c.length?T.return({added:d,notAdded:e}):jf(T,Promise.allSettled(c.map(function(Y){return(0,U.firstValueFrom)(a.issueRelationshipService.create(Y,1,JL(XJb(new IL,Number(mKb(a,Y))),Number(b))))})),2);h=T.yieldResult;k=r(h.entries());for(q=k.next();!q.done;q=k.next())u=q.value,x=r(u),E=x.next().value,I=x.next().value,N=E,L=I,"fulfilled"===
L.status&&d.push(c[N]),"rejected"===L.status&&(e.push(c[N]),f.push(L.reason));Promise.all(c.map(function(Y){return a.poke(Y)}));return T.return({added:d,notAdded:e,errors:f})})},pKb=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f={},h=r(c),k=h.next();!k.done;f={$jscomp$loop$prop$issue$1673:f.$jscomp$loop$prop$issue$1673},k=h.next())f.$jscomp$loop$prop$issue$1673=k.value,HJ(a,f.$jscomp$loop$prop$issue$1673.parentId,function(ja){return function(ha){ha.relatedChildren=
Mta(ha.relatedChildren,ja.$jscomp$loop$prop$issue$1673.issueId);--ha.totalChildCount}}(f));var q=void 0,u;if(null==(u=b.position)?0:u.issueId){var x;if("after"===(null==(x=b.position)?void 0:x.position))q=b.position.issueId;else{var E;if("before"===(null==(E=b.position)?void 0:E.position)){var I,N;f=null!=(N=null==(I=a.memory.getData(d))?void 0:I.relatedChildren)?N:[];I=r(f.entries());for(N=I.next();!N.done;N=I.next())if(h=r(N.value),N=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=
void 0;q=null==(b=f[N-1])?void 0:b.targetIssueId;break}}}}var L=c.map(function(ja,ha){return{targetIssueId:ja.issueId,afterIssueId:ha?c[ha-1].issueId:q}});void 0!==fHb(a,d)?HJ(a,d,function(ja){ja.relatedChildren=Lta(ja.relatedChildren,L);ja.totalChildCount+=L.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:Lta([],L),totalChildCount:L.length});b=new Nna;var T,Y;a.moveChildrenInAPI({newParentId:d,newRelations:L,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:null!=(Y=null==
(T=a.memory.getData(d))?void 0:T.relatedChildren)?Y:[],done:b});return b.promise},mKb=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"};SL.\u0275fac=function(a){return new (a||SL)(t(RL),t(hL),t(dL))};SL.\u0275prov=lc({token:SL,factory:SL.\u0275fac,providedIn:"root"});
var qKb=Object.values({ADMIN:"admin",EDITOR:"writer",APPENDER:"appender",READER:"reader"}),TL=function(a){GJ.call(this);this.jspb=a;this.recordType="permissions"};V(TL,GJ);TL.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(S(function(b){return r(b).next().value}))};
TL.prototype.fetchSet=function(a){var b=a.map(function(c){return encodeURIComponent(c)});b={params:{relations:b.flatMap(function(){return qKb}).join(","),resourceNames:b.flatMap(function(c){return qKb.map(function(){return c})}).join(",")}};return this.jspb.get("action/user_access",{responseCtor:eK,httpOptions:b}).pipe(S(gsa),S(function(c){return a.map(function(d){return c[d]})}))};TL.\u0275fac=function(a){return new (a||TL)(t(cL))};TL.\u0275prov=lc({token:TL,factory:TL.\u0275fac,providedIn:"root"});
var rKb=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new OK(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};rKb.prototype.get=function(a){var b=this;return new U.Observable(function(c){var d=b.lruCache.get(a);d||(d=sKb(b,a));return d.obs$.subscribe(c)})};
var sKb=function(a,b){var c=a.rawGet(b).pipe(fg({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 tKb(c,d);a.lruCache.set(b,c);return c},tKb=function(a,b){this.obs$=a;this.subscription=b};
var vKb=function(a){Z.call(this,a,-1,uKb)};V(vKb,Z);var wKb=function(a,b){return ll(a,1,b)},uKb=[1];vKb.prototype.toObject=function(){var a=null!=this?{teamIdsList:n(ob(this,1))}:void 0;return a};vKb.messageId="b.BatchChildTeamsRequest";
var xKb=function(a){Z.call(this,a)};V(xKb,Z);g=xKb.prototype;g.getId=function(){return lj(this,1)};g.setId=function(a){return l(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return ej(this,2)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return l(this,3,a)};g.toObject=function(){return yKb(void 0,this)};
var yKb=function(a,b){if(null!=b){var c={id:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var AKb=function(a){Z.call(this,a,-1,zKb)};V(AKb,Z);var zKb=[1];AKb.prototype.toObject=function(){return BKb(void 0,this)};var BKb=function(a,b){if(null!=b){var c={teamSummariesList:Hb(xb(b,xKb,1),yKb,a)};a&&(c.$jspbMessageInstance=b);return c}};
var CKb=function(a){Z.call(this,a)};V(CKb,Z);CKb.prototype.toObject=function(){var a=null!=this?{childTeamsMap:Kb(Zi(this,1,AKb),void 0,BKb)}:void 0;return a};CKb.messageId="b.BatchChildTeamsResponse";
var UL=function(a){Z.call(this,a)};V(UL,Z);UL.prototype.getUser=function(){return m(this,Tl,1)};UL.prototype.setUser=function(a){Gb(this,1,a)};UL.prototype.toObject=function(){return DKb(void 0,this)};var DKb=function(a,b){if(null!=b){var c={user:qJ(a,b.getUser()),isLead:n(Mo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var wt=function(a){Z.call(this,a)};V(wt,Z);g=wt.prototype;g.getInherit=function(){return bj(this,1)};g.setInherit=function(a){return l(this,1,a)};g.getSloId=function(){return lj(this,2)};g.setSloId=function(a){return l(this,2,a)};g.getComment=function(){return W(this,3)};g.setComment=function(a){l(this,3,a)};g.getSourceTeamId=function(){return lj(this,4)};g.setSourceTeamId=function(a){l(this,4,a)};g.toObject=function(){return EKb(void 0,this)};
var EKb=function(a,b){if(null!=b){var c={inherit:n(Mo(b,1)),sloId:n(p(b,2)),comment:n(p(b,3)),sourceTeamId:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var VL=function(a){Z.call(this,a,-1,FKb)};V(VL,Z);g=VL.prototype;g.getTeamId=function(){return lj(this,1)};g.setTeamId=function(a){return l(this,1,a)};g.getVersion=function(){return fj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getPathNamesList=function(){return ob(this,5)};
g.getPathIdsList=function(){return ob(this,10)};g.getMembersList=function(){return xb(this,UL,7)};g.getDeleted=function(){return bj(this,8)};g.getSlo=function(){return m(this,wt,11)};g.setSlo=function(a){Gb(this,11,a)};g.hasSlo=function(){return mj(this,11)};var FKb=[5,10,6,7];VL.prototype.toObject=function(){return GKb(void 0,this)};
var GKb=function(a,b){if(null!=b){var c={teamId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),pathNamesList:n(ob(b,5)),pathIdsList:n(ob(b,10)),collapsedPathNamesList:n(ob(b,6)),membersList:Hb(b.getMembersList(),DKb,a),deleted:n(Mo(b,8)),estimatedComponentCount:n(p(b,9)),slo:EKb(a,b.getSlo()),sloLead:qJ(a,m(b,Tl,12)),defaultSloLead:qJ(a,m(b,Tl,13))};a&&(c.$jspbMessageInstance=b);return c}};VL.messageId="b.TeamState";
var WL=function(a){Z.call(this,a)};V(WL,Z);WL.prototype.toObject=function(){var a=null!=this?{teamsMap:Kb(Zi(this,1,VL),void 0,GKb)}:void 0;return a};WL.messageId="b.BatchGetTeamsResponse";
var IKb=function(a){Z.call(this,a,-1,HKb)};V(IKb,Z);g=IKb.prototype;g.getPathIdsList=function(){return ob(this,1)};g.getPathNamesList=function(){return ob(this,2)};g.getId=function(){return lj(this,3)};g.setId=function(a){return l(this,3,a)};g.getName=function(){return W(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return ej(this,4)};g.getDescription=function(){return W(this,5)};g.setDescription=function(a){return l(this,5,a)};var HKb=[1,2];
IKb.prototype.toObject=function(){return JKb(void 0,this)};var JKb=function(a,b){if(null!=b){var c={pathIdsList:n(ob(b,1)),pathNamesList:n(ob(b,2)),id:n(p(b,3)),name:n(p(b,4)),description:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var XL=function(a){Z.call(this,a,-1,KKb)};V(XL,Z);XL.prototype.getTeamSuggestionsList=function(){return xb(this,IKb,1)};XL.prototype.setTeamSuggestionsList=function(a){Fb(this,1,a)};var KKb=[1];XL.prototype.toObject=function(){var a=null!=this?{teamSuggestionsList:Hb(this.getTeamSuggestionsList(),JKb)}:void 0;return a};XL.messageId="b.TeamSuggestionResult";
var YL=function(a){Z.call(this,a)};V(YL,Z);YL.prototype.getTeamId=function(){return lj(this,1)};YL.prototype.setTeamId=function(a){return l(this,1,a)};YL.prototype.toObject=function(){var a=null!=this?{teamId:n(p(this,1)),sloMetadata:EKb(void 0,m(this,wt,2))}:void 0;return a};YL.messageId="b.UpdateTeamSloRequest";
var ZL=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 rKb(function(e){return d.batchAdaptedGet(e)},100)};ZL.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:VL})};ZL.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var LKb=function(a,b){b=b.filter(function(c){return"0"!==c}).map(function(c){return a.getTeam(c)});return(0,U.forkJoin)(b).pipe(S(function(c){var d=new WL;c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Zi(d,1,VL).set(e.getTeamId(),e);return d}))};
ZL.prototype.getChildTeams=function(a){a=wKb(new vKb,a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:CKb}).pipe(S(function(b){b=[].concat(v(Zi(b,1,AKb).entries()));return new Map(b.map(function(c){var d=r(c);c=d.next().value;d=d.next().value;return[c,xb(d,xKb,1)]}))}))};
var $L=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:XL})},MKb=function(a,b,c){return"0"===b?(0,U.of)(!1):a.memoizingTeamStateMap.get(b).pipe(S(function(d){return void 0!==d.getMembersList().find(function(e){return e&&Rl(e.getUser())===c})}))},NKb=function(a,b){return a.executor.get({url:"action/teams",options:{params:{teamIds:b.join(","),view:"full"}},responseConstructor:WL}).pipe(Sf(function(){return(0,U.of)(new WL)}),S(function(c){return new Map(Array.from(Zi(c,
1,VL).entries()).map(function(d){var e=r(d);d=e.next().value;e=e.next().value;return[d,fj(e,9)]}))}))};ZL.prototype.updateTeam=function(a){return this.executor.post({url:"action/teams/"+a.getTeamId(),body:a,responseConstructor:VL})};ZL.\u0275fac=function(a){return new (a||ZL)(t(pI),t(aM),t(hJ))};ZL.\u0275prov=lc({token:ZL,factory:ZL.\u0275fac,providedIn:"root"});var aM=function(a){this.executor=a};
aM.prototype.call=function(a){return this.executor.get({url:"action/teams",options:{params:{teamIds:[].concat(v(a)).join(",")}},responseConstructor:WL}).pipe(Sf(function(){return(0,U.of)(new WL)}))};aM.prototype.split=function(a,b){return Zi(b,1,VL).get(a)||new VL};aM.\u0275fac=function(a){return new (a||aM)(t(pI))};aM.\u0275prov=lc({token:aM,factory:aM.\u0275fac,providedIn:"root"});
var bM=function(a){GJ.call(this);this.teamsApi=a;this.recordType="team";this.idForRecord=function(b){return b.getTeamId()}};V(bM,GJ);bM.prototype.fetchOne=function(a){return"0"===a?(0,U.of)(void 0):this.teamsApi.getTeam(a).pipe(Sf(function(){return(0,U.of)(void 0)}))};bM.prototype.fetchSet=function(a){var b=this;return(0,U.combineLatest)(a.map(function(c){return b.fetchOne(c)})).pipe(S(function(c){return c.filter(cl)}))};bM.\u0275fac=function(a){return new (a||bM)(t(ZL))};
bM.\u0275prov=lc({token:bM,factory:bM.\u0275fac,providedIn:"root"});
var cM=function(a){Z.call(this,a,-1,OKb)};V(cM,Z);cM.prototype.getTrackersList=function(){return xb(this,wH,1)};var OKb=[1];cM.prototype.toObject=function(){var a=null!=this?{trackersList:Hb(this.getTrackersList(),PBb)}:void 0;return a};cM.messageId="b.BatchGetTrackersResponse";
var dM=function(a){Z.call(this,a,-1,PKb)};V(dM,Z);dM.prototype.getTrackersList=function(){return xb(this,wH,1)};dM.prototype.getNextPageToken=function(){return W(this,2)};dM.prototype.getTotalSize=function(){return fj(this,3)};var PKb=[1];dM.prototype.toObject=function(){var a=null!=this?{trackersList:Hb(this.getTrackersList(),PBb),nextPageToken:n(p(this,2)),totalSize:n(p(this,3))}:void 0;return a};dM.messageId="b.ListTrackersResponse";
var eM=function(a){this.jspbExecutor=a};eM.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:wH}).pipe(S(Fn))};eM.prototype.batchGet=function(a){return this.jspbExecutor.get({url:"action/trackers/batch",responseConstructor:cM,options:{params:{trackerIds:a}}}).pipe(S(Pta))};
eM.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:dM,options:{params:{query:a,pageSize:String(b),pageToken:void 0===c?"":c}}}).pipe(S(Qta))};eM.\u0275fac=function(a){return new (a||eM)(t(pI))};eM.\u0275prov=lc({token:eM,factory:eM.\u0275fac,providedIn:"root"});
var fM=function(a){GJ.call(this);this.trackerApi=a;this.recordType="tracker";this.idKey="trackerId";if(a=m(Yi(),wH,11))a=Fn(a),this.announce(a)};V(fM,GJ);fM.prototype.fetchOne=function(a){return this.trackerApi.get(a)};fM.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};fM.\u0275fac=function(a){return new (a||fM)(t(eM))};fM.\u0275prov=lc({token:fM,factory:fM.\u0275fac,providedIn:"root"});
var gM=function(a,b){yI.call(this);this.router=a;this.activatedRoute=b;this.params={};this.routeParams$=new U.BehaviorSubject({})};V(gM,yI);gM.\u0275dir=yI.\u0275dir;
var RKb=function(a){a.activatedRoute.queryParams.pipe(jg(a.destroyed$)).subscribe(function(b){QKb(a,a.routeParams$.value,b)});a.router.events.pipe(xf(function(b){return b instanceof Ak}),S(function(b){return b}),jg(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);QKb(a,c,b.queryParams)})},hM=function(a,b){return a.routeParams$.pipe(S(function(c){return c[b]}))},QKb=function(a,b,c){for(var d=r(Object.keys(a.params)),e=
d.next();!e.done;e=d.next())delete a.params[Rta(e.value)];a.routeParams$.next(b);c=r(Object.entries(c));for(d=c.next();!d.done;d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.params[Rta(d)]=e;b=r(Object.entries(b));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,a.params[Rta(c)]=d};gM.\u0275fac=function(a){return new (a||gM)(t(Gk),t(mk))};gM.\u0275prov=lc({token:gM,factory:gM.\u0275fac,providedIn:"root"});
var iM=function(a,b,c){yI.call(this);var d=this;this.paramsService=b;this.issueFetchResponseFridge=c;this.componentIdOverride$=new U.BehaviorSubject(null);this.hotlistIdOverride$=new U.BehaviorSubject(null);this.routeIssueId$=hM(this.paramsService,"issueId").pipe(Wf());this.routeComponentId$=hM(this.paramsService,"componentId").pipe(Wf());this.routeHotlistId$=hM(this.paramsService,"hotlistId").pipe(Wf());this.issueId$=this.routeIssueId$.pipe(S(Sta),fg({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=
this.issueId$.pipe(ig(function(e){return e?lL(d.issueFetchResponseFridge,e):(0,U.of)(void 0)}),S(function(e){var f;return null==e?void 0:null==(f=e.issue)?void 0:f.snapshot[0].componentId}));this.componentId$=(0,U.combineLatest)([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(S(function(e){var f=r(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e||h||f}),S(Sta),Wf(),fg({refCount:!0,bufferSize:1}));this.hotlistId$=(0,U.combineLatest)([this.hotlistIdOverride$,
this.routeHotlistId$]).pipe(S(function(e){var f=r(e);e=f.next().value;f=f.next().value;return e||f}),S(Sta),Wf(),fg({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){d.componentIdOverride$.next(null);d.hotlistIdOverride$.next(null)}))};V(iM,yI);iM.\u0275dir=yI.\u0275dir;iM.prototype.getComponentId=function(){return this.componentId$};iM.prototype.getIssueId=function(){return this.issueId$};iM.prototype.getHotlistId=function(){return this.hotlistId$};
iM.\u0275fac=function(a){return new (a||iM)(t(TI),t(gM),t(kL))};iM.\u0275prov=lc({token:iM,factory:iM.\u0275fac,providedIn:"root"});
var jM=new sd("buganizerWindow",{factory:function(){return window}});
var kM=function(a,b,c,d){yI.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.trackerId$=new U.BehaviorSubject(this.$window.sessionStorage.getItem("buganizer.current_tracker_id")||"");this.enableTrackers=AH(this.activeSession,"enableTrackers");this.tracker$=this.trackerId$.pipe(ig(function(f){return""===f?(0,U.of)(void 0):e.trackerFridge.watch(f).pipe(hg(void 0))}));this.associatedTrackers$=
this.tracker$.pipe(S(function(f){var h;return null!=(h=null==f?void 0:f.associatedTrackerIds)?h:[]}),ig(this.trackerFridge.watchSet));this.enableTrackers&&SKb(this);this.trackerFridge.error$.pipe(jg(this.destroyed$)).subscribe(this.handleTrackerError)};V(kM,yI);kM.\u0275dir=yI.\u0275dir;kM.prototype.getTrackerId=function(){return this.trackerId$};var SKb=function(a){var b=(new URLSearchParams(a.$window.location.search)).get("tracker");b&&a.setTrackerId(b)};
kM.prototype.setTrackerId=function(a){this.trackerId$.next(a);this.$window.sessionStorage.setItem("buganizer.current_tracker_id",a)};kM.\u0275fac=function(a){return new (a||kM)(t(jM),t(yH),t(fM),t(xK))};kM.\u0275prov=lc({token:kM,factory:kM.\u0275fac,providedIn:"root"});
var Uta=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"),Tta=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])?$"),Wta=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];
var lM=function(){this.transform=Xta};lM.\u0275fac=function(a){return new (a||lM)};lM.\u0275pipe=Ec({name:"toNewEmailPreference",type:lM,pure:!0});var mM=function(){this.transform=Yta};mM.\u0275fac=function(a){return new (a||mM)};mM.\u0275pipe=Ec({name:"enumToHuman",type:mM,pure:!0});var nM=function(){this.transform=Zta};nM.\u0275fac=function(a){return new (a||nM)};nM.\u0275pipe=Ec({name:"arrayToHuman",type:nM,pure:!0});var oM=function(){};oM.prototype.transform=function(a,b){return Lj($ta(a,b)).toString()};
oM.\u0275fac=function(a){return new (a||oM)};oM.\u0275pipe=Ec({name:"boldPrefixMatches",type:oM,pure:!0});var pM=function(){this.transform=aua};pM.\u0275fac=function(a){return new (a||pM)};pM.\u0275pipe=Ec({name:"yesNo",type:pM,pure:!0});var qM=function(){this.transform=bua};qM.\u0275fac=function(a){return new (a||qM)};qM.\u0275pipe=Ec({name:"componentPath",type:qM,pure:!0});var rM=function(){this.transform=cua};rM.\u0275fac=function(a){return new (a||rM)};
rM.\u0275pipe=Ec({name:"teamPath",type:rM,pure:!0});var sM=function(){this.transform=dua};sM.\u0275fac=function(a){return new (a||sM)};sM.\u0275pipe=Ec({name:"v2StatusToHuman",type:sM,pure:!0});var tM=function(){this.transform=eua};tM.\u0275fac=function(a){return new (a||tM)};tM.\u0275pipe=Ec({name:"countOpenIssues",type:tM,pure:!0});var uM=function(){this.transform=fua};uM.\u0275fac=function(a){return new (a||uM)};uM.\u0275pipe=Ec({name:"formatNumberOrUndef",type:uM,pure:!0});
var vM=function(){this.transform=gua};vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275pipe=Ec({name:"humanFileSize",type:vM,pure:!0});var TKb=6E4*(420-(new Ji).getTimezoneOffset()),wM=function(){this.transform=iua};wM.\u0275fac=function(a){return new (a||wM)};wM.\u0275pipe=Ec({name:"omitObfuscatedEmail",type:wM,pure:!0});var xM=function(){this.transform=Mn};xM.\u0275fac=function(a){return new (a||xM)};xM.\u0275pipe=Ec({name:"toString",type:xM,pure:!0});var yM=function(){this.transform=jua};
yM.\u0275fac=function(a){return new (a||yM)};yM.\u0275pipe=Ec({name:"csv",type:yM,pure:!0});var zM=function(){};zM.\u0275fac=function(a){return new (a||zM)};zM.\u0275mod=Cc({type:zM});zM.\u0275inj=mc({});
var UKb={clear:function(){},getItem:function(){},removeItem:function(){},setItem:function(){}},AM=window.localStorage||UKb,BM={getNumberAt:function(a){return function(){var b=AM.getItem(a);if(null!=b)return b=Number(b),isNaN(b)?void 0:b}},setNumberAt:function(a){return function(b){null==b?AM.removeItem(a):AM.setItem(a,String(b))}},getStringAt:function(a){return function(){var b=AM.getItem(a);if(null!=b)return String(b)}},setStringAt:function(a){return function(b){null==b?AM.removeItem(a):AM.setItem(a,
b)}},getBooleanAt:function(a){return function(){var b=AM.getItem(a);return null==b?!1:!!JSON.parse(b)}},setBooleanAt:function(a){return function(b){!0===b?AM.setItem(a,"1"):AM.removeItem(a)}},clear:function(){AM.clear()}};
var VKb=window,CM=function(){return VKb.performance&&VKb.PerformanceObserver&&"function"===typeof window.performance.getEntriesByType&&"function"===typeof window.performance.mark&&"function"===typeof window.performance.measure},vua=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},WKb=function(a){if(CM())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};
var yua=BM.getBooleanAt("debug-logging")(),Qn=window,XKb,YKb=function(a){a=a.getEntries().map(kua).map(tua);a=r(a);for(var b=a.next();!b.done;b=a.next())xua(b.value);setTimeout(wua,100)},uua=!1;
var DM=function(){this.segments=[];this.clickMain=new Jw;this.clickSegment=new Jw};DM.prototype.ngOnInit=function(){};ji.Object.defineProperties(DM.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return 0<this.segments.length}}});DM.\u0275fac=function(a){return new (a||DM)};
DM.\u0275cmp=w({type:DM,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&&(F(0,"span",0)(1,"a",1),J("click",function(){return b.clickMain.emit(b.label)}),H(2,"mat-icon",2),P(3),G(),O(4,Aua,6,2,"ng-container",3),G());a&2&&(B(1),te("square-right",b.showMoreButton),oe("href",b.href||void 0,Ud),B(1),D("svgIcon",b.icon),B(1),Je(" ",b.label," "),B(1),D("ngIf",b.showMoreButton))},dependencies:[yx,ux,rB,sB,bF,$E,eF,XE],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 transparent}.shrink-wrap[_ngcontent-%COMP%]:hover   .more[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}\n/*# sourceMappingURL=fab_segmented.css.map */']});
var EM=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.visibleOptions$=(0,U.combineLatest)([this.context.getComponentId().pipe(ig(function(f){return f?e.componentFridge.watch(f):(0,U.of)(null)}),S(function(f){return f&&!f.archived?f.componentId:null})),this.context.getIssueId(),this.context.getHotlistId()]).pipe(Vf(0),S(function(f){var h=r(f);f=h.next().value;var k=h.next().value;h=h.next().value;
return ZKb(e,f,k,h)}));this.buttonLabel$=this.visibleOptions$.pipe(S(function(f){return f.length?"Create":"Create Issue"}));this.buttonIcon$=this.currentTracker.tracker$.pipe(S(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"}))};EM.prototype.ngOnInit=function(){};EM.prototype.trackClick=function(a){Nn("create","click",a)};
var ZKb=function(a,b,c,d){var e=new Map;null!==d&&e.set("in_same_hotlist",a.paths.createIssue({hotlistIds:d}));null!==b&&e.set("in_same_component",a.paths.createIssue({component:b}));null!==c&&(e.set("similar_to_current_issue",a.paths.createIssue({template_issue:c})),e.set("blocked_by_current_issue",a.paths.createIssue({blockedByIssueIds:c,component:b})),e.set("blocking_current_issue",a.paths.createIssue({blockingIssueIds:c,component:b})),e.set("parent_of_current_issue",a.paths.createIssue({childrenIssueIds:c,
component:b})),e.set("child_of_current_issue",a.paths.createIssue({parentIssueId:c,component:b})));return[].concat(v(e.entries())).map(function(f){var h=r(f);f=h.next().value;h=h.next().value;return{name:Yta(f),path:h}})};EM.\u0275fac=function(a){return new (a||EM)(C(GK),C(iM),C(kM),C(IJ))};
EM.\u0275cmp=w({type:EM,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&&(O(0,Dua,3,3,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.visibleOptions$))},dependencies:[ux,DM,Fx],encapsulation:2,changeDetection:0});
var ao={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",ISSUE_CARD:"issueCard",ISSUE_EVENT_DETAIL:"issueEventDetail",ISSUE_PICKER:"issuePicker",ISSUE_SLO:"issueSlo",LINK_FIELD:"linkField",LIST_ISSUES:"listIssues",MAGIC_BOX:"magicBox",MANAGE_COMPONENT:"component",PERSON_CARD:"personCard",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 Eua=BM.getNumberAt("last-visit"),Fua=BM.getNumberAt("last-visit-count"),Hua=BM.setNumberAt("last-visit"),Gua=BM.setNumberAt("last-visit-count");null==Date.now&&(Date.now=function(){return(new Date).getTime()});
var $Kb=BM.getBooleanAt("debug-logging")(),aLb=BM.getBooleanAt("onedev-darkmode"),bLb=BM.getBooleanAt("hasClickedCommentSortBtn"),FM=function(a,b,c,d,e){yI.call(this);var f=this;this.$log=c;this.ga=null;this.preapply=function(){var q=cLb;return function(u){return function(x,E){Zn(f,q,u,x,E)}}};Iua();c=d.getUserPreferences();Rn("dimension7",aLb()?"dark":"default");var h;Rn("dimension3",null==(h=c.themePreferences)?void 0:h.density);Rn("dimension4",dj());Rn("dimension6",$i("readUnreadOptOut"));Rn("dimension8",
$i("enableEnhancedCommentThread"));Rn("dimension9",bLb());Rn("dimension2",c.showFullHistory?"fh":"comments");Rn("dimension5",c.showRecentEventsFirst?"newestFirst":"oldestFirst");if(a.ga){var k=a.ga;this.subscriptions.add(b.viewContentLoaded.subscribe(function(){setTimeout(function(){for(var q=[],u=e.snapshot;u;){var x=void 0,E=void 0;q.push(null!=(E=null==(x=u.routeConfig)?void 0:x.path)?E:"");u=u.children[0]}k("send","pageview",q.join("/"))},0)}));this.ga=k}};V(FM,yI);FM.\u0275dir=yI.\u0275dir;
var Zn=function(a,b,c,d,e){var f="boolean"===typeof e?e?1:0:e;a.ga?d?void 0!==e?a.ga("send","event",b,c,d,f):a.ga("send","event",b,c,d):a.ga("send","event",b,c):$Kb&&a.$log.debug("[stub analytics.ts] ga('send', 'event')",b,c,d,f)},dLb=function(a,b,c,d){a.ga?d?a.ga("send","timing","userAction",b,c,d):a.ga("send","timing","userAction",b,c):$Kb&&a.$log.debug("[stub analytics.ts] ga('send', 'timing')","userAction",b,c,d)},eLb=function(a,b,c){Zn(a,ao.ISSUE_PICKER,c+" duration","<"+Math.min(2*Math.ceil(b/
2E3),600)+"s",b)};FM.\u0275fac=function(a){return new (a||FM)(t(jM),t(TI),t(vK),t(yH),t(mk))};FM.\u0275prov=lc({token:FM,factory:FM.\u0275fac,providedIn:"root"});
var fLb=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.cc=null;this.customFieldMap={};this.customFieldNameToIdMap={};this.customFieldValueMap={};this.hotlists=[];this.lastModifier=
this.ccCount=this.duplicateCount=this.voteCount=null;this.isClosed=this.isRead=this.selected=!1;this.sloSnoozeUntil=this.sloStatus=this.position=this.effort=null},gLb=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)},iLb=function(a,b){var c=new fLb;hLb(c,a,b);return c},hLb=function(a,b,c){var d=sa(b.snapshot),e=b.aggregatedData;var f=b&&b.accessLimit?b.accessLimit.accessLevel:void 0;a.accessLevel=
f;a.id=b.issueId;a.issueId=b.issueId;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=vn[d.status])?0:h.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Ol(d.reporterUser);a.assignee=Ol(d.assigneeUser);
a.assigneeEmail=Rl(d.assigneeUser);a.verifier=Ol(d.verifierUser);a.verifierEmail=Rl(d.verifierUser);a.cc=Pl(d.ccUsers);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=gLb(b);a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.lastModifier=Ol(d.authorUser);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(b=r(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=r(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?Mua(e.sloStatus)||null:null;a.sloSnoozeUntil=d.sloSnoozeUntil;a.isRead=!!a.lastViewedTime&&a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort instanceof wl?d.effort:iqa(d.effort))};
var GM=function(a,b){this.params=a;this.searchResponse=b;this.internalIssues=[];var c=b.positionMap||{};this.internalIssues=b.issues.map(function(d){var e=iLb(d,b.componentMap[sa(d.snapshot).componentId||0]);c&&c[d.issueId]&&(e.position=c[d.issueId]);return e});this.numPages=Math.ceil(b.numTotalResults/a.resultsPerPage);this.startIndex=(a.page-1)*a.resultsPerPage+1;this.endIndex=Math.min(this.startIndex+a.resultsPerPage-1,b.numTotalResults);this.isPreSort=jLb(a.sortColumns);this.totalText=this.getTotalText(b.numTotalResults,
a.page,a.resultsPerPage,this.isPreSort);this.numResults=b.numTotalResults;this.changed$=new U.BehaviorSubject(this)};GM.prototype.hasPreviousPage=function(){return 1<this.params.page};GM.prototype.hasNextPage=function(){return this.params.page<this.numPages};var HM=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return-1!==c?c+a.startIndex:-1};
GM.prototype.getIssueIdFromIndex=function(a){return a>=this.startIndex&&a<=this.endIndex&&(a-=this.startIndex,a<this.issues.length)?this.issues[a].issueId:-1};
var kLb=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issue;d=d.component;var e=HM(a,c.issueId);-1!==e&&(e-=a.startIndex,hLb(a.issues[e],c,d),a.issues[e].selected=!1)}a.changed$.next(a)},lLb=function(a,b,c,d){b=HM(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)};GM.prototype.clone=function(){var a=new GM(this.params,this.searchResponse);a.issues=this.internalIssues;a.numPages=this.numPages;a.startIndex=this.startIndex;a.endIndex=this.endIndex;a.isPreSort=this.isPreSort;a.totalText=this.totalText;a.numResults=this.numResults;a.changed$.next(a);return a};
var jLb=function(a){var b;!(b=0===a.length)&&(b=1===a.length)&&(a=a[0],b="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);return b};GM.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};
ji.Object.defineProperties(GM.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});
var mLb=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise_=this.searchResultsPage_=null};
mLb.prototype.fetchIssues=function(){var a=this;if(1>this.params.page)return Promise.reject("Invalid page requested.");if(!this.resultPromise_)if(this.params.hotlistId)this.resultPromise_=this.hotlistApi.getPagedHotlistContent(this.params.hotlistId,this.params.page,this.params.resultsPerPage,this.params.sortColumns);else{var b={p:this.params.page,count:this.params.resultsPerPage},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_=new GM(a.params,e));return a.searchResultsPage_},function(e){return Promise.reject(e)})};var nLb=function(a){return a.searchResultsPage_?a.searchResultsPage_.hasNextPage():!0};
var IM=function(a,b,c,d){this.$window=a;this.issueApi=b;this.hotlistApi=c;this.paths=d;this.previousResultsFetcher_=this.nextResultsFetcher_=this.currentResultsFetcher_=null;this.focusedIssueIndex_=-1},JM=function(a,b){var c=Mj();oLb(b.page)?(pLb(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},rLb=function(a){var b=Mj(),c=null;a.currentResultsFetcher_?
c=a.currentResultsFetcher_.params:c=qLb(a);c?(pLb(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},KM=function(a){a.currentResultsFetcher_=null;a.nextResultsFetcher_=null;a.previousResultsFetcher_=null;a.focusedIssueIndex_=-1},sLb=function(a,b){var c=Mj();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=Fi(a.currentResultsFetcher_.params);e.page=d;pLb(a,e);a.currentResultsFetcher_.fetchIssues().then(function(f){f.getIssueIdFromIndex&&(f=f.getIssueIdFromIndex(b),-1!=f?(a.focusedIssueIndex_=b,c.resolve(f)):c.reject("No issue available at index "+b))},function(f){c.reject(f)});return c.promise},tLb=
function(a){a.currentResultsFetcher_?a.currentResultsFetcher_.fetchIssues().then(function(b){b.getIssueIdFromIndex&&(a.focusedIssueIndex_=b.endIndex>=b.startIndex?b.startIndex:-1)}).catch(function(b){Tk("unexpected error fetching:",b)}):a.focusedIssueIndex_=-1},qLb=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 Xi(new Ti(b.fieldId),
b.direction)}));return a}return null},uLb=function(a,b,c){b=Fi(b);b.page=c;return new mLb(a.issueApi,a.hotlistApi,a.paths,b)},vLb=function(a,b){a.currentResultsFetcher_||(a.currentResultsFetcher_=uLb(a,b,b.page),a.currentResultsFetcher_.fetchIssues().catch(function(c){Tk("unexpected error fetching:",c)}));!a.previousResultsFetcher_&&1<b.page&&(a.previousResultsFetcher_=uLb(a,b,b.page-1),a.previousResultsFetcher_.fetchIssues().catch(function(c){Tk("unexpected error fetching:",c)}));!a.nextResultsFetcher_&&
nLb(a.currentResultsFetcher_)&&(a.nextResultsFetcher_=uLb(a,b,b.page+1),a.nextResultsFetcher_.fetchIssues().catch(function(c){Tk("unexpected error fetching:",c)}))},pLb=function(a,b){b.page=Ki(b.page);if(!b.resultsPerPage||isNaN(b.resultsPerPage))throw Error("gd");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&&Ei(b.sortColumns,c.sortColumns)&&b.resultsPerPage==c.resultsPerPage?a.currentResultsFetcher_.params.returnUrl=b.returnUrl:KM(a)}vLb(a,b);b=JSON.stringify(a.currentResultsFetcher_.params);a.$window.sessionStorage.setItem("buganizer.searchParams",b)},oLb=function(a){var b=Ki(""+
a);return isNaN(b)||b!=Number(a)||1>b||2147483647<b?!1:!0};IM.\u0275fac=function(a){return new (a||IM)(t(jM),t(bK),t(SK),t(GK))};IM.\u0275prov=lc({token:IM,factory:IM.\u0275fac,providedIn:"root"});
var Xn=function(a){Z.call(this,a)};V(Xn,Z);g=Xn.prototype;g.getHotlistId=function(){return lj(this,wb(this,Vn,1))};g.setHotlistId=function(a){Yn(this,1,Vn,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return ej(this,2)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return l(this,3,a)};var Vn=[1,4];Xn.prototype.toObject=function(){return wLb(void 0,this)};
var wLb=function(a,b){if(null!=b){var c={hotlistId:n(Hr(b,1,Vn)),savedSearchId:n(Hr(b,4,Vn)),name:n(p(b,2)),description:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var LM=function(a){Z.call(this,a,-1,xLb)};V(LM,Z);g=LM.prototype;g.getBookmarkGroupId=function(){return lj(this,1)};g.setBookmarkGroupId=function(a){l(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return l(this,2,a)};g.hasName=function(){return ej(this,2)};g.getDescription=function(){return W(this,3)};g.setDescription=function(a){return l(this,3,a)};g.getOwnerUser=function(){return m(this,Tl,8)};g.setOwnerUser=function(a){Gb(this,8,a)};
g.getArchived=function(){return bj(this,5)};g.setArchived=function(a){l(this,5,a)};g.getItemList=function(){return xb(this,Xn,6)};g.setItemList=function(a){Fb(this,6,a)};g.addItem=function(a,b){return ru(this,6,Xn,a,b)};g.getAdminUsersList=function(){return xb(this,Tl,9)};g.setAdminUsersList=function(a){Fb(this,9,a)};var xLb=[6,9];LM.prototype.toObject=function(){return yLb(void 0,this)};
var yLb=function(a,b){if(null!=b){var c={bookmarkGroupId:n(p(b,1)),name:n(p(b,2)),description:n(p(b,3)),ownerUser:qJ(a,b.getOwnerUser()),archived:n(Mo(b,5)),itemList:Hb(b.getItemList(),wLb,a),adminUsersList:Hb(b.getAdminUsersList(),qJ,a)};a&&(c.$jspbMessageInstance=b);return c}};LM.messageId="b.BookmarkGroup";
var MM=function(a){Z.call(this,a,-1,zLb)};V(MM,Z);MM.prototype.getBookmarkGroupsList=function(){return xb(this,LM,1)};var zLb=[1];MM.prototype.toObject=function(){var a=null!=this?{bookmarkGroupsList:Hb(this.getBookmarkGroupsList(),yLb)}:void 0;return a};MM.messageId="b.BookmarkGroupListResponse";
var NM=function(a){this.executor=a};NM.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:LM}).then(Wn).then(Un)};NM.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:MM}).then(Qua).then(Nua)};NM.prototype.create=function(a){var b=new LM;b.setName(a.name);a.description&&b.setDescription(a.description);return this.executor.post({url:"action/bookmark_groups",body:b,responseConstructor:LM}).then(Wn).then(Un)};
NM.prototype.update=function(a){var b=new LM;b.setBookmarkGroupId(String(a.bookmarkGroupId));b.setName(a.name);a.description&&b.setDescription(a.description);a.ownerUser&&b.setOwnerUser(Ul(a.ownerUser));b.setArchived(a.archived);var c;b.setItemList((null!=(c=a.item)?c:[]).map(Pua));var d;b.setAdminUsersList((null!=(d=a.adminUsers)?d:[]).map(Ul));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:LM}).then(Wn).then(Un)};
NM.\u0275fac=function(a){return new (a||NM)(t(qI))};NM.\u0275prov=lc({token:NM,factory:NM.\u0275fac,providedIn:"root"});
var OM=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};OM.\u0275fac=function(a){return new (a||OM)(C(CB),C(NB))};
OM.\u0275cmp=w({type:OM,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&&(F(0,"h1",0),P(1),G(),H(2,"div",1),F(3,"div",2),O(4,Rua,2,1,"button",3),F(5,"button",4),J("click",
function(){return b.dialogRef.close(!0)}),P(6),G()());a&2&&(B(1),Ke(b.data.title),B(1),D("innerHTML",b.data.content,Td),B(2),D("ngIf",b.showCancelButton),B(1),D("color",b.confirmButtonTheme),B(1),Je(" ",b.confirmButtonText," "))},dependencies:[ux,rB,RB,SB,TB],encapsulation:2});var PM=function(a){this.dialog=a},ALb=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
PM.prototype.open=function(a){var b=a.title,c=a.onConfirm,d=a.onDismiss,e=a.isDestructive,f=a.cancelButtonText,h=a.confirmButtonText,k=a.showCancelButton;a=qh(Lj(a.content).toString());DB(this.dialog.open(OM,{data:{title:b,content:a,isDestructive:e,cancelButtonText:f,confirmButtonText:h,showCancelButton:k},maxWidth:"500px"})).subscribe(function(q){q?null==c||c():null==d||d()})};PM.\u0275fac=function(a){return new (a||PM)(t(PB))};PM.\u0275prov=lc({token:PM,factory:PM.\u0275fac,providedIn:"root"});
var BLb=function(){};
var QM=function(a,b){this.router=a;this.location=b};V(QM,BLb);QM.prototype.reload=function(){var a=this,b=this.location.url();Ys(this.router,"/",{skipLocationChange:!0}).then(function(){return Ys(a.router,b,{skipLocationChange:!0})})};QM.\u0275fac=function(a){return new (a||QM)(t(Gk),t(FK))};QM.\u0275prov=lc({token:QM,factory:QM.\u0275fac,providedIn:"root"});
var CLb=new sd("Route",{factory:function(){return uc(QM)}});
var RM=function(a,b,c,d,e,f,h,k,q,u){yI.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=u;this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches_=[];this.userHotlists_=[];DLb(this);ELb(this);this.fetchUserHotlists();a=function(){DLb(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(){ELb(x)}));a=function(){x.fetchUserHotlists()};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(a));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(a))};V(RM,yI);RM.\u0275dir=yI.\u0275dir;
var DLb=function(a){a.userApi.getUserSidebar().then(function(b){a.sidebarData.hotlists=FLb(a,b.hotlists);a.sidebarData.bookmarkGroups=GLb(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=FLb(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=GLb(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})},ELb=function(a){a.userApi.getUserSavedSearches().then(function(b){b=HLb(a,b);a.sidebarData.userSearches=b;xa(a.userSavedSearches_);
kaa(a.userSavedSearches_,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};RM.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){ILb(a,b);a.appEvents.sidebarUpdated.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var FLb=function(a,b){return(b||[]).map(function(c){return JLb(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},GLb=function(a,b){return(b||[]).map(function(c){var d=a.sidebarItemFactory;return new KLb(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},HLb=function(a,b){return b.map(function(c){return{id:c.searchId,name:c.name,ownerUser:c.ownerUser,
description:c.description,starred:!1,resourceType:"SAVED_SEARCH"}}).map(function(c){return LLb(a.sidebarItemFactory,c)})},ILb=function(a,b){b=b.map(function(c){c={id:c.hotlistId,name:c.name,description:c.description,ownerUser:c.ownerUser,starred:a.activeSession.getUserEmail()!==Ol(c.ownerUser),resourceType:"HOTLIST"};return JLb(a.sidebarItemFactory,c)});xa(a.userHotlists_);kaa(a.userHotlists_,b)};
RM.prototype.onAnchorClick=function(a,b){var c,d,e=null!=(d=null==(c=b.target)?void 0:c.innerText)?d:"";Zn(this.analytics,"nav","click",e.trim());b.metaKey||b.ctrlKey||b.shiftKey||0!==b.button||(KM(this.issuePagination),SIb(this.paths,a)&&this.$route.reload(),this.bLocation.url(a),b.preventDefault(),b.stopPropagation())};RM.\u0275fac=function(a){return new (a||RM)(t(CLb),t(yH),t(YK),t(xK),t(FK),t(GK),t(IM),t(SM),t(BK),t(FM))};RM.\u0275prov=lc({token:RM,factory:RM.\u0275fac,providedIn:"root"});
var TM=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.ownerUser=a.ownerUser;this.starred=a.starred;this.userEmail=b.getUserEmail()};TM.prototype.isEditable=function(){return!!this.ownerUser&&Ol(this.ownerUser)===this.userEmail};TM.prototype.isSelected=function(){return RIb(this.paths,this.href)};
TM.prototype.isUnstarable=function(){return!(this.ownerUser&&Ol(this.ownerUser)===this.userEmail)&&this.starred};
var MLb=function(a,b){var c=Fi(a.userPreferencesManager.preferencesSubject$.getValue()).homepagePreferences;return(null==c?void 0:c.resourceId)===a.id&&c.resourceType===b},NLb=function(a,b){tK(a.butterBar,"Updating homepage...",0);zFb(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(Xf()).subscribe(function(){tK(a.butterBar,"Homepage updated")})},OLb=function(a,b,c,d,e,f,h,k,q,u,x,E){TM.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=f;this.errorHandler=u;this.confirmationDialogService=
x;this.appEvents=E;this.href=k.viewHotlist(a.id);this.type="HOTLIST"};V(OLb,TM);g=OLb.prototype;g.isPreferredHomepage=function(){return MLb(this,"HOTLIST")};g.setAsPreferredHomepage=function(){NLb(this,"HOTLIST")};
g.archive=function(){var a=this;tK(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});tK(a.butterBar,'Archived hotlist "'+a.name+'".');Zn(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;tK(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});tK(a.butterBar,'Unarchived hotlist "'+a.name+'".');Zn(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:In("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;tK(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"HOTLIST",resourceId:this.id}).then(function(){tK(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var UM=function(a,b,c,d,e,f,h,k){TM.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};V(UM,TM);UM.prototype.isUnstarable=function(){return!1};
UM.prototype.unstar=function(){};UM.prototype.isPreferredHomepage=function(){return MLb(this,"SAVED_SEARCH")};UM.prototype.setAsPreferredHomepage=function(){NLb(this,"SAVED_SEARCH")};
var KLb=function(a,b,c,d,e,f,h,k,q,u,x,E){TM.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=u;this.confirmationDialogService=x;this.appEvents=E;this.items=[];a=r(a.sublinks||[]);for(b=a.next();!b.done;b=a.next())switch(b=b.value,b.resourceType){case "HOTLIST":this.items.push(JLb(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(LLb(this.sidebarItemFactory,b))}this.items.sort(function(I,N){return I.name.localeCompare(N.name)})};V(KLb,TM);g=KLb.prototype;
g.isPreferredHomepage=function(){return MLb(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){NLb(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;tK(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});tK(a.butterBar,'Archived bookmark group "'+a.name+'".');Zn(a.analytics,"sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;tK(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});tK(a.butterBar,'Unarchived bookmark group "'+a.name+'".');Zn(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:In("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;tK(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.deleteFavorite({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){tK(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var SM=function(a,b,c,d,e,f,h,k,q,u,x){this.activeSession=a;this.userApi=b;this.bookmarkGroupsApi=c;this.hotlistApi=d;this.errorHandler=e;this.paths=f;this.analytics=h;this.butterBar=k;this.userPreferencesManager=q;this.confirmationDialogService=u;this.appEvents=x},JLb=function(a,b){return new OLb(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},LLb=function(a,b){return new UM(b,
a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};SM.\u0275fac=function(a){return new (a||SM)(t(yH),t(YK),t(NM),t(SK),t(xK),t(GK),t(FM),t(sK),t(VI),t(PM),t(BK))};SM.\u0275prov=lc({token:SM,factory:SM.\u0275fac,providedIn:"root"});
var VM=function(a){this.prefs=a;this.expanded=!0;this.content=this.header=null};VM.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!BFb(this.prefs,this.prefKey))};VM.prototype.onClick=function(){var a=this,b,c;return hf(function(d){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(0);c={};return jf(d,(0,U.firstValueFrom)(AFb(a.prefs,(c[a.prefKey]=!b,c))),0)})};VM.\u0275fac=function(a){return new (a||VM)(C(VI))};
VM.\u0275cmp=w({type:VM,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&&(F(0,"div",0),J("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();return c.preventDefault()}),
O(1,Sua,1,0,"ng-container",1),G(),O(2,Uua,2,1,"ng-container",2));a&2&&(te("opened",b.expanded)("closed",!b.expanded),oe("aria-expanded",b.expanded),B(1),D("ngTemplateOutlet",b.header),B(1),D("ngIf",b.expanded))},dependencies:[ux,Ex],encapsulation:2});
var WM=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[];this.hotlists=[]};g=WM.prototype;g.handleBookmarkGroupOpen=function(a){Zn(this.analytics,"sidebarArchived","open");this.location.url(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){Zn(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)};WM.\u0275fac=function(a){return new (a||WM)(C(FK),C(FM),C(GK),C(RM))};
WM.\u0275cmp=w({type:WM,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&&O(0,jva,7,2,"div",0);a&2&&D("ngIf",b.hotlists.length||b.bookmarkGroups.length)},dependencies:[yx,ux,XE,rB,bF,$E,eF,ZE,VM],encapsulation:2,changeDetection:0});
var XM=function(){this.admins=[]};XM.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Pl(this.bookmarkGroup.adminUsers)};XM.\u0275fac=function(a){return new (a||XM)};
XM.\u0275cmp=w({type:XM,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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),P(5),G()(),F(6,"ul")(7,"li"),P(8),G(),F(9,"li"),P(10),G()(),F(11,"div")(12,"p"),P(13),G()()()()());a&2&&(B(4),D("href",b.url,
Ud),B(1),Ke(b.bookmarkGroup.name),B(3),Je("ID: ",b.bookmarkGroup.bookmarkGroupId,""),B(2),Le("",1===b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Ke(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 YM=function(){this.admins=[]};YM.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Pl(this.hotlist.adminUsers)};YM.\u0275fac=function(a){return new (a||YM)};
YM.\u0275cmp=w({type:YM,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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),P(5),G()(),F(6,"ul")(7,"li"),P(8),G(),F(9,"li"),P(10),G()(),F(11,"div")(12,"p"),P(13),G()()()()());a&2&&(B(4),D("href",b.url,Ud),B(1),Ke(b.hotlist.name),B(3),Je("ID: ",b.hotlist.hotlistId,""),B(2),Le("",1===
b.admins.length?"Admin":"Admins",": ",b.admins.join(", "),""),B(3),Ke(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 ZM=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 Jw;this.isAnonymous=this.activeSession.isAnonymous()};g=ZM.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};ZM.\u0275fac=function(a){return new (a||ZM)(C(yH),C(uI))};
ZM.\u0275cmp=w({type:ZM,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},features:[Me([uI])],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=y();F(0,"div",
0,1)(2,"button",2);J("keydown.enter",function(d){return b.onEnter(d)})("click",function(d){return b.onClick(d)})("focus",function(){z(c);var d=M(1);return A(d.show())})("blur",function(){z(c);var d=M(1);return A(d.hide())});H(3,"mat-icon",3);G()()}a&2&&(D("matTooltip",b.getLabel()),B(2),te("starred",b.starred),D("disabled",b.isDisabled()),oe("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(1),D("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[rB,XE,lF],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});
var PLb=ki(function(a){this._elementRef=a},"primary"),QLb=new sd("mat-progress-spinner-default-options",{providedIn:"root",factory:mva}),$M=function(a,b,c,d,e,f,h,k){var q=PLb.call(this,a)||this;q._document=c;q._diameter=100;q._value=0;q._resizeSubscription=U.Subscription.EMPTY;q.mode="determinate";q._spinnerAnimationLabel=q._getSpinnerAnimationLabel();RLb.has(c.head)||RLb.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};V($M,PLb);g=$M.prototype;g.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=Yg(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=RLb.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,RLb.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(".","_")};
ji.Object.defineProperties($M.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=eh(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=eh(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,eh(a)))}}});var RLb=new WeakMap;$M.\u0275fac=function(a){return new (a||$M)(C(wd),C(yy),C(hi,8),C(Xv,8),C(QLb),C(nx),C(vA),C(qg))};
$M.\u0275cmp=w({type:$M,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&&(oe("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),se("width",b.diameter,"px")("height",b.diameter,"px"),te("_mat-animation-noopable",b._noopAnimations))},inputs:{color:"color",
diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ie],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&&(Uc(),F(0,"svg",0,1),O(2,kva,1,11,"circle",2),O(3,lva,1,9,"circle",3),G());a&2&&(se("width",b.diameter,"px")("height",b.diameter,"px"),D("ngSwitch","indeterminate"===b.mode),oe("viewBox",b._getViewBox()),B(2),D("ngSwitchCase",!0),B(1),D("ngSwitchCase",!1))},dependencies:[Ax,Bx],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:transparent;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 aN=function(){};aN.\u0275fac=function(a){return new (a||aN)};aN.\u0275cmp=w({type:aN,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&&(O(0,nva,1,1,"mat-spinner",0),O(1,ova,1,2,"mat-spinner",1));a&2&&(D("ngIf",b.large),B(1),D("ngIf",!b.large))},dependencies:[ux,$M],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: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 fade-in{0%{opacity:0}100%{opacity:1}}\n/*# sourceMappingURL=spinner.css.map */"]});
var pva;
var bN=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Jw;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};bN.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};bN.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
bN.prototype.getRoot=function(){var a;return null!=(a=qva(this.elementRef.nativeElement))?a:document};bN.\u0275fac=function(a){return new (a||bN)(C(wd))};bN.\u0275dir=w({type:bN,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var cN=function(){};cN.\u0275fac=function(a){return new (a||cN)};cN.\u0275mod=Cc({type:cN});cN.\u0275inj=mc({});
var SLb,TLb=Symbol("hd"),ULb=Symbol("id"),dN=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new Jw;this[SLb]=new U.ReplaySubject(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new U.BehaviorSubject(!1);this.closeHovercard$=new U.Subject};dN.prototype.ngOnInit=function(){};var VLb=function(a){var b=a[ULb];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[TLb].pipe(Vf(0))):(0,U.of)(void 0)};SLb=TLb;
dN.\u0275fac=function(a){return new (a||dN)(C(Ef))};
dN.\u0275cmp=w({type:dN,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&Hf(Df,7);if(a&2){var c;Gf(c=Jf())&&(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&&(Ee(),O(0,rva,2,3,"ng-template"))},dependencies:[Fy,bN],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 eN=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[ULb]=this};eN.\u0275fac=function(a){return new (a||eN)(C(Df),C(Ef),C(nx),C(dN))};eN.\u0275dir=w({type:eN,selectors:[["","onedevHovercardLazyBody",""]]});var fN=function(a){this.hovercard=a;this.destroyed$=new U.ReplaySubject(1)};fN.prototype.ngOnDestroy=function(){this.destroyed$.next()};fN.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(jg(this.destroyed$)).subscribe(this.hovercard[TLb])};
fN.\u0275fac=function(a){return new (a||fN)(C(dN))};fN.\u0275dir=w({type:fN,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:["onedevIsHovercardReady","isHovercardReady$"]}});
var WLb=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},{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 XLb=function(){this.delay=600;this.position=WLb},gN=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new XLb;this.active=!1;this.hovercardShown$=new U.ReplaySubject(1);this.hide$=new U.Subject;this.hovercard$=new U.BehaviorSubject(null);this.isHovered$=new U.BehaviorSubject(!1);this.isKeyboardActivated$=new U.BehaviorSubject(!1);this.destroyed$=new U.ReplaySubject(1);this.onDocumentKeyDown=function(d){"Escape"===d.key&&(YLb(c),d.stopPropagation(),
d.preventDefault())};ZLb(this);$Lb(this)},ZLb=function(a){aMb(a).pipe(jg(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})},$Lb=function(a){a.hovercard$.pipe(ig(function(b){return(null==b?void 0:b.closeHovercard$)||U.NEVER}),jg(a.destroyed$)).subscribe(function(){YLb(a)})};gN.prototype.dispose=function(){bMb(this);var a;null==(a=this.overlayRef)||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
gN.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};gN.prototype.toggle=function(a){this.isHovered$.next(a)};var YLb=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;null==(b=a.hovercard$.getValue())||b.isOnHover$.next(!1)};
gN.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,VLb(this.hovercard$.getValue()).pipe(Xf(),jg(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};gN.prototype.hide=function(){bMb(this);this.hide$.next()};
var bMb=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()}};gN.prototype.getPositionStrategy=function(){return CA(DA(EA(KA(this.overlay.position(),this.origin)),8),this.config.position)};
var aMb=function(a){return(0,U.combineLatest)([cMb(a).pipe(hg(!1)),a.isKeyboardActivated$]).pipe(gg(1),S(function(b){var c=r(b);b=c.next().value;c=c.next().value;return b||c}),ig(function(b){var c;return(null==(c=a.waitFor$)?void 0:c.pipe(ag(b)))||(0,U.of)(b)}))},cMb=function(a){return a.hovercard$.pipe(ig(function(b){return(0,U.combineLatest)([a.isHovered$,(null==b?void 0:b.isOnHover$)||(0,U.of)(!1)]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return c||d}),Tf(a.config.delay),
jg(a.destroyed$))}))};
var dMb=new sd("onedevHovercardLoggingOn"),hN=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new XLb;this.destroyed$=new U.ReplaySubject(1);this.triggerControl=new gN(a,b);this.triggerControl.hovercardShown$.pipe(lg(d||(0,U.of)(!1)),jg(this.destroyed$)).subscribe(function(h){h=r(h);h.next();h.next().value&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(wE)),xE(f.clientStreamzService,"hovercardShown",!0))})};g=hN.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 NA(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()};ji.Object.defineProperties(hN.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});hN.\u0275fac=function(a){return new (a||hN)(C(TA),C(wd),C(Ef),C(dMb,8),C(Iv))};
hN.\u0275dir=w({type:hN,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&J("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&&oe("aria-haspopup",b.hovercard?"true":void 0)("aria-expanded",b.isExpanded())},inputs:{hovercard:["onedevHovercardTrigger","hovercard"],enabled:["onedevHovercardActive",
"enabled"],config:["onedevHovercardConfig","config"]},features:[Jc]});
var eMb=["panel"],fMb=0,gMb=function(a,b){this.source=a;this.option=b},hMb=li(function(){}),iMb=new sd("mat-autocomplete-default-options",{providedIn:"root",factory:tva}),iN=function(a,b,c,d){var e=hMb.call(this)||this;e._changeDetectorRef=a;e._elementRef=b;e._activeOptionChanges=U.Subscription.EMPTY;e.showPanel=!1;e._isOpen=!1;e.displayWith=null;e.optionSelected=new Jw;e.opened=new Jw;e.closed=new Jw;e.optionActivated=new Jw;e._classList={};e.id="mat-autocomplete-"+fMb++;e.inertGroups=(null==d?void 0:
d.SAFARI)||!1;e._autoActiveFirstOption=!!c.autoActiveFirstOption;e._autoSelectActiveOption=!!c.autoSelectActiveOption;return e};V(iN,hMb);g=iN.prototype;g.ngAfterContentInit=function(){var a=this;this._keyManager=Xz(new eA(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(){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 gMb(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};
ji.Object.defineProperties(iN.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=bh(a)}},autoSelectActiveOption:{configurable:!0,enumerable:!0,get:function(){return this._autoSelectActiveOption},set:function(a){this._autoSelectActiveOption=bh(a)}},classList:{configurable:!0,enumerable:!0,set:function(a){a&&
a.length?this._classList=hja(a).reduce(function(b,c){b[c]=!0;return b},{}):this._classList={};this._setVisibilityClasses(this._classList);this._elementRef.nativeElement.className=""}}});iN.\u0275fac=function(a){return new (a||iN)(C(nx),C(wd),C(iMb),C(yy))};
iN.\u0275dir=w({type:iN,viewQuery:function(a,b){a&1&&(Hf(Df,7),Hf(eMb,5));if(a&2){var c;Gf(c=Jf())&&(b.template=c.first);Gf(c=Jf())&&(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:[ie]});var jN=function(){var a=iN.apply(this,arguments)||this;a._visibleClass="mat-autocomplete-visible";a._hiddenClass="mat-autocomplete-hidden";return a};V(jN,iN);jN.\u0275dir=iN.\u0275dir;jN.\u0275fac=function(){var a;return function(b){return(a||(a=md(jN)))(b||jN)}}();
jN.\u0275cmp=w({type:jN,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(If(c,zqb,5),If(c,nB,5));if(a&2){var d;Gf(d=Jf())&&(b.optionGroups=d);Gf(d=Jf())&&(b.options=d)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Me([{provide:yqb,useExisting:jN}]),ie],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(a){a&1&&(Ee(),O(0,
sva,3,4,"ng-template"))},dependencies:[xx],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 jMb=new sd("mat-autocomplete-scroll-strategy"),kMb={provide:jMb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},lMb={provide:wx,useExisting:ic(function(){return kN}),multi:!0},lN=function(a,b,c,d,e,f,h,k,q,u,x){var E=this;this._element=a;this._overlay=b;this._viewContainerRef=c;this._zone=d;this._changeDetectorRef=e;this._dir=h;this._formField=k;this._document=q;this._viewportRuler=u;this._defaults=x;this._manuallyFloatingLabel=this._autocompleteDisabled=
this._componentDestroyed=!1;this._viewportSubscription=U.Subscription.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new U.Subject;this._windowBlurHandler=function(){E._canOpenOnNextFocus=E._document.activeElement!==E._element.nativeElement||E.panelOpen};this._onChange=function(){};this._onTouched=function(){};this.position="auto";this.autocompleteAttribute="off";this._overlayAttached=!1;this.optionSelections=(0,U.defer)(function(){var I=E.autocomplete?E.autocomplete.options:null;return I?
I.changes.pipe(hg(I),ig(function(){return U.merge.apply(null,v(I.map(function(N){return N.onSelectionChange})))})):E._zone.onStable.pipe(Xf(),ig(function(){return E.optionSelections}))});this._scrollStrategy=f};lN.prototype.ngAfterViewInit=function(){var a=this,b=this._getWindow();"undefined"!==typeof b&&this._zone.runOutsideAngular(function(){return b.addEventListener("blur",a._windowBlurHandler)})};
lN.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};lN.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 os=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=lN.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return(0,U.merge)((0,U.fromEvent)(this._document,"click"),(0,U.fromEvent)(this._document,"auxclick"),(0,U.fromEvent)(this._document,"touchend")).pipe(xf(function(b){b=$g(b);var c=a._formField?a._formField._elementRef.nativeElement:null,d=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;return a._overlayAttached&&b!==a._element.nativeElement&&a._document.activeElement!==a._element.nativeElement&&(!c||!c.contains(b))&&(!d||!d.contains(b))&&!!a._overlayRef&&
!a._overlayRef.overlayElement.contains(b)}))};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=fi(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(Xf()),c=this.autocomplete.options.changes.pipe(kg(function(){return mqb(a._positionStrategy)}),Vf(0));return(0,U.merge)(b,c).pipe(ig(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}),
Xf()).subscribe(function(d){return a._setValueAndClose(d)})};g._destroyPanel=function(){this._overlayRef&&(os(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();os(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 NA(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;this.panelOpen&&c!==this.panelOpen&&this.autocomplete.opened.emit()};
g._getOverlayConfig=function(){var a;return new zA({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=FA(EA(KA(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(v(b),v(c));CA(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?cA(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=ala(a,b.options,b.optionGroups);0===a&&1===c?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(bla(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&&!fi(c)||38===c.keyCode&&fi(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()}})};
ji.Object.defineProperties(lN.prototype,{autocompleteDisabled:{configurable:!0,enumerable:!0,get:function(){return this._autocompleteDisabled},set:function(a){this._autocompleteDisabled=bh(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,U.merge)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(xf(function(){return a._overlayAttached})),
this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(xf(function(){return a._overlayAttached})):(0,U.of)()).pipe(S(function(b){return b instanceof Jqb?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});lN.\u0275fac=function(a){return new (a||lN)(C(wd),C(TA),C(Ef),C(qg),C(nx),C(jMb),C(gA,8),C(dC,9),C(hi,8),C(vA),C(iMb,8))};
lN.\u0275dir=w({type:lN,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Jc]});var kN=function(){lN.apply(this,arguments);this._aboveClass="mat-autocomplete-panel-above"};V(kN,lN);
kN.\u0275fac=function(){var a;return function(b){return(a||(a=md(kN)))(b||kN)}}();
kN.\u0275dir=w({type:kN,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&J("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&&oe("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:[Me([lMb]),ie]});
var mN=function(){};mN.\u0275fac=function(a){return new (a||mN)};mN.\u0275mod=Cc({type:mN});mN.\u0275inj=mc({providers:[kMb],imports:[WA,qB,XA,Mx,wA,qB,XA]});
var mMb=["searchBox"],nN=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 Jw;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.query="";this.matches=[];this.currentUserEmail=b.getUserEmail()};
nN.prototype.ngOnInit=function(){this.allowStarring&&nMb(this)};
var nMb=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();a.userApi.getUserSidebar().then(function(b){if(a.showGroups){var c,d=r(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=r(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=r(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=nN.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=r(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=r(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=
r(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(v(e),v(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!Pl(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();nMb(b);b.cdr.detectChanges()};c={resourceId:c,resourceType:d};a.isStarred?(Zn(this.analytics,"hotlistSearch","starItem"),this.userApi.saveFavorite(c).then(e)):(Zn(this.analytics,"hotlistSearch","unstarItem"),this.userApi.deleteFavorite(c).then(e))};
nN.\u0275fac=function(a){return new (a||nN)(C(uI,2),C(yH),C(YK),C(NM),C(SK),C(GK),C(FM),C(xK),C(BK))};
nN.\u0275cmp=w({type:nN,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(Hf(mMb,5),Hf(kN,5));if(a&2){var c;Gf(c=Jf())&&(b.searchBoxEl=c.first);Gf(c=Jf())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[Me([uI])],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&&(F(0,"div",0)(1,"input",1,2),J("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(),O(3,uva,1,0,"b-spinner",3),F(4,"mat-autocomplete",4,5),J("optionSelected",function(d){b.itemSelect.emit(d.option.value)}),O(6,yva,9,8,"mat-option",6),G(),F(7,"div",7),P(8,' e.g., "foo bar admin:user@google.com" '),H(9,"br"),P(10,' or "foo bar admin:group@google.com" '),H(11,"br"),P(12," Only identities directly listed as Admins can be searched. "),G()());if(a&2){var c=M(5);B(1);D("ngModel",b.query)("matAutocomplete",c);oe("autofocus",b.focusOnInit)("aria-label","Add query for searching "+
(b.showGroups?"bookmark groups":"hotlists"));B(2);D("ngIf",b.isLoading());B(3);D("ngForOf",b.matches)}},dependencies:[yx,ux,XM,YM,dN,hN,aN,ZM,Qg,by,hy,jN,kN,nB],encapsulation:2});
var oMb=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],oN=function(){};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275dir=w({type:oN,selectors:[["xap-dialog-layout-subtitle"]]});var pN=function(a,b,c){this.el=a;this.cdRef=b;this.ngZone=c;this.destroyed=new U.ReplaySubject;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
pN.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){pMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});qMb(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};pN.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var pMb=function(a){if(!window.ResizeObserver)return(0,U.of)(rMb(a.el.nativeElement));var b;return(0,U.fromEventPattern)(function(c){b=new ResizeObserver(function(){c(rMb(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(Wf(),jg(a.destroyed))},qMb=function(a){return(0,U.fromEvent)(a.el.nativeElement,"scroll").pipe(zva(),S(function(){return a.getScrollPosition(a.el.nativeElement)}),Wf(),jg(a.destroyed))},rMb=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
pN.prototype.getScrollPosition=function(a){return 0===a.scrollTop?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};ji.Object.defineProperties(pN.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});pN.\u0275fac=function(a){return new (a||pN)(C(wd),C(nx),C(qg))};
pN.\u0275dir=w({type:pN,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&te("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 qN=function(){};qN.\u0275fac=function(a){return new (a||qN)};
qN.\u0275cmp=w({type:qN,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&If(c,oN,4);if(a&2){var d;Gf(d=Jf())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&te("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&&(Ee(oMb),
F(0,"header",0),Fe(1),Fe(2,1),G(),Fe(3,2),Fe(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 sMb=Eh({opacity:0}),tMb=Eh({opacity:1}),uMb=Ch("dialogContainer",[Fh("void, hidden",sMb),Fh("visible",tMb),Gh("void => *, * => visible",Dh("200ms cubic-bezier(0.0,0.0,0.2,1)",tMb)),Gh("* => void, * => hidden",Dh("200ms cubic-bezier(0.4,0.0,0.2,1)",sMb))]);
var vMb=new sd("XAP_IDCO"),rN=function(a){this._isDisposed=!1;this.options=a;this.animationState="hidden"};V(rN,OA);rN.prototype.ngAfterViewInit=function(){};rN.prototype.attachComponentPortal=function(a){return this.portalOutlet.attachComponentPortal(a)};rN.prototype.attachTemplatePortal=function(a){return this.portalOutlet.attachTemplatePortal(a)};rN.\u0275fac=function(a){return new (a||rN)(C(vMb))};
rN.\u0275cmp=w({type:rN,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&Hf(RA,7);if(a&2){var c;Gf(c=Jf())&&(b.portalOutlet=c.first)}},hostAttrs:["role","dialog","tabindex","-1",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:2,hostBindings:function(a,b){a&2&&(oe("aria-label",b.options.dialogLabel),De("@dialogContainer",b.animationState))},features:[ie],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(F(0,
"div"),O(1,Ava,1,0,"ng-template",0),G())},dependencies:[RA],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:[uMb]},changeDetection:0});
var wMb=[{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}],xMb={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},sN=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.triggerDescription="Press space for more information.";this.beforeOpened=new Jw;this.opened=new Jw;this.closed=new Jw;this.destroyed=new U.ReplaySubject;this.openStatusChange=new U.BehaviorSubject(!1);this.openings=this.openStatusChange.pipe(xf(function(u){return u&&!q.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;yMb(this,c.nativeElement);this.attachKeyboardCloseEventListeners(c.nativeElement);
zMb(this,c.nativeElement)};sN.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||Ypb(this.ariaDescriber,a,this.triggerDescription)};sN.prototype.ngOnDestroy=function(){tN(this);this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var yMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(b,"keydown").pipe(jg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 13:a.openDialog();break;case 32:c.preventDefault()}});(0,U.fromEvent)(b,"keyup").pipe(jg(a.destroyed)).subscribe(function(c){switch(c.keyCode){case 32:a.openDialog()}})})},zMb=function(a,b){a.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(b,"focus").pipe(xf(function(){return 0<a.beforeOpened.observers.length}),jg(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
sN.prototype.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=AMb(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)})}}};
var tN=function(a){var b;null!=(b=a.overlayRef)&&b.hasAttached()&&(a.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))};
sN.prototype.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),By(this.focusTrap),Dy(this.focusTrap))};
sN.prototype.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)}};sN.prototype.createPositionStrategy=function(a){return CA(KA(this.overlay.position(),this.elementRef),a).setOrigin(this.elementRef)};
var AMb=function(a){var b=og({parent:a.injector,providers:[{provide:vMb,useValue:{dialogLabel:a.dialogLabel}}]});b=new MA(rN,null,b);null==a.overlayRef&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(wMb)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&0<a.overlayPositions.length&&kqb(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
ji.Object.defineProperties(sN.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof Df?new NA(a,this.viewContainerRef):new MA(a,this.viewContainerRef))}},disabled:{configurable:!0,enumerable:!0,set:function(a){(this.disabledInternal=a)&&tN(this)},get:function(){return this.disabledInternal}},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}}}});sN.\u0275fac=function(a){return new (a||sN)(C(qg),C(TA),C(wd),C(Ef),C(Document),C(Vz),C(Rz),C(Iv))};sN.\u0275dir=w({type:sN,hostVars:1,hostBindings:function(a,b){a&2&&oe("data-disabled",b.disabled)},inputs:{dialogLabel:"dialogLabel",overlaySize:"overlaySize",overlayPositions:"overlayPositions",triggerDescription:"triggerDescription",panelClass:"panelClass"},outputs:{beforeOpened:"beforeOpened",opened:"opened",closed:"closed"}});
var uN=function(a,b,c,d,e,f,h,k){sN.call(this,a,b,c,d,e,f,h,k);this.attachMouseEventListeners(c.nativeElement)};V(uN,sN);g=uN.prototype;g.ngOnInit=function(){sN.prototype.ngOnInit.call(this);this.listenForOpenEvents()};g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(jg(this.destroyed)).subscribe(function(b){b?a.openDialog():tN(a)});this.openings.pipe(xf(function(b){return b&&0<a.beforeOpened.observers.length}),zha(function(){return a.openStatusChange.pipe(xf(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(a,"mouseenter").pipe(jg(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(0,U.fromEvent)(a,"click").pipe(jg(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(jg(b.destroyed)).subscribe(function(){b.openStatusChange.value&&
b.closingDialog()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(a,"keyup").pipe(jg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.keyCode){case 27:tN(b);break;case 13:case 32:d.closest("[xapInlineDialogClose]")&&tN(b)}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};g.closingDialog=function(){this.openStatusChange.next(!1)};
g.createOverlayConfig=function(a){return new zA(Object.assign({},xMb,{positionStrategy:sN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};uN.\u0275fac=function(a){return new (a||uN)(C(qg),C(TA),C(wd),C(Ef),C(hi),C(Vz),C(Rz),C(Iv))};
uN.\u0275dir=w({type:uN,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:["xapInlineDialogClick","dialog"],disabled:["xapInlineDialogDisabled","disabled"]},exportAs:["xapInlineDialogClick"],features:[ie]});
var BMb=["*"],CMb=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}"},vN=function(){this.disabled=!1};vN.\u0275fac=function(a){return new (a||vN)};
vN.\u0275cmp=w({type:vN,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:3,hostBindings:function(a,b){a&2&&(oe("tabindex",b.disabled?-1:0),te("xap-text-trigger",!b.disabled))},inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:BMb,decls:1,vars:0,template:function(a){a&1&&(Ee(),Fe(0))},styles:[CMb()],encapsulation:2});var wN=function(){this.disabled=!1};wN.\u0275fac=function(a){return new (a||wN)};
wN.\u0275cmp=w({type:wN,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:["xapInlineDialogDisabled","disabled"]},ngContentSelectors:BMb,decls:1,vars:0,template:function(a){a&1&&(Ee(),Fe(0))},styles:[CMb()],encapsulation:2});
var xN=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new Jw};xN.\u0275fac=function(a){return new (a||xN)};
xN.\u0275cmp=w({type:xN,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&Hf(uN,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"xap-icon-trigger",0),H(1,"mat-icon",1),G(),O(2,Bva,3,4,"ng-template",null,2,Pf));if(a&2){var c=M(3);D("xapInlineDialogClick",c);oe("aria-label",b.ariaLabel)}},dependencies:[qN,pN,lF,XE,uN,wN,nN],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});
var yN=function(a,b,c,d){this.location=a;this.analytics=b;this.paths=c;this.sidebar=d;this.bookmarkGroups=[]};yN.prototype.handleBookmarkGroupOpen=function(a){Zn(this.analytics,"sidebarBookmarkGroups","open");this.location.url(this.paths.viewBookmarkGroup(a))};yN.prototype.handleBookmarkGroupDashboard=function(a){Zn(this.analytics,"sidebarBookmarkGroups","dashboard");this.location.url(this.paths.dashboard(a))};yN.prototype.editBookmarkGroup=function(a){this.location.url(this.paths.editBookmarkGroup(a))};
yN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};yN.\u0275fac=function(a){return new (a||yN)(C(FK),C(FM),C(GK),C(RM))};
yN.\u0275cmp=w({type:yN,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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),O(3,Cva,3,1,"ng-template",null,2,Pf),O(5,Rva,1,1,"ng-template",null,3,Pf),G()());if(a&2){var b=M(4),c=M(6);B(2);D("header",b)("content",c)}},dependencies:[yx,ux,xN,XE,rB,bF,$E,eF,ZE,VM],encapsulation:2,changeDetection:0});
var zN=function(a,b,c,d,e){this.location=a;this.analytics=c;this.sidebar=d;this.paths=e;this.userEmail=b.getUserEmail()};zN.prototype.getUserEmail=function(){return this.userEmail};zN.prototype.openEditHotlist=function(a){this.location.url(this.paths.editHotlist(a))};zN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};zN.\u0275fac=function(a){return new (a||zN)(C(FK),C(yH),C(FM),C(RM),C(GK))};
zN.\u0275cmp=w({type:zN,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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),O(3,Sva,3,1,"ng-template",null,2,Pf),O(5,Zva,1,1,"ng-template",null,3,Pf),G()());if(a&2){var b=M(4),c=M(6);B(2);D("header",b)("content",c)}},dependencies:[yx,ux,xN,XE,rB,bF,$E,eF,ZE,VM],encapsulation:2,changeDetection:0});
var AN=function(a){Z.call(this,a)};V(AN,Z);AN.prototype.getSearch=function(){return m(this,nn,1)};AN.prototype.setSearch=function(a){Gb(this,1,a)};AN.prototype.toObject=function(){var a=null!=this?{search:mJb(void 0,this.getSearch())}:void 0;return a};AN.messageId="b.SearchResponse";
var BN=function(a){this.jspbExecutor=a};BN.prototype.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:AN}).pipe(S($va))};BN.prototype.create=function(a,b){var c=new nn;c.setName(a);c.setQuery(b);return this.jspbExecutor.post({url:"action/saved_searches",body:c,responseConstructor:AN}).pipe(S($va))};
BN.prototype.update=function(a,b){var c=new nn;l(c,1,String(b.searchId));c.setOwnerUser(Ul(b.ownerUser));c.setName(b.name);c.setDescription(b.description);c.setQuery(b.query);var d;c.setSortOrderList((null!=(d=b.sortOrder)?d:[]).map(Jsa));var e;c.setDisplayColumnList((null!=(e=b.displayColumn)?e:[]).map(Hsa));var f;c.setAdminUsersList((null!=(f=b.adminUsers)?f:[]).map(Ul));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:c,responseConstructor:AN}).pipe(S($va))};
BN.prototype.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};BN.\u0275fac=function(a){return new (a||BN)(t(pI))};BN.\u0275prov=lc({token:BN,factory:BN.\u0275fac,providedIn:"root"});var CN=function(a){this.observableResources=a};CN.prototype.get=function(a){return(0,U.firstValueFrom)(this.observableResources.get(a))};CN.prototype.create=function(a,b){return(0,U.firstValueFrom)(this.observableResources.create(a,b))};
CN.prototype.update=function(a,b){return(0,U.firstValueFrom)(this.observableResources.update(a,b))};CN.prototype.delete=function(a){return(0,U.firstValueFrom)(this.observableResources.delete(a))};CN.\u0275fac=function(a){return new (a||CN)(t(BN))};CN.\u0275prov=lc({token:CN,factory:CN.\u0275fac,providedIn:"root"});
var DN=function(a,b,c,d,e,f,h,k,q,u){this.cdr=a;this.location=b;this.savedSearchApi=c;this.paths=d;this.butterBar=e;this.analytics=f;this.sidebar=h;this.errorHandler=k;this.confirmationDialogService=q;this.appEvents=u;this.searches=[]};DN.prototype.isSelected=function(a){return RIb(this.paths,a.href)};DN.prototype.openEditSavedSearch=function(a){this.location.url(this.paths.editSavedSearch(a))};
var cwa=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:In("Are you sure you want to delete this search?"),onConfirm:function(){DMb(a,b)}})},DMb=function(a,b){var c=b.id;tK(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});tK(a.butterBar,'Deleted saved search "'+b.name+'".');Zn(a.analytics,"sidebarSavedSearches","deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,
d)})};DN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};DN.\u0275fac=function(a){return new (a||DN)(C(uI,2),C(FK),C(CN),C(GK),C(sK),C(FM),C(RM),C(xK),C(PM),C(BK))};
DN.\u0275cmp=w({type:DN,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[Me([uI])],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&&(F(0,"div",0),H(1,"hr"),F(2,"sidebar-zippy",1),O(3,awa,2,0,"ng-template",null,2,Pf),O(5,gwa,1,1,"ng-template",null,3,Pf),G()());if(a&
2){var b=M(4),c=M(6);B(2);D("header",b)("content",c)}},dependencies:[yx,ux,XE,rB,bF,$E,eF,ZE,VM],encapsulation:2,changeDetection:0});
var EMb=/^\s*hotlistid:(\d+)\s*$/i,EN=function(a,b){this.$log=a;this.contextSensitiveRegistry=b;this.currentSearch="";this.searchTextChange$=new U.Subject;this.searchHandlerStack=[]},FMb=function(a,b){return a.searchTextChange$.subscribe(b)};EN.prototype.clear=function(){FN(this,"")};
var FN=function(a,b){a.currentSearch=b;(b=a.currentSearch.match(/(?:\s|^)componentid:(\d+)\s*/i))?a.contextSensitiveRegistry.componentIdOverride$.next(Ki(b[1])):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentSearch.match(EMb))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Ki(b[1])):a.contextSensitiveRegistry.hotlistIdOverride$.next(null);a.searchTextChange$.next(a.currentSearch)},GMb=function(a){return"assignee:"+a+" status:open"};EN.prototype.getStarred=function(){return"star:true"};
EN.prototype.isStarred=function(){return this.currentSearch===this.getStarred()};EN.prototype.getVoted=function(){return"vote:true"};
var mwa=function(a){return a.currentSearch===a.getVoted()},HMb=function(a){return"verifier:"+a+" status:open | status:fixed"},IMb=function(a){return(a=a.currentSearch.match(EMb))?Ki(a[1]):0},JMb=function(a){return(a=a.currentSearch.match(/^\s*savedsearchid:(\d+)\s*$/i))?Ki(a[1]):0},KMb=function(a,b){a.searchHandlerStack.push(b);return function(){za(a.searchHandlerStack,b)}};EN.\u0275fac=function(a){return new (a||EN)(t(vK),t(iM))};EN.\u0275prov=lc({token:EN,factory:EN.\u0275fac,providedIn:"root"});
var LMb=BM.setStringAt("edited-ids"),MMb=BM.getStringAt("edited-ids"),NMb=BM.setStringAt("viewed-ids"),OMb=BM.getStringAt("viewed-ids"),GN=function(a){var b=this;this.appEvents=a;this.stop$=new U.Subject;this.edited=new Map;this.viewed=new Map;this.addViewed=function(c){hwa(b.viewed,c);NMb(Array.from(b.viewed.keys()).join(","))};this.addEdited=function(c){hwa(b.edited,c);LMb(Array.from(b.edited.keys()).join(","))}};GN.\u0275fac=function(a){return new (a||GN)(t(BK))};
GN.\u0275prov=lc({token:GN,factory:GN.\u0275fac,providedIn:"root"});
var HN=function(a,b,c,d,e,f,h,k,q,u){var x=this;this.cdr=a;this.activeSession=b;this.butterBar=c;this.currentSearch=d;this.paths=e;this.userPreferencesManager=f;this.sidebar=h;this.location=k;this.issueLru=q;this.issuePagination=u;this.enabledVotedNav=AH(this.activeSession,"enableUpvotedInNav")&&this.activeSession.isInternalSession();this.votedPath=this.paths.listIssues({q:this.currentSearch.getVoted()});this.recentlyViewedPath=PMb(this)?"recent":void 0;this.destroyed$=new Jw;this.hasPreferredHomepage$=
this.userPreferencesManager.preferences$.pipe(S(function(E){E=(E||xH).homepagePreferences;return!(!E||!E.resourceType)}),Wf());this.appName=b.getAppName();this.userEmail=b.getUserEmail();this.environmentType=b.getEnvironmentType();this.assignedPath=e.listIssues({q:GMb(this.userEmail)});this.starredPath=e.listIssues({q:d.getStarred()});this.ccdPath=e.listIssues({q:"cc:"+this.userEmail});this.verifiedPath=e.listIssues({q:HMb(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;AH(b,"runQueryForSidebarIssueCount")&&setTimeout(function(){var E={page:1,resultsPerPage:100,query:"assignee: "+b.getUserEmail()+" status:open",sortColumns:[],returnUrl:x.location.path(!0)};JM(x.issuePagination,E).then(function(){})},1E3)};HN.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(jg(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};
HN.prototype.ngOnDestroy=function(){this.destroyed$.next()};var kwa=function(a){tK(a.butterBar,"Updating homepage...",0);a.userPreferencesManager.clearHomepagePreferences().pipe(jg(a.destroyed$)).subscribe(function(){tK(a.butterBar,"Homepage updated")})};HN.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};var PMb=function(a){var b=AH(a.activeSession,"enableRecentlyViewedInNav");a=0<Array.from(a.issueLru.viewed.keys()).length;return b&&a};
HN.\u0275fac=function(a){return new (a||HN)(C(uI,2),C(yH),C(sK),C(EN),C(GK),C(VI),C(RM),C(Tx),C(GN),C(IM))};
HN.\u0275cmp=w({type:HN,selectors:[["b-sidebar"]],features:[Me([uI])],decls:46,vars:28,consts:[[1,"bv2-nav-header"],[1,"bv2-nav-bar"],["role","region",1,"bv2-nav-links"],["aria-label","Canned searches",1,"canned-searches"],["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"],["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&&(F(0,"div",0),H(1,"b-create-issue-button"),G(),F(2,"div",1)(3,"div",2)(4,"ul",3)(5,"li",4)(6,"a",5),J("click",function(c){return b.onAnchorClick(b.assignedPath,c)}),H(7,"mat-icon",6),P(8," Assigned to me "),G(),O(9,jwa,3,1,"ng-container",7),Q(10,"async"),F(11,"mat-menu",null,8),O(13,lwa,2,0,"ng-template",9),G()(),F(14,"li")(15,"a",5),J("click",function(c){return b.onAnchorClick(b.starredPath,c)}),H(16,
"mat-icon",10),P(17," Starred by me "),G()(),F(18,"li")(19,"a",5),J("click",function(c){return b.onAnchorClick(b.ccdPath,c)}),H(20,"mat-icon",11),P(21," CC'd to me "),G()(),F(22,"li")(23,"a",5),J("click",function(c){return b.onAnchorClick(b.reportedPath,c)}),H(24,"mat-icon",12),P(25," Reported by me "),G()(),O(26,nwa,4,3,"li",13),F(27,"li")(28,"a",5),J("click",function(c){return b.onAnchorClick(b.verifiedPath,c)}),H(29,"mat-icon",14),P(30," To be verified "),G()(),O(31,owa,4,3,"li",13),G(),H(32,"sidebar-bookmark-groups",
15)(33,"sidebar-saved-searches",16)(34,"sidebar-hotlists",17)(35,"sidebar-archived",18)(36,"hr"),F(37,"div",19)(38,"a",20),P(39," Create hotlist "),G()(),F(40,"div",19)(41,"a",20),P(42," Create bookmark group "),G()(),F(43,"div",19)(44,"a",20),P(45," Browse components "),G()()()());a&2&&(B(5),te("selected",b.currentSearch.currentSearch===GMb(b.userEmail)),B(1),D("href",b.assignedPath,Ud),B(3),D("ngIf",R(10,26,b.hasPreferredHomepage$)),B(5),te("selected",b.currentSearch.isStarred()),B(1),D("href",
b.starredPath,Ud),B(3),te("selected",b.currentSearch.currentSearch==="cc:"+b.userEmail),B(1),D("href",b.ccdPath,Ud),B(3),te("selected",b.currentSearch.currentSearch==="reporter:"+b.userEmail),B(1),D("href",b.reportedPath,Ud),B(3),D("ngIf",b.enabledVotedNav),B(1),te("selected",b.currentSearch.currentSearch===HMb(b.userEmail)),B(1),D("href",b.verifiedPath,Ud),B(3),D("ngIf",b.recentlyViewedPath),B(1),D("bookmarkGroups",b.sidebarData.bookmarkGroups),B(1),D("searches",b.sidebarData.userSearches),B(1),
D("hotlists",b.sidebarData.hotlists),B(1),D("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),D("href",b.createHotlistPath,Ud),B(3),D("href",b.createBookmarkGroupPath,Ud),B(3),D("href",b.componentsPath,Ud))},dependencies:[EM,ux,XE,rB,bF,$E,eF,ZE,WM,yN,zN,DN,Fx],encapsulation:2});
var IN=function(){};IN.\u0275fac=function(a){return new (a||IN)};IN.\u0275mod=Cc({type:IN});IN.\u0275inj=mc({imports:[Mx]});
var JN=function(){};JN.\u0275fac=function(a){return new (a||JN)};JN.\u0275mod=Cc({type:JN});JN.\u0275inj=mc({imports:[Mx]});
var KN=function(){};KN.\u0275fac=function(a){return new (a||KN)};KN.\u0275mod=Cc({type:KN});KN.\u0275inj=mc({imports:[Mx,dI,uG,pF,mH]});
var LN=function(){};LN.\u0275fac=function(a){return new (a||LN)};LN.\u0275mod=Cc({type:LN});LN.\u0275inj=mc({imports:[XA,Mx,XA]});
var MN=function(){};MN.\u0275fac=function(a){return new (a||MN)};MN.\u0275mod=Cc({type:MN});MN.\u0275inj=mc({imports:[Mx,LN]});
var NN=function(){this.onAction=new Jw;this.disabled=!1};NN.prototype.handleClick=function(){this.onAction.emit()};NN.\u0275fac=function(a){return new (a||NN)};
NN.\u0275cmp=w({type:NN,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&&(Ee(),F(0,"button",0),J("click",function(){return b.handleClick()}),Fe(1),G());a&2&&D("disabled",b.disabled)},dependencies:[rB],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 ON=function(){};ON.\u0275fac=function(a){return new (a||ON)};ON.\u0275mod=Cc({type:ON});ON.\u0275inj=mc({imports:[Qz,cN,Mx,uG,WA]});
var PN=function(){};PN.\u0275fac=function(a){return new (a||PN)};PN.\u0275mod=Cc({type:PN});PN.\u0275inj=mc({imports:[Mx]});
var QN=function(a,b,c,d,e,f,h,k){sN.call(this,a,b,c,d,e,f,h,k);this.hoverDelayMs=500;this.activity=new U.Subject;this.attachMouseEventListeners(c.nativeElement)};V(QN,sN);g=QN.prototype;g.ngOnInit=function(){sN.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(Nga(function(){return b.activity.pipe(Tf(a))}));c.pipe(jg(this.destroyed)).subscribe(function(d){d?b.openDialog():tN(b)});this.openings.pipe(xf(function(d){return d&&0<b.beforeOpened.observers.length}),zha(function(){return c.pipe(xf(function(d){return!d}))}),jg(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(a,"mouseenter").pipe(jg(b.destroyed)).subscribe(function(){b.openingDialog()});(0,U.fromEvent)(a,"click").pipe(jg(b.destroyed)).subscribe(function(){b.openingDialog();b.openDialog()});(0,U.fromEvent)(a,"mouseleave").pipe(jg(b.destroyed)).subscribe(function(){b.closingDialog()});(0,U.fromEvent)(a,"mousemove").pipe(jg(b.destroyed)).subscribe(function(){b.activity.next()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(a,"keydown").pipe(jg(b.destroyed)).subscribe(function(c){switch(c.keyCode){case 27:var d;(null==(d=b.overlayRef)?0:d.hasAttached())&&c.stopPropagation();tN(b)}})})};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 zA(Object.assign({},xMb,{positionStrategy:sN.prototype.createPositionStrategy.call(this,a),scrollStrategy:this.overlay.scrollStrategies.close(),panelClass:this.panelClassInternal}))};QN.\u0275fac=function(a){return new (a||QN)(C(qg),C(TA),C(wd),C(Ef),C(hi),C(Vz),C(Rz),C(Iv))};
QN.\u0275dir=w({type:QN,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:["xapInlineDialog","dialog"],disabled:["xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[ie]});
[].concat(v([QN,uN,wN,vN]),[rN]);var RN=function(){};RN.\u0275fac=function(a){return new (a||RN)};RN.\u0275mod=Cc({type:RN});RN.\u0275inj=mc({imports:[Qz,Mx,WA,SA]});
var SN=function(){};SN.\u0275fac=function(a){return new (a||SN)};SN.\u0275mod=Cc({type:SN});SN.\u0275inj=mc({imports:[Mx,IN,JN,ON,MN,KN,PN,mH,pF,wy,RN,mN]});
var QMb=[DM],TN=function(){};[].concat(v(QMb));[].concat(v(QMb));TN.\u0275fac=function(a){return new (a||TN)};TN.\u0275mod=Cc({type:TN});TN.\u0275inj=mc({imports:[Mx,uG,fF,pF,mH]});
var UN=function(){};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275mod=Cc({type:UN});UN.\u0275inj=mc({imports:[Mx,TN]});
var VN=function(){};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275mod=Cc({type:VN});VN.\u0275inj=mc({imports:[UN,Mx,SN,pF,uG,fF]});
var WN=function(a,b){this.$window=a;this.activeSession=b};WN.prototype.setTitle=function(a){this.$window.document.title=a?a+" - "+this.activeSession.getAppName():this.activeSession.getAppName()};WN.\u0275fac=function(a){return new (a||WN)(t(jM),t(yH))};WN.\u0275prov=lc({token:WN,factory:WN.\u0275fac,providedIn:"root"});
var XN=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$=hM(this.paramsService,"issueId").pipe(Wf());this.urlComment$=this.activatedRoute.fragment.pipe(S(fxa),fg({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(ig(function(q){return lL(k.issueFetchResponseFridge,q)}),fg({refCount:!0,bufferSize:1}));this.issueJs$.pipe(S(function(q){return null==
q?void 0:q.firstEvent}));this.eventsJs$=this.id$.pipe(ig(this.eventsForIssue.watch),S(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.starred$=this.issueJs$.pipe(S(rwa));this.lastViewedTimeMicros$=this.issueJs$.pipe(S(swa));this.lastViewedTimeMicros$.pipe(S(function(q){return!q}));this.title$=this.issueJs$.pipe(S(twa));this.issueJs$.pipe(S(Lwa));(0,U.merge)(this.issueJs$.pipe(S(function(q){return null==q?void 0:q.firstEvent}),xf(cl),S(function(q){return[q]})),this.eventsJs$).pipe(bg(function(q,
u){u=u.flatMap(function(E){return E.attachments});u=r(u);for(var x=u.next();!x.done;x=u.next())x=x.value,null!=x.attachmentId&&(q[x.attachmentId]=x);return q},{}));this.issueJs$.pipe(S(Mwa));this.issueJs$.pipe(S(Nwa));this.status$=this.issueJs$.pipe(S(uwa));this.priority$=this.issueJs$.pipe(S(vwa));this.assignee$=this.issueJs$.pipe(S(wwa));this.issueJs$.pipe(S(xwa));this.teamId$=this.issueJs$.pipe(S(ywa));this.team$=this.teamId$.pipe(ig(this.teamFridge.watch),fg({refCount:!0,bufferSize:1}));this.ccUsers$=
this.issueJs$.pipe(S(Awa));this.issueJs$.pipe(S(function(q){var u,x;return null!=(x=null==(u=$n(q))?void 0:u.severity)?x:void 0}));this.type$=this.issueJs$.pipe(S(Bwa));this.issueJs$.pipe(S(Cwa));this.issueJs$.pipe(S(Dwa));this.issueJs$.pipe(S(Ewa));this.postmortems$=this.issueJs$.pipe(S(Fwa));this.postmortems$.pipe(S(function(q){return 0<q.length}));this.issueJs$.pipe(S(Gwa));this.effort$=this.issueJs$.pipe(S(Hwa));this.isDeleted$=this.issueJs$.pipe(S(Pwa));this.accessLevel$=this.issueJs$.pipe(S(Rwa));
this.customFieldDefs$=this.issueJs$.pipe(S(Iwa));this.customFieldValues$=this.issueJs$.pipe(S(Jwa));this.modifiedTime$=this.issueJs$.pipe(S(Swa));this.retention$=this.issueJs$.pipe(S(Uwa));this.retention=function(){return Ik(k.retention$)};this.retentionState$=this.issueJs$.pipe(S(Xwa));this.retentionState=function(){return Ik(k.retentionState$)};this.canonicalIssueId$=this.issueJs$.pipe(S(Vwa));this.canonicalIssue$=this.canonicalIssueId$.pipe(ig(this.issueFridge.watch));this.sloStatus$=this.issueJs$.pipe(S(Ywa));
this.sloId$=this.issueJs$.pipe(S(Zwa));this.createdTimeMicros$=this.issueJs$.pipe(S($wa));this.visibleFields$=this.issueJs$.pipe(S(Kwa));this.visibleCustomFieldIds$=this.visibleFields$.pipe(S(exa));this.customFieldEntries$=(0,U.combineLatest)([this.customFieldDefs$,this.customFieldValues$]).pipe(S(function(q){var u=r(q);q=u.next().value;u=u.next().value;var x=new Map(u.map(function(E){return[E.customFieldId,E]}));return q.map(function(E){var I=E.customFieldId,N={customFieldId:I},L;I=null!=(L=x.get(I))?
L:N;return{def:E,value:I}})}));(0,U.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(S(function(q){q=r(q);var u=q.next().value,x=q.next().value;return u.filter(function(E){return x.has(String(E.def.customFieldId))})}));(0,U.combineLatest)([this.customFieldEntries$,this.visibleCustomFieldIds$]).pipe(S(function(q){q=r(q);var u=q.next().value,x=q.next().value;return u.filter(function(E){return!x.has(String(E.def.customFieldId))})}));this.componentId$=this.issueJs$.pipe(S(zwa));
this.component$=this.componentId$.pipe(ig(this.componentFridge.watch));this.teamSuggestions$=this.component$.pipe(S(axa));this.effortSpec$=this.component$.pipe(S(bxa));this.isEffortEnabled$=this.component$.pipe(S(cxa));this.componentPathInfo$=this.component$.pipe(S(dxa));this.thinking$=this.issueFetchResponseFridge.thinking$};XN.\u0275fac=function(a){return new (a||XN)(t(kL),t(hL),t(bM),t(IJ),t(wL),t(gM),t(mk))};XN.\u0275prov=lc({token:XN,factory:XN.\u0275fac,providedIn:"root"});
var RMb={id:"[loading]",admin:!1,writer:!0,appender:!0,reader:!0},ZN=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("^"+Jn(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(ig(function(k){return k?h.permissionsFridge.watchOne("issues/"+
k):(0,U.of)(void 0)}),S(function(k){return null!=k?k:RMb}),hg(RMb),fg({bufferSize:1,refCount:!1}));this.issuePermissions=function(){return Ik(h.issuePermissions$)};this.hasAclToEdit$=this.issuePermissions$.pipe(S(function(k){return!!k.writer}));this.hasAclToEdit=function(){return!!Ik(h.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(S(function(k){return!!k.appender}));this.hasAclToComment=function(){return!!Ik(h.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(S(function(k){return!!k.admin}));
this.hasAclToAdmin=function(){return!!Ik(h.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(S(function(k){return k.some(function(q){return YN(h,q.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Ik(h.isCurrentUserCCd$)};this.isAllowedToEditCC$=this.hasAclToEdit$;this.addMeToCcDisabledReason$=(0,U.combineLatest)([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(S(function(k){var q=r(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(Wf(),ig(function(k){return k?h.accessPolicyApi.checkComponentImplicitAccessEnabled(Number(k)):(0,U.of)(!1)}),Sf(function(k){if(403===k.status)return(0,U.of)(!0);h.errorHandler.errorHandler(null,k);return(0,U.of)(!1)}),fg({bufferSize:1,refCount:!1}));this.isImplicitAccessEnabled=function(){return!!Ik(h.isImplicitAccessEnabled$)};this.showImplicitAccessIndicator$=(0,U.combineLatest)([this.hasAclToEdit$,
this.isImplicitAccessEnabled$]).pipe(S(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.showImplicitAccessIndicator=function(){return!!Ik(h.showImplicitAccessIndicator$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=(0,U.combineLatest)([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(S(function(k){var q=r(k);k=q.next().value;q=q.next().value;return k&&q}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(Wf(),ig(function(k){return k?
gK(h.userAccess,"admin","components/"+k):(0,U.of)(!1)}),Sf(function(k){h.errorHandler.errorHandler(null,k);return(0,U.of)(!1)}),fg({bufferSize:1,refCount:!1}));this.userIsComponentAdmin=function(){return!!Ik(h.userIsComponentAdmin$)};this.accessLevel$=this.issueDetailsBrain.accessLevel$;this.accessLevel=function(){return Ik(h.accessLevel$)};this.isWithinExternalComponent$=this.accessLevel$.pipe(S(function(k){return!(!k||"INTERNAL"===k)}));this.audience$=this.isWithinExternalComponent$.pipe(S(function(k){return k?
2:1}));this.audience=function(){return Ik(h.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return Ik(h.canChangeCommentRetention$)}},YN=function(a,b){return 0===(null==b?void 0:b.search(a.currentUserEmailPattern))},SMb=function(a,b){return sn(b)&&"DELETED"===b.commentDeletionStatus?a.hasAclToAdmin()||Ol(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},TMb=function(a,b){return sn(b)&&"ACTIVE"===b.commentDeletionStatus?
Rl(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
ZN.prototype.canEditComment$=function(a){var b=this;return(0,U.combineLatest)([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(S(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return"ENABLED"===(null==c?void 0:c.commentEditState)&&"DELETED"!==a.commentDeletionStatus&&"PURGED"!==a.commentDeletionStatus&&a.commentNumber?1===a.commentNumber?e:d&&Rl(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
ZN.\u0275fac=function(a){return new (a||ZN)(t(XN),t(TL),t(yH),t(EL),t(xK),t(fK))};ZN.\u0275prov=lc({token:ZN,factory:ZN.\u0275fac,providedIn:"root"});
var $N=function(a,b,c,d){yI.call(this);var e=this;this.paramsService=a;this.issueFetchResponseFridge=b;this.pageTitle=c;this.issuePermissionService=d;this.handlers$=this.paramsService.routeParams$.pipe(Wf(Ei),ig(function(f){return f.issueId?UMb(e,f.issueId):(0,U.of)()}));this.init=function(){e.subscriptions.add(e.handlers$.subscribe(function(){}))};this.initOnce=Ita(this.init)};V($N,yI);$N.\u0275dir=yI.\u0275dir;
var UMb=function(a,b){return(0,U.combineLatest)([lL(a.issueFetchResponseFridge,b),a.issuePermissionService.accessLevel$]).pipe(hg([]),S(function(c){c=r(c);var d=c.next().value;c=c.next().value;var e;(d=null==(e=null==d?void 0:d.issue)?void 0:e.snapshot[0].title)?(e=d+" ["+b+"]",c&&(c=hua(c))&&(e=e+" - "+c),a.pageTitle.setTitle(e)):a.pageTitle.setTitle("View issue")}))};$N.\u0275fac=function(a){return new (a||$N)(t(gM),t(kL),t(WN),t(ZN))};$N.\u0275prov=lc({token:$N,factory:$N.\u0275fac,providedIn:"root"});
var aO=function(a){Z.call(this,a,-1,VMb)};V(aO,Z);aO.prototype.getIssueCommentsList=function(){return xb(this,YJ,1)};var VMb=[1];aO.prototype.toObject=function(){var a=null!=this?{issueCommentsList:Hb(this.getIssueCommentsList(),kIb)}:void 0;return a};aO.messageId="b.ListIssueCommentHistoryResponse";
var WMb=function(a){Z.call(this,a)};V(WMb,Z);g=WMb.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return fj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getComment=function(){return W(this,3)};g.setComment=function(a){l(this,3,a)};g.getFormattingMode=function(){return X(this,4,0)};g.setFormattingMode=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),comment:n(p(this,3)),formattingMode:n(p(this,4))}:void 0;return a};
var bO=function(){};bO.\u0275fac=function(a){return new (a||bO)};bO.\u0275prov=lc({token:bO,factory:bO.\u0275fac,providedIn:"root"});var cO=function(a){this.executor=a};V(cO,bO);g=cO.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(kqa(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:YJ}).then(csa)};
g.create=function(a,b,c,d){var e=new PJb;e.setIssueId(a);e.setComment(b);e.setFormattingMode(c);e.setContentJudgement(d);return this.executor.post({url:"action/issues/"+a+"/comment",body:e,responseConstructor:null})};g.update=function(a,b,c,d){var e=new WMb;e.setIssueId(a);e.setCommentNumber(b);e.setComment(c);e.setFormattingMode(d);return this.executor.post({url:"action/issues/"+a+"/updateComment",body:e,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){return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:{}},responseConstructor:YJ}).then(csa)};cO.\u0275fac=function(a){return new (a||cO)(t(qI))};cO.\u0275prov=lc({token:cO,factory:cO.\u0275fac,providedIn:"root"});
var dO=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(XMb(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(),
YMb(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);XMb(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();YMb(this);ZMb(this)};dO.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
dO.prototype.stop=function(){this.state=2;YMb(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 ZMb=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)}};
dO.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 YMb=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"},XMb=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};dO.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};
var $Mb=function(a){this.element=a;this.bugs=[]};$Mb.prototype.start=function(){for(var a=this,b=0;3>b;b++)aNb(this);this.intervalSubscription=(0,U.interval)(1E4).subscribe(function(){aNb(a);10<=a.bugs.length&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};$Mb.prototype.stop=function(){this.intervalSubscription&&this.intervalSubscription.unsubscribe();for(var a=r(this.bugs),b=a.next();!b.done;b=a.next())b.value.stop();this.bugs=[]};
var aNb=function(a){var b=new dO(a.element);b.start();a.bugs.push(b)};
var eO=function(a,b,c,d){var e=this;this.ngZone=a;this.userPreferencesManager=b;this.snackBar=c;this.destroyed$=new U.ReplaySubject(1);this.active$=new U.BehaviorSubject(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.bugAnimation=new $Mb(d.nativeElement);this.active$.pipe(jg(this.destroyed$),Wf()).subscribe(function(f){f?bNb(e):cNb(e)})};eO.prototype.ngOnInit=function(){"visible"===document.visibilityState&&dNb(this)};eO.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var dNb=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)},fO=function(a){var b=Date.now();b<a.lastTimeoutResetTimestamp+1E4||(a.lastTimeoutResetTimestamp=b,a.active$.next(!0),clearTimeout(a.timeoutId),dNb(a))},cNb=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()})},bNb=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})};eO.\u0275fac=function(a){return new (a||eO)(C(qg),C(VI),C(pK),C(wd))};
eO.\u0275cmp=w({type:eO,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&J("click",function(){return fO(b)},!1,zd)("keydown",function(){return fO(b)},!1,zd)("mousemove",function(){return fO(b)},!1,zd)("wheel",function(){return fO(b)},!1,zd)("touchstart",function(){return fO(b)},!1,zd)("focus",function(){return fO(b)},!1,zd)("visibilitychange",function(){fO(b);switch(document.visibilityState){case "hidden":clearTimeout(b.timeoutId),b.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}},
!1,qda)},decls:0,vars:0,template:function(){},encapsulation:2});
var gO=function(a,b){var c=b.isInternalSession();this.isEnabled$=a.bugScreensaverSubject$.pipe(S(function(d){return(d.enableBugScreensaver||!1)&&c}))};gO.\u0275fac=function(a){return new (a||gO)(C(VI),C(yH))};gO.\u0275cmp=w({type:gO,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(a,b){a&1&&(O(0,gxa,1,0,"bug-screensaver",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isEnabled$))},dependencies:[ux,eO,Fx],encapsulation:2});
var eNb=["button"],hO=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new Jw};hO.prototype.onClick=function(a){this.onAction.emit(a)};hO.prototype.focus=function(){this.nativeButton.focus()};hO.\u0275fac=function(a){return new (a||hO)};
hO.\u0275cmp=w({type:hO,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&Hf(eNb,5);if(a&2){var c;Gf(c=Jf())&&(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","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-flat-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchCase"],["type","button","mat-icon-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter",
"keydown.space",4,"ngSwitchCase"],["type","button","mat-stroked-button","","class","gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space",4,"ngSwitchDefault"],["type","button","mat-stroked-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["button",""],[4,"ngTemplateOutlet"],["type","button","mat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],
["type","button","mat-flat-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"],["type","button","mat-icon-button","",1,"gmat-button",3,"color","disabled","ngClass","matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(Ee(),O(0,hxa,1,0,"ng-template",null,0,Pf),ze(2,1),O(3,jxa,3,7,"button",2),O(4,lxa,3,7,"button",3),O(5,nxa,3,7,"button",4),O(6,pxa,3,7,"button",5),O(7,rxa,3,7,"button",6),Ae());a&2&&(B(2),D("ngSwitch",
b.format),B(1),D("ngSwitchCase","hairline"),B(1),D("ngSwitchCase","flat"),B(1),D("ngSwitchCase","fill"),B(1),D("ngSwitchCase","icon"))},dependencies:[rB,lF,xx,Ex,Ax,Bx,Cx],encapsulation:2,changeDetection:0});
var iO=function(){};iO.\u0275fac=function(a){return new (a||iO)};iO.\u0275mod=Cc({type:iO});iO.\u0275inj=mc({imports:[uG,mH,Mx]});
var jO=function(){};jO.\u0275fac=function(a){return new (a||jO)};jO.\u0275mod=Cc({type:jO});jO.\u0275inj=mc({imports:[Mx,pF]});
var kO=function(){};kO.\u0275fac=function(a){return new (a||kO)};kO.\u0275mod=Cc({type:kO});kO.\u0275inj=mc({imports:[Mx,nK,iO,jO]});
var lO=function(a){this.activeSession=a;var b;a=(null==(b=m(this.activeSession.session,vH,9))?void 0:m(b,uH,2))||new uH;this.announcement={messageId:W(a,2),message:a.getMessage(),dismissible:bj(a,3),tags:ob(a,4)}};lO.\u0275fac=function(a){return new (a||lO)(t(yH))};lO.\u0275prov=lc({token:lO,factory:lO.\u0275fac,providedIn:"root"});
var fNb={type:"g3n-connect-response",messageType:"query-state",mode:"none",version:""};
var gNb=function(){this.chromeApi=self.chrome};gNb.prototype.getState=function(){return this.post({type:"g3n-connect-request",messageType:"query-state"}).catch(function(){return fNb})};gNb.prototype.setMode=function(a){return"none"===a?Promise.reject():this.post({type:"g3n-connect-request",messageType:"enable-g3n-mode"}).then(function(){})};gNb.prototype.post=function(a){var b=this;return hNb(this,a,"mdkmkbpoljeogkhbjlehikpbpdmfaopg").catch(function(){return hNb(b,a,"dcdkpimnclfoiknojhlfjhinjmiclmeo")})};
var hNb=function(a,b,c){return new Promise(function(d,e){a.chromeApi.runtime.sendMessage(c,b,function(f){if("g3n-connect-response"===(null==f?void 0:f.type))d(f);else{var h;e(Error((null==(h=chrome.runtime.lastError)?void 0:h.message)||"Unrecognized response message"))}})})},iNb=new gNb;
var mO=function(a,b,c,d){yI.call(this);var e=this;this.activeSession=a;this.userPreferencesManager=b;this.announcements=c;this.analytics=d;this.shownAnalyticsTracked=!1;this.g3nInstalled$=new U.ReplaySubject(1);this.isEnabled$=(0,U.combineLatest)([this.g3nInstalled$,this.userPreferencesManager.g3nSubject$]).pipe(S(function(f){var h=r(f);f=h.next().value;h=h.next().value;return!f&&e.isEnabled(h)}));iNb.getState().then(function(f){e.g3nInstalled$.next("g3n"===f.mode)})};V(mO,yI);mO.\u0275dir=yI.\u0275dir;
mO.prototype.isEnabled=function(a){if(this.activeSession.isExternalSession()||!AH(this.activeSession,"enableG3nAnnouncement")||this.announcements.announcement.messageId||a.announcementDismissedMillis&&2592E6>Date.now()-a.announcementDismissedMillis)return!1;this.shownAnalyticsTracked||(this.shownAnalyticsTracked=!0,Zn(this.analytics,ao.G3N,"shown","announcement"));return!0};
mO.prototype.dismiss=function(){var a=this,b=Object.assign({},this.userPreferencesManager.g3nSubject$.value,{announcementDismissedMillis:Date.now()});this.userPreferencesManager.save({g3nPreferences:b}).pipe(jg(this.destroyed$)).subscribe(function(){Zn(a.analytics,ao.G3N,"dismiss","announcement")})};mO.\u0275fac=function(a){return new (a||mO)(C(yH),C(VI),C(lO),C(FM))};
mO.\u0275cmp=w({type:mO,selectors:[["g3n-announcement"]],features:[ie],decls:2,vars:3,consts:[["messageType","info","format","app",4,"ngIf"],["messageType","info","format","app"],["href","http://go/get-g3n","target","_blank",3,"click"],["mat-button","","format","flat",3,"click"]],template:function(a,b){a&1&&(O(0,sxa,9,0,"b-callout",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.isEnabled$))},dependencies:[ux,rB,jI,kI,Fx],encapsulation:2});
var nO=function(){};nO.\u0275fac=function(a){return new (a||nO)};nO.\u0275mod=Cc({type:nO});nO.\u0275inj=mc({imports:[Mx,uG,nK,jO]});
var oO=function(){};oO.\u0275fac=function(a){return new (a||oO)};oO.\u0275cmp=w({type:oO,selectors:[["b-ng2-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"router-outlet")},dependencies:[FI],encapsulation:2});
var pO=function(){};pO.\u0275fac=function(a){return new (a||pO)};pO.\u0275cmp=w({type:pO,selectors:[["b-router-outlet"]],decls:1,vars:0,template:function(a){a&1&&H(0,"b-ng2-router-outlet")},dependencies:[oO],encapsulation:2});
var qO=function(){};qO.\u0275fac=function(a){return new (a||qO)};qO.\u0275mod=Cc({type:qO});qO.\u0275inj=mc({imports:[Mx,QI]});
var rO=function(){};rO.\u0275fac=function(a){return new (a||rO)};rO.\u0275prov=lc({token:rO,factory:rO.\u0275fac,providedIn:"root"});var sO=function(a){this.executor=a};V(sO,rO);sO.\u0275fac=function(a){return new (a||sO)(t(pI))};sO.\u0275prov=lc({token:sO,factory:sO.\u0275fac,providedIn:"root"});
var jNb=new sd("mat-checkbox-default-options",{providedIn:"root",factory:txa});
var kNb=["input"],lNb=["label"],mNb=function(a){return{enterDuration:a}},nNb=0,oNb=txa(),pNb={provide:wx,useExisting:ic(function(){return tO}),multi:!0},qNb=function(){},rNb=ni(ki(li(mi(function(a){this._elementRef=a})))),uO=function(a,b,c,d,e,f,h){b=rNb.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 Jw;b.indeterminateChange=new Jw;b._onTouched=function(){};b._currentAnimationClass=
"";b._currentCheckState=0;b._controlValueAccessorChangeFn=function(){};b._checked=!1;b._disabled=!1;b._indeterminate=!1;b._options=b._options||oNb;b.color=b.defaultColor=b._options.color||oNb.color;b.tabIndex=parseInt(e)||0;b.id=b._uniqueId=a+ ++nNb;return b};V(uO,rNb);g=uO.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&&(0<this._currentAnimationClass.length&&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._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)};
ji.Object.defineProperties(uO.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=bh(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=bh(a);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},
set:function(a){a=bh(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=bh(a);b&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate));this._syncIndeterminate(this._indeterminate)}}});uO.\u0275fac=function(){Ad()};
uO.\u0275dir=w({type:uO,viewQuery:function(a,b){a&1&&(Hf(kNb,5),Hf(lNb,5),Hf(kB,5));if(a&2){var c;Gf(c=Jf())&&(b._inputElement=c.first);Gf(c=Jf())&&(b._labelElement=c.first);Gf(c=Jf())&&(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:[ie]});
var tO=function(a,b,c,d,e,f,h){a=uO.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};V(tO,uO);tO.\u0275dir=uO.\u0275dir;g=tO.prototype;g._createChangeEvent=function(a){var b=new qNb;b.source=this;b.checked=a;return b};g._getAnimationTargetElement=function(){return this._elementRef.nativeElement};g.ngAfterViewInit=function(){var a=this;uO.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();uO.prototype._handleInputClick.call(this)};g.focus=function(a,b){a?Iz(this._focusMonitor,this._inputElement,a,b):this._inputElement.nativeElement.focus(b)};tO.\u0275fac=function(a){return new (a||tO)(C(wd),C(nx),C(Hz),C(qg),fd("tabindex"),C(Xv,8),C(jNb,8))};
tO.\u0275cmp=w({type:tO,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(a,b){a&2&&(Ce("id",b.id),oe("tabindex",null)("aria-label",null)("aria-labelledby",null),te("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:[Me([pNb]),ie],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&&(Ee(),F(0,"label",0,1)(2,"span",2)(3,"input",3,4),J("change",
function(e){return b._onInteractionEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),F(5,"span",5),H(6,"span",6),G(),H(7,"span",7),F(8,"span",8),Uc(),F(9,"svg",9),H(10,"path",10),G(),Vc(),H(11,"span",11),G()(),F(12,"span",12,13),J("cdkObserveContent",function(){return b._onLabelTextChange()}),F(14,"span",14),P(15,"\u00a0"),G(),Fe(16),G()());if(a&2){var c=M(1),d=M(13);oe("for",b.inputId);B(2);te("mat-checkbox-inner-container-no-side-margin",!d.textContent||!d.textContent.trim());B(1);
D("id",b.inputId)("required",b.required)("checked",b.checked)("disabled",b.disabled)("tabIndex",b.tabIndex);oe("value",b.value)("name",b.name)("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby)("aria-checked",b._getAriaChecked())("aria-describedby",b.ariaDescribedby);B(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Oe(19,mNb,"NoopAnimations"===b._animationMode?0:150))}},dependencies:[kB,Nz],
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:transparent}.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:transparent;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:transparent}.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 vO=function(a,b){yI.call(this);this.dialogRef=a;this.tosApi=b;this.ackChecked=!1};V(vO,yI);vO.\u0275dir=yI.\u0275dir;vO.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(jg(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};vO.\u0275fac=function(a){return new (a||vO)(C(CB),C(rO))};
vO.\u0275cmp=w({type:vO,selectors:[["b-terms-of-service-dialog"]],features:[ie],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&&(F(0,"h1",0),P(1,"Google IssueTracker Terms of Service"),G(),F(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",
2),J("ngModelChange",function(c){return b.ackChecked=c}),G(),F(5,"span"),P(6," I acknowledge and agree to the "),F(7,"a",3),P(8,"Google Terms of Service"),G(),P(9," and the "),F(10,"a",4),P(11,"Google IssueTracker Conduct Policy"),G(),P(12,". "),G()()(),F(13,"mat-dialog-actions")(14,"button",5),J("click",function(){return b.accept()}),P(15," OK "),G()());a&2&&(B(4),D("ngModel",b.ackChecked),B(10),D("disabled",!b.ackChecked))},dependencies:[by,hy,rB,tO,RB,SB,TB],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});
var wO=function(a,b){yI.call(this);this.activeSession=a;this.matDialogService=b};V(wO,yI);wO.\u0275dir=yI.\u0275dir;wO.prototype.ngOnInit=function(){this.activeSession.mustAcknowledgeTerms&&DB(this.matDialogService.open(vO,{width:"400px",disableClose:!0})).pipe(jg(this.destroyed$))};wO.\u0275fac=function(a){return new (a||wO)(C(yH),C(PB))};wO.\u0275cmp=w({type:wO,selectors:[["b-terms-of-service"]],features:[ie],decls:0,vars:0,template:function(){},encapsulation:2});
var xO=function(){};xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275mod=Cc({type:xO});xO.\u0275inj=mc({});var yO=function(){};yO.\u0275fac=function(a){return new (a||yO)};yO.\u0275mod=Cc({type:yO});yO.\u0275inj=mc({imports:[oB,XA,Oz,xO,XA,xO]});
var zO=function(){};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275mod=Cc({type:zO});zO.\u0275inj=mc({imports:[wy,Mx,uG,yO,UB]});
var AO=function(){};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275mod=Cc({type:AO});AO.\u0275inj=mc({imports:[Mx,zO]});
var BO=function(a){this.transport=new vE(852);var b=this.streamzService=new Atb(this.transport);b.flushInterval=3E3;b.flushTimer.setInterval(3E3);this.pageLoadTime=new IAb(this.streamzService);this.userLatency=new KAb(this.streamzService);new JAb(this.streamzService);this.frontendAccessMode=a.frontendAccessMode;this.environmentType=a.getEnvironmentType()};BO.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType)};
var CO=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType)};BO.\u0275fac=function(a){return new (a||BO)(t(yH))};BO.\u0275prov=lc({token:BO,factory:BO.\u0275fac,providedIn:"root"});
var DO=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):console.log("stub clearcut:",{name:d,latency:c})))}},sNb=function(a){CM()&&(null!=a.observer&&a.observer.disconnect(),a.observer=new VKb.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
DO.\u0275fac=function(a){return new (a||DO)(t(BO))};DO.\u0275prov=lc({token:DO,factory:DO.\u0275fac,providedIn:"root"});
var EO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new U.BehaviorSubject(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=null!=window.localStorage.getItem("onedev-darkmode");tNb(b,b.localDarkmode);b.clientStreamzService&&xE(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")}};EO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(wE)};var tNb=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};EO.\u0275fac=function(a){return new (a||EO)(t(Iv))};EO.\u0275prov=lc({token:EO,factory:EO.\u0275fac});
var uNb=Et(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),vNb=Et(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),FO=function(a,b){this.dialogRef=a;this.darkmodeService=b;this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(S(function(c){return c?xh(uNb):xh(vNb)}))};FO.\u0275fac=function(a){return new (a||FO)(C(CB),C(EO))};
FO.\u0275cmp=w({type:FO,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&&(F(0,"div",0),O(1,uxa,2,3,"ng-container",1),Q(2,"async"),O(3,vxa,1,0,
"mat-spinner",2),G(),F(4,"div",3)(5,"button",4),J("click",function(){return b.dialogRef.close(!1)}),P(6," Cancel "),G(),F(7,"button",5),J("click",function(){return b.dialogRef.close(!0)}),P(8," File a new issue "),G()());a&2&&(B(1),D("ngIf",R(2,2,b.docUrl$)),B(2),D("ngIf",!b.contentLoaded))},dependencies:[ux,SB,TB,rB,$M,Fx],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 eo=function(a){Z.call(this,a)};V(eo,Z);g=eo.prototype;g.getEnableSsEngine=function(){return bj(this,2)};g.getEnableAwr=function(){return bj(this,3)};g.getEnableHelpSuggestions=function(){return bj(this,4)};g.getAlohaAutoGaRollout=function(){return bj(this,5)};g.getEnableConfigurator=function(){return bj(this,6)};g.getEnableMweb=function(){return bj(this,7)};g.getEnableCtlConsentCheckbox=function(){return bj(this,8)};g.getEnableIframe=function(){return bj(this,9)};g.toObject=function(){return wNb(this)};
var wNb=function(a){if(null!=a)return{alohaLaunch:bj(a,1),enableSsEngine:bj(a,2),enableAwr:bj(a,3),enableHelpSuggestions:bj(a,4),alohaAutoGaRollout:bj(a,5),enableConfigurator:bj(a,6),enableMweb:bj(a,7),enableCtlConsentCheckbox:bj(a,8),enableIframe:bj(a,9)}};
var co=function(a){Z.call(this,a)};V(co,Z);co.prototype.toObject=function(){var a=null!=this?{alohaFlags:wNb(m(this,eo,1))}:void 0;return a};
var Gxa=["https://sandbox.google.com/tools/feedback"];
var xxa="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 yxa=Et(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);
var Axa;
var xNb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||da,e=d.document,f=a.nonce||Arb(d);f&&!a.nonce&&(a.nonce=f);if("help"==a.flow){var h=Fo("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.serverUri||"//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||Ha(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=So(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);f=wh(d);Di(a,f);e.body.appendChild(a)}},yNb=function(a,b,c){try{"submit"===a.flow||"help"===a.flow||a.tinyNoPointer?xNb(a,b,c):Fxa(a.productId,a.serverUri).then(function(d){d=m(d,eo,1);if(null==d||!d.getAlohaAutoGaRollout()||Uib&&!d.getEnableMweb())xNb(a,b,c);else{var e=c||da,f="DEV"===a.serverEnvironment,h=c||da;h=a.nonce||
Arb(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.serverUri,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);Dxa(f,d,e)}},
function(d){d&&"DuplicateFormError"!==d.name&&xNb(a,b,c)})}catch(d){xNb(a,b,c)}};Vt("userfeedback.api.startFeedback",yNb);
var GO=function(a,b){this.activeSession=a;this.matDialog=b};GO.prototype.startFeedback=function(){var a=this;this.activeSession.isInternalSession()?DB(this.matDialog.open(FO,{width:"500px",maxHeight:"80vh",height:"640px",autoFocus:!1})).subscribe(function(b){b&&zNb(a)}):zNb(this)};
var zNb=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20220615.04_p0",bucket:"buganizer3-feedback"},c=[];dj(a.activeSession.getUserPreferences())&&c.push("didChooseNewIdp");var d=[];var e=d.concat;c=v(c);var f=[];a=Zi(a.activeSession.config,4);for(var h=r(a.keys()),k=h.next();!k.done;k=h.next())k=k.value,a.get(k)&&f.push(k);d={flags:e.call(d,c,[f]).join(", ")};yNb(b,d)};GO.\u0275fac=function(a){return new (a||GO)(t(yH),t(PB))};
GO.\u0275prov=lc({token:GO,factory:GO.\u0275fac,providedIn:"root"});
var HO=function(a){this.delegate_=a};HO.prototype.getDelegate=function(){return this.delegate_};
var ANb=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};V(ANb,HO);ANb.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=BNb(b,a.pop());return this.target_=b};ANb.prototype.getType=function(){return this.getDelegate().xa};
var CNb=function(a){this.delegate_=a};V(CNb,HO);g=CNb.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||da,new ANb(f,e))},c)};g.listenOnce=function(){throw Error("kd");};g.unlisten=function(){throw Error("kd");};g.unlistenByKey=function(){throw Error("kd");};g.dispatchEvent=function(){throw Error("kd");};g.removeAllListeners=function(){throw Error("kd");};g.getParentEventTarget=function(){throw Error("kd");};
g.fireListeners=function(){throw Error("kd");};g.getListener=function(){throw Error("kd");};g.hasListener=function(){throw Error("kd");};CNb.prototype[usb]=!0;
var IO=function(a){this.delegate_=a};V(IO,CNb);IO.prototype.getHeight=function(){return this.getDelegate().pa()};IO.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};IO.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};IO.prototype.getBackgroundColor=function(){return this.getDelegate().pn()};
var DNb=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};V(DNb,HO);DNb.prototype.then=function(a,b,c){var d;a&&(d=ENb(this,a));this.getDelegate().aa(d,b,c)};var ENb=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};
var JO=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};V(JO,HO);JO.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new DNb(this.getDelegate().bh()));return this.gapiPromise_};JO.getInstance=function(){if(JO.instance_&&JO.hasOwnProperty("instance_"))var a=JO.instance_;else a=new JO,JO.instance_=a;return a};
var KO=function(a,b){yI.call(this);this.router=a;this.window=b};V(KO,yI);KO.\u0275dir=yI.\u0275dir;KO.prototype.start=function(){var a=this;return(new Promise(function(b,c){var d=JO.getInstance();d.barPromise_||(d.barPromise_=new DNb(d.getDelegate().bf(),IO));d.barPromise_.then(b,c)})).then(function(b){FNb(a,b)})};var FNb=function(a,b){a.router.events.pipe(xf(function(c){return c instanceof ct}),jg(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
KO.\u0275fac=function(a){return new (a||KO)(t(Gk),t(jM))};KO.\u0275prov=lc({token:KO,factory:KO.\u0275fac,providedIn:"root"});
var LO=function(a){yI.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(jg(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};V(LO,yI);LO.\u0275dir=yI.\u0275dir;LO.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)};LO.\u0275fac=function(a){return new (a||LO)(t(TI))};
LO.\u0275prov=lc({token:LO,factory:LO.\u0275fac,providedIn:"root"});
var go={},Hxa=function(a,b){return a+b};
var MO=function(){};MO.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};MO.\u0275fac=function(a){return new (a||MO)};
MO.\u0275cmp=w({type:MO,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&&(F(0,"section",0)(1,"button",1),J("click",function(){return b.onPressBack()}),H(2,"mat-icon",2),G()())},dependencies:[rB,XE,lF],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var NO=function(){};NO.\u0275fac=function(a){return new (a||NO)};NO.\u0275cmp=w({type:NO,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(Ee(),F(0,"span",0),Fe(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 OO=function(a){this.elementRef=a;this.componentBlur=new Jw};OO.\u0275fac=function(a){return new (a||OO)(C(wd))};OO.\u0275dir=w({type:OO,selectors:[["","componentBlur",""]],hostBindings:function(a,b){a&1&&J("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 PO=function(a,b,c){yI.call(this);this.templateRef=a;this.viewContainer=b;this.cdr=c;this.viewContainer.createEmbeddedView(this.templateRef)};V(PO,yI);ji.Object.defineProperties(PO.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(jg(this.destroyed$)).subscribe(function(){b.viewContainer.clear();b.viewContainer.createEmbeddedView(b.templateRef);b.cdr.detectChanges()})}}});PO.\u0275fac=function(a){return new (a||PO)(C(Df),C(Ef),C(nx))};
PO.\u0275dir=w({type:PO,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[ie]});
var QO=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 Jw;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=lC(function(e){d.widthChanged.emit(e);d.events.sidebarWidthChanged.next(e)},400);this.trackKeyboardResizing=lC(function(){On(ao.SIDEBAR,"resizeKeyboard")},2E3)};QO.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
QO.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var GNb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=0>b?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};QO.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
QO.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)};
ji.Object.defineProperties(QO.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}}});QO.\u0275fac=function(a){return new (a||QO)(C(uI,2),C(BK),C(qg))};
QO.\u0275cmp=w({type:QO,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&we(b.direction)},inputs:{minWidth:"minWidth",disableToggleBtn:"disableToggleBtn",hideToggleBtnOnOpen:"hideToggleBtnOnOpen",direction:"direction",size:"size"},outputs:{widthChanged:"widthChanged"},features:[Me([uI])],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&&(Ee(),F(0,"div",0)(1,"div",1),Fe(2),G(),F(3,"div",2),J("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",
function(){return GNb(b,-10)})("keyup.arrowright",function(){return GNb(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),G()(),O(4,Kxa,2,6,"button",3));a&2&&(se("width",b.width+"px"),te("isDragging",b.isDragging)("isClosed",b.isClosed),D("ngClass",b.direction),B(1),se("width",b.lastOpenPosition+"px"),B(2),oe("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"),B(1),D("ngIf",!b.disableToggleBtn&&!(b.hideToggleBtnOnOpen&&
!b.isClosed)))},dependencies:[xx,ux,rB,XE,lF,sA],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 HNb=new sd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),INb=new sd("isScrolledOnScreen",{factory:function(){return{fully:Lxa,partially:Mxa}}}),RO=function(a,b){this.intersectionObserverBuilder=a;this.isScrolledOnScreen=b};RO.prototype.getObservable=function(a,b){b=void 0===b?!1:b;return null!=window.IntersectionObserver?Nxa(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):Oxa(a,this.isScrolledOnScreen,b)};
RO.\u0275fac=function(a){return new (a||RO)(t(HNb),t(INb))};RO.\u0275prov=lc({token:RO,factory:RO.\u0275fac,providedIn:"root"});
var SO=function(a){Z.call(this,a)};V(SO,Z);SO.prototype.getUrl=function(){return W(this,1)};SO.prototype.setUrl=function(a){return l(this,1,a)};SO.prototype.hasUrl=function(){return ej(this,1)};SO.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};SO.messageId="b.ImageRedirectRequest";
var TO=function(a){Z.call(this,a)};V(TO,Z);TO.prototype.getUrl=function(){return W(this,1)};TO.prototype.setUrl=function(a){return l(this,1,a)};TO.prototype.hasUrl=function(){return ej(this,1)};TO.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};TO.messageId="b.ImageRedirectResponse";
var UO=function(a){this.executor=a},JNb=function(a,b){var c=new SO;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:TO}).pipe(S(function(d){return d.getUrl()}))};UO.\u0275fac=function(a){return new (a||UO)(t(pI))};UO.\u0275prov=lc({token:UO,factory:UO.\u0275fac,providedIn:"root"});
var VO=function(a){var b=this;this.imageRedirector=a;this.src$=new U.BehaviorSubject("");this.showImage$=new U.BehaviorSubject(!1);this.error$=new U.BehaviorSubject(!1);this.srcTruncated$=this.src$.pipe(S(function(c){var d=c;d=void 0===d?"":d;var e=void 0===e?48:e;c=[].concat(v(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,U.combineLatest)([this.src$,this.showImage$]).pipe(xf(function(c){c=r(c);c.next();return c.next().value}),ig(function(c){c=r(c);var d=c.next().value;c.next();return JNb(b.imageRedirector,d).pipe(Sf(function(){b.error$.next(!0);return d}))}))};VO.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
ji.Object.defineProperties(VO.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}}});VO.\u0275fac=function(a){return new (a||VO)(C(UO))};
VO.\u0275cmp=w({type:VO,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&&(O(0,Txa,3,4,"ng-container",0),Q(1,"async"),O(2,Uxa,8,9,"ng-template",null,1,Pf),O(4,Vxa,2,3,"ng-template",null,
2,Pf));if(a&2){var c=M(5);D("ngIf",!1===R(1,2,b.error$))("ngIfElse",c)}},dependencies:[ux,XE,lF,NO,Fx],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 WO=function(){};WO.prototype.onClick=function(a,b){KNb(b)&&a.preventDefault()};var KNb=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};WO.\u0275fac=function(a){return new (a||WO)};WO.\u0275dir=w({type:WO,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&J("click",function(c){return b.onClick(c,c.target)})}});
[].concat(v(QMb),[QO,NO]);var XO=function(){};XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275mod=Cc({type:XO});XO.\u0275inj=mc({imports:[Mx,uG,pF,mH,wA,TN]});
var ZO=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka){yI.call(this);var Ca=this;this.bLocation=a;this.$route=b;this.timeout=c;this.activeSession=d;this.analytics=e;this.hotkeys=f;this.paths=h;this.userPrefs=k;this.issuePagination=q;this.userFeedback=I;this.announcements=N;this.ngZone=L;this.matDialogService=T;this.renderer=ha;this.showIdpDeprecationBanner=!1;this.announcement=this.dismissedMessageId=null;this.matSidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();this.sidebarDragSaver=
this.sidebarDragOffset=null;sNb(E);this.subscriptions.add(x.onClickAppMenuIcon.subscribe(function(){Ca.matSidebarWidth=185>Ca.matSidebarWidth?"open":0}));k.homepagePreferences$.pipe(jg(this.destroyed$)).subscribe(function(La){Y.homepagePreferences=La});this.densityClass="d-comfort";this.renderer.addClass(document.body,this.densityClass);this.userPrefs.themePreferences$.pipe(jg(this.destroyed$)).subscribe(function(La){La=bya(La.density);La!==Ca.densityClass&&(Ca.renderer.addClass(document.body,La),
Ca.renderer.removeClass(document.body,Ca.densityClass),Ca.densityClass=La)});this.subscriptions.add(KMb(u,function(La){Ca.doSearch(La)}));this.createIssuePath=h.createIssue();this.assignedPath=h.listIssues({q:GMb(d.getUserEmail())});this.ccdPath=h.listIssues({q:"cc:"+d.getUserEmail()});this.verifiedPath=h.listIssues({q:HMb(d.getUserEmail())});this.reportedPath=h.listIssues({q:"reporter:"+d.getUserEmail()});this.starredPath=h.listIssues({q:u.getStarred()});this.votedPath=h.listIssues({q:u.getVoted()});
this.subscriptions.add(cJ(this.hotkeys,{title:"General",hotkeys:[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var La=document.querySelector(".search-box-container .search-box");null==La||La.focus();null==La||La.select()}},{keys:[Pj("2"),Vna()],displayAs:"@ or Alt+Shift+f",description:"Send feedback",onPress:function(){return Ca.startFeedback()}},{keys:["c"],displayAs:"c",description:"Create issue",onPress:function(){a.url(Ca.createIssuePath)}},{keys:[Qj("g","a")],displayAs:"g then a",
description:'Go to "Assigned to me"',onPress:function(){a.url(Ca.assignedPath)}},{keys:[Qj("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.url(Ca.ccdPath)}},{keys:[Qj("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.url(Ca.reportedPath)}},{keys:[Qj("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.url(Ca.starredPath)}},{keys:[Qj("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',
onPress:function(){a.url(Ca.votedPath)}},{keys:[Qj("g","v")],displayAs:"g then v",description:'Go to "To be verified"',onPress:function(){a.url(Ca.verifiedPath)}},{keys:[],displayAs:"Ctrl+Enter",description:"Submit entered text (while focused)",onPress:function(){}},{keys:["<",">"],displayAs:"< / >",description:"Collapse/expand sidebar",onPress:function(La){if(0===La&&20<Ca.sidebarDragPosition||1===La&&!(20<Ca.sidebarDragPosition))20<Ca.sidebarDragPosition?YO(Ca,20,1):YO(Ca,Ca.lastOpenPosition,1);
Ca.matSidebarWidth=0===La?0:"open"}},{keys:["?",Una("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){Ca.matDialogService.open(fJ,{minWidth:512})}}]}));this.lastOpenPosition=this.sidebarDragPosition=220;this.announcements.announcement.tags.includes("JFK")||(this.announcement=this.announcements.announcement);this.userPrefs.preferences$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(La){Ca.dismissedMessageId=La.bannerMessageId||"";La=(La.layoutPreferences||
{}).leftSidebarWidth;Ca.matSidebarWidth=La||220;if(void 0===La)Ca.sidebarDragPosition=220;else if(90>La)Ca.sidebarDragPosition=20;else{if(220<La){var jb=LNb();La>jb&&(La=jb)}185>La&&(La=185);Ca.sidebarDragPosition=La}});(0,U.fromEvent)(document,"mouseup",{capture:!0}).pipe(jg(this.destroyed$)).subscribe(function(){Ca.sidebarDragOffset&&(Ca.sidebarDragOffset=null,YO(Ca,Ca.sidebarDragPosition,1))});(0,U.fromEvent)(Y,"resize").pipe(jg(this.destroyed$)).subscribe(function(){if(220<Ca.sidebarDragPosition){var La=
LNb();Ca.sidebarDragPosition>La&&YO(Ca,La,3E3)}});this.ngZone.runOutsideAngular(function(){(0,U.fromEvent)(document,"mousemove").pipe(jg(Ca.destroyed$)).subscribe(function(La){if(Ca.sidebarDragOffset){La=La.pageX-Ca.sidebarDragOffset;if(90>La)La=20;else if(185>La)La=185;else{var jb=LNb();La>jb&&(La=jb)}YO(Ca,La,0)}})});ra.start();CM()&&(null!=XKb&&XKb.disconnect(),XKb=new Qn.PerformanceObserver(YKb),XKb.observe({entryTypes:["measure"]}));setTimeout(Jxa,6E4);Fa.start();Ka.initOnce();Y.emergencyBugjugglerWorkaround=
{session:d,issueComments:ja}};V(ZO,yI);ZO.\u0275dir=yI.\u0275dir;ZO.prototype.startDragging=function(a){this.sidebarDragOffset=a.pageX-this.sidebarDragPosition;a.preventDefault()};ZO.prototype.isDragging=function(){return null!==this.sidebarDragOffset};
var LNb=function(){var a=window.innerWidth;return 1075<=a?a-855:220},$xa=function(a,b){a.userPrefs.layoutPreferences$.pipe(ig(function(c){return a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})})).pipe(Xf(),jg(a.destroyed$)).subscribe()},YO=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(){$xa(a,20===a.sidebarDragPosition?
0:a.sidebarDragPosition);a.sidebarDragSaver=null},c).catch(function(){}))};ZO.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=SIb(this.paths,a);KM(this.issuePagination);b&&this.$route.reload();this.bLocation.url(a);Zn(this.analytics,"search","default-context")};var Wxa=function(a){null!==a.announcement&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(Xf(),jg(a.destroyed$)).subscribe())};
ZO.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return hf(function(e){if(1==e.nextAddress)return c=b.userPrefs.newIssueDetailsPagePreferencesSubject$.value,jf(e,(0,U.firstValueFrom)(b.userPrefs.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";Zn(b.analytics,"prefs","change",d);window.location.reload();kf(e)})};ZO.prototype.startFeedback=function(){this.userFeedback.startFeedback()};
ZO.\u0275fac=function(a){return new (a||ZO)(C(FK),C(CLb),C(nI),C(yH),C(FM),C(bJ),C(GK),C(VI),C(IM),C(EN),C(BK),C(DO),C(GO),C(lO),C(qg),C(PB),C(jM),C(bO),C(Nv),C(KO),C(LO),C($N))};
ZO.\u0275cmp=w({type:ZO,selectors:[["app-root"]],features:[ie],decls:11,vars:3,consts:[["class","bv2-announce-bar",4,"ngIf"],["messageType","caution","format","app",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"],["messageType","caution","format","app"],["href","https://groups.google.com/a/google.com/g/buganizer-announce/c/lu-X-YckEGo","target","_blank"],["href","",3,"click"],["mat-flat-button","",3,"click"],["mat-icon-button","","aria-label","Dismiss the message",3,"click"],["svgIcon","close",1,"icon-s"],["id","main-app-nav",3,"size","disableToggleBtn","widthChanged"]],template:function(a,b){a&
1&&(H(0,"b-hiring-banner")(1,"b-terms-of-service"),O(2,Yxa,4,2,"div",0),H(3,"g3n-announcement"),O(4,Zxa,16,0,"b-callout",1),H(5,"b-sso-expired-callout-outlet"),F(6,"div",2),O(7,aya,2,2,"b-resizable-sidebar",3),F(8,"div",4),H(9,"b-router-outlet"),G()(),H(10,"bug-screensaver-manager"));a&2&&(B(2),D("ngIf",b.announcement&&(b.announcement&&b.announcement.message?b.announcement.dismissible?null===b.dismissedMessageId?!1:b.announcement.messageId!==b.dismissedMessageId:!0:!1)),B(2),D("ngIf",b.showIdpDeprecationBanner),
B(3),D("ngIf",!b.isAnonymous))},dependencies:function(){return[ux,pO,QO,HN,wO,vI,gO,mO,jI,kI,rB,XE,lI]},encapsulation:2});var $O=function(){};$O.\u0275fac=function(a){return new (a||$O)};$O.\u0275mod=Cc({type:$O});$O.\u0275inj=mc({imports:[Mx,qO,XO,VN,AO,wI,kO,nO,jO,uG,pF,gJ]});
var aP=function(a){Z.call(this,a)};V(aP,Z);aP.prototype.getUrl=function(){return W(this,1)};aP.prototype.setUrl=function(a){return l(this,1,a)};aP.prototype.hasUrl=function(){return ej(this,1)};aP.prototype.toObject=function(){var a=null!=this?{url:n(p(this,1))}:void 0;return a};aP.messageId="b.AttachmentUrlResponse";
var bP=function(a){this.executor=a};bP.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(kqa(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:aP}).then(function(f){return f.getUrl()})};bP.\u0275fac=function(a){return new (a||bP)(t(qI))};bP.\u0275prov=lc({token:bP,factory:bP.\u0275fac,providedIn:"root"});
var cP=function(a,b,c){this.templateRef=b;this.viewContainer=c;this.isInternal="INTERNAL"===a.frontendAccessMode};cP.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};cP.\u0275fac=function(a){return new (a||cP)(C(yH),C(Df),C(Ef))};cP.\u0275dir=w({type:cP,selectors:[["","internalOnly",""]]});
var dP=function(a){this.session=a;this.baseDocumentationUrl=a.getDocumentationBaseUrl()},yo=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},eP=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/wtdm-home":""},MNb=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":
yo(a)},Bdb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/external-access":"http://go/buganizer-external-access"},NNb=function(a){return a.session.isExternalSession()?a.baseDocumentationUrl+"/concepts/public-access":"http://go/buganizer-public-access"},ONb=function(a){return NNb(a)+"#recommended-access-settings"},c7a=function(a){return yo(a)+"#expanded-access-on-components"},o_a=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},
PNb=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"},qt=function(){return"http://go/buganizer-retention"};dP.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 Heb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};dP.prototype.getDisablingFieldsHelpLink=function(){return Heb()+"#hiding-inherited-fields"};var QNb=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};dP.\u0275fac=function(a){return new (a||dP)(t(yH))};dP.\u0275prov=lc({token:dP,factory:dP.\u0275fac,providedIn:"root"});
var fP=function(a){this.window=a};fP.prototype.openInNewTab=function(a){a=vh(a);this.window.open(mh(a),"_blank",void 0)};var gP=function(a,b){b=vh(b);a.window.open(mh(b),void 0,void 0)},hP=function(a,b){b=vh(b);a.window.location.href=mh(b)};fP.\u0275fac=function(a){return new (a||fP)(t(jM))};fP.\u0275prov=lc({token:fP,factory:fP.\u0275fac,providedIn:"root"});
var iP=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};iP.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
iP.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;dya(this)?(this.hasViewAccess=!1,gK(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)};iP.prototype.getPiiSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var dya=function(a){return(a=a.getPiiSeverity())?"NONE_DETECTED"!==a:!1},RNb=function(a){var b=a.download&&Oma(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getPiiSeverity()).then(function(c){b?hP(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){uK(a.butterBar,"Failed to load attachment. Please refresh and try again.");a.close()})};iP.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
iP.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};iP.\u0275fac=function(a){return new (a||iP)(C(NB),C(CB),C(fK),C(bP),C(sK),C(fP),C(dP),C(uI,2))};
iP.\u0275cmp=w({type:iP,selectors:[["b-attachment-download-dialog"]],features:[Me([uI])],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&&(F(0,"h1",0),P(1,"Access Attachment"),G(),F(2,"div",1)(3,"div",2),P(4," Are you sure you would like to access the following attachment? "),G(),H(5,"br"),F(6,"div",3)(7,"div",4),H(8,"mat-icon",5),G(),F(9,"div",6),P(10),G()(),H(11,"br"),O(12,eya,2,1,"ng-container",
7),O(13,fya,3,0,"div",8),G(),O(14,gya,1,0,"mat-spinner",9),F(15,"div",10)(16,"button",11),J("click",function(){return b.close()}),P(17," Cancel "),G(),F(18,"button",12),J("click",function(){return RNb(b)}),P(19," Continue "),G()());a&2&&(B(10),Je(" ",b.attachment.filename," "),B(3),D("ngIf",!b.isLoading&&!b.hasViewAccess),B(1),D("ngIf",b.isLoading),B(4),D("disabled",!b.hasViewAccess))},dependencies:[ux,RB,SB,TB,rB,XE,$M,cP],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 jP=function(){};jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275mod=Cc({type:jP});jP.\u0275inj=mc({imports:[Mx]});
var SNb=Object.assign({},new KB,{backdropClass:"gmat-dialog-backdrop",panelClass:"gmat-dialog-panel",hasBackdrop:!0}),kP=function(){};kP.\u0275fac=function(a){return new (a||kP)};kP.\u0275mod=Cc({type:kP});kP.\u0275inj=mc({providers:[{provide:Zqb,useValue:SNb}],imports:[UB,UB]});
var lP=function(){};lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275mod=Cc({type:lP});lP.\u0275inj=mc({imports:[Mx,kP,uG,UB,pF,LN,iO,cI,jP]});
var mP=function(a,b){var c=this;this.executor=a;this.activeSession=b;this.memoized=new rKb(function(d){var e;a:{if(e=m(c.activeSession.session,vH,9)){e=r(xb(e,tH,1));for(var f=e.next();!f.done;f=e.next())if(f=f.value,d===f.getId()){e=hya(f);break a}}e=void 0}return e?(0,U.of)(e):c.executor.get({url:"action/timezone/"+encodeURIComponent(d),responseConstructor:tH}).pipe(S(hya))},10)};mP.prototype.get=function(a){return this.memoized.get(a)};mP.\u0275fac=function(a){return new (a||mP)(t(pI),t(yH))};
mP.\u0275prov=lc({token:mP,factory:mP.\u0275fac,providedIn:"root"});
var TNb={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"}}},nP=TNb;nP=TNb;
var UNb={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 VNb={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"},oP=VNb;oP=VNb;
var pP=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_=oP.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)};
pP.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=WNb(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,u=!0;b[0]<q&&u;b[0]++)switch(a.charAt(b[0])){case "#":0<f?h++:e++;0<=k&&0>d&&k++;break;case "0":if(0<h)throw Error("ud`"+a);f++;0<=k&&0>d&&k++;break;case ",":0<k&&this.groupingArray_.push(k);k=0;break;case ".":if(0<=d)throw Error("vd`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("wd`"+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("xd`"+a);u=!1;break;default:b[0]--,u=!1}0==f&&0<e&&0<=d&&(f=d,0==f&&f++,h=e-f,e=f-1,f=1);if(0>d&&0<h||0<=d&&(d<e||d>e+f)||0==k)throw Error("yd`"+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_=WNb(this,a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.multiplier_&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=WNb(this,a,b),b[0]+=c,
this.negativeSuffix_=WNb(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
pP.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(oP.DECIMAL_PATTERN);break;case 2:this.applyPattern_(oP.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(oP.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=oP.CURRENCY_PATTERN;var c=["0"],d=UNb[oP.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:XNb(this,1);break;case 6:XNb(this,2);break;default:throw Error("od");
}};var XNb=function(a,b){a.compactStyle_=b;a.applyPattern_(oP.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(0<a.minimumFractionDigits_)throw Error("md");a.significantDigits_=2};
pP.prototype.parse=function(a,b){b=b||[0];if(0!==this.compactStyle_)throw Error("pd");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(oP.INFINITY,b[0])==b[0]){b[0]+=oP.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,u=1,x=oP.DECIMAL_SEP,E=oP.GROUP_SEP,I=oP.EXP_SYMBOL;if(0!=this.compactStyle_)throw Error("qd");E=E.replace(/\u202f/g,"\u00a0");for(var N="";b[0]<e.length;b[0]++){var L=e.charAt(b[0]),T=YNb(L);if(0<=T&&9>=T)N+=T,k=!0;else if(L==x.charAt(0)){if(f||h)break;N+=".";f=!0}else if(L==E.charAt(0)&&("\u00a0"!=E.charAt(0)||b[0]+1<e.length&&0<=YNb(e.charAt(b[0]+1)))){if(f||h)break}else if(L==I.charAt(0)){if(h)break;N+="E";h=!0;q=b[0]}else if("+"==L||"-"==L){if(k&&q!=b[0]-1)break;N+=
L}else if(1==this.multiplier_&&L==oP.PERCENT.charAt(0)){if(1!=u)break;u=100;if(k){b[0]++;break}}else if(1==this.multiplier_&&L==oP.PERMILL.charAt(0)){if(1!=u)break;u=1E3;if(k){b[0]++;break}}else break}1!=this.multiplier_&&(u=this.multiplier_);e=parseFloat(N)/u}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?-e:e};
pP.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("rd");if(isNaN(a))return oP.NAN;var b=[];var c=a;if(0==this.compactStyle_)c=qP;else{c=Math.abs(c);var d=ZNb(this,1>=c?0:$Nb(c)).divisorBase;c=ZNb(this,d+$Nb(aOb(this,rP(c,-d)).intValue))}a=rP(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)bOb(this,e,this.minimumIntegerDigits_,b),cOb(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=rP(e,-f);var h=this.minimumIntegerDigits_;1<this.maximumIntegerDigits_&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,0>h&&(h=this.maximumIntegerDigits_+h),e=rP(e,h),f-=h,h=1):1>this.minimumIntegerDigits_?(f++,e=rP(e,-1)):(f-=this.minimumIntegerDigits_-1,e=rP(e,this.minimumIntegerDigits_-
1));bOb(this,e,h,b);cOb(this,f,b)}}else bOb(this,a,this.minimumIntegerDigits_,b);else b.push(oP.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 aOb=function(a,b){var c=rP(b,a.maximumFractionDigits_);0<a.significantDigits_&&(c=dOb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);isFinite(c)?(b=Math.floor(rP(c,-a.maximumFractionDigits_)),a=Math.floor(c-rP(b,a.maximumFractionDigits_))):a=0;return{intValue:b,fracValue:a}},bOb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("rd");d||(d=[]);b=aOb(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(rP(q,-1));k=q+k;var u=oP.DECIMAL_SEP;q=oP.ZERO_DIGIT.charCodeAt(0);var x=k.length,E=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++)E+=a.groupingArray_[c];c=x-E;if(0<c){e=a.groupingArray_;E=x=0;for(var I,N=oP.GROUP_SEP,L=k.length,T=0;T<L;T++)if(d.push(String.fromCharCode(q+Number(k.charAt(T)))),1<L-T)if(I=e[E],T<c){var Y=c-T;(1===I||0<I&&1===
Y%I)&&d.push(N)}else E<e.length&&(T===c?E+=1:I===T-c-x+1&&(d.push(N),x+=I,E+=1))}else{c=k;k=a.groupingArray_;e=oP.GROUP_SEP;I=c.length;N=[];for(x=k.length-1;0<=x&&0<I;x--){E=k[x];for(L=0;L<E&&0<=I-L-1;L++)N.push(String.fromCharCode(q+Number(c.charAt(I-L-1))));I-=E;0<I&&N.push(e)}d.push.apply(d,N.reverse())}}else h||d.push(String.fromCharCode(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(u);f=String(f);h=f.split("e+");2==h.length&&(f=String(dOb(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",
""),f+=nC("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+nC("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))))},cOb=function(a,b,c){c.push(oP.EXP_SYMBOL);0>b?(b=-b,c.push(oP.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(oP.PLUS_SIGN);b=""+b;for(var d=oP.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);c.push(b)},YNb=function(a){a=a.charCodeAt(0);if(48<=
a&&58>a)return a-48;var b=oP.ZERO_DIGIT.charCodeAt(0);return b<=a&&a<b+10?a-b:-1},WNb=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+=oP.DEF_CURRENCY_CODE):(h=oP.DEF_CURRENCY_CODE,d+=h in UNb?UNb[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&1!=
a.multiplier_)throw Error("sd");if(a.negativePercentSignExpected_&&100!=a.multiplier_)throw Error("td");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=oP.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&1!=a.multiplier_)throw Error("sd");if(a.negativePercentSignExpected_&&1E3!=a.multiplier_)throw Error("td");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=oP.PERMILL;break;default:d+=h}}return d},qP={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},
ZNb=function(a,b){a=1==a.compactStyle_?nP.COMPACT_DECIMAL_SHORT_PATTERN:nP.COMPACT_DECIMAL_LONG_PATTERN;null==a&&(a=nP.COMPACT_DECIMAL_SHORT_PATTERN);if(3>b)return qP;b=Math.min(14,b);var c=a[rP(1,b)];for(--b;!c&&3<=b;)c=a[rP(1,b)],b--;if(!c)return qP;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]}:qP:qP},$Nb=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b},rP=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))},eOb=function(a,b){return a&&isFinite(a)?rP(Math.round(rP(a,b)),-b):a},dOb=function(a,b,c){if(!a)return a;b=b-$Nb(a)-1;return b<-c?eOb(a,-c):eOb(a,b)};
var fOb=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"},gOb=fOb;gOb=fOb;
var hOb=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"},iOb=hOb;iOb=hOb;
var sP=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=oP;var b=nP;if(jOb!==a||kOb!==b)jOb=a,kOb=b,lOb=new pP;this.numberFormatter_=lOb},jOb=null,kOb=null,lOb=null,mOb=RegExp("'([{}#].*?)'","g"),nOb=RegExp("''","g");sP.prototype.format=function(a){return this.format_(a,!1)};
sP.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=oOb(this,this.pattern_);this.parsedPattern_=pOb(this,c);this.pattern_=null}if(!this.parsedPattern_||0==this.parsedPattern_.length)return"";this.literals_=Da(this.initialLiterals_);c=[];qOb(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 qOb=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value,k=a,q=e,u=c[h];void 0===u?q.push("Undefined parameter - "+h):(k.literals_.push(u),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;u=d;var x=e,E=h.argumentIndex;void 0===q[E]?x.push("Undefined parameter - "+E):(E=h[q[E]],void 0===E&&(E=h.other),qOb(k,E,q,u,x));break;case 0:h=b[f].value;rOb(a,h,c,iOb,d,e);break;case 1:h=b[f].value,rOb(a,h,c,gOb,
d,e)}},rOb=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=[],qOb(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},oOb=function(a,b){var c=a.initialLiterals_,d=St(a.buildPlaceholder_,a);b=b.replace(nOb,function(){c.push("'");return d(c)});return b=b.replace(mOb,function(e,f){c.push(f);return d(c)})},
sOb=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},tOb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,uOb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,vOb=/^\s*(\w+)\s*,\s*select\s*,/,pOb=function(a,b){var c=[];b=sOb(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(tOb.test(f)?0:uOb.test(f)?1:vOb.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=wOb(a,b[d].value);break;case 0:e.type=0;e.value=xOb(a,b[d].value);break;case 1:e.type=1;e.value=yOb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},wOb=function(a,b){var c="";b=b.replace(vOb,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=sOb(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h;1==b[e].type&&(h=pOb(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},xOb=function(a,b){var c="",d=0;b=b.replace(tOb,function(q,u,x){c=u;x&&(d=parseInt(x,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=sOb(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k;1==b[f].type&&(k=pOb(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},yOb=function(a,b){var c="";b=b.replace(uOb,function(k,q){c=q;return""});var d={};d.argumentIndex=
c;d.argumentOffset=0;b=sOb(b);for(var e=0;e<b.length;){var f=b[e].value;e++;if(1==b[e].type)var h=pOb(a,b[e].value);d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};sP.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};
var AOb=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=vC(b),f=vC(c),h=vC(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=zOb("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=zOb("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=zOb("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+a+c+k+d},zOb=function(a,b,c){return(new sP(a)).format({COUNT:b,TEXT:c})};
var tP=function(a,b,c,d,e){yI.call(this);var f=this;this.errorHandler=e;this.formatPrefChange$=new U.Subject;this.userTimeZone_=null;this.timeZones_={};this.cachedFormatters=a.get("bv2-date-format-formatters")||a.create("bv2-date-format-formatters",{capacity:25});this.userPrefs=xH.dateTimePreferences;Promise.all(d.supportedTimeZones.map(function(h){if(""===h.id)return Promise.resolve({name:"",timeZone:null});var k=c.get(h.id).pipe(jg(f.destroyed$));return(0,U.firstValueFrom)(k).then(function(q){return{name:h.name,
timeZone:q}})})).then(function(h){h=r(h);for(var k=h.next();!k.done;k=h.next())k=k.value,f.timeZones_[k.name]=k.timeZone;b.preferences$.pipe(jg(f.destroyed$)).subscribe(function(q){q.dateTimePreferences&&(q=q.dateTimePreferences,f.userPrefs=q,f.userTimeZone_=f.timeZones_[q.timeZone],f.formatPrefChange$.next())})}).catch(function(h){f.errorHandler.errorHandler(null,h)})};V(tP,yI);tP.\u0275dir=yI.\u0275dir;
tP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new si(a),this.cachedFormatters.put(a,d));return b?d.format(c,b):d.format(c)};var BOb=function(a,b){return a.formatPrefChange$.subscribe(b)};tP.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone_,a)};tP.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone_,a)};
tP.\u0275fac=function(a){return new (a||tP)(t(PK),t(VI),t(mP),t(ZH),t(xK))};tP.\u0275prov=lc({token:tP,factory:tP.\u0275fac,providedIn:"root"});
var uP=function(a,b){var c=this;this.userPreferencesManager=a;this.timeZonesApi=b;this.cachedFormatters=new OK(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(S(function(d){return d.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(S(function(d){return d.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(ig(function(d){return d.timeZone?c.timeZonesApi.get(d.timeZone):(0,U.of)(void 0)}))};
uP.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);void 0===d&&(d=new si(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};uP.prototype.formatUserCalendar=function(a){var b=this;return(0,U.combineLatest)([this.userCalendarFormat$,this.userTimeZone$]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
uP.prototype.formatUserTime=function(a){var b=this;return(0,U.combineLatest)([this.userTimeFormat$,this.userTimeZone$]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var COb=function(a,b){return(0,U.combineLatest)([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(S(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return a.format(c+" "+e,d,b)}))},DOb=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(S(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):(0,U.of)(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},NZa=function(a){var b=void 0,c=!0;b=void 0===b?0:b;c=void 0===c?!1:c;var d=new Ji;b&&d.setTime(b);b=new Ji;
b.setTime(a);if(b.getTime()<d.getTime())return"Expired";a=12*(b.getFullYear()-d.getFullYear())+(b.getMonth()-d.getMonth());var e=b.getDate()-d.getDate();0>e&&(a--,d=d.clone(),d.add(new io("m",a)),e=Math.floor((b.getTime()-d.getTime())/864E5));d=new io(Math.floor(a/12),a%12,e);if(1<=d.years)return b=1<d.years?"s":"",0===d.months&&0===d.days?c?d.years+" year"+b:d.years+"Y":c?d.years+" year"+b+" +":d.years+"Y+";if(1<=d.months)return b=1<d.months?"s":"",0===d.days?c?d.months+" month"+b:d.months+"M":c?
d.months+" month"+b+" +":d.months+"M+";b=1<d.days?"s":"";return c?d.days+" day"+b:d.days+"D"};uP.\u0275fac=function(a){return new (a||uP)(t(VI),t(mP))};uP.\u0275prov=lc({token:uP,factory:uP.\u0275fac,providedIn:"root"});
var EOb,FOb,GOb=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],HOb=Symbol("zd"),IOb=Symbol("zd"),vP=function(a){var b=this;this.dateFormatter=a;this.timestampMs$=new U.ReplaySubject(1);this.timestampIso$=this.timestampMs$.pipe(S(function(c){return c?(new Date(c)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(S(function(c){if(void 0!==c)return new Date(c)}));this[EOb]=this.timestampDate$.pipe(ig(function(c){if(void 0===c)return(0,U.of)("");switch(b.mode){case "date":return b.dateFormatter.formatUserCalendar(c);
case "time":return b.dateFormatter.formatUserTime(c);case "datetime":return COb(b.dateFormatter,c);default:return sh(b.mode)}}));this[FOb]=this.timestampDate$.pipe(ig(function(c){return void 0===c?(0,U.of)(""):(0,U.combineLatest)(GOb.map(function(d){return DOb(b.dateFormatter,c,d.id).pipe(S(function(e){return{formatted:e,tzName:d.name}}))})).pipe(JOb)}));this.vars$=(0,U.combineLatest)([this[HOb],this[IOb]]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return{formatted:c,title:d}}))};
vP.prototype.ngOnInit=function(){};ji.Object.defineProperties(vP.prototype,{timestamp:{configurable:!0,enumerable:!0,set:function(a){var b=this.timestampMs$,c=b.next;b:{if(null!=a){if("number"===typeof a)break b;if("string"===typeof a){a=Date.parse(a);break b}if(a instanceof tj){a=1E3*a.getSeconds();break b}}a=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())}}});EOb=HOb;FOb=IOb;
vP.\u0275fac=function(a){return new (a||vP)(C(uP))};vP.\u0275cmp=w({type:vP,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"title"]],template:function(a,b){a&1&&(O(0,jya,4,5,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[ux,Fx],encapsulation:2,changeDetection:0});
var JOb=(0,U.pipe)(S(function(a){var b=new Map;a=r(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 KOb=function(a,b,c,d){Cy.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new U.Subject;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};By(this)};V(KOb,Cy);var wP=function(a,b,c){this.checker=a;this.ngZone=b;this.document=c};wP.prototype.create=function(a){return new KOb(a,this.checker,this.ngZone,this.document)};wP.\u0275fac=function(a){return new (a||wP)(t(zy),t(qg),t(hi))};
wP.\u0275prov=lc({token:wP,factory:wP.\u0275fac,providedIn:"root"});
var LOb=["content"],xP=function(a){yI.call(this);this.focusEscapeNotifierFactory=a;this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.dateChange=new Jw;this.cancelClicked=new Jw;this.saveClicked=new Jw;this.dateSelectionChange=new Jw;this.focusEscaped=new Jw};V(xP,yI);xP.\u0275dir=yI.\u0275dir;
xP.prototype.ngAfterViewInit=function(){var a=this;kya(this);setTimeout(function(){kya(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(jg(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(0===b){var c;null==(c=a.focusEscapeNotifier)||lob(c)}else{var d;null==(d=a.focusEscapeNotifier)||Ay(d)}else a.focusEscaped.emit(b)})};
var kya=function(a){var b;if(b=a.date){var c=new sC;c.setTime(b.getTime());b=c}else b=void 0;b&&(a.calendar.activeDate=b);a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};xP.\u0275fac=function(a){return new (a||xP)(C(wP))};
xP.\u0275cmp=w({type:xP,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(Hf(BB,7),Hf(LOb,7));if(a&2){var c;Gf(c=Jf())&&(b.calendar=c.first);Gf(c=Jf())&&(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:[ie],decls:10,vars:5,consts:[["content",""],[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"],[1,"b-optional-calendar-button-row"],["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&&(F(0,"div",null,0)(2,"mat-calendar",1),J("selectedChange",function(c){b.date=c;b.dateSelectionChange.emit(c)}),G(),F(3,"div",2),O(4,nya,4,2,"div",3),F(5,"div",4)(6,"button",5),J("click",function(){return b.cancelClicked.emit()}),P(7,"Cancel"),G(),F(8,"button",6),J("click",function(){b.dateChange.emit(b.date);return b.saveClicked.emit()}),P(9,"Save"),G()()()());a&2&&(te("container",b.renderPanel),B(2),D("selected",b.date)("startAt",b.date),B(2),D("ngIf",b.todayButtonEnabled||b.noneButtonEnabled))},
dependencies:[ux,rB,BB,$H],styles:[".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 MOb=[{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"}],yP=function(a,b,c,d){yI.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 Jw;this.dateSelectionChange=new Jw;
this.onClose=new Jw;this.opened=!1;this.destroyed$.subscribe(function(){var f;null==(f=e.overlayRef)||f.dispose()})};V(yP,yI);g=yP.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 MA(xP),c;this.pickerContent=null==(c=this.overlayRef)?void 0:c.attach(b).instance;var d;null==(d=this.overlayRef)||d.updatePosition();setTimeout(function(){NOb(a)})};
g.getPositionStrategy=function(){return CA(DA(EA(KA(this.overlay.position(),this.element)),8),MOb)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
var NOb=function(a){if(a.pickerContent&&a.overlayRef){var b=(0,U.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(jg(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});a.pickerContent.dateChange.pipe(jg(b)).subscribe(function(c){a.selectedChange.emit(c)});a.pickerContent.dateSelectionChange.pipe(jg(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});
(0,U.merge)(a.pickerContent.saveClicked,a.pickerContent.cancelClicked,a.overlayRef.backdropClick(),a.overlayRef.keydownEvents().pipe(xf(function(c){return"Escape"===c.code}))).pipe(jg(b)).subscribe(function(){a.close()})}};yP.\u0275fac=function(a){return new (a||yP)(C(TA),C(wd),C(qg),C(wd))};
yP.\u0275dir=w({type:yP,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&J("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&&(Ay(b.pickerContent.focusEscapeNotifier),c.preventDefault())})("keydown.shift.tab",
function(c){b.focusTrapHost&&b.pickerContent&&b.pickerContent.focusEscapeNotifier&&(lob(b.pickerContent.focusEscapeNotifier),c.preventDefault())});a&2&&oe("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:[ie]});
var OOb=["pickerToggle"],zP=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new Jw;this.destroyed$=new U.ReplaySubject};zP.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};zP.\u0275fac=function(a){return new (a||zP)};
zP.\u0275cmp=w({type:zP,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&Hf(OOb,7);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"button",0,1),J("bDateTimePickerToggleSelectedChange",function(c){b.value=c;b.valueChange.emit(c)}),O(2,oya,1,1,"b-formatted-date-time",2),O(3,pya,2,0,"ng-container",3),G());a&2&&(D("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),oe("aria-labelledby",b.customAriaLabelledBy),B(2),D("ngIf",b.value),B(1),D("ngIf",!b.value))},dependencies:[yP,vP,rB,ux],styles:["\n/*# sourceMappingURL=date_time_input.css.map */"]});
mi(li(function(){}));li(function(){});new sd("MatList");new sd("MatNavList");var AP=function(){};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275dir=w({type:AP,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var BP=function(){};BP.\u0275fac=function(a){return new (a||BP)};BP.\u0275dir=w({type:BP,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});
var POb=["text"],QOb=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],ROb=li(function(){}),SOb=li(function(){}),TOb={provide:wx,useExisting:ic(function(){return CP}),multi:!0},UOb=function(a,b){this.source=a;this.options=b},DP=function(a,b,c){var d=SOb.call(this)||this;d._element=a;d._changeDetector=b;d.selectionList=c;d._selected=!1;d._disabled=!1;d._hasFocus=!1;d.selectedChange=new Jw;d.checkboxPosition="after";d._inputsInitialized=!1;return d};
V(DP,SOb);g=DP.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(){Xka(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()};
ji.Object.defineProperties(DP.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=bh(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=bh(a);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}}});DP.\u0275fac=function(a){return new (a||DP)(C(wd),C(nx),C(ic(function(){return CP})))};
DP.\u0275cmp=w({type:DP,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(If(c,AP,5),If(c,BP,5),If(c,gB,5));if(a&2){var d;Gf(d=Jf())&&(b._avatar=d.first);Gf(d=Jf())&&(b._icon=d.first);Gf(d=Jf())&&(b._lines=d)}},viewQuery:function(a,b){a&1&&Hf(POb,5);if(a&2){var c;Gf(c=Jf())&&(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&&J("focus",function(){return b._handleFocus()})("blur",function(){return b._handleBlur()})("click",
function(){return b._handleClick()});a&2&&(oe("aria-selected",b.selected)("aria-disabled",b.disabled)("tabindex",-1),te("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:[ie],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&&(Ee(QOb),F(0,"div",0),H(1,"div",1),O(2,qya,1,2,"mat-pseudo-checkbox",
2),F(3,"div",3,4),Fe(5),G(),Fe(6,1),G());a&2&&(te("mat-list-item-content-reverse","after"==b.checkboxPosition),B(1),D("matRippleTrigger",b._getHostElement())("matRippleDisabled",b._isRippleDisabled()),B(1),D("ngIf",b.selectionList.multiple))},dependencies:[kB,lB,ux],encapsulation:2,changeDetection:0});
var CP=function(a,b,c){var d=ROb.call(this)||this;d._element=a;d._changeDetector=b;d._focusMonitor=c;d._multiple=!0;d._contentInitialized=!1;d.selectionChange=new Jw;d.color="accent";d.compareWith=function(e,f){return e===f};d._disabled=!1;d.selectedOptions=new tA(d._multiple);d._tabIndex=-1;d._onChange=function(){};d._destroyed=new U.Subject;d._onTouched=function(){};return d};V(CP,ROb);g=CP.prototype;
g.ngAfterContentInit=function(){var a=this;this._contentInitialized=!0;this._keyManager=bqb(aqb(aA($z(Xz(new fA(this.options)))),function(){return!1}));this._value&&this._setOptionsFromValues(this._value);this._keyManager.tabOut.pipe(jg(this._destroyed)).subscribe(function(){a._allowFocusEscape()});this.options.changes.pipe(hg(null),jg(this._destroyed)).subscribe(function(){a._updateTabIndex()});this.selectedOptions.changed.pipe(jg(this._destroyed)).subscribe(function(b){if(b.added)for(var c=r(b.added),
d=c.next();!d.done;d=c.next())d.value.selected=!0;if(b.removed)for(b=r(b.removed),d=b.next();!d.done;d=b.next())d.value.selected=!1});this._focusMonitor.monitor(this._element).pipe(jg(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(){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){bA(this._keyManager,a)};
g._removeOptionFromList=function(a){a=this._getOptionIndex(a);-1<a&&this._keyManager.activeItemIndex===a&&(0<a?bA(this._keyManager,a-1):0===a&&1<this.options.length&&bA(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=fi(a);switch(b){case 32:case 13:e||0<c._pressedLetters.length||(this._toggleFocusedOption(),a.preventDefault());break;default:if(65!==b||!this.multiple||!fi(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 UOb(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};
ji.Object.defineProperties(CP.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=bh(a);this._markOptionsForCheck()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=bh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new tA(this._multiple,this.selectedOptions.selected))}}});CP.\u0275fac=function(a){return new (a||CP)(C(wd),C(nx),C(Hz))};
CP.\u0275cmp=w({type:CP,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&If(c,DP,5);if(a&2){var d;Gf(d=Jf())&&(b.options=d)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._keydown(c)});a&2&&oe("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:[Me([TOb]),ie,Jc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ee(),Fe(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:transparent;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:transparent}.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:transparent;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:transparent;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 EP=function(){};EP.\u0275fac=function(a){return new (a||EP)};EP.\u0275mod=Cc({type:EP});EP.\u0275inj=mc({imports:[hB,oB,XA,pB,Mx,hB,XA,pB,eI]});
var VOb=["filterInput"],FP=function(a){yI.call(this);this.dateFormatter=a;this.enumChoices=[];this.onSave=new Jw;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};V(FP,yI);FP.\u0275dir=yI.\u0275dir;g=FP.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(ig(function(){return(0,U.timer)(0)}),jg(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){xi(this.trigger)};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;null==(a=this.filterElement)||a.nativeElement.focus()};var WOb=function(a){return a.filterValue&&"REPEATED_DATE"!==a.type?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
FP.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),XOb(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};FP.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})};
FP.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=r(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);XOb(this)};
var XOb=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)})},sya=function(a){return!!a.filterValue&&"REPEATED_ENUM"!==a.type&&"REPEATED_DATE"!==a.type};FP.prototype.getDisplayString=function(a){return"REPEATED_DATE"===this.type?this.dateFormatter.formatUserCalendar(Li(a)):a};FP.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
FP.\u0275fac=function(a){return new (a||FP)(C(tP))};
FP.\u0275cmp=w({type:FP,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(Hf(eF,5),Hf(VOb,5));if(a&2){var c;Gf(c=Jf())&&(b.trigger=c.first);Gf(c=Jf())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[ie,Jc],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&&(F(0,"button",0)(1,"span"),P(2),G(),H(3,"b-icon",1),G(),F(4,"mat-menu",null,2),O(6,rya,3,4,"div",3),H(7,"mat-divider"),F(8,"div",4),O(9,tya,2,3,"input",5),G(),O(10,uya,1,0,"mat-divider",6),O(11,vya,2,0,"div",7),O(12,wya,4,1,"div",6),G());if(a&2){var c=M(5);D("matMenuTriggerFor",c);B(2);Ke(b.getLabel());B(4);D("ngForOf",WOb(b));B(3);D("ngIf","REPEATED_DATE"!==
b.type);B(1);D("ngIf",sya(b));B(1);D("ngIf",sya(b));B(1);D("ngIf","REPEATED_DATE"===b.type)}},dependencies:[yx,ux,bF,$E,eF,$H,BH,rB,tO,Qg,by,hy,zP],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}\n/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});
var GP=function(){this.relayOnly=!1;this.keydown$=new U.Subject};GP.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};ji.Object.defineProperties(GP.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});GP.\u0275fac=function(a){return new (a||GP)};
GP.\u0275dir=w({type:GP,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b.onKeydown(c)});a&2&&oe("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"}});
var YOb=0,HP=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+YOb;this.closePanel$=new U.ReplaySubject(1);YOb++};HP.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;("Escape"===b||a.altKey&&"ArrowUp"===b)&&this.closePanel$.next()};HP.\u0275fac=function(a){return new (a||HP)(C(GP,8))};
HP.\u0275cmp=w({type:HP,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&Hf(Df,7);if(a&2){var c;Gf(c=Jf())&&(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&&(Ee(),O(0,xya,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 IP=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 Jw;this.closed=new Jw;this.isOpen=!1;this.destroyed$=new U.ReplaySubject(1);this.closingActionsSubscription=U.Subscription.EMPTY};IP.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
IP.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new NA(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=ZOb(this).pipe(jg(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
IP.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()}};IP.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 ZOb=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?(0,U.merge)(b,c,d):(0,U.merge)(c,d)};IP.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),mob(this.focusTrap))};
IP.prototype.getPositionStrategy=function(){return CA(DA(EA(KA(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"}])};IP.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
ji.Object.defineProperties(IP.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});IP.\u0275fac=function(a){return new (a||IP)(C(TA),C(wd),C(Ef),C(Vz))};
IP.\u0275dir=w({type:IP,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&oe("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 $Ob=0,JP=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+$Ob;$Ob+=1};JP.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};JP.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};JP.\u0275fac=function(a){return new (a||JP)(C(nx))};
JP.\u0275dir=w({type:JP,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Ce("id",b.id),te("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"]});var KP=function(){};KP.\u0275fac=function(a){return new (a||KP)};KP.\u0275mod=Cc({type:KP});KP.\u0275inj=mc({});
var zya=function(){return{$implicit:void 0}},Cya=function(a){return{$implicit:a}},LP=function(a){this.includeEmptyOption=this.disabled=!1;this.valueChange=new Jw;this.selected=new Jw;this.destroyed$=new U.ReplaySubject(1);a&&this.handleKeydown(a.keydown$)};g=LP.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=Yz(new eA(this.viewOptions))};g.ngOnChanges=function(a){a.value&&aPb(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 aPb=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)}};LP.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
LP.prototype.handleKeydown=function(a){var b=this;a.pipe(jg(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?cA(b.keyManager):dA(b.keyManager)):"Enter"!==d&&"Space"!==d||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};LP.\u0275fac=function(a){return new (a||LP)(C(GP,8))};
LP.\u0275cmp=w({type:LP,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&Hf(JP,5);if(a&2){var c;Gf(c=Jf())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&J("focus",function(){return aPb(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,oe("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:[Jc],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&&(O(0,Aya,2,5,"div",0),O(1,Eya,2,1,"ng-container",1),O(2,Kya,3,2,"ng-template",null,2,Pf));a&2&&(D("ngIf",b.includeEmptyOption),B(1),D("ngForOf",b.options))},dependencies:[yx,ux,Ex,JP],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 MP=function(){};
var bPb=["trigger"],Mya=function(a){return{$implicit:a}},cPb=0,NP=function(a){this.includeEmptyOption=this.disabled=!1;this.label="";this.valueChange=new Jw;this.displayArrowIcon=!0;this.focused=this.required=this.openPopupOnInit=!1;this.contentId="onedev-single-select-"+cPb;this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0;cPb++};V(NP,MP);g=NP.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 dPb=function(a){var b="";a.label&&(b+=a.label+", ");a.required&&(b+="required, ");return b};NP.prototype.setDisabledState=function(a){this.disabled=a};ji.Object.defineProperties(NP.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});NP.\u0275fac=function(a){return new (a||NP)(fd("required"))};
NP.\u0275cmp=w({type:NP,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&Hf(bPb,7);if(a&2){var c;Gf(c=Jf())&&(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:[Me([{provide:wx,useExisting:ic(function(){return NP}),
multi:!0},{provide:MP,useExisting:ic(function(){return NP}),multi:!0}]),ie],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=y();F(0,"button",0,1);J("focus",function(){return b.focused=!0})("blur",function(){return b.focused=!1})("click",
function(){z(c);var f=M(1);return A(f.open())})("closed",function(){b.onTouched()});F(2,"span",2);P(3);G();O(4,Nya,2,4,"ng-container",3);O(5,Qya,1,2,"ng-template",null,4,Pf);O(7,Tya,3,2,"ng-template",null,5,Pf);O(9,Uya,2,0,"svg",6);G();F(10,"onedev-popup-panel",7,8)(12,"onedev-selectable-list",9);J("valueChange",function(f){return b.onSelectionChange(f)})("selected",function(){z(c);var f=M(1);return A(f.close())});G()()}if(a&2){var d=M(6),e=M(11);te("active",b.isActive());D("onedevPopupPanelTriggerDisabled",
b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",e);oe("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);Ke(dPb(b));B(1);D("ngIf",b.valueTemplate)("ngIfElse",d);B(5);D("ngIf",b.displayArrowIcon);B(1);D("relayOnly",!0);B(2);D("value",b.value)("includeEmptyOption",b.includeEmptyOption)("options",b.options)("optionTemplate",b.optionTemplate)("label",b.label)}},dependencies:[ux,Ex,GP,LP,HP,IP],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);-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 aza=function(){return[]},OP=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=OP.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=r(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=r(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(Ki(h),e[h]||void 0)}f=r(b);for(h=f.next();!h.done;h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;var q=d[h],u=e[h],x=void 0,E=null==(x=q)?void 0:x.type;if(q)if("REPEATED_DATE"===E||"REPEATED_ENUM"===E||"REPEATED_NUMERIC"===E||"REPEATED_TEXT"===
E){k=this.repeatedCustomFieldsMap.get(h)||new Map;q=0===k.size;u=ePb(u);x=Array.from(k.keys()).concat(u);x=r(x);for(E=x.next();!E.done;E=x.next())E=E.value,u.includes(E)?k.has(E)||k.set(E,q||null):k.set(E,null);this.repeatedCustomFieldsMap.set(h,k)}else(!u&&void 0!==k||u&&!Ei(u,k))&&b.set(h,null);else b.delete(h)}d=r(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),Fi(f))}this.customFields=Array.from(b.keys()).map(function(I){return a.get(I)}).filter(function(I){return I});
this.customFields=this.customFields.map(function(I){var N=b.get(I.customFieldId);I.hasMultipleValues=null===N;N?I=Object.assign(N,I):I.hasMultipleValues||"ENUM"!==I.type||(I.enumValue="");return I});c=r(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Fi(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 lo=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},ePb=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()}):[]},Zya=function(a){return a?Ok(a):null},cza=function(a,b,c){for(var d=r(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=r(a.issues);for(var f=e.next();!f.done;d={$jscomp$loop$prop$issueValues$1681:d.$jscomp$loop$prop$issueValues$1681,$jscomp$loop$prop$action$1682:d.$jscomp$loop$prop$action$1682},f=e.next()){f=f.value;var h=nja(f.customFieldValueMap,function(x){return x.customFieldId===b});d.$jscomp$loop$prop$issueValues$1681=ePb(h);c.valueMap.forEach(function(x){return function(E,I){E&&!x.$jscomp$loop$prop$issueValues$1681.includes(I)?
x.$jscomp$loop$prop$issueValues$1681.push(I):!1===E&&(x.$jscomp$loop$prop$issueValues$1681=x.$jscomp$loop$prop$issueValues$1681.filter(function(N){return N!==I}))}}(d));h=a.originalCustomFields.get(b).type;var k=[],q=[];"REPEATED_DATE"==h?k=d.$jscomp$loop$prop$issueValues$1681.map(function(x){return Qk(Li(x))}):"REPEATED_NUMERIC"==h&&(q=d.$jscomp$loop$prop$issueValues$1681.map(function(x){return Number(x)}));var u=new jl({customFieldId:b});switch(h){case "REPEATED_TEXT":u.repeatedTextValue={values:d.$jscomp$loop$prop$issueValues$1681};
break;case "REPEATED_DATE":u.repeatedDateValue={values:k};break;case "REPEATED_ENUM":u.repeatedEnumValue={values:d.$jscomp$loop$prop$issueValues$1681};break;case "REPEATED_NUMERIC":u.repeatedNumericValue={values:q}}d.$jscomp$loop$prop$action$1682={fieldName:"customField",customFieldValue:u,actionType:u.isEmpty()?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(x){return function(E){return E.actions.some(function(I){return Ei(x.$jscomp$loop$prop$action$1682,I)})}}(d));-1!==h?a.bulkEditOps[h].issueIds.push(f.issueId):
a.bulkEditOps.push({actions:[d.$jscomp$loop$prop$action$1682],issueIds:[f.issueId]})}}},fPb=function(a){var b=a.customFields.filter(function(h){return!h.type.includes("REPEATED")&&!Ei(h,a.originalCustomFields.get(h.customFieldId))}),c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=new jl({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,Ea(f)&&Ea(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})}};
OP.\u0275fac=function(a){return new (a||OP)(C(NB),C(CB))};
OP.\u0275cmp=w({type:OP,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&&(F(0,"h2",0),P(1,"Update custom fields"),G(),F(2,"mat-dialog-content"),O(3,Vya,2,0,"div",1),O(4,gza,8,6,"div",2),G(),F(5,"mat-dialog-actions")(6,"button",3),J("class",function(){return b.dialogRef.close()}),P(7,"Cancel"),G(),F(8,"button",4),J("click",
function(){fPb(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),P(9," Save "),G()());a&2&&(B(3),D("ngIf",0===b.customFields.length),B(1),D("ngForOf",b.customFields))},dependencies:[yx,ux,Ax,Bx,Cx,QB,RB,SB,TB,NP,FP,Qg,jy,by,hy,zP,rB,lF],encapsulation:2});
var PP=function(){};PP.\u0275fac=function(a){return new (a||PP)};PP.\u0275mod=Cc({type:PP});PP.\u0275inj=mc({imports:[Mx]});
var QP=function(){};QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275mod=Cc({type:QP});QP.\u0275inj=mc({imports:[Mx,pF,uG,lH,eI,Qz]});
var gPb=function(a){this.patternParts_=[];this.dateTimeSymbols_=iC;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
gPb.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};gPb.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)};
gPb.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>"ahHkKm".indexOf(f.text.charAt(0))||2<f.count||f.abutStart))throw Error("Ad`"+f.text.charAt(0));}f=new hPb;c=[0];f.dayPeriodIndex=null;for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(0==this.patternParts_[h].count){a:{var k=a;var q=this.patternParts_[h],u=d;if(" "==q.text.charAt(0)){if(q=c[0],iPb(k,
c),c[0]>q){k=!0;break a}}else{if(k.indexOf(q.text,c[0])==c[0]){c[0]+=q.text.length;k=!0;break a}if(u&&0==q.text.indexOf(k.substring(c[0]))){c[0]+=k.length-c[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;u=h;var x=c[0],E=0;for(k=u;k<this.patternParts_.length;k++){var I=this.patternParts_[k],N=I.count;if(0===N)break;if(k==u&&(N-=E,E++,0==N)){k=0;break a}var L=k>u&&I.numeric,T=c[0];if(!jPb(this,q,c,I,N,f,!1)||L&&c[0]-T<N)k=u-1,c[0]=x}k-=u}if(0>=k)return 0;h+=
k-1}else if(!jPb(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=e;if(null==b)throw Error("Bd");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=Jrb(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 jPb=function(a,b,c,d,e,f,h){iPb(b,c);if(d.numeric&&0<e&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return RP(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return kPb(a,b,c,e,d,f);case "E":return RP(b,c,[a.dateTimeSymbols_.WEEKDAYS,a.dateTimeSymbols_.SHORTWEEKDAYS],function(k){return f.dayOfWeek=k});case "B":case "b":return a=[[].concat(a.dateTimeSymbols_.AMPMS)],b=RP(b,c,a,function(k){return f.dayPeriodIndex=k},h),f.dayPeriodName=null,h?b:!0;case "a":return b=
RP(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},h),h?b:!0;case "y":return lPb(a,b,c,d,e,f);case "Q":return RP(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=3*k;f.day=1});case "d":return SP(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return mPb(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=SP(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=SP(a,b,c,d,e,function(k){f.minutes=k},h),h?b:!0;
case "s":return SP(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return nPb(a,b,c,f);default:return!1}},lPb=function(a,b,c,d,e,f){var h=c[0];e=TP(a,b,c,e);null===e&&(e=TP(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},kPb=function(a,b,c,d,e,f){return e.numeric&&SP(a,b,c,e,d,function(h){f.month=h-1})?!0:RP(b,c,[a.dateTimeSymbols_.MONTHS,
a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},mPb=function(a,b,c,d,e){var f=c[0];a=TP(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},nPb=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=TP(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=
TP(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},SP=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=TP(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},RP=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,u=0,x=null,E=a.substring(f[0]).toLowerCase(),I=0;I<k.length;I++){var N=k[I].toLowerCase();if(q&&0==N.indexOf(E)){u=E.length;x=I;break}k[I].length>
u&&0==E.indexOf(N)&&(u=k[I].length,x=I)}null!==x&&(f[0]+=u);f=x;if(null!==f)return d(f),!0}return!1},iPb=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&(b[0]+=a[0].length)},TP=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)},hPb=function(){};hPb.prototype.ambiguousYear=!1;
var oPb=Array(31).fill(0).map(function(a,b){return""+(b+1)}),UP=function(){var a=YA.apply(this,arguments)||this;a.locale=iC;return a};V(UP,YA);g=UP.prototype;g.setLocale=function(){throw Error("Cd");};g.getYear=function(a){return a.getYear()};g.getMonth=function(a){return a.getMonth()};g.getDate=function(a){return a.getDate()};g.getDayOfWeek=function(a){return a.getDay()};g.getMonthNames=function(a){switch(a){case "long":return this.locale.MONTHS;case "narrow":return this.locale.NARROWMONTHS;default:return this.locale.SHORTMONTHS}};
g.getDateNames=function(){return oPb};g.getDayOfWeekNames=function(a){switch(a){case "long":return this.locale.WEEKDAYS;case "narrow":return this.locale.NARROWWEEKDAYS;default:return this.locale.SHORTWEEKDAYS}};g.getYearName=function(a){return""+a.getFullYear()};g.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};g.getNumDaysInMonth=function(a){return Jrb(a.getFullYear(),a.getMonth())};g.clone=function(a){return a.clone()};g.createDate=function(a,b,c){return new sC(a,b,c)};
g.today=function(){return new sC};g.parse=function(a,b){if(""===a)return null;b=new gPb(b);var c=new sC(new Date(a));b.parse(a,c);return c};g.format=function(a,b){if(!this.isValid(a))throw Error("Dd");return(new si(b)).format(a)};g.addCalendarYears=function(a,b){a=a.clone();a.add(new io(b));return a};g.addCalendarMonths=function(a,b){a=a.clone();a.add(new io(0,b));return a};g.addCalendarDays=function(a,b){a=a.clone();a.add(new io(0,0,b));return a};g.isDateInstance=function(a){return a instanceof sC};
g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new sC(NaN)};g.sameDate=function(a,b){return a&&b?(new Ji(a)).equals(b):!1};UP.\u0275fac=function(){var a;return function(b){return(a||(a=md(UP)))(b||UP)}}();UP.\u0275prov=lc({token:UP,factory:UP.\u0275fac});
var pPb={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"},VP=pPb;VP=pPb;
var WP=iC.DATEFORMATS[3];WP=WP.replace(/yyyy/,"yy").replace(/yy/,"yyyy");"M/d/yyyy"===WP&&(WP="MM/dd/yyyy");var qPb={parse:{dateInput:WP},display:{dateInput:WP,monthYearLabel:VP.YEAR_MONTH_ABBR,dateA11yLabel:VP.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:VP.YEAR_MONTH_FULL}};
var XP=function(){};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275mod=Cc({type:XP});XP.\u0275inj=mc({providers:[{provide:YA,useClass:UP},{provide:bB,useValue:qPb}],imports:[QP,PP,pF,uG,Mx]});
var YP=function(){};YP.\u0275fac=function(a){return new (a||YP)};YP.\u0275mod=Cc({type:YP});YP.\u0275inj=mc({imports:[Mx,fF,eI,EP,dI,uG,hC,yO,wy,XP]});
var ZP=function(){};ZP.\u0275fac=function(a){return new (a||ZP)};ZP.\u0275mod=Cc({type:ZP});ZP.\u0275inj=mc({imports:[Mx]});
var $P=function(){};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275mod=Cc({type:$P});$P.\u0275inj=mc({imports:[Mx,WA,SA,uG,mH,Qz,cN]});
var aQ=function(){};aQ.\u0275fac=function(a){return new (a||aQ)};aQ.\u0275mod=Cc({type:aQ});aQ.\u0275inj=mc({imports:[Mx,uG,KP]});
var bQ=function(){};bQ.\u0275fac=function(a){return new (a||bQ)};bQ.\u0275mod=Cc({type:bQ});bQ.\u0275inj=mc({imports:[Mx,pF,uG,wy,ZP,aQ,$P]});
var cQ=function(){};cQ.\u0275fac=function(a){return new (a||cQ)};cQ.\u0275mod=Cc({type:cQ});cQ.\u0275inj=mc({imports:[Mx,UB,bQ,YP,wy,XP,uG,mH]});
var rPb=new sd("GMAT_CHECKBOX_OPTION");
var sPb=new Map([["primary","mat-primary"],["accent","mat-accent"],["warn","mat-warn"]]),dQ=function(a,b){this.elementRef=a;this.gmatCheckboxOption=b;this.color="primary";this.hasGmatAttribute=a.nativeElement.hasAttribute("gmat-checkbox")};dQ.prototype.ngOnInit=function(){this.isEnabled()&&(this.elementRef.nativeElement.classList.remove.apply(this.elementRef.nativeElement.classList,v(sPb.values())),this.elementRef.nativeElement.classList.add(sPb.get(this.color)))};
dQ.prototype.isEnabled=function(){return this.gmatCheckboxOption?this.hasGmatAttribute||this.gmatCheckboxOption.enabled:this.hasGmatAttribute};dQ.\u0275fac=function(a){return new (a||dQ)(C(wd),C(rPb,8))};dQ.\u0275dir=w({type:dQ,selectors:[["mat-checkbox","gmat-checkbox",""],["mat-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&te("gmat-checkbox",b.isEnabled())},inputs:{color:"color"}});
var eQ=function(){};eQ.\u0275fac=function(a){return new (a||eQ)};eQ.\u0275mod=Cc({type:eQ});eQ.\u0275inj=mc({});
var fQ=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 Jw;this.click=new Jw;this.labelClick=new Jw};fQ.prototype.onClick=function(a){this.click.emit(a)};fQ.\u0275fac=function(a){return new (a||fQ)};
fQ.\u0275cmp=w({type:fQ,selectors:[["b-checkbox"]],hostVars:2,hostBindings:function(a,b){a&2&&te("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&&(F(0,"mat-checkbox",0),J("click",function(c){return b.onClick(c)})("change",function(c){b.checked=c.checked;b.change.emit(c.checked)}),F(1,"span",1),J("click",function(c){b.labelClick.emit(c)}),P(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),B(2),Ke(b.label))},
dependencies:[dQ,tO,lF],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 gQ=function(){};gQ.\u0275fac=function(a){return new (a||gQ)};
gQ.\u0275mod=Cc({type:gQ});gQ.\u0275inj=mc({imports:[eQ,yO,mH]});
var hQ=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new Jw;this.clickHandler=function(c){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}};hQ.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};hQ.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};hQ.\u0275fac=function(a){return new (a||hQ)(C(wd))};
hQ.\u0275dir=w({type:hQ,selectors:[["","clickOutside",""]],inputs:{eventType:["clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var iQ=function(){};iQ.\u0275fac=function(a){return new (a||iQ)};iQ.\u0275mod=Cc({type:iQ});iQ.\u0275inj=mc({});
var jQ=function(a){this.codefont$=a.codeFont$};jQ.\u0275fac=function(a){return new (a||jQ)(t(VI))};jQ.\u0275prov=lc({token:jQ,factory:jQ.\u0275fac,providedIn:"root"});
var tPb=function(a){return["chip","gmat-caption",a]},kQ=function(){this.variant="grey";this.isTall=!1};kQ.\u0275fac=function(a){return new (a||kQ)};
kQ.\u0275cmp=w({type:kQ,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&te("tall",b.isTall)},inputs:{variant:"variant",isTall:"isTall"},ngContentSelectors:["*"],decls:3,vars:3,consts:[[3,"ngClass"],[1,"centering"]],template:function(a,b){a&1&&(Ee(),F(0,"div",0)(1,"div",1),Fe(2),G()());a&2&&D("ngClass",Oe(1,tPb,b.variant))},dependencies:[xx],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)}"],
changeDetection:0});var lQ=function(a){this.chip=a};lQ.\u0275fac=function(a){return new (a||lQ)(C(kQ))};lQ.\u0275dir=w({type:lQ,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&se("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 mQ=function(){};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275cmp=w({type:mQ,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&oe("aria-hidden",!0)},attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&P(0,"\u00a0\u00b7\u00a0")},encapsulation:2});
var uPb=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],vPb=function(a){return{"with-avatar":a}},nQ=function(){};nQ.prototype.ngOnInit=function(){};nQ.\u0275fac=function(a){return new (a||nQ)};
nQ.\u0275cmp=w({type:nQ,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&&(Ee(uPb),F(0,"div",0)(1,"div",1)(2,"div",2),O(3,hza,1,2,"img",3),F(4,"div",4),P(5),G(),O(6,iza,2,1,"div",5),G(),O(7,jza,4,1,"div",6),F(8,"div",7),O(9,nza,7,3,"ng-container",8),O(10,oza,4,1,"ng-container",8),O(11,pza,19,4,"ng-container",8),Fe(12),G()(),Fe(13,1),G());a&2&&(B(2),D("ngClass",Oe(8,vPb,b.person.imageUrl)),B(1),D("ngIf",b.person.imageUrl),B(2),Je(" ",b.person.name||b.person.email," "),B(1),D("ngIf",b.person.name),B(1),D("ngIf",b.outOfOfficeDescription),B(2),D("ngIf",b.person.title||
b.person.department),B(1),D("ngIf",b.person.location),B(1),D("ngIf",b.person.ldap))},dependencies:[kQ,lQ,xx,ux,mQ,XE],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:12px 0 0}.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 wPb=function(){};
var po=function(){this.Serializable$values={}},mo=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},oQ=function(a,b){return null!=a.Serializable$values[b]};
var xPb=function(){};
var yPb=function(a,b){this.requestService=a;this.hookFactory=void 0===b?null:b};V(yPb,xPb);
var zPb=function(a,b,c){var d=qza(a.hookFactory,b);return null==d?c:U.EMPTY.pipe(kg({complete:function(){d.onBeforeSend()}}),Rga(c.pipe(kg(function(e){d.onSuccess(e)},function(e){d.onError(e)}))))},APb=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof po?no(b.body,uza,vza,wza):b.body;return zPb(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 BPb=function(){};BPb.prototype.send=function(a,b){rza(a);return this.makeRequest(a).pipe(S(function(c){return b?Aza(b,c):c}))};
var CPb=new sd("API_VERSION"),DPb=new sd("REQUEST_SERVICE"),pQ=function(){};pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275mod=Cc({type:pQ});pQ.\u0275inj=mc({});
var EPb={$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",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"},qQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new yPb(b,c)};qQ.prototype.list=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;return APb(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:sza(a,EPb,b)})};qQ.\u0275fac=function(a){return new (a||qQ)(t(CPb,8),t(DPb),t(wPb,8))};
qQ.\u0275prov=lc({token:qQ,factory:qQ.\u0275fac});var rQ=function(){};rQ.\u0275fac=function(a){return new (a||rQ)};rQ.\u0275prov=lc({token:rQ,factory:function(a){return qQ.\u0275fac(a)},providedIn:pQ});var sQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v2":a;this.$apiClient=new yPb(b,c)};sQ.\u0275fac=function(a){return new (a||sQ)(t(CPb,8),t(DPb),t(wPb,8))};sQ.\u0275prov=lc({token:sQ,factory:sQ.\u0275fac});var tQ=function(){};tQ.\u0275fac=function(a){return new (a||tQ)};
tQ.\u0275prov=lc({token:tQ,factory:function(a){return sQ.\u0275fac(a)},providedIn:pQ});
var Dza=/.*@google.com/,FPb=new sd("onedevPeopleServiceConfig"),GPb={},uQ=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new U.Subject;this.config=GPb;c&&c.pipe(kg(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),jg(this.destroy$)).subscribe({next:function(e){d.config=e}})},HPb=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(S(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 u;k=null==(u=Gza(null==c?void 0:c.email))?void 0:u.value;var x,E;u=null==c?void 0:null==(x=c.name)?void 0:null==(E=x[0])?void 0:E.displayName;
var I;x=null==c?void 0:null==(d=c.photo)?void 0:null==(I=d[0])?void 0:I.url;E=Fza(null==c?void 0:c.organization);d=null==E?void 0:E.title;I=null==E?void 0:E.department;E=null==E?void 0:E.location;d={ldap:Eza(k),email:k||b||"",name:u||"",imageUrl:x,title:d,department:I,location:E}}else d={ldap:Eza(b),name:"",email:b};return d}))};uQ.prototype.ngOnDestroy=function(){this.destroy$.next()};uQ.\u0275fac=function(a){return new (a||uQ)(t(rQ),t(tQ),t(FPb,8))};uQ.\u0275prov=lc({token:uQ,factory:uQ.\u0275fac});
var IPb=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};V(IPb,po);IPb.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
ji.Object.defineProperties(IPb.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"dayOfWeek")?mo(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"periodEndMinutes")?mo(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"periodStartMinutes")?mo(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var JPb=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};V(JPb,po);JPb.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:vQ},keys:["debugOptions","userIds"],objects:{debugOptions:wQ}}};
ji.Object.defineProperties(JPb.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"debugOptions")?mo(this,"debugOptions"):this.debugOptions=new wQ},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"userIds")?mo(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var KPb=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.results=null==a.results?null:a.results};V(KPb,po);KPb.prototype.getPartialClassMetadata=function(){return{arrays:{results:LPb},keys:["results"]}};
ji.Object.defineProperties(KPb.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"results")}},results:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"results")?mo(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var xQ=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};V(xQ,po);xQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","nextAvailable","occupiedUntil"]}};
ji.Object.defineProperties(xQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"eventSummary")?mo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"nextAvailable")?mo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"occupiedUntil")?mo(this,"occupiedUntil"):
""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var yQ=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};V(yQ,po);yQ.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:zQ}}};
ji.Object.defineProperties(yQ.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"geoCoordinates")?mo(this,"geoCoordinates"):this.geoCoordinates=new zQ},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"label")?mo(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"location")?mo(this,"location"):""},
set:function(a){this.Serializable$values.location=a}}});var AQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=null==a.occupiedUntil?null:a.occupiedUntil;this.Serializable$values.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};V(AQ,po);AQ.prototype.getPartialClassMetadata=function(){return{keys:["nextAvailable","occupiedUntil"]}};
ji.Object.defineProperties(AQ.prototype,{nextAvailable:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"nextAvailable")?mo(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"occupiedUntil")?mo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var MPb=function(){this.Serializable$values={}};V(MPb,po);MPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var BQ=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.nextAvailable=null==a.nextAvailable?null:a.nextAvailable};V(BQ,po);
BQ.prototype.getPartialClassMetadata=function(){return{keys:["eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
ji.Object.defineProperties(BQ.prototype,{eventSummary:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"eventSummary")?mo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"inMeetingsUntil")?mo(this,"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"nextAvailable")?mo(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"occupiedUntil")?mo(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var NPb=function(){this.Serializable$values={}};V(NPb,po);NPb.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var zQ=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};V(zQ,po);zQ.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
ji.Object.defineProperties(zQ.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"latitude")?mo(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"longitude")?mo(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var CQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=null==a.timeZone?null:a.timeZone};
V(CQ,po);CQ.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};ji.Object.defineProperties(CQ.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"timeZone")?mo(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var DQ=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};V(DQ,po);DQ.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId"]}};
ji.Object.defineProperties(DQ.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"experimentalBuildingId")?mo(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"experimentalDeskId")?mo(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return oQ(this,"experimentalFloorId")?mo(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}}});var EQ=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};V(EQ,po);EQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","eventSummary"]}};
ji.Object.defineProperties(EQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"comeBackTime")?mo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"eventSummary")?mo(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}}});
var FQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=null==a.comeBackTime?null:a.comeBackTime};V(FQ,po);FQ.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};ji.Object.defineProperties(FQ.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"comeBackTime")?mo(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});
var GQ=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};V(GQ,po);GQ.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
ji.Object.defineProperties(GQ.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"code")?mo(this,"code"):0},set:function(a){this.Serializable$values.code=a}},hasDetails:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"details")}},details:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"details")?mo(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return oQ(this,
"message")?mo(this,"message"):""},set:function(a){this.Serializable$values.message=a}}});var HQ=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};V(HQ,po);HQ.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
ji.Object.defineProperties(HQ.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"endTime")?mo(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"startTime")?mo(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var IQ=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};V(IQ,po);IQ.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
ji.Object.defineProperties(IQ.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"computationDuration")?mo(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"overrideCurrentTime")?mo(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var JQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=null==a.timeRange?null:a.timeRange};V(JQ,po);JQ.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:HQ}}};ji.Object.defineProperties(JQ.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"timeRange")?mo(this,"timeRange"):this.timeRange=new HQ},set:function(a){this.Serializable$values.timeRange=a}}});
var KQ=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};V(KQ,po);KQ.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:OPb},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:LQ}}};
ji.Object.defineProperties(KQ.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"availabilities")?mo(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"nextPollTime")?mo(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"workingHours")?
mo(this,"workingHours"):this.workingHours=new LQ},set:function(a){this.Serializable$values.workingHours=a}}});var wQ=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};V(wQ,po);wQ.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:IQ}}};
ji.Object.defineProperties(wQ.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"forceEnableUserStatusCache")?mo(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"timeSettings")?mo(this,"timeSettings"):this.timeSettings=new IQ},set:function(a){this.Serializable$values.timeSettings=a}}});
var LPb=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};V(LPb,po);LPb.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:GQ,userAvailabilities:KQ,userId:vQ}}};
ji.Object.defineProperties(LPb.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"status")?mo(this,"status"):this.status=new GQ},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"userAvailabilities")}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"userAvailabilities")?
mo(this,"userAvailabilities"):this.userAvailabilities=new KQ},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"userId")}},userId:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"userId")?mo(this,"userId"):this.userId=new vQ},set:function(a){this.Serializable$values.userId=a}}});
var OPb=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};V(OPb,po);OPb.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:MQ,status:NQ,timeRange:HQ}}};
ji.Object.defineProperties(OPb.prototype,{contexts:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"contexts")?mo(this,"contexts"):this.contexts=new MQ},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"status")}},status:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"status")?mo(this,"status"):this.status=new NQ},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,
enumerable:!0,get:function(){return oQ(this,"timeRange")?mo(this,"timeRange"):this.timeRange=new HQ},set:function(a){this.Serializable$values.timeRange=a}}});var MQ=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};V(MQ,po);
MQ.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingOoo","workingElsewhere"],objects:{localTime:CQ,upcomingOoo:JQ,workingElsewhere:OQ}}};
ji.Object.defineProperties(MQ.prototype,{localTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"localTime")?mo(this,"localTime"):this.localTime=new CQ},set:function(a){this.Serializable$values.localTime=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"upcomingOoo")?mo(this,"upcomingOoo"):this.upcomingOoo=new JQ},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"workingElsewhere")?
mo(this,"workingElsewhere"):this.workingElsewhere=new OQ},set:function(a){this.Serializable$values.workingElsewhere=a}}});var vQ=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};V(vQ,po);vQ.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
ji.Object.defineProperties(vQ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"email")?mo(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"obfuscatedGaiaId")?mo(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var PQ=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};V(PQ,po);PQ.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:yQ,homeLocation:MPb,officeLocation:DQ}}};
ji.Object.defineProperties(PQ.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"customLocation")?mo(this,"customLocation"):this.customLocation=new yQ},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"homeLocation")?mo(this,"homeLocation"):this.homeLocation=new MPb},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return oQ(this,
"officeLocation")?mo(this,"officeLocation"):this.officeLocation=new DQ},set:function(a){this.Serializable$values.officeLocation=a}}});
var NQ=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};V(NQ,po);NQ.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:xQ,doNotDisturb:AQ,inMeeting:BQ,inactive:NPb,outOfOffice:EQ,outsideWorkingHours:FQ}}};
ji.Object.defineProperties(NQ.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"calendarBusy")?mo(this,"calendarBusy"):this.calendarBusy=new xQ},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"doNotDisturb")?mo(this,"doNotDisturb"):this.doNotDisturb=new AQ},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return oQ(this,
"inMeeting")?mo(this,"inMeeting"):this.inMeeting=new BQ},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"inactive")?mo(this,"inactive"):this.inactive=new NPb},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return null!==mo(this,"outOfOffice")}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"outOfOffice")?mo(this,"outOfOffice"):
this.outOfOffice=new EQ},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"outsideWorkingHours")?mo(this,"outsideWorkingHours"):this.outsideWorkingHours=new FQ},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var OQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.location=null==a.location?null:a.location};V(OQ,po);
OQ.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:PQ}}};ji.Object.defineProperties(OQ.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"location")?mo(this,"location"):this.location=new PQ},set:function(a){this.Serializable$values.location=a}}});var LQ=function(a){a=void 0===a?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=null==a.availableTime?null:a.availableTime};V(LQ,po);
LQ.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:IPb},keys:["availableTime"]}};ji.Object.defineProperties(LQ.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return oQ(this,"availableTime")?mo(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var PPb=new sd("API_VERSION"),QPb=new sd("REQUEST_SERVICE"),QQ=function(){};QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275mod=Cc({type:QQ});
QQ.\u0275inj=mc({});var RPb={$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"},RQ=function(a,b,c){this.gapiVersion=a;this.gapiVersion=null==a?"v1alpha":a;this.$apiClient=new yPb(b,c)};RQ.\u0275fac=function(a){return new (a||RQ)(t(PPb,8),t(QPb),t(wPb,8))};RQ.\u0275prov=lc({token:RQ,factory:RQ.\u0275fac});var SQ=function(){};
SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275prov=lc({token:SQ,factory:function(a){return RQ.\u0275fac(a)},providedIn:QQ});
var TQ=function(a){var b=this;this.apiStub=a;this.result=new U.Subject;this.destroyed=new U.ReplaySubject(1);this.trigger=new U.Subject;this.batchedTrigger=this.trigger.pipe(Pga(this.trigger.pipe(Rf(200))));this.responseHandler=function(c){if(c.hasResults){c=r(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(jg(this.destroyed)).subscribe(function(c){c=[].concat(v(new Set(c)));SPb(b,c.slice(0,100));c=r(c.slice(100));for(var d=c.next();!d.done;d=c.next())b.trigger.next(d.value)})},SPb=function(a,b){var c,d;hf(function(e){for(var f=new JPb,h=[],k=r(b),q=k.next();!q.done;q=k.next()){q=q.value;var u=new vQ;u.email=q;h.push(u)}f.userIds=h;c=f;f=a.apiStub;var x=void 0===x?{}:x;var E=void 0===E?{}:E;d=APb(f.$apiClient,
{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:sza(x,RPb,E),responseCtor:KPb});d.pipe(jg(a.destroyed)).subscribe(a.responseHandler);kf(e)})},TPb=function(a,b){if(!b)return(0,U.of)("");a.trigger.next(b);return a.result.pipe(xf(function(c){return c.emailAddress===b})).pipe(S(function(c){return c.availability}))};TQ.prototype.ngOnDestroy=function(){this.destroyed.next()};
TQ.\u0275fac=function(a){return new (a||TQ)(t(SQ))};TQ.\u0275prov=lc({token:TQ,factory:TQ.\u0275fac});
var UPb=function(a){Z.call(this,a)};V(UPb,Z);g=UPb.prototype;g.getSize=function(){return p(this,1)};g.setSize=function(a){return l(this,1,a)};g.getWidth=function(){return p(this,12)};g.setWidth=function(a){return l(this,12,a)};g.getHeight=function(){return p(this,13)};g.setHeight=function(a){return l(this,13,a)};g.setStretch=function(a){return l(this,33,a)};g.setCrop=function(a){return l(this,2,a)};g.setCircleCrop=function(a){return l(this,51,a)};g.setImageCrop=function(a){return l(this,32,a)};
g.setSmartCrop=function(a){return l(this,19,a)};g.setSmartCropNoClip=function(a){return l(this,52,a)};g.setSmartCropUseFace=function(a){return l(this,67,a)};g.setDetectFaces=function(a){l(this,80,a)};g.setCenterCrop=function(a){return l(this,20,a)};g.setPad=function(a){return l(this,60,a)};g.setDownload=function(a){l(this,3,a)};g.setHtml=function(a){l(this,4,a)};g.getObjectId=function(){return p(this,7)};g.setObjectId=function(a){l(this,7,a)};g.setLooseFaceCrop=function(a){return l(this,65,a)};
g.setFaceCropVersion=function(a){l(this,94,a)};g.setFrameId=function(a){l(this,29,a)};g.setTileX=function(a){l(this,9,a)};g.setTileY=function(a){l(this,10,a)};g.setTileZoom=function(a){l(this,11,a)};g.setTileGeneration=function(a){l(this,14,a)};g.setForceTileGeneration=function(a){l(this,34,a)};g.setTilePyramidAsProto=function(a){l(this,72,a)};g.setExpirationTime=function(a){l(this,15,a)};g.setImageFilter=function(a){return l(this,16,a)};g.setKillAnimation=function(a){return l(this,17,a)};
g.setUnfiltered=function(a){l(this,18,a)};g.setUnfilteredWithTransforms=function(a){l(this,45,a)};g.setIncludeMetadata=function(a){l(this,22,a)};g.setIncludePublicMetadata=function(a){l(this,54,a)};g.setStripGoogleData=function(a){l(this,82,a)};g.setPreserveGoogleData=function(a){l(this,83,a)};g.setStripMetadata=function(a){l(this,93,a)};g.setStripGeoinfo=function(a){l(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return l(this,21,a)};g.setBypassTakedown=function(a){l(this,23,a)};
g.getToken=function(){return p(this,24)};g.setToken=function(a){return l(this,24,a)};g.setVersionedToken=function(a){l(this,36,a)};g.setSkipRefererCheck=function(a){l(this,6,a)};g.getRotate=function(){return p(this,26)};g.setRotate=function(a){return l(this,26,a)};g.setHorizontalFlip=function(a){l(this,30,a)};g.setVerticalFlip=function(a){l(this,31,a)};g.getOverlay=function(){return Mo(this,27)};g.setOverlay=function(a){return l(this,27,a)};g.setQueryString=function(a){l(this,28,a)};
g.setRequestJpeg=function(a){return l(this,57,a)};g.setRequestPng=function(a){return l(this,58,a)};g.setRequestGif=function(a){l(this,59,a)};g.setRequestWebp=function(a){return l(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){l(this,41,a)};g.setRequestAnimatedWebp=function(a){l(this,64,a)};g.setNoWebp=function(a){l(this,48,a)};g.setRequestH264=function(a){return l(this,49,a)};g.setLossy=function(a){l(this,97,a)};g.setNoOverlay=function(a){return l(this,37,a)};
g.setBorderSize=function(a){l(this,38,a)};g.setBorderRadius=function(a){l(this,86,a)};g.setBorderColor=function(a){l(this,39,a)};g.getBackgroundColor=function(){return p(this,87)};g.setBackgroundColor=function(a){l(this,87,a)};g.setPadColor=function(a){l(this,88,a)};g.setSubstitutionColor=function(a){l(this,89,a)};g.setNoSilhouette=function(a){l(this,40,a)};g.setFocusBlur=function(a){l(this,42,a)};g.setFocalPlane=function(a){l(this,43,a)};g.setQualityLevel=function(a){return l(this,44,a)};
g.setQualityBucket=function(a){return l(this,62,a)};g.setNoUpscale=function(a){l(this,46,a)};g.setPreserveAspectRatio=function(a){l(this,61,a)};g.setForceTransformation=function(a){l(this,50,a)};g.setNoDefaultImage=function(a){l(this,53,a)};g.setNoCorrectExifOrientation=function(a){l(this,55,a)};g.setSelectFrameNumber=function(a){l(this,56,a)};g.setVideoFormat=function(a){l(this,63,a)};g.setVideoMultiFormat=function(a){l(this,81,a)};g.setVideoManifest=function(a){l(this,98,a)};
g.setDownloadVideo=function(a){l(this,90,a)};g.setVideoBegin=function(a){l(this,68,a)};g.setVideoLength=function(a){l(this,69,a)};g.setMatchVersion=function(a){l(this,66,a)};g.setImageDigest=function(a){l(this,70,a)};g.setInternalClient=function(a){l(this,71,a)};g.setMonogram=function(a){l(this,73,a)};g.setForceMonogram=function(a){return l(this,84,a)};g.setMonogramDogfood=function(a){l(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){l(this,96,a)};g.setAutoloop=function(a){l(this,74,a)};
g.getImageVersion=function(){return p(this,75)};g.setImageVersion=function(a){l(this,75,a)};g.setPitchDegrees=function(a){l(this,76,a)};g.setYawDegrees=function(a){l(this,77,a)};g.setRollDegrees=function(a){l(this,78,a)};g.setFovDegrees=function(a){l(this,79,a)};g.setBadge=function(a){l(this,85,a)};g.setColorProfile=function(a){l(this,92,a)};g.setDeepCrop=function(a){l(this,99,a)};g.setRequestVideoFast=function(a){l(this,100,a)};g.setVideoFormatFilters=function(a){l(this,102,a)};
g.toObject=function(){var a=null!=this?{size:n(p(this,1)),width:n(p(this,12)),height:n(p(this,13)),stretch:n(Mo(this,33)),crop:bj(this,2,!1),circleCrop:n(Mo(this,51)),imageCrop:n(Mo(this,32)),smartCrop:bj(this,19,!1),smartCropNoClip:bj(this,52,!1),smartCropUseFace:bj(this,67,!1),detectFaces:n(Mo(this,80)),centerCrop:bj(this,20,!1),pad:n(Mo(this,60)),download:bj(this,3,!1),html:bj(this,4,!1),objectId:n(p(this,7)),looseFaceCrop:n(Mo(this,65)),faceCropVersion:n(p(this,94)),frameId:n(p(this,29)),imageUrlDomain:fj(this,
8,0),tileX:n(p(this,9)),tileY:n(p(this,10)),tileZoom:n(p(this,11)),tileGeneration:bj(this,14,!1),forceTileGeneration:bj(this,34,!1),tilePyramidAsProto:bj(this,72,!1),expirationTime:n(p(this,15)),imageFilter:n(p(this,16)),killAnimation:n(Mo(this,17)),unfiltered:n(Mo(this,18)),unfilteredWithTransforms:n(Mo(this,45)),includeMetadata:n(Mo(this,22)),includePublicMetadata:n(Mo(this,54)),stripGoogleData:n(Mo(this,82)),preserveGoogleData:n(Mo(this,83)),stripMetadata:n(Mo(this,93)),stripGeoinfo:n(Mo(this,
95)),esPortraitApprovedOnly:n(Mo(this,21)),bypassTakedown:bj(this,23,!1),token:n(p(this,24)),versionedToken:n(p(this,36)),skipRefererCheck:bj(this,6,!1),rotate:n(p(this,26)),horizontalFlip:n(Mo(this,30)),verticalFlip:n(Mo(this,31)),overlay:n(Mo(this,27)),queryString:n(p(this,28)),requestJpeg:n(Mo(this,57)),requestPng:n(Mo(this,58)),requestGif:n(Mo(this,59)),requestWebp:bj(this,35,!1),requestWebpUnlessMaybeTransparent:bj(this,41,!1),requestAnimatedWebp:bj(this,64,!1),noWebp:bj(this,48,!1),requestH264:bj(this,
49,!1),lossy:n(Mo(this,97)),noOverlay:bj(this,37,!1),borderSize:n(p(this,38)),borderRadius:n(p(this,86)),borderColor:n(p(this,39)),backgroundColor:n(p(this,87)),padColor:n(p(this,88)),substitutionColor:n(p(this,89)),noSilhouette:n(Mo(this,40)),focusBlur:n(p(this,42)),focalPlane:n(p(this,43)),qualityLevel:n(p(this,44)),qualityBucket:n(p(this,62)),noUpscale:n(Mo(this,46)),preserveAspectRatio:n(Mo(this,61)),forceTransformation:n(Mo(this,50)),noDefaultImage:n(Mo(this,53)),noCorrectExifOrientation:n(Mo(this,
55)),selectFrameNumber:n(p(this,56)),videoFormat:n(p(this,63)),videoMultiFormat:n(p(this,81)),videoManifest:n(Mo(this,98)),downloadVideo:n(Mo(this,90)),videoBegin:n(p(this,68)),videoLength:n(p(this,69)),matchVersion:n(Mo(this,66)),imageDigest:n(Mo(this,70)),internalClient:n(p(this,71)),monogram:n(Mo(this,73)),forceMonogram:n(Mo(this,84)),monogramDogfood:n(Mo(this,91)),ignoreLowResProfilePhoto:n(Mo(this,96)),autoloop:n(Mo(this,74)),imageVersion:n(p(this,75)),pitchDegrees:n(mu(this,76)),yawDegrees:n(mu(this,
77)),rollDegrees:n(mu(this,78)),fovDegrees:n(mu(this,79)),badge:n(p(this,85)),colorProfile:n(p(this,92)),deepCrop:n(p(this,99)),requestVideoFast:n(Mo(this,100)),videoFormatFilters:n(p(this,102))}:void 0;return a};
var UQ=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};UQ.prototype.set=function(a,b){VPb(this,a,b,!1)};UQ.prototype.add=function(a,b){VPb(this,a,b,!0)};var VPb=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 UQ);a=a.childNodes_[f]}if(d&&void 0!==a.value_)throw Error("Hd`"+b);a.value_=c};UQ.prototype.setAll=function(a){var b=gAb(a);a=NG(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var WPb=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};UQ.prototype.get=function(a){return(a=WPb(this,a))?a.value_:void 0};UQ.prototype.getValues=function(){var a=[];XPb(this,a);return a};var XPb=function(a,b){void 0!==a.value_&&b.push(a.value_);for(var c in a.childNodes_)XPb(a.childNodes_[c],b)};
UQ.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]}YPb(c,a,b)}else YPb(this,"",b);return b};var YPb=function(a,b,c){void 0!==a.value_&&c.push(b);for(var d in a.childNodes_)YPb(a.childNodes_[d],b+d,c)};g=UQ.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("Id`"+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 UQ(this)};g.getCount=function(){return fAb(this.getValues())};g.isEmpty=function(){return void 0===this.value_&&ih(this.childNodes_)};
var aQb=function(){if(!ZPb){var a=ZPb=new UQ,b;for(b in $Pb)a.add(b,$Pb[b])}},ZPb,VQ=function(a,b){this.types=a;this.setters=b},$Pb={a:new VQ([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new VQ([3],[function(a,b){a.setAutoloop(b)}]),b:new VQ([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new VQ([0],[function(a,b){a.setBadge(b)}]),bc:new VQ([0],[function(a,b){a.setBackgroundColor(b)}]),br:new VQ([0],[function(a,
b){a.setBorderRadius(b)}]),c:new VQ([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new VQ([3],[function(a,b){a.setCircleCrop(b)}]),ci:new VQ([3],[function(a,b){a.setImageCrop(b)}]),cp:new VQ([0],[function(a,b){a.setColorProfile(b)}]),cv:new VQ([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new VQ([3],[function(a,b){a.setDownload(b)}]),dc:new VQ([5],[function(a,b){a.setDeepCrop(b)}]),df:new VQ([3],[function(a,b){a.setDetectFaces(b)}]),dv:new VQ([3],[function(a,b){a.setDownloadVideo(b)}]),
e:new VQ([0],[function(a,b){a.setExpirationTime(b)}]),f:new VQ([4],[function(a,b){a.setImageFilter(b)}]),fg:new VQ([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new VQ([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new VQ([3],[function(a,b){a.setForceMonogram(b)}]),fo:new VQ([2],[function(a,b){a.setFovDegrees(b)}]),ft:new VQ([3],[function(a,b){a.setForceTransformation(b)}]),fv:new VQ([3],[function(a,b){a.setVerticalFlip(b)}]),g:new VQ([3],[function(a,b){a.setTileGeneration(b)}]),gd:new VQ([3],
[function(a,b){a.setPreserveGoogleData(b)}]),h:new VQ([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new VQ([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new VQ([0],[function(a,b){a.setInternalClient(b)}]),id:new VQ([3],[function(a,b){a.setImageDigest(b)}]),il:new VQ([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new VQ([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new VQ([0],[function(a,b){a.setImageVersion(b)}]),j:new VQ([1],[function(a,b){a.setFrameId(b)}]),
k:new VQ([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new VQ([0],[function(a,b){a.setQualityLevel(b)}]),lf:new VQ([3],[function(a,b){a.setLooseFaceCrop(b)}]),lo:new VQ([3],[function(a,b){a.setLossy(b)}]),m:new VQ([0],[function(a,b){a.setVideoFormat(b)}]),md:new VQ([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new VQ([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new VQ([3],[function(a,b){a.setMonogram(b)}]),mv:new VQ([3],[function(a,b){a.setMatchVersion(b)}]),
n:new VQ([3],[function(a,b){a.setCenterCrop(b)}]),nc:new VQ([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new VQ([3],[function(a,b){a.setNoDefaultImage(b)}]),ng:new VQ([3],[function(a,b){a.setStripGeoinfo(b)}]),no:new VQ([3],[function(a,b){a.setNoOverlay(b)}]),ns:new VQ([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new VQ([4],[function(a,b){a.setVersionedToken(b)}]),nu:new VQ([3],[function(a,b){a.setNoUpscale(b)}]),nw:new VQ([3],[function(a,b){a.setNoWebp(b)}]),o:new VQ([1,3],[function(a,
b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),p:new VQ([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new VQ([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new VQ([0],[function(a,b){a.setPadColor(b)}]),pd:new VQ([3],[function(a,b){a.setPad(b)}]),pf:new VQ([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new VQ([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new VQ([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new VQ([3],[function(a,b){a.setSmartCropNoClip(b)}]),
q:new VQ([4],[function(a,b){a.setQueryString(b)}]),r:new VQ([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),rf:new VQ([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new VQ([3],[function(a,b){a.setRequestGif(b)}]),rh:new VQ([3],[function(a,b){a.setRequestH264(b)}]),rj:new VQ([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new VQ([2],[function(a,b){a.setRollDegrees(b)}]),rp:new VQ([3],[function(a,b){a.setRequestPng(b)}]),rw:new VQ([3],[function(a,b){a.setRequestWebp(b)}]),
rwa:new VQ([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new VQ([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new VQ([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sc:new VQ([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new VQ([3],[function(a,b){a.setStripGoogleData(b)}]),sm:new VQ([3],[function(a,b){a.setStripMetadata(b)}]),t:new VQ([4],[function(a,b){a.setToken(b)}]),u:new VQ([3],[function(a,b){a.setUnfiltered(b)}]),ut:new VQ([3],[function(a,
b){a.setUnfilteredWithTransforms(b)}]),v:new VQ([0],[function(a,b){a.setQualityBucket(b)}]),vb:new VQ([0],[function(a,b){a.setVideoBegin(b)}]),vf:new VQ([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new VQ([0],[function(a,b){a.setVideoLength(b)}]),vm:new VQ([3],[function(a,b){a.setVideoManifest(b)}]),w:new VQ([0],[function(a,b){a.setWidth(b)}]),x:new VQ([0],[function(a,b){a.setTileX(b)}]),y:new VQ([0],[function(a,b){a.setTileY(b)}]),ya:new VQ([2],[function(a,b){a.setYawDegrees(b)}]),z:new VQ([0],
[function(a,b){a.setTileZoom(b)}])};
aQb.prototype.parse=function(a){var b=new UPb,c=new UPb;if(""==a)a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(0==f.length)d=!1;else{var h=f,k=!1;var q=h;var u=h.charAt(0);u!=u.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var x=ZPb;for(u=1;u<=q.length;++u){var E=x,I=q.substring(0,u);if(0==I.length?E.isEmpty():!WPb(E,I))break}q=1==u?null:(q=x.get(q.substring(0,u-1)))?{option:h.substring(0,u-1),value:h.substring(u-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];u=!1;for(x=0;x<q.attributes.types.length;x++){E=q.attributes.types[x];var N=q.value;I=e;if(q.signed&&1==E)for(var L=N.length;12>L&&I<a.length-1;)N+="-"+a[I+1],L=N.length,++I;else if(2==E)for(;I<a.length-1&&a[I+1].match(/^[\d\.]/);)N+="-"+a[I+1],++I;L=q.attributes.setters[x];N=bQb(this,E)(q.option,N,b,c,L);if(null===N){u=!0;e=I;break}else h.push(E),k.push(N)}if(!u)for(q=0;q<k.length;q++)x=h[q],N=k[q],cQb(this,x)(f,N);d=d&&u}else d=!1}}a=d}return new dQb(b,c,a)};
var eQb=function(a,b,c,d,e){e(c,b);a=a.charAt(0);e(d,a==a.toUpperCase())};g=aQb.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(""==b)return 0;b=Ki(b);if(isNaN(b))return 1;eQb(a,b,c,d,e);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(""==b)return 0;b=qC(b);if(isNaN(b))return 1;eQb(a,b,c,d,e);return null};g.logFloatParseError_=function(){};g.parseAndSetBoolOption_=function(a,b,c,d,e){if(""!=b)return 2;eQb(a,!0,c,d,e);return null};
g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(""==b)return 0;eQb(a,b,c,d,e);return null};g.logStringParseError_=function(){};
var bQb=function(a,b){switch(b){case 0:return St(a.parseAndSetIntOption_,a);case 2:return St(a.parseAndSetFloatOption_,a);case 3:return St(a.parseAndSetBoolOption_,a);case 4:case 1:return St(a.parseAndSetStringOption_,a);default:return function(){}}},cQb=function(a,b){switch(b){case 0:return St(a.logIntParseError_,a);case 2:return St(a.logFloatParseError_,a);case 3:return St(a.logBoolParseError_,a);case 4:case 1:return St(a.logStringParseError_,a);default:return function(){}}},dQb=function(a,b,c){this.valueProto_=
a;this.signatureFlagProto_=b;this.valid_=c};dQb.prototype.isValid=function(){return this.valid_};
var fQb=function(a,b){null!=a&&this.append.apply(this,arguments)};g=fQb.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.toString=function(){return this.buffer_};
var WQ=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;gQb(this,a)};WQ.prototype.getParsedOptions=function(){return this.parsedOptions_};var hQb=function(a){null==a.parser_&&(a.parser_=new aQb);return a.parser_},gQb=function(a,b){a.parsedOptions_=b?"string"===typeof b?hQb(a).parse(b):b:hQb(a).parse("")},XQ=function(a,b){return a==b?!1:!0};g=WQ.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,21),Mo(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,56),p(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,74),Mo(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,23,!1),bj(b.signatureFlagProto_,23,!1))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,38),p(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,85),p(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getBackgroundColor(),b.signatureFlagProto_.getBackgroundColor())&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,86),p(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,2,!1),bj(b.signatureFlagProto_,2,!1))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,39),p(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,51),Mo(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,32),Mo(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,92),p(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,94),p(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,3,!1),bj(b.signatureFlagProto_,3,!1))&&c.setDownload(a)};
g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,99),p(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,80),Mo(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,90),Mo(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};
g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,15),p(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,16),p(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,34,!1),bj(b.signatureFlagProto_,34,!1))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,30),Mo(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,84),Mo(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,mu(c,79),mu(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,50),Mo(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,31),Mo(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,14,!1),bj(b.signatureFlagProto_,14,!1))&&c.setTileGeneration(a)};
g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,83),Mo(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,4,!1),bj(b.signatureFlagProto_,4,!1))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(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_;XQ(a,Mo(c,22),Mo(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,71),p(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,70),Mo(b.signatureFlagProto_,70))&&c.setImageDigest(a)};
g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,96),Mo(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,54),Mo(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};
g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,29),p(b.signatureFlagProto_,29))&&c.setFrameId(a)};g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,17),Mo(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,42),p(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};
g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,44),p(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,65),Mo(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,97),Mo(b.signatureFlagProto_,97))&&c.setLossy(a)};
g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,63),p(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,91),Mo(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,81),p(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};
g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,73),Mo(b.signatureFlagProto_,73))&&c.setMonogram(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,66),Mo(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,20,!1),bj(b.signatureFlagProto_,20,!1))&&c.setCenterCrop(a);return this};
g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,55),Mo(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,53),Mo(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,95),Mo(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,37,!1),bj(b.signatureFlagProto_,37,!1))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,40),Mo(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,36),p(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};
g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,46),Mo(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,48,!1),bj(b.signatureFlagProto_,48,!1))&&c.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getObjectId(),b.signatureFlagProto_.getObjectId())&&c.setObjectId(a)};
g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(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_;XQ(a,bj(c,19,!1),bj(b.signatureFlagProto_,19,!1))&&c.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,43),p(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};
g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,61),Mo(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,88),p(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,60),Mo(b.signatureFlagProto_,60))&&c.setPad(a);return this};
g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,67,!1),bj(b.signatureFlagProto_,67,!1))&&c.setSmartCropUseFace(a);return this};g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,72,!1),bj(b.signatureFlagProto_,72,!1))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,mu(c,76),mu(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};
g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,52,!1),bj(b.signatureFlagProto_,52,!1))&&c.setSmartCropNoClip(a);return this};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,28),p(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,6,!1),bj(b.signatureFlagProto_,6,!1))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getRotate(),b.signatureFlagProto_.getRotate())&&c.setRotate(a);return this};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,100),Mo(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,59),Mo(b.signatureFlagProto_,59))&&c.setRequestGif(a)};
g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,49,!1),bj(b.signatureFlagProto_,49,!1))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,57),Mo(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,mu(c,78),mu(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};
g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,58),Mo(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,35,!1),bj(b.signatureFlagProto_,35,!1))&&c.setRequestWebp(a);return this};g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,64,!1),bj(b.signatureFlagProto_,64,!1))&&c.setRequestAnimatedWebp(a)};
g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,bj(c,41,!1),bj(b.signatureFlagProto_,41,!1))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,33),Mo(b.signatureFlagProto_,33))&&c.setStretch(a);return this};g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,89),p(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,82),Mo(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,93),Mo(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(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_;XQ(a,Mo(c,18),Mo(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,45),Mo(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};
g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,62),p(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,68),p(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};g.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,102),p(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};
g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,69),p(b.signatureFlagProto_,69))&&c.setVideoLength(a)};g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;XQ(a,Mo(c,98),Mo(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};
g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,9),p(b.signatureFlagProto_,9))&&c.setTileX(a)};g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,10),p(b.signatureFlagProto_,10))&&c.setTileY(a)};g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,mu(c,77),mu(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;XQ(a,p(c,11),p(b.signatureFlagProto_,11))&&c.setTileZoom(a)};
g.setOptions=function(){gQb(this)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;YQ(this,"s",b.getSize(),a.getSize());YQ(this,"w",b.getWidth(),a.getWidth());ZQ(this,"c",bj(b,2,!1),bj(a,2,!1));ZQ(this,"d",bj(b,3,!1),bj(a,3,!1));YQ(this,"h",b.getHeight(),a.getHeight());ZQ(this,"s",Mo(b,33),Mo(a,33));ZQ(this,"h",bj(b,4,!1),bj(a,4,!1));ZQ(this,"p",bj(b,19,!1),bj(a,19,!1));ZQ(this,"pp",bj(b,52,!1),bj(a,52,!1));ZQ(this,"pf",bj(b,67,!1),bj(a,67,!1));ZQ(this,"n",bj(b,20,!1),
bj(a,20,!1));YQ(this,"r",b.getRotate(),a.getRotate());ZQ(this,"r",bj(b,6,!1),bj(a,6,!1));ZQ(this,"o",b.getOverlay(),a.getOverlay());var c=b.getObjectId();$Q(this,"o",c,a.getObjectId());c=p(b,29);$Q(this,"j",c,p(a,29));YQ(this,"x",p(b,9),p(a,9));YQ(this,"y",p(b,10),p(a,10));YQ(this,"z",p(b,11),p(a,11));ZQ(this,"g",bj(b,14,!1),bj(a,14,!1));YQ(this,"e",p(b,15),p(a,15));$Q(this,"f",p(b,16),p(a,16));ZQ(this,"k",Mo(b,17),Mo(a,17));ZQ(this,"u",Mo(b,18),!0);ZQ(this,"ut",Mo(b,45),!0);ZQ(this,"i",Mo(b,22),
!0);ZQ(this,"a",Mo(b,21),Mo(a,21));ZQ(this,"b",bj(b,23,!1),bj(a,23,!1));YQ(this,"b",p(b,38),p(a,38));YQ(this,"c",p(b,39),p(a,39),16,8);$Q(this,"q",p(b,28),p(a,28));ZQ(this,"fh",Mo(b,30),Mo(a,30));ZQ(this,"fv",Mo(b,31),Mo(a,31));ZQ(this,"fg",bj(b,34,!1),bj(a,34,!1));ZQ(this,"ci",Mo(b,32),Mo(a,32));$Q(this,"t",b.getToken(),a.getToken());$Q(this,"nt0",p(b,36),p(a,36));ZQ(this,"rw",bj(b,35,!1),bj(a,35,!1));ZQ(this,"rwu",bj(b,41,!1),bj(a,41,!1));ZQ(this,"rwa",bj(b,64,!1),bj(a,64,!1));ZQ(this,"nw",bj(b,
48,!1),bj(a,48,!1));ZQ(this,"rh",bj(b,49,!1),bj(a,49,!1));ZQ(this,"no",bj(b,37,!1),bj(a,37,!1));ZQ(this,"ns",Mo(b,40),Mo(a,40));YQ(this,"k",p(b,42),p(a,42));YQ(this,"p",p(b,43),p(a,43));YQ(this,"l",p(b,44),p(a,44));YQ(this,"v",p(b,62),p(a,62));ZQ(this,"nu",Mo(b,46),Mo(a,46));ZQ(this,"ft",Mo(b,50),Mo(a,50));ZQ(this,"cc",Mo(b,51),Mo(a,51));ZQ(this,"nd",Mo(b,53),Mo(a,53));ZQ(this,"ip",Mo(b,54),Mo(a,54));ZQ(this,"nc",Mo(b,55),Mo(a,55));YQ(this,"a",p(b,56),p(a,56));ZQ(this,"rj",Mo(b,57),Mo(a,57));ZQ(this,
"rp",Mo(b,58),Mo(a,58));ZQ(this,"rg",Mo(b,59),Mo(a,59));ZQ(this,"pd",Mo(b,60),Mo(a,60));ZQ(this,"pa",Mo(b,61),Mo(a,61));YQ(this,"m",p(b,63),p(a,63));YQ(this,"vb",p(b,68),p(a,68));YQ(this,"vl",p(b,69),p(a,69));ZQ(this,"lf",Mo(b,65),Mo(a,65));ZQ(this,"mv",Mo(b,66),Mo(a,66));ZQ(this,"id",Mo(b,70),Mo(a,70));YQ(this,"ic",p(b,71),!0);ZQ(this,"pg",bj(b,72,!1),bj(a,72,!1));ZQ(this,"mo",Mo(b,73),Mo(a,73));ZQ(this,"al",Mo(b,74),Mo(a,74));YQ(this,"iv",b.getImageVersion(),a.getImageVersion());YQ(this,"pi",mu(b,
76),mu(a,76));YQ(this,"ya",mu(b,77),mu(a,77));YQ(this,"ro",mu(b,78),mu(a,78));YQ(this,"fo",mu(b,79),mu(a,79));ZQ(this,"df",Mo(b,80),Mo(a,80));$Q(this,"mm",p(b,81),p(a,81));ZQ(this,"sg",Mo(b,82),Mo(a,82));ZQ(this,"gd",Mo(b,83),Mo(a,83));ZQ(this,"fm",Mo(b,84),Mo(a,84));YQ(this,"ba",p(b,85),p(a,85));YQ(this,"br",p(b,86),p(a,86));YQ(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);YQ(this,"pc",p(b,88),p(a,88),16,8);YQ(this,"sc",p(b,89),p(a,89),16,8);ZQ(this,"dv",Mo(b,90),Mo(a,90));ZQ(this,
"md",Mo(b,91),Mo(a,91));YQ(this,"cp",p(b,92),p(a,92));ZQ(this,"sm",Mo(b,93),Mo(a,93));YQ(this,"cv",p(b,94),p(a,94));ZQ(this,"ng",Mo(b,95),Mo(a,95));ZQ(this,"il",Mo(b,96),Mo(a,96));ZQ(this,"lo",Mo(b,97),Mo(a,97));ZQ(this,"vm",Mo(b,98),Mo(a,98));$Q(this,"dc",p(b,99),p(a,99));ZQ(this,"rf",Mo(b,100),Mo(a,100));$Q(this,"vf",p(b,102),p(a,102));return this.components_.join("-")};
var YQ=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 fQb;e.append(16==h?"0x":"");h=e.append;void 0==f?f="":(f-=c.length,f=0>=f?"":nC("0",f));h.call(e,f);e.append(c);iQb(a,b,e.toString(),!!d)}},ZQ=function(a,b,c,d){c&&iQb(a,b,"",!!d)},$Q=function(a,b,c,d){c&&iQb(a,b,c,!!d)},iQb=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};
var aR=function(a){WQ.call(this,a)};Wt(aR,WQ);g=aR.prototype;g.setCrop=function(a){a&&bR(this);return aR.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return aR.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&bR(this);return aR.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return aR.superClass_.setQualityLevel.call(this,a)};
g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return aR.superClass_.setImageFilter.call(this,a)};g.setImageCrop=function(a){a&&bR(this);return aR.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&bR(this);return aR.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){Ha(a)&&(a=Math.max(a.width,a.height));a=null==a||0>a?void 0:a;null!=a&&(this.setWidth(),this.setHeight());return aR.superClass_.setSize.call(this,a)};
g.setSmartCrop=function(a){a&&bR(this);return aR.superClass_.setSmartCrop.call(this,a)};g.setSmartCropNoClip=function(a){a&&bR(this);return aR.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&bR(this);return aR.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&bR(this);return aR.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&bR(this);return aR.superClass_.setPad.call(this,a)};
g.setWidth=function(a){a=null==a||0>a?void 0:a;null!=a&&this.setSize();return aR.superClass_.setWidth.call(this,a)};var bR=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};
aR.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Mo(a,18)||Mo(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),bR(this)));return aR.superClass_.build.call(this)};
var jQb=/^[^\/]*\/\//,cR=function(a,b){b=void 0===b?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(jQb))&&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_=WG(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},kQb=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},dR=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]&&(kQb(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)kQb(a,
a.components_[0]);else if("image"==a.components_[0])kQb(a,a.components_[0]);else if(7==b||3==b)return a.valid_=!1,a.components_;if(3>=b){a.obfuscated_=!0;3==b&&(kQb(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_};cR.prototype.isValid=function(){dR(this);return this.valid_};var lQb=function(a){dR(a);return a.obfuscated_},mQb=function(a){dR(a);return a.isFreeformUrl_};
cR.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};cR.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var eR=function(a){dR(a);void 0==a.pathPrefix_&&(a.pathPrefix_=null);return a.pathPrefix_};cR.prototype.hasOptions=function(){switch(dR(this).length){case 7:return!0;case 6:return null==eR(this);case 5:return!1;case 3:return!0;case 2:return null==eR(this);case 1:return!1;default:return!1}};
var fR=function(a,b){if(mQb(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=dR(a)[b]}else if(lQb(a))a:{var c=null!=eR(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=dR(a)[b]}else a:{c=null!=eR(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=dR(a)[b]}return a};g=cR.prototype;g.getOriginal=function(){return this.original_};g.getObfuscatedGaiaId=function(){void 0==this.obfuscatedGaiaId_&&(this.obfuscatedGaiaId_=fR(this,0));return this.obfuscatedGaiaId_};g.getImageVersion=function(){void 0==this.imageVersion_&&(this.imageVersion_=fR(this,2));return this.imageVersion_};g.getOptions=function(){void 0==this.options_&&(this.options_=fR(this,4));return this.options_};
g.getFilename=function(){void 0==this.filename_&&(this.filename_=fR(this,5));return this.filename_};
var nQb=function(){};nQb.prototype.parse=function(a,b){return new oQb(a,void 0===b?!1:b)};var oQb=function(a,b){cR.call(this,a,void 0===b?!1:b)};V(oQb,cR);oQb.prototype.getParsedOptions=function(){if(void 0==this.parsedOptions_){var a=this.getOptions();a||(a="");this.parsedOptions_=(new aQb).parse(a)}return this.parsedOptions_};
var gR=function(a,b){b=void 0===b?!1:b;this.parsedImageUrl_=null;a instanceof oQb||(void 0==pQb&&(pQb=new nQb),a=pQb.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();WQ.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},pQb;Wt(gR,aR);gR.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
gR.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.getOriginal();var a=gR.superClass_.build.call(this),b=[];null!=eR(this.parsedImageUrl_)&&b.push(eR(this.parsedImageUrl_));var c=mQb(this.parsedImageUrl_);if(lQb(this.parsedImageUrl_)){var d=this.parsedImageUrl_;void 0==d.obfuscatedData_&&(d.obfuscatedData_=fR(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;void 0===e.freeformUrlPath_&&(e.freeformUrlPath_=fR(e,7));
d.call(b,e.freeformUrlPath_);a&&b.push(a)}else b.push(this.parsedImageUrl_.getObfuscatedGaiaId()),d=b.push,e=this.parsedImageUrl_,void 0==e.photoId_&&(e.photoId_=fR(e,1)),d.call(b,e.photoId_),b.push(this.parsedImageUrl_.getImageVersion()),d=b.push,e=this.parsedImageUrl_,void 0==e.signature_&&(e.signature_=fR(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=WG(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();
a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));return a};
var qQb=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],hR=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new U.ReplaySubject(1);this.person$=this.providedEmail$.pipe(ig(function(d){return HPb(c.peopleService,d)}),S(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;var k=new gR(h);k.setSize(48);h=k.build()||h}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),fg(1));this.outOfOfficeDescription$=
new U.ReplaySubject;this.init=new U.ReplaySubject(1);this.destroyed$=new U.ReplaySubject(1)};hR.prototype.ngOnInit=function(){var a=this;this.person$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&rQb(this)};var rQb=function(a){a.waldoService&&a.person$.pipe(ig(function(b){return b?TPb(a.waldoService,b.email):(0,U.of)("")}),jg(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
ji.Object.defineProperties(hR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});hR.\u0275fac=function(a){return new (a||hR)(C(uQ),C(TQ,8))};
hR.\u0275cmp=w({type:hR,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&&(Ee(qQb),O(0,Iza,4,4,"onedev-person-hovercard-body",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.person$))},dependencies:[ux,nQ,Fx],encapsulation:2,changeDetection:0});
var sQb=[[["onedev-hovercard-action"],["",8,"actions"]]],iR=function(){};iR.prototype.ngOnInit=function(){};iR.\u0275fac=function(a){return new (a||iR)};
iR.\u0275cmp=w({type:iR,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&&(Ee(sQb),O(0,Jza,3,3,"onedev-person-hovercard",0))},dependencies:[hR,eN,fN],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 jR=function(){this.isNonObfuscatedEmail=Gn};jR.\u0275fac=function(a){return new (a||jR)};
jR.\u0275cmp=w({type:jR,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&&(Ee(),O(0,Lza,6,4,"ng-container",0),O(1,Mza,1,0,"ng-template",null,1,Pf));if(a&2){var c=M(2);D("ngIf",!!b.email&&b.isNonObfuscatedEmail(b.email))("ngIfElse",c)}},dependencies:[ux,
Ex,dN,hN,iR],encapsulation:2,changeDetection:0});
var kR=function(){};kR.prototype.transform=function(a){if(Gn(a))return a};kR.\u0275fac=function(a){return new (a||kR)};kR.\u0275pipe=Ec({name:"omitObfuscatedEmail",type:kR,pure:!0});
var lR=function(a){Z.call(this,a)};V(lR,Z);lR.prototype.getDisplayName=function(){return W(this,1)};lR.prototype.setDisplayName=function(a){return l(this,1,a)};lR.prototype.getPhotoUrl=function(){return W(this,2)};lR.prototype.toObject=function(){return tQb(void 0,this)};var tQb=function(a,b){if(null!=b){var c={displayName:n(p(b,1)),photoUrl:n(p(b,2)),highResolutionPhotoUrl:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var mR=function(a){Z.call(this,a)};V(mR,Z);mR.prototype.toObject=function(){var a=null!=this?{userProfileMap:Kb(Zi(this,1,lR),void 0,tQb)}:void 0;return a};mR.messageId="b.UserProfileBatchResponse";
var nR=function(a,b){var c=this;this.userProfilesBatchApiConfig=a;this.batchApiAdapter=b;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new rKb(function(d){return c.batchAdaptedGet(d)},100)};nR.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};nR.\u0275fac=function(a){return new (a||nR)(t(oR),t(hJ))};nR.\u0275prov=lc({token:nR,factory:nR.\u0275fac,providedIn:"root"});var oR=function(a){this.executor=a};
oR.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(v(a)).join(",")}},responseConstructor:mR}).pipe(Sf(function(){return(0,U.of)(new mR)}))};oR.prototype.split=function(a,b){return Zi(b,1,lR).get(a)||new lR};oR.\u0275fac=function(a){return new (a||oR)(t(pI))};oR.\u0275prov=lc({token:oR,factory:oR.\u0275fac,providedIn:"root"});
var pR=function(a){var b=this;this.waldoAvailabilityService=a;this.user="";this.userSubject=new U.ReplaySubject(1);this.availability=this.userSubject.pipe(ig(function(c){return TPb(b.waldoAvailabilityService,c)}))};pR.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};pR.\u0275fac=function(a){return new (a||pR)(C(TQ))};
pR.\u0275cmp=w({type:pR,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},features:[Jc],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&&(O(0,Nza,6,3,"div",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.availability))},dependencies:[ux,Fx],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 qR=function(a){this.refreshMonitor=a;this.user="";this.coinonly=null};qR.\u0275fac=function(a){return new (a||qR)(C(dL))};qR.\u0275cmp=w({type:qR,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&O(0,Oza,1,2,"ng-template",0);a&2&&D("refreshable",b.refreshMonitor.getObservable())},dependencies:[pR,PO],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});
var rR=function(){this.issueId=0;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.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.sloSnoozeUntil=null;this.status="NEW"};
rR.prototype.setData=function(a,b,c){this.issueId=b;a=Fi(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=Fi(a);this.assignee=Ol(a.assigneeUser);this.assigneeUser=a.assigneeUser;this.authorUser=a.authorUser;this.attachmentId=a.attachmentId;this.blockedByIssueId=a.blockedByIssueId;this.blockingIssueId=a.blockingIssueId;this.cc=yqa(a.ccUsers)||[];this.ccUsers=a.ccUsers||[];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=Ol(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=Ol(a.authorUser);this.verifiedInVersion=a.verifiedInVersion;this.verifier=Ol(a.verifierUser);this.verifierUser=a.verifierUser;this.version=a.version;this.sloSnoozeUntil=a.sloSnoozeUntil;var d,e;this.effortEstimate=null!=(e=null==(d=a.effort)?void 0:W(d,2))?e:null;this.customField=[];a&&(this.customField=(a.customField||[]).filter(function(f){return f}).map(function(f){return new uQb(f)}));d={};c=r(c);for(e=c.next();!e.done;d={$jscomp$loop$prop$fieldResource$1689:d.$jscomp$loop$prop$fieldResource$1689},
e=c.next())d.$jscomp$loop$prop$fieldResource$1689=e.value,e=d.$jscomp$loop$prop$fieldResource$1689.allowedValue?d.$jscomp$loop$prop$fieldResource$1689.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$1689.customFieldId}}(d)))?(a.type=d.$jscomp$loop$prop$fieldResource$1689.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1689.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1689.customFieldId)]=
a):(a=new uQb({customFieldId:d.$jscomp$loop$prop$fieldResource$1689.customFieldId}),a.type=d.$jscomp$loop$prop$fieldResource$1689.type,a.customFieldName=d.$jscomp$loop$prop$fieldResource$1689.name,a.choices=e,this.customFieldMap[String(d.$jscomp$loop$prop$fieldResource$1689.customFieldId)]=a)};
var wQb=function(a){for(var b=[],c=r(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=vQb(a,d.customFieldId);e=e?e.getValue():null;var f=d.getValue();if(!Ei(e,f)){if(e=d.isEmpty())d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalModelData){sR(Ol(a.originalModelData.assigneeUser),a.assignee,"assignee",b);sR(a.originalModelData.componentId,a.componentId,"componentId",b);sR(a.originalModelData.createdTimeMicros,
a.createdTimeMicros,"createdTimeMicros",b);sR(a.originalModelData.deletionReason,a.deletionReason,"deletionReason",b);sR(a.originalModelData.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);sR(a.originalModelData.inProd,a.inProd,"inProd",b);sR(a.originalModelData.isArchived,a.isArchived,"isArchived",b);sR(a.originalModelData.isDeleted,a.isDeleted,"isDeleted",b);sR(a.originalModelData.priority,a.priority,"priority",b);sR(Ol(a.originalModelData.reporterUser),a.reporter,"reporter",b);
sR(a.originalModelData.severity,a.severity,"severity",b);sR(a.originalModelData.significanceOverride,a.significanceOverride,"significanceOverride",b);sR(a.originalModelData.snapshotNumber,a.snapshotNumber,"snapshotNumber",b);sR(a.originalModelData.status,a.status,"status",b);sR(a.originalModelData.title,a.title,"title",b);sR(a.originalModelData.type,a.type,"type",b);sR(Ol(a.originalModelData.authorUser),a.user,"user",b);sR(Ol(a.originalModelData.verifierUser),a.verifier,"verifier",b);sR(a.originalModelData.version,
a.version,"version",b);var h,k,q,u;sR(null!=(q=null==(h=a.originalModelData.sloSnoozeUntil)?void 0:h.getSeconds())?q:0,null!=(u=null==(k=a.sloSnoozeUntil)?void 0:k.getSeconds())?u:0,"sloSnoozeUntil",b);var x,E;sR(null!=(E=null==(x=a.originalModelData.effort)?void 0:W(x,2))?E:null,a.effortEstimate,"effortEstimate",b);tR(a.originalModelData.attachmentId,a.attachmentId,"attachmentId",b);tR(yqa(a.originalModelData.ccUsers),a.cc,"ccs",b);tR(a.originalModelData.changelist,a.changelist,"changelists",b);
tR(a.originalModelData.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);tR(a.originalModelData.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);tR(a.originalModelData.foundInVersion,a.foundInVersion,"foundInVersion",b);tR(a.originalModelData.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);tR(a.originalModelData.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);tR(a.originalModelData.hotlistId,a.hotlistId,"hotlists",b)}return 0==b.length?null:{issueId:a.issueId,
actions:b}},sR=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:null!=b?String(b):void 0})},tR=function(a,b,c,d){var e=Pi(b||[],new Set(a));a=Pi(a||[],new Set(b));0==e.length||d.push({fieldName:c,value:e.join(","),actionType:"ADD"});0==a.length||d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})};g=rR.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){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:sh(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=vn[this.status];!this.assignee&&this.originalModelData&&Ol(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&&Ol(this.originalModelData.verifierUser)&&"VERIFIED"===this.originalModelData.status&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=vn[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};var xQb=function(a,b){a.blockingIssueId=b},yQb=function(a,b){a.blockedByIssueId=b};
rR.prototype.setSloSnoozeUntil=function(a){this.sloSnoozeUntil=a};var vQb=function(a,b){return a.originalModelData?(a=(a.originalModelData.customField||[]).find(function(c){return c.customFieldId===b}))?new jl(a):null:null},uQb=function(a){jl.call(this,a);this.choices=this.customFieldName=this.type=null};V(uQb,jl);uQb.prototype.isRepeated=function(){return null==this.type?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
var zQb=new Map([["assignee",function(a,b){a.assigneeUser=Vl(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Vl).filter(cl)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Vl(b.reporter)}],["verifier",function(a,b){a.verifierUser=Vl(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 uR=function(a){this.$window=a};uR.\u0275fac=function(a){return new (a||uR)(t(jM))};uR.\u0275prov=lc({token:uR,factory:uR.\u0275fac,providedIn:"root"});
var vR=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.confirmationDialogService=c},AQb=function(a,b){return new Promise(function(c){wR(a,b,function(){c(!0)},function(){c(!1)})})},wR=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=In("");if("VULNERABILITY"===b)e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Ln(Ly('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'),
Kn("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=Ln(Ly('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. '),Kn("A",(b.href="http://goto.google.com/pib-slo",b.target="_blank",b),"Learn more"),Ly(".\n\nDO NOT use this type to file "),
Kn("A",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Ly(". Incidents should be filed at "),Kn("A",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),Ly(".\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(){}})}};vR.\u0275fac=function(a){return new (a||vR)(t(yH),t(dP),t(PM))};vR.\u0275prov=lc({token:vR,factory:vR.\u0275fac,providedIn:"root"});
var BQb=function(a){var b=[],c=[].concat.apply([],v(a.map(function(e){return e.actions})));a={};c=r(c);for(var d=c.next();!d.done;a={$jscomp$loop$prop$action$1691:a.$jscomp$loop$prop$action$1691},d=c.next())a.$jscomp$loop$prop$action$1691=d.value,b.some(function(e){return function(f){return Ei(e.$jscomp$loop$prop$action$1691,f)}}(a))||b.push(a.$jscomp$loop$prop$action$1691);return b},CQb=function(a){return Array.from(new Set([].concat.apply([],v(a.map(function(b){return b.issueIds})))))};
var xR=function(a){this.dateFormatter=a};
xR.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(Ok(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(Ok(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};xR.\u0275fac=function(a){return new (a||xR)(t(tP))};xR.\u0275prov=lc({token:xR,factory:xR.\u0275fac,providedIn:"root"});
var yR=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"]},FQb=function(a,b,c,d){c=void 0===c?null:c;d=void 0===d?"":d;var e;b.bulkEditOps&&(e=CQb(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=BQb(b.bulkEditOps));b=DQb(f).map(function(h){return EQb(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+"."},DQb=function(a){var b=
[],c=[];a=r(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)},EQb=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 jl(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=Ik(a.hotlistFridge.watch(String(h),{trustUncertainMemory:!0})))?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?Mk(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 "'+vn[b.value].displayValue+'"'};yR.\u0275fac=function(a){return new (a||yR)(t(xR),t(bL))};yR.\u0275prov=lc({token:yR,factory:yR.\u0275fac,providedIn:"root"});
var zR=function(a){Z.call(this,a,-1,GQb)};V(zR,Z);zR.prototype.getAttachmentsList=function(){return xb(this,Nm,1)};zR.prototype.setAttachmentsList=function(a){Fb(this,1,a)};var GQb=[1];zR.prototype.toObject=function(){var a=null!=this?{attachmentsList:Hb(this.getAttachmentsList(),THb)}:void 0;return a};zR.messageId="b.CreateAttachmentsResponse";
var AR=function(a){Z.call(this,a)};V(AR,Z);AR.prototype.getErrorMessage=function(){return W(this,2)};AR.prototype.setErrorMessage=function(a){l(this,2,a)};AR.prototype.toObject=function(){var a=null!=this?{encryptedMedia:Lb(xm(this,1)),errorMessage:n(p(this,2))}:void 0;return a};AR.messageId="b.EncryptedMediaResponse";
var HQb=function(){},BR=function(a){this.executor=a};V(BR,HQb);var IQb=function(a,b){var c=new kHb;c.setFilename(b.filename);c.setMimeType(b.mimeType);null!=b.encryptedBlobId&&l(c,3,b.encryptedBlobId);l(c,4,b.docId);null!=b.size&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:AR}).then(Hra)};BR.\u0275fac=function(a){return new (a||BR)(t(qI))};BR.\u0275prov=lc({token:BR,factory:BR.\u0275fac,providedIn:"root"});
var CR=function(){};CR.\u0275fac=function(a){return new (a||CR)};CR.\u0275prov=lc({token:CR,factory:CR.\u0275fac,providedIn:"root"});var DR=function(a){this.executor=a};V(DR,CR);DR.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})};
DR.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:Nm}).then(zm)};DR.\u0275fac=function(a){return new (a||DR)(t(qI))};DR.\u0275prov=lc({token:DR,factory:DR.\u0275fac,providedIn:"root"});
var ER=function(a,b,c){this.dialogRef=a;this.data=c;this.readMoreLink=b.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings";this.userEmails=c.userEmails};ER.prototype.close=function(a){this.dialogRef.close(a)};ER.\u0275fac=function(a){return new (a||ER)(C(CB),C(dP),C(NB))};
ER.\u0275cmp=w({type:ER,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&&(F(0,"div",0)(1,"h1",1),P(2,"User may not have access"),G(),F(3,"section",2)(4,"p"),P(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
G(),F(6,"ul"),O(7,Qza,2,1,"li",3),G(),F(8,"section"),P(9,"Continue anyway?"),G()(),F(10,"footer",4)(11,"div",5)(12,"a",6),P(13,"Learn more"),G()(),F(14,"button",7),J("click",function(){return b.close(!0)}),P(15,"Continue"),G(),F(16,"button",8),J("click",function(){return b.close(!1)}),P(17,"Cancel"),G()()());a&2&&(B(7),D("ngForOf",b.userEmails),B(5),D("href",b.readMoreLink,Ud))},dependencies:[yx,rB,RB,SB,TB],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});
var FR=function(a,b,c,d,e){this.matDialogService=a;this.analytics=b;this.butterBar=c;this.logger=d;this.accessPolicy=e},KQb=function(a,b){var c=b.componentId,d=b.userEmails,e=b.relation,f=b.analyticsEventLabel,h,k,q;return hf(function(u){switch(u.nextAddress){case 1:if(d.every(function(x){return 0===x.length}))return u.return(!0);It(u,2);return jf(u,JQb(a,c,d,e),4);case 4:h=u.yieldResult;if(0===h.length)return u.return(!0);Zn(a.analytics,ao.ADD_USER_WITHOUT_ACCESS,"warn",f);return jf(u,a.confirm(h,
e),5);case 5:k=u.yieldResult;if(!k)return tK(a.butterBar,"Save cancelled.",4E3),Zn(a.analytics,ao.ADD_USER_WITHOUT_ACCESS,"cancel",f),u.return(!1);Zn(a.analytics,ao.ADD_USER_WITHOUT_ACCESS,"proceed",f);return u.return(!0);case 2:return q=Kt(u),a.logger.error(q),u.return(!1)}})},JQb=function(a,b,c,d){var e;return hf(function(f){if(1==f.nextAddress)return jf(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(v(e.noAccessEmails||[]),v(e.unknownEmails||
[])))})};FR.prototype.confirm=function(a,b){var c=this,d,e,f;return hf(function(h){if(1==h.nextAddress)return d={userEmails:a,relation:b},e=c.matDialogService.open(ER,{width:"400px",data:d}),jf(h,(0,U.firstValueFrom)(DB(e)),2);f=h.yieldResult;return h.return(!!f)})};FR.\u0275fac=function(a){return new (a||FR)(t(PB),t(FM),t(sK),t(vK),t(EL))};FR.\u0275prov=lc({token:FR,factory:FR.\u0275fac,providedIn:"root"});
var GR=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};GR.prototype.cancel=function(){this.state=4};var LQb={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};
var HR=function(a,b){this.initialComment=a=void 0===a?"":a;this.fromTemplate=void 0===b?!1:b;this.uploads=[];this.formattingMode=1;this.value=a};HR.prototype.reset=function(){this.value="";MQb(this)};
var MQb=function(a){for(var b=r(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},NQb=function(a){return a.fromTemplate&&a.initialComment===a.value},OQb=function(a){var b=[];a=r(a.uploads);for(var c=a.next();!c.done;c=a.next())c=c.value,2===c.state&&c.blobRef&&b.push(Fi(c.blobRef));return b};HR.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var PQb=function(a){return!a.isEmpty()&&!Bs(a)};HR.prototype.isEmpty=function(){return!this.value&&!QQb(this)};
var Bs=function(a){return a.uploads.some(function(b){return 1===b.state||3===b.state})},QQb=function(a){return a.uploads.some(function(b){return 2===b.state})};
var IR=new sd("routeParams",{factory:function(){return uc(gM).params}});
var JR=function(a,b,c,d){this.routeParams=a;this.issueComments=b;this.draftStore=c;this.errorHandler=d};JR.prototype.get=function(a){var b=this;if(this.routeParams.comment)return(0,U.of)(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Ki(this.routeParams.template_comment)||1;return(0,U.defer)(function(){return RQb(b,c,d,b.routeParams.do_attribution)})}return a?(0,U.of)(this.draftStore.$window.sessionStorage.getItem(qo(qC(a)))||""):(0,U.of)("")};
var RQb=function(a,b,c,d){var e,f,h,k,q;return hf(function(u){if(1==u.nextAddress)return It(u,2),jf(u,a.issueComments.get(b,c),4);if(2!=u.nextAddress)return e=u.yieldResult,f=e.unlinkifiedComment||e.comment,h=(new Date(Number(e.lastModified)/1E3)).toLocaleDateString(),d?(k="> From issue "+b+" on "+h+":",u.return(k+"\n\n"+f)):u.return(f);q=Kt(u);zK(a.errorHandler,q);return u.return("")})};JR.\u0275fac=function(a){return new (a||JR)(t(IR),t(bO),t(uR),t(xK))};
JR.\u0275prov=lc({token:JR,factory:JR.\u0275fac,providedIn:"root"});
var SQb=function(a,b,c,d){var e=this;this.issueId=a;this.defaultCommentSource=b;this.issueFetchResponseFridge=c;this.activeSession=d;this.issueFr$=lL(this.issueFetchResponseFridge,this.issueId);this.issue$=this.issueFr$.pipe(S(function(f){return null==f?void 0:f.issue}));this.componentId$=this.issue$.pipe(S(function(f){return null==f?void 0:f.snapshot[0].componentId}),Wf());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(S(function(f){return new HR(f)}),hg(new HR("")),fg({bufferSize:1,
refCount:!0}));this.comment=function(){return Ik(e.comment$)};this.createRestrictedResourcesComponentWhitelist=ob(this.activeSession.config,13);this.componentJudgementForNewContent$=this.componentId$.pipe(S(function(f){if(f&&e.createRestrictedResourcesComponentWhitelist.includes(f))return(new Gl).setSeverity(2).setJudgementReason("None Specified")}),fg({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new U.BehaviorSubject(void 0);this.judgementForNewContent$=(0,U.combineLatest)([this.componentJudgementForNewContent$.pipe(hg(void 0)),
this.userDefinedJudgementForNewContent$]).pipe(S(function(f){var h=r(f);f=h.next().value;h=h.next().value;return null!=h?h:f}),fg({bufferSize:1,refCount:!1}));this.judgementForNewContent=function(){return Ik(e.judgementForNewContent$)}},TQb=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=r(b.uploads);for(var f=b.next();!f.done;f=b.next())f=f.value,2===f.state&&f.blobRef&&(f=
Fi({attachment:f.blobRef}),d&&(f.contentJudgement={severity:Dl(d.getSeverity()),judgementReason:d.getJudgementReason()}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},UQb=function(a){var b=TQb(a),c=b.attachmentsWithJudgements;a={issueId:Number(a.issueId),actions:[]};b.commentText&&a.actions.push({fieldName:"comment"});c.length&&a.actions.push({fieldName:"attachments"});return a},KR=function(a,b,c){this.defaultCommentSource=a;this.issueFetchResponseFridge=
b;this.activeSession=c};KR.prototype.create=function(a){return new SQb(a,this.defaultCommentSource,this.issueFetchResponseFridge,this.activeSession)};KR.\u0275fac=function(a){return new (a||KR)(t(JR),t(kL),t(yH))};KR.\u0275prov=lc({token:KR,factory:KR.\u0275fac,providedIn:"root"});
var LR=function(){};LR.prototype.isSloSnoozed=function(a){return!!a&&a.getSeconds()>Date.now()/1E3};
var MR=function(a){return!!a&&a.hasTargetTime()&&0!==a.getTargetTime().getSeconds()},VQb=function(a){return MR(a.getAssignmentBounds())||MR(a.getResponseBounds())||MR(a.getClosureBounds())},WQb=function(a){if(!a)return null;var b=[],c=[];a.hasAssignmentBounds()&&Rza(b,c,a.getAssignmentBounds(),"ASSIGNMENT");a.hasResponseBounds()&&Rza(b,c,a.getResponseBounds(),"RESPONSE");a.hasClosureBounds()&&Rza(b,c,a.getClosureBounds(),"CLOSURE");return 0<b.length?(b.sort(Sza),b[0]):0<c.length?(c.sort(Sza),{sloBounds:c[0].sloBounds,
sloMetric:""}):null};LR.\u0275fac=function(a){return new (a||LR)};LR.\u0275prov=lc({token:LR,factory:LR.\u0275fac,providedIn:"root"});
var XQb=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.enableWtdmFieldPerTypeVisibility=$i("enableWtdmMvpUi")||!1;this.enableNonWtdmFieldPerTypeVisibility=$i("enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issueFetchResponse$=lL(this.issueFetchResponseFridge,this.issueId);this.issue$=
this.issueFetchResponse$.pipe(S(function(h){return null==h?void 0:h.issue}));this.issueSnapshot$=this.issue$.pipe(S(function(h){return null==h?void 0:h.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(S(function(h){var k;return null==h?void 0:null==(k=h.aggregatedData)?void 0:k.sloStatus}),S(Mua),S(function(h){return!!h&&VQb(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(S(function(h){return null!=(null==h?void 0:h.type)&&zDb.has(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(S(function(h){return h?
!f.enableWtdmFieldPerTypeVisibility:!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=(0,U.combineLatest)([this.hasSloDefined$,this.isWtdmType$]).pipe(S(function(h){var k=r(h);h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(S(function(h){return!f.enableWtdmFieldPerTypeVisibility||!h}));this.isChangelistPrimary$=(0,U.combineLatest)([this.isWtdmType$,this.issueSnapshot$]).pipe(S(function(h){var k=r(h);
h=k.next().value;k=k.next().value;return!f.enableWtdmFieldPerTypeVisibility||!h||"STORY"===(null==k?void 0:k.type)||"TASK"===(null==k?void 0:k.type)}));this.customFields$=this.issueFetchResponse$.pipe(S(function(h){var k;return null!=(k=null==h?void 0:h.customFields)?k:[]}));this.visibleFields$=this.issue$.pipe(S(function(h){var k;return null!=(k=null==h?void 0:h.visibleFields)?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(S(function(h){return h.map(function(k){return k.customFieldId}).filter(cl)}),
S(function(h){return new Set(h)}),fg({refCount:!0,bufferSize:1}));this.visibleCustomFields$=(0,U.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(S(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),fg({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=(0,U.combineLatest)([this.visibleFieldIds$,this.customFields$]).pipe(S(function(h){h=r(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),
fg({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=(0,U.combineLatest)([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(S(function(h){var k=r(h);h=k.next().value;var q=k.next().value,u=k.next().value,x=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||u?0:1)+(!f.showChangelists||x?0:2)+k.length}),fg({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(S(function(h){return 0<
h}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(S(function(h){return 1===h?"Show 1 additional field":"Show "+h+" additional fields"}))},NR=function(a,b,c,d){this.issueFetchResponseFridge=a;this.constants=b;this.activeSession=c;this.sloStatusHelpersService=d};NR.prototype.create=function(a){return new XQb(a,this.issueFetchResponseFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};NR.\u0275fac=function(a){return new (a||NR)(t(kL),t(ZH),t(yH),t(LR))};
NR.\u0275prov=lc({token:NR,factory:NR.\u0275fac,providedIn:"root"});
var cLb=ao.EDIT_ISSUE,OR=function(a,b){yI.call(this);this.analytics=a;this.clearcut=b;this.issueToTrackingState=new Map;this.getState=ro(this.issueToTrackingState,Tza);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")};V(OR,yI);OR.\u0275dir=yI.\u0275dir;
var YQb=function(a,b){a.resetState(b);a.getState(b)},ZQb=function(a,b){var c=a.getState(b);a.trackDestroy("edit-count",c.editCount);c=Date.now()-c.startTime;CO(a.clearcut,c,"idp-time-on-page");a.resetState(b)},PR=function(a,b,c){var d=a.getState(b);c&&(d.editCount++,a.trackEdit(c.label,c.value));d.firstActionSeen||(b=Date.now()-a.getState(b).startTime,a.trackFirstAction("time-to-action",b),CO(a.clearcut,b,"idp-time-to-action"),d.firstActionSeen=!0)};OR.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};
OR.\u0275fac=function(a){return new (a||OR)(t(FM),t(BO))};OR.\u0275prov=lc({token:OR,factory:OR.\u0275fac,providedIn:"root"});
var $Qb={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},aRb={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},bRb={type:"START",displayText:"Start work",description:"Change issue status to 'Accepted'"},cRb={type:"FIX",displayText:"Mark fixed",description:"Change issue status to 'Fixed'"},dRb={type:"VERIFY",displayText:"Verify",description:"Change issue status to 'Verified'"},eRb={type:"REOPEN",displayText:"Re-open",
description:"Change issue status back to 'Assigned'"};
var gRb=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(fg({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(S(function(f){return null==f?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(S(function(f){return(null==f?void 0:f.assigneeUser)&&Rl(f.assigneeUser)}),S(Zk));
this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(S(function(f){return null==f?void 0:f.componentId}),Wf(),ig(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):(0,U.of)(void 0)}),S(function(f){return f&&Rl(f.snapshot.assigneeUser)}),fg({bufferSize:1,refCount:!0}));this.defaultAssigneeForComponent=function(){return Ik(e.defaultAssigneeForComponent$)};this.issueAssigneeQuickAction$=(0,U.combineLatest)([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(S(function(f){var h=
r(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&h&&f!==h?aRb:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(S(function(f){return f&&fRb(e,f)}))},fRb=function(a,b){var c=a.activeSession.getUserEmail();a=Rl(b.assigneeUser)===c;c=Rl(b.verifierUser)===c;b=b.status;if(c&&"FIXED"===b)return dRb;if(a)switch(b){case "ASSIGNED":return bRb;case "ACCEPTED":return cRb;default:return eRb}switch(b){case "NEW":return $Qb;case "ASSIGNED":return $Qb;case "ACCEPTED":return $Qb;
default:return eRb}},QR=function(a,b,c){this.activeSession=a;this.issueFridge=b;this.componentTemplatesFridge=c};QR.prototype.create=function(a){return new gRb(a,this.activeSession,this.issueFridge,this.componentTemplatesFridge)};QR.\u0275fac=function(a){return new (a||QR)(t(yH),t(hL),t(CK))};QR.\u0275prov=lc({token:QR,factory:QR.\u0275fac,providedIn:"root"});
var RR=function(a){a=void 0===a?[]:a;this.internalValue$=new U.BehaviorSubject(new Set);a=r(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};RR.prototype.add=function(a){this.value.add(a);this.internalValue$.next(this.value);return this};RR.prototype.clear=function(){this.value.clear();this.internalValue$.next(this.value)};RR.prototype.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};RR.prototype.has=function(a){return this.value.has(a)};
var Hs=function(a,b){return a.internalValue$.pipe(S(function(c){return c.has(b)}),Wf())};RR.prototype[Symbol.iterator]=function(){return this.value.values()};RR.prototype.toString=function(){return"[ReactiveSet](["+[].concat(v(this.value.values())).join(", ")+"])"};RR.prototype.indexOf=function(a){return[].concat(v(this.value.values())).indexOf(a)};
ji.Object.defineProperties(RR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.value}},size:{configurable:!0,enumerable:!0,get:function(){return this.value.size}},size$:{configurable:!0,enumerable:!0,get:function(){return this.internalValue$.pipe(S(function(a){return a.size}),Wf())}}});
var hRb={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete",COMMENT:"comment",TITLE:"title",PARENT_ISSUES:"parentIssues"},iRb=function(){this.propertiesBeingSaved=new RR};iRb.prototype.get=function(a){return this.propertiesBeingSaved.has(Mn(a))};var SR=function(a,b){a.propertiesBeingSaved.add(Mn(b))},TR=function(a,b){a.propertiesBeingSaved.delete(Mn(b))};
iRb.prototype.properties=function(){return[].concat(v(this.propertiesBeingSaved))};
var UR=function(){};UR.prototype.transform=function(a){return so(a)};UR.\u0275fac=function(a){return new (a||UR)};UR.\u0275pipe=Ec({name:"appendDomain",type:UR,pure:!0});
var VR=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb){var va=this;this.issueFetchResponseFridge=a;this.activeSession=b;this.butterBar=c;this.issueInteractionsTracking=d;this.issueApi=e;this.componentFridge=f;this.permissionsFridge=h;this.eventsForIssueFridge=k;this.statusMessages=q;this.errorHandler=u;this.confirmationDialogService=x;this.principalTypes=E;this.issuePermissionService=I;this.accessPolicy=N;this.issueTypeDialog=L;this.logger=T;this.issueFridge=Y;this.confirmNoAccessService=
ja;this.issueService=ha;this.attachmentsMember=ra;this.userPreferencesManager=Fa;this.issueComments=Ka;this.draftStore=Ca;this.attachmentApi=La;this.issueFieldsFactory=jb;this.issueQuickActionsFactory=db;this.issueCommentDraftFactory=Mb;this.isSavingMap=new Map;this.savingState=ro(this.isSavingMap,function(){return new iRb});this.issueFieldsMap=new Map;this.issueFields=ro(this.issueFieldsMap,function(Ba){return va.issueFieldsFactory.create(Ba)});this.issueQuickActionsMap=new Map;this.issueQuickActions=
ro(this.issueQuickActionsMap,function(Ba){return va.issueQuickActionsFactory.create(Ba)});this.editableIssueMap=new Map;this.editableIssue$=ro(this.editableIssueMap,function(Ba){return jRb(va,Ba)});this.editableIssue=function(Ba){return va.editableIssue$(Ba).value};this.subscriptions=new Map;this.getSubscription=ro(this.subscriptions,function(){return new U.Subscription});this.issueCommentDraftMap=new Map;this.issueCommentDraft=ro(this.issueCommentDraftMap,function(Ba){return va.issueCommentDraftFactory.create(Ba)});
this.LEGACY_EDIT_ISSUE={getRequestDataForUpdate:this.getRequestDataForUpdate.bind(this),updateIssue:this.updateIssue.bind(this),preUpdate:this.preUpdate.bind(this),postUpdate:this.postUpdate.bind(this)};this.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY={saveCommentDraft:this.saveCommentDraft.bind(this)}};VR.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()};
VR.prototype.updateComponent=function(a,b,c){var d=this,e,f,h,k,q;return hf(function(u){if(1==u.nextAddress)return e=d.editableIssue(a),e.componentId=b,(f=d.getRequestDataForUpdate(e))&&f.actions&&f.actions.length?jf(u,d.getRetentionState(a),2):u.return();h=u.yieldResult;d.preUpdate(f);k={issueId:a,componentId:b};q=c?d.issueApi.moveIssueExternal(a,k):d.issueApi.moveIssue(a,k);return u.return(d.postUpdate(q,f,{originalRetentionState:h}))})};
var U6a=function(a,b,c){var d;return hf(function(e){if(!c)return uK(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())})},m8a=function(a,b,c){var d,e,f,h;return hf(function(k){if(1==k.nextAddress){d=WBb(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):jf(k,AQb(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())})},o8a=function(a,b,c){var d,e,f;return hf(function(h){d=n8a(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())})},lRb=function(a,b,c){var d,e,f;return hf(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=Number(c);d.status="DUPLICATE";e=a.getRequestDataForUpdate(d);
return e?(f=e.actions.find(function(k){return"duplicateOfIssueId"===k.fieldName&&!Wi(k.value||"")}))&&f.value?h.return(kRb(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})};
VR.prototype.clearCanonicalIssue=function(a){var b=this,c,d,e,f;return hf(function(h){c=b.editableIssue(a);if(!c.duplicateOfIssueId)return h.return();d={issueId:Number(a),targetIds:[c.duplicateOfIssueId],actionType:"REMOVE",relation:"DUPLICATE"};c.setStatus(c.assignee?"ASSIGNED":"NEW");e=b.getRequestDataForUpdate(c);if(!e||!e.actions)return h.return();b.preUpdate(e);f=b.issueApi.relateIssue(a,d);return h.return(b.postUpdate(f,e))})};
var mRb=function(a,b,c){var d,e;return hf(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})};
VR.prototype.performQuickAction=function(a,b){var c=this,d,e,f;return hf(function(h){if(!b)return h.return();d=c.editableIssue(a);e=c.issueQuickActions(a);switch(b.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:sh(b.type)}return h.return(null!=(f=c.updateIssue(a))?f:Promise.resolve())})};
var a7a=function(a,b,c){var d,e;return hf(function(f){d=a.editableIssue(b);var h;d.effortEstimate=null!=(h=null==c?void 0:W(c,2))?h:null;return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},Y7a=function(a,b,c){var d,e,f;return hf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.foundInVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},b8a=function(a,b,c){var d,e,f;return hf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.verifiedInVersion=e;return h.return(null!=
(f=a.updateIssue(b))?f:Promise.resolve())})},$7a=function(a,b,c){var d,e,f;return hf(function(h){d=a.editableIssue(b);e=Si(c,!1);d.targetedToVersion=e;return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},d8a=function(a,b,c){var d,e;return hf(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},T7a=function(a,b,c){var d,e,f;return hf(function(h){d=XBb(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())})},Q7a=function(a,b,c){var d,e;return hf(function(f){d=a.editableIssue(b);d.setSloSnoozeUntil(c);return f.return(null!=(e=a.updateIssue(b))?e:Promise.resolve())})},W7a=function(a,b,c){var d,e,f;return hf(function(h){d=a.editableIssue(b);d.changelist=null!=(e=c)?e:[];return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},k8a=function(a,b,c,d){var e,f;return hf(function(h){e=a.editableIssue(b);e.setCustomField(c,
d);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},q7a=function(a,b,c){var d,e,f;return hf(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):jf(h,KQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"verifier"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setVerifier(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},
bt=function(a,b,c){var d,e,f;return hf(function(h){if(1==h.nextAddress)return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?h.jumpTo(2):jf(h,KQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:[c],relation:"writer",analyticsEventLabel:"assignee"}),3);if(2!=h.nextAddress&&(e=h.yieldResult,!e))return h.return();d.setAssignee(c);return h.return(null!=(f=a.updateIssue(b))?f:Promise.resolve())})},oRb=function(a,b,c){var d,e,f,h,k,q,u,x,E;return hf(function(I){switch(I.nextAddress){case 1:d=
a.editableIssue(b);e=xna(d.cc,c);f=e.added;h=e.removed;if(a.issuePermissionService.isImplicitAccessEnabled()){q=d.cc.some(function(N){return YN(a.issuePermissionService,N)});u=h.some(function(N){return YN(a.issuePermissionService,N)});if(!q||!u){I.jumpTo(3);break}return jf(I,nRb(a,b,d.componentId),6)}return jf(I,KQb(a.confirmNoAccessService,{componentId:String(d.componentId),userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:k=I.yieldResult;if(!k)return I.return();I.jumpTo(3);break;
case 6:if(x=I.yieldResult,!x)return I.return();case 3:return d.cc=c,I.return(null!=(E=a.updateIssue(b))?E:Promise.resolve())}})};VR.prototype.unarchive=function(a){var b=this,c,d;return hf(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return(null!=(d=b.updateIssue(a))?d:Promise.resolve())})};
VR.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return hf(function(h){switch(h.nextAddress){case 1:return d={issueId:Number(a),retention:b},e=c.savingState(a),SR(e,"retention"),It(h,2,3),jf(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return jf(h,c.issueFridge.poke(a),6);case 6:tK(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Lt(h);TR(e,"retention");Mt(h,0);break;case 2:f=Kt(h),zK(c.errorHandler,f),h.jumpTo(3)}})};
var pRb=function(a,b){var c,d,e;return hf(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.delete(Number(b),"ABUSE");return jf(f,a.postUpdate(e,d),0)})},E8a=function(a,b){var c,d,e;return hf(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=a.getRequestDataForUpdate(c);if(!d||!d.actions)return f.jumpTo(0);a.preUpdate(d);e=a.issueService.undelete(Number(b));
return jf(f,a.postUpdate(e,d),0)})};
VR.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return hf(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),jf(q,(0,U.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();It(q,3,4);SR(d,"subscribe");return jf(q,c.issueFridge.setNotificationSubscription(a,b),4);case 4:Lt(q);TR(d,"subscribe");Mt(q,0);break;case 3:k=Kt(q),zK(c.errorHandler,k),q.jumpTo(4)}})};
var qRb=function(a,b,c){var d,e;hf(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();It(f,2,3);tK(a.butterBar,"Restoring attachment...");SR(d,"undeleteAttachment");return jf(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:tK(a.butterBar,"Attachment restored."),mL(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Lt(f);TR(d,"undeleteAttachment");Mt(f,0);break;case 2:e=Kt(f),zK(a.errorHandler,e),f.jumpTo(3)}})},
rRb=function(a,b,c,d){var e,f;return hf(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();It(h,2,3);tK(a.butterBar,"Deleting attachment...");SR(e,"deleteAttachment");return jf(h,a.attachmentsMember.delete(b,c,d),5);case 5:tK(a.butterBar,"Attachment deleted."),mL(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b);case 3:Lt(h);TR(e,"deleteAttachment");Mt(h,0);break;case 2:f=Kt(h),zK(a.errorHandler,f),h.jumpTo(3)}})};
VR.prototype.saveCommentDraft=function(a){var b=this,c=this.issueCommentDraft(a),d=c.comment(),e=TQb(c);if(!e.commentText&&!e.attachmentsWithJudgements.length)return Promise.resolve();var f=UQb(c);this.preUpdate(f);return this.postUpdate(function(){return hf(function(h){switch(h.nextAddress){case 1:return jf(h,sRb(b,a),2);case 2:if(!e.commentText){h.jumpTo(3);break}return jf(h,b.issueComments.create(String(a),e.commentText,e.formattingMode,e.judgementForNewContent),4);case 4:d.reset(),b.draftStore.$window.sessionStorage.removeItem(qo(Number(a)));
case 3:if(!e.attachmentsWithJudgements.length){h.jumpTo(5);break}var k=b.attachmentApi;var q={issueId:a,attachmentsWithJudgements:e.attachmentsWithJudgements},u=new PJ;u.setIssueId(String(q.issueId));void 0!==q.attachments&&u.setAttachmentsList(q.attachments);if(void 0!==q.attachmentsWithJudgements){var x=q.attachmentsWithJudgements.map(Ira);Fb(u,3,x)}k=k.executor.post({url:"action/issues/"+q.issueId+"/attachments",body:u,responseConstructor:zR}).then(Jra);return jf(h,k,6);case 6:d.reset();case 5:return c.userDefinedJudgementForNewContent$.next(void 0),
h.return(mL(b.issueFetchResponseFridge,a))}})}(),f)};
var sRb=function(a,b){var c,d;return hf(function(e){if(!Fi(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();c=a.editableIssue(b);var f=[].concat(v(c.cc),[a.activeSession.getUserEmail()]);c.cc=f;d={issueId:Number(b),actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return jf(e,a.issueApi.updateIssue(Number(b),d),0)})},jRb=function(a,b){var c=
lL(a.issueFetchResponseFridge,b).pipe(S(function(e){var f=new rR;if(e){var h=tRb(a,b,Fi(sa(e.issue.snapshot))),k=a.activeSession.getUserEmail();f.currentUserEmail=k;var q;f.setData(h,Number(b),null!=(q=e.customFields)?q:[])}return f})),d=new U.BehaviorSubject(new rR);a.getSubscription(b).add(c.subscribe(d));return d};
VR.prototype.updateIssue=function(a){var b=this.editableIssue(a),c=this.getRequestDataForUpdate(b);if(!c)return null;for(var d=!1,e=[],f=[],h=a,k=r(c.actions),q=k.next();!q.done;q=k.next()){q=q.value;var u=q.value||"";if("REMOVE"!==q.actionType)switch(q.fieldName){case "ccs":e=u.split(",").filter(Boolean);break;case "verifier":case "assignee":f=u.split(",").filter(Boolean);break;case "duplicateOfIssueId":Wi(u)||(e=b.cc,h=String(u),d=!0)}}b=1===c.actions.length&&"ccs"===c.actions[0].fieldName&&"REMOVE"===
c.actions[0].actionType&&this.activeSession.getUserEmail()===c.actions[0].value;return kRb(this,a,{actionIssueId:h,implicitAppenders:e,implicitEditors:f,isDeduping:d,isRemovingSelfFromCc:b,requestData:c})};
var kRb=function(a,b,c){var d=c.actionIssueId,e=c.implicitAppenders,f=c.implicitEditors,h=c.isDeduping,k=c.isRemovingSelfFromCc,q=c.requestData,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca;return hf(function(La){switch(La.nextAddress){case 1:return jf(La,Promise.all([uRb(a,e,"appender",d),uRb(a,f,"writer",d)]),2);case 2:u=La.yieldResult;x=r(u);E=x.next().value;I=x.next().value;N=E;L=I;T=N.noAccessEmails||[];Y=L.noAccessEmails||[];ja=[].concat(v(T),v(Y));if(0===ja.length)return La.return(vRb(a,q,h,k));It(La,
3);return jf(La,Promise.all(ja.map(function(jb){return wRb(a,jb)})),5);case 5:return ha=La.yieldResult,ra=xta({userPrincipals:ha,newEditors:Y,newImplicitUsers:ja,isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Fa=ra.title,Ka=ra.content,jf(La,ALb(a.confirmationDialogService,{title:Fa,content:In(Ka),confirmButtonText:"Allow"}),6);case 6:if(Ca=La.yieldResult)return La.return(vRb(a,q,h,k));a.permissionsFridge.poke("issues/"+b);mL(a.issueFetchResponseFridge,b);Jt(La,0);
break;case 3:Kt(La),uK(a.butterBar,"Could not determine email type."),kf(La)}})},vRb=function(a,b,c,d){a.preUpdate(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 a.postUpdate(e,b)},uRb=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?null:f;if(e&&!f)throw Error("Jd");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e=
{noAccessEmails:[]};return 0!==b.length&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(so),c,h,d):Promise.resolve(e)},tRb=function(a,b,c){var d=a.isSavingMap.get(b);a=(a=a.editableIssueMap.get(b))&&Ik(a);if(!a||!d)return c;b=d.properties();d={};b=r(b);for(var e=b.next();!e.done;d={$jscomp$loop$prop$customFieldId$1693:d.$jscomp$loop$prop$customFieldId$1693},e=b.next())if(e=e.value,e.match(/^\d+$/)){d.$jscomp$loop$prop$customFieldId$1693=Ki(e);var f=(c.customField||
[]).find(function(h){return function(k){return k.customFieldId===h.$jscomp$loop$prop$customFieldId$1693}}(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=zQb.get(e))||f(c,a);return c};
VR.prototype.getRequestDataForUpdate=function(a){var b=wQb(a);if(!b)return null;var c=this.isSavingMap.get(String(a.issueId));b.actions=b.actions.filter(function(d){return!(null==c?0:c.get(to(d)))});return b.actions.length?b:null};
VR.prototype.preUpdate=function(a){var b=String(a.issueId);tK(this.butterBar,"Saving...",0);var c=a.actions.map(function(d){return d.fieldName}).join(",");PR(this.issueInteractionsTracking,b,{label:c});b=this.savingState(b);a=r(a.actions);for(c=a.next();!c.done;c=a.next())SR(b,to(c.value))};
VR.prototype.postUpdate=function(a,b,c){var d=this,e,f;return hf(function(h){switch(h.nextAddress){case 1:return It(h,2),jf(h,a,4);case 4:return e=h.yieldResult,jL(d.issueFridge,[b.issueId],{eagerUpdate:!1}).then(function(){var k=String(b.issueId);mL(d.issueFetchResponseFridge,k);d.eventsForIssueFridge.poke(k)}),jf(h,xRb(d,b,e,c),5);case 5:Jt(h,0);break;case 2:f=Kt(h),yRb(d,b,f),kf(h)}})};
var xRb=function(a,b,c,d){var e=(void 0===d?{}:d).originalRetentionState,f,h,k,q;return hf(function(u){f=a.savingState(String(b.issueId));h=r(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,TR(f,to(q));return c?jf(u,zRb(a,b,e),0):u.jumpTo(0)})},yRb=function(a,b,c){var d=String(b.issueId),e=a.savingState(d);b=r(b.actions);for(var f=b.next();!f.done;f=b.next())TR(e,to(f.value));a.permissionsFridge.poke("issues/"+d);mL(a.issueFetchResponseFridge,d);Zm(c)&&403===c.status&&$m(c)?yK(a.errorHandler,
$m(c)):zK(a.errorHandler,c)},zRb=function(a,b,c){var d,e,f,h,k,q,u,x,E,I,N;return hf(function(L){switch(L.nextAddress){case 1:return jf(L,a.getEffortSpec(String(b.issueId)),2);case 2:d=L.yieldResult;e=a.editableIssue(String(b.issueId));k=FQb(a.statusMessages,b,e.customFieldMap,null!=(h=null==(f=d)?void 0:f.getName())?h:"");if(!c){L.jumpTo(3);break}return jf(L,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=L.yieldResult;u=r(q);x=u.next().value;E=
u.next().value;I=x;N=E;var T=k;if("INDEFINITE"!==N&&c&&I){var Y=Pza(c);var ja=Pza(I);Y=Y===ja?"":" Issue retention period changed from "+Y+" to "+ja+"."}else Y="";k=T+Y;case 3:tK(a.butterBar,k),kf(L)}})},nRb=function(a,b,c){var d;return hf(function(e){if(1==e.nextAddress)return jf(e,uRb(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);d=e.yieldResult;return d.noAccessEmails&&0!==d.noAccessEmails.length?e.return(ALb(a.confirmationDialogService,{title:"Un-CC'ing yourself may revoke your access to the issue",
content:In("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 the CC list may also remove your ability to view the issue. Are you sure you would like to do this?")})):e.return(!0)})};VR.prototype.getRetentionState=function(a){return(0,U.firstValueFrom)(lL(this.issueFetchResponseFridge,a).pipe(S(Xwa)))};VR.prototype.getRetention=function(a){return(0,U.firstValueFrom)(lL(this.issueFetchResponseFridge,a).pipe(S(Uwa)))};
VR.prototype.getEffortSpec=function(a){return(0,U.firstValueFrom)(lL(this.issueFetchResponseFridge,a).pipe(S(zwa),ig(this.componentFridge.watch),S(bxa)))};var wRb=function(a,b){return hf(function(c){if(a.activeSession.isExternalSession()){var d=c.return;var e=new Nj;e=l(e,1,0);e=l(e,2,0);c=d.call(c,e)}else c=c.return(sI(a.principalTypes,b,!0));return c})};
VR.prototype.ngOnDestroy=function(){this.isSavingMap.clear();this.issueFieldsMap.clear();this.issueQuickActionsMap.clear();this.editableIssueMap.clear();for(var a=r(this.subscriptions.values()),b=a.next();!b.done;b=a.next())b.value.unsubscribe();this.subscriptions.clear()};VR.\u0275fac=function(a){return new (a||VR)(t(kL),t(yH),t(sK),t(OR),t(bK),t(IJ),t(TL),t(wL),t(yR),t(xK),t(PM),t(rI),t(ZN),t(EL),t(vR),t(vK),t(hL),t(FR),t(EK),t(CR),t(VI),t(bO),t(uR),t(HQb),t(NR),t(QR),t(KR))};
VR.\u0275prov=lc({token:VR,factory:VR.\u0275fac,providedIn:"root"});
var WR=function(a,b,c){yI.call(this);this.issueDetailsBrain=a;this.issuePermissionService=b;this.editIssueService=c;this.assigneeInProgress$=new U.ReplaySubject(1);this.ccInProgress$=new U.ReplaySubject(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(S(function(d){var e;return Ol(null==(e=tn(d))?void 0:e.assigneeUser)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(S(function(d){var e;return Pl(null==(e=tn(d))?void 0:e.ccUsers)||[]}));this.assignee$=
this.assigneeUpdate$.pipe(fg({refCount:!0,bufferSize:1}));this.cc$=this.ccUpdate$.pipe(fg({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};V(WR,yI);WR.\u0275dir=yI.\u0275dir;
var ARb=function(a,b){var c,d,e;return hf(function(f){switch(f.nextAddress){case 1:c=Ik(a.id$);if(!c)return f.return();a.assigneeInProgress$.next(!0);d="remove_user"===b.action?"":b.email;It(f,2,3);return jf(f,bt(a.editIssueService,c,d),5);case 5:return jf(f,(0,U.firstValueFrom)(a.assigneeUpdate$.pipe(xf(function(h){h=b.email===h;return"set_user"===b.action?h:!h}),zf(6E4))),3);case 3:Lt(f);a.assigneeInProgress$.next(!1);Mt(f,0);break;case 2:throw e=Kt(f),e;}})},BRb=function(a,b){var c,d,e,f,h;return hf(function(k){switch(k.nextAddress){case 1:c=
Ik(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=oRb(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=oRb(a.editIssueService,c,[].concat(v(d.cc),[b.email]));if(!f)return k.return();It(k,2,3);a.ccInProgress$.next(!0);return jf(k,f,5);case 5:return jf(k,(0,U.firstValueFrom)(a.ccUpdate$.pipe(xf(function(q){q=q.includes(b.email);return"set_user"===b.action?q:!q}),zf(6E4))),
3);case 3:Lt(k);a.ccInProgress$.next(!1);Mt(k,0);break;case 2:throw h=Kt(k),h;}})};WR.\u0275fac=function(a){return new (a||WR)(t(XN),t(ZN),t(VR))};WR.\u0275prov=lc({token:WR,factory:WR.\u0275fac});
var YR=function(a,b,c){yI.call(this);this.domSafe=a;this.cdr=b;this.actionService=c;this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};V(YR,yI);YR.\u0275dir=yI.\u0275dir;
YR.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;null==(b=this.actionService)||b.assignee$.pipe(jg(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;null==(c=this.actionService)||c.cc$.pipe(jg(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var Uza=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Nn(ao.PERSON_CARD,"assigneeAction",b);ARb(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},Vza=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Nn(ao.PERSON_CARD,"ccAction",b);BRb(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};YR.\u0275fac=function(a){return new (a||YR)(C(fP),C(uI,2),C(WR,8))};
YR.\u0275cmp=w({type:YR,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[Me([uI]),ie],decls:6,vars:4,consts:[[3,"email"],["class","actions",4,"ngIf"],[3,"click"],[1,"actions"],[3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"b-person-card",0),O(1,Wza,9,8,"ng-container",1),Q(2,"async"),F(3,"onedev-hovercard-action",2),J("click",function(c){On(ao.PERSON_CARD,"showAssignedIssuesAction");var d=en({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
hP(b.domSafe,d)}),F(4,"span"),P(5,"Show assigned issues"),G()()());a&2&&(D("email",b.email),B(1),D("ngIf",b.actionService&&R(2,2,b.actionService.editAccess$)))},dependencies:[ux,NN,iR,Fx],encapsulation:2,changeDetection:0});
var ZR=function(a,b){var c=this;this.session=a;this.userProfiles=b;this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new U.ReplaySubject(1);this.showEmail$=new U.BehaviorSubject(!1);this.isNonObfuscatedEmail=Gn;this.userProfile$=this.email$.pipe(ig(function(d){return c.userProfiles.get(d)})).pipe(hg(new lR));this.content$=(0,U.combineLatest)([this.email$,this.userProfile$,this.showEmail$]).pipe(S(function(d){var e=r(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,U.combineLatest)([this.email$,this.content$]).pipe(S(function(d){var e=r(d);d=e.next().value;e=e.next().value;return{email:d,content:e}}));this.enableWaldoAvailability=AH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};ji.Object.defineProperties(ZR.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)}}});
ZR.\u0275fac=function(a){return new (a||ZR)(C(yH),C(nR))};
ZR.\u0275cmp=w({type:ZR,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&&(O(0,aAa,4,2,"ng-container",
0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[ux,Ex,qR,YR,dN,hN,Fx],encapsulation:2,changeDetection:0});
var $R=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};$R.prototype.getDisplayString=function(){return Ol(this.model)};var CRb=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?xqa(Ql(b)):xqa(b))&&!!a.getEmailAddress()};$R.prototype.getEmailAddress=function(){return Rl(this.model)||""};$R.\u0275fac=function(a){return new (a||$R)};
$R.\u0275cmp=w({type:$R,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&&(ze(0),O(1,bAa,1,4,"b-user-display-name",0),O(2,cAa,2,1,"span",
1),Ae());a&2&&(B(1),D("ngIf",CRb(b)),B(1),D("ngIf",!CRb(b)))},dependencies:[ux,ZR],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 aS=function(a){var b=this;this.userProfiles=a;this.email$=new U.ReplaySubject(1);this.isNonObfuscatedEmail=Gn;this.userProfile$=this.email$.pipe(ig(function(c){return c?b.userProfiles.get(c).pipe(hg(new lR)):(0,U.of)(void 0)}));this.vars$=(0,U.combineLatest)([this.email$,this.userProfile$]).pipe(S(function(c){var d=r(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=W(d,3)?W(d,3)+" 2x":
d.getPhotoUrl()+" 1x";return{email:c,showImage:!e,src:f,srcset:h}}))};ji.Object.defineProperties(aS.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){Gn(a)?this.email$.next(a):this.email$.next(void 0)}}});aS.\u0275fac=function(a){return new (a||aS)(C(nR))};
aS.\u0275cmp=w({type:aS,selectors:[["b-user-image"]],inputs:{email:"email"},decls:2,vars:3,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["imageDisplay",""],[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&&(O(0,hAa,4,2,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.vars$))},dependencies:[ux,Ex,YR,dN,hN,Fx],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 bS=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()})};bS.prototype.trackByIndex=function(a){return a};
bS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};bS.\u0275fac=function(a){return new (a||bS)(C(uI,2),C(jQ),C(NB),C(xK),C(Tx),C(GK),C(GO))};
bS.\u0275cmp=w({type:bS,selectors:[["comment-history-dialog"]],features:[Me([uI])],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&&(F(0,"h2",0),P(1),G(),F(2,"mat-dialog-content")(3,"div",
1)(4,"b-checkbox",2),J("change",function(c){return b.diffView=c}),G()(),F(5,"a",3),J("click",function(){return b.startFeedback()}),P(6,"Feedback"),G(),H(7,"br",4),O(8,iAa,2,0,"div",5),O(9,xAa,2,2,"ul",6),G(),F(10,"mat-dialog-actions")(11,"button",7),P(12,"Close"),G()());a&2&&(B(1),Je("History for Comment #",b.commentNumber,""),B(3),D("checked",b.diffView),B(4),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[yx,ux,vP,fQ,rB,QB,RB,SB,TB,jR,aN,aS,$R,Fx,UR,kR],styles:[".comment-history-list[_ngcontent-%COMP%]{max-height:500px;overflow:auto;padding:0}.comment-version[_ngcontent-%COMP%]{position:relative;background-color:#f1f3f4;background-color:var(--c100);border-bottom:1px solid;border-color:#dadce0;border-color:var(--divider);border-top:1px solid;border-color:#dadce0;border-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 cS=function(){};cS.\u0275fac=function(a){return new (a||cS)};cS.\u0275mod=Cc({type:cS});cS.\u0275inj=mc({imports:[Mx]});
var dS=function(){};dS.\u0275fac=function(a){return new (a||dS)};dS.\u0275mod=Cc({type:dS});dS.\u0275inj=mc({});
var eS=function(){};eS.\u0275fac=function(a){return new (a||eS)};eS.\u0275mod=Cc({type:eS});eS.\u0275inj=mc({imports:[cS,Mx,dS,pF]});
var fS=function(){};fS.\u0275fac=function(a){return new (a||fS)};fS.\u0275mod=Cc({type:fS});fS.\u0275inj=mc({providers:[uQ],imports:[pQ]});
/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var gS=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};Wt(gS,yAa);
gS.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof gS&&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_||this.errback(new hS(this))}};gS.prototype.continue_=function(a,b){this.blocked_=!1;DRb(this,a,b)};
var DRb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;ERb(a)},GRb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new FRb(a);a.silentlyCanceled_=!1}};gS.prototype.callback=function(a){GRb(this);DRb(this,!0,a)};gS.prototype.errback=function(a){GRb(this);DRb(this,!1,a)};gS.prototype.addCallback=function(a,b){return HRb(this,a,null,b)};var HRb=function(a,b,c,d){a.sequence_.push([b,c,d]);a.fired_&&ERb(a);return a};
gS.prototype.then=function(a,b,c){var d,e,f=new vD(function(h,k){e=h;d=k});HRb(this,e,function(h){h instanceof hS?f.cancel():d(h);return IRb},this);return f.then(a,b,c)};gS.prototype.$goog_Thenable=!0;gS.prototype.branch=function(a){var b=new gS;HRb(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};gS.prototype.isError=function(a){return a instanceof Error};
var JRb=function(a){return Qib(a.sequence_,function(b){return"function"===typeof b[1]})},IRb={},ERb=function(a){if(a.unhandledErrorId_&&a.fired_&&JRb(a)){var b=a.unhandledErrorId_,c=KRb[b];c&&(da.clearTimeout(c.id_),delete KRb[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===IRb&&(k=void 0);void 0!==
k&&(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(ctb(b)||"function"===typeof da.Promise&&b instanceof da.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,JRb(a)||(c=!0)}}a.result_=b;d&&(k=St(a.continue_,a,!0),d=St(a.continue_,a,!1),b instanceof gS?(HRb(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new LRb(b),KRb[b.id_]=b,a.unhandledErrorId_=b.id_)},FRb=function(){ba.call(this)};Wt(FRb,ba);FRb.prototype.message="Deferred has already fired";FRb.prototype.name="AlreadyCalledError";
var hS=function(){ba.call(this)};Wt(hS,ba);hS.prototype.message="Deferred was canceled";hS.prototype.name="CanceledError";var LRb=function(a){this.id_=da.setTimeout(St(this.throwError,this),0);this.error_=a};LRb.prototype.throwError=function(){delete KRb[this.id_];throw this.error_;};var KRb={};
var DAa=function(a,b){var c=b||{};b=c.document||document;var d=Ci(a).toString(),e=(new dD(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new gS(MRb,f),k=null,q=null!=c.timeout?c.timeout:5E3;0<q&&(k=window.setTimeout(function(){NRb(e,!0);h.errback(new ORb(1,"Timeout reached for loading script "+d))},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(NRb(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=function(){NRb(e,
!0,k);h.errback(new ORb(0,"Error while loading script "+d))};f=c.attributes||{};sja(f,{type:"text/javascript",charset:"UTF-8"});Ksb(e,f);Brb(e,a);PRb(b).appendChild(e);return h},PRb=function(a){var b=gD("HEAD",a);return b&&0!==b.length?b[0]:a.documentElement},MRb=function(){if(this&&this.script_){var a=this.script_;a&&"SCRIPT"==a.tagName&&NRb(a,!0,this.timeout_)}},NRb=function(a,b,c){null!=c&&da.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){nD(a)},
0)},ORb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ba.call(this,c);this.code=a};Wt(ORb,ba);
var zAa=null,wo=new WeakMap;
var iS=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,U.defer)(function(){return BAa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return GAa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};V(iS,BPb);
iS.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(qf(function(c){var d=(0,U.of)(void 0);void 0!==b.gapiAuthParams.minAuthTokenTimeRemaining&&(d=(0,U.from)(FAa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(qf(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}))}))}))};
iS.prototype.parseResponse=function(a){return new U.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)})})};iS.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&EAa(a,b,this.gapiConfigUpdates[b])};
var QRb=function(a,b,c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;iS.call(this,a,c,d,e);this.waldoApiKey=b};V(QRb,iS);QRb.prototype.makeRequest=function(a){var b=iS.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};
var At=function(a){this.proxiedService=a};V(At,BPb);At.prototype.makeRequest=function(a){var b=this;return(0,U.defer)(function(){return b.proxiedService.makeRequest(a)})};
var RRb=new sd("environment"),SRb={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},jS=function(){};jS.\u0275fac=function(a){return new (a||jS)};jS.\u0275mod=Cc({type:jS});jS.\u0275inj=mc({imports:[Mx,QQ]});
var kS=function(){};kS.\u0275fac=function(a){return new (a||kS)};kS.\u0275mod=Cc({type:kS});kS.\u0275inj=mc({imports:[Mx,fS,eS,jS]});
var lS=function(){};lS.\u0275fac=function(a){return new (a||lS)};lS.\u0275mod=Cc({type:lS});lS.\u0275inj=mc({imports:[Mx,kS,ON]});
var mS=function(){};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275mod=Cc({type:mS});mS.\u0275inj=mc({imports:[jS,Mx,XO]});
var nS=function(){};nS.\u0275fac=function(a){return new (a||nS)};nS.\u0275mod=Cc({type:nS});nS.\u0275inj=mc({imports:[Mx,ON,lS]});
var oS=function(a){this.session=a;this.isNonObfuscatedEmail=Gn;this.email="";this.withProfile=!0;this.enableWaldoAvailability=AH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};oS.\u0275fac=function(a){return new (a||oS)(C(yH))};
oS.\u0275cmp=w({type:oS,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"],[3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["card",""],[3,"email"],[1,"bv2-email-with-profile-waldo"],["coinonly","",3,"user"]],template:function(a,
b){a&1&&(F(0,"span",0),O(1,HAa,1,1,"b-user-image",1),O(2,JAa,6,3,"ng-container",2),O(3,KAa,2,1,"ng-template",null,3,Pf),O(5,LAa,2,1,"span",4),G());if(a&2){var c=M(4);B(1);D("ngIf",b.withProfile);B(1);D("ngIf",b.isNonObfuscatedEmail(b.email))("ngIfElse",c);B(3);D("ngIf",b.enableWaldoAvailability)}},dependencies:[ux,Ex,qR,YR,dN,hN,aS],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 TRb=0,pS=function(a,b){var c=this;this.teamsService=a;this.session=b;this.teamId="";this.enableSmallChip=!1;this.providedTeamId$=new U.ReplaySubject(1);this.providedUser$=new U.ReplaySubject(1);this.providedEmail$=new U.ReplaySubject(1);this.isNonObfuscatedEmail=Gn;this.fetchedTeam$=this.providedTeamId$.pipe(ig(function(d){return c.teamsService.getTeam(d)}),Sf(function(){return(0,U.of)((new VL).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.detailedUserType$=this.providedUser$.pipe(S(function(d){d=
d?d&&d.getUserGaiaStatus?d.getAliasesList():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}),hg(0));this.isTeamMember$=(0,U.combineLatest)([this.providedTeamId$,this.providedEmail$]).pipe(ig(function(d){var e=r(d);d=e.next().value;e=e.next().value;return MKb(c.teamsService,d,e)}),hg(!1),Sf(function(){return(0,U.of)(!1)}));this.teamUser$=this.fetchedTeam$.pipe(S(function(d){return"Member of "+
d.getName()}));this.groupMembershipType$=(0,U.combineLatest)([this.detailedUserType$,this.isTeamMember$]).pipe(S(function(d){var e=r(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=AH(this.session,"enableExternalAnnotations");this.enableWaldoAvailability=AH(this.session,"enableWaldoAvailability")&&this.session.isInternalSession();
this.userTypeClass$=this.groupMembershipType$.pipe(S(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(S(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(S(function(d){return d&&
"INTERNAL_NON_TEAM_MEMBER"!==d}));this.iconName$=this.groupMembershipType$.pipe(S(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(lg(this.teamUser$),S(function(d){var e=r(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""}));TRb++};pS.prototype.ngOnInit=function(){};pS.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)};pS.\u0275fac=function(a){return new (a||pS)(C(ZL),C(yH))};
pS.\u0275cmp=w({type:pS,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip"},features:[Jc],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&&(F(0,"span",0),Q(1,"async"),F(2,"span",0),Q(3,"async"),O(4,MAa,1,1,"b-user-image",1),O(5,NAa,1,3,"b-user-display-name",2),O(6,RAa,3,2,"ng-template",null,3,Pf),O(8,SAa,3,6,"mat-icon",4),Q(9,"async"),G()(),O(10,TAa,2,1,"ng-container",
5));if(a&2){var c=M(7),d,e;D("ngClass",null!==(d=R(1,7,b.userTypeClass$))&&void 0!==d?d:"");B(2);D("ngClass",null!==(e=R(3,9,b.userChipType$))&&void 0!==e?e:"");B(2);D("ngIf",b.enableSmallChip);B(1);D("ngIf",!b.enableSmallChip)("ngIfElse",c);B(3);D("ngIf",R(9,11,b.shouldShowIcon$));B(2);D("ngIf",b.enableWaldoAvailability&&!b.enableSmallChip)}},dependencies:[xx,ux,Ex,qR,XE,lF,YR,dN,hN,aS,ZR,Fx],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 qS=function(){};qS.\u0275fac=function(a){return new (a||qS)};qS.\u0275mod=Cc({type:qS});qS.\u0275inj=mc({imports:[Mx,mS,pF,mH,lS,nS,ON]});
var rS=function(){};rS.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""}};rS.\u0275fac=function(a){return new (a||rS)};rS.\u0275pipe=Ec({name:"toAccessLevelLabel",type:rS,pure:!0});
var URb={TEXT:"Text",DATE:"Date",ENUM:"Enum",NUMERIC:"Numeric",REPEATED_TEXT:"Repeated Text",REPEATED_DATE:"Repeated Date",REPEATED_ENUM:"Repeated Enum",REPEATED_NUMERIC:"Repeated Numeric"},sS=function(){};sS.prototype.transform=function(a){return URb[a]};sS.\u0275fac=function(a){return new (a||sS)};sS.\u0275pipe=Ec({name:"toCustomFieldTypeDisplayValue",type:sS,pure:!0});
var tS=function(){};tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275mod=Cc({type:tS});tS.\u0275inj=mc({imports:[Mx]});
var uS=function(){};uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275mod=Cc({type:uS});uS.\u0275inj=mc({imports:[Mx,PP,gQ,uG,UB,lS,tS,MN,qS]});
var UAa=function(){},xo=function(a,b,c,d,e){"undefined"==typeof e&&(e=(new Date).getTime()+1E3);if(null==b||null==c)throw Error("Ld");if(b==c)return b?[[0,b]]:[];"undefined"==typeof d&&(d=!0);var f=VRb(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=WRb(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=XRb(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);YRb(a,b);return b},XRb=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=ZRb(b,c))return c=f[1],h=f[3],b=f[4],f=xo(a,f[0],f[2],d,e),a=xo(a,c,h,d,e),f.concat([[0,b]],a);if(d&&100<b.length&&100<c.length){b=$Rb(b,c);c=b.lineArray;b=xo(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("")}VAa(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=xo(a,h,k,!1,e);for(f=d.length-1;0<=f;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),u=Array(k),x=0;x<k;x++)q[x]=-1,u[x]=-1;q[h+1]=0;u[h+1]=0;x=d-f;for(var E=0!=x%2,I=0,N=0,L=0,T=0,Y=0;Y<h&&!((new Date).getTime()>e);Y++){for(var ja=-Y+
I;ja<=Y-N;ja+=2){var ha=h+ja;var ra=ja==-Y||ja!=Y&&q[ha-1]<q[ha+1]?q[ha+1]:q[ha-1]+1;for(var Fa=ra-ja;ra<d&&Fa<f&&b.charAt(ra)==c.charAt(Fa);)ra++,Fa++;q[ha]=ra;if(ra>d)N+=2;else if(Fa>f)I+=2;else if(E&&(ha=h+x-ja,0<=ha&&ha<k&&-1!=u[ha])){var Ka=d-u[ha];if(ra>=Ka){a=aSb(a,b,c,ra,Fa,e);break a}}}for(ja=-Y+L;ja<=Y-T;ja+=2){ha=h+ja;Ka=ja==-Y||ja!=Y&&u[ha-1]<u[ha+1]?u[ha+1]:u[ha-1]+1;for(ra=Ka-ja;Ka<d&&ra<f&&b.charAt(d-Ka-1)==c.charAt(f-ra-1);)Ka++,ra++;u[ha]=Ka;if(Ka>d)T+=2;else if(ra>f)L+=2;else if(!E&&
(ha=h+x-ja,0<=ha&&ha<k&&-1!=q[ha]&&(ra=q[ha],Fa=h+ra-ha,Ka=d-Ka,ra>=Ka))){a=aSb(a,b,c,ra,Fa,e);break a}}}a=[[-1,b],[1,c]]}return a},aSb=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=xo(a,b.substring(0,d),c.substring(0,e),!1,f);a=xo(a,h,k,!1,f);return b.concat(a)},$Rb=function(a,b){function c(h){for(var k="",q=0,u=-1,x=d.length;u<h.length-1;){u=h.indexOf("\n",q);-1==u&&(u=h.length-1);var E=h.substring(q,u+1);(e.hasOwnProperty?e.hasOwnProperty(E):void 0!==e[E])?k+=String.fromCharCode(e[E]):
(x==f&&(E=h.substring(q),u=h.length),k+=String.fromCharCode(x),e[E]=x,d[x++]=E);q=u+1}return k}var d=[],e={};d[0]="";var f=4E4;a=c(a);f=65535;b=c(b);return{chars1:a,chars2:b,lineArray:d}},VRb=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},WRb=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},bSb=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++}},ZRb=function(a,b){function c(k,q,u){for(var x=k.substring(u,u+Math.floor(k.length/4)),E=-1,I="",
N,L,T,Y;-1!=(E=q.indexOf(x,E+1));){var ja=VRb(k.substring(u),q.substring(E)),ha=WRb(k.substring(0,u),q.substring(0,E));I.length<ha+ja&&(I=q.substring(E-ha,E)+q.substring(E,E+ja),N=k.substring(0,u-ha),L=k.substring(u+ja),T=q.substring(0,E-ha),Y=q.substring(E+ja))}return 2*I.length>=k.length?[N,L,T,Y,I]: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]]},VAa=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,u=0,x=0;h<b.length;)0==b[h][0]?(d[e++]=h,k=u,q=x,x=u=0,f=b[h][1]):(1==b[h][0]?u+=b[h][1].length:x+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(u,x)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=0<e?d[e-1]:-1,x=u=q=k=0,f=null,c=!0)),h++;c&&YRb(a,b);cSb(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=bSb(a,c);e=bSb(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++}},cSb=function(a){function b(E,I){if(!E||!I)return 6;var N=E.charAt(E.length-1),L=I.charAt(0),T=N.match(dSb),Y=L.match(dSb),
ja=T&&N.match(eSb),ha=Y&&L.match(eSb);N=ja&&N.match(fSb);L=ha&&L.match(fSb);E=N&&E.match(gSb);I=L&&I.match(hSb);return E||I?5:N||L?4:T&&!ja&&ha?3:ja||ha?2:T||Y?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=WRb(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,u=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var x=
b(d,e)+b(e,f);x>=u&&(u=x,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},dSb=/[^a-zA-Z0-9]/,eSb=/\s/,fSb=/[\r\n]/,gSb=/\n\r?\n$/,hSb=/^\r?\n\r?\n/,YRb=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=VRb(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=WRb(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&&YRb(a,b)};
var vS=function(a,b,c){this.analytics=a;this.issueComments=b;this.dialogManager=c};vS.prototype.show=function(a,b,c){var d=this,e;return hf(function(f){if(d.dialog&&2!==d.dialog.getState())return f.return();Zn(d.analytics,"commentHistoryModal","open");e={issueId:a,commentNumber:b,commentVersion:c,commentHistory:iSb(d,a,b,c)};d.dialog=d.dialogManager.open(bS,{data:e,width:"50vw"});return f.return((0,U.firstValueFrom)(DB(d.dialog)))})};
var iSb=function(a,b,c,d){return a.issueComments.executor.get({url:"action/issues/"+b+"/comment/"+c+"/history",responseConstructor:aO}).then(dsa).then(function(e){var f=0<e.length?e[0].unlinkifiedComment:"",h=0<e.length?e[0].formattingMode:"",k=!1,q=[];e=r(e);for(var u=e.next();!u.done;u=e.next()){u=u.value;var x=XAa(u);x||k?(f=wS(u.unlinkifiedComment),h=wS(u.formattingMode)):(f=WAa(f,u.unlinkifiedComment),k=u.formattingMode,h=h===k?wS(k):Ln(wS(h,"diff-removed"),wS(k,"diff-added")));k=void 0===u.unlinkifiedComment?
"":u.unlinkifiedComment;var E=u.version,I=u.commentContentVerdict;q.push({comment:u.comment,unlinkifiedComment:k,lastEditorUser:u.lastEditorUser,version:E,formattingMode:u.formattingMode,formattingModeDiff:h,lastModified:Number(u.lastModified)/1E3,open:25>E,preview:48>=k.length?k:k.substring(0,45)+"...",diff:f,restricted:I&&I.piiVerdict&&"NONE_DETECTED"!==I.piiVerdict.severity||!1,deleted:XAa(u)});f=u.unlinkifiedComment;h=u.formattingMode;k=x}-1<d?q[d].open=!0:q[0].open=!0;return q})},wS=function(a,
b){return Kn("SPAN",b?{"class":b}:null,a)};vS.\u0275fac=function(a){return new (a||vS)(t(FM),t(bO),t(PB))};vS.\u0275prov=lc({token:vS,factory:vS.\u0275fac,providedIn:"root"});
var jSb=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"]]),kSb=new Map([[0,"Unknown"],[1,"Enabled"],[2,"Disabled"]]),lSb=new Map([[1,"Default (10 years)"],[2,"Custom Period"],[3,"Indefinite"]]),mSb=new Map([[1,"Default (60 days)"],[2,"Custom Period"],[3,"Match Issue Retention"]]);
var nSb=function(a){return a?new Set(ob(a,1).map(function(b){return Ii(b)})):new Set},xS=function(a,b,c){return a.has(b)?c:""},oSb=function(a,b,c){return a.has(b)?c:[]},yS=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}};
var zS=function(a,b){this.$log=a;this.sessionIsInternal=b.isInternalSession()};zS.\u0275fac=function(a){return new (a||zS)(t(vK),t(yH))};zS.\u0275prov=lc({token:zS,factory:zS.\u0275fac,providedIn:"root"});
var pSb=function(a){if(!a)return"";var b=lSb.get(X(a,1,0)),c=fj(a,2),d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=mSb.get(X(a,3,0));c=fj(a,4);a=fj(a,5);d=", Restricted Retention: "+d;c&&(d+=", Restricted Days: "+c);a&&(d+=", Restricted+ Days: "+a);return b+d},rSb=function(a){if(!a)return"";var b=a.getInherit(),c=qSb.get(a.getSource()),d=a.getId();a=a.getComment();b="Inherit: "+b+", Source: "+c+", ID: "+d;return a?b+(", Justification: "+a):b},qSb=new Map([[0,"--"],[1,"User"],[2,"Bugscope"]]),
sSb=function(a){if(!a)return"";var b=a.getInherit();a=a.getId();return"Inherit: "+b+", ID: "+a};
var tSb=Eh({opacity:"0"}),uSb=xf(function(a){return a}),vSb=(0,U.pipe)(Wf(),uSb,ag()),wSb=new sd("xap-bubble UX style"),AS=function(a){var b=this;this.activity=new U.Subject;this.openedSubject=new U.BehaviorSubject(!1);this.destroy=new U.ReplaySubject;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new Jw;this.onOpened=new Jw;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(Nga(function(){return b.activity.pipe(Tf(b.hoverDelayMs))}));
a=jg(this.destroy);this.opened.pipe(vSb,a).subscribe(this.onOpened);this.openedSubject.pipe(uSb,zha(function(){return b.opened.pipe(xf(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};AS.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};AS.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};AS.\u0275fac=function(a){return new (a||AS)(C(wSb,8))};
AS.\u0275cmp=w({type:AS,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&&(Ee(),F(0,"span",0,1),J("mouseenter",function(){return b.toggle(!0)})("mouseleave",function(){return b.toggle(!1)})("mousemove",function(){b.activity.next()}),Fe(2),G(),O(3,ZAa,2,3,"ng-template",2),Q(4,"async"));if(a&2){var c=M(1);D("ngClass",b.bubbleStyle);
B(3);D("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",R(4,5,b.opened))}},dependencies:[xx,Ex,VA,UA,Fx],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:[Ch("fade",[Gh(":enter",[tSb,Dh("225ms")]),Gh(":leave",[Dh("195ms",tSb)])])]}});
var BS=function(a,b){this.activeSession=a;this.documentationLinks=b;this.labelOnlyMode=this.compactMode=!1;this.bubbleText=this.chipClass=""};
BS.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 authenticated Google Account, such as someone with\n               an @gmail.com email address.';
break;default:this.bubbleText=this.chipClass=""}};BS.\u0275fac=function(a){return new (a||BS)(C(yH),C(dP))};
BS.\u0275cmp=w({type:BS,selectors:[["b-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Jc],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],["withBubble",""],[1,"label",3,"ngClass"],[3,"panelTemplate"],["popup",""],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&O(0,cBa,4,2,"ng-container",0);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?"EXTERNAL_PARTNER"===b.accessLevel||
"EXTERNAL_PUBLIC"===b.accessLevel:zH(b.activeSession)?"EXTERNAL_PUBLIC"===b.accessLevel:!1;D("ngIf",a)}},dependencies:[xx,ux,AS,rS],styles:[".label[_ngcontent-%COMP%]{border-radius:8px;display:inline-block;line-height:18px;padding:0 10px;color:#202124;color:var(--text-high-contrast)}.label.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)}.label.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)}.label.compact-chip[_ngcontent-%COMP%]{font-size:.7em;margin-top:0;padding:0 6px;box-shadow:none}.bubble[_ngcontent-%COMP%]{width:300px}"]});
var CS=function(a,b){yI.call(this);this.componentFridge=a;this.activeSession=b;this.providedComponentId$=new U.ReplaySubject(1);this.component$=this.providedComponentId$.pipe(ig(this.componentFridge.watch),fg({refCount:!0,bufferSize:1}));this.init=new U.ReplaySubject(1);this.isAnonymous=this.activeSession.isAnonymous()};V(CS,yI);CS.\u0275dir=yI.\u0275dir;
CS.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=en({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=dn("issues/new",{params:void 0})+"?component="+this.componentId;this.viewComponentUrl=ysa(this.componentId,"basic");this.component$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(){a.init.next()})};CS.\u0275fac=function(a){return new (a||CS)(C(IJ),C(yH))};
CS.\u0275cmp=w({type:CS,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[ie],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&&(F(0,"div",0)(1,"div",1),O(2,eBa,16,8,"ng-container",2),Q(3,"async"),G()());a&2&&(B(2),D("ngIf",R(3,1,b.component$)))},dependencies:[ux,
BS,Fx],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});
var DS=function(){this.changes=new U.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}};DS.\u0275fac=function(a){return new (a||DS)};DS.\u0275prov=lc({token:DS,factory:DS.\u0275fac,providedIn:"root"});
var xSb={provide:DS,deps:[[new Fv,new Gv,DS]],useFactory:function(a){return a||new DS}};
var ySb=Ch("transformPanelWrap",[Gh("* => void",Ih("@transformPanel",[Hh()]))]),zSb=Ch("transformPanel",[Fh("void",Eh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Fh("showing",Eh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Fh("showing-multiple",Eh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Gh("void => *",Dh("120ms cubic-bezier(0, 0, 0.2, 1)")),Gh("* => void",Dh("100ms 25ms linear",Eh({opacity:0})))]);
var ASb=["trigger"],BSb=["panel"],CSb=[[["mat-select-trigger"]],"*"],DSb=0,ESb=new sd("mat-select-scroll-strategy"),FSb=new sd("MAT_SELECT_CONFIG"),GSb={provide:ESb,deps:[TA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}},HSb=function(a,b){this.source=a;this.value=b},ISb=li(ni(mi(Tka(function(a,b,c,d,e){this._elementRef=a;this._defaultErrorStateMatcher=b;this._parentForm=c;this._parentFormGroup=d;this.ngControl=e;this.stateChanges=new U.Subject})))),JSb=new sd("MatSelectTrigger"),
ES=function(){};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275dir=w({type:ES,selectors:[["mat-select-trigger"]],features:[Me([{provide:JSb,useExisting:ES}])]});
var FS=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){var L=ISb.call(this,e,d,h,k,u)||this;L._viewportRuler=a;L._changeDetectorRef=b;L._ngZone=c;L._dir=f;L._parentFormField=q;L._liveAnnouncer=I;L._defaultOptions=N;L._panelOpen=!1;L._compareWith=function(ha,ra){return ha===ra};L._uid="mat-select-"+DSb++;L._triggerAriaLabelledBy=null;L._destroy=new U.Subject;L._onChange=function(){};L._onTouched=function(){};L._valueId="mat-select-value-"+DSb++;L._panelDoneAnimatingStream=new U.Subject;var T;L._overlayPanelClass=
(null==(T=L._defaultOptions)?void 0:T.overlayPanelClass)||"";L._focused=!1;L.controlType="mat-select";L._multiple=!1;var Y,ja;L._disableOptionCentering=null!=(ja=null==(Y=L._defaultOptions)?void 0:Y.disableOptionCentering)?ja:!1;L.ariaLabel="";L.optionSelectionChanges=(0,U.defer)(function(){var ha=L.options;return ha?ha.changes.pipe(hg(ha),ig(function(){return U.merge.apply(null,v(ha.map(function(ra){return ra.onSelectionChange})))})):L._ngZone.onStable.pipe(Xf(),ig(function(){return L.optionSelectionChanges}))});
L.openedChange=new Jw;L._openedStream=L.openedChange.pipe(xf(function(ha){return ha}),S(function(){}));L._closedStream=L.openedChange.pipe(xf(function(ha){return!ha}),S(function(){}));L.selectionChange=new Jw;L.valueChange=new Jw;L.ngControl&&(L.ngControl.valueAccessor=L);null!=(null==N?void 0:N.typeaheadDebounceInterval)&&(L._typeaheadDebounceInterval=N.typeaheadDebounceInterval);L._scrollStrategyFactory=E;L._scrollStrategy=L._scrollStrategyFactory();L.tabIndex=parseInt(x)||0;L.id=L.id;return L};
V(FS,ISb);g=FS.prototype;g.ngOnInit=function(){var a=this;this._selectionModel=new tA(this.multiple);this.stateChanges.next();this._panelDoneAnimatingStream.pipe(Wf(),jg(this._destroy)).subscribe(function(){return a._panelDoneAnimating(a.panelOpen)})};
g.ngAfterContentInit=function(){var a=this;this._initKeyManager();this._selectionModel.changed.pipe(jg(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(hg(null),jg(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&&$z(this._keyManager,this._typeaheadDebounceInterval)};g.ngOnDestroy=function(){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,Zz(this._keyManager,null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())};
g.close=function(){this._panelOpen&&(this._panelOpen=!1,Zz(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||fi(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||fi(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;this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};g._onAttached=function(){var a=this;this._overlayDir.positionChange.pipe(Xf()).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))?bA(this._keyManager,a):this.panelOpen||bA(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=bqb(aA(Zz(Yz($z(new eA(this.options),this._typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")));this._keyManager.tabOut.pipe(jg(this._destroy)).subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.pipe(jg(this._destroy)).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,U.merge)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(jg(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});U.merge.apply(null,v(this.options.map(function(c){return c._stateChanges}))).pipe(jg(b)).subscribe(function(){a._changeDetectorRef.markForCheck();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?cA(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()};
ji.Object.defineProperties(FS.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:Snb(b))?d:!1},set:function(a){this._required=bh(a);
this.stateChanges.next()}},multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){this._multiple=bh(a)}},disableOptionCentering:{configurable:!0,enumerable:!0,get:function(){return this._disableOptionCentering},set:function(a){this._disableOptionCentering=bh(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=eh(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}}});FS.\u0275fac=function(a){return new (a||FS)(C(vA),C(nx),C(qg),C(fB),C(wd),C(gA,8),C(fy,8),C(oy,8),C(dC,8),C(Zx,10),fd("tabindex"),C(ESb),C(Pz),C(FSb,8))};
FS.\u0275dir=w({type:FS,viewQuery:function(a,b){a&1&&(Hf(ASb,5),Hf(BSb,5),Hf(VA,5));if(a&2){var c;Gf(c=Jf())&&(b.trigger=c.first);Gf(c=Jf())&&(b.panel=c.first);Gf(c=Jf())&&(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:[ie,Jc]});
var GS=function(){var a=FS.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};V(GS,FS);GS.\u0275dir=FS.\u0275dir;g=GS.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;FS.prototype.ngOnInit.call(this);this._viewportRuler.change().pipe(jg(this._destroy)).subscribe(function(){a.panelOpen&&(a._triggerRect=a.trigger.nativeElement.getBoundingClientRect(),a._changeDetectorRef.markForCheck())})};
g.open=function(){var a=this;FS.prototype._canOpen.call(this)&&(FS.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(Xf()).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=ala(a,this.options,this.optionGroups),c=this._getItemHeight();this.panel.nativeElement.scrollTop=0===a&&1===b?0:bla((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());FS.prototype._panelDoneAnimating.call(this,a)};g._getChangeEvent=function(a){return new HSb(this,a)};
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+=ala(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};GS.\u0275fac=function(){var a;return function(b){return(a||(a=md(GS)))(b||GS)}}();
GS.\u0275cmp=w({type:GS,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(If(c,JSb,5),If(c,nB,5),If(c,zqb,5));if(a&2){var d;Gf(d=Jf())&&(b.customTrigger=d.first);Gf(d=Jf())&&(b.options=d);Gf(d=Jf())&&(b.optionGroups=d)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(a,b){a&1&&J("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});
a&2&&(oe("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()),te("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:[Me([{provide:$B,useExisting:GS},{provide:yqb,useExisting:GS}]),ie],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&&(Ee(CSb),F(0,"div",0,1),J("click",function(){return b.toggle()}),F(3,"div",2),O(4,fBa,2,1,"span",3),O(5,iBa,3,2,"span",4),G(),F(6,"div",5),H(7,"div",6),G()(),O(8,jBa,4,14,"ng-template",7),J("backdropClick",function(){return b.close()})("attach",function(){return b._onAttached()})("detach",
function(){return b.close()}));if(a&2){var c=M(1);oe("aria-owns",b.panelOpen?b.id+"-panel":null);B(3);D("ngSwitch",b.empty);oe("id",b._valueId);B(1);D("ngSwitchCase",!0);B(1);D("ngSwitchCase",!1);B(3);D("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.panelOpen)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayMinWidth",null==b._triggerRect?null:b._triggerRect.width)("cdkConnectedOverlayOffsetY",
b._offsetY)}},dependencies:[xx,Ax,Bx,Cx,VA,UA],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 transparent;border-right:5px solid transparent;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:transparent;-webkit-text-fill-color:transparent;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:[ySb,zSb]},changeDetection:0});
var HS=function(){};HS.\u0275fac=function(a){return new (a||HS)};HS.\u0275mod=Cc({type:HS});HS.\u0275inj=mc({providers:[GSb],imports:[Mx,WA,qB,XA,wA,fC,qB,XA]});
var KSb=new sd("MAT_PAGINATOR_DEFAULT_OPTIONS"),LSb=mi(Uka(function(){})),IS=function(a,b,c){var d=LSb.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 Jw;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};V(IS,LSb);g=IS.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})};
ji.Object.defineProperties(IS.prototype,{pageIndex:{configurable:!0,enumerable:!0,get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max(eh(a),0);this._changeDetectorRef.markForCheck()}},length:{configurable:!0,enumerable:!0,get:function(){return this._length},set:function(a){this._length=eh(a);this._changeDetectorRef.markForCheck()}},pageSize:{configurable:!0,enumerable:!0,get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max(eh(a),0);this._updateDisplayedPageSizeOptions()}},
pageSizeOptions:{configurable:!0,enumerable:!0,get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(b){return eh(b)});this._updateDisplayedPageSizeOptions()}},hidePageSize:{configurable:!0,enumerable:!0,get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=bh(a)}},showFirstLastButtons:{configurable:!0,enumerable:!0,get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=bh(a)}}});
IS.\u0275fac=function(){Ad()};IS.\u0275dir=w({type:IS,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[ie]});var JS=function(a,b,c){a=IS.call(this,a,b,c)||this;c&&null!=c.formFieldAppearance&&(a._formFieldAppearance=c.formFieldAppearance);return a};V(JS,IS);JS.\u0275dir=IS.\u0275dir;
JS.\u0275fac=function(a){return new (a||JS)(C(DS),C(nx),C(KSb,8))};
JS.\u0275cmp=w({type:JS,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[ie],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&&(F(0,"div",0)(1,"div",1),O(2,nBa,5,3,"div",2),F(3,"div",3)(4,"div",4),P(5),G(),O(6,oBa,3,5,"button",5),F(7,"button",6),J("click",function(){if(b.hasPreviousPage()){var c=b.pageIndex;--b.pageIndex;b._emitPageEvent(c)}}),Uc(),F(8,"svg",7),H(9,"path",8),G()(),Vc(),F(10,"button",9),J("click",function(){return b.nextPage()}),Uc(),F(11,"svg",7),H(12,"path",10),G()(),O(13,pBa,3,5,"button",11),G()()());a&2&&(B(2),D("ngIf",!b.hidePageSize),B(3),Je(" ",b._intl.getRangeLabel(b.pageIndex,
b.pageSize,b.length)," "),B(1),D("ngIf",b.showFirstLastButtons),B(1),D("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("matTooltipPosition","above")("disabled",b._previousButtonsDisabled()),oe("aria-label",b._intl.previousPageLabel),B(3),D("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("matTooltipPosition","above")("disabled",b._nextButtonsDisabled()),oe("aria-label",b._intl.nextPageLabel),B(3),D("ngIf",b.showFirstLastButtons))},
dependencies:[yx,ux,rB,eC,GS,nB,lF],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{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 KS=function(a){this.paths=a;this.children=[];this.onVisit=new Jw;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};KS.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};KS.\u0275fac=function(a){return new (a||KS)(C(GK))};
KS.\u0275cmp=w({type:KS,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&&(O(0,qBa,1,3,"mat-paginator",0),F(1,"ul",1),O(2,
rBa,6,4,"li",2),G());a&2&&(D("ngIf",b.children.length>b.pageSize),B(2),D("ngForOf",b.childrenOnPage))},dependencies:[yx,ux,dN,hN,CS,JS],encapsulation:2});
var LS=function(){};LS.\u0275fac=function(a){return new (a||LS)};LS.\u0275mod=Cc({type:LS});LS.\u0275inj=mc({imports:[Mx,WA]});
var MS=function(){};MS.\u0275fac=function(a){return new (a||MS)};MS.\u0275mod=Cc({type:MS});MS.\u0275inj=mc({imports:[Mx,tS,LS]});
var NS=function(){};NS.\u0275fac=function(a){return new (a||NS)};NS.\u0275mod=Cc({type:NS});NS.\u0275inj=mc({imports:[Mx,MS]});
var OS=function(){};OS.\u0275fac=function(a){return new (a||OS)};OS.\u0275mod=Cc({type:OS});OS.\u0275inj=mc({providers:[xSb],imports:[Mx,uG,HS,mH,XA]});
var PS=function(){};PS.\u0275fac=function(a){return new (a||PS)};PS.\u0275mod=Cc({type:PS});PS.\u0275inj=mc({imports:[Mx,ON,NS,OS]});
var QS=function(){this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new Jw};QS.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};QS.\u0275fac=function(a){return new (a||QS)};
QS.\u0275cmp=w({type:QS,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","click",4,"ngIf"],["target","_blank",1,"normal-link",3,"href","click"]],template:function(a,b){a&1&&(O(0,sBa,2,3,"span",0),O(1,tBa,2,2,"a",1));a&2&&(D("ngIf",b.isGreyedOut||
!b.linkEnabled),B(1),D("ngIf",!b.isGreyedOut&&b.linkEnabled))},dependencies:[ux],encapsulation:2,changeDetection:0});
var RS=function(){};RS.\u0275fac=function(a){return new (a||RS)};RS.\u0275mod=Cc({type:RS});RS.\u0275inj=mc({imports:[Mx]});
var SS=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new Jw;this.onClickCopyIssueShortLinks=new Jw;this.onClickCopyAsIssueSearch=new Jw};SS.\u0275fac=function(a){return new (a||SS)};
SS.\u0275cmp=w({type:SS,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&&(F(0,"b-button-group")(1,"button",0),J("click",function(){return b.onClickCopyIssueIds.emit()}),H(2,"b-icon",1),G(),F(3,"button",2),H(4,"b-icon",3),G(),F(5,"mat-menu",null,4),O(7,uBa,2,1,"button",5),F(8,"button",6),J("click",function(){return b.onClickCopyAsIssueSearch.emit()}),
P(9," Copy as issue search "),G()()());if(a&2){var c=M(6);B(3);D("matMenuTriggerFor",c);B(4);D("ngIf",b.shouldShowCopyIssueShortLinks)}},dependencies:[ux,bF,$E,eF,rB,pH,BH],encapsulation:2,changeDetection:0});
var MSb=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;this._document.body.appendChild(c)};MSb.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};
MSb.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};
var TS=function(a){this._document=a};TS.prototype.copy=function(a){a=new MSb(a,this._document);var b=a.copy();a.destroy();return b};TS.\u0275fac=function(a){return new (a||TS)(t(hi))};TS.\u0275prov=lc({token:TS,factory:TS.\u0275fac,providedIn:"root"});
new sd("CDK_COPY_TO_CLIPBOARD_CONFIG");
new sd("xap-clipboard-snackbar-options");
var US=function(){};US.\u0275fac=function(a){return new (a||US)};US.\u0275mod=Cc({type:US});US.\u0275inj=mc({imports:[Mx,uG,pF,nK]});
var VS=function(){};VS.\u0275fac=function(a){return new (a||VS)};VS.\u0275mod=Cc({type:VS});VS.\u0275inj=mc({imports:[Mx,fF,uG,cI,dI,US]});
var WS=function(a,b,c,d,e){this.clipboard=a;this.analytics=c;this.butterBar=d;this.window=e;this.shortLinkPrefix="QA"!==b.getEnvironmentType()?"b/":"b-qa/"},mJa=function(a,b){a.clipboard.copy(b.join(", "));tK(a.butterBar,"Issue IDs copied.",2E3);Zn(a.analytics,ao.LIST_ISSUES,"copyIssueId","IDs")},nJa=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));tK(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);Zn(a.analytics,ao.LIST_ISSUES,"copyIssueId","b/ links")},
oJa=function(a,b){b=en({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+"/"+b);tK(a.butterBar,"Issue search link copied.",2E3);Zn(a.analytics,ao.LIST_ISSUES,"copyIssueId","Issue search link")};WS.\u0275fac=function(a){return new (a||WS)(t(TS),t(yH),t(FM),t(sK),t(jM))};WS.\u0275prov=lc({token:WS,factory:WS.\u0275fac,providedIn:"root"});
var XS=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)};XS.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
XS.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};XS.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"};XS.\u0275fac=function(a){return new (a||XS)(C(wd))};
XS.\u0275dir=w({type:XS,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var YS=function(){};YS.\u0275fac=function(a){return new (a||YS)};YS.\u0275mod=Cc({type:YS});YS.\u0275inj=mc({});
var ZS=function(){KI.apply(this,arguments)};V(ZS,KI);ji.Object.defineProperties(ZS.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});ZS.\u0275fac=function(){var a;return function(b){return(a||(a=md(ZS)))(b||ZS)}}();ZS.\u0275dir=w({type:ZS,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[ie]});var $S=function(){};
$S.\u0275fac=function(a){return new (a||$S)};$S.\u0275mod=Cc({type:$S});$S.\u0275inj=mc({imports:[Mx,QI]});
var aT=function(){this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};ji.Object.defineProperties(aT.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){this.componentPath="settings"===this.componentPathsLinkTo?zo(a,Bsa):zo(a)}}});aT.\u0275fac=function(a){return new (a||aT)};
aT.\u0275cmp=w({type:aT,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&&(F(0,"div",0)(1,"p",1),P(2),G(),F(3,"span",2),O(4,vBa,6,4,"span",3),O(5,wBa,2,0,"span",4),G()());a&2&&(B(2),Je("",b.label,":"),B(2),D("ngForOf",b.componentPath),B(1),D("ngIf",b.isArchived))},dependencies:[yx,ux,dN,hN,CS,ZS],encapsulation:2});
var bT=function(){};bT.\u0275fac=function(a){return new (a||bT)};bT.\u0275mod=Cc({type:bT});bT.\u0275inj=mc({imports:[Mx,ON,NS,$S]});
var cT=function(){this.warningChunks=[]};cT.prototype.ngOnInit=function(){var a=this.warningText,b=NSb(a,"EXTERNAL_PUBLIC")||NSb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};cT.prototype.isText=function(a){return void 0!==a.text};cT.\u0275fac=function(a){return new (a||cT)};
cT.\u0275cmp=w({type:cT,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&&(F(0,"div"),O(1,zBa,3,2,"span",0),G());a&2&&(B(1),D("ngForOf",b.warningChunks))},dependencies:[yx,ux,BS],encapsulation:2});
var OSb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]),NSb=function(a,b){var c=OSb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return 0<=a?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null};
var dT=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=PNb(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};
dT.prototype.allow=function(){var a;null==(a=this.dialogRef)||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow()};dT.prototype.cancel=function(){var a;null==(a=this.dialogRef)||a.close();this.callbacks.cancel()};dT.\u0275fac=function(a){return new (a||dT)(C(NB),C(dP),C(CB))};
dT.\u0275cmp=w({type:dT,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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"div",2),H(4,"b-component-move-warning-content",3),G(),H(5,"br"),F(6,"a",4),P(7,"Learn more"),G(),O(8,ABa,5,1,"div",5),G(),F(9,"mat-dialog-actions")(10,"button",6),J("click",function(){return b.cancel()}),P(11," Cancel "),G(),O(12,BBa,2,1,"button",7),G());a&2&&(B(1),Ke(b.header),B(3),D("warningText",b.warning),B(2),oe("href",b.learnMore,Ud),B(2),D("ngIf",b.isExternalMove&&b.isAllowed),B(4),D("ngIf",b.isAllowed))},
dependencies:[ux,by,hy,rB,tO,QB,RB,SB,TB,cT],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});
var eT=function(){};eT.\u0275fac=function(a){return new (a||eT)};eT.\u0275mod=Cc({type:eT});eT.\u0275inj=mc({imports:[Mx,wy,uG,yO,UB,MS]});
var fT=function(a,b,c){this.componentActions=a;this.errorHandler=b;this.cdr=c};fT.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 gT=function(a,b){a.selectedId&&PSb(a,a.selectedId);a.selectedId=b;if(a=QSb(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},hT=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},RSb=function(a){return!a.selectedId||1>a.selectedId?-1:a.components.findIndex(function(b){return b.componentId==a.selectedId})},PSb=function(a,b){b&&(a=QSb(a.selectedId))&&a.setAttribute("aria-selected",
"false")},QSb=function(a){return a?document.getElementById("component-"+a):null},SSb=function(a){for(a=a.target;;){if(!a)return!1;if("A"===a.tagName)return!0;a=a.parentNode}};
new Promise(function(){});
var iT=function(a,b,c,d,e){yI.call(this);var f=this;this.componentApi=b;this.appEvents=e;this.components=a.get("components-second-level-cache")||a.create("components-second-level-cache",{capacity:25});this.subscriptions.add(this.appEvents.componentModified.subscribe(function(h){f.components.removeAll();d.invalidate(h)}));this.componentGetter=c.adapt(function(h){var k=Da(h);Ja(k);return f.componentApi.query({id:k}).then(function(q){var u={};q=r(q);for(var x=q.next();!x.done;x=q.next())(x=x.value)&&
(u[x.componentId]=x);return h.map(function(E){return u[E]||null})})})};V(iT,yI);iT.\u0275dir=yI.\u0275dir;g=iT.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){return this.componentApi.getChildren(a,void 0===b?!1:b)};
g.getUncached=function(a,b){b=void 0===b?!1:b;this.components.remove(String(a));var c={};b&&(c.checkEditAccess=!0);return this.componentApi.fetchComponent(a,c)};g.search=function(a,b){var c={query:a};if(void 0===b?0:b)c.includearchived=!0;return TSb(this,a,this.componentApi.query(c))};
var TSb=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=Era();if(d)return Ao({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=r(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};
iT.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(String(f))});Ja(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=r(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});var d={};c=r(c);for(var e=c.next();!e.done;d={$jscomp$loop$prop$id$1695:d.$jscomp$loop$prop$id$1695},e=c.next())d.$jscomp$loop$prop$id$1695=e.value,this.components.put(String(d.$jscomp$loop$prop$id$1695),a.then(function(f){return function(h){return h[f.$jscomp$loop$prop$id$1695]?
h[f.$jscomp$loop$prop$id$1695]:Promise.reject({data:{message:"Could not load details for component "+f.$jscomp$loop$prop$id$1695}})}}(d)))}};iT.\u0275fac=function(a){return new (a||iT)(t(PK),t(MGb),t(oI),t(IJ),t(BK))};iT.\u0275prov=lc({token:iT,factory:iT.\u0275fac,providedIn:"root"});
var EBa=function(a){return{q:a}},jT=function(a,b,c,d){fT.call(this,a,c,d);this.paths=b;this.includeArchived=!1;this.childClosed=new Jw;this.selectedId=null};V(jT,fT);jT.prototype.ngOnInit=function(){};jT.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};jT.prototype.ngOnChanges=function(a){a.components&&USb(this)};jT.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;gT(this,a);this.rootController.selectionChanged(this,a)};
var USb=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){return a.selectNext()})};g=jT.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=RSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(PSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(gT(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else gT(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=RSb(this);0==a?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(gT(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=hT(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=hT(this);a&&this.showChildren(a)};g.setSelected=function(a,b){SSb(b)||(gT(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=hT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};jT.\u0275fac=function(a){return new (a||jT)(C(iT),C(GK),C(xK),C(uI,2))};
jT.\u0275cmp=w({type:jT,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[Me([uI]),ie,Jc],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"],[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&&(F(0,"ol",0),O(1,MBa,18,11,"li",1),G());a&2&&(B(1),D("ngForOf",b.components))},dependencies:[yx,ux,lF,sB,XE,aN,BS,jT],encapsulation:2});
var PBa=function(a){return{q:a}},kT=function(a,b,c,d,e,f){fT.call(this,a,d,f);this.paths=b;this.selectedId=null;this.includeArchived=!1;this.init=new Jw;this.subscriptions=new U.Subscription;this.destroyed$=new U.ReplaySubject(1);this.scrollArea=e.nativeElement.parentElement;this.registerKeys(c)};V(kT,fT);g=kT.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;(0,U.timer)(0).pipe(jg(this.destroyed$)).subscribe(function(){VSb(a)&&!a.selectedId&&gT(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&&WSb(this)};g.onSubtreeChildClosed=function(a){var b=this;gT(this,a);this.focusedController=void 0;(0,U.timer)(0).pipe(jg(this.destroyed$)).subscribe(function(){lT(b)})};
g.fireSelectionEvent=function(a){var b=QSb(a);b&&b.click();lT(this,a)};var WSb=function(a){(0,U.timer)(0).pipe(jg(a.destroyed$)).subscribe(function(){VSb(a)&&!a.selectedId&&gT(a,a.components[0].componentId)})};g=kT.prototype;g.selectionChanged=function(a,b){b&&lT(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&PSb(b,b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){SSb(b)||(gT(this,a),this.selectionChanged(null),lT(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(a){var b=this;this.subscriptions.add(cJ(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=hT(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=hT(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(hT(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=RSb(this);VSb(this)&&1<=a&&(gT(this,this.components[a-1].componentId),lT(this))}};
g.selectNext=function(){if(VSb(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=RSb(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(PSb(this,this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(gT(this,this.components[a+1].componentId),lT(this))}else gT(this,this.components[0].componentId),lT(this)};
var lT=function(a,b){var c=XSb(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=QSb(b||a.selectedId)){b=XSb(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},XSb=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},VSb=function(a){return!!(a.components&&0<a.components.length)};kT.\u0275fac=function(a){return new (a||kT)(C(iT),C(GK),C(bJ),C(xK),C(wd),C(uI,2))};
kT.\u0275cmp=w({type:kT,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[Me([uI]),ie,Jc],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"],[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&&(F(0,"ol",0),O(1,XBa,18,11,"li",1),G());a&2&&(B(1),D("ngForOf",b.components))},dependencies:[yx,ux,lF,sB,XE,aN,BS,jT],encapsulation:2});
var mT=function(){};mT.\u0275fac=function(a){return new (a||mT)};mT.\u0275mod=Cc({type:mT});mT.\u0275inj=mc({imports:[Mx,mH,uG,pF,MN,MS]});
var YSb=new sd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}});
var ZSb=["input"],$Sb=function(a){return{enterDuration:a}},aTb=0,bTb={provide:wx,useExisting:ic(function(){return nT}),multi:!0},cTb=function(a,b){this.source=a;this.checked=b},dTb=ni(ki(li(mi(function(a){this._elementRef=a})))),oT=function(a,b,c,d,e,f,h){a=dTb.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 Jw;
a.toggleChange=new Jw;a.tabIndex=parseInt(d)||0;a.color=a.defaultColor=e.color||"accent";a._noopAnimations="NoopAnimations"===f;a.id=a._uniqueId=h+ ++aTb;return a};V(oT,dTb);g=oT.prototype;g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){"keyboard"===b||"program"===b?a._focused=!0: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))};
ji.Object.defineProperties(oT.prototype,{required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=bh(a)}},checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){this._checked=bh(a);this._changeDetectorRef.markForCheck()}},inputId:{configurable:!0,enumerable:!0,get:function(){return(this.id||this._uniqueId)+"-input"}}});oT.\u0275fac=function(){Ad()};
oT.\u0275dir=w({type:oT,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:[ie]});var nT=function(a,b,c,d,e,f){return oT.call(this,a,b,c,d,e,f,"mat-slide-toggle-")||this};V(nT,oT);nT.\u0275dir=oT.\u0275dir;g=nT.prototype;
g._createChangeEvent=function(a){return new cTb(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?Iz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};
nT.\u0275fac=function(a){return new (a||nT)(C(wd),C(Hz),C(nx),fd("tabindex"),C(YSb),C(Xv,8))};
nT.\u0275cmp=w({type:nT,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&Hf(ZSb,5);if(a&2){var c;Gf(c=Jf())&&(b._inputElement=c.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Ce("id",b.id),oe("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),te("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:[Me([bTb]),ie],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&&(Ee(),F(0,"label",0,1)(2,"span",2)(3,"input",3,4),J("change",function(e){return b._onChangeEvent(e)})("click",function(e){return b._onInputClick(e)}),G(),F(5,"span",5),H(6,"span",6),F(7,"span",
7),H(8,"span",8),G()()(),F(9,"span",9,10),J("cdkObserveContent",function(){return b._onLabelTextChange()}),F(11,"span",11),P(12,"\u00a0"),G(),Fe(13),G()());if(a&2){var c=M(1),d=M(10);oe("for",b.inputId);B(2);te("mat-slide-toggle-bar-no-side-margin",!d.textContent||!d.textContent.trim());B(1);D("id",b.inputId)("required",b.required)("tabIndex",b.tabIndex)("checked",b.checked)("disabled",b.disabled);oe("name",b.name)("aria-checked",b.checked)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",
b.ariaDescribedby);B(4);D("matRippleTrigger",c)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Oe(18,$Sb,b._noopAnimations?0:150))}},dependencies:[kB,Nz],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.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 pT=function(){};pT.\u0275fac=function(a){return new (a||pT)};pT.\u0275mod=Cc({type:pT});pT.\u0275inj=mc({});var qT=function(){};qT.\u0275fac=function(a){return new (a||qT)};qT.\u0275mod=Cc({type:qT});qT.\u0275inj=mc({imports:[pT,oB,XA,Oz,pT,XA]});
var eTb=0,rT=function(){this.id="b-slide-toggle-"+ ++eTb;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new Jw};rT.\u0275fac=function(a){return new (a||rT)};
rT.\u0275cmp=w({type:rT,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&&(F(0,"mat-slide-toggle",0),J("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
P(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");B(1);Ke(b.label)}},dependencies:[nT,lF],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var sT=function(){};sT.\u0275fac=function(a){return new (a||sT)};sT.\u0275mod=Cc({type:sT});sT.\u0275inj=mc({imports:[qT,mH]});
var tT=function(a){this.$log=a;this.accessPolicyPrincipalToString=Cn;this.stringToAccessPolicyPrincipal=YBa},uT=function(){return{inheritance:"INHERITANCE_UNSPECIFIED",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},vT=function(a){return{inheritance:a.inheritance||"INHERITANCE_UNSPECIFIED",admins:Co(a.admins),editors:Co(a.editors),appenders:Co(a.appenders),readers:Co(a.readers),restrictedReaders:Co(a.restrictedReaders),
restrictedPlusReaders:Co(a.restrictedPlusReaders),inheritedAdmins:Co(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},wT=function(a){return{inheritance:a.inheritance,admins:Do(a.admins),editors:Do(a.editors),appenders:Do(a.appenders),readers:Do(a.readers),restrictedReaders:Do(a.restrictedReaders),restrictedPlusReaders:Do(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}};tT.\u0275fac=function(a){return new (a||tT)(t(vK))};tT.\u0275prov=lc({token:tT,factory:tT.\u0275fac,providedIn:"root"});
var fTb=new RegExp("4:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");
var xT=function(a){Z.call(this,a)};V(xT,Z);xT.prototype.getSocialApplication=function(){return p(this,3)};xT.prototype.getAffinityType=function(){return W(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};xT.prototype.setAffinityType=function(a){return l(this,12,a)};xT.prototype.toObject=function(){return gTb(this)};
var gTb=function(a){if(null!=a)return{gapiApiKey:n(p(a,1)),gapiApiKeyTest:n(p(a,2)),socialApplication:n(p(a,3)),papiClientId:n(p(a,4)),papiClientName:n(p(a,5)),papiClientVersion:n(p(a,6)),requestTimeoutMillis:fj(a,8,3E4),includeDomainAddressBook:n(Mo(a,10)),includeDomainGroups:n(Mo(a,11)),affinityType:W(a,12,"CONTACT_STORE_DEFAULT_AFFINITY"),autocompletePageSize:fj(a,13,15),rankedTargetsPageSize:fj(a,14,500),peopleContainerMask:W(a,15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY"),peopleFieldMask:W(a,
16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata"),includeOnlyNames:bj(a,17,!1)}};
var yT=function(a){Z.call(this,a,-1,hTb)};V(yT,Z);yT.prototype.getExperimentIdsList=function(){return ob(this,4)};yT.prototype.setExperimentIdsList=function(a){return ll(this,4,a)};var hTb=[4];yT.prototype.toObject=function(){return iTb(this)};var iTb=function(a){if(null!=a)return{enablePapiClearcutLogging:bj(a,1,!0),enableOzClearcutLogging:bj(a,2,!0),enableApiClearcutLogging:bj(a,3,!0),experimentIdsList:n(ob(a,4)),enablePapi:bj(a,5,!0),enableCacheFiltering:bj(a,6,!0)}};
var jTb=function(a){Z.call(this,a)};V(jTb,Z);g=jTb.prototype;g.getClientInfo=function(){return m(this,xT,1)};g.getMutableClientInfo=function(){return pu(this,xT,1)};g.setClientInfo=function(a){Gb(this,1,a)};g.getExperiments=function(){return m(this,yT,2)};g.setExperiments=function(a){Gb(this,2,a)};g.hasExperiments=function(){return mj(this,2)};g.toObject=function(){var a=null!=this?{clientInfo:gTb(this.getClientInfo()),experiments:iTb(this.getExperiments())}:void 0;return a};
var kTb=function(a){Z.call(this,a)};V(kTb,Z);g=kTb.prototype;g.getDelegatorId=function(){return p(this,2)};g.getEnvType=function(){return p(this,5)};g.setEnvType=function(a){l(this,5,a)};g.getCacheSize=function(){return p(this,7)};g.setCacheSize=function(a){l(this,7,a)};g.hasCacheSize=function(){return ej(this,7)};g.toObject=function(){var a=null!=this?{delegatorId:n(p(this,2)),envType:n(p(this,5)),releaseEnvType:n(p(this,6)),cacheSize:n(p(this,7))}:void 0;return a};
var aCa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,ZBa=/([#].*?&|[#])authuser=([^&#]*)\b/,$Ba=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;
var zT=function(a){this.config_=a;this.userInfo_=new kTb;this.onAuthError_=this.gapiClientThenable_=null};zT.prototype.getClientInfo=function(){return this.config_.getClientInfo()};zT.prototype.getExperiments=function(){return this.config_.getExperiments()};zT.prototype.getUserInfo=function(){return this.userInfo_};
var yCa=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=eCa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_},lTb=function(a,b){b&&(a.gapiClientThenable_=b.then(function(c){return c},function(){return eCa(10,5E3).then(function(c){return c.client})}))};zT.prototype.getAuthErrorHandler=function(){return this.onAuthError_};zT.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};
var mTb=function(){};
var AT=[];AT.push=function(){throw Error("Od");};var BT={cancel:function(){},isPending:function(){return!1}};
var CT=function(a){this.response_=a||function(){};this.timer_=zD(this.onTimer_,0,this);this.addressBookId_=""};g=CT.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){AD(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 nTb=new Map([["personal",2],["domain",4],["pcab",3]]);
var Io=function(a){Z.call(this,a)};V(Io,Z);g=Io.prototype;g.getEventType=function(){return X(this,1,0)};g.setEventType=function(a){return l(this,1,a)};g.getApiType=function(){return X(this,2,0)};g.setApiType=function(a){return l(this,2,a)};g.getCacheStatus=function(){return X(this,3,0)};g.setCacheStatus=function(a){return l(this,3,a)};g.getAddressBook=function(){return X(this,4,0)};g.setAddressBook=function(a){return l(this,4,a)};g.getRpcType=function(){return X(this,5,0)};
g.setRpcType=function(a){return l(this,5,a)};g.getLookupType=function(){return X(this,6,0)};g.setLookupType=function(a){return l(this,6,a)};g.getToken=function(){return W(this,7,"")};g.setToken=function(a){return l(this,7,a)};g.toObject=function(){var a=null!=this?{eventType:X(this,1,0),apiType:X(this,2,0),cacheStatus:X(this,3,0),addressBook:X(this,4,0),rpcType:X(this,5,0),lookupType:X(this,6,0),token:W(this,7,""),isCountRecorded:bj(this,8,!1),isStatusRecorded:bj(this,9,!1)}:void 0;return a};
var DT=function(a){Z.call(this,a)};V(DT,Z);DT.prototype.setDevice=function(a){return l(this,1,a)};DT.prototype.getApplication=function(){return p(this,2)};DT.prototype.setApplication=function(a){return l(this,2,a)};DT.prototype.toObject=function(){return oTb(this)};var oTb=function(a){if(null!=a)return{device:n(p(a,1)),application:n(p(a,2)),platform:n(p(a,3)),trafficType:n(p(a,4))}};
var qTb=function(a){Z.call(this,a,-1,pTb)};V(qTb,Z);g=qTb.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getMetadata=function(){return m(this,ET,4)};g.setMetadata=function(a){Gb(this,4,a)};g.getClientInterface=function(){return m(this,FT,5)};g.setClientInterface=function(a){return Gb(this,5,a)};var GT=function(a){Z.call(this,a)};V(GT,Z);GT.prototype.getLoggingId=function(){return p(this,1)};GT.prototype.setLoggingId=function(a){l(this,1,a)};
GT.prototype.getMetadata=function(){return m(this,HT,3)};GT.prototype.setMetadata=function(a){Gb(this,3,a)};var IT=function(a){Z.call(this,a)};V(IT,Z);g=IT.prototype;g.getType=function(){return p(this,5)};g.setType=function(a){return l(this,5,a)};g.hasType=function(){return ej(this,5)};g.getEmail=function(){return p(this,1)};g.setEmail=function(a){return l(this,1,a)};g.hasEmail=function(){return ej(this,1)};g.getPhone=function(){return p(this,2)};g.setPhone=function(a){return l(this,2,a)};
g.hasPhone=function(){return ej(this,2)};g.getObfuscatedGaiaId=function(){return p(this,3)};g.setObfuscatedGaiaId=function(a){l(this,3,a)};g.getContactId=function(){return p(this,4)};g.setContactId=function(a){l(this,4,a)};g.hasContactId=function(){return ej(this,4)};g.getGroupId=function(){return p(this,6)};g.setGroupId=function(a){l(this,6,a)};g.hasGroupId=function(){return ej(this,6)};var HT=function(a){Z.call(this,a,-1,rTb)};V(HT,Z);g=HT.prototype;g.getPosition=function(){return m(this,JT,1)};
g.setPosition=function(a){return Gb(this,1,a)};g.getProfile=function(){return m(this,KT,2)};g.getIsPlaceholder=function(){return Mo(this,7)};g.setIsPlaceholder=function(a){l(this,7,a)};g.getIsSelf=function(){return Mo(this,11)};var JT=function(a){Z.call(this,a)};V(JT,Z);g=JT.prototype;g.getColumn=function(){return p(this,2)};g.setColumn=function(a){return l(this,2,a)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return ej(this,3)};
var KT=function(a){Z.call(this,a)};V(KT,Z);KT.prototype.getName=function(){return p(this,1)};KT.prototype.setName=function(a){return l(this,1,a)};KT.prototype.hasName=function(){return ej(this,1)};var sTb=function(a){Z.call(this,a)};V(sTb,Z);var ET=function(a){Z.call(this,a)};V(ET,Z);ET.prototype.getAffinityVersion=function(){return p(this,2)};ET.prototype.setAffinityVersion=function(a){l(this,2,a)};var LT=function(a){Z.call(this,a)};V(LT,Z);g=LT.prototype;
g.getQueryLength=function(){return p(this,1)};g.setQueryLength=function(a){return l(this,1,a)};g.hasQueryLength=function(){return ej(this,1)};g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){rb(this,2)};g.hasQuery=function(){return ej(this,2)};var MT=function(a){Z.call(this,a)};V(MT,Z);MT.prototype.setLatencyUsec=function(a){l(this,1,a)};var tTb=function(a){Z.call(this,a)};V(tTb,Z);var uTb=function(a){Z.call(this,a)};V(uTb,Z);
var NT=function(a){Z.call(this,a)};V(NT,Z);g=NT.prototype;g.getQueryId=function(){return p(this,1)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){rb(this,4)};g.hasInstanceId=function(){return ej(this,4)};g.getAffinityVersion=function(){return p(this,5)};g.setAffinityVersion=function(a){l(this,5,a)};var vTb=function(a){Z.call(this,a)};V(vTb,Z);var wTb=function(a){Z.call(this,a)};V(wTb,Z);var OT=function(a){Z.call(this,a)};
V(OT,Z);OT.prototype.getExistingSelectionsCount=function(){return p(this,1)};OT.prototype.setExistingSelectionsCount=function(a){l(this,1,a)};OT.prototype.getPosition=function(){return m(this,JT,2)};OT.prototype.setPosition=function(a){return Gb(this,2,a)};var xTb=function(a){Z.call(this,a)};V(xTb,Z);var FT=function(a){Z.call(this,a,-1,yTb)};V(FT,Z);g=FT.prototype;g.getEventSource=function(){return p(this,2)};g.setEventSource=function(a){l(this,2,a)};
g.getSocialClient=function(){return m(this,DT,3)};g.setSocialClient=function(a){return Gb(this,3,a)};g.setVersionName=function(a){return l(this,5,a)};g.getBaselineCl=function(){return p(this,7)};g.setBaselineCl=function(a){return l(this,7,a)};g.hasBaselineCl=function(){return ej(this,7)};g.getClientAgent=function(){return p(this,9)};g.setClientAgent=function(a){return l(this,9,a)};g.getPeoplekitEntryPoint=function(){return p(this,11)};g.setPeoplekitEntryPoint=function(a){return l(this,11,a)};
g.getEnvironment=function(){return p(this,13)};g.setEnvironment=function(a){return l(this,13,a)};var pTb=[2];qTb.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),entityList:Hb(xb(this,GT,2),zTb),scoringInfo:ATb(m(this,sTb,3)),metadata:BTb(this.getMetadata()),clientInterface:CTb(this.getClientInterface()),eventTimestampUsec:n(p(this,6))}:void 0;return a};GT.prototype.toObject=function(){return zTb(void 0,this)};
var zTb=function(a,b){if(null!=b){var c={loggingId:n(p(b,1)),entityId:DTb(a,m(b,IT,4)),metadata:ETb(a,b.getMetadata())};a&&(c.$jspbMessageInstance=b);return c}};IT.prototype.toObject=function(){return DTb(void 0,this)};var DTb=function(a,b){if(null!=b){var c={type:n(p(b,5)),email:n(p(b,1)),phone:n(p(b,2)),obfuscatedGaiaId:n(p(b,3)),contactId:n(p(b,4)),groupId:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}},rTb=[4,3];HT.prototype.toObject=function(){return ETb(void 0,this)};
var ETb=function(a,b){if(null!=b){var c={position:FTb(a,b.getPosition()),additionalPositionList:Hb(xb(b,JT,4),FTb,a),profile:GTb(a,b.getProfile()),provenanceList:n(ob(b,3)),hasAvatar:n(Mo(b,5)),isBoosted:n(Mo(b,6)),isPlaceholder:n(Mo(b,7)),smartAddressEntityMetadata:HTb(a,m(b,OT,8)),uiSurface:n(p(b,9)),isSelf:n(Mo(b,11))};a&&(c.$jspbMessageInstance=b);return c}};JT.prototype.toObject=function(){return FTb(void 0,this)};
var FTb=function(a,b){if(null!=b){var c={row:n(p(b,1)),column:n(p(b,2)),type:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};KT.prototype.toObject=function(){return GTb(void 0,this)};var GTb=function(a,b){if(null!=b){var c={name:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};sTb.prototype.toObject=function(){return ATb(this)};var ATb=function(a){if(null!=a)return{scoreVersion:n(p(a,1)),sessionId:n(p(a,2))}};ET.prototype.toObject=function(){return BTb(this)};
var BTb=function(a){if(null!=a)return{autocompleteMetadata:ITb(m(a,LT,1)),affinityVersion:n(p(a,2)),showMetadata:JTb(m(a,MT,6)),queryErrorMetadata:KTb(m(a,tTb,7)),autocompleteClientMetadata:LTb(m(a,uTb,3)),reactrMetadata:MTb(m(a,vTb,4)),apdlMetadata:NTb(m(a,wTb,5)),phoneRegionHints:OTb(m(a,xTb,8))}};LT.prototype.toObject=function(){return ITb(this)};var ITb=function(a){if(null!=a)return{queryLength:n(p(a,1)),query:n(p(a,2)),sessions:PTb(m(a,NT,3))}};MT.prototype.toObject=function(){return JTb(this)};
var JTb=function(a){if(null!=a)return{latencyUsec:n(p(a,1)),dataLatencyUsec:n(p(a,2))}};tTb.prototype.toObject=function(){return KTb(this)};var KTb=function(a){if(null!=a)return{canonicalCode:n(p(a,1))}};uTb.prototype.toObject=function(){return LTb(this)};var LTb=function(a){if(null!=a)return{hadValidCache:n(Mo(a,1)),timeSinceCacheRefreshUsec:n(p(a,2)),cacheRefreshUsec:n(p(a,3)),hadDeviceContactPermissions:n(Mo(a,4))}};NT.prototype.toObject=function(){return PTb(this)};
var PTb=function(a){if(null!=a)return{queryId:n(p(a,1)),selectionId:n(p(a,2)),submissionId:n(p(a,3)),instanceId:n(p(a,4)),affinityVersion:n(p(a,5))}};vTb.prototype.toObject=function(){return MTb(this)};var MTb=function(a){if(null!=a)return{attributedSharingEnabled:n(Mo(a,1)),sharePanelVersion:n(p(a,2))}};wTb.prototype.toObject=function(){return NTb(this)};var NTb=function(a){if(null!=a)return{applicationPackageName:n(p(a,1)),widgetName:n(p(a,2))}};
OT.prototype.toObject=function(){return HTb(void 0,this)};var HTb=function(a,b){if(null!=b){var c={existingSelectionsCount:n(p(b,1)),position:FTb(a,b.getPosition()),replacementOriginEmailAddress:n(p(b,3)),replacementDestinationEmailAddress:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};xTb.prototype.toObject=function(){return OTb(this)};var OTb=function(a){if(null!=a)return{mobileNetworkCountry:n(p(a,1)),simCountry:n(p(a,2)),localeCountry:n(p(a,3))}},yTb=[6];FT.prototype.toObject=function(){return CTb(this)};
var CTb=function(a){if(null!=a)return{eventSource:n(p(a,2)),socialClient:oTb(a.getSocialClient()),versionName:n(p(a,5)),applicationIdentifies:n(p(a,10)),baselineCl:n(p(a,7)),enabledExperimentsFlagsList:n(ob(a,6)),sendkitEntryPoint:n(p(a,8)),clientAgent:n(p(a,9)),peoplekitEntryPoint:n(p(a,11)),environment:n(p(a,13))}};
var QTb=function(a){Z.call(this,a)};V(QTb,Z);g=QTb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return ej(this,2)};g.toObject=function(){return RTb(this)};var RTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2))}};
var STb=function(a){Z.call(this,a)};V(STb,Z);g=STb.prototype;g.getApiType=function(){return p(this,1)};g.setApiType=function(a){return l(this,1,a)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return ej(this,2)};g.getStatus=function(){return X(this,4,2)};g.setStatus=function(a){return l(this,4,a)};g.hasStatus=function(){return ej(this,4)};g.setTotalUsec=function(a){return l(this,5,a)};
g.setBlockedUsec=function(a){return l(this,6,a)};g.setNetworkUsec=function(a){l(this,7,a)};g.getCacheStatus=function(){return p(this,8)};g.setCacheStatus=function(a){return l(this,8,a)};g.getAddressBook=function(){return p(this,9)};g.setAddressBook=function(a){return l(this,9,a)};g.toObject=function(){return TTb(this)};
var TTb=function(a){if(null!=a)return{apiType:n(p(a,1)),itemCount:n(p(a,2)),notFoundCount:n(p(a,3)),status:X(a,4,2),totalUsec:n(p(a,5)),blockedUsec:n(p(a,6)),networkUsec:n(p(a,7)),cacheStatus:n(p(a,8)),addressBook:n(p(a,9))}};
var UTb=function(a){Z.call(this,a)};V(UTb,Z);g=UTb.prototype;g.getStatus=function(){return X(this,1,2)};g.setStatus=function(a){return l(this,1,a)};g.hasStatus=function(){return ej(this,1)};g.setTotalUsec=function(a){return l(this,2,a)};g.toObject=function(){return VTb(this)};var VTb=function(a){if(null!=a)return{status:X(a,1,2),totalUsec:n(p(a,2)),scriptLoadUsec:n(p(a,3)),papiLoadUsec:n(p(a,4)),transportType:n(p(a,5))}};
var WTb=function(a){Z.call(this,a)};V(WTb,Z);g=WTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.toObject=function(){return XTb(this)};var XTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2))}};
var YTb=function(a){Z.call(this,a)};V(YTb,Z);g=YTb.prototype;g.getRpcType=function(){return p(this,1)};g.setRpcType=function(a){return l(this,1,a)};g.getLookupType=function(){return p(this,2)};g.setLookupType=function(a){return l(this,2,a)};g.getStatus=function(){return X(this,3,2)};g.setStatus=function(a){return l(this,3,a)};g.hasStatus=function(){return ej(this,3)};g.setTotalUsec=function(a){return l(this,4,a)};g.setBlockedUsec=function(a){return l(this,5,a)};
g.setNetworkUsec=function(a){l(this,6,a)};g.toObject=function(){return ZTb(this)};var ZTb=function(a){if(null!=a)return{rpcType:n(p(a,1)),lookupType:n(p(a,2)),status:X(a,3,2),totalUsec:n(p(a,4)),blockedUsec:n(p(a,5)),networkUsec:n(p(a,6))}};
var $Tb=function(a){Z.call(this,a)};V($Tb,Z);g=$Tb.prototype;g.getEnvType=function(){return p(this,1)};g.setEnvType=function(a){l(this,1,a)};g.getCacheSize=function(){return p(this,2)};g.setCacheSize=function(a){l(this,2,a)};g.hasCacheSize=function(){return ej(this,2)};g.toObject=function(){return aUb(this)};var aUb=function(a){if(null!=a)return{envType:n(p(a,1)),cacheSize:n(p(a,2)),cacheSizeBucket:n(p(a,3)),gmailDelegation:n(Mo(a,4))}};
var PT=function(a){Z.call(this,a)};V(PT,Z);g=PT.prototype;g.getClientInterface=function(){return m(this,FT,1)};g.setClientInterface=function(a){return Gb(this,1,a)};g.getSource=function(){return p(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return ej(this,2)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getRpcRequest=function(){return Al(this,WTb,5,QT)};g.setRpcRequest=function(a){return qu(this,5,QT,a)};
g.getRpcResponse=function(){return Al(this,YTb,6,QT)};g.setRpcResponse=function(a){return qu(this,6,QT,a)};g.getApiCall=function(){return Al(this,QTb,7,QT)};g.setApiCall=function(a){return qu(this,7,QT,a)};g.getApiResult=function(){return Al(this,STb,8,QT)};g.setApiResult=function(a){return qu(this,8,QT,a)};g.getUserInfo=function(){return m(this,$Tb,9)};g.setUserInfo=function(a){return Gb(this,9,a)};g.hasUserInfo=function(){return mj(this,9)};var QT=[4,5,6,7,8];
PT.prototype.toObject=function(){var a=null!=this?{clientInterface:CTb(this.getClientInterface()),source:n(p(this,2)),eventType:n(p(this,3)),gapiInit:VTb(Al(this,UTb,4,QT)),rpcRequest:XTb(this.getRpcRequest()),rpcResponse:ZTb(this.getRpcResponse()),apiCall:RTb(this.getApiCall()),apiResult:TTb(this.getApiResult()),userInfo:aUb(this.getUserInfo())}:void 0;return a};
var bUb=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]]),cUb=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]]),dUb=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]]),eUb=function(a){return cUb.has(a)?cUb.get(a):1},fUb=function(a){return dUb.has(a)?dUb.get(a):2};
var gUb=function(a){this.request_=a;this.errorCode_=0},hUb=function(a,b){b=new gUb(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=gUb.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 RT=function(a){this.map_=new LK;this.size=0;a&&this.addAll(a)},iUb=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ia(a):b.charAt(0)+a};g=RT.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(iUb(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=NG(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=NG(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(iUb(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(iUb(a))};g.contains=function(a){return this.map_.containsKey(iUb(a))};g.intersection=function(a){var b=new RT;a=NG(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 RT(this)};g.equals=function(a){return this.getCount()==fAb(a)&&jUb(this,a)};
var jUb=function(a,b){var c=fAb(b);if(a.getCount()>c)return!1;!(b instanceof RT)&&5<c&&(b=new RT(b));return iAb(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(Ea(e)||"string"===typeof e)d=wa(e,d);else a:{for(var f in e)if(e[f]==d){d=!0;break a}d=!1}return d})};RT.prototype.__iterator__=function(){return this.map_.__iterator__(!1)};RT.prototype[Symbol.iterator]=function(){return this.values()};
RT.prototype.setSizeInternal_=function(a){this.size=a};
var ST=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new RT(c);this.extraFields_=[]};ST.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 kUb=function(a){a.fieldSet_||(a.fieldSet_=new RT(a.fields_));return a.fieldSet_};
ST.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new RT);if(this.doesntContain_.has(a))return!1;var b=kUb(this),c=kUb(a);if(iAb(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var lUb=new ST(["6","12"],"1"),mUb=new ST("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[lUb]);new ST("6 12 16 17 18 1a".split(" "),"3",[lUb]);
new ST("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",[lUb,mUb]);new ST([]);
var nUb={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};
var oUb=function(a,b,c){MC.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};V(oUb,MC);g=oUb.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 pUb=function(a){MC.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};V(pUb,MC);g=pUb.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(){MC.prototype.disposeInternal.call(this);this.scheduler=null};
var qUb=function(){MC.call(this);this.states={};this.currentGroup=1};V(qUb,MC);qUb.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new pUb(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();rUb(a,b,e);break;case 6:rUb(a,b,e);break;case 4:d&&(f.reset(),rUb(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),rUb(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var rUb=function(a,b,c){0==b?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(zD(a.run,b,a)))};g=qUb.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){MC.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);ti(b)}this.states={}};g.cancel=function(a){2==a.runState&&AD(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 sUb={SOMETHING_CHANGED:"a",ERROR:"b"},tUb=function(a,b){OC.call(this,a&&a[0].getError()?"b":"a");this.source_=b||"d"};V(tUb,OC);tUb.prototype.getSource=function(){return this.source_};
var uUb=function(a,b){this.fn_=a;this.handler_=b};uUb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};uUb.prototype.abort=function(){this.handler_=this.fn_=null};RC(function(a){uUb.prototype.execute=a(uUb.prototype.execute)});
var vUb=[];
var TT=function(a,b){var c=c||[];this.serviceId_=a;this.moduleId_=b||null;this.dependencies_=[];wUb(this,c)};TT.prototype.toString=function(){return this.serviceId_};TT.prototype.getModuleId=function(){return this.moduleId_};var wUb=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("Pd`"+a.serviceId_);b.map(function(d){return d.getModuleId()}).forEach(function(d){vUb.push(function(e){e.addExtraEdge(a.moduleId_,d)})})}};
new TT("rJmJrc","rJmJrc");
new TT("n73qwf","n73qwf");
new TT("MpJwZc","MpJwZc");
new TT("UUJqVe","UUJqVe");
new TT("Wt6vjf","Wt6vjf");
new TT("byfTOb","byfTOb");
new TT("LEikZe","LEikZe");
new TT("lsjVmc","lsjVmc");
new TT("pVbxBc");
new TT("tdUkaf");new TT("fJuxOc");new TT("ZtVrH");new TT("WSziFf");new TT("ZmXAm");new TT("BWETze");new TT("UBSgGf");new TT("zZa4xc");new TT("o1bZcd");new TT("WwG67d");new TT("z72MOc");new TT("JccZRe");new TT("amY3Td");new TT("ABma3e");new TT("GHAeAc","GHAeAc");new TT("gSshPb");new TT("klpyYe");new TT("OPbIxb");new TT("pg9hFd");new TT("yu4DA");new TT("vk3Wc");new TT("IykvEf");new TT("J5K1Ad");new TT("IW8Usd");new TT("IaqD3e");new TT("jbDgG");new TT("b8xKu");new TT("d0RAGb");new TT("AzG0ke");new TT("J4QWB");
new TT("TuDsZ");new TT("hdXIif");new TT("mITR5c");new TT("DFElXb");new TT("NGntwf");new TT("Bgf0ib");new TT("Xpw1of");new TT("v5BQle");new TT("ofuapc");new TT("FENZqe");new TT("tLnxq");
var UT=function(){MC.call(this);this.eventTarget_=new Jo;this.updateCacheEventTarget_=new Jo;this.mutationIdMap_=new OK};V(UT,MC);UT.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};UT.prototype.getEventTarget=function(){return this.eventTarget_};
UT.prototype.disposeInternal=function(){MC.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};
var Ur=function(a){Z.call(this,a,-1,xUb)};V(Ur,Z);var Tr=function(a,b){return l(a,1,b)};g=Ur.prototype;g.getLogSource=function(){return p(this,2)};g.setLogSource=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.getVersion=function(){return p(this,4)};g.setVersion=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return ej(this,5)};g.getEnableClearcut=function(){return Mo(this,6)};g.setEnableClearcut=function(a){return l(this,6,a)};var Sr=function(a,b){return ll(a,7,b)};g=Ur.prototype;g.getClientAgent=function(){return p(this,8)};g.setClientAgent=function(a){return l(this,8,a)};g.getEventSource=function(){return p(this,9)};g.setEventSource=function(a){l(this,9,a)};g.getClearcutUrl=function(){return p(this,10)};g.setClearcutUrl=function(a){l(this,10,a)};
g.getEnvironment=function(){return p(this,11)};g.setEnvironment=function(a){return l(this,11,a)};g.getPeoplekitEntryPoint=function(){return p(this,12)};g.setPeoplekitEntryPoint=function(a){return l(this,12,a)};var xUb=[7];
Ur.prototype.toObject=function(){var a=null!=this?{logName:n(p(this,1)),logSource:n(p(this,2)),application:n(p(this,3)),version:n(p(this,4)),baselineCl:n(p(this,5)),enableClearcut:n(Mo(this,6)),experimentIdList:n(ob(this,7)),clientAgent:n(p(this,8)),eventSource:n(p(this,9)),clearcutUrl:n(p(this,10)),environment:n(p(this,11)),peoplekitEntryPoint:n(p(this,12))}:void 0;return a};
var yUb=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 zUb=function(a){this.start_=a;this.end_=NaN};zUb.prototype.duration=function(){return this.end_-this.start_};zUb.prototype.stop=function(a){this.end_=a;return this.duration()};var VT=function(a){var b=void 0===b?yUb:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};VT.prototype.source=function(){return this.source_};var AUb=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};g=VT.prototype;
g.duration=function(a){a=AUb(this,void 0===a?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};g.durationUsec=function(a){return iCa(this.duration(void 0===a?"":a))};g.toString=function(a,b){b=void 0===b?1:b;return this.duration(void 0===a?"":a).toFixed(b)};g.start=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=AUb(this,a);this.durations_.set(a,new zUb(b));return this};
g.stop=function(a){a=void 0===a?"":a;var b=this.nowFn_();a=AUb(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};g.clear=function(){this.durations_.clear();return this};
var BUb=new Map([[1,4],[2,2],[3,1],[4,7]]),vCa=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=bj(a.getExperiments(),1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=bj(a.getExperiments(),2,!0);break;default:b="ppl.store",c=!1}var d=BUb.get(a.getUserInfo().getEnvType())||0;this.logContext_=tb(Sr(Tr(new Ur,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplication()).setEnvironment(d).setVersion("1012").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c),
a.getExperiments().getExperimentIdsList()),7,20090307)};g=vCa.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=CUb(this);switch(b.getEventType()){case 2:case 3:return(new PT).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new WTb).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new PT).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new QTb).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=CUb(this);switch(d.getEventType()){case 1:d=(new PT).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new UTb).setStatus(c);if(0==c||4==c)c=e.setTotalUsec(b.durationUsec("total")),b=b.durationUsec("blocked"),b=l(c,3,b),l(b,5,a);return qu(d,4,QT,e);case 2:case 3:return a=(new PT).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new YTb).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
0!=c&&4!=c||d.setTotalUsec(b.durationUsec("total")).setBlockedUsec(b.durationUsec("blocked")).setNetworkUsec(b.durationUsec("network")),e.call(a,d);case 4:case 5:a=(new PT).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new STb;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);0!==c&&4!==c||f.setTotalUsec(b.durationUsec("total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};
g.createLatencyMetric=function(){return null};var CUb=function(a){a=a.clientConfig_.getUserInfo();var b=new $Tb;var c=!!a.getDelegatorId();b=l(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(p(a,6)||0);return b};
var ar=function(a){Z.call(this,a,-1,DUb)};V(ar,Z);var DUb=[1,2,3,4];ar.prototype.toObject=function(){var a=null!=this?{byGaiaList:n(ob(this,1)),byPseudonymousList:n(ob(this,2)),alwaysList:n(ob(this,3)),byOtherList:n(ob(this,4))}:void 0;return a};
var EUb=function(){return ia("iPad")||ia("Android")&&!ia("Mobile")||ia("Silk")};
var FUb=function(a,b,c,d,e,f,h){uE.call(this,a,Ho,b,Ola,c,d,e,void 0,f,h)};V(FUb,uE);
var GUb=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=na()||ia("iPod")?4:ia("iPad")?5:ia("Android")?EUb()?3:2:!EUb()&&(ia("iPod")||ia("iPhone")||ia("Android")||ia("IEMobile"))||EUb()?0:1},HUb=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()&&(c=new FUb(b.getLogSource(),Go(),b.getClearcutUrl()||void 0),(b=ob(b,7))&&b.length)){var d=new ar;ll(d,3,b);c.setClearExperimentIds(d)}return new GUb(c,a)},WT=function(a){var b=a.logContextFactory_.getLogContext(),c=
new DT;c.setApplication(b.getApplication());c.setDevice(a.device_);a=new FT;a.setSocialClient(c);a.setVersionName(b.getVersion());a.setClientAgent(b.getClientAgent());a.setEventSource(b.getEventSource());a.setEnvironment(b.getEnvironment());a.setPeoplekitEntryPoint(b.getPeoplekitEntryPoint());b.hasBaselineCl()&&(b=Math.round(b.getBaselineCl()),isFinite(b)&&a.setBaselineCl(b));return a},XT=function(a,b){var c=new mE;nE(c,b.serialize());a.clearcut_&&a.clearcut_.log(c)};
var IUb=function(a,b){this.clearcut_=a;this.logEventFactory_=b};IUb.prototype.logError=function(a){var b=WT(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&XT(this.clearcut_,a)};
var JUb=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 KUb=function(){this.logContext_=Tr(new Ur,"ppl.store")};g=KUb.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 LUb=function(a){this.clearcut_=a;this.log_=null},Po=function(a){a=new IUb(HUb(a),a);return new LUb(a)};g=LUb.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=WT(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&XT(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=WT(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&XT(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=WT(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&XT(b.clearcut_,a);return this};
g.error=function(a){this.clearcut_.logError(a);return this};g.logError=function(){};
var Oo=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new qUb;this.eventHandler_=new ZG(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new UT;(a=b)||(a=Po(new KUb));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};Wt(Oo,MC);g=Oo.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,kja(sUb),St(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 tUb(null,"c"))};
g.loadContactRows=function(a,b){var c=this,d=(new Io).setEventType(4).setApiType(2),e=new VT(d);this.metrics.count(e);this.metrics.start(e,"total");return MUb(this,a,function(f){return f.loadContactRows},function(f,h,k,q,u){NUb(function(x,E,I,N){var L=E===BT||E instanceof CT?2:1;e.source().setCacheStatus(L);e.source().setAddressBook(I?nTb.get(I)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,fUb(u||0));b&&b(x,E,I,N,u)},f,h,k,q)})};
var MUb=function(a,b,c,d){var e=new OUb(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];0<b.delayMillis||1<b.maxTries?f=PUb(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=PUb(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
Oo.prototype.execute=function(a){var b=this,c=(new Io).setEventType(4).setApiType(1),d=new VT(c);this.metrics.count(d);this.metrics.start(d,"total");QUb(this,a);a.addSuccessOrFailureCallback(function(e){var f=e?fUb(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?nTb.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 RUb(b,e,d)}))?
c:RUb(this,a,d)};
var QUb=function(a,b){ta(a.queryFilters_,function(){});b.isMutate()&&(b=b.getOperation())&&(b=b.getQueryAfterMutate())&&QUb(a,b)},RUb=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 OUb(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},PUb=function(a,
b,c,d,e){b=St(a.runScheduledQuery_,a,b,c,d,e);b=new oUb(a.scheduler_,b,d.name);a.scheduler_.schedule(b,d.delayMillis,d.maxTries,d.force);return new SUb(b)};Oo.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,u){e.isDone(!u)&&d&&d(f,h,k,q,u)})};
var NUb=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),TUb(b)),a(b||[],c,d,e))},TUb=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)}};
Oo.prototype.disposeInternal=function(){Oo.superClass_.disposeInternal.call(this);ti(this.scheduler_);this.scheduler_=null;ta(this.ownedAddressBooks_,ti);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;ti(this.eventHandler_);this.eventHandler_=null;ta(this.queryFilters_,function(a){a!=this.contactNotificationService_&&ti(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(ti(this.contactNotificationService_),this.contactNotificationService_=null)};
var uCa=function(a){var b=new vCa(a,0);Tr(b.getLogContext(),"ppl.store");b.getLogContext().setEnableClearcut(bj(a.getExperiments(),3,!0));return Po(b)},OUb=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=OUb.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 SUb=function(a){this.op=a;this.request=null};SUb.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};
SUb.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};
var UUb=function(a,b){this.text=a;this.specialRowHandler=b};Wt(UUb,mTb);g=UUb.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 No=function(a,b){Oo.call(this,a,b)};V(No,Oo);No.prototype.addAddressBook=function(a,b){1==this.addressBooks.length&&(this.combiner_=new VUb(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));Oo.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};No.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):Oo.prototype.loadContactRows.call(this,a,b)};
var VUb=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};VUb.prototype.addAddressBook=function(a){this.addrBooks_.push(new WUb(this,this.addrBooks_.length,a))};VUb.prototype.loadContactRows=function(a,b){a=new XUb(a,this.metrics_,b);YUb(this,a);return a};
var YUb=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),0==e&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],u=c.maxMatches,x=f.length;if(0==x)f=q.length>u?q.slice(0,u):q;else for(var E=0;E<q.length;E++){for(var I=null,N=0;N<x&&!(I=ZUb(f[N],q[E]));N++);if(I)I===q[E]&&(f[N]=I);else if(f.length==
x?f=f.concat(q[E]):f.push(q[E]),f.length==u)break}0<h&&f.length>h&&(f[h].flags|=1)}e?(TUb(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},ZUb=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},$Ub=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:YUb(a,b,c,d)};
VUb.prototype.handleSpecialRow=function(){};var WUb=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
WUb.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,u){b.matchListener_(a,d,f,u)});a.activeRequests_[this.id_]=e;this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&300<this.lastAsyncLatency_&&(c=[aVb(this)])}c&&$Ub(this.combiner_,a,this.id_,c)};
var aVb=function(a){var b=a.addrBook_.title_;return new UUb(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
WUb.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;$Ub(this.combiner_,a,this.id_,c)};WUb.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var XUb=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new VT((new Io).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(u,x){var E=d.activeRequests_[x];E=E===BT||E instanceof CT?2:1;e.source().setCacheStatus(E);e.source().setAddressBook(u?nTb.get(u)||1:1);b.stop(e,"total");b.status(e,fUb(d.storedErrorCodes_[x]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};XUb.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};XUb.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};
var bVb={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"},er=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=bVb[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 YT=function(a,b,c,d,e,f){Jo.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||cVb;this.cache_=new OK(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};Wt(YT,Jo);YT.prototype.disposeInternal=function(){YT.superClass_.disposeInternal.call(this);this.cache_=null};YT.prototype.clear=function(){this.cache_.clear()};
var cVb=function(a){var b=Jn(er(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=null!=er(String(c[1])).match(d))||(d=c[0],d=null!=c[2].match(new RegExp("^"+b,"i"))&&"cl"!=String(d));return d}},dVb=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},eVb=function(a,b,c){a.cache_.set(dVb(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_)}},fVb=function(a,b,c){c=c?a.cache_.get(b):aJb(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},gVb=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=fVb(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},hVb=function(a,b){if(b.isContactAutoComplete)return null;var c=dVb(b,a.cacheByType_),
d=gVb(a,c,b.token);return d?d:a.cacheByType_&&!Mi(c,"^")?(c=dVb(b,!1),gVb(a,c,b.token)):null};YT.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};YT.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:aJb(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var ZT=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};ZT.prototype.getMatches=function(a){a&&this.count++;return this.matches_};ZT.prototype.isComplete=function(a){return!this.partialResult_||0<=a&&a<=this.matches_.length};
Wt(Lo,Jo);g=Lo.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(Wi(a.token)&&!c.allowEmptyQueries_)var d=AT;else{d=a.maxMatches;var e=fVb(c,dVb(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=hVb(c,a))&&0==d.getMatches().length?(eVb(c,a,new ZT(a.token,AT)),d=AT):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=Pib(d,c.rowMatchingFunction_(a),c),eVb(c,a,new ZT(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,BT,this.getId(),a),BT):this.transport_.loadContactRows(a,this.getId(),St(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(AT,BT,this.getId(),a,4);return BT};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||eVb(this.cache_,e,new ZT(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(){Lo.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;iVb(this.transport_,this.id_);this.transport_=null};
var kVb=function(a,b,c){YT.call(this,100,18E5,432E5,!0,0,c||jVb);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};V(kVb,YT);var jVb=function(a){return function(b){var c=b.getType(),d;if(d=lVb(a,c)){d=new RegExp("(^|\\W+)"+Jn(er(a.token)),"i");var e=er(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+Jn(er(d)),"i")).test(b):!1)&&"cl"!=c)}return d}},lVb=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 Ro=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new kVb(!0,!1,mVb);Lo.call(this,a,b,"domain")};Wt(Ro,Lo);Ro.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=kh(a),a.includeGroups=!1);return Ro.superClass_.loadContactRows.call(this,a,b)};
var mVb=function(a){for(var b=mC(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=Jn(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(lVb(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}};Ro.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};
var nVb=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},pVb=function(a){if(!a)return oVb;var b=kCa(Fo("metadata.identityInfo.sourceIds",a)),c=Fo("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 nVb(a.personId||"",b)},oVb=new nVb("",{});
var qVb=function(a,b){this.isLocal_=a;this.edgeIndex_=b};qVb.prototype.toString=function(){return""};
var $T=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};$T.prototype.toString=function(){return""};var sVb=function(a){return rVb(a).some(function(b){return!b.isLocal_})};$T.prototype.getSource=function(a){return rVb(this)[a]};$T.prototype.hasSource=function(){return void 0<rVb(this).length};var rVb=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};$T.prototype.getCause=function(a){return tVb(this)[a]};
var tVb=function(a){return a.edgeCollection_?uVb(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};$T.prototype.getContainerType=function(){return this.metadata_.containerType};var vVb=new $T({},null);
var wVb=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=wVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new $T(this.email_.metadata,this.edgeCollection_):vVb);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 xVb=new wVb({},null);
var yVb=function(a,b){this.emails_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new wVb(c.value,b))};g=yVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||xVb};g.getFieldLength=function(){return this.emails_.length};var zVb=new yVb([],null);
var AVb=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=AVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new $T(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 BVb=new AVb({},null);
var CVb=function(a){this.field_=a};g=CVb.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 DVb=new CVb(BVb);
var EVb=["CONTACT","PROFILE","DOMAIN_PROFILE"],FVb=function(a,b){this.names_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new AVb(c.value,b))};g=FVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||BVb};g.getFieldLength=function(){return this.names_.length};var GVb=new FVb([],null);
var HVb=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=HVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new $T(this.phone_.metadata,this.edgeCollection_):vVb);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 IVb=new HVb({},null);
var JVb=function(a,b){this.phones_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new HVb(c.value,b))};g=JVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||IVb};g.getFieldLength=function(){return this.phones_.length};var KVb=new JVb([],null);
var LVb=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=LVb.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new $T(this.photo_.metadata,this.edgeCollection_):vVb);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 MVb=new LVb({},null);
var NVb=function(a,b){this.photos_=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new LVb(c,b))};g=NVb.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||MVb};g.getFieldLength=function(){return this.photos_.length};var OVb=new NVb([],null);
var aU=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};
aU.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_?lCa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};aU.prototype.hasName=function(){return!!this.getName()};
aU.prototype.getName=function(){if(!this.name_){a:{var a=qCa(this);if(a.names_.length){for(var b=r(EVb),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=r(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new CVb(e);break a}}a=new CVb(a.names_[0])}else a=DVb}this.name_=a}return this.name_};
var qCa=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 FVb(b,a.edgeCollection_):GVb}return a.nameRepeated_};g=aU.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:mCa(this.contactLabel_)}]);this.email_=a?new yVb(a,this.edgeCollection_):zVb}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 JVb(a,this.edgeCollection_):KVb}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 NVb(a,this.edgeCollection_):OVb}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 lCa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},PVb=new aU(null,null,null,null);
var bU=function(){this.keyToIndex_=new Map},QVb=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return null!=d})};bU.prototype.get=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(this.getKey_(a,b)):null};bU.prototype.set=function(a,b,c){"DOMAIN_PROFILE"===b&&(b="PROFILE");this.keyToIndex_.set(this.getKey_(a,b),c)};
bU.prototype.contains=function(a,b){"DOMAIN_PROFILE"===b&&(b="PROFILE");return this.keyToIndex_.has(this.getKey_(a,b))};bU.prototype.getKey_=function(a,b){return a+"="+b};
var oCa=function(a){this.evergreenProfile_=a?new aU(a,null,null,null):PVb};oCa.prototype.toString=function(){return""};var RVb=new oCa(null);
var SVb=new qVb(!0,null),cU=function(a){this.edgeIndexResolver_=new bU;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=pCa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};cU.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||RVb};var uVb=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return null!=c}):[]};cU.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};
cU.prototype.getSources=function(a,b){if(!a||!b)return[];if("CONTACT"===b)return[SVb];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,QVb(this.edgeIndexResolver_,a,[b]).map(function(d){return new qVb(!1,d)}));return this.sourcesCache_.get(c)};var TVb=new cU(null);
var dU=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 cU(this.person_);this.emailIndex_=b;this.profile_=new aU(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()};V(dU,mTb);g=dU.prototype;
g.toString=function(){return"cl"===this.getType()?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=pVb(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=kCa(a.sourceIds);a=new nVb(a.personId||"",b)}else a=oVb;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=Fo("id.id",a)||"",a=new nVb("",b)):a=oVb:a=oVb;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){null===this.name_&&(this.name_=rCa(this.profile_,function(a){return!!a&&!sVb(a)}),null===this.name_&&(this.name_=UVb(this,rCa)));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_=sCa(this.profile_,function(a){return!!a&&!sVb(a)}),null===this.photoUrl_&&(this.photoUrl_=UVb(this,sCa)));return this.photoUrl_};g.getLoggingId=function(){return this.getAllIds_().loggingId};
var UVb=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<tVb(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<rVb(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""},VVb=function(a,b,c){c=void 0===c?!1:c;if(void 0===b?0:b)return a.map(function(q){return new dU(q,void 0,!0)});b=new Set;var d=
[];a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=Fo("person.email",e)||Fo("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(Fo("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new dU(e,h))}else d.push(new dU(e))}return d};
var xCa=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T){L=void 0===L?new yT:L;T=void 0===T?!1:T;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=u?u:function(){};this.autocompletePageSize=x;this.rankedTargetsPageSize=E;this.peopleContainerMask=I.split(/[\s,]+/).filter(function(Y){return!!Y});this.peopleFieldMask=N;this.experiments=L;this.includeOnlyNames=
T};xCa.prototype.setTimeout=function(a){var b=this.timeoutMs;0<a&&(this.timeoutMs=a);return b};
var eU=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};V(eU,Error);
var fU=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new VT(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=fU.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_=gtb(new xD),WVb(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&&!bCa()&&(c.params=c.params||{},c.params.key=d);c.headers=cCa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=qtb(jtb([a,ztb(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{WVb(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 xD)c=1,d=11;else if(a instanceof eU)c=a.code,d=eUb(c);else if(a&&"object"===typeof a){var e=Fo("result.error.code",a)||a.status,f=e;f=Number(f);c=bUb.has(f)?bUb.get(f):200<=f&&300>f?0:400<=f&&500>f?9:500<=f&&600>f?13:2;d=eUb(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),WVb(this,null,d,b)}};
var WVb=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 XVb=function(a,b,c){var d=(new Io).setEventType(2).setRpcType(1).setToken(b);fU.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};V(XVb,fU);
XVb.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}};
XVb.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new eU(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new eU(8,"RequestThrottled");if(b.containsPartialResults)throw new eU(8,"ContainsPartialResults");}return VVb(a.results||[],this.config.includeOnlyNames)};
var YVb=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new aU(this.person_,null,null,this.edgeCollection_):PVb};g=YVb.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=pVb(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.getProfile=function(){return this.profile_};g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var ZVb=new YVb(null,TVb);
var $Vb=function(a){a=void 0===a?null:a;this.edgeCollection_=new cU(a);this.contact_=a?new YVb(a,this.edgeCollection_):ZVb};g=$Vb.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.getProfile=function(){return this.contact_.getProfile()};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};
g.getDeleted=function(){return this.contact_.getDeleted()};
var aWb=function(a,b,c){fU.call(this,a,(new Io).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};V(aWb,fU);
aWb.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}};aWb.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return"SUCCESS"==b.status}).map(function(b){return new $Vb(b.person)})};
var gU=function(a,b,c,d){fU.call(this,a,hCa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=bWb(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};V(gU,fU);
gU.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}};
gU.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=r(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new $Vb(f))});return d};var bWb=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};
var cWb=function(a,b){fU.call(this,a,(new Io).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_=[];bj(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};V(cWb,fU);
cWb.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}};cWb.prototype.processResponse=function(a){return VVb(a.rankedTarget||[],this.config.includeOnlyNames,!0)};
g=tCa.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 wCa=new Map([[1,4],[2,2],[3,1],[4,7]]),Qo=function(a,b){MC.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 VT((new Io).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?dWb(c,d):eWb(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);eWb(c,5)})};
V(Qo,MC);var dWb=function(a,b){b&&b.request?(gCa(),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 fWb(a,d,e)})})):eWb(a,9)};Qo.prototype.disposeInternal=function(){for(var a=r(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())iVb(this,b.value)};
var eWb=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},iVb=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(gWb(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},hWb=function(a,b,c){a.gapiFailed_?c.cancel():(jCa(a,b).push(c),fWb(a,b,c))},fWb=function(a,b,c){a.gapiClient_&&qtb(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)}})},jCa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},gWb=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};Qo.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 XVb(this.config_,d,e):new cWb(this.config_,e);hWb(this,b,f);return f};
Qo.prototype.execute=function(a){if(a.isMutate())return this.metrics_.status(new VT((new Io).setEventType(2).setRpcType(4)),12),iWb(a);var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(x,E){E?(x=hUb(E,h),a.response_=x):(E=new tCa(b),E.contacts_=x,x=new gUb(h),x.queryResponse_=E,x.errorCode_=E.getError(),a.response_=x)},e=this.config_.setTimeout(jWb(a));try{var f=b.emailAddresses||[];if(f.length)var h=new gU(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=
new gU(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new aWb(this.config_,q,d);else{var u=b.syntheticIds||[];if(u.length)h=new gU(this.config_,5,u,d);else return this.metrics_.status(new VT((new Io).setEventType(2)),12),iWb(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);hWb(this,c,h);return h};var iWb=function(a){var b=new CT(function(){var c=hUb(5,b);a.response_=c});b.setQuery(a);return b};
var hU=function(a,b,c,d){Lo.call(this,a,b,c,d)};V(hU,Lo);hU.prototype.execute=function(a){a.isMutate()&&a.addSuccessCallback(St(this.handleExecuteResponse_,this,a));a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};hU.prototype.handleExecuteResponse_=function(a,b){if(b.hasChanges()){var c=b.mutateResponse_;if(a.getNotifyOnChange()||c&&c.getError())a=new tUb([b.mutateResponse_],"c"),this.dispatchEvent(a)}};
var zCa=function(a,b,c){b=b||new kVb(!0,!0);Lo.call(this,a,b,"personal",c)};V(zCa,hU);zCa.prototype.configure=function(a,b){hU.prototype.configure.call(this,a,b)};
var kWb=function(a,b,c,d){a=new zT(bo(jTb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",755,"MINIMAL_DOMAIN_GROUP","MISSED_LEGACY_INTEGRATION"],[]]'));a.setAuthErrorHandler(c||null);b&&lTb(a,b);a.getUserInfo().setEnvType(d?4:1);return ACa(a)};
var Wo={},lWb={},mWb={},nWb={},Vo=function(){throw Error("Qd");};Vo.prototype.contentDir=null;Vo.prototype.getContent=function(){return this.content};Vo.prototype.toString=function(){return this.content};var oWb=function(){Vo.call(this)};Wt(oWb,Vo);oWb.prototype.contentKind=Wo;var pWb=function(){Vo.call(this)};Wt(pWb,Vo);pWb.prototype.contentKind=lWb;pWb.prototype.contentDir=1;
var iU=function(a,b){return null!=a&&a.contentKind===b};
var qWb=function(a){if(null!=a)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},jU=function(a){return iU(a,Wo)?a:a instanceof Ky?zq(Lj(a).toString()):a instanceof Ky?zq(Lj(a).toString()):zq(String(String(a)).replace(rWb,sWb),qWb(a))},zq=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}}(oWb),kU=function(a){if(null==a)throw Error("Sd");return a},tWb=function(a){return a instanceof
Vo?!!a.getContent():!!a},lU=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}}(oWb),uWb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return(c=String(c))?new b(c):""}}(pWb),xWb=function(a){return iU(a,Wo)?a:zq(vWb(a,wWb),qWb(a))},yWb=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),vWb=function(a,
b){if(!b)return String(a).replace(zWb,"").replace(AWb,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=a.replace(zWb,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",u="";if("/"!=f.charAt(1)){q="<";for(var x;x=BWb.exec(f);)if(x[1]&&"dir"==x[1].toLowerCase()){if(f=x[2]){if("'"==f.charAt(0)||'"'==f.charAt(0))f=f.substr(1,f.length-2);f=f.toLowerCase();if("ltr"==f||"rtl"==f||"auto"==f)u=' dir="'+f+'"'}break}BWb.lastIndex=0}c[k]=q+h+">";d[k]=u;return"["+
k+"]"}return""});a=String(a).replace(CWb,sWb);var e=DWb(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},mU=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},DWb=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]="":yWb.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Aq=function(a){return iU(a,Wo)?String(vWb(a.getContent())).replace(CWb,sWb):String(a).replace(rWb,sWb)},HWb=function(a){iU(a,lWb)||iU(a,mWb)?a=nU(a):a instanceof lh?a=nU(mh(a)):a instanceof lh?a=nU(mh(a)):a instanceof Hy?a=nU(Ci(a).toString()):a instanceof Hy?a=nU(Ci(a).toString()):(a=String(a),a=EWb.test(a)?a.replace(FWb,GWb):"about:invalid#zSoyz");return a},oU=function(a){iU(a,nWb)?a=mU(a.getContent()):null==a?a="":a instanceof Iy?a=mU(yob(a)):a instanceof
Iy?a=mU(yob(a)):a instanceof Jy?a=mU(Bob(a)):a instanceof Jy?a=mU(Bob(a)):(a=String(a),a=IWb.test(a)?a:"zSoyz");return a},JWb={"\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;"},sWb=function(a){return JWb[a]},KWb={"\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"},GWb=function(a){return KWb[a]},rWb=/[\x00\x22\x26\x27\x3c\x3e]/g,
CWb=/[\x00\x22\x27\x3c\x3e]/g,FWb=/[\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,IWb=/^(?!-*(?:expression|(?:moz-)?binding))(?:(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:rgb|rgba|hsl|hsla|calc|max)\([-\u0020\t,+.!#%_0-9a-zA-Z]+\)|[-+]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:e-?[0-9]+)?(?:[a-z]{1,4}|%)?|!important)(?:\s*[,\u0020]\s*|$))*$/i,EWb=/^(?:(?:https?|mailto|ftp):|[^&:\/?#]*(?:[\/?#]|$))/i,LWb=
/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,nU=function(a){return String(a).replace(FWb,GWb)},zWb=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,AWb=/</g,wWb={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},BWb=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var BCa={};
var pU=function(a,b,c){Jo.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Ko(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_={}};Wt(pU,Jo);g=pU.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_[qU(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":MWb(this);break;case "dismiss":NWb(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,St(this.matchListener_,this)),MWb(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var OWb=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}};
pU.prototype.hiliteId=function(a){var b=qU(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)};
pU.prototype.selectHilited=function(){var a=qU(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=PWb(c,c.getValue(),c.getCursorPosition()),f=QWb(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);0==e||Wi(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;(bu||$t)&&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_;RWb(f)&&(f.selectionStart=e);f=c.activeElement_;RWb(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};
pU.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 NWb=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(St(a.dismiss,a),100))};
pU.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var MWb=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(St(a.immediatelyCancelDelayedDismiss_,a),10)};pU.prototype.disposeInternal=function(){pU.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
pU.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
pU.prototype.renderRows=function(a,b){var c="object"==Oa(b)&&b;b=(c?c.getPreserveHilited():b)?qU(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[Ia(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&void 0!==c.getAutoHilite()&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||0<=b)&&0!=d.length&&
this.token_&&(0<=b?this.hiliteId(this.firstRowId_+b):OWb(this));this.dispatchEvent("suggestionsupdate")};var qU=function(a,b){b-=a.firstRowId_;return 0>b||b>=a.rows_.length?-1:b};pU.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};pU.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){jh(this.inputToAnchorMap_,Ia(c))},this)};pU.prototype.update=function(a){this.selectionHandler_.update(a)};
var SWb=function(a,b){var c=0,d=0;RWb(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},RWb=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};
var VWb=function(a,b,c,d,e,f){if(du&&e)return TWb(a);if(e&&!d)return!1;if(!bu){"number"===typeof b&&(b=UWb(b));var h=17==b||18==b||du&&91==b;if((!c||du)&&h||du&&16==b&&(d||f))return!1}if((cu||au)&&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($t&&d&&b==a)return!1;switch(a){case 13:return bu?f||e?!1:!(c&&d):!0;case 27:return!(cu||au||bu)}return bu&&(d||e||f)?!1:TWb(a)},TWb=function(a){if(48<=a&&57>=a||96<=a&&106>=
a||65<=a&&90>=a||(cu||au)&&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 bu;default:return!1}},UWb=function(a){if(bu)a=WWb(a);else if(du&&cu)switch(a){case 93:a=91}return a},WWb=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 XWb=function(a,b,c,d){TC.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};Wt(XWb,TC);
var rU=function(a,b){Jo.call(this);a&&this.attach(a,b)};Wt(rU,Jo);g=rU.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var YWb={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},ZWb={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},$Wb=du&&bu;g=rU.prototype;
g.handleKeyDown_=function(a){(cu||au)&&(17==this.lastKey_&&!a.ctrlKey||18==this.lastKey_&&!a.altKey||du&&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));VWb(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=UWb(a.keyCode),$Wb&&(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($t&&"keypress"==a.type){var d=this.keyCode_;var e=13!=d&&27!=d?b.keyCode:0}else(cu||au)&&"keypress"==a.type?(d=this.keyCode_,e=0<=b.charCode&&63232>b.charCode&&TWb(d)?b.charCode:0):("keypress"==a.type?($Wb&&(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),du&&63==e&&224==d&&(d=191));var f=d=UWb(d);d?63232<=
d&&d in YWb?f=YWb[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in ZWb&&(f=ZWb[b.keyIdentifier]);if(!bu||"keypress"!=a.type||VWb(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new XWb(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_=Ko(this.element_,"keypress",this,b);this.keyDownKey_=Ko(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Ko(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(aD(this.keyPressKey_),aD(this.keyDownKey_),aD(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){rU.superClass_.disposeInternal.call(this);this.detach()};
var sU=function(a,b,c,d){MC.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 yD(d):null;this.eh_=new ZG(this);this.activateHandler_=new ZG(this);this.keyHandler_=new rU;this.lastKeyCode_=-1};
Wt(sU,MC);g=sU.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 SWb(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];oD(c)&&(ZI(c,"combobox"),$I(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_),oD(c))){var d=eD(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&aXb(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];oD(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(){sU.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();ti(this.timer_)};
var cXb=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){OWb(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}}bXb(a,b)},bXb=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()};sU.prototype.handleKeyUp=function(){return!1};sU.prototype.handleFocus=function(a){aXb(this,a.target||null)};
var aXb=function(a,b){a.activateHandler_.removeAll();a.ac_&&MWb(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_),$t&&a.eh_.listen(a.activeElement_,"keypress",a.onIeKeyPress_))};g=sU.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_),$t&&this.eh_.unlisten(this.activeElement_,"keypress",this.onIeKeyPress_),this.waitingForIme_&&dXb(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&NWb(this.ac_))};
g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&cXb(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&229!=this.lastKeyCode_&&dXb(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&dXb(this)};g.onMouseDown_=function(){};
var dXb=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};sU.prototype.onIeKeyPress_=function(a){bXb(this,a)};
sU.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=QWb(this,b)[PWb(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 PWb=function(a,b,c){a=QWb(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},QWb=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 eXb=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""},fXb=function(a){return a.classList?a.classList:eXb(a).match(/\S+/g)||[]},gXb=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)},hXb=function(a,b){return a.classList?a.classList.contains(b):wa(fXb(a),b)},iXb=function(a,b){if(a.classList)a.classList.add(b);else if(!hXb(a,b)){var c=eXb(a);gXb(a,c+(0<c.length?" "+b:b))}},tU=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){iXb(a,e)});else{var c={};Array.prototype.forEach.call(fXb(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;gXb(a,b)}},jXb=function(a,b){a.classList?a.classList.remove(b):hXb(a,b)&&gXb(a,Array.prototype.filter.call(fXb(a),function(c){return c!=b}).join(" "))},kXb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){jXb(a,c)}):gXb(a,Array.prototype.filter.call(fXb(a),function(c){return!wa(b,c)}).join(" "))};
var lXb=function(a,b,c){MC.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=St(this.doAction_,this)};Wt(lXb,MC);g=lXb.prototype;g.id_=0;g.disposeInternal=function(){lXb.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};g.start=function(a){this.stop();this.id_=zD(this.callback_,void 0!==a?a:this.interval_)};g.stop=function(){this.isActive()&&AD(this.id_);this.id_=0};g.isActive=function(){return 0!=this.id_};
g.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};
var mXb=function(a,b){if(b&&a in b)return a;var c=cu?"Webkit":bu?"Moz":$t?"ms":null;return c?(c=c.toLowerCase(),a=c+Mk(a),void 0===b||a in b?a:null):null};
var uU=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};g=uU.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new uU(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof uU?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){Ha(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 Kq?(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 vU=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};vU.prototype.clone=function(){return new vU(this.left,this.top,this.width,this.height)};var eSa=function(a){return new vU(a.left,a.top,a.right-a.left,a.bottom-a.top)};
vU.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 nXb=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 vU(c,e,d-c,a-e)}return null};
g=vU.prototype;g.contains=function(a){return a instanceof Kq?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 cD(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 Kq?(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 wU=function(a,b){var c=eD(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},wp=function(a,b){return wU(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Nq=function(a,b,c){if(b instanceof Kq){var d=b.x;b=b.y}else d=b,b=c;a.style.left=xU(d,!1);a.style.top=xU(b,!1)},oXb=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},pXb=function(a){if($t&&!(8<=
Number(gu)))return a.offsetParent;var b=eD(a),c=wp(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=wp(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},Iq=function(a){for(var b=new uU(0,Infinity,Infinity,0),c=So(a),d=c.document_.body,e=c.document_.documentElement,f=jD(c.document_);a=
pXb(a);)if(!($t&&0==a.clientWidth||cu&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=wp(a,"overflow")){var h=yU(a),k=new Kq(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},sXb=function(a,b){b=b||jD(document);var c=b||jD(document);var d=yU(a),e=yU(c),f=qXb(c);if(c==jD(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;!$t||10<=Number(gu)||(h+=f.left,d+=f.top)}else h=d.x-e.x-f.left,d=d.y-e.y-f.top;a=rXb(a);f=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-f,0));c=new Kq(e,k);b.scrollLeft=c.x;b.scrollTop=c.y},yU=function(a){var b=
eD(a),c=new Kq(0,0);var d=b?eD(b):document;d=!$t||9<=Number(gu)||hD(So(d).document_)?d.documentElement:d.body;if(a==d)return c;a=oXb(a);b=kD(So(b).document_);c.x=a.left+b.x;c.y=a.top+b.y;return c},fSa=function(a,b,c){if(b.document_!=c.document_){var d=b.document_.body;c=c.getWindow();var e=new Kq(0,0),f=lD(eD(d));if(Sib(f,"parent")){var h=d;do{if(f==c)var k=yU(h);else k=oXb(h),k=new Kq(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=Lq(e,yU(d));!$t||
9<=Number(gu)||hD(b.document_)||(d=Lq(d,kD(b.document_)));a.left+=d.x;a.top+=d.y}},tXb=function(a,b,c){if(b instanceof cD)c=b.height,b=b.width;else if(void 0==c)throw Error("Vd");a.style.width=xU(b,!0);a.style.height=xU(c,!0)},xU=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},Mq=function(a){var b=rXb;if("none"!=wp(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},rXb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=cu&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=oXb(a),new cD(a.right-a.left,a.bottom-a.top)):new cD(b,c)},Hq=function(a){var b=yU(a);a=Mq(a);return new vU(b.x,b.y,a.width,a.height)},uXb=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)+")")},zU=function(a,b){a.style.display=b?"":"none"},vXb=function(a){return"rtl"==
wp(a,"direction")},wXb=bu?"MozUserSelect":cu||au?"WebkitUserSelect":null,xXb=function(a){var b=a.getElementsByTagName("*");if(wXb){var c="none";a.style&&(a.style[wXb]=c);if(b){a=0;for(var d;d=b[a];a++)d.style&&(d.style[wXb]=c)}}else if($t&&(c="on",a.setAttribute("unselectable",c),b))for(a=0;d=b[a];a++)d.setAttribute("unselectable",c)},jSa=function(a,b){var c=hD(So(eD(a)).document_);if(!$t||fu("10")||c){var d=a.style;bu?d.MozBoxSizing="border-box":cu?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";
d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else d=a.style,c?(c=yXb(a,"padding"),a=qXb(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)},zXb=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},AXb=function(a,
b){return(b=a.currentStyle?a.currentStyle[b]:null)?zXb(a,b):0},yXb=function(a,b){if($t){var c=AXb(a,b+"Left"),d=AXb(a,b+"Right"),e=AXb(a,b+"Top");a=AXb(a,b+"Bottom");return new uU(e,d,a,c)}c=wU(a,b+"Left");d=wU(a,b+"Right");e=wU(a,b+"Top");a=wU(a,b+"Bottom");return new uU(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))},BXb={thin:2,medium:4,thick:6},CXb=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
BXb?BXb[b]:zXb(a,b)},qXb=function(a){if($t&&!(9<=Number(gu))){var b=CXb(a,"borderLeft"),c=CXb(a,"borderRight"),d=CXb(a,"borderTop");a=CXb(a,"borderBottom");return new uU(d,c,a,b)}b=wU(a,"borderLeftWidth");c=wU(a,"borderRightWidth");d=wU(a,"borderTopWidth");a=wU(a,"borderBottomWidth");return new uU(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
var DXb=function(){if(Vib){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(ea()))?a[1]:"0"}return du?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(ea()))?a[0].replace(/_/g,"."):"10"):Yib?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(ea()))?a[1]:""):Zib||$ib||ajb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(ea()))?a[1].replace(/_/g,"."):""):""}();
var AU=function(a){return(a=a.exec(ea()))?a[1]:""},EXb=function(){if(kjb)return AU(/Firefox\/([0-9.]+)/);if($t||au||Tib)return eu;if(ojb){if(oa()||ia("Macintosh")){var a=AU(/CriOS\/([0-9.]+)/);if(a)return a}return AU(/Chrome\/([0-9.]+)/)}if(pjb&&!oa())return AU(/Version\/([0-9.]+)/);if(ljb||mjb){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(ea()))return a[1]+"."+a[2]}else if(njb)return(a=AU(/Android\s+([0-9.]+)/))?a:AU(/Version\/([0-9.]+)/);return""}();
var dSa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=wp(a,"position")){var c=yU(a);if(!b){b=vXb(a);var d;if(d=b){d=pjb&&0<=qa(EXb,10);var e;if(e=bjb)e=0<=qa(DXb,10);var f=ojb&&0<=qa(EXb,85);d=bu||d||e||f}b=d?-a.scrollLeft:b&&!Kna&&"visible"!=wp(a,"overflowX")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Lq(c,new Kq(b,a.scrollTop))}}}return c||new Kq},gSa=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 vU(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}},Jq=function(a,b){return(b&8&&vXb(a)?b^4:b)&
-9};
var BU=function(){};BU.instance_=void 0;BU.getInstance=function(){return BU.instance_?BU.instance_:BU.instance_=new BU};BU.prototype.nextId_=0;BU.prototype.idPrefix_="";BU.prototype.setIdPrefix=function(a){this.idPrefix_=a};var tq=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};
var CU=function(a,b,c,d){Jo.call(this);this.parent_=a||document.body;this.dom_=So(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=null!=d?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};Wt(CU,Jo);CU.prototype.getElement=function(){return this.element_};
CU.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Ut();this.target_=c;this.rowDivs_=[];FXb(this)};CU.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,GXb(this,!1),zU(this.element_,!1))};CU.prototype.show=function(){this.visible_||(this.visible_=!0,GXb(this,!0),zU(this.element_,!0))};
var GXb=function(a,b){a.target_&&($I(a.target_,"haspopup",b),$I(a.element_,"expanded",b),$I(a.target_,"expanded",b),b?$I(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),aJ(a.target_,null)))};CU.prototype.isVisible=function(){return this.visible_};
var HXb=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_&&kXb(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(tU(d,["ac-active","active"]),a.target_&&aJ(a.target_,d),sXb(d,a.element_)))};CU.prototype.hiliteId=function(a){if(-1==a)HXb(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){HXb(this,b);break}};
var IXb=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;tU(b,Ri(a.className).split(" "));ZI(b,"listbox");b.id=tq(BU.getInstance());a.dom_.appendChild(a.parent_,b);Ko(b,"click",a.handleClick_,!1,a);Ko(b,"mousedown",a.handleMouseDown_,!1,a);Ko(b,"mouseover",a.handleMouseOver_,!1,a)}},FXb=function(a){IXb(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:tq(BU.getInstance())});ZI(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):qD(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,JXb(this,d,c));iXb(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(),xXb(a.element_))};
CU.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=dSa(c),f=Hq(a),h=Iq(a);h&&f.intersection(eSa(h));fSa(f,So(a),So(c));a=Jq(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Kq(b,f.top+(a&1?f.height:0));a=Lq(a,e);if(f=Iq(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=Jq(c,d);d=Mq(c);b=d.clone();e=gSa(e,b,a,null,f,65);e.status&496||(f=e.rect,Nq(c,new Kq(f.left,
f.top)),b=e.rect.getSize(),iSa(d,b)||jSa(c,b))}};CU.prototype.getTarget=function(){return this.target_||null};CU.prototype.disposeInternal=function(){this.element_&&($C(this.element_,"click",this.handleClick_,!1,this),$C(this.element_,"mousedown",this.handleMouseDown_,!1,this),$C(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);ti(this.animation_);this.parent_=null;CU.superClass_.disposeInternal.call(this)};
var JXb=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=KXb(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&&JXb(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,JXb(a,b,c),b=d},KXb=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!Wi(Vi(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(Jn).join("|"):(c=mC(b),c=Jn(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=0<b.length?Jn(b[0]):"":/^\W/.test(b)||(c=Jn(b));return c},LXb=function(a,b){for(;b&&b!=a.element_&&!hXb(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};CU.prototype.handleClick_=function(a){var b=LXb(this,a.target);0<=b&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};CU.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
CU.prototype.handleMouseOver_=function(a){a=LXb(this,a.target);0<=a&&!(300>Ut()-this.startRenderingRows_)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};
var DU=function(a,b,c,d,e,f,h,k,q,u){f=f||new sU(",;",'"');h=new CU(h||null,q||this,u);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;pU.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};Wt(DU,pU);
var NXb=function(a,b,c,d,e,f,h,k,q,u){b=new DU(null,b,void 0,f,c,d,e,void 0,void 0,h);WG(a);MXb.call(null,b,kWb(0,k,q,u));return b},OXb=function(a,b,c,d,e,f,h){b=new DU(null,b,void 0,f,c,d,e,void 0,void 0,h);MXb(b,ACa(a));return b},MXb=function(a,b){b.loadContactRows(nUb,function(){});PXb(a,b)};DU.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&ti(this.contactStore_);DU.superClass_.disposeInternal.call(this)};
var PXb=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=DU.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:lUb,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=St(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 CT;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.response_=Tt(c,d,b,null,a)}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){DU.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){DU.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=zq('<div class="'+Aq("goog-contacts-ui-autocomplete-name-nochat")+(b?" "+Aq("goog-contacts-ui-autocomplete-new-section"):"")+'">'+jU(a)+"</div>");a=CCa(a);To(c,a)};g.selectHilited=function(){var a=qU(this,this.hiliteId_);return-1!=a&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):DU.superClass_.selectHilited.call(this)};g.fireSelectionEvent=function(a){this.dispatchEvent(new QXb(a))};
var QXb=function(a){OC.call(this,"g");this.row=a};Wt(QXb,OC);Vt("createAutoComplete",function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){d&&(b=b+d+"/");b=kWb(WG(b),E,I,N);f&&b.loadContactRows(nUb,function(){});c=new DU(b,c,void 0,q,e,k,u,!0);c.attachInputs(fD(document,a));return c});
var EU=function(){this.eventHandler_=new ZG(this);EU.prototype.addInput=EU.prototype.addInput;EU.prototype.removeInput=EU.prototype.removeInput;EU.prototype.setTarget=EU.prototype.setTarget},RXb=function(a,b){var c=new EU;c.create(a,b);return c};g=EU.prototype;
g.create=function(a,b){a=fD(document,a);this.acWidget_=b.contactStoreConfig?OXb(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign):NXb(b.serverBase,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign,b.acd,b.onAuthError,b.tg);"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var c=b.onComplete;"function"===typeof c&&this.eventHandler_.listen(this.acWidget_,"update",function(d){d.row&&
c.call(da,d.target.getTarget())});this.addInput(a)};g.dispose=function(){Mla(this.acWidget_,this.eventHandler_)};g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};
g.acWidget_=null;da._EmailAc_create=RXb;
var SXb=function(a,b){return new Yo("/",a,void 0,void 0,void 0,void 0,b)};Yo.prototype.setLocale=function(){};var TXb=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};TXb.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
Yo.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("Xd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)UXb(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ia(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(b in this.acWrappers_){a=this.acWrappers_[b];a=[].concat(v(a.pendingInputs.values()));for(var c=1;c<a.length;c++)$C(a[c],"focus",this.onTargetFocus_,!1,this)}};
var UXb=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=St(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(v(b.pendingInputs.values()));b.emailac=RXb(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=Yo.prototype;
g.attachAutocomplete=function(a,b,c){a=fD(document,a);var d=b||{};b=Ia(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new TXb(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_?UXb(this,e):Ko(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[Ia(a)];b&&b(a)};g.detachAutocomplete=function(a){a=fD(document,a);$C(a,"focus",this.onTargetFocus_,!1,this);var b=Ia(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};Vt("goog.NewContactTools",Yo);
Vt("goog.NewContactTools.create",SXb);Yo.prototype.setLocale=Yo.prototype.setLocale;Yo.prototype.attachAutocompleteTo=Yo.prototype.attachAutocompleteTo;Yo.prototype.initAutocomplete=Yo.prototype.initAutocomplete;Yo.prototype.attachAutocomplete=Yo.prototype.attachAutocomplete;Yo.prototype.detachAutocomplete=Yo.prototype.detachAutocomplete;
var GCa=function(a){this.rows_=a||[]};GCa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(""!=a)for(var f=new RegExp("(^|\\W+)"+Jn(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=VXb(a,b,d));c(a,e)};
var FCa=function(a,b,c){return VXb(b,c,a.rows_)},VXb=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(-1!=k.indexOf(h))q=parseInt((k.indexOf(h)/4).toString(),10);else for(var u=h.split(""),x=-1,E=10,I=0,N;N=u[I];I++)N=k.indexOf(N),N>x?(x=N-x-1,x>E-5&&(x=E-5),q+=x,x=N):(q+=E,E+=5);q<6*h.length&&d.push({str:f,score:q,index:e})}d.sort(function(L,T){var Y=L.score-T.score;return 0!=Y?Y:L.index-T.index});a=[];for(I=0;I<b&&I<d.length;I++)a.push(d[I].str);
return a};
var FU=function(a,b,c,d){var e=this;this.activeSession=c;this.contactTools_=null;this.subscription=new U.Subscription;this.acReadyDeferred_=Mj();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()})}};FU.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
FU.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return HCa(h,k,d.activeSession.getUserEmail(),c)},f=new U.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};FU.\u0275fac=function(a){return new (a||FU)(t(jM),t(FK),t(yH),t(GU))};
FU.\u0275prov=lc({token:FU,factory:FU.\u0275fac,providedIn:"root"});var GU=function(){};GU.prototype.create=function(a){var b=new zT(bo(jTb,'[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"MINIMAL_DOMAIN","BUGANIZER",null,null,null,null,true,true],[]]')),c=b.getUserInfo();l(c,6,a?5:1);a=b.getExperiments();a=l(a,5,!0);a=l(a,1,!0);a=l(a,3,!0);l(a,2,!0);return SXb("xapi",b)};GU.\u0275fac=function(a){return new (a||GU)};
GU.\u0275prov=lc({token:GU,factory:GU.\u0275fac,providedIn:"root"});
var HU=function(a,b,c,d){yI.call(this);this.element=a;this.accessPolicyConverter=b;this.focusContacts=c;this.activeSession=d;this.autocompleteActive=new Jw;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement};V(HU,yI);
HU.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-"+pC());if(!this.activeSession.isAnonymous()){if("SINGLE"===this.fieldType)var b=function(){a.$element.value=WXb(XXb(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=r(f.value.split(",")),k=h.next();!k.done;k=h.next())d+=k.value.trim(),d.match(/^[a-z0-9@\-\._\+]+$/i)?(e.push(WXb(d)),d=""):fTb.test(d)?(e.push(d),d=""):d.match(/(".+" )?<.+>/)&&(d=WXb(XXb(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("Yd`"+
this.fieldType);var c=this.additionalContactsCallback();c=YXb(c);this.subscriptions.add(this.focusContacts.attach(this.$element,b,c))}};
var ZXb=function(a){(0,U.timer)(150).pipe(jg(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)})},YXb=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})},XXb=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},WXb=function(a){a=a.trim();
","===sa(a)&&(a=a.slice(0,-1));a=so(a);var b=a.split("@");return 2===b.length?b[0]+"@"+b[1].toLowerCase():a};HU.\u0275fac=function(a){return new (a||HU)(C(wd),C(tT),C(FU),C(yH))};
HU.\u0275dir=w({type:HU,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&J("keydown",function(){return ZXb(b)},!1,zd)("mousedown",function(){return ZXb(b)})},inputs:{fieldType:["bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},features:[ie]});var IU=function(){};IU.\u0275fac=function(a){return new (a||IU)};IU.\u0275mod=Cc({type:IU});IU.\u0275inj=mc({imports:[Mx]});
var $Xb=["spanElement"],JU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};JU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};JU.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)+"...")};
JU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};JU.\u0275fac=function(a){return new (a||JU)};
JU.\u0275cmp=w({type:JU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&Hf($Xb,5);if(a&2){var c;Gf(c=Jf())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Jc],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,Td)},dependencies:[lF],encapsulation:2});
var KU=function(){};KU.\u0275fac=function(a){return new (a||KU)};KU.\u0275mod=Cc({type:KU});KU.\u0275inj=mc({imports:[mH]});
var aYb=["popupField"],bYb=["fieldContent"],cYb=["popupOverlay"],dYb=["overlayContent"],bDa=function(a,b){return{"bv2-disabled":a,"bv2-readonly":b}},eYb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],LU=function(a,b,c,d,e,f,h,k){yI.call(this);this.cdr=a;this.element=b;this.overlay=c;this.viewContainerRef=d;this.dateFormatter=e;this.activeSession=f;this.constants=h;this.appEvents=k;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=this.displayValue=null;
this.textBuffer="";this.isActive=this.multiline=this.enableWaldoAvailability=!1;this.title=this.name="";this.displayValueOverride=this.value=null;this.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.showEnumTitle=!1;this.valueChange=new Jw;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.truncate=!1;this.enableTeamAnnotations=f.isInternalSession()};V(LU,yI);LU.\u0275dir=yI.\u0275dir;g=LU.prototype;
g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=AH(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,fYb(a),a.cdr.detectChanges())}));this.subscriptions.add(BOb(this.dateFormatter,function(){gYb(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){fYb(a)})};
g.ngOnDestroy=function(){yI.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&gYb(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return CA(DA(EA(KA(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),eYb)};
var fYb=function(a){var b;(null==(b=a.overlayRef)?0:b.hasAttached())&&a.overlayRef.detach()},mDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();sDa(a);break;case 27:b.stopPropagation(),Zo(a,b,!1,!0)}},kDa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),sDa(a);break;case 27:b.stopPropagation(),Zo(a,b,!1,!0)}},YCa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();Zo(a,
b,!0,!1);break;case 27:b.stopPropagation(),Zo(a,b,!1,!0)}},Zo=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,fYb(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?Ok(c):null),"ENUM"===
a.type&&xi(a.enumMenuTrigger),"ENUM"!==a.type){hYb(a);var f=a.element.nativeElement;(0,U.fromEvent)(document,"click").pipe(xf(function(h){return!f.contains(h.target)}),Xf(),jg(a.overlayRef._detachments),jg(a.destroyed$)).subscribe(function(){Zo(a,null,!1,!1)})}null==b||b.stopPropagation();a.cdr.detectChanges()}};LU.prototype.schedule=function(a){var b=U.asyncScheduler.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};
LU.prototype.getDisplayValue=function(a){return null===this.displayValue?a:this.displayValue};
var gYb=function(a){var b=a.value;switch(a.type){case "ENUM":if("Type"===a.title&&b&&zDb.has(b)){a.displayValue=ZBb(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(Ok(b)):a.displayValue=null;a.readonlyTooltip=null;break;default:a.displayValueOverride?
a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};LU.prototype.setFieldValue=function(a){this.disabled||this.readonly||("DATE"===this.type&&a&&(a=Qk(a)),"NUMERIC"===this.type&&""===a&&(a=null),Ei(this.value,a)?"ENUM"===this.type&&Zo(this,null,!1,!0):(Zo(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var sDa=function(a){if(void 0===a.type)throw Error("Zd");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("$d");default:sh(a.type,"FieldType")}};
LU.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);Zo(this,null,!1,!0)};var hYb=function(a){fYb(a);var b=a.overlayRef.attach(new NA(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()})};
LU.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};LU.prototype.getPriority=function(a){return"string"===typeof a?a.toLowerCase():""};LU.\u0275fac=function(a){return new (a||LU)(C(uI,2),C(wd),C(TA),C(Ef),C(tP),C(yH),C(ZH),C(BK))};
LU.\u0275cmp=w({type:LU,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(Hf(eF,5),Hf(aYb,5),Hf(bYb,5),Hf(cYb,5),Hf(dYb,5));if(a&2){var c;Gf(c=Jf())&&(b.enumMenuTrigger=c.first);Gf(c=Jf())&&(b.popupField=c.first);Gf(c=Jf())&&(b.fieldContent=c.first);Gf(c=Jf())&&(b.popupOverlay=c.first);Gf(c=Jf())&&(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:[Me([uI]),ie,Jc],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"],
[3,"user",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",""],[4,"ngIf"],["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-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"],["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&&(F(0,"div")(1,"div",0),O(2,$Ca,7,14,"div",1),O(3,cDa,3,13,"div",2),
O(4,dDa,1,1,"b-availability-chip",3),H(5,"div",4),G(),F(6,"mat-menu",null,5),O(8,gDa,2,2,"ng-template",6),G(),O(9,uDa,6,7,"ng-template",null,7,Pf),G());a&2&&(B(1),te("active",b.isActive&&!b.readonly&&!b.disabled),B(1),D("ngIf","BOOL"!==b.type),B(1),D("ngIf","BOOL"===b.type),B(1),D("ngIf",b.isUser&&b.value&&b.enableWaldoAvailability))},dependencies:[qR,xx,yx,ux,Ex,Ax,Bx,Cx,HU,xP,Qg,by,hy,rB,XE,bF,$E,eF,ZE,lF,rT,jR,JU,aS,pS,Gx],styles:[".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var iYb={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},jYb=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}},MU=function(){};MU.\u0275fac=function(a){return new (a||MU)};MU.\u0275mod=Cc({type:MU});MU.\u0275inj=mc({imports:[mS,iO,Mx,IU,QP,wy,uG,pF,fF,mH,sT,lS,zM,KU,qS]});
var NU=function(a){Z.call(this,a,-1,kYb)};V(NU,Z);g=NU.prototype;g.getAuthor=function(){return W(this,1)};g.getDescription=function(){return W(this,2)};g.setDescription=function(a){return l(this,2,a)};g.getTimestamp=function(){return fj(this,4)};g.setTimestamp=function(a){return l(this,4,a)};g.hasTimestamp=function(){return ej(this,4)};var kYb=[5];
NU.prototype.toObject=function(){var a=null!=this?{author:n(p(this,1)),description:n(p(this,2)),pending:n(Mo(this,3)),timestamp:n(p(this,4)),affectedFilesList:n(ob(this,5))}:void 0;return a};NU.messageId="b.ChangelistDetailsResponse";
var mYb=function(a){Z.call(this,a,-1,lYb)};V(mYb,Z);var lYb=[1];mYb.prototype.toObject=function(){var a=null!=this?{changelistNumbersList:n(ob(this,1))}:void 0;return a};mYb.messageId="b.PendingChangelistsResponse";
var OU=function(a){this.executor=a};OU.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:mYb}).pipe(S(vDa))};OU.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:NU}).pipe(S(wDa))};OU.\u0275fac=function(a){return new (a||OU)(t(pI))};OU.\u0275prov=lc({token:OU,factory:OU.\u0275fac,providedIn:"root"});
var PU=function(a){this.changelistResources=a};PU.prototype.getPendingChangelistsForIssue=function(a){return(0,U.firstValueFrom)(this.changelistResources.getPendingChangelistsForIssue(a))};PU.prototype.getChangelistDetails=function(a){return(0,U.firstValueFrom)(this.changelistResources.getChangelistDetails(a))};PU.\u0275fac=function(a){return new (a||PU)(t(OU))};PU.\u0275prov=lc({token:PU,factory:PU.\u0275fac,providedIn:"root"});
var QU=function(a){yI.call(this);var b=this;this.changelistApi=a;this.providedChangelistId$=new U.ReplaySubject(1);this.changelist$=this.providedChangelistId$.pipe(ig(function(c){return b.changelistApi.getChangelistDetails(c)}),fg({refCount:!0,bufferSize:1}));this.init=new U.ReplaySubject(1)};V(QU,yI);QU.\u0275dir=yI.\u0275dir;QU.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(){a.init.next()})};
QU.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};QU.\u0275fac=function(a){return new (a||QU)(C(OU))};
QU.\u0275cmp=w({type:QU,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[ie,Jc],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&&(F(0,"div",0)(1,"div",1),O(2,ADa,16,6,"ng-container",2),Q(3,"async"),G()());a&2&&(B(2),D("ngIf",R(3,1,b.changelist$)))},dependencies:[yx,ux,ZR,vP,Fx],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 RU=function(){this.config=Object.assign({},new XLb,{delay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};RU.prototype.ngOnInit=function(){};RU.\u0275fac=function(a){return new (a||RU)};
RU.\u0275cmp=w({type:RU,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&&(F(0,"a",0),P(1),G(),F(2,"onedev-hovercard",null,1),O(4,BDa,2,2,"b-changelist-card",2),G());if(a&
2){var c=M(3);D("href","http://critique.corp.google.com/"+b.changelistId,Ud)("onedevHovercardTrigger",c)("onedevHovercardConfig",b.config);oe("aria-label","Changelist"+b.changelistId);B(1);Je(" ",b.changelistId,"\n")}},dependencies:[dN,eN,hN,fN,QU],encapsulation:2});
var SU=function(){};SU.\u0275fac=function(a){return new (a||SU)};SU.\u0275mod=Cc({type:SU});SU.\u0275inj=mc({imports:[Mx,qS,ON,PP]});
var nYb=0,TU=function(a,b){yI.call(this);var c=this;this.teamsService=b;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new Jw;this.linkBlurred=new Jw;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new U.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+nYb;this.fetchedTeam$=this.providedTeamId$.pipe(Wf(),xf(function(d){return"0"!==d}),ig(function(d){return c.teamsService.getTeam(d)}),S(function(d){return d.getTeamId()!==
c.teamId?(new VL).setTeamId(c.teamId).setName(c.teamId).setDescription(""):d}),Sf(function(){return(0,U.of)((new VL).setTeamId(c.teamId).setName(c.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(S(function(){return!0}),hg(!1));this.fetchedTeam$.pipe(jg(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()});nYb++};V(TU,yI);TU.\u0275dir=yI.\u0275dir;
g=TU.prototype;g.ngOnInit=function(){};g.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};g.trackClick=function(a){Nn(ao.TEAM_CARD,"click",a,1)};g.manageComponentLink=function(){return ysa(this.componentId,"basic")};g.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};TU.\u0275fac=function(a){return new (a||TU)(C(yH),C(ZL))};
TU.\u0275cmp=w({type:TU,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[ie,Jc],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),H(3,"img",3),F(4,"div",4)(5,"div",5),H(6,"mat-icon",6),P(7),G(),F(8,"div",7),P(9),G()()(),F(10,"p",8),P(11),G(),F(12,"div",9)(13,"a",10),J("click",function(){return b.trackClick("viewTeamSettingsPage")}),F(14,"button",11),P(15,"View team settings"),G()(),F(16,"a",12),J("click",function(){return b.trackClick("viewTeamInMoma")}),F(17,"button",11),P(18,"View team in Moma "),H(19,"mat-icon",13),G()(),O(20,CDa,3,1,"a",14),
G()()());a&2&&(B(3),oe("src",b.teamLogoUrl,Ud),B(4),Je(" Team: ",b.teamName," "),B(2),Je("Team ID: ",b.teamId,""),B(2),Ke(b.teamDescription),B(2),Ge("routerLink","/teams/",b.teamId,"/edit"),B(3),Ge("href","https://moma.corp.google.com/team/",b.teamId,"",Ud),B(4),D("ngIf",b.componentId))},dependencies:[ux,XE,KI,rB],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 UU=function(){};UU.\u0275fac=function(a){return new (a||UU)};UU.\u0275mod=Cc({type:UU});UU.\u0275inj=mc({imports:[Mx,pF,QI,uG]});
var oYb=0,VU=function(a){yI.call(this);var b=this;this.teamsService=a;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new U.ReplaySubject(1);this.teamLinkId="b-team-link-content-"+oYb;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(Wf(),xf(function(c){return"0"!==c}),ig(function(c){return b.teamsService.getTeam(c)}),S(function(c){return c.getTeamId()!==b.teamId?(new VL).setTeamId(b.teamId).setName(b.teamId).setDescription(""):c}),
Sf(function(){return(0,U.of)((new VL).setTeamId(b.teamId).setName(b.teamId).setDescription(""))}));this.isTeamFetched$=this.fetchedTeam$.pipe(S(function(){return!0}),hg(!1));this.fetchedTeam$.pipe(jg(this.destroyed$)).subscribe(function(c){b.teamName=c.getName()});oYb++};V(VU,yI);VU.\u0275dir=yI.\u0275dir;VU.prototype.ngOnInit=function(){};VU.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};VU.prototype.trackClick=function(a){Nn(ao.TEAM_CARD,"click",a,1)};
VU.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};VU.\u0275fac=function(a){return new (a||VU)(C(ZL))};
VU.\u0275cmp=w({type:VU,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[ie,Jc],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&&(O(0,FDa,3,2,"ng-container",0),Q(1,"async"),F(2,"onedev-hovercard",null,1),ze(4),H(5,"b-team-card",2),Ae(),G(),O(6,IDa,2,2,"ng-template",null,3,Pf));if(a&2){var c=M(7),d;D("ngIf","0"!=b.teamId&&R(1,4,b.isTeamFetched$))("ngIfElse",c);B(5);D("componentId",null==b.componentId?
null:b.componentId.toString())("teamId",null!==(d=null==b.teamId?null:b.teamId.toString())&&void 0!==d?d:"0")}},dependencies:[ux,XE,dN,hN,TU,Fx]});
var WU=function(){};WU.\u0275fac=function(a){return new (a||WU)};WU.\u0275mod=Cc({type:WU});WU.\u0275inj=mc({imports:[Mx,pF,ON,UU]});
var pYb=new sd("CDK_DRAG_CONFIG");
var qYb=new sd("CDK_DRAG_PARENT");
var rYb=new sd("CdkDragHandle"),XU=function(a,b){this.element=a;this._stateChanges=new U.Subject;this._disabled=!1;this._parentDrag=b};XU.prototype.ngOnDestroy=function(){this._stateChanges.complete()};ji.Object.defineProperties(XU.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=bh(a);this._stateChanges.next(this)}}});XU.\u0275fac=function(a){return new (a||XU)(C(wd),C(qYb,12))};
XU.\u0275dir=w({type:XU,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Me([{provide:rYb,useExisting:XU}])]});
var sYb=new sd("CdkDragPlaceholder");
var tYb=new sd("CdkDragPreview");
var uYb=new sd("CdkDropListGroup");
var vYb=Vg({passive:!1,capture:!0}),YU=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 U.Subject;this.pointerUp=new U.Subject;this.scroll=new U.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},wYb=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},xYb=function(a,b){a._dragInstances.add(b);1===a._dragInstances.size&&a._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,vYb)})},zYb=function(a,b){a._dragInstances.delete(b);yYb(a,b);0===a._dragInstances.size&&a._document.removeEventListener("touchmove",a._persistentTouchmoveListener,
vYb)};
YU.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:vYb}),a||this._globalListeners.set("mousemove",{handler:function(d){return c.pointerMove.next(d)},
options:vYb}),this._ngZone.runOutsideAngular(function(){c._globalListeners.forEach(function(d,e){c._document.addEventListener(e,d.handler,d.options)})})))};var yYb=function(a,b){b=a._activeDragInstances.indexOf(b);-1<b&&(a._activeDragInstances.splice(b,1),0===a._activeDragInstances.length&&a._clearGlobalListeners())};YU.prototype.isDragging=function(a){return-1<this._activeDragInstances.indexOf(a)};
YU.prototype.scrolled=function(a){var b=this,c=[this.scroll];a&&a!==this._document&&c.push(new U.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 U.merge.apply(null,v(c))};
YU.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return zYb(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};YU.prototype._clearGlobalListeners=function(){var a=this;this._globalListeners.forEach(function(b,c){a._document.removeEventListener(c,b.handler,b.options)});this._globalListeners.clear()};YU.\u0275fac=function(a){return new (a||YU)(t(qg),t(hi))};
YU.\u0275prov=lc({token:YU,factory:YU.\u0275fac,providedIn:"root"});
var QDa=0;
var ZU=function(a){this._document=a;this.positions=new Map};ZU.prototype.clear=function(){this.positions.clear()};ZU.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:JDa(c)})})};
var AYb=function(a,b){var c=$g(b);b=a.positions.get(c);if(!b)return null;b=b.scrollPosition;if(c===a._document){var d=a.getViewportScrollPosition();var e=d.top;d=d.left}else e=c.scrollTop,d=c.scrollLeft;var f=b.top-e,h=b.left-d;a.positions.forEach(function(k,q){k.clientRect&&c!==q&&c.contains(q)&&$o(k.clientRect,f,h)});b.top=e;b.left=d;return{top:f,left:h}};ZU.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};
var BYb=Vg({passive:!0}),CYb=Vg({passive:!1}),SDa=new Set(["position"]),$U=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 U.Subject;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=U.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 U.Subject;this.started=new U.Subject;this.released=new U.Subject;this.ended=new U.Subject;this.entered=new U.Subject;this.exited=new U.Subject;this.dropped=new U.Subject;this.moved=this._moveEvents;this._pointerDown=function(k){h.beforeStarted.next();if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||h._initializeDragSequence(q,
k)}else h.disabled||h._initializeDragSequence(h._rootElement,k)};this._pointerMove=function(k){var q=h._getPointerPositionOnPage(k);if(h._hasStartedDragging){k.preventDefault();var u=h._getConstrainedPointerPosition(q);h._hasMoved=!0;h._lastKnownPointerPosition=q;h._updatePointerDirectionDelta(u);if(h._dropContainer)h._updateActiveDropContainer(u,q);else{q=h.constrainPosition?h._initialClientRect:h._pickupPositionOnPage;var x=h._activeTransform;x.x=u.x-q.x+h._passiveTransform.x;x.y=u.y-q.y+h._passiveTransform.y;
h._applyRootElementTransform(x.x,x.y)}h._moveEvents.observers.length&&h._ngZone.run(function(){h._moveEvents.next({source:h,pointerPosition:u,event:k,distance:h._getDragDistance(u),delta:h._pointerDirectionDelta})})}else Math.abs(q.x-h._pickupPositionOnPage.x)+Math.abs(q.y-h._pickupPositionOnPage.y)>=h._config.dragStartThreshold&&((q=Date.now()>=h._dragStartTime+h._getDragStartDelay(k),x=h._dropContainer,q)?x&&(x.isDragging()||0<x._activeSiblings.size)||(k.preventDefault(),h._hasStartedDragging=!0,
h._ngZone.run(function(){return h._startDragSequence(k)})):h._endDragSequence(k))};this._pointerUp=function(k){h._endDragSequence(k)};this._nativeDragStart=function(k){if(h._handles.length){var q=h._getTargetHandle(k);!q||h._disabledHandles.has(q)||h.disabled||k.preventDefault()}else h.disabled||k.preventDefault()};DYb(EYb(this,a),b.parentDragRef||null);this._parentPositions=new ZU(c);xYb(f,this)};$U.prototype.getPlaceholderElement=function(){return this._placeholder};
$U.prototype.getRootElement=function(){return this._rootElement};
var FYb=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},GYb=function(a,b){a._handles=b.map(function(d){return dh(d)});a._handles.forEach(function(d){return ap(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},EYb=function(a,b){var c=dh(b);c!==a._rootElement&&(a._rootElement&&a._removeRootElementListeners(a._rootElement),a._ngZone.runOutsideAngular(function(){c.addEventListener("mousedown",
a._pointerDown,CYb);c.addEventListener("touchstart",a._pointerDown,BYb);c.addEventListener("dragstart",a._nativeDragStart,CYb)}),a._initialTransform=void 0,a._rootElement=c);"undefined"!==typeof SVGElement&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},HYb=function(a,b){a._boundaryElement=b?dh(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},DYb=function(a,b){a._parentDragRef=b};g=$U.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();zYb(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(),yYb(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();
yYb(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();yYb(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){dp(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();TDa(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=dp(b),f=!e&&0!==b.button,h=this._rootElement,k=$g(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?ei(b):di(b);k&&k.draggable&&"mousedown"===b.type&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=
!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(u){return c._updateOnScroll(u)}),this._boundaryElement&&(this._boundaryRect=JDa(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;TDa(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);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=XDa(c,this._document);this._previewRef=c;a.matchSize?YDa(e,d):e.style.transform=cp(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=PDa(this._rootElement),YDa(e,this._initialClientRect),this._initialTransform&&(e.style.transform=this._initialTransform);
RDa(e.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":""+(this._config.zIndex||1E3)},SDa);ap(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=WDa(this._preview);return 0===c?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(d){var e=function(h){if(!h||$g(h)===a._preview&&"transform"===h.propertyName){var k;null==(k=a._preview)||k.removeEventListener("transitionend",
e);d();clearTimeout(f)}},f=setTimeout(e,1.5*c);a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=XDa(this._placeholderRef,this._document)):a=PDa(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=dp(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=dp(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):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,ap(this._rootElement,a))}};g._removeRootElementListeners=function(a){a.removeEventListener("mousedown",this._pointerDown,CYb);a.removeEventListener("touchstart",this._pointerDown,BYb);a.removeEventListener("dragstart",this._nativeDragStart,CYb)};
g._applyRootElementTransform=function(a,b){a=cp(a,b);b=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=b.transform&&"none"!=b.transform?b.transform:"");b.transform=bp(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=bp(cp(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:dp(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=AYb(this._parentPositions,a);b&&(a=$g(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&$o(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=Yg(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):dh(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))})};ji.Object.defineProperties($U.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(a){var b=bh(a);b!==this._disabled&&(this._disabled=b,this._toggleNativeDragInteractions(),this._handles.forEach(function(c){return ap(c,b)}))}}});
var aV=function(a,b){this._element=a;this._dragDropRegistry=b;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};aV.prototype.start=function(a){this.withItems(a)};
aV.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(L){return L.drag===a}),q=e[f],u=q.clientRect,x=k>f?1:-1,E=this._getItemOffsetPx(e[k].clientRect,u,x),I=this._getSiblingOffsetPx(k,e,x),N=e.slice();ep(e,k,f);e.forEach(function(L,T){if(N[T]!==L){var Y=L.drag===a;T=Y?E:I;Y=Y?a.getPlaceholderElement():L.drag.getRootElement();L.offset+=T;h?(Y.style.transform=
bp("translate3d("+Math.round(L.offset)+"px, 0, 0)",L.initialTransform),$o(L.clientRect,0,T)):(Y.style.transform=bp("translate3d(0, "+Math.round(L.offset)+"px, 0)",L.initialTransform),$o(L.clientRect,T,0))}});this._previousSwap.overlaps=KDa(u,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y;return{previousIndex:k,currentIndex:f}};
aV.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)):(dh(this._element).appendChild(h),e.push(a));h.style.transform="";this._cacheItemPositions()};
aV.prototype.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};var IYb=function(a,b){a._sortPredicate=b};
aV.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};
aV.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 JYb=function(a,b,c){a._itemPositions.forEach(function(d){$o(d.clientRect,b,c)});a._itemPositions.forEach(function(d){d=d.drag;a._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};g=aV.prototype;
g._cacheItemPositions=function(){var a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(b){var c=FYb(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:JDa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};g._getItemOffsetPx=function(a,b,c){var d="horizontal"===this.orientation,e=d?b.left-a.left:b.top-a.top;-1===c&&(e+=d?b.width-a.width:b.height-a.height);return e};
g._getSiblingOffsetPx=function(a,b,c){var d="horizontal"===this.orientation,e=b[a].clientRect;a=b[a+-1*c];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=-1===c?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d="horizontal"===this.orientation;if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f="horizontal"===this.orientation,h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var u=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&u===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return-1!==h&&this._sortPredicate(h,a)?h:-1};
var LYb=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 U.Subject;this.entered=new U.Subject;this.exited=new U.Subject;this.dropped=new U.Subject;this.sorted=new U.Subject;this._isDragging=!1;this._draggables=[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=
U.Subscription.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new U.Subject;this._cachedShadowRoot=null;this._startScrollInterval=function(){f._stopScrolling();(0,U.interval)(0,U.animationFrameScheduler).pipe(jg(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=dh(a);this._document=c;KYb(this,[this.element]);wYb(b,this);this._parentPositions=new ZU(c);this._sortStrategy=new aV(this.element,b);IYb(this._sortStrategy,function(h,k){return f.sortPredicate(h,k,f)})};g=LYb.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){var 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 MYb=function(a,b){a._sortStrategy.orientation=b},KYb=function(a,b){var c=dh(a.element);a._scrollableElements=-1===b.indexOf(c)?[c].concat(v(b)):b.slice()};g=LYb.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&&LDa(this._clientRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,u){if(u!==c._document&&q.clientRect&&!k&&LDa(q.clientRect,a,b)){var x=q.clientRect;q=ZDa(x,b);x=$Da(x,a);var E=0,I=0;if(q){var N=u.scrollTop;1===q?0<N&&(E=1):u.scrollHeight-N>u.clientHeight&&(E=2)}x&&(q=u.scrollLeft,1===x?0<q&&(I=1):u.scrollWidth-q>u.clientWidth&&(I=2));q=r([E,I]);d=q.next().value;e=q.next().value;if(d||e)k=u}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),
h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=ZDa(h,b);e=$Da(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=dh(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=dh(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=dh(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&&KDa(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||!KDa(this._clientRect,b,c)||!this.enterPredicate(a,this))return!1;a=this._getShadowRoot().elementFromPoint(b,c);if(!a)return!1;b=dh(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=AYb(a._parentPositions,b))&&JYb(a._sortStrategy,b.top,b.left):0<a._activeSiblings.size&&a._cacheParentPositions()})};g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=Yg(dh(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 NYb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},bV=function(a,b,c,d){this._document=a;this._ngZone=b;this._viewportRuler=c;this._dragDropRegistry=d},OYb=function(a,b,c){c=void 0===c?NYb:c;return new $U(b,c,a._document,a._ngZone,a._viewportRuler,a._dragDropRegistry)};bV.\u0275fac=function(a){return new (a||bV)(t(hi),t(qg),t(vA),t(YU))};bV.\u0275prov=lc({token:bV,factory:bV.\u0275fac,providedIn:"root"});
var PYb=0,QYb=new sd("CdkDropList"),cV=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 U.Subject;this.connectedTo=[];this.id="cdk-drop-list-"+PYb++;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new Jw;this.entered=new Jw;this.exited=new Jw;this.sorted=new Jw;this._unsortedItems=new Set;this._dropListRef=new LYb(a,b._dragDropRegistry,b._document,b._ngZone,
b._viewportRuler);this._dropListRef.data=this;h&&this._assignDefaults(h);this._dropListRef.enterPredicate=function(q,u){return k.enterPredicate(q.data,u.data)};this._dropListRef.sortPredicate=function(q,u,x){return k.sortPredicate(q,u.data,x.data)};this._setupInputSyncSubscription(this._dropListRef);this._handleEvents(this._dropListRef);RYb.push(this);f&&f._items.add(this)};cV.prototype.addItem=function(a){this._unsortedItems.add(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};
cV.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._dropListRef.isDragging()&&this._syncItemsWithRef()};var SYb=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return FYb(b._dragRef).compareDocumentPosition(FYb(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=cV.prototype;
g.ngOnDestroy=function(){var a=RYb.indexOf(this);-1<a&&RYb.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(hg(this._dir.value),jg(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=ah(b.connectedTo).map(function(e){return"string"===typeof e?RYb.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=fqb(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
KYb(b._dropListRef,d);b._scrollableParentsResolved=!0}a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.sortingDisabled=bh(b.sortingDisabled);a.autoScrollDisabled=bh(b.autoScrollDisabled);a.autoScrollStep=eh(b.autoScrollStep,2);MYb(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(SYb(this).map(function(a){return a._dragRef}))};
ji.Object.defineProperties(cV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(a){this._dropListRef.disabled=this._disabled=bh(a)}}});var RYb=[];cV.\u0275fac=function(a){return new (a||cV)(C(wd),C(bV),C(nx),C(rA),C(gA,8),C(uYb,12),C(pYb,8))};
cV.\u0275dir=w({type:cV,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(oe("id",b.id),te("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:[Me([{provide:uYb,useValue:void 0},{provide:QYb,useExisting:cV}])]});
var dV=function(a,b,c,d,e,f,h,k,q,u,x){var E=this;this.element=a;this.dropContainer=b;this._ngZone=d;this._viewContainerRef=e;this._dir=h;this._changeDetectorRef=q;this._selfHandle=u;this._parentDrag=x;this._destroyed=new U.Subject;this.started=new Jw;this.released=new Jw;this.ended=new Jw;this.entered=new Jw;this.exited=new Jw;this.dropped=new Jw;this.moved=new U.Observable(function(I){var N=E._dragRef.moved.pipe(S(function(L){return{source:E,pointerPosition:L.pointerPosition,event:L.event,delta:L.delta,
distance:L.distance}})).subscribe(I);return function(){N.unsubscribe()}});this._dragRef=OYb(k,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;TYb.push(this);f&&this._assignDefaults(f);b&&(this._dragRef._withDropContainer(b._dropListRef),b.addItem(this));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};
g=dV.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(Xf(),jg(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=TYb.indexOf(this);-1<b&&TYb.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)}EYb(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?"string"===typeof a?this.element.nativeElement.closest(a):dh(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:eh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=HYb(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(Xf()).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;DYb(a,(null==(d=TYb.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(hg(this._handles),kg(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);GYb(a._dragRef,b)}),ig(function(b){return U.merge.apply(null,v(b.map(function(c){return c._stateChanges.pipe(hg(c))})))}),jg(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),ap(d,!0)):c._disabledHandles.has(d)&&(c._disabledHandles.delete(d),ap(d,c.disabled))})};ji.Object.defineProperties(dV.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(a){this._disabled=bh(a);this._dragRef.disabled=this._disabled}}});var TYb=[];dV.\u0275fac=function(a){return new (a||dV)(C(wd),C(QYb,12),C(hi),C(qg),C(Ef),C(pYb,8),C(gA,8),C(bV),C(nx),C(rYb,10),C(qYb,12))};
dV.\u0275dir=w({type:dV,selectors:[["","cdkDrag",""]],contentQueries:function(a,b,c){a&1&&(If(c,tYb,5),If(c,sYb,5),If(c,rYb,5));if(a&2){var d;Gf(d=Jf())&&(b._previewTemplate=d.first);Gf(d=Jf())&&(b._placeholderTemplate=d.first);Gf(d=Jf())&&(b._handles=d)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&te("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:[Me([{provide:qYb,useExisting:dV}]),Jc]});
var eV=function(){};eV.\u0275fac=function(a){return new (a||eV)};eV.\u0275mod=Cc({type:eV});eV.\u0275inj=mc({providers:[bV],imports:[wA]});
var UYb=["addLink"],VYb=["showFewer"],WYb=["showMore"],XYb=["removeButton"],YYb=[[["",8,"title-action"]],[["",8,"value-action"]]],ZYb=[Object.assign({},gp("start","bottom"),hp("start","top"),{offsetY:8}),Object.assign({},gp("center","bottom"),hp("center","top"),{offsetY:8}),Object.assign({},gp("end","bottom"),hp("end","top"),{offsetY:8}),Object.assign({},gp("start","top"),hp("start","bottom"),{offsetY:-8}),Object.assign({},gp("end","top"),hp("end","bottom"),{offsetY:-8})],fV=function(a,b,c,d){yI.call(this);
this.cdr=a;this.dateFormatter=b;this.analytics=c;this.OVERLAY_POSITION_LIST=ZYb;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 Jw;this.showingAll=this.listFieldDisabled=!1;this.tooltip=this.title="";this.truncate=!1;this.teamId="";this.isString=Hi;this.enableTeamAnnotations=
d.isInternalSession();this.environmentType=d.getEnvironmentType()};V(fV,yI);fV.\u0275dir=yI.\u0275dir;fV.prototype.ngOnChanges=function(a){var b;if(null==(b=a.users)?0:b.currentValue)for(a=r(a.users.currentValue),b=a.next();!b.done;b=a.next()){b=b.value;var c=Rl(b);c&&this.userMap.set(c,Fi(b))}};fV.prototype.ngOnInit=function(){tEa(this)};
var tEa=function(a){a.sortedEnumChoices=[].concat(v(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})},uEa=function(a){var b=a.values||[],c=[].concat(v(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})};
fV.prototype.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
fV.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()}})};
fV.prototype.addItems=function(a){var b=[];this.values=this.values||[];if(a)if("REPEATED_DATE"===this.type){var c=Qk(a);this.preventDuplicates&&this.values.find(function(f){return Ei(f,c)})||b.push(c)}else if("REPEATED_NUMERIC"===this.type&&Lma(this.values)&&Lma(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(Kma(this.values)&&Kma(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=r(a.split(/[,; ]/));
for(var d=a.next();!d.done;d=a.next()){var e=d=d.value;"CHANGELISTS"===this.type&&(e=$Yb(d));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&"REPEATED_DATE"!==this.type||EEa(this,!0);0!==b.length&&(this.values=[].concat(v(this.values),v(b)),this.valuesChange.emit({values:this.values,added:b}))};
var $Yb=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};fV.prototype.onDrop=function(a){ep(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
var EEa=function(a,b){var c,d=r(null!=(c=a.menuTriggers)?c:[]);for(c=d.next();!c.done;c=d.next())c.value.closeMenu();var e;d=r(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()},fp=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()})},aZb=function(a){return a.values&&"REPEATED_DATE"===a.type?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Ok(b))}):a.values&&"TEAM"===a.type?a.values:a.values&&"WORKSPACES"===a.type?a.values:a.displayValuesOverride||(a.values||[]).map(function(b){return Hi(b)?b:Gi(b)?""+b:a.dateFormatter.formatUserCalendar(Ok(b))})};g=fV.prototype;g.trackClick=function(a){Zn(this.analytics,ao.LINK_FIELD,"click",a)};g.getUser=function(a){return this.userMap.get(a)};g.schedule=function(a){this.subscriptions.add(U.asyncScheduler.schedule(a))};
g.trackByIndex=function(a){return a};g.asNumber=function(a){return Number(a)};fV.\u0275fac=function(a){return new (a||fV)(C(uI,2),C(tP),C(FM),C(yH))};
fV.\u0275cmp=w({type:fV,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(Hf(UYb,5),Hf(VYb,5),Hf(WYb,5),Hf(XYb,5),Hf(eF,5),Hf(uN,5));if(a&2){var c;Gf(c=Jf())&&(b.addLinkEl=c.first);Gf(c=Jf())&&(b.showFewer=c.first);Gf(c=Jf())&&(b.showMore=c.first);Gf(c=Jf())&&(b.removeButtons=c);Gf(c=Jf())&&(b.menuTriggers=c);Gf(c=Jf())&&(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",teamId:"teamId"},outputs:{valuesChange:"valuesChange"},features:[Me([uI]),ie,Jc],ngContentSelectors:[".title-action",".value-action"],decls:21,vars:21,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"],["cdkDrag","",4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[4,"ngIf"],[1,"bv2-field-user-action-footer"],["addLink",""],[3,"ngSwitch",4,"ngIf"],["enumPopup","matMenu"],["matMenuContent",""],["textPopup",
""],["datePopup",""],["tabindex","0"],["cdkDrag",""],["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",""],["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",""],[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","matTooltip","Add a new item to the list","tabindex","0",3,"xapInlineDialogClick","overlayPositions",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","matTooltip","Add a new item to the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],
["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","","autofocus","",3,"bContactAutocomplete",4,"ngIf"],["name","input","ngModel","","required","","step","any",
"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","","autofocus","",3,"bContactAutocomplete"],["name","input","ngModel","","required","","step","any","autofocus","",3,"type"],[3,"required",
"renderPanel","dateChange","cancelClicked"]],template:function(a,b){a&1&&(Ee(YYb),F(0,"div",0)(1,"div",1)(2,"div",2),O(3,aEa,2,2,"label",3),Fe(4),G(),F(5,"div",4),J("cdkDropListDropped",function(c){return b.onDrop(c)}),O(6,pEa,2,1,"div",5),O(7,qEa,3,3,"div",6),O(8,rEa,6,4,"div",7),O(9,sEa,2,0,"div",7),F(10,"div",8,9),O(12,yEa,4,3,"ng-container",10),O(13,zEa,1,0,"ng-content",7),G()()(),F(14,"mat-menu",null,11),O(16,BEa,1,2,"ng-template",12),G(),O(17,FEa,12,5,"ng-template",null,13,Pf),O(19,GEa,1,2,
"ng-template",null,14,Pf),G());a&2&&(te("empty-list-field-indication",!(null==b.values?0:b.values.length))("active",b.isActive&&!b.listFieldDisabled&&!b.readonly),B(1),te("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),D("matTooltip",b.tooltip)("matTooltipPosition","left"),B(2),D("ngIf",b.title),B(2),te("draggable",(null==b.values?null:b.values.length)&&b.isDefaultOrAllowedValues),D("cdkDropListDisabled",!b.isDefaultOrAllowedValues),B(1),D("ngForOf",aZb(b))("ngForTrackBy",b.trackByIndex),
B(1),D("ngIf",b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),D("ngIf",!b.showingAll&&!!b.values&&b.values.length>b.defaultLineCount+1),B(1),D("ngIf",!(null==b.values?0:b.values.length)),B(3),D("ngIf",!b.readonly),B(1),D("ngIf",!b.readonly))},dependencies:[yx,ux,Ax,Bx,Cx,RU,xP,iy,Qg,by,cy,sy,hy,fy,rB,lF,jR,JU,pS,cV,dV,qN,pN,uN,bF,$E,eF,ZE,XE,HU,VU],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; }"]});
var bZb={CCS:"CCS",CHANGELISTS:"CHANGELISTS",POSTMORTEMS:"POSTMORTEMS",REPEATED_TEXT:"REPEATED_TEXT",REPEATED_DATE:"REPEATED_DATE",REPEATED_ENUM:"REPEATED_ENUM",REPEATED_NUMERIC:"REPEATED_NUMERIC",TEAM:"TEAM",WORKSPACES:"WORKSPACES"},cZb=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}},gV=function(){};
gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275mod=Cc({type:gV});gV.\u0275inj=mc({imports:[iO,Mx,SU,QP,wy,uG,mH,lS,UU,KU,qS,eV,PN,RN,fF,pF,IU,RN,WU]});
var IEa=function(){return[]},hV=function(){this.disabled=this.readonly=!1;this.save=new Jw},dZb=function(a){return a.issue.customFieldMap[a.field.customFieldId]};hV.prototype.getDisplayValue=function(){var a,b;return null!=(b=null==(a=dZb(this).displayValues)?void 0:a[0])?b:null};hV.prototype.getTooltip=function(){var a;return(null!=(a=this.field.description)?a:"")+" [ID: "+this.field.customFieldId+"]"};
var HEa=function(a){return(a=dZb(a).getValue())&&void 0===a.values?a:null},KEa=function(a){return(a=dZb(a).getValue())&&void 0!==a.values?a.values:null};hV.\u0275fac=function(a){return new (a||hV)};
hV.\u0275cmp=w({type:hV,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&Hf(LU,5);if(a&2){var c;Gf(c=Jf())&&(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&&O(0,MEa,3,2,"ng-container",0);a&2&&D("ngIf",dZb(b))},dependencies:[ux,fV,LU],encapsulation:2});var iV=function(){};
iV.\u0275fac=function(a){return new (a||iV)};iV.\u0275mod=Cc({type:iV});iV.\u0275inj=mc({imports:[Mx,gV,MU]});
var jV=function(){this.mode="default";this.query="";this.selectComponentId=new Jw;this.expandComponent=new Jw;this.goBack=new Jw};jV.prototype.ngOnInit=function(){};jV.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};jV.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};jV.\u0275fac=function(a){return new (a||jV)};
jV.\u0275cmp=w({type:jV,selectors:[["component-row"]],inputs:{componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},decls:11,vars:8,consts:[[1,"container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"content"],[4,"ngIf","ngIfElse"],["leafOnly",""],["class","archived-indicator",4,"ngIf"],[3,"accessLevel","labelOnlyMode"],["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&&(F(0,"div",0),ze(1,1),O(2,NEa,2,0,"ng-container",2),O(3,OEa,3,0,"ng-container",2),O(4,PEa,3,2,"ng-container",3),Ae(),F(5,"div",4),O(6,UEa,2,1,"ng-container",
5),O(7,WEa,1,1,"ng-template",null,6,Pf),O(9,XEa,2,0,"span",7),H(10,"b-access-level-indicator",8),G()());if(a&2){var c=M(8);B(1);D("ngSwitch",b.mode);B(1);D("ngSwitchCase","recent");B(1);D("ngSwitchCase","tree");B(3);D("ngIf","leaf"!==b.mode)("ngIfElse",c);B(3);D("ngIf",b.componentOption.archived);B(1);D("accessLevel",null==b.componentOption.accessLimit?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",!0)}},dependencies:[yx,ux,Ax,Bx,Cx,rB,XE,lF,BS,oM,xM],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)}b-access-level-indicator[_ngcontent-%COMP%]{margin-left:4px}\n/*# sourceMappingURL=component_row.css.map */"]});
var eZb=0,kV=function(a,b){this.changeDetectorRef=a;this.elementRef=b;this.active=!1;this.id="b-component-picker-option-"+eZb;eZb+=1};kV.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};kV.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};kV.\u0275fac=function(a){return new (a||kV)(C(nx),C(wd))};
kV.\u0275dir=w({type:kV,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Ce("id",b.id),te("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});
var lV=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new Jw};lV.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};lV.prototype.ngOnInit=function(){};lV.\u0275fac=function(a){return new (a||lV)};
lV.\u0275cmp=w({type:lV,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&&(F(0,"div",0),O(1,YEa,1,1,"img",1),F(2,"div",2),O(3,$Ea,4,5,"div",3),O(4,hFa,2,1,"div",4),G()());a&2&&(te("no-component",b.hasNoComponent)("compact",b.compact),B(1),D("ngIf",!b.compact),B(2),D("ngIf",!b.compact),B(1),D("ngIf",b.teamOption.pathNames&&b.teamOption.pathNames.length))},dependencies:[yx,ux,oM],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 fZb=["primaryValueBar"],gZb=ki(function(a){this._elementRef=a},"primary"),hZb=new sd("mat-progress-bar-location",{providedIn:"root",factory:lFa}),iZb=new sd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),jZb=0,mV=function(a,b,c,d,e,f){a=gZb.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 Jw;a._animationEndSubscription=U.Subscription.EMPTY;a.mode="determinate";a.progressbarId="mat-progress-bar-"+jZb++;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};V(mV,gZb);mV.prototype._primaryTransform=function(){return{transform:"scale3d("+this.value/100+", 1, 1)"}};mV.prototype._bufferTransform=function(){return"buffer"===this.mode?{transform:"scale3d("+this.bufferValue/100+", 1, 1)"}:null};
mV.prototype.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,U.fromEvent)(b,"transitionend").pipe(xf(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})}))})})};mV.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()};
ji.Object.defineProperties(mV.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this._value},set:function(a){this._value=Math.max(0,Math.min(100,eh(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()}}});
mV.\u0275fac=function(a){return new (a||mV)(C(wd),C(qg),C(Xv,8),C(hZb,8),C(iZb,8),C(nx))};
mV.\u0275cmp=w({type:mV,selectors:[["mat-progress-bar"]],viewQuery:function(a,b){a&1&&Hf(fZb,5);if(a&2){var c;Gf(c=Jf())&&(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&&(oe("aria-valuenow","indeterminate"===b.mode||"query"===b.mode?null:b.value)("mode",b.mode),te("_mat-animation-noopable",b._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",
mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ie],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&&(F(0,"div",0),Uc(),F(1,"svg",1)(2,"defs")(3,"pattern",2),H(4,"circle",3),G()(),H(5,"rect",4),G(),Vc(),H(6,"div",5)(7,"div",6,7)(9,"div",8),G());a&2&&(B(3),D("id",b.progressbarId),B(2),oe("fill",b._rectangleFillValue),B(1),D("ngStyle",b._bufferTransform()),B(1),D("ngStyle",b._primaryTransform()))},dependencies:[Dx],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 kZb=["container"],lZb=["inputBox"],mZb=["dropdownTemplate"],nZb=["dropdown"],yFa=function(a){return{mode:"recent",$implicit:a}},DFa=function(a){return[a]},CFa=function(a,b){return{team:a,level:0,order:b}},JFa=function(a){return{mode:"default",$implicit:a}},MFa=function(a){return[0,a]},TFa=function(){return[0]},WFa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},bGa=function(a){return{mode:"leaf",$implicit:a}},gGa=function(a,b,c){return{team:a,level:b,order:c}},oV=function(a,b,c,
d,e,f,h,k,q,u){yI.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.cdr=u;this.placeholder="";this.includeArchived=this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=!1;this.accessCheckComplete=new Jw;this.shouldFocus=!1;this.touched=new Jw;this.selectedComponentChange=new Jw;this.dropdownClosed=new Jw;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();
this.searchState=new nV(this.userApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeArchived:this.includeArchived,includeTeamData:!this.isExternal});this.componentLoading=this.isDropdownOpen=!1};V(oV,yI);oV.\u0275dir=yI.\u0275dir;
oV.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent);this.searchState.componentIdSelected$.pipe(jg(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;oZb(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});(0,U.merge)(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(jg(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
oV.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var oZb=function(a){if(a.selectedComponent){var b=ip(a.selectedComponent);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},pZb=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=oV.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(oZb(this),this.checkAdminAccess&&this.selectedComponent&&qZb(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();yI.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Xz(Yz(new eA(this.listOptions)));this.searchState.listUpdated$.pipe(jg(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(jg(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(vGa);b=[].concat(v(c),v(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&&lp(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),Zn(this.analytics,ao.COMPONENT_PICKER,"close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var rZb=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};
oV.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),pZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||dA(d);pZb(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),pZb(this)):(this.open(),setTimeout(function(){var d;null==(d=b.keyManager)||cA(d);pZb(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?lp(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(),QFa(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?PFa(this.searchState,this.keyManager.activeItem.data):sZb(this.searchState));"component_scope"===this.searchState.state$.value&&(a.preventDefault(),YFa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(lp(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var jp=function(a){a.preventDefault();a.stopPropagation()},qZb=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;gK(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=oV.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new zA({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 NA(this.dropdownTemplateRef,this.viewContainerRef),b;null==(b=this.dropdownOverlayRef)||b.attach(a);var c;null==(c=this.dropdownOverlayRef)||c.updatePosition()};
g.getPositionStrategy=function(){return CA(FA(EA(KA(this.overlay.position(),this.container),!1),!1),tZb)};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))};oV.\u0275fac=function(a){return new (a||oV)(C(TA),C(Ef),C(YK),C(iT),C(ZL),C(fK),C(GK),C(FM),C(yH),C(nx))};
oV.\u0275cmp=w({type:oV,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(Hf(kZb,7),Hf(lZb,7),Hf(mZb,7),Hf(nZb,5),Hf(kV,5));if(a&2){var c;Gf(c=Jf())&&(b.container=c.first);Gf(c=Jf())&&(b.inputBox=c.first);Gf(c=Jf())&&(b.dropdownTemplateRef=c.first);Gf(c=Jf())&&(b.dropdown=c.first);Gf(c=Jf())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",includeArchived:"includeArchived",ariaLabel:"ariaLabel",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",
shouldFocus:"shouldFocus"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},features:[ie,Jc],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 query",3,"mousedown",4,"ngIf"],[4,"ngIf"],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["mat-icon-button","","tabindex","-1","matTooltip","Clear query",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&&(F(0,"div",0,1)(2,"input",2,3),J("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()}),Q(4,"async"),G(),O(5,mFa,2,0,"button",4),G(),O(6,qFa,4,2,"div",5),O(7,dGa,11,8,"ng-template",null,6,Pf),O(9,jGa,5,11,"ng-template",null,7,Pf),O(11,uGa,3,2,"ng-template",null,8,Pf));if(a&2){var c=M(3);B(2);D("ngModel",
R(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired);oe("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",rZb(b));B(3);D("ngIf",c.value);B(1);D("ngIf",b.checkAdminAccess)}},dependencies:[yx,ux,Ex,Ax,Bx,Cx,Qg,by,sy,hy,rB,XE,$H,lF,mV,lV,jV,kV,Fx],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 #dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid #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 tZb=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nV=function(a,b,c,d,e,f){var h=this;this.userApi=a;this.componentActions=b;this.teamsService=c;this.analytics=d;this.destroyed$=e;this.config=f;this.searchQuery$=new U.BehaviorSubject("");this.debouncedSearchQuery$=this.searchQuery$.pipe(Tf(250));this.state$=new U.BehaviorSubject("default");this.listUpdated$=new U.Subject;this.componentsLoading=this.teamsLoading=
!1;this.teamScope$=new U.BehaviorSubject(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.recentComponents=[];this.myTeams$=new U.BehaviorSubject([]);this.showAllTeams$=new U.BehaviorSubject(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(Wf());this.teamOptions$=new U.BehaviorSubject([]);this.filteredTeamOptions$=(0,U.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(S(function(k){k=r(k);var q=k.next().value;return k.next().value?
q:q.slice(0,5)}));this.hasHiddenTeams$=(0,U.combineLatest)([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(S(function(k){var q=r(k);k=q.next().value;q=q.next().value;return 5<k.length&&!q}));this.newChildTeams$=new U.BehaviorSubject([]);this.teamsDisplayed$=(0,U.merge)(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(S(function(k){return k?[k]:[]}))).pipe(S(function(k){return k.map(function(q){return q.id})}));this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(S(function(k){return k.filter(function(q){return!h.childTeamsMap.has(q)})}),
xf(function(k){return 0<k.length}),ig(function(k){return h.teamsService.getChildTeams(k)}),S(kFa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(S(function(k){return k.filter(function(q){return!h.componentCountMap.has(q)})}),xf(function(k){return 0<k.length}),ig(function(k){return NKb(h.teamsService,k)}));this.componentIdSelected$=new U.ReplaySubject(1);this.lastProcessedIndex=-1;this.requestIndex=0};
nV.prototype.init=function(a){var b=this;a=void 0===a?!1:a;uZb(this);(0,U.combineLatest)([this.debouncedSearchQuery$.pipe(gg(a?1:0)),this.state$]).pipe(jg(this.destroyed$)).subscribe(function(c){var d=r(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.config.includeTeamData&&vZb(b,c),wZb(b,c)):b.state$.next("default"):"team_scope"===d?b.teamScope$.value&&(b.teamOptions$.next([]),
wZb(b,"teamid:"+b.teamScope$.value.id+" "+c)):"component_scope"===d&&b.componentScope&&xZb(b,b.componentScope.id)});this.debouncedSearchQuery$.pipe(lg(this.state$),jg(this.destroyed$)).subscribe(function(c){c=r(c);var d=c.next().value;"component_scope"===c.next().value&&b.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(jg(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.childTeamsMap.set(d,
e)}});this.unseenTeamComponentCountMap$.pipe(jg(this.destroyed$)).subscribe(function(c){c=r(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;b.componentCountMap.set(d,e)}})};
var uZb=function(a){a.componentsLoading=!0;a.userApi.getRecentComponents().then(function(b){b=b.map(ip);a.recentComponents=b;a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1});a.config.includeTeamData&&(a.teamsLoading=!0,$L(a.teamsService,"").pipe(jg(a.destroyed$)).subscribe(function(b){a.myTeams$.next(b.getTeamSuggestionsList().map(iFa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
nV.prototype.selectOption=function(a){"component"===a.type?lGa(this,a.id):"team"===a.type?tFa(this,a):console.warn("invalid option selected")};
var lGa=function(a,b){var c=yZb(a);Zn(a.analytics,ao.COMPONENT_PICKER,"autocomplete-select",c);a.componentIdSelected$.next(b);a.state$.next("global")},yZb=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""};
nV.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var ZFa=function(a,b){a.componentActions.get(b).then(function(c){a.componentScope=ip(c);a.state$.next("component_scope")})},YFa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},tFa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||kp(a,b.id)},kp=function(a,b){a.teamsLoading=!0;$L(a.teamsService,b).pipe(jg(a.destroyed$)).subscribe(function(c){c=c.getTeamSuggestionsList().map(iFa);
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})},sZb=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(2>a.teamScope$.value.pathIds.length)){var b=a.teamScope$.value.pathIds;kp(a,b[b.length-2])}};nV.prototype.getChildTeams=function(a){var b;return null!=(b=this.childTeamsMap.get(a))?b:[]};
nV.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?0===this.componentCountMap.get(a):!1};
var PFa=function(a,b){b.expanded=!1;a.listUpdated$.next()},QFa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},lp=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},vZb=function(a,b){1<b.length&&(a.teamsLoading=!0,$L(a.teamsService,b).pipe(jg(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.getTeamSuggestionsList().map(iFa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},wZb=function(a,
b){if(1<b.length){a.componentsLoading=!0;var c=a.requestIndex++;a.componentActions.search(b,a.config.includeArchived).then(function(d){c>a.lastProcessedIndex&&(a.lastProcessedIndex=c,a.componentOptions=d.map(ip));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},xZb=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(ip),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})};
var pV=function(){};pV.\u0275fac=function(a){return new (a||pV)};pV.\u0275mod=Cc({type:pV});pV.\u0275inj=mc({imports:[Mx,XA,XA]});
var qV=function(){};qV.\u0275fac=function(a){return new (a||qV)};qV.\u0275mod=Cc({type:qV});qV.\u0275inj=mc({imports:[Mx,wy,uG,pF,eI,mH,pV,WA,SA,Qz,zM,MS]});
var rV=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new Jw;this.filter=function(){return!0}};rV.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};rV.\u0275fac=function(a){return new (a||rV)};
rV.\u0275cmp=w({type:rV,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&&(F(0,"div",0)(1,"div",1),P(2," First, select a component that contains the custom field. "),G(),F(3,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)}),G(),O(4,AGa,4,3,"div",3),G());a&2&&(B(3),D("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(1),D("ngIf",b.selectedComponent))},dependencies:[yx,ux,eC,bC,GS,nB,
oV],encapsulation:2});var sV=function(){};sV.\u0275fac=function(a){return new (a||sV)};sV.\u0275mod=Cc({type:sV});sV.\u0275inj=mc({imports:[Mx,HS,qV]});
var zZb=function(a){return{value:a}},tV=function(){this.isNonemptyJsonDateValue=Jpa};tV.prototype.toDate=function(a){return Ok(a)};tV.\u0275fac=function(a){return new (a||tV)};
tV.\u0275cmp=w({type:tV,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&&(F(0,"span",0),O(1,BGa,1,0,"ng-container",1),G(),O(2,CGa,0,0,"ng-template",null,2,Pf),O(4,PGa,8,8,"ng-template",null,3,Pf));if(a&2){var c=M(5);B(1);D("ngTemplateOutlet",
null==b.customFieldValue?null:c)("ngTemplateOutletContext",Oe(2,zZb,b.customFieldValue))}},dependencies:[yx,ux,Ex,vP],encapsulation:2});var uV=function(){};uV.\u0275fac=function(a){return new (a||uV)};uV.\u0275mod=Cc({type:uV});uV.\u0275inj=mc({imports:[Mx,PP]});
var CZb=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.userEmail=a;this.origIssues=b;this.comment=new HR;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";AZb(this,b);BZb(this,b)},AZb=function(a,b){var c=b[0],d=vn[c.status],e=c.duplicateOfIssueId;
if(d)for(b.every(function(f){return"DUPLICATE"===f.status&&e===f.duplicateOfIssueId})&&e&&(a.commonDuplicateOf=e.toString(),a.origCommonDuplicateOf=e.toString()),c=1;c<b.length;c++)if(b[0].status!==b[c].status){d=void 0;break}a.issueState=d;a.origCommonIssueState=d},DZb=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||Gn(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},BZb=function(a,b){var c=b.map(function(d){return d.assigneeEmail});
b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=DZb(c);a.selectedVerifiersStatus=DZb(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])};CZb.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;jIa(this)};
CZb.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var Gp=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},fIa=function(a,b){(a.origCommonIssueState=b)?("NEW"===b.status?EZb(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||EZb(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),EZb(a.selectedVerifiersStatus)||a.commonVerifier||"VERIFIED"!==b.status||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},EZb=function(a){return"MULTIPLE"===a||"POSSIBLY_MULTIPLE"===a},jIa=function(a){var b=vn.NEW,c=vn.ASSIGNED;a.issueState===b&&a.commonAssignee?a.issueState=a.origCommonIssueState===b?c:a.origCommonIssueState:a.commonAssignee||a.issueState&&!JJb.has(a.issueState)||(a.issueState=b)},FZb=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},tIa=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);FZb(a)&&b.set("status",a.issueState.status);a.comment.value&&b.set("comment",a.comment.value);return b};
var GZb=function(a){this.uploadUrl_=a};GZb.prototype.getUploadUrl=function(){return this.uploadUrl_};
var HZb=function(){Jo.call(this)};Wt(HZb,Jo);var vV=function(a){OC.call(this,a)};Wt(vV,OC);var wV=function(a){OC.call(this,a)};Wt(wV,OC);
var IZb=function(a,b){this.name_=a;this.inputElement_=b};IZb.prototype.getName=function(){return this.name_};
var JZb=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!1};
var xV=function(){Jo.call(this);this.name_="closure_frame"+KZb++;this.iframesForDisposal_=[];LZb[this.name_]=this},yV;Wt(xV,Jo);var LZb={},KZb=0,MZb=function(a,b){var c=So(a);hAb(b,function(d,e){Array.isArray(d)||(d=[d]);ta(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=xV.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("ae");this.lastUri_=a=new Xo(a);b=b?b.toUpperCase():"GET";c&&UG(a,"zx",pC());yV||(yV=Msb("FORM"),yV.acceptCharset="utf-8",c=yV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(yV));this.form_=yV;"GET"==b&&MZb(this.form_,a.queryData_);d&&MZb(this.form_,d);zrb(this.form_,uh(a.toString()));this.form_.method=b;NZb(this);OZb(this)};
g.abort=function(a){if(this.active_){var b=zV(this);if(b)if(UC(b))b.removeAllListeners();else if(b=ZC(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)aD(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");PZb(this)}};
g.disposeInternal=function(){this.active_&&this.abort();xV.superClass_.disposeInternal.call(this);this.iframe_&&QZb(this);OZb(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete LZb[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 hub(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return nub(this.lastErrorCode_)};
var NZb=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=So(a.form_).createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});$t&&7>Number(eu)&&zrb(a.iframe_,uh(oh(vo('javascript:""'))));var b=a.iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";cu?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");if($t&&!fu("11")){a.form_.target=a.iframeName_||"";So(a.form_).document_.body.appendChild(a.iframe_);
Ko(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a);try{a.errorHandled_=!1,a.form_.submit()}catch(I){$C(a.iframe_,"readystatechange",a.onIeReadyStateChange_,!1,a),a.handleError_(1)}}else{So(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=pD(a.iframe_);if(document.baseURI){var d=Kj(b);d=qh('<head><base href="'+Kj(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Kj(b),d=qh('<body><iframe id="'+d+'" name="'+d+'"></iframe>');
c.write(Lj(d));Ko(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=gD("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];Ssb(d[e],k,!1);k.join("")!=h&&(qD(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=gD("SELECT",a.form_);f=gD("SELECT",d);h=0;for(k=e.length;h<k;h++)for(var q=gD("OPTION",e[h]),u=gD("OPTION",f[h]),x=0,E=q.length;x<E;x++)u[x].selected=q[x].selected;e=gD("INPUT",a.form_);f=gD("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(),bu&&zD(a.testForFirefoxSilentError_,250,a)}catch(I){$C(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}}};
xV.prototype.onIeReadyStateChange_=function(){if("complete"==this.iframe_.readyState){$C(this.iframe_,"readystatechange",this.onIeReadyStateChange_,!1,this);try{var a=pD(this.iframe_);if($t&&"about:blank"==a.location&&!navigator.onLine){this.handleError_(9);return}}catch(b){this.handleError_(1);return}RZb(this,a)}};xV.prototype.onIframeLoaded_=function(){$C(zV(this),"load",this.onIframeLoaded_,!1,this);try{RZb(this,this.iframe_?pD(zV(this)):null)}catch(a){this.handleError_(1)}};
var RZb=function(a,b){a.complete_=!0;a.active_=!1;try{var c=b.body;a.lastContent_=c.textContent||c.innerText}catch(e){var d=1}d||"function"!=typeof a.errorChecker_||(b=a.errorChecker_(b))&&(d=4);d?a.handleError_(d):(a.success_=!0,a.lastErrorCode_=0,a.dispatchEvent("complete"),a.dispatchEvent("success"),PZb(a))};
xV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),PZb(this),this.errorHandled_=!0)};
var PZb=function(a){QZb(a);OZb(a);a.form_=null;a.dispatchEvent("ready")},QZb=function(a){var b=a.iframe_;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(AD(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);bu?a.iframeDisposalTimer_=zD(a.disposeIframes_,2E3,a):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
xV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(AD(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;0!=this.iframesForDisposal_.length;){var a=this.iframesForDisposal_.pop();nD(a)}};var OZb=function(a){a.form_&&a.form_==yV&&mD(a.form_)},zV=function(a){return a.iframe_?$t&&!fu("11")?a.iframe_:pD(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
xV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?pD(zV(this)):null;a&&!Sib(a,"documentUri")?($C(zV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):zD(this.testForFirefoxSilentError_,250,this)}};
var SZb=function(a,b,c,d,e){Jo.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 Xo(a);UG(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new xV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new ZG(this);NC(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};V(SZb,HZb);g=SZb.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("ae");var c=new Xo(this.url_||b.action);a.lastUri_=c;a.form_=b;zrb(a.form_,c.toString());NZb(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 vV("m"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new vV("j"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new vV("l"))};
var VZb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=TZb[a.name]):(this.code=a=a.code,this.name=UZb(a));ba.call(this,Drb("%s %s",this.name,b))};Wt(VZb,ba);
var UZb=function(a){var b=mja(TZb,function(c){return a==c});if(void 0===b)throw Error("be`"+a);return b},AV={},TZb=(AV.AbortError=3,AV.EncodingError=5,AV.InvalidModificationError=9,AV.InvalidStateError=7,AV.NotFoundError=1,AV.NotReadableError=4,AV.NoModificationAllowedError=6,AV.PathExistsError=12,AV.QuotaExceededError=10,AV.SecurityError=2,AV.SyntaxError=8,AV.TypeMismatchError=11,AV);
var WZb=function(a,b){OC.call(this,a.type,b);this.event_=a};Wt(WZb,OC);
var XZb=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};
var RGa=new WeakMap,QGa=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")};
mp(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0});var YZb=mp(function(){if(!da.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===XZb(b,0,1)?!1:!0});
var ZZb=function(){Jo.call(this);this.reader_=new FileReader;this.reader_.onloadstart=St(this.dispatchProgressEvent_,this);this.reader_.onprogress=St(this.dispatchProgressEvent_,this);this.reader_.onload=St(this.dispatchProgressEvent_,this);this.reader_.onabort=St(this.dispatchProgressEvent_,this);this.reader_.onerror=St(this.dispatchProgressEvent_,this);this.reader_.onloadend=St(this.dispatchProgressEvent_,this)};Wt(ZZb,Jo);g=ZZb.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new VZb(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new VZb(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new WZb(a,this))};g.disposeInternal=function(){ZZb.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 $Zb=function(a){var b=new gS;a.listen("loadend",Tt(function(c,d){var e=d.reader_.result,f=d.getError();null==e||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};
var BV=function(){VD.call(this)};V(BV,VD);BV.prototype.createXhr=function(){var a=VD.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=St(this.onProgress_,this));return a};BV.prototype.onProgress_=function(a){this.dispatchEvent(a)};
var a_b=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},c_b=function(a,b){var c=a.attempt_+1;if(0<a.maxAttempts_&&c>a.maxAttempts_)return!1;0==c?b():a.delayCallId_=zD(function(){a.delayCallId_=null;b()},b_b(a),a);a.attempt_=c;return!0};a_b.prototype.reset=function(){this.delayCallId_&&AD(this.delayCallId_);this.attempt_=-1};var b_b=function(a){var b=250*Math.pow(2,a.attempt_);0<=a.maxDelayMs_&&(b=Math.min(b,a.maxDelayMs_));return b};
var UGa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];
var CV=function(a){Jo.call(this);a=a||new JZb;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new a_b;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorDescription_=null;this.eventHandler_=new ZG(this);NC(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};Wt(CV,HZb);g=CV.prototype;g.run=function(){DV(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 vV("m"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;"Paused"===this.state_&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,d_b(this))};
var DV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):c_b(a.retryIterator_,function(){return d_b(a)})||EV(a,"Transfer encountered too many consecutive failures.")},d_b=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.getUploadUrl(),c=a.blob_.size;if(YZb()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=XZb(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=St(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new wV("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("ce");
}},EV=function(a,b){a.state_="Error";a.errorDescription_=b;a.dispatchEvent(new vV("l"))};g=CV.prototype;
g.start_=function(){this.request_=this.createXhrRequest();var a=kh(this.headers_);null!=this.blob_.size&&(a["Content-Length"]=this.blob_.size);a=VGa(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 wV("o"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new wV("p"));e_b(b)?f_b(this,b):g_b(b)?(b=np(a.target.getAllResponseHeaders()),this.dispatchEvent(new vV("k")),a=op(b,"X-Goog-Upload-URL"),b=(b=op(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,void 0===a||isNaN(b)||0>=b?EV(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new GZb(a),this.dispatchEvent(new vV("n")),this.state_=
"Upload",this.retryIterator_.reset(),DV(this))):DV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new vV("i"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return hf(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new wV("p"));if(d.retryOnHttpClientErrorEnabled_?h_b(e)||404==e.getStatus():e_b(e))return d.bytesTransferred_=a,f_b(d,e),h.return();if(g_b(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return jf(h,i_b(d),4);case 4:f=h.yieldResult;case 3:if(f)return EV(d,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=400==e.getStatus();d.state_="Query";DV(d);return h.return();case 2:if(b)return EV(d,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();DV(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 wV("o"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new wV("p"));e_b(b)?(200===b.getStatus()&&(this.bytesTransferred_=this.blob_.size),f_b(this,b)):g_b(b)?(a=np(a.target.getAllResponseHeaders()),a=parseInt(op(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?EV(this,"Server did not respond with current offset."):a<this.offset_?EV(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?EV(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",DV(this))):DV(this)};
var f_b=function(a,b){a.responseCode_=b.getStatus();var c=np(b.getAllResponseHeaders());a.responseHeaders_=WGa(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new vV("j"))},g_b=function(a){var b=a.getStatus();a=np(a.getAllResponseHeaders());a=op(a,"X-Goog-Upload-Status");return 200===b&&"active"===a},h_b=function(a){a=np(a.getAllResponseHeaders());return"final"===op(a,"X-Goog-Upload-Status")},e_b=function(a){if(h_b(a))return!0;a=a.getStatus();return 400<=a&&500>
a},i_b=function(a){var b;return hf(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);It(c,2);if(b=XZb(a.blob_,0,1)){var d=new ZZb,e=$Zb(d);d.readAsBinaryString(b);c=jf(c,e,4)}else c=c.return(!0);return c}if(2!=c.nextAddress)return c.return(a.blob_.size!==a.originalBlobSize_);Kt(c);return c.return(!0)})};CV.prototype.createXhrRequest=function(){return new BV};
var j_b=function(a,b,c,d,e,f){Jo.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 Ji;this.boundary_="scotty-"+pC()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new ZG(this);NC(this,this.eventHandler_)};V(j_b,HZb);g=j_b.prototype;
g.run=function(){var a=kh(this.headers_);null!=this.payload_.length&&(a["Content-Length"]=this.payload_.length);a=VGa(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 vV("m")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new vV("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 vV("l"))):(this.responseCode_=b,a=a.target,b=np(a.getAllResponseHeaders()),this.responseHeaders_=WGa(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new vV("j")))};
g.createXhrRequest=function(){return new BV};
var k_b=function(){},l_b=function(a,b,c,d,e){e=void 0===e?!1:e;if(c instanceof IZb)return new SZb(a,"POST",b,c.inputElement_,d);if("string"===typeof c||c instanceof String)return new j_b(a,"POST",b,c,d);var f=new CV(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 m_b=new sd("ScottyUploaderConfigFactory"),n_b=new sd("ScottyUploader",{factory:function(){return new k_b}}),FV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new U.Subject;this.transferStatus=tmb(this.internalTransferStatus)};
FV.prototype.upload=function(a,b){var c=this;b=void 0===b?this.configFactory.create(a):b;a=l_b(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=(0,U.merge)((0,U.fromEvent)(a,"k"),(0,U.fromEvent)(a,"i"),(0,U.fromEvent)(a,"n"),(0,U.fromEvent)(a,"l"),(0,U.fromEvent)(a,"j"),(0,U.fromEvent)(a,"m")).pipe(jg((0,U.fromEvent)(a,"j").pipe(Vf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});
a.run()};FV.\u0275fac=function(a){return new (a||FV)(t(n_b),t(m_b))};FV.\u0275prov=lc({token:FV,factory:FV.\u0275fac});
var o_b=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};o_b.prototype.getDirectory=function(a){return this.directoryMap_[a]};o_b.prototype.getName=function(){return this.name_};
var q_b=function(a,b,c){b=void 0===b?"single_file":b;c=void 0===c?[]:c;Jo.call(this);this.overlayTarget_=a;this.parentOverlay_=null!=a?a.parentNode:Ij(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=p_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};V(q_b,Jo);
var p_b=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Ko(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),Nq(e,new Kq(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};q_b.prototype.click=function(){this.overlay_.click()};
q_b.prototype.onFilesSelected_=function(a){a:{try{var b=void 0!==(new XMLHttpRequest).upload;break a}catch(u){}b=!1}if(b){a=a.target.files;b=[];if("single_directory"===this.selectorType_&&(cu||au)){b=new o_b("");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 o_b(k),f.directoryMap_[k.getName()]=
k,f.directories_.push(k));f=q}b=b.directories_}this.dispatchEvent(new r_b(a,b,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new r_b([],[],new IZb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=p_b(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var s_b={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},r_b=function(a,b){OC.call(this,"s");this.files=a;this.directories=b};V(r_b,OC);
var GV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new U.ReplaySubject(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new Jw;this.maxFileSize=null;this.fileSizeRejected=new Jw;this.fileSelected=new Jw};
GV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(ig(function(b){return(0,U.merge)((0,U.fromEvent)(b,"q"),(0,U.fromEvent)(b,"s"))}),jg(this.destroyed)).subscribe(function(b){a.ngZone.run(function(){a:{if(a.supportedFileExtensions){var c=r(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=r(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)})})};GV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};GV.\u0275fac=function(a){return new (a||GV)(C(wd),C(qg))};GV.\u0275dir=w({type:GV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected"}});
var HV=function(a,b){GV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};V(HV,GV);
HV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return(0,U.merge)((0,U.fromEvent)(a.elementRef.nativeElement,"mouseover"),(0,U.fromEvent)(a.elementRef.nativeElement,"focus")).pipe($f(),jg(a.destroyed),S(function(){a.fileSelectorOverlay=new q_b(a.elementRef.nativeElement,a.selectorType,t_b(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),fg(1))}));return this.overlay};
HV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};var t_b=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};HV.\u0275fac=function(a){return new (a||HV)(C(wd),C(qg))};HV.\u0275dir=w({type:HV,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[ie]});var IV=function(a,b,c){HV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};V(IV,HV);
IV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(jg(this.destroyed),xf(function(){return!a.disableAutoUpload})).subscribe(function(b){b=r(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)}})};ji.Object.defineProperties(IV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=bh(a)}}});
IV.\u0275fac=function(a){return new (a||IV)(C(wd),C(qg),C(FV,8))};IV.\u0275dir=w({type:IV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[ie]});
var JV=function(a){this.snackBar=a;this.SelectorType=s_b;this.disabled=!1;this.onSelect=new Jw};JV.\u0275fac=function(a){return new (a||JV)(C(pK))};
JV.\u0275cmp=w({type:JV,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&&(F(0,"div",0)(1,"button",1),J("fileSelected",function(c){if(c=c.files){c=r(c);for(var d=
c.next();!d.done;d=c.next())d=d.value,null!=d&&d.name&&Rxa(d.name)?b.onSelect.emit(d):b.snackBar.open("Filename contains invalid characters!")}}),H(2,"mat-icon",2),G()());a&2&&(B(1),D("selectorType",b.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",b.disabled))},dependencies:[rB,XE,lF,IV],encapsulation:2});
var KV=function(a,b){GR.call(this,a.size,a.name);var c=this;this.destroyed$=new U.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(jg(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};V(KV,GR);KV.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.")};
KV.prototype.cancel=function(){var a,b;null==(a=this.transfer)||null==(b=a.cancel)||b.call(a);this.unsubscribe()};KV.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};
var LV=function(a){this.activeSession=a};
LV.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=lb(c);c=new Xo(null);return{url:UG(c.setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a.name},withCredentials:!0}};LV.\u0275fac=function(a){return new (a||LV)(t(yH))};LV.\u0275prov=lc({token:LV,factory:LV.\u0275fac,providedIn:"root"});var MV=function(a,b){this.uploader=a;this.uploaderConfigFactory=b};MV.prototype.create=function(){return new FV(this.uploader,this.uploaderConfigFactory)};MV.\u0275fac=function(a){return new (a||MV)(t(n_b),t(LV))};MV.\u0275prov=lc({token:MV,factory:MV.\u0275fac,providedIn:"root"});
var $Ga=function(a){return{"attachment-error":a}},NV=function(a){this.scottyUploaderFactory=a;this.uploads=[];this.onUploadCancel=new Jw;this.uploadStates=LQb};NV.prototype.ngOnDestroy=function(){for(var a=r(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};NV.prototype.upload=function(a){var b=this.scottyUploaderFactory.create();b.upload(a);return new KV(a,b.transferStatus)};NV.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};
NV.\u0275fac=function(a){return new (a||NV)(C(MV))};
NV.\u0275cmp=w({type:NV,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&&O(0,bHa,2,1,"div",0);a&2&&D("ngIf",0<b.uploads.length)},dependencies:[xx,yx,ux,XE,lF,vM],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 u_b=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 v_b=function(a){GR.call(this,a.size,a.name);this.attachment=a};V(v_b,GR);
var w_b=function(a,b){a.attachment.encryptedBlobId?(a.state=1,IQb(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=Zm(c)?$m(c):"Error while uploading."})):(a.state=3,a.errorMessage="Error while uploading.")};
var OV=function(a){this.id_=a;this.opts={}};g=OV.prototype;g.setLabel=function(a){this.label_=a||void 0;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=hh(this.opts,function(c){return null!==c});a=ih(a)?null:a;a=[this.id_,this.label_,a];var b=jaa(a);return a=a.slice(0,b+1)};g.toString=function(){var a=this.toArray();return"("+Zt(a,function(b){return QD(b)}).join(",")+")"};g.getId=function(){return this.id_};
g.getLabel=function(){return this.label_};g.getOptions=function(){return kh(this.opts)};g.getQuery=function(){return this.opts.query};
var PV=function(a){OV.call(this,a||"all")};Wt(PV,OV);var x_b=function(){var a=(new PV("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=PV.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){void 0!==a?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setStarred=function(a){this.opts.starred=a};g.setLabel=function(a){PV.superClass_.setLabel.call(this,a);return this};
g.setQuery=function(a){PV.superClass_.setQuery.call(this,a);return this};g.setParent=function(a){PV.superClass_.setParent.call(this,a)};
var G_b=function(a,b){switch(a[0].getId().getSourceId()){case 13:return y_b(a,b);case 3:return z_b(a,b);case 10:return A_b(a,b,"upload");case 12:return B_b(a,b);case 2:return C_b(a,b);case 5:return D_b(a,b);case 9:return E_b(a,b);case 1:return mj(a[0],26)?F_b(a,b):A_b(a,b,"webcam");default:return{}}},C_b=function(a,b){a=a.map(function(c){var d=void 0;bj(m(c,Tu,21),12)&&(d="success");return{id:c.getId().getId(),serviceId:"docs",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),lastEditedUtc:c.getLastModifiedTimestamp().toDate().getTime(),
url:c.getUrl(),sizeBytes:fj(c,23),description:c.getDescription(),iconUrl:c.getIconUrl(),thumbnails:QV(Vu(c)),isShared:bj(m(c,Tu,21),1),downloadUrl:W(m(c,Tu,21),10),embedUrl:W(c,13),copyable:bj(m(c,Tu,21),9),resourceKey:m(c,Tu,21).getResourceKey(),uploadState:d}});return{action:b,docs:a,viewToken:RV("all","",{}),view:"all"}},D_b=function(a,b){a=a.map(function(c){var d=m(m(c,Ru,15),Fu,1);ru(c,10,Fu,d);return{id:c.getId().getId(),serviceId:"web",mimeType:c.getMimeType(),name:c.getName(),type:c.getType(),
url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:QV(Vu(c))}});return{action:b,docs:a,viewToken:RV("image-search","Search",{}),view:"image-search"}},E_b=function(a,b){a=a.map(function(c){return{serviceId:"url",name:Vu(c)[0].getUrl().split("/").pop(),type:"photo",mimeType:c.getMimeType(),url:c.getUrl(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:QV(Vu(c))}});
return{action:b,docs:a,viewToken:RV("url","By URL",{}),view:"url"}},F_b=function(a,b){a=a.map(function(c){return{id:c.getId().getId(),serviceId:"picasa",name:c.getName(),type:c.getType(),description:c.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:QV(Vu(c))}});return{action:b,docs:a,viewToken:RV("webcam","",{}),view:"webcam"}},A_b=function(a,b,c){var d=a.map(function(e){return{id:e.getId().getId(),serviceId:"photo",mimeType:e.getMimeType(),
name:e.getName(),type:e.getType(),sizeBytes:fj(e,23),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:QV(Vu(e))}});a=new Set(a.map(function(e){return e.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:d,viewToken:RV(c,"",a),view:c}},z_b=function(a,b){var c=a.map(function(d){return{id:d.getId().getId(),serviceId:"picasa",mimeType:d.getMimeType(),name:Vu(d)[0].getUrl().split("/").pop(),type:d.getType(),lastEditedUtc:d.getLastModifiedTimestamp().toDate().getTime(),
url:d.getUrl(),sizeBytes:fj(d,23),description:d.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:QV(Vu(d))}});a=new Set(a.map(function(d){return d.getType()}));a={allowedItemTypes:Array.from(a)};return{action:b,docs:c,viewToken:RV("photos","",a),view:"photos"}},y_b=function(a,b){var c=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:Vu(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:QV(Vu(e),"etjpg")}}),d={category:m(a[0],Mu,28).getCategory()};a=RV("et",W(m(a[0],Mu,28),2),d);return{action:b,docs:c,viewToken:a,view:"et"}},B_b=function(a,b){a=a.map(function(c){var d=ob(m(c,Lu,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"}},RV=function(a,b,c){return{0:a,1:b,2:c}},QV=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}})};
var H_b=function(){OV.call(this,"image-search")};V(H_b,OV);g=H_b.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){OV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OV.prototype.setParent.call(this,a)};
var I_b=function(){OV.call(this,"maps")};V(I_b,OV);g=I_b.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){OV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OV.prototype.setParent.call(this,a)};
var J_b=function(){OV.call(this,"photos")};V(J_b,OV);g=J_b.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){OV.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};g.setParent=function(a){OV.prototype.setParent.call(this,a)};g.removeDuplicates=function(){this.opts.rdv=!0;return this};
var SV=function(){OV.call(this,"url")};V(SV,OV);SV.prototype.setType=function(a){this.opts.type=a;return this};SV.prototype.setLabel=function(a){OV.prototype.setLabel.call(this,a);return this};SV.prototype.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};SV.prototype.setParent=function(a){OV.prototype.setParent.call(this,a)};
var TV=function(){OV.call(this,"video-search")};V(TV,OV);TV.prototype.setLabel=function(a){OV.prototype.setLabel.call(this,a);return this};TV.prototype.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};TV.prototype.setParent=function(a){OV.prototype.setParent.call(this,a)};
var UV=function(){OV.call(this,"web")};V(UV,OV);UV.prototype.setLabel=function(a){OV.prototype.setLabel.call(this,a);return this};UV.prototype.setQuery=function(a){OV.prototype.setQuery.call(this,a);return this};UV.prototype.setParent=function(a){OV.prototype.setParent.call(this,a)};
var VV=function(){this.root_=void 0;this.items_=[];this.opts={}},K_b=function(a){switch(a){case "image-search":return new H_b;case "maps":return new I_b;case "photos":return new J_b;case "url":return new SV;case "video-search":return new TV;case "web":return new UV}return new OV(a)};VV.prototype.addView=function(a){this.items_.push("string"===typeof a?K_b(a):a);return this};
var L_b=function(a){return"("+Zt(a.items_,function(b){return b.toString()}).join(",")+")"},M_b=function(a){a=hh(a.opts,function(b){return null!==b});return(a=ih(a)?null:a)?QD(ija(a,function(b){return b.toString()})):""};VV.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",L_b(this)],b=M_b(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return L_b(this)};
VV.prototype.toObject=function(){var a=Zt(this.items_,function(b){return b instanceof VV?b.toObject():b.toArray()});return this.root_?{root:this.root_.toArray(),items:a,options:this.getOptions()}:a};var N_b=function(a,b){b=void 0===b?[]:b;a.items_.forEach(function(c){c instanceof VV?N_b(c,b):b.push(c)});return b};VV.prototype.getOptions=function(){return kh(this.opts)};
var O_b=function(a){this.obj_=a};g=O_b.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 P_b=function(a){this.obj_=a||{}};g=P_b.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 Q_b=function(a){a.obj_.attributes=a.obj_.attributes||{};return new O_b(a.obj_.attributes)},jWb=function(a){return(a=a.obj_.timeout)?a:null};
var R_b=function(){P_b.apply(this,arguments)};V(R_b,P_b);
var S_b=uo(vo("https://apis.google.com/js/api.js")),W_b=function(a,b){var c=!1,d=T_b(a,b).then(function(f){c=!0;return f}),e=ztb(5E3).then(function(){return c?T_b(a,b):U_b(b).then(function(f){return V_b(f,a)})});return ltb([d,e])},T_b=function(a,b){return X_b(b).then(function(c){return V_b(c,a)})},V_b=function(a,b){var c=Mi(b,"gapi.")?b.slice(5):b;return a[c]?wD(a[c]):new vD(function(d,e){var f=zD(function(){e(Error("de"))},3E4);a.load(b,{callback:function(){AD(f);d(a[c])},onerror:function(h){AD(f);
e(h)}})})},X_b=function(a){return a.gapi&&a.gapi.load?wD(a.gapi):U_b(a)},U_b=function(a){return DAa(S_b,{document:a.document}).then(function(){return a.gapi})},Y_b=function(){};Y_b.prototype.load=function(a,b){b=void 0===b?window:b;var c=Date.now();return W_b(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 Z_b=function(){MC.call(this);this.gapiLoader_=new Y_b;this.origin_=null;this.gapiPickerIframeResolver_=ntb();this.gapiIframesResolver_=ntb();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};V(Z_b,MC);
var $_b=function(a,b){var c=Fo("gapi.iframes",b);return c?(a=Date.now(),wD({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},a0b=function(a,b,c,d,e,f){var h=!0;h=void 0===h?!1:h;$_b(a,lD(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var u=k.resolve,x=h;x=void 0===x?!1:x;var E={};E["host-message-handler"]=c;a.hostMessageHandlerInternal_=E;var I=WG(d);I=WG(I);I=OG(hv(iv(new Xo,I.scheme_),I.getDomain()),
I.port_).toString();a.origin_=I;I=(new R_b).setUrl(d);I.obj_.where=b;I.obj_.allowPost=x;I.obj_.messageHandlers=E;x=Fo("makeWhiteListIframesFilter",q)([a.origin_]);I.obj_.messageHandlersFilter=x;null!=e&&I.setId(e);null!=f&&(I.obj_.rpctoken=f);Q_b(I).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");Q_b(I).value().allow="camera";q=q.getContext().openChild(I.value());u.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});return a.gapiPickerIframeResolver_.promise},
b0b=function(a,b){return ktb([a.gapiIframesResolver_.promise,a.gapiPickerIframeResolver_.promise]).then(function(c){var d=r(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,Fo("makeWhiteListIframesFilter",c)([a.origin_])):gtb(Error("ee"))})};Z_b.prototype.disposeInternal=function(){c0b(this);MC.prototype.disposeInternal.call(this)};var c0b=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};
var d0b=function(){this.nextId_=0};
var e0b=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]]),f0b=new Set("all docs-images docs-images-and-videos docs-videos documents drawings folders forms pdfs presentations scripts sites spreadsheets tables".split(" ")),i0b=function(a,b,c,d){var e=Zkb(Ykb((new gv).setHost(20),a));a=[];try{for(var f=0;f<d.length;f++){var h=d[f],k=h[0],q=
h[1];switch(k){case "cropphoto":for(var u=(new dv).setId(2),x=new cv,E=r(Object.entries(q||{})),I=E.next();!I.done;I=E.next()){var N=r(I.value),L=N.next().value;N.next();switch(L){case "ctta":break;default:throw Error("fe`"+L+"`"+k);}}qu(u,3,ev,x);e.addPostProcessor(u);break;default:throw Error("ge`"+k);}}c.forEach(function(T,Y){switch(Y){case "hostId".toString():xl(e,24,T);break;case "origin".toString():xl(e,27,T);break;case "title".toString():e.setTitle(T);break;case "hl".toString():e.setLocale(T);
break;case "multiselectEnabled".toString():"true"==T&&(T=new fv,ul(T,1,1),Gb(e,3,T));break;case "authuser".toString():T=parseInt(T,10);if(isNaN(T))throw Error("he");e.setAuthUser((new Zu).setAuthUser(T));break;case "maxItems".toString():Vk(e,5,parseInt(T,10));break;case "profilePhoto".toString():e.setTitle("Select Profile Photo");T=e.addPostProcessor;Y=(new dv).setId(2);var ja=new cv;ja=fo(ja,2,!0);Y=qu(Y,3,ev,ja);T.call(e,Y);e.addPostProcessor((new dv).setId(1));break;case "gmailDelegatorId".toString():T=
(new Xu).setGmailDelegatorId(T);Gb(e,29,T);break;case "minSize".toString():e.setMinSize(g0b(T));break;case "maxSize".toString():e.setMaxSize(g0b(T));break;case "view".toString():T=/\("([^"]*)",.*\)/.exec(T);"upload"==(null!=T&&1<T.length?T[1]:"")?e.setInitialView(1):e.setInitialView(0);break;case "pp".toString():case "dff".toString():case "relayUrl".toString():case "parent".toString():case "navHidden".toString():case "nav".toString():case "protocol".toString():case "actions".toString():case "thumbs".toString():case "tt".toString():case "odv".toString():case "newDriveView".toString():case "cropMode".toString():case "maxSizeBytes".toString():case "selectButtonLabel".toString():case "grugl".toString():break;
default:throw Error("ie`"+Y);}});a=h0b(b,e)}catch(T){return null}return(new yv).setConfig(e).setSourceList(a)},g0b=function(a){var b=a.split("x");a=b[0];b=b[1];return(new $u).setWidth(parseInt(a,10)).setHeight(parseInt(b,10))},j0b=function(a){var b=a.getConfig().getBaseUrl();Xt(b,"/")||(b+="/");b=WG(b);b.setPath(b.getPath()+"home");UG(b,"req",a.serialize());return b.toString()},l0b=function(a,b){switch(a.action){case "select-contacts":a=k0b(a.contacts);break;case "visibility":a=a.visible;a=(new wv).setCommand(7).setVisible(a);
var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?b0b(b,a):wD()},k0b=function(a){if(!a||0==a.length)return null;var b=new wv;b.setCommand(11);var c=new d0b;a.forEach(function(d){if(d.email){var e=(new Uu).setName(d.name?d.name:d.email);var f=new Lu;d=tb(f,1,d.email);e=Gb(e,27,d).setId((new Eu).setId(":"+(c.nextId_++).toString(36)).setSourceId(12))}else e=null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a},h0b=function(a,b){var c=new Map,d=new av;N_b(a).forEach(function(e){var f=
new rp,h=e.getOptions(),k=e.getId();if(null!=k&&f0b.has(k)){switch(k){case "all":break;case "docs-images":bv(d,1);bv(d,6);break;case "docs-images-and-videos":bv(d,2);bv(d,1);bv(d,6);break;case "docs-videos":bv(d,2);bv(d,6);break;case "documents":bv(d,3);bv(d,6);break;case "drawings":bv(d,12);bv(d,6);break;case "folders":bv(d,6);break;case "forms":bv(d,7);bv(d,6);break;case "pdfs":bv(d,9);bv(d,6);break;case "presentations":bv(d,5);bv(d,6);break;case "scripts":bv(d,10);bv(d,6);break;case "sites":bv(d,
8);bv(d,6);break;case "spreadsheets":bv(d,4);bv(d,6);break;case "tables":bv(d,11);bv(d,6);break;default:throw Error("oe`"+k);}m0b(h,c)}else switch(k){case "contacts":f.setSourceId(12);if(0!=Object.keys(h||{}).length)throw Error("je");c.set(f.serialize(),f);break;case "photos":n0b(h,c,d);break;case "upload":if("docs"==h.query){k=(f=h.parent)?[f]:[];var q=[];q=void 0===q?[]:q;k=void 0===k?[]:k;f=new rp;h=f.setSourceId(2).setName("Upload");e=new sp;var u=new qv;q=ll(u,3,q);k=ll(q,1,k);e=Gb(e,15,k);Gb(h,
3,e)}else f.setSourceId(10),f.setUploadSourceOptions(o0b(h,d));c.set(f.serialize(),f);break;case "url":f.setSourceId(9);e.getLabel()&&f.setName(e.getLabel());bv(d,1);c.set(f.serialize(),f);break;case "webcam":f.setSourceId(1);switch(h.query){case "forms":case "spreadsheets":case "presentation":e=f,k=new ov,h=ul(k,1,1).setUploadSourceOptions(o0b(h,d)),Gb(e,16,h)}bv(d,1);c.set(f.serialize(),f);break;case "image-search":f.setSourceId(5);bv(d,1);c.set(f.serialize(),f);break;case "et":f.setSourceId(13);
e.getLabel()&&f.setName(e.getLabel());h=new rv;e=r(Object.entries(e.getOptions()||{}));for(k=e.next();!k.done;k=e.next())switch(q=r(k.value),k=q.next().value,q=q.next().value,k){case "category":if(e0b.has(q))h.setCategory(e0b.get(q));else throw Error("ke`"+q);break;default:throw Error("le`"+k);}bv(d,1);Gb(f,13,h);c.set(f.serialize(),f);break;case null:break;default:throw Error("me`"+e.getId());}});b.setItemType(Kkb(d,Array.from(new Set(ob(d,1)))));return Array.from(c.values())},o0b=function(a,b){var c=
new nv;a=r(Object.entries(a||{}));for(var d=a.next();!d.done;d=a.next()){var e=r(d.value);d=e.next().value;e=e.next().value;switch(d){case "query":switch(e){case "profile":ul(c,4,2);bv(b,1);break;case "photo":ul(c,4,1);bv(b,1);break;case "forms":ul(c,4,6);bv(b,1);break;case "spreadsheets":ul(c,4,7);bv(b,1);break;case "presentation":ul(c,4,8);bv(b,1);break;default:throw Error("ne`"+e);}break;case "data":for(d=r(Object.entries(e||{})),e=d.next();!e.done;e=d.next()){var f=r(e.value);e=f.next().value;
f=f.next().value;Zi(c,2).set(e,f)}}}return c},m0b=function(a,b){Object.keys(a).length?15==a.sortKey?(a=cHa(),b.set(a.serialize(),a)):a.starred?(a=gHa(),b.set(a.serialize(),a)):a.td||a.dr?(a=eHa(),b.set(a.serialize(),a)):a.ownedByMe?(a=dHa(),b.set(a.serialize(),a)):(a=fHa(),b.set(a.serialize(),a)):hHa().getSourceList().forEach(function(c){return b.set(c.serialize(),c)})},n0b=function(a,b,c){var d=new qp;if(Object.keys(a).length){if(a.allowedItemTypes.includes("photo")&&(d.addSource(jHa()),bv(c,1)),
a.allowedItemTypes.includes("album")&&(d.addSource(kHa()),bv(c,14)),"videos-uploaded"==a.type||"videos-camerasync"==a.type)d.addSource(mHa()),bv(c,2)}else d=lHa(),bv(c,1),bv(c,14);d.getSourceList().forEach(function(e){b.set(e.serialize(),e)})};
var p0b=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new VV};g=p0b.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getAppId=function(){return this.appId_};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 q0b=function(a){p0b.call(this,a)};Wt(q0b,p0b);
var WV=function(a){Jo.call(this);this.dom_=a||So();this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null};Wt(WV,Jo);g=WV.prototype;g.idGenerator_=BU.getInstance();g.getId=function(){return this.id_||(this.id_=tq(this.idGenerator_))};g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(jh(this.parent_.childIndex_,this.id_),pja(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};
g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new ZG(this));return this.googUiComponentHandler_};g.setParent=function(a){if(this==a)throw Error("pe");if(a&&this.parent_&&this.id_&&BNb(this.parent_,this.id_)&&this.parent_!=a)throw Error("pe");this.parent_=a;WV.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};
g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("qe");WV.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("re");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;r0b(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){r0b(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_);r0b(this,function(a){a.dispose()});this.element_&&nD(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;WV.superClass_.disposeInternal.call(this)};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("re");if(0>a||a>(this.children_?this.children_.length:0))throw Error("se");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if((void 0).getParent()==this){var b=this.childIndex_,c=(void 0).getId();b[c]=void 0;za(this.children_)}else pja(this.childIndex_,(void 0).getId());(void 0).setParent(this);maa(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.hasChildren=function(){return!!this.children_&&0!=this.children_.length};var BNb=function(a,b){return a.childIndex_&&b?qja(a.childIndex_,b)||null:null},r0b=function(a,b){a.children_&&a.children_.forEach(b,void 0)};WV.prototype.removeChild=function(a,b){if(a){var c="string"===typeof a?a:a.getId();a=BNb(this,c);c&&a&&(jh(this.childIndex_,c),za(this.children_,a),b&&(a.exitDocument(),a.element_&&nD(a.element_)),a.setParent(null))}if(!a)throw Error("te");return a};
WV.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};
Wt(nHa,pp);
var s0b=function(a){pp.call(this,"visibility");this.visible=a};Wt(s0b,pp);
var t0b=uo(vo("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),u0b=uo(vo("//apis.google.com/js/rpc.js")),vp=null;
var XV=function(a){Jo.call(this);this.element_=a;a=$t?"focusout":"blur";this.listenKeyIn_=Ko(this.element_,$t?"focusin":"focus",this,!$t);this.listenKeyOut_=Ko(this.element_,a,this,!$t)};Wt(XV,Jo);XV.prototype.handleEvent=function(a){var b=new TC(a.event_);b.type="focusin"==a.type||"focus"==a.type?"focusin":"focusout";this.dispatchEvent(b)};XV.prototype.disposeInternal=function(){XV.superClass_.disposeInternal.call(this);aD(this.listenKeyIn_);aD(this.listenKeyOut_);delete this.element_};
var YV=function(a,b,c){Jo.call(this);this.target=a;this.handle=b||a;this.limits=c||new vU(NaN,NaN,NaN,NaN);this.document_=eD(a);this.eventHandler_=new ZG(this);NC(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Ko(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=v0b};Wt(YV,Jo);
var v0b=da.document&&da.document.documentElement&&!!da.document.documentElement.setCapture&&!!da.document.releaseCapture;g=YV.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){YV.superClass_.disposeInternal.call(this);$C(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||du&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new ZV("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(lD(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=kD(So(this.document_).document_)}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new ZV("end",this,a.clientX,a.clientY,a,w0b(this,this.deltaX),x0b(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 ZV("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=y0b(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new ZV("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(z0b(this,a,b,c),a.preventDefault())};var y0b=function(a,b,c){var d=kD(So(a.document_).document_);b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new Kq(w0b(a,a.deltaX),x0b(a,a.deltaY))};YV.prototype.onScroll_=function(a){var b=y0b(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;z0b(this,a,b.x,b.y)};
var z0b=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new ZV("drag",a,b.clientX,b.clientY,b,c,d))},w0b=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))},x0b=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))};YV.prototype.isDragging=function(){return this.dragging_};
var ZV=function(a,b,c,d,e,f,h){OC.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};Wt(ZV,OC);
var $V=function(a){this.map_=new Map;var b=arguments.length;if(1<b){if(b%2)throw Error("Uc");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=$V.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 $V){a=r(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=r(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=r(Object.entries(a)),b=a.next();!b.done;b=a.next())c=r(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 $V(this)};
g.toObject=function(){for(var a={},b=r(this.map_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;a[c]=d}return a};
(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!da.requestAnimationFrame;++c)da.requestAnimationFrame=da[b+"RequestAnimationFrame"],da.cancelAnimationFrame=da[b+"CancelAnimationFrame"]||da[b+"CancelRequestAnimationFrame"];if(!da.requestAnimationFrame){var d=0;da.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return da.setTimeout(function(){e(f+h)},h)};da.cancelAnimationFrame||(da.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var A0b=[[],[]],B0b=0,C0b=!1,D0b=0,F0b=function(a,b){var c=D0b++,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,A0b[B0b].push(d));C0b||(C0b=!0,window.requestAnimationFrame(E0b))}},E0b=
function(){C0b=!1;var a=A0b[B0b],b=a.length;B0b=(B0b+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 G0b=$t?uo(vo('javascript:""')):uo(vo("about:blank"));Ci(G0b);var H0b=$t?uo(vo('javascript:""')):uo(vo("javascript:undefined"));Ci(H0b);
var I0b=function(a,b){this.element_=a;this.dom_=b};
var aW=function(a,b){WV.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=F0b({mutate:this.resizeBackground_},this)};Wt(aW,WV);g=aW.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(){aW.superClass_.createDom.call(this);var a=this.getElement();tU(a,Ri(this.getCssClass()).split(" "));a.tabIndex=0;zU(a,!1);this.useIframeMask_&&!this.bgIframeEl_&&(a=this.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"}),a.src=Ci(G0b).toString(),this.bgIframeEl_=a,this.bgIframeEl_.className=this.getCssClass()+"-bg",zU(this.bgIframeEl_,!1),uXb(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom("DIV",this.getCssClass()+
"-bg"),zU(this.bgEl_,!1));this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement("SPAN"),zU(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);aW.superClass_.enterDocument.call(this);a=this.getElement();a.parentNode&&a.parentNode.insertBefore(this.tabCatcherElement_,a.nextSibling);this.focusHandler_=new XV(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);J0b(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);ti(this.focusHandler_);aW.superClass_.exitDocument.call(this);nD(this.bgIframeEl_);nD(this.bgEl_);nD(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_&&J0b(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_);K0b(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)XC(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_)XC(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 J0b=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new I0b(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],e;if(e=d!=a.element_)e=d.getAttribute("aria-hidden"),e=!(null==e||void 0==e?0:String(e));e&&($I(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}};aW.prototype.setTransition=function(a){this.popupShowTransition_=a;this.bgHideTransition_=this.bgShowTransition_=this.popupHideTransition_=void 0};var K0b=function(a,b){a.bgIframeEl_&&zU(a.bgIframeEl_,b);a.bgEl_&&zU(a.bgEl_,b);zU(a.getElement(),b);zU(a.tabCatcherElement_,b)};g=aW.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){K0b(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&zU(this.bgIframeEl_,!1);this.bgEl_&&zU(this.bgEl_,!1);var a=this.getDomHelper().document_,b=iD(lD(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_&&(zU(this.bgIframeEl_,!0),tXb(this.bgIframeEl_,c,a));this.bgEl_&&(zU(this.bgEl_,!0),tXb(this.bgEl_,c,a))};
g.reposition=function(){var a=this.getDomHelper().document_,b=lD(a)||window;if("fixed"==wp(this.getElement(),"position"))var c=a=0;else c=kD(this.getDomHelper().document_),a=c.x,c=c.y;var d=Mq(this.getElement());b=iD(b);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);Nq(this.getElement(),a,c);Nq(this.tabCatcherElement_,a,c)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&zD(this.focusElement_,0,this)};
g.focusElement_=function(){try{$t&&this.getDomHelper().document_.body.focus(),this.getElement().focus()}catch(a){}};g.disposeInternal=function(){ti(this.popupShowTransition_);this.popupShowTransition_=null;ti(this.popupHideTransition_);this.popupHideTransition_=null;ti(this.bgShowTransition_);this.bgShowTransition_=null;ti(this.bgHideTransition_);this.bgHideTransition_=null;aW.superClass_.disposeInternal.call(this)};
var dW=function(a,b,c){aW.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=bW(bW(new cW,L0b,!0),M0b,!1,!0)};Wt(dW,aW);g=dW.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_&&qD(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var N0b=function(a){a.getElement()||a.render();return a.getElement()};dW.prototype.getBackgroundElement=function(){this.getElement()||this.render();return dW.superClass_.getBackgroundElement.call(this)};dW.prototype.handleDrag=function(){};
var O0b=function(a,b){var c=Ri(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?tU(a.titleEl_,c):kXb(a.titleEl_,c));b&&!a.dragger_?(b=new YV(a.getElement(),a.titleEl_),a.dragger_=b,tU(a.titleEl_,c),Ko(a.dragger_,"start",a.setDraggerLimits_,!1,a),Ko(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=dW.prototype;
g.createDom=function(){dW.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"));Osb(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));ZI(this.titleTextEl_,"heading");ZI(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;$I(this.titleCloseEl_,"label","Close");ZI(a,"dialog");$I(a,"labelledby",this.titleTextId_||"");zU(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());zU(this.buttonEl_,!!this.buttons_);this.backgroundElementOpacity_=this.backgroundElementOpacity_;this.getElement()&&(a=this.getBackgroundElement())&&uXb(a,
this.backgroundElementOpacity_)};
g.enterDocument=function(){dW.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_);O0b(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();ZI(a,"dialog");""!==this.titleTextEl_.id&&$I(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()&&J0b(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);O0b(this,!1);dW.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),dW.superClass_.setVisible.call(this,a))};g.onShow=function(){dW.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){dW.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=iD(lD(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=Mq(this.getElement());"fixed"==wp(this.getElement(),"position")?this.dragger_.limits=new vU(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new vU(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){P0b(this)};var P0b=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new eW(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},Q0b=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&zU(a.titleCloseEl_,a.hasTitleCloseButton_)};dW.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};dW.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;dW.superClass_.disposeInternal.call(this)};
dW.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 eW(a,b))&&this.setVisible(!1)}};
dW.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 eW(f,b))):e||(b=!0)}else{if(9==a.keyCode&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(x){}zD(this.resetBackwardTabWrap_,0,this)}}else if(13==a.keyCode){if("BUTTON"==e.tagName&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)P0b(this);else if(d){var h=d.getDefault(),k;if(k=h)a:{k=gD("BUTTON",d.element_);for(var q=0,u;u=k[q];q++)if(u.name==h||u.id==h){k=u;break a}k=null}e=("TEXTAREA"==e.tagName||"SELECT"==e.tagName||"A"==e.tagName)&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new eW(f,String(d.get(f)))))}else e!=this.titleCloseEl_||32!=a.keyCode&&" "!=a.key||P0b(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var eW=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};Wt(eW,OC);var cW=function(a){$V.call(this);this.dom_=a||So();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};Wt(cW,$V);cW.prototype.clear=function(){$V.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};cW.prototype.set=function(a,b,c,d){$V.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var bW=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};g=cW.prototype;g.render=function(){if(this.element_){To(this.element_,lt);var a=So(this.element_);this.forEach(function(b,c){b=a.createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}};g.getElement=function(){return this.element_};g.getDomHelper=function(){return this.dom_};g.setDefault=function(a){this.defaultButton_=a};g.getDefault=function(){return this.defaultButton_};
var L0b={key:"ok",caption:"OK"},M0b={key:"cancel",caption:"Cancel"},R0b={key:"yes",caption:"Yes"},S0b={key:"no",caption:"No"},T0b={key:"save",caption:"Save"},U0b={key:"continue",caption:"Continue"};"undefined"!=typeof document&&(bW(new cW,L0b,!0,!0),bW(bW(new cW,L0b,!0),M0b,!1,!0),bW(bW(new cW,R0b,!0),S0b,!1,!0),bW(bW(bW(new cW,R0b),S0b,!0),M0b,!1,!0),bW(bW(bW(new cW,U0b),T0b),M0b,!0,!0));
var V0b=function(a,b,c){dW.call(this,a,b,c)};Wt(V0b,dW);
var fW=function(a,b){Jo.call(this);this.element_=a;a=oD(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&vXb(a);this.listenKey_=Ko(this.element_,bu?"DOMMouseScroll":"mousewheel",this,b)};Wt(fW,Jo);
fW.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;"mousewheel"==d.type?(a=W0b(-d.wheelDelta),void 0!==d.wheelDeltaX?(b=W0b(-d.wheelDeltaX),c=W0b(-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 X0b(a,d,b,c);this.dispatchEvent(b)};
var W0b=function(a){return cu&&(du||Wib)&&0!=a%40?a:a/40};fW.prototype.disposeInternal=function(){fW.superClass_.disposeInternal.call(this);aD(this.listenKey_);this.listenKey_=null};var X0b=function(a,b,c,d){TC.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};Wt(X0b,TC);
var Y0b;
var gW=function(a,b,c,d,e,f,h){dW.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);yub(a,"protocol");this.iframeManager_=new Z_b;this.targetId_=pC();this.rpcToken_=pC();this.useGapi_=!1;this.setUrl(a);this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;void 0!==d||void 0!==e?c=!0:(c=VG(WG(a),"hostId"),Y0b||(Y0b=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),c=!Y0b.has(c));
this.autoSizeDialog_=c;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(VG(WG(a),"hostId"),b="true"==VG(WG(this.url_),"grugl")?u0b:t0b,h=this.gadgetsDomHelper_,oHa(h)||(h=h||So(document),c=h.createElement("SCRIPT"),Di(c,b),c.type="text/javascript",h.document_.body.appendChild(c)));b=null;h=a.indexOf("/picker?");-1<h?b=a.substring(0,h+8-1):Xt(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,
a.element_=this.buttonEl_,a.render()):To(this.buttonEl_,lt),zU(this.buttonEl_,!!this.buttons_))};Wt(gW,V0b);g=gW.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){gW.superClass_.enterDocument.call(this);var a=this.getBackgroundElement(),b=this.getHandler(),c=new fW(a);NC(b,c);b.listen(c,"mousewheel",St(rHa,void 0,a)).listen(a,"scroll",St(rHa,void 0,a))};
g.render=function(a){var b=this;gW.superClass_.render.call(this,a);this.useGapi_?$_b(this.iframeManager_,window).then(function(){return Z0b(b)}).then(null,function(c){return void b.handleError_(c)}):$0b(this)};
var Z0b=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);zU(b,!1);a.getContentElement().appendChild(b);return a0b(a.iframeManager_,b,function(c){var d=bo(xv,c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;var e=m(d,lv,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}:G_b(e,d);c.call(a,d);a.setVisible(!1);break;case 4:Q0b(a),a.callback_({action:"loaded"})}},
a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();a1b(a);zU(a.iframe_.parentElement,!0);iXb(a.getElement(),"picker-dialog");b1b(a);return c})},$0b=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Cma(a.iframe_,c1b(a));iXb(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void a1b(a)});a.iframe_.src=a.url_;
b1b(a)},e1b=function(a){d1b(a,St(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},b1b=function(a){var b=VG(WG(a.url_),"title");b&&a.setTitle(b)},c1b=function(a){return 7<=ma("Internet Explorer")&&Mi(a.url_,"https")?uo(vo("https://about:blank")):$t?uo(vo('javascript:""')):uo(vo("about:blank"))},a1b=function(a){e1b(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};
gW.prototype.handleKeydown_=function(a){27==a.keyCode&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var d1b=function(a,b){var c=a.gadgetsDomHelper_;pHa(function(){b(c.getWindow().gadgets.rpc)},c)};gW.prototype.setUrl=function(a){a=UG(new Xo(a),"rpcService",this.targetId_);this.useGapi_=void 0!==VG(a,"v2");UG(a,"rpctoken",this.rpcToken_);QG(a,"rpctoken="+this.rpcToken_);iv(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};
gW.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&f1b(this)};gW.prototype.setCallback=function(a){this.callback_=a;d1b(this,St(function(b){b.register(this.targetId_,St(this.handlePickerAction_,this))},this))};
gW.prototype.handlePickerAction_=function(a){var b=a.action;"loaded"==b&&(this.loadedFired_=!0,this.sendCommand(new s0b(this.isVisible())),f1b(this),Q0b(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 f1b=function(a){a.appId_&&a.sendCommand(new nHa(a.appId_,window.location.protocol+"//"+window.location.host))};g=gW.prototype;
g.setRelayUrl=function(a){d1b(this,St(function(b){b.setRelayUrl(this.targetId_,a)},this))};g.sendCommand=function(a){var b=this;this.useGapi_&&l0b(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});d1b(this,St(function(c){c.call(this.targetId_,"picker",null,a)},this))};
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=lD(a)||window;if("true"==VG(WG(this.url_),"ignoreLimits"))a=new cD(this.preferredDialogWidth_,this.preferredDialogHeight_);else if("true"==VG(WG(this.url_),"shadeDialog")){var b=yXb(N0b(this),"margin"),c=iD(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 cD(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=iD(a),c=.85*c.height);var d=Math.max(320,Math.min(650,c))}else c=iD(a),b=.618*c.width,d=b<c.height?Math.round(Math.max(320,Math.min(650,.85*b))):Math.round(Math.max(320,Math.min(650,.85*c.height))),b=Math.round(d/.618);c=iD(a);b=Math.min(b,Math.max(c.width,320));d=Math.min(d,Math.max(c.height,320));a=new cD(b,d)}tXb(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if("true"==VG(WG(this.url_),"shadeDialog")){var a=Mq(this.getElement()),b=iD(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=yXb(N0b(this),"margin")){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=kD(this.getDomHelper().document_).y;Nq(this.getElement(),a,b)}else gW.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_))}gW.superClass_.setVisible.call(this,a);this.sendCommand(new s0b(a))};
g.focus=function(){gW.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};
var hW=function(a){p0b.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};Wt(hW,q0b);hW.prototype.disposeOnHide_=!1;hW.prototype.addPostProcessor=function(a){this.postProcessors_.push([a,{}])};
hW.prototype.build=function(){this.urlParamMap_.get("parent")||this.setRelayUrl(QG(PG(WG(window.location.href)),"").setPath("/favicon.ico").toString());if(this.urlParamMap_.get("minimal"))throw Error("ue");var a=new gW(g1b(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_);a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var h1b=function(a,b){a.urlParamMap_.set(b,"true");return a};g=hW.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.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 i1b=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=hW.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setInitialView=function(a){a instanceof OV?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("ve`"+a+"`undefined");this.urlParamMap_.set("maxSize",a+"xundefined")};g.setMinSize=function(a){if(isNaN(a)||isNaN(void 0))throw Error("we`"+a+"`undefined");this.urlParamMap_.set("minSize",a+"xundefined")};g.setSecretToken=function(){return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};
g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};g.setUser=function(a){this.urlParamMap_.set("user",a)};
var g1b=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",QD(a.postProcessors_));a.urlParamMap_.set("nav",L_b(a.nav_));var b=new Xo(a.getBaseUrl());a.urlParamMap_.forEach(function(e,f){UG(b,f,e)});var c=i0b(a.getBaseUrl(),a.nav_,a.urlParamMap_,a.postProcessors_);if(null!==c){UG(b,"amc","true");var d=!1;switch(a.urlParamMap_.get("hostId")){case "gmail-to":case "og":case "hangouts-profile-picture":case "testing":case "youtube-video-importer":case "ritz":case "punch":case "freebird-themes":case "freebird":case "atariImage":case "homeroom-doc-select":case "homeroom-doc-attach":d=!0}d&&
UG(b,"v2",j0b(c))}return b};
var iW=function(a,b){this.activeSession=a;this.attachmentsApi=b;this.disabled=!1;this.onPickDoc=new Jw;this.onCloneBlob=new Jw;this.onePickUrl=a.getOnePickUrl();this.onePickSecretToken=a.getOnePickSecretToken()};
iW.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=i1b(h1b(h1b(h1b(h1b((new hW(this.onePickUrl)).addView(x_b().setMode("list")),"navHidden"),"multiselectEnabled"),"edbe"),"showAttach").setCallback(function(c){if(c&&"picked"===c.action)for(var d=r(c.docs),e=d.next();!e.done;e=d.next())e=new u_b(e.value),c.extraUserInputs.isAttachment&&e.encryptedBlobId?(e=new v_b(e),w_b(e,a.attachmentsApi),
a.onCloneBlob.emit(e)):a.onPickDoc.emit(e)}).setOrigin(b)).setSecretToken(this.onePickSecretToken).build()}this.drivePicker.setVisible(!0)};iW.\u0275fac=function(a){return new (a||iW)(C(yH),C(HQb))};
iW.\u0275cmp=w({type:iW,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&&(F(0,"div",0)(1,"button",1),J("click",function(){return b.showDialog()}),H(2,"mat-icon",2),G()());a&2&&(B(1),D("disabled",
b.disabled))},dependencies:[rB,XE,lF],encapsulation:2});
var jW=function(a,b,c){yI.call(this);this.window=b;this.scrolledOnScreenService=c;this.onAutoResize=new Jw;this.el=a.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");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)};
V(jW,yI);jW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&j1b(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){j1b(a,2)}))};jW.prototype.onInput=function(){j1b(this,1)};
var j1b=function(a,b){for(var c=a.window.getComputedStyle(a.el),d=r("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=yp(d.getPropertyValue("border-top-width"))+yp(d.getPropertyValue("padding-top"))+c.scrollHeight+yp(d.getPropertyValue("padding-bottom"))+yp(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=yp(d.getPropertyValue("max-height")),d=yp(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})))};jW.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);yI.prototype.ngOnDestroy.call(this)};jW.\u0275fac=function(a){return new (a||jW)(C(wd),C(jM),C(RO))};
jW.\u0275dir=w({type:jW,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&J("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[ie]});
var k1b=["el"],kW=function(a,b){this.clipboard=a;this.snackBar=b;this.opened=!1};kW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};kW.prototype.hide=function(){this.opened=!1};kW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};kW.\u0275fac=function(a){return new (a||kW)(C(TS),C(pK))};
kW.\u0275cmp=w({type:kW,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&Hf(k1b,7);if(a&2){var c;Gf(c=Jf())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},ngContentSelectors:["*"],decls:8,vars:3,consts:[["cdkOverlayOrigin","","aria-haspopup","true",3,"click"],["trigger","cdkOverlayOrigin"],["svgIcon","link-off",1,"broken","icon-s"],["el",""],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],
[1,"b-bubble",3,"clickOutside"],["mat-button","","matTooltip","Copy to clipboard","aria-label","Copy URL to clipboard",1,"tiny",3,"click"],["svgIcon","copy"]],template:function(a,b){a&1&&(Ee(),F(0,"a",0,1),J("click",function(d){d.preventDefault();d.stopPropagation();b.opened=!b.opened}),F(2,"b-glue"),H(3,"mat-icon",2),G(),F(4,"span",null,3),Fe(6),G()(),O(7,uHa,4,1,"ng-template",4));if(a&2){var c=M(1);B(7);D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},
dependencies:[VA,UA,hQ,NO,XE,rB,lF],styles:["mat-icon.broken[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}a[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad)}.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(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 lW=function(){this.checked=!1};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275cmp=w({type:lW,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:[tO],encapsulation:2,changeDetection:0});
var l1b=["el"],mW=function(a,b,c){this.domSafe=a;this.clipboard=b;this.snackBar=c;this.destroyed$=new U.ReplaySubject;this.opened=!1};mW.prototype.ngOnInit=function(){};mW.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(jg(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};mW.prototype.ngOnDestroy=function(){this.destroyed$.next()};mW.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var m1b=function(a){var b=a.getNgContentParentEl(),c,d;a:{for(d=b.firstChild;d;){if(d.nodeType!==Node.TEXT_NODE){d=!1;break a}d=d.nextSibling}d=!0}d&&(a=a.originalHref,b=null!=(c=b.textContent)?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1);return!d};mW.prototype.hide=function(){this.opened=!1};var wHa=function(a,b){tHa(b)||(b.preventDefault(),b.stopPropagation(),gP(a.domSafe,a.href))};
mW.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};var yHa=function(a,b){b.preventDefault();if(a=a.cdkConnectedOverlay.overlayRef.overlayElement){var c=a.querySelector("a");c&&setTimeout(function(){c.focus()})}},xHa=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()})}};
mW.\u0275fac=function(a){return new (a||mW)(C(fP),C(TS),C(pK))};
mW.\u0275cmp=w({type:mW,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(Hf(l1b,7),Hf(VA,7));if(a&2){var c;Gf(c=Jf())&&(b.el=c.first);Gf(c=Jf())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},ngContentSelectors:["*"],decls:7,vars:7,consts:[["rel","noopener noreferrer nofollow","cdkOverlayOrigin","",1,"keep-focus-ring",3,"href","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","rel","noopener noreferrer nofollow",1,"keep-focus-ring",3,"href","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&&(Ee(),F(0,"a",0,1),J("click",function(d){tHa(d)||
(d.preventDefault(),d.stopPropagation(),m1b(b)?b.opened=!b.opened:wHa(b,d))}),O(2,vHa,2,0,"b-glue",2),F(3,"span",null,3),Fe(5),G()(),O(6,zHa,6,2,"ng-template",4));if(a&2){var c=M(1);te("needs-user-confirm",m1b(b));D("href",b.originalHref,Ud);B(2);D("ngIf",m1b(b));B(4);D("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",c)("cdkConnectedOverlayOpen",b.opened)}},dependencies:[ux,VA,UA,hQ,NO,XE,rB,lF],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 n1b=["child"],nW=function(a){this.codefont=a};nW.prototype.ngOnInit=function(){};nW.prototype.ngOnChanges=function(){xp(this.child.nativeElement,this.content.getContent())};nW.\u0275fac=function(a){return new (a||nW)(C(jQ))};
nW.\u0275cmp=w({type:nW,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&Hf(n1b,7);if(a&2){var c;Gf(c=Jf())&&(b.child=c.first)}},inputs:{content:"content"},features:[Jc],decls:3,vars:4,consts:[[1,"type-m","child"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),Q(2,"async"),G());a&2&&te("codefont",R(2,2,b.codefont.codefont$))},dependencies:[Fx],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});
var oW=function(a,b){this.session=a;this.userPreferencesManager=b;this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(S(function(c){return c.textDisplayPreferences?c.textDisplayPreferences:{}}),Wf());this.lastPublishedMarkdown$=this.textDisplayPreferences$.pipe(S(function(c){return c.lastPublishMode===SBb}),Wf());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(S(function(c){return c.commentDisplayOverride}),Wf())};
oW.\u0275fac=function(a){return new (a||oW)(t(yH),t(VI))};oW.\u0275prov=lc({token:oW,factory:oW.\u0275fac,providedIn:"root"});
var pW=function(){};pW.prototype.visit=function(){};pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275prov=lc({token:pW,factory:pW.\u0275fac,providedIn:"root"});
var o1b=["el"],qW=function(a){this.issueReferenceResolver=a};qW.prototype.ngOnInit=function(){};qW.prototype.visit=function(a){if(!tHa(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})}};
qW.\u0275fac=function(a){return new (a||qW)(C(pW))};qW.\u0275cmp=w({type:qW,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&Hf(o1b,7);if(a&2){var c;Gf(c=Jf())&&(b.el=c.first)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},ngContentSelectors:["*"],decls:3,vars:1,consts:[[3,"href","click"],["el",""]],template:function(a,b){a&1&&(Ee(),F(0,"a",0,1),J("click",function(c){return b.visit(c)}),Fe(2),G());a&2&&D("href",b.href,Ud)},encapsulation:2,changeDetection:0});
var rW=function(){this.isMentioningMe=!1};rW.prototype.ngOnInit=function(){this.username=this.email.replace(/@google.com$/,"")};rW.\u0275fac=function(a){return new (a||rW)};
rW.\u0275cmp=w({type:rW,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&&(F(0,"span",0,1),P(2),G(),F(3,"onedev-hovercard",null,2),H(5,"b-issue-person-card",3),G());if(a&2){var c=M(4);te("me",b.isMentioningMe);D("onedevHovercardTrigger",c);B(2);Je("@",b.username,"");B(3);D("email",b.email)}},dependencies:[YR,dN,hN],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 p1b=Symbol(),q1b=Symbol(),r1b=Symbol(),s1b=Symbol(),t1b=Symbol(),u1b=Symbol(),sW=function(a,b,c,d){this.componentFactoryResolver=a;this.appRef=b;this.flags=c;this.session=d;this.outlets=[];this.secureImageRefs=[];this.mentionChipRefs=[];this.checkboxRefs=[];this.externalHyperlinkRefs=[];this.brokenLinkRefs=[];this.issueReferenceRefs=[]};sW.prototype.ngOnDestroy=function(){v1b(this)};
var w1b=function(a){a=a.querySelectorAll("*");for(var b=0;b<a.length;b++){var c=a[b],d=c.dataset.bId;d&&(c.id=d)}},y1b=function(a,b,c){b=b.querySelectorAll("*[data-b-widget]");for(var d=0;d<b.length;d++){var e=b[d];switch(e.dataset.bWidget){case "image":var f=a,h=c,k=e.dataset.bImgSrc,q=e.dataset.bImgRedirectedSrc;AHa(e);if(k){var u=e.dataset.bImgAlt;if(AH(f.flags.session,"enableMarkdownInlineImages"))e=new PA(e,f.componentFactoryResolver,f.appRef,h.injector),f.outlets.push(e),e=e.attach(new MA(VO,
h)),f.secureImageRefs.push(e),e=e.instance,e.src=k,u&&(e.alt=u);else{var x=document.createElement("a");u?x.appendChild(document.createTextNode(u)):x.appendChild(document.createTextNode(k));e.appendChild(x);x1b(f,x,k,q||k,h)}}break;case "checkbox":h=a;f=c;u=null!=e.dataset.bCheckboxChecked;AHa(e);e=new PA(e,h.componentFactoryResolver,h.appRef,f.injector);h.outlets.push(e);e=e.attach(new MA(lW,f));h.checkboxRefs.push(e);e.instance.checked=u;break;case "url":h=a;u=c;f=e.dataset.bOriginalHref;k=e.dataset.bRedirectedHref;
f&&k&&(e.removeAttribute("href"),x1b(h,e,f,k,u));break;case "broken-url":if(h=e.dataset.bOriginalHref)for(u=a,f=h,k=c,h=Array.from(e.childNodes),e=new PA(e,u.componentFactoryResolver,u.appRef,k.injector),u.outlets.push(e),e=e.attach(new MA(kW,k)),u.brokenLinkRefs.push(e),e=e.instance,e.originalHref=f,e=e.getNgContentParentEl(),h=r(h),u=h.next();!u.done;u=h.next())e.appendChild(u.value);break;case "mention":a.session.isInternalSession()&&(k=void 0,h=a,f=c,u="","@"===(null==(k=e.textContent)?void 0:
k[0])&&(u=e.textContent.slice(1)),AHa(e),e=new PA(e,h.componentFactoryResolver,h.appRef,f.injector),h.outlets.push(e),e=e.attach(new MA(rW,f)),h.mentionChipRefs.push(e),e=e.instance,e.email=u,e.isMentioningMe=h.session.getUserEmail()===u);break;case "issue-reference":if(u=e.href,f=e.dataset.bIssueId,k=e.dataset.bCommentNumber,u&&f){q=void 0;h=a;f=Number(f);x=Number(k);var E=c;k=Array.from(e.childNodes);var I=document.createElement("span");null==(q=e.parentNode)||q.insertBefore(I,e);q=new PA(I,h.componentFactoryResolver,
h.appRef,E.injector);h.outlets.push(q);q=q.attach(new MA(qW,E));h.issueReferenceRefs.push(q);h=q.instance;h.href=u;h.issueId=f;h.commentNumber=x;h=h.el.nativeElement;u=r(k);for(f=u.next();!f.done;f=u.next())h.appendChild(f.value);e.remove()}}}},x1b=function(a,b,c,d,e){var f=Array.from(b.childNodes);b=new PA(b,a.componentFactoryResolver,a.appRef,e.injector);a.outlets.push(b);e=b.attach(new MA(mW,e));a.externalHyperlinkRefs.push(e);a=e.instance;a.originalHref=c;a.href=d;c=a.getNgContentParentEl();f=
r(f);for(d=f.next();!d.done;d=f.next())c.appendChild(d.value)},z1b=function(a){a=a.querySelectorAll("a");for(var b=0;b<a.length;b++){var c=a[b];c.getAttribute("target")||c.setAttribute("target","_self")}},A1b=function(a){a=a.querySelectorAll("table");for(var b=0;b<a.length;b++){var c=a[b];if(c.parentNode){var d=document.createElement("div");d.classList.add("table-overflow");c.parentNode.insertBefore(d,c);d.appendChild(c)}}},v1b=function(a){for(var b=r(a.outlets),c=b.next();!c.done;c=b.next())c.value.dispose();
a.outlets=[];a.secureImageRefs=[];a.mentionChipRefs=[];a.checkboxRefs=[];a.externalHyperlinkRefs=[];a.brokenLinkRefs=[];a.issueReferenceRefs=[]};sW.prototype[p1b]=function(){return this.outlets.slice()};sW.prototype[q1b]=function(){return this.secureImageRefs.slice()};sW.prototype[r1b]=function(){return this.checkboxRefs.slice()};sW.prototype[s1b]=function(){return this.externalHyperlinkRefs.slice()};sW.prototype[t1b]=function(){return this.brokenLinkRefs.slice()};sW.prototype[u1b]=function(){return this.issueReferenceRefs.slice()};
sW.\u0275fac=function(a){return new (a||sW)(t(Kv),t(lx),t(oW),t(yH))};sW.\u0275prov=lc({token:sW,factory:sW.\u0275fac});
var B1b=["child"],C1b=Symbol(),tW=function(a,b,c){this.dynamicComponents=a;this.codefont=b;this.viewContainerRef=c};tW.prototype.ngOnInit=function(){};tW.prototype.ngOnChanges=function(){v1b(this.dynamicComponents);var a=this.child.nativeElement;xp(a,this.content.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;w1b(a);y1b(b,a,c);z1b(a);A1b(a)};tW.prototype.ngOnDestroy=function(){v1b(this.dynamicComponents)};tW.prototype[C1b]=function(){return this.dynamicComponents};
tW.\u0275fac=function(a){return new (a||tW)(C(sW,2),C(jQ),C(Ef))};
tW.\u0275cmp=w({type:tW,selectors:[["b-markdown-format-presenter"]],viewQuery:function(a,b){a&1&&Hf(B1b,7);if(a&2){var c;Gf(c=Jf())&&(b.child=c.first)}},inputs:{content:"content"},features:[Me([{provide:sW,useClass:sW}]),Jc],decls:3,vars:4,consts:[[1,"type-m","markdown-display"],["child",""]],template:function(a,b){a&1&&(F(0,"div",0,1),Q(2,"async"),G());a&2&&te("codefont",R(2,2,b.codefont.codefont$))},dependencies:[Fx],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}/*# sourceMappingURL=markdown_format_presenter.css.map */\n"],encapsulation:2,
changeDetection:0});
var D1b=["child"],E1b=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},uW=function(a){this.codefont=a};uW.prototype.ngOnInit=function(){};uW.\u0275fac=function(a){return new (a||uW)(C(jQ))};
uW.\u0275cmp=w({type:uW,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&&(F(0,"div",0),Q(1,"async"),O(2,BHa,2,1,"ng-container",1),G());a&2&&(te("codefont",R(1,3,b.codefont.codefont$)),B(2),D("ngForOf",b.content.getPlainSectionList()))},dependencies:function(){return[yx,vW,Fx]},styles:[E1b()],changeDetection:0});var vW=function(){};vW.prototype.ngOnInit=function(){};
vW.\u0275fac=function(a){return new (a||vW)};vW.\u0275cmp=w({type:vW,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&&(ze(0),O(1,CHa,1,1,"b-plain-format-quoted-section",0),O(2,DHa,1,1,"b-plain-format-unquoted-section",0),Ae());a&2&&(B(1),D("ngIf",b.section.getIsQuoted()),B(1),D("ngIf",!b.section.getIsQuoted()))},dependencies:function(){return[ux,wW,xW]},encapsulation:2,changeDetection:0});
var wW=function(){this.showQuote=!1;F1b++;this.childId="plainFormatQuotedSection"+F1b};wW.prototype.ngOnInit=function(){};wW.prototype.ngOnChanges=function(){EHa(this)};var EHa=function(a){var b=a.child.nativeElement;a.showQuote?xp(b,a.section.getContent()):sHa(b)};wW.\u0275fac=function(a){return new (a||wW)};
wW.\u0275cmp=w({type:wW,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&Hf(D1b,7);if(a&2){var c;Gf(c=Jf())&&(b.child=c.first)}},inputs:{section:"section"},features:[Jc],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&&(F(0,"div"),O(1,FHa,2,1,"a",0),O(2,GHa,2,1,"a",1),H(3,"div",2,3),G());a&2&&(B(1),D("ngIf",!b.showQuote),B(1),D("ngIf",b.showQuote),B(1),D("id",b.childId))},dependencies:[ux],styles:[E1b()],changeDetection:0});var F1b=0,xW=function(a,b){this.dynamicComponents=a;this.viewContainerRef=b};xW.prototype.ngOnInit=function(){};
xW.prototype.ngOnChanges=function(){v1b(this.dynamicComponents);var a=this.child.nativeElement;xp(a,this.section.getContent());var b=this.dynamicComponents,c=this.viewContainerRef;w1b(a);y1b(b,a,c);z1b(a);A1b(a)};xW.\u0275fac=function(a){return new (a||xW)(C(sW,2),C(Ef))};
xW.\u0275cmp=w({type:xW,selectors:[["b-plain-format-unquoted-section"]],viewQuery:function(a,b){a&1&&Hf(D1b,7);if(a&2){var c;Gf(c=Jf())&&(b.child=c.first)}},inputs:{section:"section"},features:[Me([{provide:sW,useClass:sW}]),Jc],decls:2,vars:0,consts:[[1,"child"],["child",""]],template:function(a){a&1&&H(0,"div",0,1)},encapsulation:2,changeDetection:0});
var yW=function(){};yW.prototype.ngOnInit=function(){};yW.\u0275fac=function(a){return new (a||yW)};
yW.\u0275cmp=w({type:yW,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment"},decls:3,vars:3,consts:[[4,"ngIf"],[3,"content"]],template:function(a,b){a&1&&(O(0,HHa,2,1,"ng-container",0),O(1,IHa,2,1,"ng-container",0),O(2,JHa,2,1,"ng-container",0));a&2&&(D("ngIf",b.formattedComment.getLiteralFormat()),B(1),D("ngIf",b.formattedComment.getMarkdownFormat()),B(1),D("ngIf",b.formattedComment.getPlainFormat()))},dependencies:[ux,nW,tW,uW],encapsulation:2,changeDetection:0});
var zW=function(a){Z.call(this,a)};V(zW,Z);g=zW.prototype;g.getFormattingMode=function(){return X(this,1,0)};g.setFormattingMode=function(a){l(this,1,a)};g.getSource=function(){return W(this,2)};g.setSource=function(a){return l(this,2,a)};g.hasSource=function(){return ej(this,2)};g.getIssueId=function(){return fj(this,3)};g.setIssueId=function(a){return l(this,3,a)};g.getIdPrefix=function(){return W(this,4)};g.setIdPrefix=function(a){l(this,4,a)};
g.toObject=function(){var a=null!=this?{formattingMode:n(p(this,1)),source:n(p(this,2)),issueId:n(p(this,3)),idPrefix:n(p(this,4)),audience:n(p(this,6))}:void 0;return a};zW.messageId="b.FormatCommentRequest";
var AW=function(a){Z.call(this,a,-1,G1b)};V(AW,Z);AW.prototype.getFormattedComment=function(){return m(this,Vm,1)};AW.prototype.getMentionsList=function(){return xb(this,XJ,2)};var G1b=[2];AW.prototype.toObject=function(){var a=null!=this?{formattedComment:uHb(void 0,this.getFormattedComment()),mentionsList:Hb(this.getMentionsList(),iIb)}:void 0;return a};AW.messageId="b.FormatCommentResponse";
var BW=function(a){this.executor=a};BW.prototype.format=function(a){return 3===a.formattingMode||""===a.comment.trim()?KHa(a):H1b(this,a).pipe(S(function(b){return b.getFormattedComment()||new Vm}))};
var I1b=function(a,b){if(3===b.formattingMode||""===b.comment.trim())return(0,U.of)([]);var c=new zW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Yk(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);c.setIdPrefix(b.idPrefix);return H1b(a,b).pipe(S(function(e){return e.getMentionsList().map(function(f){return Rl(f.getMentionedUser())||""})}))},H1b=function(a,b){var c=new zW;c.setSource(b.comment);var d;c.setIssueId(null!=(d=Yk(b.issueId))?d:0);l(c,6,b.audience);c.setFormattingMode(b.formattingMode);
c.setIdPrefix(b.idPrefix);return a.executor.post({url:"action/formatComment",body:c,responseConstructor:AW})};BW.\u0275fac=function(a){return new (a||BW)(t(pI))};BW.\u0275prov=lc({token:BW,factory:BW.\u0275fac,providedIn:"root"});
var CW=function(a){yI.call(this);var b=this;this.formatter=a;this.issueId=0;this.audience=2;this.formattingMode=3;this.params$=new U.ReplaySubject(1);this.formattedResult$=this.params$.pipe(Tf(200),ig(function(c){return b.formatter.format(c).pipe(J1b,Sf(function(){var d=esa(c.comment);return(0,U.of)({formattedComment:d,isFallback:!0})}))}))};V(CW,yI);CW.\u0275dir=yI.\u0275dir;
CW.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()})}))};CW.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()})};
CW.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueId+"-draft"};CW.\u0275fac=function(a){return new (a||CW)(C(BW))};
CW.\u0275cmp=w({type:CW,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[ie,Jc],decls:2,vars:3,consts:[[4,"ngIf"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(O(0,LHa,3,5,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.formattedResult$))},dependencies:[ux,yW,Fx],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:#fce8e6;background-color:var(--bad-bg);box-shadow:inset 0 0 0 2px #ea4335}[_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:transparent}\n/*# sourceMappingURL=live_preview.css.map */"],
changeDetection:0});var J1b=S(function(a){return{formattedComment:a,isFallback:!1}});
var DW=function(a,b,c){yI.call(this);var d=this;this.prefs=a;this.flags=b;this.links=c;this.change=new Jw;this.checkedSubject=new U.BehaviorSubject(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.flags.textDisplayPreferences$.pipe(jg(this.destroyed$)).subscribe(function(e){d.currentTextDisplayPreferences=e});this.flags.commentDisplayOverride$.pipe(jg(this.destroyed$)).subscribe(function(e){d.currentCommentDisplayOverride=
e})};V(DW,yI);DW.\u0275dir=yI.\u0275dir;DW.prototype.ngOnInit=function(){null!=this.initialValue?this.checkedSubject.next(2===this.initialValue):this.flags.lastPublishedMarkdown$.pipe(jg(this.destroyed$)).subscribe(this.checkedSubject)};DW.prototype.ngOnChanges=function(){null!=this.initialValue&&this.checkedSubject.next(2===this.initialValue)};DW.prototype.save=function(a){a=Object.assign({},this.currentTextDisplayPreferences,a);this.prefs.save({textDisplayPreferences:a}).pipe(jg(this.destroyed$)).subscribe()};
DW.\u0275fac=function(a){return new (a||DW)(C(VI),C(oW),C(dP))};
DW.\u0275cmp=w({type:DW,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},features:[ie,Jc],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&&(F(0,"mat-checkbox",0),J("change",function(d){var e=b.currentCommentDisplayOverride;d=d.checked?SBb:e?e:TBb;b.save({lastPublishMode:d});b.change.emit(Yma(d))}),Q(1,"async"),P(2," Markdown "),G(),O(3,MHa,2,2,"a",1));if(a&2){var c;D("checked",null!==(c=R(1,2,b.checkedSubject))&&void 0!==c?c:!1);B(3);D("ngIf",b.mdHelpLink)}},dependencies:[tO,ux,XE,sB,lF,Fx],
encapsulation:2,changeDetection:0});
var EW=function(a,b){yI.call(this);var c=this;this.appEvents=b;this.init=new Jw;a.textDisplayPreferencesSubject$.pipe(jg(this.destroyed$)).subscribe(function(d){switch(d.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":c.formattingModeOverride=3;break;case "MARKDOWN_FORMATTING_MODE":c.formattingModeOverride=2;break;case "PLAIN_FORMATTING_MODE":c.formattingModeOverride=1;break;case void 0:c.formattingModeOverride=void 0;break;default:sh(d.commentDisplayOverride)}})};V(EW,yI);EW.\u0275dir=yI.\u0275dir;
EW.prototype.ngOnInit=function(){};EW.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.audience=this.issueAccessLevel&&"INTERNAL"===this.issueAccessLevel?1:2;this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};EW.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next([this.issueId,this.note.commentNumber]);this.init.next(this)};EW.\u0275fac=function(a){return new (a||EW)(C(VI),C(BK))};
EW.\u0275cmp=w({type:EW,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId"},outputs:{init:"init"},features:[ie,Jc],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&&(F(0,"div",0)(1,"div",1),O(2,
NHa,1,1,"b-formatted-comment-presenter",2),G()(),O(3,OHa,1,5,"ng-template",null,3,Pf));if(a&2){var c=M(4);B(2);if(a=b.note.formattedComment)a=b.note.formattedComment,a=!a||b.formattingModeOverride?!1:a.hasLiteralFormat()&&3===b.formattingMode||a.hasPlainFormat()&&1===b.formattingMode||a.hasMarkdownFormat()&&2===b.formattingMode?!0:!1;D("ngIf",a)("ngIfElse",c)}},dependencies:[ux,yW,CW],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 K1b=new sd("MatInkBarPositioner",{providedIn:"root",factory:PHa}),FW=function(a,b,c,d){this._elementRef=a;this._ngZone=b;this._inkBarPositioner=c;this._animationMode=d},L1b=function(a,b){a.show();a._ngZone.onStable.pipe(Xf()).subscribe(function(){var c=a._inkBarPositioner(b),d=a._elementRef.nativeElement;d.style.left=c.left;d.style.width=c.width})};FW.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"};
FW.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"};FW.\u0275fac=function(a){return new (a||FW)(C(wd),C(qg),C(K1b),C(Xv,8))};FW.\u0275dir=w({type:FW,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(a,b){a&2&&te("_mat-animation-noopable","NoopAnimations"===b._animationMode)}});
var M1b=Ch("translateTab",[Fh("center, void, left-origin-center, right-origin-center",Eh({transform:"none"})),Fh("left",Eh({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Fh("right",Eh({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Gh("* => left, * => right, left => center, right => center",Dh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Gh("void => left-origin-center",[Eh({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),
Dh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Gh("void => right-origin-center",[Eh({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Dh("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])]);
var N1b=function(a){return{animationDuration:a}},O1b=function(a,b){return{value:a,params:b}},GW=function(a,b,c,d){RA.call(this,a,b,d);this._host=c;this._leavingSub=this._centeringSub=U.Subscription.EMPTY};V(GW,RA);
GW.prototype.ngOnInit=function(){var a=this;RA.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(hg(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()})};GW.prototype.ngOnDestroy=function(){RA.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};
GW.\u0275fac=function(a){return new (a||GW)(C(Kv),C(Ef),C(ic(function(){return HW})),C(hi))};GW.\u0275dir=w({type:GW,selectors:[["","matTabBodyHost",""]],features:[ie]});
var IW=function(a,b,c){var d=this;this._elementRef=a;this._dir=b;this._dirChangeSubscription=U.Subscription.EMPTY;this._translateTabComplete=new U.Subject;this._onCentering=new Jw;this._beforeCentering=new Jw;this._afterLeavingCenter=new Jw;this._onCentered=new Jw(!0);this.animationDuration="500ms";this.preserveContent=!1;b&&(this._dirChangeSubscription=b.change.subscribe(function(e){d._computePositionAnimationState(e);c.markForCheck()}));this._translateTabComplete.pipe(Wf(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=IW.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"};ji.Object.defineProperties(IW.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});
IW.\u0275fac=function(a){return new (a||IW)(C(wd),C(gA,8),C(nx))};IW.\u0275dir=w({type:IW,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var HW=function(a,b,c){IW.call(this,a,b,c)};V(HW,IW);HW.\u0275dir=IW.\u0275dir;
HW.\u0275fac=function(a){return new (a||HW)(C(wd),C(gA,8),C(nx))};
HW.\u0275cmp=w({type:HW,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&Hf(RA,5);if(a&2){var c;Gf(c=Jf())&&(b._portalHost=c.first)}},hostAttrs:[1,"mat-tab-body"],features:[ie],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(a,b){a&1&&(F(0,"div",0,1),J("@translateTab.start",function(c){return b._onTranslateTabStarted(c)})("@translateTab.done",function(c){return b._translateTabComplete.next(c)}),O(2,QHa,0,0,"ng-template",
2),G());a&2&&D("@translateTab",Pe(3,O1b,b._position,Oe(1,N1b,b.animationDuration)))},dependencies:[GW],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:[M1b]}});
var P1b=new sd("MAT_TABS_CONFIG");
var Q1b=new sd("MatTabContent");
var R1b=Vg({passive:!0}),JW=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 U.Subject;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new U.Subject;this._disablePagination=!1;this._selectedIndex=0;this.selectFocusedIndex=new Jw;this.indexFocused=new Jw;
e.runOutsideAngular(function(){(0,U.fromEvent)(a.nativeElement,"mouseleave").pipe(jg(k._destroyed)).subscribe(function(){k._stopInterval()})})};g=JW.prototype;g.ngAfterViewInit=function(){var a=this;(0,U.fromEvent)(this._previousPaginator.nativeElement,"touchstart",R1b).pipe(jg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("before")});(0,U.fromEvent)(this._nextPaginator.nativeElement,"touchstart",R1b).pipe(jg(this._destroyed)).subscribe(function(){a._handlePaginatorPress("after")})};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:(0,U.of)("ltr"),c=this._viewportRuler.change(150),d=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=Xz(aA(Zz(new fA(this._items),this._getLayoutDirection())));bA(this._keyManager,this._selectedIndex);this._ngZone.onStable.pipe(Xf()).subscribe(d);(0,U.merge)(b,c,this._items.changes,this._itemsResized()).pipe(jg(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=
Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));d()})});Zz(a._keyManager,a._getLayoutDirection())});this._keyManager.change.pipe(jg(this._destroyed)).subscribe(function(e){a.indexFocused.emit(e);a._setTabFocus(e)})};
g._itemsResized=function(){var a=this;return"function"!==typeof ResizeObserver?U.EMPTY:this._items.changes.pipe(hg(this._items),ig(function(b){return new U.Observable(function(c){return a._ngZone.runOutsideAngular(function(){var d=new ResizeObserver(function(){c.next()});b.forEach(function(e){d.observe(e.elementRef.nativeElement)});return function(){d.disconnect()}})})}),gg(1))};
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(){this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!fi(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)?L1b(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,U.timer)(650,100).pipe(jg((0,U.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}};
ji.Object.defineProperties(JW.prototype,{disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=bh(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=eh(a);this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&bA(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)}}});JW.\u0275fac=function(a){return new (a||JW)(C(wd),C(nx),C(vA),C(gA,8),C(qg),C(yy),C(Xv,8))};JW.\u0275dir=w({type:JW,inputs:{disablePagination:"disablePagination"}});
var S1b=mi(function(){}),KW=function(a){var b=S1b.call(this)||this;b.elementRef=a;return b};V(KW,S1b);KW.prototype.focus=function(){this.elementRef.nativeElement.focus()};KW.\u0275fac=function(a){return new (a||KW)(C(wd))};KW.\u0275dir=w({type:KW,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(oe("aria-disabled",!!b.disabled),te("mat-tab-disabled",b.disabled))},inputs:{disabled:"disabled"},features:[ie]});
var T1b=["tabListContainer"],U1b=["tabList"],V1b=["tabListInner"],W1b=["nextPaginator"],X1b=["previousPaginator"],LW=function(a,b,c,d,e,f,h){JW.call(this,a,b,c,d,e,f,h);this._disableRipple=!1};V(LW,JW);LW.prototype._itemSelected=function(a){a.preventDefault()};ji.Object.defineProperties(LW.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=bh(a)}}});
LW.\u0275fac=function(a){return new (a||LW)(C(wd),C(nx),C(vA),C(gA,8),C(qg),C(yy),C(Xv,8))};LW.\u0275dir=w({type:LW,inputs:{disableRipple:"disableRipple"},features:[ie]});var MW=function(a,b,c,d,e,f,h){LW.call(this,a,b,c,d,e,f,h)};V(MW,LW);MW.\u0275dir=LW.\u0275dir;MW.\u0275fac=function(a){return new (a||MW)(C(wd),C(nx),C(vA),C(gA,8),C(qg),C(yy),C(Xv,8))};
MW.\u0275cmp=w({type:MW,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&If(c,KW,4);if(a&2){var d;Gf(d=Jf())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Hf(FW,7),Hf(T1b,7),Hf(U1b,7),Hf(V1b,7),Hf(W1b,5),Hf(X1b,5));if(a&2){var c;Gf(c=Jf())&&(b._inkBar=c.first);Gf(c=Jf())&&(b._tabListContainer=c.first);Gf(c=Jf())&&(b._tabList=c.first);Gf(c=Jf())&&(b._tabListInner=c.first);Gf(c=Jf())&&(b._nextPaginator=c.first);Gf(c=Jf())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-header"],
hostVars:4,hostBindings:function(a,b){a&2&&te("mat-tab-header-pagination-controls-enabled",b._showPaginationControls)("mat-tab-header-rtl","rtl"==b._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ie],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&&(Ee(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),F(7,"div",7,8),Fe(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",
9,10),J("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&&(te("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),te("_mat-animation-noopable","NoopAnimations"===b._animationMode),B(6),te("mat-tab-header-pagination-disabled",b._disableScrollAfter),
D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[kB,Nz,FW],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:transparent;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 Y1b=new sd("MatTabLabel"),Z1b=new sd("MAT_TAB");
var $1b=mi(function(){}),a2b=new sd("MAT_TAB_GROUP"),NW=function(a,b){var c=$1b.call(this)||this;c._viewContainerRef=a;c._closestTabGroup=b;c.textLabel="";c._contentPortal=null;c._stateChanges=new U.Subject;c.position=null;c.origin=null;c.isActive=!1;return c};V(NW,$1b);NW.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};NW.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
NW.prototype.ngOnInit=function(){this._contentPortal=new NA(this._explicitContent||this._implicitContent,this._viewContainerRef)};NW.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};ji.Object.defineProperties(NW.prototype,{templateLabel:{configurable:!0,enumerable:!0,get:function(){return this._templateLabel},set:function(a){this._setTemplateLabelInput(a)}},content:{configurable:!0,enumerable:!0,get:function(){return this._contentPortal}}});
NW.\u0275fac=function(a){return new (a||NW)(C(Ef),C(a2b,8))};
NW.\u0275cmp=w({type:NW,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(If(c,Y1b,5),If(c,Q1b,7,Df));if(a&2){var d;Gf(d=Jf())&&(b.templateLabel=d.first);Gf(d=Jf())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&Hf(Df,7);if(a&2){var c;Gf(c=Jf())&&(b._implicitContent=c.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],
features:[Me([{provide:Z1b,useExisting:NW}]),ie,Jc],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(Ee(),O(0,RHa,1,0,"ng-template"))},encapsulation:2});
var b2b=["tabBodyWrapper"],c2b=["tabHeader"],d2b=0,e2b=function(){},f2b=ki(li(function(a){this._elementRef=a}),"primary"),OW=function(a,b,c,d){a=f2b.call(this,a)||this;a._changeDetectorRef=b;a._animationMode=d;a._tabs=new Kf;a._indexToSelect=0;a._lastFocusedTabIndex=null;a._tabBodyWrapperHeight=0;a._tabsSubscription=U.Subscription.EMPTY;a._tabLabelSubscription=U.Subscription.EMPTY;a._dynamicHeight=!1;a._selectedIndex=null;a.headerPosition="above";a._disablePagination=!1;a._preserveContent=!1;a.selectedIndexChange=
new Jw;a.focusChange=new Jw;a.animationDone=new Jw;a.selectedTabChange=new Jw(!0);a._groupId=d2b++;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};V(OW,f2b);g=OW.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(hg(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));Ff(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 e2b;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=U.merge.apply(null,v(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)};
ji.Object.defineProperties(OW.prototype,{dynamicHeight:{configurable:!0,enumerable:!0,get:function(){return this._dynamicHeight},set:function(a){this._dynamicHeight=bh(a)}},selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){this._indexToSelect=eh(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=eh(a,null)}},disablePagination:{configurable:!0,enumerable:!0,get:function(){return this._disablePagination},set:function(a){this._disablePagination=bh(a)}},preserveContent:{configurable:!0,enumerable:!0,get:function(){return this._preserveContent},set:function(a){this._preserveContent=bh(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}}});OW.\u0275fac=function(a){return new (a||OW)(C(wd),C(nx),C(P1b,8),C(Xv,8))};
OW.\u0275dir=w({type:OW,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:[ie]});
var PW=function(a,b,c,d){return OW.call(this,a,b,c,d)||this};V(PW,OW);PW.\u0275dir=OW.\u0275dir;PW.\u0275fac=function(a){return new (a||PW)(C(wd),C(nx),C(P1b,8),C(Xv,8))};
PW.\u0275cmp=w({type:PW,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&If(c,NW,5);if(a&2){var d;Gf(d=Jf())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(Hf(b2b,5),Hf(c2b,5));if(a&2){var c;Gf(c=Jf())&&(b._tabBodyWrapper=c.first);Gf(c=Jf())&&(b._tabHeader=c.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(a,b){a&2&&te("mat-tab-group-dynamic-height",b.dynamicHeight)("mat-tab-group-inverted-header","below"===b.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},
exportAs:["matTabGroup"],features:[Me([{provide:a2b,useExisting:PW}]),ie],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&&(F(0,"mat-tab-header",0,1),J("indexFocused",function(c){return b._focusChanged(c)})("selectFocusedIndex",function(c){return b.selectedIndex=c}),O(2,VHa,5,15,"div",2),G(),F(3,"div",3,4),O(5,WHa,1,11,"mat-tab-body",5),G());a&2&&(D("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),B(2),D("ngForOf",b._tabs),B(1),te("_mat-animation-noopable",
"NoopAnimations"===b._animationMode),B(2),D("ngForOf",b._tabs))},dependencies:[xx,yx,ux,RA,kB,Jz,KW,HW,MW],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 g2b=["tabListContainer"],h2b=["tabList"],i2b=["tabListInner"],j2b=["nextPaginator"],k2b=["previousPaginator"],l2b=0,QW=function(a,b,c,d,e,f,h){JW.call(this,a,d,e,b,c,f,h);this._disableRipple=!1;this.color="primary"};V(QW,JW);QW.prototype._itemSelected=function(){};QW.prototype.ngAfterContentInit=function(){var a=this;this._items.changes.pipe(hg(null),jg(this._destroyed)).subscribe(function(){m2b(a)});JW.prototype.ngAfterContentInit.call(this)};
var m2b=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()}};QW.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};
ji.Object.defineProperties(QW.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=bh(a)}}});
QW.\u0275fac=function(a){return new (a||QW)(C(wd),C(gA,8),C(qg),C(nx),C(vA),C(yy),C(Xv,8))};QW.\u0275dir=w({type:QW,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[ie]});var RW=function(a,b,c,d,e,f,h){QW.call(this,a,b,c,d,e,f,h)};V(RW,QW);RW.\u0275dir=QW.\u0275dir;RW.\u0275fac=function(a){return new (a||RW)(C(wd),C(gA,8),C(qg),C(nx),C(vA),C(yy),C(Xv,8))};
RW.\u0275cmp=w({type:RW,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&If(c,SW,5);if(a&2){var d;Gf(d=Jf())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(Hf(FW,7),Hf(g2b,7),Hf(h2b,7),Hf(i2b,7),Hf(j2b,5),Hf(k2b,5));if(a&2){var c;Gf(c=Jf())&&(b._inkBar=c.first);Gf(c=Jf())&&(b._tabListContainer=c.first);Gf(c=Jf())&&(b._tabList=c.first);Gf(c=Jf())&&(b._tabListInner=c.first);Gf(c=Jf())&&(b._nextPaginator=c.first);Gf(c=Jf())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-tab-nav-bar",
"mat-tab-header"],hostVars:11,hostBindings:function(a,b){a&2&&(oe("role",b._getRole()),te("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:[ie],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&&(Ee(),F(0,"button",0,1),J("click",function(){return b._handlePaginatorClick("before")})("mousedown",function(c){return b._handlePaginatorPress("before",c)})("touchend",function(){return b._stopInterval()}),H(2,"div",2),G(),F(3,"div",3,4),J("keydown",function(c){return b._handleKeydown(c)}),F(5,"div",5,6),J("cdkObserveContent",function(){return b._onContentChanges()}),
F(7,"div",7,8),Fe(9),G(),H(10,"mat-ink-bar"),G()(),F(11,"button",9,10),J("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&&(te("mat-tab-header-pagination-disabled",b._disableScrollBefore),D("matRippleDisabled",b._disableScrollBefore||b.disableRipple)("disabled",b._disableScrollBefore||null),B(5),te("_mat-animation-noopable","NoopAnimations"===b._animationMode),
B(6),te("mat-tab-header-pagination-disabled",b._disableScrollAfter),D("matRippleDisabled",b._disableScrollAfter||b.disableRipple)("disabled",b._disableScrollAfter||null))},dependencies:[kB,Nz,FW],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:transparent;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:transparent}.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 n2b=ni(li(mi(function(){}))),TW=function(a,b,c,d,e,f){var h=n2b.call(this)||this;h._tabNavBar=a;h.elementRef=b;h._focusMonitor=e;h._isActive=!1;h.id="mat-tab-link-"+l2b++;h.rippleConfig=c||{};h.tabIndex=parseInt(d)||0;"NoopAnimations"===f&&(h.rippleConfig.animation={enterDuration:0,exitDuration:0});return h};V(TW,n2b);g=TW.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};
ji.Object.defineProperties(TW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a=bh(a);a!==this._isActive&&(this._isActive=a,m2b(this._tabNavBar))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});TW.\u0275fac=function(a){return new (a||TW)(C(QW),C(wd),C(Hqb,8),fd("tabindex"),C(Hz),C(Xv,8))};
TW.\u0275dir=w({type:TW,inputs:{active:"active",id:"id"},features:[ie]});var SW=function(a,b,c,d,e,f,h,k){a=TW.call(this,a,b,e,f,h,k)||this;a._tabLinkRipple=new iB(a,c,b,d);Gqb(a._tabLinkRipple,b.nativeElement);return a};V(SW,TW);SW.prototype.ngOnDestroy=function(){TW.prototype.ngOnDestroy.call(this);this._tabLinkRipple._removeTriggerEvents()};SW.\u0275fac=function(a){return new (a||SW)(C(RW),C(wd),C(qg),C(yy),C(Hqb,8),fd("tabindex"),C(Hz),C(Xv,8))};
SW.\u0275dir=w({type:SW,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&J("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(oe("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()),te("mat-tab-disabled",
b.disabled)("mat-tab-label-active",b.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[ie]});
var UW=function(){};UW.\u0275fac=function(a){return new (a||UW)};UW.\u0275mod=Cc({type:UW});UW.\u0275inj=mc({imports:[Mx,XA,SA,oB,Oz,Qz,XA]});
var VW=function(){};[].concat(v([DW,mW,nW,tW,yW,CW,uW,qW,lW,kW,rW,EW]),[vW,wW,xW]);VW.\u0275fac=function(a){return new (a||VW)};VW.\u0275mod=Cc({type:VW});VW.\u0275inj=mc({imports:[yO,nK,Mx,WA,iQ,XO,HS,UW,pF,uG,mH,lS,nS,ON]});
var o2b=["textarea"],p2b=["hiddenInput"],q2b=["autocompleteUnderlay"],r2b=Symbol(),WW=function(a,b,c){yI.call(this);this.codefont=a;this.activeSession=b;this.window=c;this.textareaClass=[];this.disabled=!1;this.contentChange=new Jw;this.focus=new Jw;this.blur=new Jw;this.autoResize=new Jw;this.manualResize$=new Jw;this.autocompleteUserName="";this.scrollPosition=this.autocompleteLeft=this.autocompleteTop=0;this.taggingInProgress=!1;this.wordInfo={wordStart:0,wordEnd:0,word:""};this.textAreaLastAtSymbolLocation=
this.textAreaLastCursorLocation=0};V(WW,yI);WW.\u0275dir=yI.\u0275dir;WW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?Dp(a).classList.add("codefont"):Dp(a).classList.remove("codefont")}))};WW.prototype.ngOnDestroy=function(){yI.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};WW.prototype.setValue=function(a){Dp(this).value!==a&&(Dp(this).value=a,this.manualResize$.next())};
WW.prototype.getValue=function(){return Dp(this).value};var Dp=function(a){return a.textareaRef.nativeElement},Fp=function(a){var b;return null==(b=a.hiddenInputRef)?void 0:b.nativeElement},Cp=function(a){return a.activeSession.isInternalSession()&&1===a.audience},s2b=function(a){var b;return null==(b=a.autocompleteUnderlayRef)?void 0:b.nativeElement},t2b=function(a){var b=Dp(a).selectionStart;a.wordInfo=a.findWord(a.getValue(),b)};
WW.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 u2b=function(a){return"ArrowDown"===a.key||"ArrowUp"===a.key||"Enter"===a.key||"Escape"===a.key||"Tab"===a.key},v2b=function(a){var b=s2b(a);a=Dp(a);b&&a&&(b.scrollTop=a.scrollTop)},Ep=function(a){a.taggingInProgress=!1;a.autocompleteUserName=""},XHa=function(a,b){b=void 0===b?!1:b;var c=Dp(a),d=Dp(a).value,e,f=null==(e=Fp(a))?void 0:e.value;e=null==f?void 0:f.length;t2b(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};WW.prototype[r2b]=function(){return this.findWord};WW.\u0275fac=function(a){return new (a||WW)(C(jQ),C(yH),C(jM))};
WW.\u0275cmp=w({type:WW,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(Hf(o2b,7),Hf(p2b,5),Hf(q2b,5));if(a&2){var c;Gf(c=Jf())&&(b.textareaRef=c.first);Gf(c=Jf())&&(b.hiddenInputRef=c.first);Gf(c=Jf())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&J("click",function(){Ep(b)},!1,qda)("keyup",function(c){var d=c.key;c=c.target.classList.contains("autocomplete-hidden-input");"Escape"===d&&c&&(Ep(b),Dp(b).focus())},!1,qda)},inputs:{textareaClass:"textareaClass",
disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",audience:"audience"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},features:[ie],decls:7,vars:11,consts:[[1,"pos-rel","comment-box-container",3,"keydown"],["commentBoxContainer",""],["aria-label","Comment box","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&&(F(0,
"div",0,1),J("keydown",function(c){"Escape"===c.key&&(Ep(b),Dp(b).focus())}),F(2,"textarea",2,3),J("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(Cp(b)&&u2b(c)&&b.taggingInProgress){null==c||c.preventDefault();var d;null==(d=Fp(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=Fp(b))||k.dispatchEvent(c)}})("keyup",function(c){if(Cp(b)){var d=Dp(b),e=null==d?void 0:d.value;b.textAreaLastCursorLocation=d.selectionStart;b.textAreaLastAtSymbolLocation=e.slice(0,b.textAreaLastCursorLocation).lastIndexOf("@");if(!u2b(c)){c=c.target;b.scrollPosition=c.scrollTop;t2b(b);var f=b.wordInfo.word;d="@"===f;e=f.startsWith("@");var h=f.slice(f.length-
1).match(/[a-z]/i);f=Tta.test(f.slice(1));if(d||e&&h&&!f){c=c.selectionStart;if(!b.taggingInProgress){if(d=s2b(b)){d.textContent=b.getValue();e=s2b(b);h=Dp(b);f="height width font-family margin line-height padding border".split(" ");if(e&&h){h=b.window.getComputedStyle(h);f=r(f);for(var k=f.next();!k.done;k=f.next()){k=k.value;var q=h.getPropertyValue(k);e.style.setProperty(k,q)}}v2b(b)}d=null==d?void 0:d.firstChild;e=null==d?void 0:d.textContent;d&&e&&c&&(e=new Range,e.setStart(d,c),e.setEnd(d,c),
c=document.createElement("span"),e.deleteContents(),e.insertNode(c),d=c.getBoundingClientRect(),b.autocompleteTop=d.top,b.autocompleteLeft=d.left,c.remove())}b.taggingInProgress=!0}else b.taggingInProgress=!1;if(b.taggingInProgress){b.autocompleteUserName=b.wordInfo.word.slice(1);var u;null==(u=Fp(b))||u.dispatchEvent(new KeyboardEvent("keydown"))}}}})("scroll",function(){return v2b(b)}),G(),F(4,"span",4),O(5,YHa,2,1,"input",5),G(),O(6,ZHa,2,0,"div",6),G());a&2&&(B(2),D("autoResize",b.manualResize$)("ngClass",
b.textareaClass)("disabled",b.disabled),oe("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),se("top",b.autocompleteTop+"px")("left",b.autocompleteLeft+"px"),B(1),D("ngIf",b.taggingInProgress),B(1),D("ngIf",Cp(b)))},dependencies:[xx,ux,HU,jW],encapsulation:2,changeDetection:0});
var w2b=function(a){return{"draft-markdown":a}},XW=function(a,b,c){yI.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()}};V(XW,yI);XW.\u0275dir=yI.\u0275dir;XW.prototype.ngOnInit=function(){this.subscriptions.add(this.events.commentSubmitted.subscribe(this.onCommentSubmitted))};
XW.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+56+"px"};XW.\u0275fac=function(a){return new (a||XW)(C(uI,2),C(wd),C(BK))};
XW.\u0275cmp=w({type:XW,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&Hf(PW,7);if(a&2){var c;Gf(c=Jf())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[Me([uI]),ie],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&&(F(0,"mat-tab-group",
0),J("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),F(1,"mat-tab",1),O(2,$Ha,1,0,"ng-container",2),G(),F(3,"mat-tab",3),O(4,aIa,1,0,"ng-container",2),G()());a&2&&(D("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),D("ngTemplateOutlet",b.editArea),B(1),D("disabled",b.previewDisabled),B(1),D("ngTemplateOutlet",b.previewArea))},dependencies:[Ex,PW,NW],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}\n/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});var YW=function(a,b,c,d){yI.call(this);this.codefont=a;this.ngZone=b;this.prefs=c;this.hotkeys=d;this.isMarkdown$=this.prefs.lastPublishMode$.pipe(S(function(e){return e===SBb}));this.idPrefix="b-draft";this.content="";this.issueId=0;this.textareaClass=[];this.disabled=!1;this.audience=2;this.init=new Jw;this.contentChange=new Jw;this.focus=new Jw;this.blur=new Jw;this.autoResize=new Jw;this.onSubmit=new Jw};V(YW,yI);YW.\u0275dir=yI.\u0275dir;
YW.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
YW.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 x2b=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&Dp(a.commentDraftTextarea).focus()})};YW.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};YW.\u0275fac=function(a){return new (a||YW)(C(jQ),C(qg),C(VI),C(bJ))};
YW.\u0275cmp=w({type:YW,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(Hf(WW,5),Hf(XW,5));if(a&2){var c;Gf(c=Jf())&&(b.commentDraftTextarea=c.first);Gf(c=Jf())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",issueId:"issueId",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel"},outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},
features:[ie,Jc],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&&(F(0,"b-comment-draft-textarea",0),J("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()}),Q(1,"async"),G());a&2&&D("textareaClass",b.textareaClass)("ngClass",
Oe(8,w2b,R(1,6,b.isMarkdown$)))("disabled",b.disabled)("placeholder",b.placeholder)("idForAriaLabel",b.idForAriaLabel)("audience",b.audience)},dependencies:[xx,WW,Fx],styles:["body   [_nghost-%COMP%]     textarea{resize:none}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}\n/*# sourceMappingURL=comment_draft.css.map */"],
changeDetection:0});
var ZW=function(){};[].concat(v([jW,YW,WW]),[XW]);ZW.\u0275fac=function(a){return new (a||ZW)};ZW.\u0275mod=Cc({type:ZW});ZW.\u0275inj=mc({imports:[yO,Mx,IU,wy,WA,iQ,XO,HS,UW,pF,uG,mH,gQ]});
var y2b=["commentBoxContainer"],z2b=function(a){return{focused:a}},A2b=function(){return[]},$W=function(a,b,c,d,e){this.analytics=a;this.hotkeys=b;this.userPreferencesManager=c;this.appEvents=e;this.MARKDOWN=2;this.commentChange=new Jw;this.supportsPreview=!1;this.loadFormatFromPrefs=!0;this.disabled=!1;this.showToolbar=!0;this.attachmentsDisabled=!1;this.onChange=new Jw;this.onFocusEvent=new Jw;this.onSubmit=new Jw;this.onRestrict=new Jw;this.focused=!1;this.commentRebound$=new U.ReplaySubject(1);
this.destroyed$=new U.ReplaySubject(1);this.createRestrictedResourcesComponentWhitelist=ob(d.config,13)};g=$W.prototype;g.ngOnDestroy=function(){var a;null==(a=this.comment)||MQb(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;(0,U.merge)(this.userPreferencesManager.lastPublishModeProto$,this.commentRebound$).pipe(lg(this.userPreferencesManager.lastPublishModeProto$),jg(this.destroyed$)).subscribe(function(b){b=r(b);b.next();b=b.next().value;a.comment&&a.loadFormatFromPrefs&&(a.comment.formattingMode=b,a.commentChange.emit(a.comment))});this.appEvents.focusCommentBox.pipe(jg(this.destroyed$)).subscribe(function(b){Sab(a,b)});this.appEvents.scrollToCommentBox.pipe(jg(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 lqa(Dl(c))};g.isRestricted=function(){var a,b;return 1!==(null!=(b=null==(a=this.judgementForNewContent)?void 0:a.getSeverity())?b:1)};var Sab=function(a,b){(b=void 0===b?"":b)&&Zn(a.analytics,"commentBox","takeFocus",b);a.scrollIntoView();var c;null==(c=a.commentDraftComponent)||x2b(c)};
$W.prototype.scrollIntoView=function(){var a;null==(a=this.commentBoxContainer)||a.nativeElement.scrollIntoView()};$W.prototype.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};$W.prototype.onBlur=function(){this.focused=!1};$W.prototype.onKeydown=function(a){this.hotkeys.isEnabled()&&("Enter"!==a.key||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a.shiftKey))};$W.\u0275fac=function(a){return new (a||$W)(C(FM),C(bJ),C(VI),C(yH),C(BK))};
$W.\u0275cmp=w({type:$W,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(Hf(YW,5),Hf(y2b,5),Hf(NV,5));if(a&2){var c;Gf(c=Jf())&&(b.commentDraftComponent=c.first);Gf(c=Jf())&&(b.commentBoxContainer=c.first);Gf(c=Jf())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",componentId:"componentId",loadFormatFromPrefs:"loadFormatFromPrefs",placeholder:"placeholder",judgementForNewContent:"judgementForNewContent",audience:"audience",
disabled:"disabled",showToolbar:"showToolbar",idForAriaLabel:"idForAriaLabel",attachmentsDisabled:"attachmentsDisabled"},outputs:{commentChange:"commentChange",onChange:"onChange",onFocusEvent:"onFocusEvent",onSubmit:"onSubmit",onRestrict:"onRestrict"},features:[Jc],ngContentSelectors:["*"],decls:7,vars:14,consts:[[1,"bv2-comment-box-container",3,"ngClass"],["commentBoxContainer",""],[1,"bv2-comment-textarea-wrapper"],[3,"issueId","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"],[1,"goog-inline-block","vertical-centered"],[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&&(Ee(),F(0,"div",0,1)(2,"div",2)(3,"b-comment-draft",3),J("contentChange",function(d){if(b.comment){var e=b.comment.value;b.comment.value=d;d!==e&&b.onChange&&(b.commentChange.emit(b.comment),b.onChange.emit())}})("focus",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("keydown",
function(d){return b.onKeydown(d)})("paste",function(d){if(d&&null!=d.clipboardData){var e=d.clipboardData;for(var f=!1,h=!1,k=0,q=0;q<e.types.length;q++)"text/plain"===e.types[q]?f=!0:"Files"===e.types[q]&&(h=!0,k=q);h&&e.items&&e.files?(h=e.files[0],k=e.items[k].type.replace(/^.*[/]/,""),f?(e=e.getData("text/plain"),e=e.replace(/^.*[\\\/]/,"")):e=(new Date).toString()+"."+k,e={file:h,filename:e}):e=void 0;e&&(d.preventDefault(),d=new File([e.file],e.filename,{type:e.file.type}),d=b.attachmentUploader.upload(d),
b.comment&&b.comment.uploads.push(d))}}),G()(),F(4,"b-attachment-uploader",4),J("onUploadCancel",function(d){b.comment&&za(b.comment.uploads,d)}),G(),O(5,dIa,8,4,"div",5),G(),O(6,eIa,2,4,"div",6));if(a&2){var c;D("ngClass",Oe(11,z2b,b.focused));B(3);D("issueId",b.issueId||0)("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",b.disabled?"bv2-disabled":"")("audience",b.audience)("idForAriaLabel",b.idForAriaLabel);B(1);D("uploads",null!==(c=null==b.comment?
null:b.comment.uploads)&&void 0!==c?c:Ne(13,A2b));B(1);D("ngIf",b.showToolbar);B(1);D("ngIf",b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN)}},dependencies:[xx,ux,YW,lF,CW,iW,JV,NV,rB,XE],encapsulation:2});
var B2b=["dialog"],aX=function(a,b,c){yI.call(this);this.matDialog=a;this.activeSession=b;this.hotkeys=c;this.comment=new HR;this.save=new Jw;this.close=new Jw;this.externalWarnings=[];this.issueEditBuilder=null;this.FocusableField=C2b;this.issueStates=HJb};V(aX,yI);aX.\u0275dir=yI.\u0275dir;
aX.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new CZb(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&fIa(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});DB(this.matDialogRef).pipe(jg(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};aX.\u0275fac=function(a){return new (a||aX)(C(PB),C(yH),C(bJ))};
aX.\u0275cmp=w({type:aX,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&Hf(B2b,5);if(a&2){var c;Gf(c=Jf())&&(b.dialog=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[ie],decls:2,vars:0,consts:[["dialog",""],["statusForm","ngForm"],["mat-dialog-title",""],["mat-dialog-content",""],["class","bv2-modal-form",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"]],template:function(a){a&1&&O(0,uIa,13,4,"ng-template",null,0,Pf)},
dependencies:[yx,ux,Ax,Bx,Cx,QB,RB,SB,TB,BS,iy,Qg,by,cy,sy,hy,fy,rB,BH,bF,$E,eF,HU,$W],encapsulation:2});var C2b={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};
var bX=function(a){var b;a=null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel;return"EXTERNAL_PARTNER"===a||"EXTERNAL_PUBLIC"===a},D2b=function(a){var b;return"EXTERNAL_PARTNER"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},cX=function(a){var b;return"EXTERNAL_PUBLIC"===(null==a?void 0:null==(b=a.accessLimit)?void 0:b.accessLevel)},E2b=function(a,b){return a?a.join(" > "):String(b)},F2b=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 dX=function(a,b,c){this.userAccess=a;this.errorHandler=b;this.data=c;this.issuesToFlag=[];this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1;this.issuesToFlag=c.issuesToFlag};dX.prototype.ngOnInit=function(){G2b(this,this.issuesToFlag)};
var G2b=function(a,b){0>=b.length?a.permissionsCheckComplete=!0:gK(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);G2b(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};dX.\u0275fac=function(a){return new (a||dX)(C(fK),C(xK),C(NB))};
dX.\u0275cmp=w({type:dX,selectors:[["b-bulk-flag-as-spam-dialog"]],decls:16,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],[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&&(F(0,"h1",0),P(1,"Flag Issues as Spam"),
G(),F(2,"div",1)(3,"div",2)(4,"p"),P(5),G(),F(6,"p"),P(7," This operation cannot be undone in bulk. "),G()(),F(8,"div",3),O(9,vIa,3,2,"div",4),O(10,xIa,5,2,"div",4),G()(),F(11,"div",5)(12,"button",6),P(13," Close "),G(),F(14,"button",7),P(15," Flag as Spam "),G()());a&2&&(B(5),Je(" Flagging these ",b.issuesToFlag.length," issues as spam will not cause them to be deleted, rather they will simply drop out of regular search results. They need to be kept around to train anti-abuse models. "),B(4),D("ngIf",
!b.permissionsCheckComplete),B(1),D("ngIf",b.permissionsCheckComplete&&0<b.protectedIssues.length),B(4),D("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[yx,ux,rB,QB,RB,SB,TB],encapsulation:2});
var eX=function(a,b){this.cdr=a;this.dialogRef=b;this.component=null};eX.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};eX.prototype.save=function(){this.dialogRef.close(this.component)};eX.prototype.cancel=function(){this.dialogRef.close()};eX.\u0275fac=function(a){return new (a||eX)(C(uI,2),C(CB))};
eX.\u0275cmp=w({type:eX,selectors:[["b-bulk-move-dialog"]],features:[Me([uI])],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&&(F(0,"h1",0),P(1,"Change Component"),G(),F(2,"mat-dialog-content")(3,"p"),P(4,"Choose new component for these issues."),G(),F(5,"p",1),P(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(),F(7,"b-team-component-picker",2),J("selectedComponentChange",function(c){return b.updateComponent(null!==c&&void 0!==c?c:null)}),G()(),F(8,"mat-dialog-actions")(9,"button",3),J("click",function(){return b.cancel()}),P(10," Cancel "),G(),F(11,"button",4),J("click",function(){return b.save()}),P(12," Save "),G()());a&2&&(B(7),D("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),D("disabled",null==b.component))},dependencies:[rB,RB,SB,TB,oV],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}[_nghost-%COMP%]     .bv2-component-picker{width:100%}"]});
var fX=function(a,b){this.data=a;this.dialogRef=b;this.fieldDisplayName=this.removeItems=this.addItems="";this.fieldDisplayName=a.fieldDisplayName};fX.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};fX.prototype.close=function(){this.dialogRef.close()};fX.\u0275fac=function(a){return new (a||fX)(C(NB),C(CB))};
fX.\u0275cmp=w({type:fX,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&&(F(0,"h1",0),P(1),G(),F(2,"mat-dialog-content")(3,"p"),P(4),G(),F(5,"div",1)(6,"mat-form-field")(7,"mat-label"),P(8),G(),F(9,"input",2),J("ngModelChange",function(c){return b.addItems=c}),G()(),
H(10,"br"),F(11,"mat-form-field")(12,"mat-label"),P(13),G(),F(14,"input",2),J("ngModelChange",function(c){return b.removeItems=c}),G()()()(),F(15,"mat-dialog-actions")(16,"button",3),J("click",function(){return b.close()}),P(17," Cancel "),G(),F(18,"button",4),J("click",function(){return b.save()}),P(19," Save "),G()());a&2&&(B(1),Je("Edit ",b.fieldDisplayName,""),B(3),Je("Enter ",b.fieldDisplayName," to add or remove"),B(4),Je(" ",b.fieldDisplayName," to Add "),B(1),D("ngModel",b.addItems),B(4),
Je(" ",b.fieldDisplayName," to Remove "),B(1),D("ngModel",b.removeItems))},dependencies:[Qg,by,hy,rB,eC,bC,gC,RB,SB,TB],encapsulation:2});
var H2b=["hotlistFilterInput"],I2b=["hotlistCreate"],J2b=["hotlistApply"],K2b=["hotlistLoad"],L2b=["menuitem"],gX=function(a,b,c,d,e,f){yI.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 Jw;this.onApply=new Jw;this.onLoad=new Jw;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()};V(gX,yI);gX.\u0275dir=yI.\u0275dir;gX.prototype.ngAfterViewInit=function(){var a=this,b;null==(b=this.trigger)||b.menuOpened.pipe(jg(this.destroyed$)).subscribe(function(){(0,U.timer)(0).pipe(jg(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;null==(c=this.trigger)||c.menuClosed.pipe(jg(this.destroyed$)).subscribe(function(){M2b(a)})};
gX.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};gX.prototype.ngOnChanges=function(){N2b(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;hX(this)};
var N2b=function(a){var b={};oja(a.selectedHotlistMap);if(a.choices){a.validHotlistIds.clear();for(var c=r(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=r(a.selectedHotlistIds);for(var e=d.next();!e.done;e=d.next())if(e=e.value){e=r(e);for(var f=e.next();!f.done;f=e.next())b[f.value]++}d=r(Object.entries(b));for(e=d.next();!e.done;e=d.next())f=r(e.value),e=f.next().value,f=f.next().value,
a.selectedHotlistMap[Number(e)]=f?f===c?!0:null:!1;Ma(a.choices,function(h,k){var q=b[h.hotlistId],u=b[k.hotlistId];return q>u?-1:q<u?1:Yt(h.name,k.name)})}}};gX.prototype.open=function(){xi(this.trigger);this.cdr.detectChanges()};gX.prototype.close=function(){this.trigger.closeMenu()};
gX.prototype.hasAclToEdit=function(a){var b=this;if(lja(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];gK(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Hp=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return void 0===a?!0:!a},Ip=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=null===c?!0:!c;Jp(a);a.close()},Jp=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},hX=function(a){for(var b=a.filterText,c=!1,d=r(a.choices),e=d.next();!e.done;e=d.next())e=e.value,a.shouldShowHotlist[e.hotlistId]=pa(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=!/[^0-9]/.test(Ri(b))&&!!b&&!!a.onLoad},M2b=function(a){a.trigger.menuOpen||(N2b(a),a.filterText="",hX(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},O2b=function(a){var b=a.selectedHotlistIds;return b&&1===b.length?"Hotlists ("+haa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
gX.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",hX(this),this.onCreate.emit({name:b,successCallback:function(c){Ip(a,c)},errorCallback:function(){uK(a.butterBar,"Failed to create hotlist "+b)}}))};
gX.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){Zn(this.analytics,"hotlistPicker","loadHotlist");tK(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";hX(this);for(var c=Ki(b),d=r(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){Ip(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Ip(a,f)},errorCallback:function(){uK(a.butterBar,"Failed to load hotlist "+b)}})}};
var yIa=function(a,b){Hp(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.focusFilterBox(),a.pendingChanges=!Ei(a.oldSelectedHotlistMap,a.selectedHotlistMap))},U2b=function(a,b){b=void 0===b?0:b;var c=iX(a).filter(function(e,f){return f>a.focusedRowIndex&&a.shouldShowHotlist[Number(e.id.substring(13))]}),d=a.choices.length;c.length?(b=b>=c.length?c[c.length-1]:c[b],a.focusedRowIndex=ua(iX(a),b),P2b(a),Q2b(a,b)):a.focusedRowIndex<d&&a.canCreate?R2b(a,d):a.focusedRowIndex<
d+1&&a.canLoad?S2b(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&T2b(a,d)},iX=function(a){return a.menuItems.map(function(b){return b.nativeElement})},V2b=function(a,b){b=void 0===b?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)R2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)S2b(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)R2b(a,a.choices.length);else{var c=iX(a).filter(function(d,e){return e<a.focusedRowIndex&&a.shouldShowHotlist[Number(d.id.substring(13))]});
c.length?(b=b>=c.length?c[0]:c[c.length-b-1],a.focusedRowIndex=ua(iX(a),b),P2b(a),Q2b(a,b)):(a.focusedRowIndex=-1,Q2b(a,null))}},Q2b=function(a,b){a.filterElement&&aJ(a.filterElement.nativeElement,b);a.focusFilterBox()},R2b=function(a,b){a.focusedRowIndex=b;aJ(a.filterElement.nativeElement,null);var c;null==(c=a.createElement)||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},S2b=function(a,b){a.focusedRowIndex=b+1;aJ(a.filterElement.nativeElement,null);var c;
null==(c=a.loadElement)||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},T2b=function(a,b){a.focusedRowIndex=b+2;aJ(a.filterElement.nativeElement,null);var c;null==(c=a.applyElement)||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},P2b=function(a){-1===a.focusedRowIndex||a.focusedRowIndex>=a.choices.length||(a=iX(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},zIa=function(a){return null==
a?"mixed":a.toString()},AIa=function(a){return null==a?"indeterminate":a?"checked":"unchecked"};gX.\u0275fac=function(a){return new (a||gX)(C(Pz),C(sK),C(fK),C(FM),C(yH),C(uI,2))};
gX.\u0275cmp=w({type:gX,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(Hf(eF,5),Hf(H2b,5),Hf(I2b,5),Hf(J2b,5),Hf(K2b,5),Hf(L2b,5));if(a&2){var c;Gf(c=Jf())&&(b.trigger=c.first);Gf(c=Jf())&&(b.filterElement=c.first);Gf(c=Jf())&&(b.createElement=c.first);Gf(c=Jf())&&(b.applyElement=c.first);Gf(c=Jf())&&(b.loadElement=c.first);Gf(c=Jf())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[Me([uI]),ie,Jc],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&&(F(0,"button",0)(1,"span",1),P(2),G(),H(3,"b-icon",2),G(),F(4,"mat-menu",null,3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"input",7,8),J("ngModelChange",function(d){return b.filterText=d})("ngModelChange",
function(){return hX(b)})("mousedown",function(d){return d.stopPropagation()})("blur",function(){return M2b(b)})("click",function(d){return d.stopPropagation()})("keydown",function(d){d.stopImmediatePropagation();"Escape"===d.key?b.close():"ArrowDown"===d.key?(U2b(b),d.preventDefault()):"ArrowUp"===d.key?(V2b(b),d.preventDefault()):"PageUp"===d.key?V2b(b,11):"PageDown"===d.key?U2b(b,11):" "===d.key?-1===b.focusedRowIndex||b.focusedRowIndex>=b.choices.length||(yIa(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(),Jp(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Ip(b,b.choices[b.focusedRowIndex]))}),G()()(),H(11,"mat-divider"),O(12,FIa,11,8,"ng-template",9),G()());if(a&2){var c=M(5);D("matMenuTriggerFor",c)("disabled",b.isAnonymous);B(2);Ke(O2b(b));B(7);D("ngModel",b.filterText)}},dependencies:[yx,
ux,bF,$E,eF,ZE,rB,Qg,by,ty,hy,lB,lF,$H,BH],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 jX=function(a){this.issuesApi=a};jX.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,s:void 0===a.sort?null:a.sort,count:void 0===a.count?null:a.count,p:void 0===a.page?null:a.page})};jX.\u0275fac=function(a){return new (a||jX)(t(bK))};jX.\u0275prov=lc({token:jX,factory:jX.\u0275fac,providedIn:"root"});
var kX=function(a,b,c,d){this.activeSession=a;this.issueApi=b;this.analytics=c;this.errorHandler=d;this.onCc=new Jw};kX.prototype.ngOnInit=function(){};
kX.prototype.toggle=function(){var a=this;Zn(this.analytics,"issueCard","click","cc "+(this.ccState?"REMOVE":"ADD"));this.onCc.emit(!this.ccState);if(this.ccState)this.ccState=!1,this.issueApi.unCcUser(this.issueId).then(function(){}).catch(function(c){a.ccState=!0;a.errorHandler.errorHandler(null,c)});else{this.ccState=!0;var b={issueId:this.issueId,actions:[{fieldName:"ccs",value:this.activeSession.getUserEmail(),actionType:"ADD"}]};this.issueApi.updateIssue(this.issueId,b).then(function(){}).catch(function(c){a.ccState=
!1;a.errorHandler.errorHandler(null,c)})}};kX.\u0275fac=function(a){return new (a||kX)(C(yH),C(bK),C(FM),C(xK))};
kX.\u0275cmp=w({type:kX,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&&(F(0,"button",0),J("click",function(){return b.toggle()}),O(1,GIa,2,0,"ng-container",1),P(2,"CC me\n"),G());a&2&&(B(1),D("ngIf",b.ccState))},dependencies:[ux,rB],encapsulation:2});
var lX=function(){var a=this;this.displayMode="BOTH";this.colorStyle="NONE";this.issueStatusInternal$=new U.BehaviorSubject(0);this.iconName$=this.issueStatusInternal$.pipe(Wf(),S(function(b){return W2b.get(b)||""}));this.statusText$=this.issueStatusInternal$.pipe(Wf(),S(function(b){return uL[b]}));this.colorClass$=this.issueStatusInternal$.pipe(Wf(),S(function(b){return"bg-status"+b}));this.bgColorClass$=this.colorClass$.pipe(S(function(b){return"BACKGROUND"===a.colorStyle?"bg "+b:""}))};
lX.prototype.ngOnInit=function(){};lX.prototype.ngOnChanges=function(){this.issueStatus?this.issueStatusInternal$.next(this.issueStatus):this.issueStatusInternal$.next(Yl[this.issueStatusJs])};lX.\u0275fac=function(a){return new (a||lX)};
lX.\u0275cmp=w({type:lX,selectors:[["b-issue-status-display"]],inputs:{issueStatusJs:"issueStatusJs",issueStatus:"issueStatus",displayMode:"displayMode",colorStyle:"colorStyle"},features:[Jc],decls:5,vars:6,consts:[[1,"wrapper",3,"ngClass"],["class","swatch",3,"ngClass",4,"ngIf"],["class","icon-s",3,"svgIcon",4,"ngIf"],["class","text",4,"ngIf"],[1,"swatch",3,"ngClass"],[1,"icon-s",3,"svgIcon"],[1,"text"]],template:function(a,b){a&1&&(F(0,"span",0),Q(1,"async"),O(2,HIa,2,3,"span",1),O(3,IIa,2,3,"mat-icon",
2),O(4,JIa,3,3,"span",3),G());if(a&2){var c;D("ngClass",null!==(c=R(1,4,b.bgColorClass$))&&void 0!==c?c:"");B(2);D("ngIf","ASIDE"===b.colorStyle);B(1);D("ngIf","BOTH"===b.displayMode||"ICON"===b.displayMode);B(1);D("ngIf","BOTH"===b.displayMode||"TEXT"===b.displayMode)}},dependencies:[XE,xx,ux,Fx],styles:[".wrapper[_ngcontent-%COMP%]{display:inline-block;align-items:center}.wrapper.bg[_ngcontent-%COMP%]{color:#fff;padding:2px 4px;border-radius:4px}.mat-icon[_ngcontent-%COMP%]{margin-right:4px}.swatch[_ngcontent-%COMP%]{margin-right:8px}\n/*# sourceMappingURL=issue_status_display.css.map */"],
changeDetection:0});var W2b=new Map([[1,"issue-status-new"],[2,"issue-status-assigned"],[3,"issue-status-accepted"],[4,"issue-status-fixed"],[5,"issue-status-verified"],[10,"issue-status-duplicate"],[9,"issue-status-wont-fix"],[6,"issue-status-wont-fix"],[8,"issue-status-wont-fix"],[7,"issue-status-wont-fix"]]);
var X2b=ao.EDIT_ISSUE,mX=function(a,b,c){yI.call(this);this.analytics=a;this.errorHandler=b;this.issueFridge=c;this.upvoted=!1;this.voteCount=0;this.onVote=new Jw;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};V(mX,yI);mX.\u0275dir=yI.\u0275dir;
mX.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(Xf(),jg(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b});Zn(this.analytics,X2b,"light-ixn","vote",this.upvoted)}};
mX.\u0275fac=function(a){return new (a||mX)(C(FM),C(xK),C(hL))};
mX.\u0275cmp=w({type:mX,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&te("no-votes",0>=b.voteCount)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},features:[ie],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&&(F(0,"button",0),J("click",function(){return b.onClick()}),H(1,"mat-icon",1),F(2,"output",
2),P(3),G()());a&2&&(D("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),oe("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),B(2),Ge("title","",b.voteCount," votes on this issue"),B(1),Je(" ",9999<b.voteCount?"9999+":b.voteCount," "))},dependencies:[rB,XE,lF],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 XIa=function(){return[]},nX=function(a,b,c,d,e,f,h){yI.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.providedIssueId$=new U.ReplaySubject(1);this.issueFetchResponse$=this.providedIssueId$.pipe(ig(function(q){return k.issuesApi.getIssue(q)}));this.editIssue=cn;this.normalizeFormattingModeToJspb=Zra;this.init=new U.ReplaySubject(1)};V(nX,yI);nX.\u0275dir=yI.\u0275dir;
nX.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issueFetchResponse$.pipe(jg(this.destroyed$)).subscribe(function(b){a.issue=b.issue;a.events=b.events;a.cdr.markForCheck();a.init.next()})};nX.prototype.priority=function(a){return null==a?"--":MJb.get(a)};nX.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":case "P2":return"high";default:return"low"}};
nX.prototype.getNote=function(){var a,b;return{commentNumber:1,unlinkifiedComment:(null==(a=this.events[0])?void 0:a.unlinkifiedComment)||"",formattedComment:null==(b=this.events[0])?void 0:b.formattedComment}};
var WIa=function(a,b){return Pl(b).includes(a.activeSession.getUserEmail())},RIa=function(a,b){var c;return hf(function(d){if(1==d.nextAddress)return c=String(a.issueId),HJ(a.issueFridge,b,function(e){var f=e.parentIssueIds.indexOf(c);0>f||(e.parentIssueIds.splice(f,1),Object.assign({},e))}),It(d,2,3),jf(d,(0,U.firstValueFrom)(a.relationshipService.delete(c,1,b)),3);if(2!=d.nextAddress)return Lt(d),a.issueFridge.poke(b),Mt(d,0);Kt(d);uK(a.butterBar,"Error removing the parent issue.");return d.jumpTo(3)})};
nX.\u0275fac=function(a){return new (a||nX)(C(cK),C(uI,2),C(yH),C(FM),C(RL),C(hL),C(sK))};
nX.\u0275cmp=w({type:nX,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[Me([uI]),ie],decls:2,vars:1,consts:[["role","dialog","aria-label","Issue Hovercard",1,"onedev-hovercard-content"],[4,"ngIf"],[1,"bv2-hovercard-wide"],["displayMode","ICON",3,"issueStatusJs"],[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"],["displayMode","TEXT",3,"issueStatusJs"],[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&&(F(0,"div",0),O(1,YIa,24,17,"ng-container",1),G());a&2&&(B(1),D("ngIf",b.issue&&b.issue.snapshot[0]))},dependencies:[xx,ux,Ax,Bx,Cx,BS,rB,lF,$R,lX,vP,EW,mX,kX],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 oX=function(){};oX.\u0275fac=function(a){return new (a||oX)};oX.\u0275mod=Cc({type:oX});oX.\u0275inj=mc({imports:[pF,Mx]});
var pX=function(){};pX.\u0275fac=function(a){return new (a||pX)};pX.\u0275mod=Cc({type:pX});pX.\u0275inj=mc({imports:[Mx,uG,pF,mH]});
var qX=function(){};qX.\u0275fac=function(a){return new (a||qX)};qX.\u0275mod=Cc({type:qX});qX.\u0275inj=mc({imports:[Mx,MS,uG,mH,qS,oX,PP,VW,pX]});
var rX=function(a,b,c,d,e,f,h){yI.call(this);var k=this;this.cdr=a;this.paths=b;this.issueFridge=c;this.relatedIssues=d;this.errorHandler=e;this.analytics=f;this.domSafe=h;this.currentResourceType=this.currentResourceId=null;this.entrySelect=new Jw;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new Jw;this.hasSentTrackingEventForSearchByQuery=this.hasSentTrackingEventForSearchById=
!1;this.getTextToPutInInputOnSelect=function(){return k.query}};V(rX,yI);rX.\u0275dir=yI.\u0275dir;rX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(Tf(250),jg(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};rX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(v(this.defaultChoices),v(this.asyncChoices)))};
var Z2b=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(Y2b(b))return b.map(Number);b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return/[^0-9]/.test(b)?[]:[Ki(b)]},Y2b=function(a){return!a.some(function(b){return!!/[^0-9]/.test(b)})};rX.prototype.search=function(a){"string"===typeof a&&(this.query=a)};
rX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(""===a)$2b(this);else{var b=Z2b(a);1===b.length||1<b.length&&this.allowMultipleIds?a3b(this,b,a):this.searchAsync(a)}};
var $2b=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;b3b(a,[])},b3b=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;null==(c=a.autocomplete)||os(c)},a3b=function(a,b,c){"issue"===a.currentResourceType&&1===b.length&&b[0]===a.currentResourceId?(a.searchingForSelf=!0,$2b(a)):(a.hasSentTrackingEventForSearchById||(Zn(a.analytics,ao.ISSUE_PICKER,"search","id"),a.hasSentTrackingEventForSearchById=!0),a.choices=c3b(a,b),a.hasLoadedResults=!1,
a.issueFridge.watchSet(b).pipe(Xf(),jg(a.destroyed$)).subscribe(function(d){if(a.currentQuery===c){var e=d.reduce(function(f,h){var k=sa(h.snapshot);return f.set(h.issueId,{resourceId:h.issueId,displayText:k.title,status:k.status,relations:[]})},new Map);Ja(b);d=b.map(function(f){return e.get(f)});d.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=d;a.choices=[].concat(v(a.choices),v(a.asyncChoices));b3b(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];
a.hasLoadedResults=!0;a.cdr.detectChanges()}))};
rX.prototype.searchAsync=function(a){var b=this;this.choices=d3b(this,a);this.hasLoadedResults=!1;if(Wi(a))this.hasLoadedResults=!0;else{this.hasSentTrackingEventForSearchByQuery||(Zn(this.analytics,ao.ISSUE_PICKER,"search","query"),this.hasSentTrackingEventForSearchByQuery=!0);var c=e3b(a,this.defaultChoices);this.relatedIssues.get({query:c,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(v(b.choices),v(d)),b.cdr.detectChanges())},function(d){b.errorHandler.errorHandler(null,d)}).finally(function(){b.hasLoadedResults=!0})}};var c3b=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0].toString())})},d3b=function(a,b){return Wi(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};
rX.prototype.getIssueLink=function(a){return this.paths.editIssue(a.resourceId)};var dJa=function(a){return a.relations.map(function(b){return f3b.get(b)}).filter(function(b){return!!b}).join("/")},e3b=function(a,b){if(0===b.length)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};rX.prototype.onEnter=function(a){var b;(null==(b=this.autocomplete)?0:b.panelOpen)&&a.stopPropagation()};
ji.Object.defineProperties(rX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});rX.\u0275fac=function(a){return new (a||rX)(C(uI,2),C(GK),C(hL),C(jX),C(xK),C(FM),C(fP))};
rX.\u0275cmp=w({type:rX,selectors:[["b-issue-picker"]],viewQuery:function(a,b){a&1&&Hf(kN,5);if(a&2){var c;Gf(c=Jf())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",enableAsyncSearch:"enableAsyncSearch",currentResourceId:"currentResourceId",currentResourceType:"currentResourceType",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[Me([jX,uI]),ie,Jc],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","paste","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"],[1,"issue-picker-status-display-alignment"],["displayMode","ICON",3,"issueStatusJs",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"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""]],
template:function(a,b){a&1&&(F(0,"div",0),O(1,ZIa,3,0,"div",1),F(2,"div",2)(3,"input",3),J("paste",function(d){var e,f;d=null!=(f=null==(e=d.clipboardData)?void 0:e.getData("text"))?f:"";0<Z2b(d).length&&""===b.query&&Zn(b.analytics,ao.ISSUE_PICKER,"search","pasteId")})("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(),F(4,"mat-autocomplete",
4,5),J("optionActivated",function(d){b.activeChoice=null==d.option?null:d.option.value})("optionSelected",function(d){b3b(b,[null==d.option?null:d.option.value])}),O(6,$Ia,3,1,"mat-option",6),O(7,aJa,2,0,"mat-option",7),O(8,eJa,15,13,"mat-option",8),G()()());if(a&2){var c=M(5);B(1);D("ngIf",b.searchingForSelf);B(2);D("ngModel",b.query)("matAutocomplete",c);oe("aria-label",0<b.selectedIssues.length?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue");B(1);D("displayWith",b.getTextToPutInInputOnSelect);
B(2);D("ngIf",""!==b.query&&!b.hasLoadedResults);B(1);D("ngIf",""!==b.query&&!!b.hasLoadedResults&&0===b.choices.length);B(1);D("ngForOf",b.choices)}},dependencies:[yx,ux,Qg,by,hy,XE,sB,jN,kN,nB,nX,lX,dN,eN,hN,fN,aN,oM],styles:["input[_ngcontent-%COMP%]{width:450px}.bv2-issue-picker-message[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad);padding:5px;text-align:center}"]});
var f3b=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"],["CANONICAL","canonical"]]),sX=function(){};sX.\u0275fac=function(a){return new (a||sX)};sX.\u0275mod=Cc({type:sX});sX.\u0275inj=mc({imports:[Mx,wy,zM,pF,uG,mN,qX,oX,ON,MN]});
var tX=function(a,b){this.dialogRef=a;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+"+":""},iJa=function(a){if(""!==a.queryRestriction){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(Jn(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};tX.prototype.onQueryChange=function(a){this.isQueryRestricted=""!==this.queryRestriction&&a.includes(this.queryRestriction)};tX.\u0275fac=function(a){return new (a||tX)(C(CB),C(NB))};
tX.\u0275cmp=w({type:tX,selectors:[["b-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&Hf(rX,5);if(a&2){var c;Gf(c=Jf())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&J("keydown.escape",function(){b.dialogRef.close()})},decls:15,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],["class","bv2-rel-issue-preview-link",4,"ngIf"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],["class","bv2-rel-issue-narrow-to-component",4,"ngIf"],
[1,"bv2-rel-issue-issue-picker",3,"defaultChoices","enableAsyncSearch","currentResourceId","currentResourceType","allowMultipleIds","keydown.enter","entrySelect","queryChange"],["mat-dialog-actions",""],["mat-button","",1,"gmat-button","medium","cancel",3,"click"],["mat-flat-button","","color","primary",1,"gmat-button","medium","confirm",3,"disabled","click"],[1,"bv2-rel-issue-preview-link"],["target","_blank","class","bv2-rel-issue-id-link",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"bv2-rel-issue-id-link",
3,"href"],["target","_blank",1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"div",2),O(4,gJa,2,1,"div",3),O(5,hJa,3,2,"div",3),G(),F(6,"div",4)(7,"div",5),O(8,jJa,2,2,"div",6),F(9,"b-issue-picker",7),J("keydown.enter",function(){return b.selectedIssues.length&&
b.dialogRef.close(b.selectedIssues)})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),G()()()(),F(10,"div",8)(11,"button",9),J("click",function(){return b.dialogRef.close()}),P(12," Cancel "),G(),F(13,"button",10),J("click",function(){return b.dialogRef.close(b.selectedIssues)}),P(14," Confirm "),G()());a&2&&(B(1),Ke(b.data.title),B(3),D("ngIf",1<b.selectedIssues.length),B(1),D("ngIf",1===b.selectedIssues.length),B(3),D("ngIf",!!b.queryRestriction),
B(1),te("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),D("defaultChoices",b.data.defaultChoices)("enableAsyncSearch",!0)("currentResourceId",b.data.currentResourceId)("currentResourceType",b.data.currentResourceType)("allowMultipleIds",b.data.allowMultipleIds),B(4),D("disabled",!b.selectedIssues.length))},dependencies:[yx,ux,rX,rB,RB,SB,TB,lF],encapsulation:2});var uX=function(a){this.dialog=a};
uX.prototype.open=function(a,b){DB(this.dialog.open(tX,{panelClass:"no-jitter",data:a})).subscribe(function(c){c=void 0===c?[]:c;c=c.map(function(d){return d.resourceId});b(c)})};uX.\u0275fac=function(a){return new (a||uX)(t(PB))};uX.\u0275prov=lc({token:uX,factory:uX.\u0275fac});var vX=function(){};vX.\u0275fac=function(a){return new (a||vX)};vX.\u0275mod=Cc({type:vX});vX.\u0275inj=mc({providers:[uX],imports:[Mx,sX,uG,UB,mH]});
var wX=function(a){this.dialogRef=a;this.reporter="";this.autocompleteActive=!1};wX.prototype.keydown=function(a){"Enter"===a.key&&!this.autocompleteActive&&""!==this.reporter&&this.save()};wX.prototype.cancel=function(){this.dialogRef.close()};wX.prototype.save=function(){this.dialogRef.close(this.reporter)};wX.\u0275fac=function(a){return new (a||wX)(C(CB))};
wX.\u0275cmp=w({type:wX,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&&(F(0,"h1",0),P(1,"Change Reporter"),G(),F(2,"mat-dialog-content")(3,"mat-form-field")(4,"mat-label"),P(5," Reporter "),G(),F(6,"input",1),J("ngModelChange",function(c){return b.reporter=
c})("autocompleteActive",function(c){return b.autocompleteActive=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"mat-dialog-actions")(8,"button",2),J("click",function(){return b.cancel()}),P(9," Cancel "),G(),F(10,"button",3),J("click",function(){return b.save()}),P(11," Save "),G()());a&2&&(B(6),D("bContactAutocomplete","SINGLE")("ngModel",b.reporter),B(4),D("disabled",""===b.reporter))},dependencies:[Qg,by,hy,rB,RB,SB,TB,eC,bC,gC,HU],encapsulation:2});
var g3b=["addCommentDialog"],xX=function(a,b,c,d,e,f,h,k,q,u){yI.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=u;this.currentUserEmail=this.activeSession.getUserEmail();this.comment=new HR;this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new Jw;this.onCreateHotlist=new Jw;this.onLoadHotlist=new Jw;this.externalWarnings=[];this.controllerName="baseControls"};
V(xX,yI);xX.prototype.hasSelectedIssues=function(){return 0<this.getSelectedIssues().length};var h3b=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},kJa=function(a){return h3b(a)?"Mark as read":"Mark as unread"},Kp=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
xX.prototype.onSelectionChange=function(){for(var a=this.getSelectedIssues(),b=r(a),c=b.next();!c.done;c=b.next())c=c.value,null!=c.hotlistId||(c.hotlistId=[]);this.hotlistIdMatrix=a.map(function(d){return d.hotlistId});this.cdr.detectChanges()};
var i3b=function(a){if("PUBLIC"!==a.activeSession.frontendAccessMode){a.externalWarnings=[];var b=new Set(a.getSelectedIssues().map(function(e){return e.componentId})),c={};b=r(b);for(var d=b.next();!d.done;c={$jscomp$loop$prop$id$1699:c.$jscomp$loop$prop$id$1699},d=b.next())c.$jscomp$loop$prop$id$1699=d.value,a.componentActions.get(c.$jscomp$loop$prop$id$1699).then(function(e){if(a.activeSession.isInternalSession()&&bX(e)||zH(a.activeSession)&&cX(e)){var f,h=E2b(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$1699+".")}}(c))}};
xX.prototype.bulkEdit=function(a){switch(a){case "ASSIGNEE":yX(this,null,0);break;case "COMPONENT":j3b(this);break;case "VERIFIER":yX(this,null,1);break;case "REPORTER":k3b(this);break;case "CHANGELIST":zX(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":l3b(this);break;case "FOUND_IN":zX(this,"foundInVersion","Found In");break;case "VERIFIED_IN":zX(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":zX(this,"targetedToVersion","Targeted To");break;case "COMMENT":m3b(this);
break;case "CC":zX(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
xX.prototype.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=this.constants.protoIssuePrioritiesEnumStrings.get(a.newValue))&&AX(this,"priority",a);break;case "SEVERITY":(a=this.constants.protoIssueSeveritiesEnumStrings.get(a.newValue))&&AX(this,"severity",a);break;case "STATUS":(a=YBb(this.constants.protoIssueStatusesEnumStrings.get(a.newValue)))&&yX(this,vn[a],"DUPLICATE"===a?3:void 0);break;case "TYPE":(a=this.constants.protoIssueTypesEnumStrings.get(a.newValue))&&AX(this,"type",a);
break;case "IS_ARCHIVED":AX(this,"isArchived",""+a.newValue);break;case "IN_PROD":AX(this,"inProd",""+a.newValue);break;case "CC":AX(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+a.field)}};
xX.prototype.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?BX(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:"}):BX(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:"});break;case "BLOCKING":a.isMarking?BX(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:"}):BX(this,{actionType:"REMOVE",fieldName:"blockingIssueId",
title:"Unmark all selected issues as blocking:"});break;case "PARENT":a.isMarking?BX(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:"}):BX(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:"});break;case "DUPLICATE":yX(this,vn.DUPLICATE,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};xX.prototype.bulkMarkIssueRead=function(){var a=h3b(this);AX(this,"readState",a?"true":"")};
var AX=function(a,b,c,d){var e={fieldName:b,value:c};void 0!==d&&(e.actionType=d);var f=Kp(a),h=[e];"deletionReason"===b&&h.push({fieldName:"isDeleted",value:"true"});d=function(){a.onSave.emit({bulkEditOps:[{issueIds:f,actions:h}]})};"type"!==b||"VULNERABILITY"!==c&&"PRIVACY_ISSUE"!==c?d():("VULNERABILITY"===c&&wR(a.issueTypeDialog,"VULNERABILITY",d,function(){}),"PRIVACY_ISSUE"===c&&wR(a.issueTypeDialog,"PRIVACY_ISSUE",d,function(){}))},yX=function(a,b,c){a.hasSelectedIssues()&&(i3b(a),a.stateModal.showDialog(a.getSelectedIssues(),
b,c))},n3b=function(a){var b=a.onSave,c=b.emit,d=Kp(a),e=a.stateModal.issueEditBuilder;a=[];e.issueState||fIa(e);e=r(tIa(e));for(var f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;void 0!==h&&a.push({fieldName:f,value:h})}c.call(b,{bulkEditOps:[{issueIds:d,actions:a}]})},k3b=function(a){a.hasSelectedIssues()&&(i3b(a),DB(a.matDialog.open(wX,{width:"400px"})).pipe(jg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&AX(a,"reporter",b)}),a.hotkeys.pause())},
zX=function(a,b,c,d){d=void 0===d?!1:d;a.hasSelectedIssues()&&(DB(a.matDialog.open(fX,{width:"400px",data:{fieldDisplayName:c}})).pipe(jg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&o3b(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},o3b=function(a,b,c,d,e){e=void 0===e?!1:e;c=Vi(c);d=Vi(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return Si(q,h).map(function(u){return u.trim()})};Wi(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),
f.push.apply(f,v(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));Wi(d)||(d=k(d),f.push.apply(f,v(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:Kp(a),actions:f}]})},j3b=function(a){a.hasSelectedIssues()&&(DB(a.matDialog.open(eX,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(jg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:Kp(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),Zn(a.analytics,a.controllerName,"bulkMove"))}),a.hotkeys.pause())},p3b=function(a){a.hasSelectedIssues()&&(DB(a.matDialog.open(dX,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(jg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(Zn(a.analytics,a.controllerName,"bulkFlagAsSpam"),AX(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},m3b=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&(a.addCommentDialogRef=
a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),DB(a.addCommentDialogRef).pipe(jg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&PQb(a.comment)&&AX(a,"comment",a.comment.value);a.comment.reset()}),a.hotkeys.pause(),i3b(a))},tJa=function(a){var b;null==(b=a.addCommentDialogRef)||b.close(!0)},l3b=function(a){a.hasSelectedIssues()&&DB(a.matDialog.open(OP,{data:a.getSelectedIssues(),width:"500px"})).pipe(jg(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),
Zn(a.analytics,a.controllerName,"bulkCustomField"))})};
xX.prototype.handleHotlistPickerSave=function(a){var b=a.oldSelectionMap,c=[],d=[],e=0;Object.entries(a.newSelectionMap).forEach(function(f){var h=r(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:Kp(this),actions:a}]}),Zn(this.analytics,this.controllerName,"applyHotlists",
"numHotlists",e))};var BX=function(a,b){var c=b.actionType,d=b.fieldName;DB(a.matDialog.open(tX,{data:{title:b.title}})).pipe(jg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(null==e?0:e.length)e=e[0].resourceId,a.onSave.emit({bulkEditOps:[{issueIds:Kp(a),actions:[{fieldName:d,value:String(e),actionType:c}]}]})});a.hotkeys.pause()};xX.\u0275fac=function(a){return new (a||xX)(C(uI),C(yH),C(FM),C(bJ),C(ZH),C(iT),C(vR),C(WS),C(PB),C(vK))};
xX.\u0275dir=w({type:xX,viewQuery:function(a,b){a&1&&(Hf(g3b,5),Hf(gX,5),Hf(aX,5));if(a&2){var c;Gf(c=Jf())&&(b.addCommentDialog=c.first);Gf(c=Jf())&&(b.hotlistPicker=c.first);Gf(c=Jf())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},features:[ie]});
var CX=function(){};CX.\u0275fac=function(a){return new (a||CX)};CX.\u0275mod=Cc({type:CX});CX.\u0275inj=mc({providers:[{provide:n_b,useFactory:function(){return new k_b}}]});
var DX=function(){};DX.\u0275fac=function(a){return new (a||DX)};DX.\u0275mod=Cc({type:DX});DX.\u0275inj=mc({imports:[Mx,CX]});
var EX=function(){};EX.\u0275fac=function(a){return new (a||EX)};EX.\u0275mod=Cc({type:EX});EX.\u0275inj=mc({providers:[{provide:m_b,useFactory:LV}],imports:[Mx,uG,pF,mH,DX,zM]});
var FX=function(){};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275mod=Cc({type:FX});FX.\u0275inj=mc({imports:[Mx,ZW,dI,mH,iO,VW,EX,uG,pF]});
var GX=function(){};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275mod=Cc({type:GX});GX.\u0275inj=mc({imports:[Mx,UB,MS,wy,uG,dI,fF,IU,FX]});
var HX=function(){};HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275mod=Cc({type:HX});HX.\u0275inj=mc({imports:[Mx,fF,uG,hC,wy,pB,mH,eI,EP,dI]});
var IX=function(a,b,c,d,e,f,h,k,q,u){xX.call(this,a,b,c,d,e,f,h,k,q,u);this.panels=[];this.controllerName="dashboardControls"};V(IX,xX);IX.\u0275dir=xX.\u0275dir;IX.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};IX.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Ja(a,null,function(b){return b.issueId.toString()});return a};
IX.\u0275fac=function(a){return new (a||IX)(C(uI,2),C(yH),C(FM),C(bJ),C(ZH),C(iT),C(vR),C(WS),C(PB),C(vK))};
IX.\u0275cmp=w({type:IX,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[Me([uI]),ie,Jc],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"],["class","bv2-external-component-modal-warning",
4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(O(0,lJa,1,1,"b-app-bar-bulk-edit-menus",0),O(1,pJa,1,2,"b-copy-issue-id-button",1),O(2,qJa,2,2,"div",2),F(3,"b-app-bar-more-menu",3),J("flagAsSpamClicked",function(){return p3b(b)}),G(),F(4,"b-state-modal",4),J("save",
function(){return n3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),O(5,uJa,10,5,"ng-template",null,5,Pf));a&2&&(D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),D("externalWarnings",b.externalWarnings))},dependencies:[bI,aI,$W,yx,ux,BS,SS,gX,rB,QB,RB,SB,TB,aX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var JX=function(){};
JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275mod=Cc({type:JX});JX.\u0275inj=mc({imports:[fI,iO,FX,Mx,MS,VS,HX,dI,uG,UB,GX]});
var KX=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)},q3b=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)},r3b=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=Rl(c.assigneeUser)||"";this.verifier=Rl(c.verifierUser)||"";this.cc=yqa(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||
!1;this.customFieldValues=Object.create(null);a=r(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=new jl(b);a=r(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=r(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=null!=c.typedDefaultValue?new jl(c.typedDefaultValue):new jl({customFieldId:b}))},t3b=function(a,b){b.name=a.name;b.description=a.description;
var c=b.snapshot||{};s3b(a.type)?delete c.type:c.type=a.type;s3b(a.priority)?delete c.priority:c.priority=a.priority;s3b(a.severity)?delete c.severity:c.severity=a.severity;c.assigneeUser=Vl(a.assignee);c.verifierUser=Vl(a.verifier);c.ccUsers=a.cc.map(function(f){return Vl(f)});c.comment=a.comment;c.title=a.title;c.hotlistId=a.hotlistId;c.inProd=a.inProd;c.customField=[];for(var d=r(Object.keys(a.customFields)),e=d.next();!e.done;e=d.next())(e=a.customFieldValues[e.value])&&!e.isEmpty()&&c.customField.push(e);
b.snapshot=c};
r3b.prototype.setCustomField=function(a,b){a=String(a);if(this.customFieldValues[a]){var c=this.customFields[a].type;if(!c)return;switch(c){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:sh(c,"Unexpected custom field type: "+c)}}this.dirty=!0};r3b.prototype.isDirty=function(){return this.dirty};var s3b=function(a){return Wi(a)||"--"===a},WJa=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()});a.dirty=!0},u3b={value:"--",displayText:"--"};
var v3b=new si("M/d/yyyy"),LX=function(a){this.dateFormatter=a;this.boundValueChange=new Jw;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};LX.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if("string"===typeof this.boundValue)var a=Li(this.boundValue);else{var b;a=null!=(b=Ok(this.boundValue))?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
LX.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=v3b.format(a);else{var d;a=null!=(d=TFb(v3b.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):""}};LX.\u0275fac=function(a){return new (a||LX)(C(tP))};
LX.\u0275cmp=w({type:LX,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&&(F(0,"b-date-time-input",0),J("valueChange",function(c){return b.change(c)}),G());a&2&&D("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[zP],encapsulation:2});
var w3b={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",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"},x3b=Object.assign({},w3b,{EDIT_ISSUE:function(a){return"ng2/issues/"+a}}),y3b=new sd("routes",{providedIn:"root",factory:function(){return w3b}}),MX=function(a){this.routes=a};g=MX.prototype;g.createIssue=function(a){return Lp(this.routes.CREATE_ISSUE,{params:a})};g.editIssue=function(a,b){return Mp(this.routes.EDIT_ISSUE(a),{id:a,params:b})};g.listIssues=function(a){return Lp(this.routes.LIST_ISSUES,{params:a})};
g.viewSavedSearch=function(a){return Mp(this.routes.VIEW_SAVEDSEARCH(a),{id:a,params:void 0})};g.viewHotlist=function(a){return Mp(this.routes.VIEW_HOTLIST(a),{id:a})};g.editHotlist=function(a){return Lp(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 Mp(this.routes.VIEW_BOOKMARK_GROUP(a),{id:a})};
g.editBookmarkGroup=function(a){return Lp(this.routes.EDIT_BOOKMARK_GROUP(a),{id:a})};g.editSavedSearch=function(a){return Lp(this.routes.EDIT_SAVED_SEARCH(a),{id:a})};g.dashboard=function(a){return Lp(this.routes.DASHBOARD(a),{id:a})};g.issuesCsvAction=function(a,b,c,d){b=this.toApiSortParamValue(b);c=vJa(c);return TD("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=vJa(c))&&(c="position,"+c);return TD(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 Lp(this.routes.LIST_COMPONENTS,{params:void 0})};
g.viewComponent=function(a,b){return Mp(this.routes.VIEW_COMPONENT(a),{id:a,tab:b})};g.manageComponent=function(a,b){return Mp(this.routes.MANAGE_COMPONENT(a),{id:a,tab:b})};g.manageComponentAcl=function(a){return Mp(this.routes.MANAGE_COMPONENT_ACL(a),{id:a,tab:void 0})};g.createComponent=function(a){return Lp(this.routes.CREATE_COMPONENT,{params:a})};g.editComponent=function(a,b){return Lp(this.routes.EDIT_COMPONENT(a),{id:a,tab:b})};g.createSlo=function(){return Lp(this.routes.CREATE_SLO,{params:void 0})};
g.editSlo=function(a){return Lp(this.routes.EDIT_SLO(a),{id:a,tab:void 0})};g.listSlos=function(){return Lp(this.routes.LIST_SLOS,{params:void 0})};g.listHotlists=function(){return this.routes.LIST_HOTLISTS};MX.\u0275fac=function(a){return new (a||MX)(t(y3b))};MX.\u0275prov=lc({token:MX,factory:MX.\u0275fac,providedIn:"root"});
var NX=function(a){this.pathBuilder=a;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new Jw};NX.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};NX.\u0275fac=function(a){return new (a||NX)(C(MX))};
NX.\u0275cmp=w({type:NX,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&&O(0,xJa,9,11,"ng-container",0);a&2&&D("ngIf",b.hotlist)},dependencies:[ux,dN,hN,YM,XE,rB],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 z3b=["input"],A3b=function(a){return{enterDuration:a}},B3b=new sd("mat-radio-default-options",{providedIn:"root",factory:yJa}),C3b=0,D3b={provide:wx,useExisting:ic(function(){return OX}),multi:!0},E3b=function(a,b){this.source=a;this.value=b},F3b=new sd("MatRadioGroup"),PX=function(a){this._changeDetector=a;this._value=null;this._name="mat-radio-group-"+C3b++;this._selected=null;this._isInitialized=!1;this._labelPosition="after";this._required=this._disabled=!1;this._controlValueAccessorChangeFn=
function(){};this.onTouched=function(){};this.change=new Jw};g=PX.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 E3b(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()};
ji.Object.defineProperties(PX.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=bh(a);this._markRadiosForCheck()}},required:{configurable:!0,enumerable:!0,get:function(){return this._required},set:function(a){this._required=bh(a);this._markRadiosForCheck()}}});
PX.\u0275fac=function(a){return new (a||PX)(C(nx))};PX.\u0275dir=w({type:PX,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var OX=function(){PX.apply(this,arguments)};V(OX,PX);OX.\u0275fac=function(){var a;return function(b){return(a||(a=md(OX)))(b||OX)}}();
OX.\u0275dir=w({type:OX,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&If(c,QX,5);if(a&2){var d;Gf(d=Jf())&&(b._radios=d)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[Me([D3b,{provide:F3b,useExisting:OX}]),ie]});
var G3b=li(ni(function(a){this._elementRef=a})),RX=function(a,b,c,d,e,f,h,k){var q=G3b.call(this,b)||this;q._changeDetector=c;q._focusMonitor=d;q._radioDispatcher=e;q._providerOverride=h;q._uniqueId="mat-radio-"+ ++C3b;q.id=q._uniqueId;q.change=new Jw;q._checked=!1;q._value=null;q._removeUniqueSelectionListener=function(){};q.radioGroup=a;q._noopAnimations="NoopAnimations"===f;k&&(q.tabIndex=eh(k,0));q._removeUniqueSelectionListener=e.listen(function(u,x){u!==q.id&&x===q.name&&(q.checked=!1)});return q};
V(RX,G3b);g=RX.prototype;g.focus=function(a,b){b?Iz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};g.ngOnInit=function(){if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}};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 E3b(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)}};
ji.Object.defineProperties(RX.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return this._checked},set:function(a){a=bh(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(bh(a))}},
required:{configurable:!0,enumerable:!0,get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=bh(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"}}});RX.\u0275fac=function(){Ad()};
RX.\u0275dir=w({type:RX,viewQuery:function(a,b){a&1&&Hf(z3b,5);if(a&2){var c;Gf(c=Jf())&&(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:[ie]});
var QX=function(a,b,c,d,e,f,h,k){return RX.call(this,a,b,c,d,e,f,h,k)||this};V(QX,RX);QX.\u0275dir=RX.\u0275dir;QX.\u0275fac=function(a){return new (a||QX)(C(F3b,8),C(wd),C(nx),C(Hz),C(uA),C(Xv,8),C(B3b,8),fd("tabindex"))};
QX.\u0275cmp=w({type:QX,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(a,b){a&1&&J("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(oe("tabindex",null)("id",b.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),te("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:[ie],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&&(Ee(),F(0,"label",0,1)(2,"span",2),H(3,"span",3)(4,"span",4),F(5,"input",5,6),J("change",function(d){return b._onInputInteraction(d)})("click",function(d){return b._onInputClick(d)}),G(),F(7,"span",7),H(8,"span",8),G()(),F(9,"span",9)(10,"span",10),P(11,"\u00a0"),G(),Fe(12),G()());if(a&2){var c=M(1);oe("for",b.inputId);B(5);
D("id",b.inputId)("checked",b.checked)("disabled",b.disabled)("required",b.required);oe("name",b.name)("value",b.value)("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby)("aria-describedby",b.ariaDescribedby);B(2);D("matRippleTrigger",c)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Oe(17,A3b,b._noopAnimations?0:150));B(2);te("mat-radio-label-before","before"==b.labelPosition)}},dependencies:[kB],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;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 H3b=["saveBeforeClosingDialog"],I3b=["deleteDialog"],QJa=function(){return[]},SX=function(a,b,c,d,e,f,h,k,q,u,x,E,I){yI.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=u;this.componentActions=x;this.documentationLinks=E;this.appEvents=I;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.FieldType=iYb;this.customFieldIds=Object.create(null);this.issueTypeChoices=J3b(this);this.priorityChoices=K3b(this);this.severityChoices=L3b(this)};V(SX,yI);SX.\u0275dir=yI.\u0275dir;g=SX.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([M3b(this),N3b(this)]).finally(function(){O3b(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)});Ma(this.selectedHotlists,function(c,d){return Yt(c.name,d.name)})};g.removeHotlist=function(a){za(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;Zn(this.analytics,"editTemplate","createHotlist");tK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){tK(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;fh(a.newSelectionMap,function(d,e){e=Ki(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],wa(d,e)||d.push(e)):!d&&f&&za(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this,c=a.successCallback,d=a.errorCallback;this.hotlistApi.get(a.hotlistId).then(function(e){b.addHotlist(e);c(e);b.cdr.detectChanges()}).catch(d)};g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var J3b=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:ZBb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[u3b].concat(b)};SX.prototype.getDateValue=function(a){return a};SX.prototype.getListFieldType=function(a){return a};
var TJa=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},IJa=function(a){"VULNERABILITY"===a.currentTemplateRow.issueType||"PRIVACY_ISSUE"===a.currentTemplateRow.issueType?wR(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)},K3b=function(a){return[u3b].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},L3b=function(a){return[u3b].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))};SX.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,null!==c?c:void 0)};
var Op=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;TX(a)},CJa=function(a,b){var c=a.currentIndex;P3b(a,function(){b.index==c?Op(a):a.openEditor(b.index)})},Q3b=function(a){a.templateHotlistIds.push([]);P3b(a,function(){a.openEditor()})},Np=function(a,b){return 0<=b.index&&b.index==a.currentIndex},XJa=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){tK(a.butterBar,
q.name?'Template "'+q.name+'" created.':"Template created.");Zn(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){tK(a.butterBar,q.name?'Template "'+q.name+'" updated.':"Template updated.");Zn(a.analytics,"template","update");a.templates[e]=q;Op(a)}}a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];t3b(a.currentTemplate,c);tK(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=$m(q);uK(a.butterBar,q?"Error "+b+" template: "+q:"There was an error "+b+" the template.",0)})},DJa=function(a,b){DB(a.matDialogService.open(a.deleteDialog,{data:b})).pipe(jg(a.destroyed$)).subscribe(function(c){c&&
R3b(a,b)})},R3b=function(a,b){var c=b.index;ya(a.templateHotlistIds,c);b=a.templates[c];0>c||b.default?Promise.resolve():(tK(a.butterBar,"Deleting..."),a.templatesApi.delete(b.componentId,b.templateId).then(function(){a.appEvents.templateModified.next(String(a.componentId));tK(a.butterBar,"Deleted template");Zn(a.analytics,"template","delete");a.templates.splice(c,1);a.currentIndex==c?Op(a):TX(a);a.cdr.detectChanges()}).catch(function(){uK(a.butterBar,"Error while deleting template")}))},T3b=function(a,
b){b?XJa(a).then(function(){S3b(a);a.cdr.detectChanges()}):S3b(a)},EJa=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};
SX.prototype.openEditor=function(a){var b=this;this.currentIndex=void 0===a?-1:a;if(0>this.currentIndex){this.currentTemplate=U3b(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();TX(this);this.cdr.detectChanges();var c;null==(c=document.getElementById("template-name"))||c.focus()}else V3b(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=U3b(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
TX(b);b.cdr.detectChanges();var e;null==(e=document.getElementById("template-name"))||e.focus()})};
var V3b=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},P3b=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,W3b(a)):b()},W3b=function(a){DB(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(jg(a.destroyed$)).subscribe(function(b){void 0!==b&&T3b(a,b)})},S3b=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},U3b=function(a,b){return new r3b(a.customFieldIds,b)},M3b=function(a){a.customFieldRows=
[];a.customFieldIds={};return a.supportCustomFields?a.componentActions.get(a.componentId).then(function(b){b=r(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 q3b(c,"TEXT"==c.type?"1":"2"))}a.cdr.detectChanges()}).catch(function(){uK(a.butterBar,"Unable to load custom fields")}):Promise.resolve()},N3b=function(a){a.templates=[];return a.templatesApi.query(a.componentId).then(function(b){a.templates=
b;b=r(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(){uK(a.butterBar,"Unable to load templates")})},O3b=function(a){TX(a);a.defaultIndex=a.templates.findIndex(function(b){return b.default})},TX=function(a){if(0>a.currentIndex)a.templateRows=a.templates.map(function(e,f){return new KX(f,e)}),a.currentTemplate&&(a.currentTemplateRow=new KX(-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 KX(f,e)}));a.currentTemplate&&(a.currentTemplateRow=new KX(b,a.currentTemplate),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new KX(b+f+1,e)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},X3b=function(a,b,c){return V3b(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})},BJa=function(a,b){if(a.defaultIndex!==b){a.defaultIndex=b;var c="(no template)";0<=b&&(b=a.templates[b],c=b.name,Wi(Vi(c))&&(c="(unnamed template)"),b.default||(b=X3b(a,b,function(d){d.default=!0}),tK(a.butterBar,"Changing default template..."),b.then(function(){tK(a.butterBar,"Changed default template to "+c)},function(d){uK(a.butterBar,"Error while changing default message"+(Zm(d)?": "+$m(d):
"."))}),Zn(a.analytics,"template","changeDefault")))}};SX.\u0275fac=function(a){return new (a||SX)(C(PB),C(uI,2),C(YK),C(MJ),C(SK),C(ZH),C(GK),C(sK),C(FM),C(vR),C(iT),C(dP),C(BK))};
SX.\u0275cmp=w({type:SX,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(Hf(H3b,5),Hf(I3b,5));if(a&2){var c;Gf(c=Jf())&&(b.saveBeforeClosingDialog=c.first);Gf(c=Jf())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[Me([uI]),ie],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(";"),["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"],["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&&(F(0,"div")(1,"div",0),P(2," A template is a set of default values for new issues created in this component. "),F(3,"a",1),P(4,"Learn more"),G()(),F(5,"table",2)(6,"tr")(7,"th"),P(8,"TEMPLATE"),G(),F(9,"th",3),P(10,"DEFAULT"),G(),H(11,"th",3)(12,"th",3),G(),O(13,ZJa,3,2,"tr",4),G(),F(14,"div",5)(15,"b-button",6),J("onAction",function(){return Q3b(b)}),P(16," Create New "),
G()(),O(17,$Ja,7,3,"ng-template",null,7,Pf),O(19,aKa,9,4,"ng-template",null,8,Pf),G());a&2&&(B(3),D("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Ud),B(10),D("ngForOf",b.templateRows))},dependencies:[hO,yx,ux,Ax,Bx,Cx,LU,Qg,jy,by,hy,NX,gX,LX,fV,rB,QB,SB,TB,QX,rT,HU,lF,BH,bF,$E,eF],encapsulation:2});
var UX=function(){};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=Cc({type:UX});UX.\u0275inj=mc({imports:[Mx,XP]});
var VX=function(a,b){this.hotlists=a;this.userAccess=b;this.id$=new U.ReplaySubject(1);this.removeHotlist=new Jw;this.removable=!0;this.hotlist$=this.id$.pipe(ig(this.hotlists.watch));this.isDisabled$=(0,U.combineLatest)([this.id$,this.id$.pipe(ig(this.hotlists.isSaving$))]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return null==c?!1:d?!0:!1}))};
VX.prototype.ngOnInit=function(){var a=this;this.removable$="check-acl"===this.removable?this.id$.pipe(ig(function(b){return gK(a.userAccess,"appender","hotlists/"+b)})):(0,U.of)(this.removable)};ji.Object.defineProperties(VX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});VX.\u0275fac=function(a){return new (a||VX)(C(bL),C(fK))};
VX.\u0275cmp=w({type:VX,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&&(F(0,"b-hotlist-chip",0),J("removeHotlist",function(){null==b.idInternal?Tk("Missing id"):b.removeHotlist.emit()}),Q(1,"async"),Q(2,"async"),Q(3,"async"),G());if(a&2){var c;D("hotlist",R(1,3,b.hotlist$))("disabled",!0===R(2,5,b.isDisabled$))("removable",null!==
(c=R(3,7,b.removable$))&&void 0!==c?c:!1)}},dependencies:[NX,Fx],encapsulation:2,changeDetection:0});
var WX=function(){};WX.\u0275fac=function(a){return new (a||WX)};WX.\u0275mod=Cc({type:WX});WX.\u0275inj=mc({imports:[Mx,ON,JN,pF,uG]});
var XX=function(){};XX.\u0275fac=function(a){return new (a||XX)};XX.\u0275mod=Cc({type:XX});XX.\u0275inj=mc({imports:[oB,XA,XA]});
var YX=function(){};YX.\u0275fac=function(a){return new (a||YX)};YX.\u0275mod=Cc({type:YX});YX.\u0275inj=mc({imports:[iO,Mx,MU,wy,WX,HX,UX,gV,uG,UB,XX,sT,zM,IU,HS,qB,mH,dI,fF]});
var ZX=function(a,b,c,d){this.currentSearch=b;this.analytics=c;this.domSafe=d;this.enableEstado=AH(a,"enableEstado")};ZX.prototype.openInEstado=function(){Zn(this.analytics,"listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.currentSearch.currentSearch))};ZX.\u0275fac=function(a){return new (a||ZX)(t(yH),t(EN),t(FM),t(fP))};ZX.\u0275prov=lc({token:ZX,factory:ZX.\u0275fac,providedIn:"root"});
var $X=function(a){Z.call(this,a)};V($X,Z);$X.prototype.getMetric=function(){return X(this,1,0)};$X.prototype.getMatcher=function(){return W(this,2)};$X.prototype.setMatcher=function(a){l(this,2,a)};$X.prototype.toObject=function(){return Y3b(void 0,this)};var Y3b=function(a,b){if(null!=b){var c={metric:n(p(b,1)),matcher:n(p(b,2)),dayType:n(p(b,4)),objective:Hu(a,m(b,km,3)),businessDays:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var Z3b=[1,2,3],vQa=new Map([[1,"Assignment"],[2,"Response"],[3,"Closure"]]),$3b=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),zQa=new Map([[0,"Calendar"],[1,"Calendar"],[2,"Business"]]);
var Nl=function(a){Z.call(this,a)};V(Nl,Z);Nl.prototype.getComponentId=function(){return fj(this,1)};Nl.prototype.setComponentId=function(a){return Vk(this,1,a)};Nl.prototype.getEffectiveSloEditPolicy=function(){return X(this,2,0)};Nl.prototype.toObject=function(){return a4b(this)};var a4b=function(a){if(null!=a)return{componentId:fj(a,1),effectiveSloEditPolicy:X(a,2,0)}};
var b4b=function(a){Z.call(this,a)};V(b4b,Z);b4b.prototype.toObject=function(){var a=null!=this?{componentSloEditPolicy:a4b(m(this,Nl,1))}:void 0;return a};b4b.messageId="b.GetComponentSloEditPolicyResponse";
var aY=function(a){Z.call(this,a)};V(aY,Z);aY.prototype.getTeamSloEditPolicy=function(){return m(this,pJ,1)};aY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:nGb(this.getTeamSloEditPolicy())}:void 0;return a};aY.messageId="b.GetTeamSloEditPolicyResponse";
var bY=function(a){Z.call(this,a,-1,c4b)};V(bY,Z);g=bY.prototype;g.getSloId=function(){return lj(this,1)};g.setSloId=function(a){return l(this,1,a)};g.getVersion=function(){return fj(this,2)};g.setVersion=function(a){return l(this,2,a)};g.getName=function(){return W(this,3)};g.setName=function(a){return l(this,3,a)};g.hasName=function(){return ej(this,3)};g.getDescription=function(){return W(this,4)};g.setDescription=function(a){return l(this,4,a)};g.getParentId=function(){return lj(this,5)};
g.setParentId=function(a){l(this,5,a)};var Os=function(a){return xb(a,$X,6)};bY.prototype.getIsArchived=function(){return bj(this,8)};bY.prototype.setIsArchived=function(a){l(this,8,a)};var c4b=[6,7];bY.prototype.toObject=function(){return d4b(void 0,this)};
var d4b=function(a,b){if(null!=b){var c={sloId:n(p(b,1)),version:n(p(b,2)),name:n(p(b,3)),description:n(p(b,4)),parentId:n(p(b,5)),elementsList:Hb(Os(b),Y3b,a),effectiveElementsList:Hb(xb(b,$X,7),Y3b,a),isArchived:n(Mo(b,8)),alertState:n(p(b,9))};a&&(c.$jspbMessageInstance=b);return c}};bY.messageId="b.SloState";
var f4b=function(a){Z.call(this,a,-1,e4b)};V(f4b,Z);var e4b=[1];f4b.prototype.toObject=function(){var a=null!=this?{slosList:Hb(xb(this,bY,1),d4b)}:void 0;return a};f4b.messageId="b.SloSearchResponse";
var cY=function(a){Z.call(this,a)};V(cY,Z);cY.prototype.getTeamSloEditPolicy=function(){return m(this,pJ,1)};cY.prototype.toObject=function(){var a=null!=this?{teamSloEditPolicy:nGb(this.getTeamSloEditPolicy())}:void 0;return a};cY.messageId="b.UpdateTeamSloEditPolicyResponse";
var dY=function(a,b){this.activeSession=a;this.executor=b};g=dY.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:bY})};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:f4b}).pipe(S(function(b){return xb(b,bY,1)}))};
g.create=function(a){return this.executor.post({url:"action/slos",body:a,responseConstructor:bY})};g.update=function(a){var b=a.getSloId();return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:bY})};dY.\u0275fac=function(a){return new (a||dY)(t(yH),t(pI))};dY.\u0275prov=lc({token:dY,factory:dY.\u0275fac,providedIn:"root"});var eY=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=eY.prototype;g.get=function(a){var b=this.slosCache.get(a);return void 0!==b?b:this.slosCache.put(String(a),(0,U.firstValueFrom)(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return(0,U.firstValueFrom)(this.observableSlosService.getOwnedSlos())};g.search=function(a){return(0,U.firstValueFrom)(this.observableSlosService.search(a))};g.create=function(a){return(0,U.firstValueFrom)(this.observableSlosService.create(a))};g.update=function(a){return(0,U.firstValueFrom)(this.observableSlosService.update(a))};
eY.\u0275fac=function(a){return new (a||eY)(t(PK),t(dY))};eY.\u0275prov=lc({token:eY,factory:eY.\u0275fac,providedIn:"root"});
var fY=function(a,b){this.sloStatusHelpersService=a;this.dateFormatter=b;this.timeDisplayText="--";this.objectiveDisplayText=null;this.iconName="slo-status-no-data"};fY.prototype.getIconName=function(a){return g4b.has(a)?g4b.get(a):"slo-status-no-data"};
var h4b=function(a,b,c){a.iconName=a.getIconName(b);c=null!==c?AOb(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:Tk("unknown status type: "+b)}};
fY.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&MR(this.sloBounds)){var b=this.sloBounds.getStartTime().getSeconds(),c=this.sloBounds.getTargetTime().getSeconds();(b=c-b)?this.objectiveDisplayText=AOb(1E3*b):this.objectiveDisplayText=null;b=this.sloBounds;MR(b)&&b.hasEndTime()&&0!==b.getEndTime().getSeconds()&&b.getEndTime().getSeconds()<=Date.now()/1E3?(c=this.sloBounds.getEndTime().getSeconds(),h4b(this,"COMPLETED",a-c)):c<a?h4b(this,"OUT_OF_SLO",a-c):(b=this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil),
a=c-a,h4b(this,259200<a?b?"SNOOZED_HEALTHY":"HEALTHY":b?"SNOOZED_NEAR":"NEAR",a))}else h4b(this,"NO_DATA",null),this.objectiveDisplayText=null};fY.\u0275fac=function(a){return new (a||fY)(C(LR),C(uP))};
fY.\u0275cmp=w({type:fY,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloSnoozeUntil:"sloSnoozeUntil",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Jc],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),F(1,"span",1)(2,"span",2),P(3),O(4,bKa,2,1,"span",3),G()());a&2&&(D("ngClass",b.iconName)("svgIcon",
b.iconName),oe("aria-label","--"===b.timeDisplayText?"No SLO data":""),B(3),Je("",b.timeDisplayText," "),B(1),D("ngIf",b.includeObjective&&b.objectiveDisplayText))},dependencies:[xx,ux,XE],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 g4b=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 gY=function(a){this.sloStatusHelpersService=a;this.includeNoSlo=!1};gY.prototype.ngOnInit=function(){i4b(this);this.hasSlo=!!this.sloStatus&&VQb(this.sloStatus)};gY.prototype.ngOnChanges=function(){i4b(this)};var i4b=function(a){a.sloStatus&&(a.assignmentSlo=j4b($k(a.sloStatus.getAssignmentBounds())),a.responseSlo=j4b($k(a.sloStatus.getResponseBounds())),a.closureSlo=j4b($k(a.sloStatus.getClosureBounds())))};gY.prototype.isSloSnoozed=function(){return this.sloStatusHelpersService.isSloSnoozed(this.sloSnoozeUntil)};
var j4b=function(a){if(MR(a))return a};gY.\u0275fac=function(a){return new (a||gY)(C(LR))};
gY.\u0275cmp=w({type:gY,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Jc],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&&(O(0,cKa,2,3,"div",0),O(1,dKa,2,3,"div",0),O(2,eKa,2,3,"div",0));a&2&&(D("ngIf",(b.includeNoSlo||b.assignmentSlo)&&(!b.onlyShowMetric||"ASSIGNMENT"==b.onlyShowMetric)),B(1),D("ngIf",(b.includeNoSlo||b.responseSlo)&&(!b.onlyShowMetric||"RESPONSE"==b.onlyShowMetric)),B(1),D("ngIf",(b.includeNoSlo||b.closureSlo)&&(!b.onlyShowMetric||"CLOSURE"==b.onlyShowMetric)))},dependencies:[ux,fY],encapsulation:2,changeDetection:0});
var hY=function(a,b,c,d){this.sloStatusHelpersService=a;this.paths=b;this.analytics=c;this.sloApi=d};hY.prototype.ngOnInit=function(){var a;if(a=!!this.sloStatus)a:switch(a=this.sloStatus,this.onlyShowMetric){case "ASSIGNMENT":a=MR(a.getAssignmentBounds());break a;case "RESPONSE":a=MR(a.getResponseBounds());break a;case "CLOSURE":a=MR(a.getClosureBounds());break a;default:a=VQb(a)}this.hasSlo=a;"0"!==this.sloId?(this.editSloLink=this.paths.editSlo(this.sloId),k4b(this)):this.editSloLink=null};
hY.prototype.trackOpenSlo=function(){Zn(this.analytics,ao.EDIT_SLO,"open","fromSloStatusCard")};var k4b=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.getName()}).catch(function(){a.sloName=null})};hY.\u0275fac=function(a){return new (a||hY)(C(LR),C(GK),C(FM),C(eY))};
hY.\u0275cmp=w({type:hY,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&&(Ee(),F(0,"span",0),Fe(1),G(),F(2,"onedev-hovercard",null,1)(4,"div",2)(5,"div",3)(6,"div",4),O(7,fKa,2,3,"div",5),O(8,iKa,3,2,"div",6),O(9,lKa,4,2,"span",7),G()()()());if(a&2){var c=M(3);D("onedevHovercardTrigger",c);B(7);D("ngIf",b.hasSlo);B(1);D("ngIf",!b.hasSlo);B(1);D("ngIf",b.editSloLink)}},dependencies:[ux,dN,hN,gY],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 iY=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};iY.\u0275fac=function(a){return new (a||iY)(C(NB))};
iY.\u0275cmp=w({type:iY,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&&(F(0,"h1",0),P(1),G(),F(2,"mat-dialog-content")(3,"b-custom-field-picker",1),J("fieldSelected",function(c){return b.selectedCustomField=c}),
G()(),F(4,"mat-dialog-actions")(5,"button",2),P(6," Cancel "),G(),F(7,"button",3),P(8," Add "),G()());a&2&&(B(1),Je("Insert custom field column next to ",b.column.fullLabel,""),B(2),D("filter",b.isLegalColumn),B(4),D("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[rB,QB,RB,SB,TB,rV],encapsulation:2});
var l4b="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 jY=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)};jY.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var m4b={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},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:"Show status icons"}]},voteCount:{defaultSortDirection:"DESC",label:"VOTES",fullLabel:"Vote Count"},duplicateCount:{defaultSortDirection:"DESC",label:"DUPE COUNT",tooltip:"Duplicate Count"},ccCount:{defaultSortDirection:"DESC",label:"CC 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"}},o4b=function(a){if("CUSTOM_FIELD"===a.type)return new jY({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,
sortable:void 0!==a.customFieldId,tooltip:""});a=Ii(a.type);"canonicalIssueId"===a&&(a="duplicateOfIssueId");return l4b.includes(a)?n4b(a):null},q4b=function(a){return p4b(a.map(o4b).filter(function(b){return!!b}))},r4b=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:Ki(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})},p4b=function(a){return Ej(a,function(b){return b.name})},n4b=function(a){var b={name:a,label:a.toUpperCase()},c=m4b[a];c?Object.assign(b,c):l4b.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new jY(b)};
var kY=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};kY.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var s4b=function(){this.bindings=[]};s4b.prototype.off=function(){for(var a=r(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var t4b=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.element=this.params.nativeElement;this.eventBindings=new s4b;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()}};
t4b.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(){u4b(a,"dragstart",a.onDragTargetDragstart);u4b(a,"dragenter",a.onDragTargetDragenter);u4b(a,"dragend",a.onDragTargetDragend);u4b(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new kY(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new kY(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new kY(a.mask,"drop",a.onMaskDrop))})};var u4b=function(a,b,c){a.eventBindings.bindings.push(new kY(a.element,b,Qp("th.drag-target",c)))};t4b.prototype.tearDown=function(){this.eventBindings.off()};
var v4b=["table"],w4b=["defaultHeaderCellTemplate"],x4b=["defaultViewCellTemplate"],y4b=["dataRows"],pKa=function(a){return{column:a}},sKa=function(a,b,c){return{row:a,column:b,index:c}},lY=function(a,b){var c=this;this.activeSession=a;this.ngZone=b;this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new Jw;this.rowClick=new Jw;this.rowLabelRenderer=function(d,e){return"Row "+e};this.sortChange=new Jw;this.focusedRowIndexChange=new Jw;this.afterViewInit=
new Jw;this.readUnreadOptOut=AH(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(d,e){var f=[].concat(v(c.columns));d=f.splice(d,1)[0];f.splice(e,0,d);c.columns=f;c.columnsChange.emit([].concat(v(c.columns)))};this.onTdClickableClick=Qp("td.clickable",function(d,e){"mouseup"===d.type&&1!==d.button||KNb(e)||(e=e.closest("tr"))&&c.rowClick.emit({id:Number(e.dataset.rowId),isRead:!!e.dataset.isRead,event:d})})};
lY.prototype.ngOnInit=function(){var a=this;this.dragDropHeaderLogic=new t4b({nativeElement:this.tableElement.nativeElement,ngZone:this.ngZone,getColumnIndexForElement:function(b){return a.getColumnIndexForElement(b)},onDragDropColumn:function(b,c){a.onDragDropColumn(b,c)}});this.dragDropHeaderLogic.setup();this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
lY.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;null!=b&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(Lxa(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};lY.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
lY.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 z4b=function(a){return a.columns.map(function(b){b=b.name;return null!=b?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};lY.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
lY.prototype.focus=function(){if(null!=this.focusedRowIndex&&null!=this.dataRows){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};lY.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};lY.\u0275fac=function(a){return new (a||lY)(C(yH),C(qg))};
lY.\u0275cmp=w({type:lY,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(Hf(v4b,7),Hf(w4b,7),Hf(x4b,7),Hf(y4b,5,wd));if(a&2){var c;Gf(c=Jf())&&(b.tableElement=c.first);Gf(c=Jf())&&(b.defaultHeaderCellTemplate=c.first);Gf(c=Jf())&&(b.defaultViewCellTemplate=c.first);Gf(c=Jf())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer"},outputs:{columnsChange:"columnsChange",rowClick:"rowClick",
sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},features:[Jc],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&&(F(0,"table",0,1),J("mousedown",function(c){c.shiftKey&&window.getSelection().removeAllRanges()}),F(2,"colgroup"),O(3,nKa,1,3,"col",2),G(),F(4,"thead")(5,"tr",3),O(6,qKa,2,4,"ng-container",4),G()(),F(7,"tbody"),O(8,vKa,2,1,"ng-container",5),G()(),O(9,wKa,2,1,"ng-template",null,6,Pf),O(11,xKa,2,2,"ng-template",null,7,Pf));a&2&&(B(3),D("ngForOf",b.columns),B(3),D("ngForOf",b.columns),B(2),D("ngIf",z4b(b)))},encapsulation:2});
var mY=function(a,b){this.templateRef=a;this.popGrid=b};mY.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};mY.\u0275fac=function(a){return new (a||mY)(C(Df),C(lY))};mY.\u0275dir=w({type:mY,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var nY=function(a,b){this.templateRef=a;this.popGrid=b};nY.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};
nY.\u0275fac=function(a){return new (a||nY)(C(Df),C(lY))};nY.\u0275dir=w({type:nY,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var oY=function(a,b){this.templateRef=a;this.popGrid=b};oY.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};oY.\u0275fac=function(a){return new (a||oY)(C(Df),C(lY))};oY.\u0275dir=w({type:oY,selectors:[["","forHeaderCellDefault",""]]});
var pY=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new Jw};pY.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?"ASC"===this.sort.direction?a+", sorted ascending":a+", sorted descending":a};pY.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
pY.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a="ASC"===this.sort.direction?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};pY.\u0275fac=function(a){return new (a||pY)};
pY.\u0275cmp=w({type:pY,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&&(F(0,"div",0),J("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),P(2),G());a&2&&(te("current-sort",b.isActive())("direction-asc",b.isActive()&&"ASC"===b.sort.direction)("direction-desc",b.isActive()&&"DESC"===b.sort.direction),oe("aria-label",b.ariaLabel()),B(2),Je(" ",b.columnLabel," "))},encapsulation:2});
var qY=function(a,b){this.elementRef=a;this.grid=b};qY.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}}};qY.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
qY.\u0275fac=function(a){return new (a||qY)(C(wd),C(lY,8))};
qY.\u0275cmp=w({type:qY,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&&(F(0,"div",0),
O(1,yKa,1,5,"b-sortable-header",1),O(2,zKa,2,2,"div",2),G());a&2&&(B(1),D("ngIf",b.column.sortable),B(1),D("ngIf",!b.column.sortable))},dependencies:[ux,lF,pY],encapsulation:2});
var FKa=function(a,b){return{columns:a,before:b}},A4b=function(){return{before:!1}},B4b=function(){return{before:!0}},rY=function(a,b,c,d,e,f){yI.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 Jw;this.onAddTeamColumn=new Jw;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=xH.listViewPreferences;b.preferences$.pipe(jg(this.destroyed$)).subscribe(function(k){h.listViewPrefs=
k.listViewPreferences||xH.listViewPreferences})};V(rY,yI);rY.\u0275dir=yI.\u0275dir;rY.prototype.ngOnChanges=function(a){a.selectedColumns&&C4b(this)};
var D4b=function(a){a.selectedColumnsChange.emit([].concat(v(a.selectedColumns)));C4b(a)},BKa=function(a,b){var c=Object.assign({},a.listViewPrefs),d=Zma(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||tK(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(Xf(),jg(a.destroyed$)).subscribe(function(){Zn(a.analytics,"preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||tK(a.butterBar,"Display preference saved.",
4E3)},function(){a.activeSession.isAnonymous()||uK(a.butterBar,"Display preference could not be saved.")})},IKa=function(a,b){a.hotkeys.pause();DB(a.matDialog.open(iY,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(jg(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},C4b=function(a){for(var b={},c=r(a.selectedColumns),d=c.next();!d.done;d=
c.next())b[d.value.name]=!0;var e=a.availableColumns.filter(function(f){return!lja(b,f.name)});c=[].concat(v(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(v(d),v(c));a.currentAvailableItems.sort(function(f,h){return Yt(f instanceof jY?f.fullLabel:f.label,h instanceof jY?h.fullLabel:
h.label)});a.isRemovable=E4b(a)};rY.prototype.isIssueGridColumn=function(a){return a instanceof jY};rY.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,D4b(this),!0}return!1};
rY.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new jY({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(v(this.selectedColumns));this.selectedColumns.splice(b,0,a);D4b(this);return!0};
var E4b=function(a){return 1<a.selectedColumns.filter(function(b){return!b.isMetadata}).length};rY.\u0275fac=function(a){return new (a||rY)(C(PB),C(VI),C(sK),C(FM),C(bJ),C(yH))};
rY.\u0275cmp=w({type:rY,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&Hf(eF,5);if(a&2){var c;Gf(c=Jf())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[ie,Jc],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&&(F(0,"div",0)(1,"div",1),H(2,"pop-grid-default-th",2),G(),O(3,AKa,2,4,"div",3),F(4,"mat-menu",4,5),O(6,CKa,4,3,"button",6),O(7,DKa,1,0,"mat-divider",7),F(8,"button",8),J("click",function(){return b.remove()}),P(9," Remove column "),G(),F(10,"button",9),P(11," Add column right "),G(),F(12,"button",9),P(13," Add column left "),G()(),F(14,"mat-menu",null,10),O(16,JKa,4,1,"ng-template",11),G(),F(17,
"mat-menu",null,12),O(19,LKa,1,1,"ng-template",11),G()());if(a&2){var c=M(15);B(2);D("column",b.column);B(1);D("ngIf",!0);B(3);D("ngForOf",b.column.moreOptions);B(1);D("ngIf",b.column.moreOptions.length);B(1);D("disabled",!b.isRemovable);B(2);D("matMenuTriggerFor",c)("matMenuTriggerData",Ne(9,A4b));B(2);D("matMenuTriggerFor",c)("matMenuTriggerData",Ne(10,B4b))}},dependencies:[yx,ux,bF,$E,eF,ZE,$H,lF,BH,qY],styles:['.bv2-columheader-content[_ngcontent-%COMP%]{display:inline-block;height:100%}.columnpicker-button[_ngcontent-%COMP%]{background:none;border:1px solid transparent;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 H4b=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=Qp("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=Qp("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){F4b(b.dragTargetRow);b.dragTargetRow=d;b.draggedIssueIndex=b.params.rowFinder(Number(b.draggedRow.dataset.rowId));b.dragTargetIndex=b.params.rowFinder(Number(b.dragTargetRow.dataset.rowId));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=Qp("tr",function(){b.draggedRow&&(F4b(b.draggedRow),F4b(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed","false"),b.draggedRow=b.dragTargetRow=
void 0)});this.onTrDragLeave=Qp("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=Qp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=Qp(".row-dropzone",function(c){F4b(b.dragTargetRow);G4b(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=Qp(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=Qp(".row-dropzone",function(c){G4b(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()})};
H4b.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");G4b(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)})};
H4b.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 F4b=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},G4b=function(a){a.dropzone.style.display="none"};
var sY=function(a){this.sloStatusHelpersService=a;this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};sY.prototype.ngOnInit=function(){I4b(this)};sY.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&I4b(this)};var I4b=function(a){var b=WQb(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
sY.\u0275fac=function(a){return new (a||sY)(C(LR))};
sY.\u0275cmp=w({type:sY,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Jc],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:[fY],encapsulation:2,changeDetection:0});
var tY=function(){};tY.\u0275fac=function(a){return new (a||tY)};tY.\u0275cmp=w({type:tY,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(F(0,"span"),H(1,"mat-icon",0),P(2,"Archived "),G())},dependencies:[XE],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(--status-archived-bg)}mat-icon[_ngcontent-%COMP%]{height:15px;width:15px;margin:2px;vertical-align:middle;color:#5f6368;color:var(--icon)}"]});
var uY=function(){};uY.\u0275fac=function(a){return new (a||uY)};uY.\u0275mod=Cc({type:uY});uY.\u0275inj=mc({imports:[Mx,pF]});
var J4b=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],vY=function(){this.compactMode=this.labelOnlyMode=!1};vY.prototype.ngOnInit=function(){};vY.\u0275fac=function(a){return new (a||vY)};
vY.\u0275cmp=w({type:vY,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&&(Ee(J4b),F(0,"span",0)(1,"onedev-hovercard",null,1)(3,"div",2)(4,"div",3),Fe(5),G()()(),F(6,"div",4)(7,"span",5),Fe(8,1),G()()());if(a&2){var c=M(2),d;B(3);oe("aria-label",b.hovercardAriaLabel);B(3);D("onedevHovercardTrigger",c)("onedevHovercardActive",!b.labelOnlyMode);B(1);te("compact-chip",b.compactMode);D("ngClass",null!==(d=b.labelClass)&&void 0!==d?d:"")}},dependencies:[xx,dN,hN],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-issue-title-box[_ngcontent-%COMP%]   .bv2-chip[_ngcontent-%COMP%]   .help-label[_ngcontent-%COMP%], .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 wY=function(a){this.documentationLinks=a;this.documentationLink=qt()};wY.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=jo(Tn(this.retentionState.scheduledDeletionTime)):this.retentionExpireTime=void 0};wY.\u0275fac=function(a){return new (a||wY)(C(dP))};
wY.\u0275cmp=w({type:wY,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Jc],decls:1,vars:1,consts:[[4,"ngIf"],[3,"mode","timestamp"],["target","_blank",3,"href"]],template:function(a,b){a&1&&O(0,MKa,9,5,"ng-container",0);a&2&&D("ngIf",b.retentionState&&b.modifiedTime)},dependencies:[ux,vP],encapsulation:2});
var xY=function(){this.compactMode=!1;this.text=""};xY.prototype.ngOnChanges=function(){var a;null!=(null==(a=this.retentionState)?void 0:a.scheduledDeletionTime)?(a=jo(Tn(this.retentionState.scheduledDeletionTime)),this.text=iya(a,!this.compactMode)):this.text=""};xY.\u0275fac=function(a){return new (a||xY)};
xY.\u0275cmp=w({type:xY,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Jc],decls:1,vars:1,template:function(a,b){a&1&&P(0);a&2&&Ke(b.text)},encapsulation:2});
var yY=function(){this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};yY.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=OKa(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};yY.\u0275fac=function(a){return new (a||yY)(C(dP))};
yY.\u0275cmp=w({type:yY,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Jc],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&&O(0,NKa,5,7,"b-base-chip",0);a&2&&D("ngIf",b.showRetentionInfo)},dependencies:[ux,vY,xY,wY],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 zLa=function(a,b,c){return{low:a,high:b,p0:c}},dMa=function(a){return{id:a}},JMa=function(a,b){return{"bv2-grid-cell-variable-height":a,"rtl-component-path":b}},K4b=function(){return[]},zY=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){var L=this;this.activeSession=a;this.cdr=b;this.elementRef=c;this.teamsService=d;this.ngZone=e;this.userPreferencesManager=f;this.hotlistFridge=h;this.issueFridge=k;this.bLocation=q;this.issuePagination=u;this.paths=x;this.errorHandler=E;this.$log=I;this.domSafe=N;this.lastCheckedIndex=
null;this.focusedRowIndexChange=new Jw;this.columns=[];this.columnsChange=new Jw;this.enableColumnSaving=!1;this.sort=null;this.sortChange=new Jw;this.rowClick=new Jw;this.init=new Jw;this.onRowDragDrop=new Jw;this.onNextPage=new Jw;this.onPrevPage=new Jw;this.selectionCallbacks=[];this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=AH(this.activeSession,"enableAggregationRules");this.destroyed$=new U.ReplaySubject(1);this.starInProgress={};this.readUnreadOptOut=AH(this.activeSession,"readUnreadOptOut");
b=Da(l4b);za(b,"collaborator");za(b,"collaboratorCount");a.isInternalSession()||(za(b,"minSlo"),za(b,"responseSlo"),za(b,"assignmentSlo"),za(b,"closureSlo"),za(b,"deletionTime"),za(b,"team"),za(b,"estimate"),za(b,"estimateTotalOpen"),za(b,"estimateTotalComplete"));this.availableColumns=b.map(n4b);this.dragDropLogic=new H4b({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(T){return L4b(L,T)},onRowDragDrop:function(T){L.onRowDragDrop.emit(T)}})};g=zY.prototype;
g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(jg(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=QKa((null==(b=this.searchResults)?void 0:b.issues.map(function(e){return new Set([].concat(v(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(v(c)))}if(a.searchResults||a.columns)for(b=r(this.columns),c=b.next();!c.done;c=b.next())"TEAM"===c.value.label&&M4b(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}))||[]);Pma(a,d)||Rp(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=r(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}Rp(this)};
var N4b=function(a){if(a.searchResults){for(var b=r(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}Rp(a)};zY.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var YKa=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},O4b=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},XKa=function(a){if(!a.searchResults)return"unchecked";var b=!0,c=!1;a=r(a.searchResults.issues);for(var d=a.next();!d.done;d=a.next())d.value.selected?c=!0:b=!1;return b?"checked":c?"indeterminate":"unchecked"};
zY.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};
var Q4b=function(a){if(P4b(a)&&null!=a.focusedRowIndex&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),Rp(a))}},WKa=function(a){if(a.searchResults){for(var b=!O4b(a),c=r(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();Rp(a)}},R4b=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()&&sLb(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},S4b=function(a){null!=a.focusedRowIndex&&0<a.focusedRowIndex?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&sLb(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
AY=function(a,b){b=void 0===b?{}:b;if(P4b(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)))}},T4b=function(a,b){a.selectionCallbacks.push(b);b()},Rp=function(a){a=r(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},U4b=function(a){P4b(a)&&null!=a.focusedRowIndex&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},
V4b=function(a,b){b=void 0===b?!0:b;var c=a.getSelectedIssues();if(0!==c.length){for(var d=r(c),e=d.next();!e.done;e=d.next())e.value.isRead=b;a.cdr.detectChanges();jL(a.issueFridge,c.map(function(f){return f.issueId}),{markRead:b}).then(function(f){for(var h=r(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=r(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()})}};
zY.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,BJb(this.issueFridge,String(a.issueId),a.starred).pipe(Xf(),jg(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()}))};
zY.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var P4b=function(a){return null!=a.searchResults&&null!=a.focusedRowIndex&&0<=a.focusedRowIndex&&a.focusedRowIndex<a.searchResults.issues.length},L4b=function(a,b){return a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1},M4b=function(a){if(a.searchResults){for(var b=new Set,c=r(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,LKb(a.teamsService,[].concat(v(b))).pipe(jg(a.destroyed$)).subscribe(function(e){e=
Zi(e,1,VL);if(a.searchResults)for(var f=r(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}};zY.prototype.isIssueGridColumn=function(){return!0};zY.\u0275fac=function(a){return new (a||zY)(C(yH),C(uI,2),C(wd),C(ZL),C(qg),C(VI),C(bL),C(hL),C(FK),C(IM),C(GK),C(xK),C(vK),C(fP))};
zY.\u0275cmp=w({type:zY,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&Hf(lY,7);if(a&2){var c;Gf(c=Jf())&&(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:[Me([uI]),
Jc],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,"retentionState","showOnlyInDangerZone",
"compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],["tabindex","-1",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,"issueStatusJs","displayMode",4,"ngIf"],[3,"issueStatusJs","displayMode"],["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&&(F(0,"div")(1,"pop-grid",0),J("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)}),O(2,TKa,2,2,"th",1),O(3,VKa,2,2,"th",2),O(4,$Ka,2,2,"th",3),O(5,bLa,2,2,"th",4),O(6,dLa,2,2,"th",4),O(7,hLa,2,2,"th",5),O(8,jLa,2,1,"td",6),O(9,lLa,2,1,"td",7),O(10,nLa,2,1,"td",8),O(11,pLa,2,1,"td",9),O(12,rLa,2,1,"td",10),O(13,tLa,
2,1,"td",11),O(14,yLa,2,3,"td",12),O(15,BLa,2,1,"td",13),O(16,DLa,2,1,"td",14),O(17,HLa,2,1,"td",15),O(18,JLa,2,1,"td",16),O(19,NLa,2,1,"td",17),O(20,RLa,2,1,"td",17),O(21,VLa,2,1,"td",17),O(22,XLa,2,1,"td",17),O(23,ZLa,2,1,"td",17),O(24,aMa,2,1,"td",17),O(25,gMa,2,1,"td",17),O(26,lMa,2,1,"td",17),O(27,pMa,2,1,"td",17),O(28,rMa,2,1,"td",18),O(29,tMa,2,1,"td",18),O(30,vMa,2,1,"td",18),O(31,xMa,2,1,"td",18),O(32,zMa,2,1,"td",17),O(33,BMa,2,1,"td",17),O(34,DMa,2,1,"td",17),O(35,FMa,2,1,"td",17),O(36,
HMa,2,1,"td",17),O(37,KMa,2,5,"td",19),O(38,NMa,2,1,"td",20),O(39,QMa,2,1,"td",20),O(40,TMa,2,1,"td",20),O(41,WMa,2,1,"td",20),O(42,ZMa,2,1,"td",17),O(43,cNa,2,1,"td",17),O(44,eNa,2,1,"td",17),O(45,gNa,2,1,"td",17),O(46,iNa,2,1,"td",17),G()(),O(47,kNa,5,2,"ng-template",null,21,Pf));a&2&&(B(1),D("list",(null==b.searchResults?null:b.searchResults.issues)||Ne(50,K4b))("columns",b.columns)("focusedRowIndex",b.focusedRowIndex)("scrollContainer",".bv2-view")("sort",b.sort)("rowLabelRenderer",b.issueDescription),
B(1),D("forHeaderCell","focused"),B(1),D("forHeaderCell","draghandle"),B(1),D("forHeaderCell","selected"),B(1),D("forHeaderCell","starred"),B(1),D("forHeaderCell","position"),B(2),D("forViewCell","focused"),B(1),D("forViewCell","draghandle"),B(1),D("forViewCell","selected"),B(1),D("forViewCell","starred"),B(1),D("forViewCell","position"),B(1),D("forViewCell","issueId"),B(1),D("forViewCell","title"),B(1),D("forViewCell","priority"),B(1),D("forViewCell","severity"),B(1),D("forViewCell","status"),B(1),
D("forViewCell","type"),B(1),D("forViewCell","reporter"),B(1),D("forViewCell","assignee"),B(1),D("forViewCell","verifier"),B(1),D("forViewCell","cc"),B(1),D("forViewCell","changelist"),B(1),D("forViewCell","postmortem"),B(1),D("forViewCell","blockingIssueId"),B(1),D("forViewCell","blockedByIssueId"),B(1),D("forViewCell","duplicateOfIssueId"),B(1),D("forViewCell","createdTime"),B(1),D("forViewCell","modifiedTime"),B(1),D("forViewCell","resolvedTime"),B(1),D("forViewCell","verifiedTime"),B(1),D("forViewCell",
"foundInVersion"),B(1),D("forViewCell","targetedToVersion"),B(1),D("forViewCell","verifiedInVersion"),B(1),D("forViewCell","inProd"),B(1),D("forViewCell","archived"),B(1),D("forViewCell","componentPath"),B(1),D("forViewCell","minSlo"),B(1),D("forViewCell","responseSlo"),B(1),D("forViewCell","assignmentSlo"),B(1),D("forViewCell","closureSlo"),B(1),D("forViewCell","deletionTime"),B(1),D("forViewCell","team"),B(1),D("forViewCell","estimate"),B(1),D("forViewCell","estimateTotalOpen"),B(1),D("forViewCell",
"estimateTotalComplete"))},dependencies:[tY,xx,yx,ux,Ex,lB,lY,qY,mY,nY,oY,fY,hY,vP,sY,jR,lX,VX,yY,BS,ZM,dN,eN,hN,fN,nX,VU,rY,mM,nM,pM,qM,sM,wM],encapsulation:2,changeDetection:0});
var BY=new jY({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),W4b=new jY({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),CY=new jY({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),DY=new jY({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),X4b=new jY({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});
var EY=function(a,b,c){yI.call(this);var d=this;this.snackBar=a;this.issuePicker=b;this.issueApi=c;this.issueAddedToHotlist=new Jw;this.onCloseIssuePicker=function(e){e=void 0===e?[]:e;if(0!==e.length&&null!=d.id){var f=e.join(", ");d.snackBar.open(1===e.length?"Adding issue "+f+" to this hotlist":"Adding multiple issues to this hotlist: "+f,void 0,{duration:2500});d.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:d.id,actionType:"ADD"}],issueIds:e}]}).then(d.didSave,d.gotErr)}};
this.didSave=function(){d.issueAddedToHotlist.emit();d.snackBar.open("Successfully added to hotlist",void 0,{duration:2500})};this.gotErr=function(e){var f,h,k,q,u=null!=(q=null!=(k=null==e?void 0:null==(f=e.error)?void 0:f.message)?k:null==e?void 0:null==(h=e.data)?void 0:h.message)?q:"Error adding issues to the hotlist";d.snackBar.open(u,"close",{panelClass:"error"})}};V(EY,yI);EY.\u0275dir=yI.\u0275dir;EY.\u0275fac=function(a){return new (a||EY)(C(pK),C(uX),C(bK))};
EY.\u0275cmp=w({type:EY,selectors:[["hotlist-add-issue-btn"]],inputs:{id:["hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[ie],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&&(F(0,"button",0),J("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),P(1," Add Issue(s) "),G())},dependencies:[rB,lF],encapsulation:2});
var FY=function(a,b,c,d){yI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.dialog=c;this.events=d;this.id$=new U.ReplaySubject(1);this.hotlist$=this.id$.pipe(ig(function(f){return e.fridge.watchOne(f)}),fg({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(S(function(f){return!(null==f||!f.archived)}),Wf());this.archiveActionLabel$=this.archived$.pipe(S(function(f){return f?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(S(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($m(h)||"Error "+k+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(jg(this.destroyed$)).subscribe(function(f){e.latestHotlist=f})};V(FY,yI);FY.\u0275dir=yI.\u0275dir;
FY.prototype.isThinking=function(a){return this.fridge.isThinking(a)};FY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};var Z4b=function(a){if(null!=a.latestHotlist){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:In("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){Y4b(a,b)}}):Y4b(a,b)}},Y4b=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};
FY.\u0275fac=function(a){return new (a||FY)(C(bL),C(pK),C(PM),C(BK))};
FY.\u0275cmp=w({type:FY,selectors:[["hotlist-archive-btn"]],inputs:{id:["hotlistId","id"]},features:[ie,Jc],decls:4,vars:7,consts:[["mat-button","",1,"gmat-button","medium",3,"disabled","matTooltip","click"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return Z4b(b)}),Q(1,"async"),P(2),Q(3,"async"),G());if(a&2){var c;D("disabled",b.isThinking(b.id))("matTooltip",null!==(c=R(1,3,b.archiveActionTooltip$))&&void 0!==c?c:"");B(2);Je(" ",R(3,5,b.archiveActionLabel$)," ")}},dependencies:[rB,
lF,Fx],encapsulation:2});
var GY=function(a,b,c,d,e,f,h,k,q,u,x,E){xX.call(this,a,b,c,d,e,f,h,k,q,u);this.estadoService=x;this.refreshMonitor=E;this.init=new Jw;this.onRefresh=new Jw;this.isHotlistAdmin=!1;this.onExportCsv=new Jw;this.showHotlistButtons=!1;this.csvExportEnabled="PUBLIC"!==this.activeSession.frontendAccessMode;this.enableEstadoInAppBar=this.estadoService.enableEstado;this.controllerName="gridControls"};V(GY,xX);GY.\u0275dir=xX.\u0275dir;g=GY.prototype;g.ngOnInit=function(){this.init.emit(this)};
g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&T4b(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()};GY.\u0275fac=function(a){return new (a||GY)(C(uI,2),C(yH),C(FM),C(bJ),C(ZH),C(iT),C(vR),C(WS),C(PB),C(vK),C(ZX),C(dL))};
GY.\u0275cmp=w({type:GY,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[Me([uI]),ie,Jc],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"],[3,"hotlistId",4,"ngIf"],[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"],["class","bv2-external-component-modal-warning",4,"ngIf"],["mat-button","",1,"gmat-button","medium",3,"mat-dialog-close"],["mat-flat-button","","cdkFocusInitial","",1,"gmat-button","medium","primary",3,"mat-dialog-close"],[1,"bv2-external-component-modal-warning"],[4,"ngFor","ngForOf"],[3,"accessLevel"]],template:function(a,b){a&1&&(F(0,
"b-button",0),J("onAction",function(){return b.refresh()}),H(1,"b-icon",1),G(),O(2,lNa,1,1,"b-app-bar-bulk-edit-menus",2),O(3,mNa,1,2,"b-copy-issue-id-button",3),O(4,nNa,2,2,"div",4),O(5,pNa,3,2,"ng-container",5),O(6,rNa,3,3,"b-button",6),F(7,"b-app-bar-more-menu",7),J("exportCsvClicked",function(){return b.onExportCsv.emit()})("flagAsSpamClicked",function(){return p3b(b)}),G(),F(8,"b-state-modal",8),J("save",function(){return n3b(b)})("close",function(){return b.hotkeys.unpause()}),G(),O(9,uNa,10,
5,"ng-template",null,9,Pf));a&2&&(B(2),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.hasSelectedIssues()),B(1),D("ngIf",b.showHotlistButtons&&!b.hasSelectedIssues()),B(1),D("ngIf",b.enableEstadoInAppBar),B(1),D("showExportCsv",b.csvExportEnabled)("showFlagIssuesAsSpam",b.hasSelectedIssues()),B(1),D("externalWarnings",b.externalWarnings))},dependencies:[bI,aI,hO,$W,yx,ux,BS,SS,FY,EY,gX,BH,rB,QB,RB,SB,TB,aX],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});
var $4b=["multiUserInput"],HY=function(a,b,c,d,e,f){yI.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 Jw(!0);this.includeViewAliases=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.ariaLabel="";this.isValid=new Jw;this.typedText="";this.items=[];this.chipifyFn=function(){a5b(h)};this.additionalContactsFn=function(){return b5b(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=""}))};V(HY,yI);HY.\u0275dir=yI.\u0275dir;
HY.prototype.ngOnInit=function(){var a=this;this.validators=Object.assign({},{validateGaia:function(b,c){return c5b(c)},validateInternalAccessLevel:function(b,c){return d5b(a,c)},validateExternalAccessLevel:function(b,c){return e5b(a,c)}},this.customValidators)};HY.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=f5b(this,this.users),IY(this)};
var IY=function(a){var b=[].concat(v(a.items)),c=g5b(b),d=h5b(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Ei(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
HY.prototype.validate=function(a,b,c){for(var d=new Set,e=r(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=r(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=r(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return 0===this.violations.size};
var xNa=function(a){!a.isWidgetDisabled()&&i5b(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},vNa=function(a){Sp(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};HY.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var i5b=function(a){var b,c;return 0>a.maxUserAllowed||(null!=(c=null==(b=a.users)?void 0:b.length)?c:0)<a.maxUserAllowed};
HY.prototype.removeItem=function(a){this.isWidgetDisabled()||!Sp(this,a)||this.items[a].isReadonly||(vNa(this),this.items.splice(a,1),IY(this))};HY.prototype.setAccessLevel=function(a){this.accessLevel=a};
var b5b=function(a){return j5b(a).map(function(b){return{text:Epa(b),id:a.accessPolicyConverter.accessPolicyPrincipalToString({alias:b})}})},j5b=function(a){if(!a.includeAliases||"PUBLIC"===a.activeSession.frontendAccessMode)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},a5b=function(a){setTimeout(function(){a.typedText&&fa(a.typedText,",")&&yNa(a,a.typedText.split(",")[0].trim())})},
yNa=function(a,b){b&&(b=fTb.test(b)?k5b(a,b):l5b(a,b),a.items.push(b));a.typedText="";IY(a)},Sp=function(a,b){return 0<=b&&b<a.items.length},k5b=function(a,b){var c=void 0===c?!1:c;var d=a.accessPolicyConverter.stringToAccessPolicyPrincipal(b);if(void 0===d.alias)throw Error("Nd`"+b);b=d.alias;d=Epa(b);return new JY(4,b,d,null,c,a)},m5b=function(a,b){b=so(b);var c=new JY(3,b,b,null,!1,a);sI(a.principalTypes,b,!0).then(function(d){c.detailedUserType=X(d,2,0);IY(a)});return c},n5b=function(a,b){var c=
void 0===c?!1:c;b=so(b);var d=new JY(2,b,b,null,c,a);sI(a.principalTypes,b,!0).then(function(e){d.detailedUserType=X(e,2,0);IY(a)});return d},l5b=function(a,b){var c=void 0===c?!1:c;b=so(b);var d=new JY(0,b,b,null,c,a);sI(a.principalTypes,b,!0).then(function(e){d.principalType=X(e,1,0);d.detailedUserType=X(e,2,0);IY(a)});return d},o5b=function(a,b,c){return new JY(0,"",b,c,!0,a)};HY.prototype.getAccessLevel=function(){return this.accessLevel};HY.prototype.getAppName=function(){return this.activeSession.getAppName()};
HY.prototype.onKeyDown=function(a){8===a.keyCode?Sp(this,this.selectedChipIndex)?(Sp(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?Sp(this,this.selectedChipIndex)&&Sp(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):xNa(this)};
var f5b=function(a,b){b=(b||[]).map(function(d){return p5b(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 o5b(a,d.displayText,d.values.map(function(e){return p5b(a,e)}))});return[].concat(v(c),v(b))}return b},p5b=function(a,b){var c=b.split(":");if(2!==c.length)throw Error("xe`"+b);var d=Number(c[0]);if(2!==d&&3!==d&&4!==d)throw Error("xe`"+b);return 4===d?k5b(a,b):2===d?n5b(a,c[1]):
m5b(a,c[1])},g5b=function(a){return(a||[]).filter(function(b){return 0!==b.principalType}).map(function(b){return b.principalType+":"+b.value})},h5b=function(a){return(a||[]).filter(function(b){return 0!==b.detailedUserType}).map(function(b){return b.detailedUserType+":"+b.value})},c5b=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},d5b=function(a,b){return"INTERNAL"!==a.accessLevel?!0:!b.some(function(c){return c.isInternalAccessViolated()})},e5b=function(a,b){return"EXTERNAL_PARTNER"!==
a.accessLevel?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};HY.\u0275fac=function(a){return new (a||HY)(C(wd),C(tT),C(rI),C(yH),C(dP),C(BK))};
HY.\u0275cmp=w({type:HY,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&Hf($4b,5);if(a&2){var c;Gf(c=Jf())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&J("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:[ie,Jc],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&&(F(0,"div",0),J("click",function(){return xNa(b)}),F(1,"div"),O(2,
wNa,2,9,"div",1),O(3,zNa,2,5,"input",2),G()(),F(4,"div",3),O(5,ANa,4,1,"span",4),O(6,BNa,2,0,"span",4),O(7,CNa,2,0,"span",4),O(8,DNa,2,0,"span",4),O(9,ENa,2,0,"span",4),O(10,FNa,2,0,"span",4),G());a&2&&(te("focused",b.isFocused),B(2),D("ngForOf",b.items),B(1),D("ngIf",i5b(b)),B(2),D("ngIf",b.violations.has("noRestrictedPlusGroups")),B(1),D("ngIf",b.violations.has("validateGaia")),B(1),D("ngIf",b.violations.has("validateInternalAccessLevel")),B(1),D("ngIf",b.violations.has("validateExternalAccessLevel")),
B(1),D("ngIf",b.violations.has("sloLeadNotUser")),B(1),D("ngIf",b.violations.has("sloLeadNotGoogler")))},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:transparent;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 JY=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=JY.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("ye`"+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 KY=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)};KY.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler)};
var LY=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new U.Subscription(function(){a.checks=a.checks.filter(function(e){return e!==d})})};KY.prototype.canDeactivate=function(a,b,c,d){a:{a=WG(c.url).getPath()===WG(d.url).getPath();b=r(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?q5b()?(this.checks=[],!0):!1:!0};var q5b=function(){return window.confirm("You have unsaved changes; are you sure you want to navigate away without saving?")};
KY.\u0275fac=function(a){return new (a||KY)};KY.\u0275prov=lc({token:KY,factory:KY.\u0275fac,providedIn:"root"});
var r5b=function(a){return{displayText:"Admins",values:a}},s5b=function(a){return[a]},t5b=function(a){return{displayText:"Appenders",values:a}},u5b=In("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?"),MY=function(a,b,c,d,e,f,h,k){yI.call(this);var q=this;this.hotlistAccessPolicyFridge=a;this.links=b;this.snackBar=
c;this.events=d;this.dialog=f;this.permissions=h;this.userApi=k;this.id$=new U.ReplaySubject(1);this.idSubject$=Hk(this.id$.pipe(jg(this.destroyed$)));this.acl$=this.id$.pipe(ig(function(u){return q.hotlistAccessPolicyFridge.watchOne(u)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=yo(this.links);this.validity={};this.isValid=function(){return Object.values(q.validity).every(Boolean)};this.isInvalid=function(){return!q.isValid()};this.allAppenders=
[];this.onPressSave=function(){v5b(q)?q.dialog.open({title:"Change Hotlist Admins",content:u5b,isDestructive:!0,onConfirm:q.doSave}):q.doSave()};this.doSave=function(){var u=q.idSubject$.value;if(null!=u){var x=v5b(q);u={id:u,admins:Fta(q.admins),appenders:Fta(q.appenders),editors:null,readers:Fta(q.readers),inheritance:null,implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};q.hotlistAccessPolicyFridge.save(u).subscribe({next:q.didSave(x,
u.id),error:q.gotErr})}};this.didSave=function(u,x){return function(){q.snackBar.open("Access control saved",void 0,{duration:2500});q.events.hotlistChanged.next();q.permissions.poke(x);u&&q.doStar()}};this.gotErr=function(u){q.snackBar.open($m(u)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){var u=q.idSubject$.value;if(u){var x,E=null==(x=Xma())?void 0:x.getEmail();q.userApi.saveFavorite({resourceType:"HOTLIST",resourceId:u,userLogin:E}).then(function(){q.events.hotlistChanged.next()})}};
this.onPressRevert=function(){q.resetEdits()};this.gotAcl=function(u){q.latestPolicy=u;var x,E,I;q.latestCompactPolicy={admins:Dta(null==(x=q.latestPolicy)?void 0:x.admins),appenders:Dta(null==(E=q.latestPolicy)?void 0:E.appenders),readers:Dta(null==(I=q.latestPolicy)?void 0:I.readers)};q.resetEdits()};this.isChanged=function(){var u=q.latestCompactPolicy,x;if(!Ei(null!=(x=u.admins)?x:[],q.admins))return!0;var E;if(!Ei(null!=(E=u.appenders)?E:[],q.appenders))return!0;var I;return Ei(null!=(I=u.readers)?
I:[],q.readers)?!1:!0};this.hasNoChanges=function(){return!q.isChanged()};this.acl$.pipe(jg(this.destroyed$)).subscribe(this.gotAcl);this.subscriptions.add(LY(e,this.isChanged,!1))};V(MY,yI);MY.\u0275dir=yI.\u0275dir;var w5b=function(a){return[].concat(v(new Set([].concat(v(a.admins),v(a.appenders)))))};MY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};
MY.prototype.resetEdits=function(){var a;this.admins=[].concat(v(null!=(a=this.latestCompactPolicy.admins)?a:[]));var b;this.appenders=[].concat(v(null!=(b=this.latestCompactPolicy.appenders)?b:[]));var c;this.readers=[].concat(v(null!=(c=this.latestCompactPolicy.readers)?c:[]));this.allAppenders=w5b(this)};
var v5b=function(a){var b=a.admins,c;a=null!=(c=a.latestCompactPolicy.admins)?c:[];var d;c=null==(d=Xma())?void 0:d.getEmail();c=void 0===c?"":c;wna(b,a)?b=!1:(d="2:"+c,a=a.includes(d),b=!b.includes(d),b=a&&b);return b};MY.\u0275fac=function(a){return new (a||MY)(C(HL),C(dP),C(pK),C(BK),C(KY),C(PM),C(TL),C(YK))};
MY.\u0275cmp=w({type:MY,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ie,Jc],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&&(F(0,"form",0)(1,"label"),P(2,"Admins"),G(),F(3,"p",1),P(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),G(),F(5,"b-multi-user-input",2),J("usersChange",function(c){b.admins=c;b.allAppenders=w5b(b)})("isValid",
function(c){return b.validity.admins=c}),G(),F(6,"label"),P(7,"View and append"),G(),F(8,"p",1),P(9,"Reorder hotlist, add/remove issues"),G(),F(10,"b-multi-user-input",3),J("usersChange",function(c){b.appenders=c;b.allAppenders=w5b(b)})("isValid",function(c){return b.validity.appenders=c}),G(),F(11,"label"),P(12,"View only"),G(),F(13,"p",1),P(14,"View the hotlist"),G(),F(15,"b-multi-user-input",4),J("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),G()(),
F(16,"p"),P(17," See "),F(18,"a",5),P(19,"access control documentation"),G(),P(20," for an explanation of the settings.\n"),G(),O(21,GNa,5,4,"div",6));a&2&&(B(5),te("disabled",b.isReadOnly),D("users",b.admins),B(5),te("disabled",b.isReadOnly),D("users",b.appenders)("includeAliases",!0)("containerChips",Oe(18,s5b,Oe(16,r5b,b.admins))),B(5),te("disabled",b.isReadOnly),D("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Oe(22,s5b,Oe(20,t5b,b.allAppenders))),B(3),D("href",
b.accessControlLink,Ud),B(3),D("ngIf",!b.isReadOnly))},dependencies:[ux,iy,cy,fy,rB,lF,HY],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 x5b=["hotlistName"],NY=function(a,b,c,d){yI.call(this);var e=this;this.fridge=a;this.snackBar=b;this.events=c;this.isReadOnly=!1;this.id$=new U.ReplaySubject(1);this.hotlist$=this.id$.pipe(ig(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($m(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!Ei(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(jg(this.destroyed$)).subscribe(function(f){e.gotHotlist(f)});this.subscriptions.add(LY(d,
this.isChanged,!1))};V(NY,yI);NY.\u0275dir=yI.\u0275dir;NY.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;null==(b=a.hotlistName)||b.nativeElement.focus()})};NY.prototype.ngOnChanges=function(a){(a=a.hotlistId)&&this.id$.next(a.currentValue)};NY.prototype.resetEdits=function(a){var b;this.localEdits=null!=(b=Fi(a))?b:{}};NY.\u0275fac=function(a){return new (a||NY)(C(bL),C(pK),C(BK),C(KY))};
NY.\u0275cmp=w({type:NY,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&Hf(x5b,5);if(a&2){var c;Gf(c=Jf())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[ie,Jc],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&&(F(0,"form",0)(1,"label",1),P(2,"Name"),G(),F(3,"input",
2,3),J("ngModelChange",function(c){return b.localEdits.name=c}),G(),F(5,"label",4),P(6,"Description"),G(),F(7,"textarea",5),J("ngModelChange",function(c){return b.localEdits.description=c}),P(8,"  "),G(),O(9,HNa,7,7,"div",6),G());a&2&&(B(3),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.name),B(4),D("disabled",b.isReadOnly||b.isArchived)("ngModel",b.localEdits.description),B(2),D("ngIf",!b.isReadOnly))},dependencies:[ux,iy,Qg,by,cy,sy,hy,fy,rB,lF,FY,Fx],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 OY=function(a,b){yI.call(this);var c=this;this.hotlists=a;this.acls=b;this.id$=new U.ReplaySubject(1);this.hotlist$=this.id$.pipe(ig(function(d){return c.hotlists.watchOne(d)}))};V(OY,yI);OY.\u0275dir=yI.\u0275dir;OY.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};OY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};OY.\u0275fac=function(a){return new (a||OY)(C(bL),C(HL))};
OY.\u0275cmp=w({type:OY,selectors:[["b-edit-hotlist-header"]],inputs:{id:["hotlistId","id"]},features:[ie,Jc],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&&(F(0,"header",0)(1,"h2")(2,"span",1),P(3),G(),O(4,INa,2,1,"ng-container",2),Q(5,"async"),G(),O(6,JNa,2,0,"strong",3),Q(7,"async"),O(8,KNa,1,0,"b-spinner",2),G());if(a&2){var c;B(3);Je(" Hotlist ",b.id,
": ");B(1);D("ngIf",R(5,4,b.hotlist$));B(2);D("ngIf",null==(c=R(7,6,b.hotlist$))?null:c.archived);B(2);D("ngIf",b.isThinking(b.id))}},dependencies:[ux,aN,Fx],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});
var PY=function(){yI.call(this);this.URLS=Zs;this.id$=new U.ReplaySubject(1)};V(PY,yI);PY.\u0275dir=yI.\u0275dir;PY.prototype.ngOnChanges=function(a){(a=a.id)&&this.id$.next(a.currentValue)};PY.prototype.onPressBack=function(){var a;null==(a=window.history)||a.back()};PY.\u0275fac=function(a){return new (a||PY)};
PY.\u0275cmp=w({type:PY,selectors:[["b-edit-hotlist-toolbar"]],inputs:{id:["hotlistId","id"]},features:[ie,Jc],decls:7,vars:4,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"]],template:function(a,b){a&1&&(F(0,"section",0)(1,
"b-button",1),J("onAction",function(){return b.onPressBack()}),H(2,"b-icon",2),G(),F(3,"a",3),P(4," View Issues "),G(),H(5,"hotlist-add-issue-btn",4),Q(6,"async"),G());if(a&2){var c;B(3);D("href",b.URLS.HOTLIST_VIEW(b.id),Ud);B(2);D("hotlistId",null!==(c=R(6,2,b.id$))&&void 0!==c?c:void 0)}},dependencies:[sB,lF,hO,BH,EY,Fx],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});
var y5b=new sd("GMAT_TABS_OPTION");
var QY=function(a){this.inkBarPositioner=a};QY.prototype.isEnabled=function(){return this.inkBarPositioner===LNa};new Gv;new Fv;QY.\u0275fac=function(a){return new (a||QY)(C(K1b))};
QY.\u0275dir=w({type:QY,selectors:[["","gmat-tabs",""],["mat-tab-group"],["","mat-tab-nav-bar",""]],hostVars:2,hostBindings:function(a,b){a&2&&te("gmat-tabs",b.isEnabled())},features:[Me([{provide:K1b,useFactory:function(a,b,c){return a.nativeElement.hasAttribute("gmat-tabs")||c&&c.enabled?LNa:b},deps:[wd,[new Gv,K1b],[new Fv,y5b]]}])]});
var z5b={403:"You do not have permission to view this Hotlist.",404:"This Hotlist does not exist."},RY=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(S(function(e){return null==e?void 0:e.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(S(function(e){var f;return null!=(f=e.status)?f:-1}),S(function(e){var f;return null!=
(f=z5b[e])?f:"unknown error"}),hg(void 0));this.tabIndex=0};RY.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);window.location.hash.includes("access")&&(this.tabIndex=1)};RY.\u0275fac=function(a){return new (a||RY)(C(IR),C(WN),C(TL),C(bL))};
RY.\u0275cmp=w({type:RY,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&&(O(0,NNa,13,14,"ng-container",0),Q(1,"async"),O(2,ONa,7,1,"ng-container",0),Q(3,"async"));a&2&&(D("ngIf",void 0===R(1,2,b.hotlistErrorMsg$)),B(2),D("ngIf",R(3,
4,b.hotlistErrorMsg$)))},dependencies:[ux,PW,NW,QY,MO,MY,NY,OY,PY,Fx],encapsulation:2});
var SY=function(){};SY.\u0275fac=function(a){return new (a||SY)};SY.\u0275cmp=w({type:SY,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error",4,"ngIf"],["messageType","error"]],template:function(a,b){a&1&&O(0,PNa,3,1,"b-callout",0);a&2&&D("ngIf",b.error)},dependencies:[ux,jI,kI],encapsulation:2});
var TY=function(){};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275mod=Cc({type:TY});TY.\u0275inj=mc({imports:[Mx,jO]});
var UY=function(a){this.activeSession=a;this.sessionIsExternal=a.isExternalSession()};UY.prototype.getName=function(){return void 0===this.email?"":this.email.split("@")[0]};UY.\u0275fac=function(a){return new (a||UY)(C(yH))};
UY.\u0275cmp=w({type:UY,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&&(Ee(),O(0,VNa,17,5,"ng-container",0),O(1,WNa,1,0,"ng-template",null,1,Pf));if(a&2){var c=M(2);D("ngIf",!!Gn(b.email))("ngIfElse",c)}},dependencies:[ux,Ex,XE,dN,hN],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{--onedev-card-background: var(--surface-default, rgb(255, 255, 255));--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[_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-color:#dadce0;border-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 VY=function(){};VY.\u0275fac=function(a){return new (a||VY)};VY.\u0275mod=Cc({type:VY});VY.\u0275inj=mc({imports:[Mx,pF,ON]});
var sfa=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}},WY=function(a){yI.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 Jw;this.chipClear=new Jw;this.chipRemove=new Jw};V(WY,yI);
WY.\u0275dir=yI.\u0275dir;g=WY.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("ye`"+this.value);}};
var A5b=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};WY.\u0275fac=function(a){return new (a||WY)(C(yH))};
WY.\u0275cmp=w({type:WY,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:[ie],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&&(F(0,"span",0),J("focus",function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),F(1,"span",1),O(2,XNa,1,1,"mat-icon",2),G(),F(3,"div",3),O(4,YNa,2,2,"b-person-hovercard",4),O(5,ZNa,2,2,"b-group-email-card",4),O(6,$Na,2,1,"div",5),G(),O(7,aOa,2,2,"div",6),O(8,
cOa,7,1,"div",7),G());a&2&&(D("ngClass",tfa(b.isExternalChip(),b.isNonGaiaChip(),b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated(),b.isContainerChip(),b.isSelected,b.isReadonly))("matTooltip",b.getTooltip()),B(2),D("ngIf",A5b(b)),B(2),D("ngIf",b.isUserChip()),B(1),D("ngIf",b.isGroupChip()),B(1),D("ngIf",!b.isUserChip()&&!b.isGroupChip()),B(1),D("ngIf",!b.isReadonly&&!b.isWidgetDisabled),B(1),D("ngIf",b.isContainerChip()))},dependencies:[xx,yx,ux,lF,XE,jR,UY,WY],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-color:#dadce0;border-color:var(--divider);border-style:dashed;height:14px}\n/*# sourceMappingURL=contact_chip.css.map */"]});
var XY=function(){};XY.\u0275fac=function(a){return new (a||XY)};XY.\u0275mod=Cc({type:XY});XY.\u0275inj=mc({imports:[Mx,wy,mH,pF,lS,VY,zM,IU,YS]});pca(HY,[yx,ux,Qg,by,hy,HU,XS,WY],[]);
var YY=function(){};YY.\u0275fac=function(a){return new (a||YY)};YY.\u0275mod=Cc({type:YY});YY.\u0275inj=mc({imports:[Mx,UW]});
var ZY=function(){};ZY.\u0275fac=function(a){return new (a||ZY)};ZY.\u0275mod=Cc({type:ZY});ZY.\u0275inj=mc({providers:[{provide:y5b,useValue:{enabled:!0}}],imports:[Mx,wy,uG,pF,mH,UW,iO,nK,YY,dI,MN,TY,XY,vX,XO]});
var $Y=function(){};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275mod=Cc({type:$Y});$Y.\u0275inj=mc({imports:[fI,iO,FX,Mx,MS,VS,ZY,HX,dI,uG,UB,mH,GX]});
var aZ=function(a,b,c,d,e){yI.call(this);this.element=a;this.bLocation=b;this.paths=c;this.hotkeys=d;this.cdr=e;this.focusedIndex=0;this.convertUserToString=Rl;this.hotlists=[];this.registerKeys()};V(aZ,yI);aZ.\u0275dir=yI.\u0275dir;g=aZ.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=cJ(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))};
aZ.\u0275fac=function(a){return new (a||aZ)(C(wd),C(FK),C(GK),C(bJ),C(uI,2))};
aZ.\u0275cmp=w({type:aZ,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[Me([uI]),ie],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","clickable"],[1,"bv2-resource-list-cell","hotlist-id","clickable"]],template:function(a,b){a&1&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),P(8," Hotlist name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),P(13," Description "),G()()()(),F(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),P(18," Owner "),
G()()()(),F(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),P(23," ID "),G()()()()()(),F(24,"tbody"),O(25,dOa,11,9,"tr",6),G()());a&2&&(B(25),D("ngForOf",b.hotlists))},dependencies:[yx],encapsulation:2});
var bZ=function(){};bZ.\u0275fac=function(a){return new (a||bZ)};bZ.\u0275mod=Cc({type:bZ});bZ.\u0275inj=mc({imports:[Mx]});
var cZ=function(a,b){this.bLocation=a;this.butterBar=b},B5b=function(a,b){var c=a.bLocation.search()[b];return null!=c?Array.isArray(c)?(uK(a.butterBar,"Given multiple values for parameter "+b+"; using the first."),c[0]):"boolean"===typeof c?"":c:null};cZ.prototype.getCount=function(){var a=B5b(this,"c");return a?Ki(a):null};var C5b=function(a){return(a=B5b(a,"p"))?Ki(a):null};cZ.prototype.getQuery=function(){return B5b(this,"q")};
cZ.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Ui).filter(cl):null};cZ.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(Qma).filter(cl):null};
var dZ=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 D5b(e)}));void 0!==b.sortColumns&&d("s",null==b.sortColumns?null:(b.sortColumns||[]).map(function(e){var f="ASCENDING"==e.direction?"asc":"desc";return D5b(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)},D5b=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};cZ.\u0275fac=function(a){return new (a||cZ)(t(FK),t(sK))};cZ.\u0275prov=lc({token:cZ,factory:cZ.\u0275fac,providedIn:"root"});
var eZ=function(a){Z.call(this,a)};V(eZ,Z);eZ.prototype.getCustomField=function(){return m(this,pl,1)};eZ.prototype.setCustomField=function(a){return Gb(this,1,a)};eZ.prototype.toObject=function(){var a=null!=this?{customField:mJ(void 0,this.getCustomField())}:void 0;return a};eZ.messageId="b.CustomFieldResponse";
var fZ=function(){},gZ=function(a){this.executor=a};V(gZ,fZ);gZ.prototype.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:eZ}).then(bqa)};gZ.prototype.create=function(a,b){b=eqa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:String(a)}},body:b,responseConstructor:eZ}).then(bqa)};
gZ.prototype.update=function(a,b,c){b=Number(b);c=eqa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:String(a)}},body:c,responseConstructor:eZ}).then(bqa)};gZ.prototype.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:String(a)}},responseConstructor:null})};gZ.\u0275fac=function(a){return new (a||gZ)(t(qI))};gZ.\u0275prov=lc({token:gZ,factory:gZ.\u0275fac,providedIn:"root"});
var hZ=function(a,b,c){this.urlPreferences=a;this.userPreferencesManager=b;this.customFieldApi=c};hZ.prototype.fetch=function(a,b){a=E5b(this,a,void 0===b?null:b);return{searchPreferences:Ao({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
var E5b=function(a,b,c){var d=c?function(){return F5b(c)}:function(){return G5b(a)},e=c?function(){return H5b(c)}:function(){return I5b(a)};d=Promise.resolve(a.urlPreferences.getDisplayColumns()).then(function(k){return iZ(k)}).then(null,d).then(function(k){return iZ(k)}).then(null,jC(b.displayColumns)).then(function(k){return J5b(a,k)});e=Promise.resolve(a.urlPreferences.getSortColumns()).then(function(k){return iZ(k)}).then(null,e).then(function(k){return iZ(k)}).then(null,jC(b.sortColumns));var f=
Promise.resolve(a.urlPreferences.getCount()).then(function(k){return iZ(k)}).then(null,function(){return K5b(a)}).then(function(k){return iZ(k)}).then(null,jC(b.resultsPerPage)),h=Promise.resolve(a.urlPreferences.getQuery()).then(function(k){return iZ(k)}).then(null,function(){return L5b(c,function(k){return k.query})}).then(null,jC(b.query));b=C5b(a.urlPreferences)||b.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:b}},iZ=function(a){return null==a?Promise.reject(null):a},
F5b=function(a){return L5b(a,function(b){return b.displayColumn}).then(function(b){return M5b(b)})},H5b=function(a){return L5b(a,function(b){return b.sortOrder}).then(function(b){return N5b(b)})},I5b=function(a){return(0,U.firstValueFrom)(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return iZ(b)}).then(function(b){return N5b(b)})},G5b=function(a){return(0,U.firstValueFrom)(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return iZ(b)}).then(function(b){return M5b(b)})},
K5b=function(a){return(0,U.firstValueFrom)(a.userPreferencesManager.preferences$.pipe(S(function(b){var c;return null!=(c=b.resultsPerPage)?c:null}))).then(function(b){return iZ(b)})},L5b=function(a,b){return a?a.then(function(c){c=b(c);return null==c?Promise.reject(null):c}):Promise.reject(null)},M5b=function(a){if(!a||!a.length)return null;a=Ej(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Ti({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:"CANONICAL_ISSUE_ID"===b.type?"DUPLICATE_OF_ISSUE_ID":b.type})})},N5b=function(a){return a&&a.length?a.map(function(b){return void 0!==b.column?new Xi(new Ti(b.column),b.order):new Xi(new Ti(b.field),b.direction)}).filter(function(b){return"CUSTOM_FIELD"!=b.fieldId.type||null!=b.fieldId.customFieldId}):null},J5b=function(a,b){if(!b)return Promise.resolve([]);for(var c={},d=[],e=r(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=r(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)};hZ.\u0275fac=function(a){return new (a||hZ)(t(cZ),t(VI),t(fZ))};hZ.\u0275prov=lc({token:hZ,factory:hZ.\u0275fac,providedIn:"root"});
var jZ=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){yI.call(this);var L=this;this.cdr=a;this.bLocation=b;this.$log=c;this.butterBar=e;this.analytics=f;this.issuePagination=h;this.gridPreferencesFetcher=k;this.paths=q;this.errorHandler=u;this.domSafe=x;this.timeout=E;this.hotkeys=I;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 Jw;this.resultsLoaded=new Jw;this.selectionChange=new Jw;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 T;null==(T=L.issuesGrid)||R4b(T)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",
onPress:function(){var T;null==(T=L.issuesGrid)||S4b(T)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var T;null==(T=L.issuesGrid)||Q4b(T)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var T;null==(T=L.issuesGrid)||U4b(T)}},{keys:[Pj("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var T;null==(T=L.issuesGrid)||V4b(T,!0)}},{keys:[Pj("u")],displayAs:"Shift+u",description:"Mark as unread",
onPress:function(){var T;null==(T=L.issuesGrid)||V4b(T,!1)}},{keys:[Qj("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var T;null==(T=L.issuesGrid)||T.selectAll()}},{keys:[Qj("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var T;null==(T=L.issuesGrid)||N4b(T)}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(T){var Y=N.document.activeElement;
if(1===T&&"A"===(null==Y?void 0:Y.tagName))if(Y.href)T=L.paths.getBaseUrl(),Mi(Y.href,T)?b.url(Y.href.slice(T.length)):L.domSafe.openInNewTab(Y.href);else{var ja;null==(ja=L.issuesGrid)||AY(ja)}else{var ha;null==(ha=L.issuesGrid)||AY(ha)}}}];this.destroyed$.subscribe(function(){var T;null==(T=L.unregisterHotkeys)||T.call(L)})};V(jZ,yI);jZ.prototype.columnsChange=function(a){this.issueColumns=a};jZ.prototype.ngOnInit=function(){this.getIssues();O5b(this)};
var O5b=function(a){var b;null==(b=a.unregisterHotkeys)||b.call(a);a.isFocused?a.unregisterHotkeys=cJ(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},MOa=function(a,b){a.issuesGrid=b;T4b(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:null==(c=a.issuesGrid)?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};g=jZ.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ui(a);if(null==d)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Xi(d,"ASC"==b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return Ei(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Ii(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Ei(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(v(b),v(q4b(a)));this.initialIssueColumns=Fi(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&"A"===c.target.tagName||(Zn(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(){KM(this.issuePagination);this.getIssues()};g.exportCsv=function(){hP(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;return JM(b.issuePagination,e)});a.catch(function(e){"number"===typeof e?b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});
return Ao({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=Fi(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:P5b,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=r4b(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):Q5b).length)).map(function(c){return new Ti(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;tK(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Fi(a.issueColumns);a.initialSortPreferences=Fi(a.sortPreferences);a.cdr.detectChanges()})};
g.discardChanges=function(){Zn(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(v(this.initialIssueColumns||[]));this.initialSortPreferences&&!Ei(this.initialSortPreferences,this.sortPreferences)&&(xa(this.sortPreferences),Tt(maa,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Ei(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Ei(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){return!!this.resource&&Ol(this.resource.ownerUser)===this.currentUserEmail};g.getMetaColumns=function(){return Q5b};
g.getSearchParams=function(a){a=Fi(a);a.resultsPerPage=10;a.page=this.page;0!=this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.url();return a};
ji.Object.defineProperties(jZ.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(a,this.issueColumnsInternal)||(this.issueColumnsInternal=a,Zn(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&&O5b(this)},get:function(){return this.focusedRowIndexInternal}},
isFocused:{configurable:!0,enumerable:!0,get:function(){return null!==this.focusedRowIndex}}});var Q5b=[BY,CY,DY],P5b="priority type title assignee status issueId modifiedTime".split(" ").map(Ui);jZ.\u0275fac=function(a){return new (a||jZ)(C(uI),C(FK),C(vK),C(yH),C(sK),C(FM),C(IM),C(hZ),C(GK),C(xK),C(fP),C(nI),C(bJ),C(Window))};
jZ.\u0275dir=w({type:jZ,viewQuery:function(a,b){a&1&&Hf(zY,5);if(a&2){var c;Gf(c=Jf())&&(b.issuesGrid=c.first)}},inputs:{panel:"panel",isDashboardEditable:"isDashboardEditable",first:"first",last:"last",focusedRowIndex:"focusedRowIndex"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",resultsLoaded:"resultsLoaded",selectionChange:"selectionChange"},features:[ie]});
var kZ=function(a,b){this.dialog=a;this.appEvents=b;this.last=this.first=!1};kZ.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:In("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)}})};kZ.\u0275fac=function(a){return new (a||kZ)(C(PM),C(BK))};
kZ.\u0275cmp=w({type:kZ,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&&(F(0,
"div")(1,"button",0),H(2,"mat-icon",1),G(),F(3,"mat-menu",null,2),O(5,iOa,6,4,"ng-template",3),G()());if(a&2){var b=M(4);B(1);D("matMenuTriggerFor",b)}},dependencies:[ux,bF,$E,eF,ZE,XE,rB],encapsulation:2});var lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=Cc({type:lZ});lZ.\u0275inj=mc({imports:[Mx,fF,pF,uG]});
var mZ=function(){};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275mod=Cc({type:mZ});mZ.\u0275inj=mc({imports:[Mx,pF]});
var nZ=function(){};nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275mod=Cc({type:nZ});nZ.\u0275inj=mc({imports:[Mx,mZ]});
var oZ=function(){};oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275mod=Cc({type:oZ});oZ.\u0275inj=mc({imports:[Mx,ON,nZ]});
var pZ=function(){};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275mod=Cc({type:pZ});pZ.\u0275inj=mc({imports:[Mx,mZ]});
var qZ=function(){};qZ.prototype.getValue=function(){return this.row[this.column.name]||""};qZ.prototype.isCustomField=function(){return this.column.isCustomField};
qZ.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 jl(a);Ei(this.customFieldValue,a)||(this.customFieldValue=a);return this.customFieldValue};qZ.\u0275fac=function(a){return new (a||qZ)};
qZ.\u0275cmp=w({type:qZ,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&&(O(0,jOa,2,2,"span",0),O(1,kOa,1,1,"b-custom-field-value-display",1));a&2&&(D("ngIf",!b.isCustomField()),B(1),D("ngIf",b.isCustomField()))},dependencies:[ux,tV],encapsulation:2,changeDetection:0});
var rZ=function(){};rZ.\u0275fac=function(a){return new (a||rZ)};rZ.\u0275mod=Cc({type:rZ});rZ.\u0275inj=mc({imports:[Mx,mH,uV]});pca(lY,[yx,ux,Ex,qY,qZ],[]);
var sZ=function(){};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275mod=Cc({type:sZ});sZ.\u0275inj=mc({imports:[Mx,ON]});
var tZ=function(){};tZ.\u0275fac=function(a){return new (a||tZ)};tZ.\u0275mod=Cc({type:tZ});tZ.\u0275inj=mc({imports:[Mx,sZ,PP]});
var uZ=function(){};uZ.\u0275fac=function(a){return new (a||uZ)};uZ.\u0275mod=Cc({type:uZ});uZ.\u0275inj=mc({imports:[uY,Mx,fF,eI,mH,uG,UB,pB,dI,rZ,mZ,oZ,PP,pZ,zM,lS,oX,WX,tZ,MS,KN,sV,ON,qX,WU]});
var vZ=function(a,b,c){this.hotlistsApi=a;this.butterBar=b;this.appEvents=c};
vZ.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,u=b[c],x=b[d].position;qaa(b,c,d);null==f||f();tK(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,u.issueId,x).then(function(){for(var E=k,I=r(b),N=I.next();!N.done;N=I.next())N.value.position=E,E+=q?-1:1;null==f||f();tK(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
vZ.\u0275fac=function(a){return new (a||vZ)(t(SK),t(sK),t(BK))};vZ.\u0275prov=lc({token:vZ,factory:vZ.\u0275fac,providedIn:"root"});
var R5b=["actionsMenuIconButton"],wZ=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical"};wZ.prototype.trackByIndex=function(a){return a};wZ.prototype.onAction=function(a,b){return hf(function(c){if("mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button)return c.return();"action"!==b.type&&"select"!==b.type||b.action(a);kf(c)})};wZ.prototype.ngOnInit=function(){};wZ.\u0275fac=function(a){return new (a||wZ)};
wZ.\u0275cmp=w({type:wZ,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&Hf(R5b,5);if(a&2){var c;Gf(c=Jf())&&(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,"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,"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","click","mouseup",4,"ngIf"],["mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","click","mouseup",4,"ngIf"],["mat-menu-item",
"",3,"disabled","click","mouseup"],["mat-menu-item","","role","menuitemcheckbox",3,"disabled","click","mouseup"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(O(0,lOa,3,3,"button",0),F(1,"mat-menu",null,1)(3,"div",2),O(4,mOa,2,1,"div",3),O(5,AOa,3,2,"ng-container",4),G()());a&2&&(D("ngIf",0<b.menuItems.length),B(4),D("ngIf",b.header),B(1),D("ngForOf",b.menuItems)("ngForTrackBy",b.trackByIndex))},dependencies:[bF,$E,eF,yx,ux,XE,rB],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 xZ=function(a){this.buttonRef=a;this.toRefocus=!1};xZ.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}))};xZ.\u0275fac=function(a){return new (a||xZ)(C(wd))};
xZ.\u0275dir=w({type:xZ,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Jc]});
var yZ=function(){this.pageChange=new Jw;this.resultsPerPageChange=new Jw;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};yZ.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};var S5b=function(a){a.searchResults&&a.pageChange.emit({page:a.searchResults.params.page-1})};
ji.Object.defineProperties(yZ.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}})}}});yZ.\u0275fac=function(a){return new (a||yZ)};
yZ.\u0275cmp=w({type:yZ,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&&(F(0,"div",0),O(1,BOa,1,1,"b-actions-menu",1),O(2,COa,6,3,"span",2),F(3,"button",3),J("click",function(){return S5b(b)})("keydown.enter",function(c){S5b(b);return c.stopPropagation()}),H(4,"mat-icon",4),G(),F(5,"button",5),J("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),H(6,"mat-icon",6),G()());a&2&&(B(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length&&
!b.resultsPerPageFixed),B(1),D("ngIf",b.searchResults&&0<b.searchResults.issues.length),B(1),D("disabled",!(null==b.searchResults?0:b.searchResults.hasPreviousPage())),B(2),D("disabled",!(null==b.searchResults?0:b.searchResults.hasNextPage())))},dependencies:[ux,rB,XE,wZ,xZ],encapsulation:2});
var zZ=function(){};zZ.\u0275fac=function(a){return new (a||zZ)};zZ.\u0275mod=Cc({type:zZ});zZ.\u0275inj=mc({imports:[fF,Mx,pF,uG,mH]});
var AZ=function(){};AZ.\u0275fac=function(a){return new (a||AZ)};AZ.\u0275mod=Cc({type:AZ});AZ.\u0275inj=mc({});
var BZ=function(){};BZ.\u0275fac=function(a){return new (a||BZ)};BZ.\u0275mod=Cc({type:BZ});BZ.\u0275inj=mc({imports:[Mx,uG,pF,zZ,AZ]});
var CZ=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y){jZ.call(this,c,e,f,h,k,q,u,x,E,d,I,L,T,Y);this.hotlists=a;this.hotlistApi=b;this.appEvents=N;this.resource=null};V(CZ,jZ);CZ.\u0275dir=jZ.\u0275dir;g=CZ.prototype;g.ngOnInit=function(){jZ.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();"position"===a||c&&"position"===c.field?jZ.prototype.setSort.call(this,a,b,!1):jZ.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"});tK(a.butterBar,'Saved changes to hotlist "'+b.name+'".');Zn(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});uK(this.butterBar,"Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},jZ.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?T5b:U5b};g.getSearchParams=function(a){a=jZ.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;Zn(c.analytics,c.ANALYTICS_CATEGORY,"issueDragDrop")})};CZ.\u0275fac=function(a){return new (a||CZ)(C(vZ),C(SK),C(uI,2),C(xK),C(FK),C(vK),C(yH),C(sK),C(FM),C(IM),C(hZ),C(GK),C(fP),C(BK),C(nI),C(bJ),C(jM))};
CZ.\u0275cmp=w({type:CZ,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),O(3,DOa,2,0,"div",3),O(4,EOa,2,0,"div",3),O(5,HOa,8,5,"div",3),G(),O(6,IOa,5,0,"div",4),F(7,"b-pagination",5),
J("pageChange",function(c){return b.goToPage(c.page)}),G()(),O(8,OOa,4,3,"div",3),G());a&2&&(oe("aria-busy",b.isLoading),B(3),D("ngIf",!b.resource&&!b.isLoading),B(1),D("ngIf",!b.resource&&b.isLoading),B(1),D("ngIf",b.resource),B(1),D("ngIf",b.hasParamChanges()),B(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),D("ngIf",b.resource))},dependencies:[ux,zY,rB,lF,yZ,kZ,aN],encapsulation:2});var U5b=[BY,CY,DY,X4b],T5b=[BY,W4b,CY,DY,X4b],DZ=function(){};
DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275mod=Cc({type:DZ});DZ.\u0275inj=mc({imports:[Mx,uZ,uG,mH,BZ,lZ,MN]});
var EZ=function(a,b){this.checker=a;this.document=b},V5b=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?V5b(a,b[c]):null;if(d)return d}return null};EZ.\u0275fac=function(a){return new (a||EZ)(t(zy),t(hi))};EZ.\u0275prov=lc({token:EZ,factory:EZ.\u0275fac,providedIn:"root"});
var FZ=function(a,b){this.elementRef=a;this.interactivityHelper=b;this.firstFocusableElement=null};FZ.prototype.focus=function(){this.firstFocusableElement||(this.firstFocusableElement=V5b(this.interactivityHelper,this.elementRef.nativeElement));var a;null==(a=this.firstFocusableElement)||a.focus()};ji.Object.defineProperties(FZ.prototype,{nativeElement:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});FZ.\u0275fac=function(a){return new (a||FZ)(C(wd),C(EZ))};
FZ.\u0275dir=w({type:FZ,selectors:[["","onedevFocusableListOption",""]]});var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=Cc({type:GZ});GZ.\u0275inj=mc({});
var W5b=["listEl"],QOa=function(a,b){return{$implicit:a,index:b}},X5b=[[["","empty",""]]],HZ=function(){this.items=[];this.disabled=this.reorderable=this.removable=!1;this.itemsChange=new Jw;this.itemChange=new Jw;this.itemMove=new Jw;this.destroyed$=new U.ReplaySubject(1);this.isListFocused=!1};g=HZ.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Yz(Xz(new fA(this.viewOptions)));this.keyManager.tabOut.pipe(jg(this.destroyed$)).subscribe(function(){var b;null==(b=a.keyManager)||b.setActiveItem(-1)})};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
g.removeAtIndex=function(a){var b=this.items.length-1;if(!(0>a||a>=this.items.length)){var c=[].concat(v(this.items.slice(0,a)),v(this.items.slice(a+1)));this.itemChange.emit({item:this.items[a],added:!1,items:c});this.itemsChange.emit(c);if(b===a)if(0===b)this.listEl.nativeElement.focus();else{var d;null==(d=this.keyManager)||d.setActiveItem(b-1)}else{var e;null==(e=this.keyManager)||e.setNextItemActive()}}};
g.handleKeydown=function(a){if(this.keyManager){var b=a.code;if("ArrowUp"===b||"ArrowDown"===b)a.preventDefault(),this.keyManager.onKeydown(a);else if("Tab"===b)this.keyManager.onKeydown(a);else if("Home"===b||"End"===b)a.preventDefault(),"Home"===b?cA(this.keyManager):dA(this.keyManager);else if("Delete"===b||"Backspace"===b){var c=this.keyManager.activeItemIndex;null!=c&&-1!==c&&this.removeAtIndex(c)}else"ArrowRight"===b?(c=this.keyManager.activeItemIndex,this.removable&&null!=c&&-1!==c&&(c=this.viewOptions.toArray()[c].nativeElement.querySelector(".delete-button"))&&
c.focus()):"ArrowLeft"===b&&(a=this.keyManager.activeItemIndex,this.removable&&null!=a&&-1!==a&&(null==(c=this.keyManager)||c.setActiveItem(a)))}};g.onDrop=function(a){var b=a.previousIndex;a=a.currentIndex;var c=[].concat(v(this.items));b===a||0>b||b>=c.length||0>a||a>=c.length||(ep(c,b,a),this.itemMove.emit({item:c[a],isNowAfter:0!==a?c[a-1]:void 0,items:c}),this.itemsChange.emit(c))};g.isActive=function(){return this.isListFocused||null!=this.keyManager&&-1!==this.keyManager.activeItemIndex};
HZ.\u0275fac=function(a){return new (a||HZ)};
HZ.\u0275cmp=w({type:HZ,selectors:[["onedev-editable-list"]],viewQuery:function(a,b){a&1&&(Hf(W5b,7),Hf(FZ,5));if(a&2){var c;Gf(c=Jf())&&(b.listEl=c.first);Gf(c=Jf())&&(b.viewOptions=c)}},hostVars:2,hostBindings:function(a,b){a&2&&te("active",b.isActive())},inputs:{items:"items",listItemTemplate:"listItemTemplate",removable:"removable",reorderable:"reorderable",disabled:"disabled",labelledById:"labelledById",valueToTextFunc:"valueToTextFunc"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",
itemMove:"itemMove"},exportAs:["onedevEditableList"],ngContentSelectors:["[empty]"],decls:13,vars:5,consts:[[3,"keydown","focus","blur"],["listEl",""],[4,"ngIf","ngIfElse"],["nonReorderableList",""],["listItem",""],["defaultListItemDisplay",""],["customListItemDisplay",""],["emptyList",""],["cdkScrollable","",1,"list-container"],["cdkDropList","","cdkDropList","",1,"drop-list",3,"cdkDropListDropped"],[4,"ngFor","ngForOf"],"role listitem onedevFocusableListOption  cdkDrag  cdkDragLockAxis y cdkDragBoundary .drop-list".split(" "),
["cdkDragHandle","",1,"drag-handler"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24"],["d","M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"list-container"],["role","listitem","onedevFocusableListOption",
""],["tabindex","-1","mat-icon-button","","class","delete-button",3,"matTooltip","click",4,"ngIf"],["tabindex","-1","mat-icon-button","",1,"delete-button",3,"matTooltip","click"],["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"],["tabindex","-1"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"empty-list"]],template:function(a,b){a&1&&(Ee(X5b),F(0,"section",0,1),J("keydown",function(d){return b.handleKeydown(d)})("focus",function(){return b.isListFocused=
!0})("blur",function(){return b.isListFocused=!1}),O(2,TOa,4,2,"ng-container",2),O(3,XOa,2,2,"ng-template",null,3,Pf),G(),O(5,$Oa,2,6,"ng-template",null,4,Pf),O(7,aPa,2,1,"ng-template",null,5,Pf),O(9,bPa,1,7,"ng-template",null,6,Pf),O(11,cPa,2,0,"ng-template",null,7,Pf));if(a&2){var c=M(4);oe("role",b.items.length?"list":null)("tabindex",b.items.length?0:-1)("aria-labelledby",b.labelledById);B(2);D("ngIf",b.reorderable)("ngIfElse",c)}},dependencies:[yx,ux,Ex,rB,lF,sA,cV,dV,XU,FZ],styles:["[role=list][_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;font-size:13px;min-height:20px;overflow:hidden}[role=list][_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]{padding-left:4px}[role=listitem][_ngcontent-%COMP%]{padding:2px 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;line-height:16px}[role=listitem][_ngcontent-%COMP%]:focus, [role=listitem][_ngcontent-%COMP%]:focus-within{background-color:var(--option-active-bg,#e8f0fe)}[role=listitem][_ngcontent-%COMP%]:hover   .drag-handler[_ngcontent-%COMP%]{visibility:visible;cursor:move}.drag-handler[_ngcontent-%COMP%]{visibility:hidden}.delete-button[_ngcontent-%COMP%]{margin-left:auto;height:16px;width:16px;line-height:12px}.delete-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%], .drag-handler[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:14px;width:14px;vertical-align:middle;line-height:12px;color:var(--icon,#5f6368);fill:currentColor}.cdk-drag-preview[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:var(--surface-secondary,#f8f9fa);font-family:Roboto,Arial,sans-serif;font-size:13px;box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 2px 6px 2px rgba(60,64,67,.15)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drop-list-dragging[_ngcontent-%COMP%]{cursor:move}.cdk-drop-list-dragging[_ngcontent-%COMP%]   [role=listitem][_ngcontent-%COMP%]   .drag-handler[_ngcontent-%COMP%]{visibility:hidden}.list-container[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%], section[_ngcontent-%COMP%]{height:inherit}"],
changeDetection:0});
var IZ=function(a){this.pathBuilder=a;this.disabled=this.reorderable=!1;this.itemsChange=new Jw;this.itemChange=new Jw;this.itemMove=new Jw;this.itemsInternal=[]};IZ.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};IZ.prototype.issueToText=function(a){return"Issue "+a.issueId};IZ.prototype.getLink=function(a){return this.pathBuilder.editIssue(a.issueId)};
IZ.prototype.getStatusTextStyle=function(a){return(a=a.status&&vn[a.status])?a.open?"":"closed":""};ji.Object.defineProperties(IZ.prototype,{items:{configurable:!0,enumerable:!0,set:function(a){this.itemsInternal=a.filter(function(b){return!(b.resolved&&b.archived)})},get:function(){return this.itemsInternal}}});IZ.\u0275fac=function(a){return new (a||IZ)(C(MX))};
IZ.\u0275cmp=w({type:IZ,selectors:[["b-rel-issues-list"]],inputs:{items:"items",orderByFn:"orderByFn",reorderable:"reorderable",disabled:"disabled"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[Jc],decls:3,vars:6,consts:[[3,"removable","disabled","reorderable","items","listItemTemplate","valueToTextFunc","itemsChange","itemChange","itemMove"],["relIssueTemplate",""],[1,"row",3,"ngClass"],[3,"issueStatusJs","displayMode",4,"ngIf"],["issueHovercard","onedevHovercard"],
[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-id",3,"href","onedevHovercardTrigger"],["tabindex","-1","class","keep-focus-ring rel-issues-list-title",3,"href",4,"ngIf"],[4,"ngIf"],[3,"issueStatusJs","displayMode"],[3,"onedevIsHovercardReady","issueId"],["cardBody",""],["tabindex","-1",1,"keep-focus-ring","rel-issues-list-title",3,"href"]],template:function(a,b){a&1&&(F(0,"onedev-editable-list",0),J("itemsChange",function(d){return b.itemsChange.emit(d)})("itemChange",
function(d){return b.itemChange.emit(d)})("itemMove",function(d){return b.itemMove.emit(d)}),G(),O(1,iPa,11,9,"ng-template",null,1,Pf));if(a&2){var c=M(2);D("removable",!0)("disabled",b.disabled)("reorderable",b.reorderable)("items",b.items)("listItemTemplate",c)("valueToTextFunc",b.issueToText)}},dependencies:[xx,ux,HZ,lX,dN,eN,hN,fN,nX],styles:["[_nghost-%COMP%]     [role=listitem]:hover{background-color:#e8f0fe;background-color:var(--primary-c50)}[_nghost-%COMP%]     button.delete-button{margin-left:2px}.rel-issues-list-id[_ngcontent-%COMP%]{display:inline-block;min-width:60px;padding-left:5px;padding-right:5px}.row[_ngcontent-%COMP%]{display:flex;align-items:center}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#202124;color:var(--text-default)}.row.closed[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:hover){color:#5f6368;color:var(--text-muted)}.row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#1a73e8;color:var(--link)}\n/*# sourceMappingURL=rel_issues_list.css.map */"]});
var JZ=function(){};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275mod=Cc({type:JZ});JZ.\u0275inj=mc({imports:[Mx,uG,mH,eV,Qz,GZ]});
var KZ=function(){};KZ.\u0275fac=function(a){return new (a||KZ)};KZ.\u0275mod=Cc({type:KZ});KZ.\u0275inj=mc({imports:[Mx,JZ,oX,ON,qX]});
var Y5b=[[["","footer-items",""]]],LZ=function(a,b,c,d,e){yI.call(this);this.matDialog=a;this.paths=c;this.analytics=d;this.butterBar=e;this.items=[];this.itemsChange=new Jw;this.itemChange=new Jw;this.itemMove=new Jw;this.disabled=!1;this.addButtonTitle=this.removeButtonTitle="";this.hideStatus=!1;this.relDisplayMessage=this.currentResourceId=null;this.reorderable=!1;this.relation="blocked/blocking";this.startTimestamp=null;this.orderByFn=function(f,h){var k,q,u=f.status?null!=(q=null==(k=vn[f.status])?
void 0:k.sortOrder)?q:0:0,x,E;k=h.status?null!=(E=null==(x=vn[h.status])?void 0:x.sortOrder)?E:0:0;return u===k?f.issueId-h.issueId:u-k};this.enableWtdmMvpUi=AH(b,"enableWtdmMvpUi")};V(LZ,yI);LZ.\u0275dir=yI.\u0275dir;LZ.prototype.ngOnInit=function(){};LZ.prototype.ngOnChanges=function(){!this.reorderable&&this.orderByFn&&this.items.sort(this.orderByFn)};
var vPa=function(a){DB(a.matDialog.open(tX,{data:{title:a.relDisplayMessage,componentId:a.componentId,defaultChoices:[],allowMultipleIds:!0,currentResourceId:a.currentResourceId,currentResourceType:"issue"}})).pipe(jg(a.destroyed$)).subscribe(function(b){(null==b?0:b.length)&&Z5b(a,b.map(function(c){return c.resourceId}))});Zn(a.analytics,ao.ISSUE_PICKER,"click",a.addButtonTitle);a.startTimestamp||(a.startTimestamp=new Date)};
LZ.prototype.removeItem=function(a){if(!this.disabled){var b=[].concat(v(this.items)),c=b.find(function(d){return d.issueId===a});c&&(za(b,c),this.itemChange.emit({item:c,added:!1,items:b}),this.itemsChange.emit(b))}};
var Z5b=function(a,b){var c=new Set(a.items.map(function(f){return f.issueId})),d=b.filter(function(f){return!c.has(f)});if(0===d.length)tK(a.butterBar,"Issue was already in the list.",0);else{b=[].concat(v(a.items));d=r(d);for(var e=d.next();!e.done;e=d.next())e={issueId:e.value},b.push(e),a.itemChange.emit({item:e,added:!0,items:b});a.itemsChange.emit(b);a.startTimestamp?(b=(new Date).getTime()-a.startTimestamp.getTime(),Zn(a.analytics,ao.ISSUE_PICKER,"apply",a.relation,b),eLb(a.analytics,b,a.relation),
a.startTimestamp=null):Zn(a.analytics,ao.ISSUE_PICKER,"apply",a.relation)}};LZ.prototype.getStatusTextStyle=function(a){return(a=a.status&&vn[a.status])&&(a.open?"":"closed")||""};LZ.prototype.getLink=function(a){return this.paths.editIssue(a.issueId)};LZ.\u0275fac=function(a){return new (a||LZ)(C(PB),C(yH),C(GK),C(FM),C(sK))};
LZ.\u0275cmp=w({type:LZ,selectors:[["b-rel-issues-picker"]],inputs:{items:"items",disabled:"disabled",removeButtonTitle:"removeButtonTitle",addButtonTitle:"addButtonTitle",hideStatus:"hideStatus",searchLink:"searchLink",currentResourceId:"currentResourceId",relDisplayMessage:"relDisplayMessage",componentId:"componentId",reorderable:"reorderable",relation:"relation"},outputs:{itemsChange:"itemsChange",itemChange:"itemChange",itemMove:"itemMove"},features:[ie,Jc],ngContentSelectors:["[footer-items]"],
decls:7,vars:6,consts:[[1,"bv2-rel-issues-picker"],[1,"bv2-rel-issues-picker-header"],[1,"bv2-rel-issues-picker-content"],[4,"ngIf"],["class","bv2-rel-issues-picker-footer",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove",4,"ngIf"],[3,"items","orderByFn","disabled","reorderable","itemsChange","itemChange","itemMove"],["class","bv2-rel-issues-picker-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"bv2-rel-issues-picker-item",3,"ngClass"],["displayMode","ICON",
3,"issueStatusJs",4,"ngIf"],[1,"bv2-rel-issues-picker-id"],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"subtle-link",3,"href","onedevHovercardTrigger"],[3,"href"],["class","bv2-rel-issues-picker-id",4,"ngIf"],["class","bv2-rel-issues-picker-title",4,"ngIf"],["class","bv2-remove-icon keep-focus-ring bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click",4,"ngIf"],["displayMode","ICON",3,"issueStatusJs"],[3,"onedevIsHovercardReady",
"issueId"],["cardBody",""],[1,"bv2-rel-issues-picker-title"],[1,"bv2-remove-icon","keep-focus-ring","bv2-rel-issues-picker-remove-button",3,"disabled","matTooltip","click"],[1,"bv2-rel-issues-picker-footer"],["mat-button","",1,"gmat-button","mat-stroked-button",3,"disabled","click"],["class","bv2-rel-issues-link",4,"ngIf"],[1,"bv2-rel-issues-link"]],template:function(a,b){a&1&&(Ee(Y5b),F(0,"div",0),H(1,"div",1),F(2,"div",2),O(3,kPa,2,1,"div",3),O(4,sPa,2,1,"div",3),O(5,tPa,2,0,"div",3),G(),O(6,wPa,
5,3,"div",4),G());a&2&&(B(2),te("bv2-rel-issues-picker-content-without-footer",!b.addButtonTitle),B(1),D("ngIf",b.enableWtdmMvpUi),B(1),D("ngIf",!b.enableWtdmMvpUi),B(1),D("ngIf",!b.items.length),B(1),D("ngIf",b.addButtonTitle))},dependencies:[rB,lF,xx,yx,ux,IZ,dN,eN,hN,fN,nX,lX],encapsulation:2});var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=Cc({type:MZ});MZ.\u0275inj=mc({imports:[uG,mH,Mx,vX,KZ,ON,qX,oX]});
var NZ=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L){jZ.call(this,b,d,e,f,h,k,q,u,x,c,E,I,N,L);this.savedSearchApi=a;this.resource=null};V(NZ,jZ);NZ.\u0275dir=jZ.\u0275dir;NZ.prototype.ngOnInit=function(){jZ.prototype.ngOnInit.call(this)};NZ.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};NZ.prototype.saveResource=function(){return Promise.resolve()};
NZ.\u0275fac=function(a){return new (a||NZ)(C(CN),C(uI,2),C(xK),C(FK),C(vK),C(yH),C(sK),C(FM),C(IM),C(hZ),C(GK),C(fP),C(nI),C(bJ),C(jM))};
NZ.\u0275cmp=w({type:NZ,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"div",1)(2,"div",2),O(3,xPa,2,0,"div",3),O(4,yPa,2,0,"div",3),O(5,BPa,8,5,"div",4),G(),F(6,"b-pagination",5),J("pageChange",function(c){return b.goToPage(c.page)}),G()(),O(7,GPa,4,3,"div",3),G());a&2&&(oe("aria-busy",b.isLoading),B(3),D("ngIf",!b.resource&&!b.isLoading),B(1),D("ngIf",!b.resource&&b.isLoading),B(1),D("ngIf",b.resource),B(1),D("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(1),D("ngIf",b.resource))},
dependencies:[ux,zY,lF,yZ,kZ,aN],encapsulation:2});var OZ=function(){};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275mod=Cc({type:OZ});OZ.\u0275inj=mc({imports:[Mx,uZ,mH,BZ,lZ,MN]});
var PZ=function(){};PZ.\u0275fac=function(a){return new (a||PZ)};PZ.\u0275mod=Cc({type:PZ});PZ.\u0275inj=mc({});
var QZ=function(){this.label="Team"};QZ.prototype.ngOnInit=function(){};QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=w({type:QZ,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&&(F(0,"div",0)(1,"span",1),O(2,HPa,3,3,"span",2),G()());a&2&&(oe("aria-label",b.label),B(2),D("ngForOf",b.teamPath))},dependencies:[yx,KI],encapsulation:2});
var RZ=function(){};RZ.\u0275fac=function(a){return new (a||RZ)};RZ.\u0275mod=Cc({type:RZ});RZ.\u0275inj=mc({imports:[Mx,QI,UU]});
var SZ=function(a){this.bFocus=!0;this.nativeElement=a.nativeElement};SZ.prototype.ngOnInit=function(){this.bFocus&&this.nativeElement.focus()};SZ.prototype.ngOnChanges=function(){this.bFocus&&this.nativeElement.focus()};SZ.\u0275fac=function(a){return new (a||SZ)(C(wd))};SZ.\u0275dir=w({type:SZ,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Jc]});var TZ=function(){};TZ.\u0275fac=function(a){return new (a||TZ)};TZ.\u0275mod=Cc({type:TZ});TZ.\u0275inj=mc({});
var $5b=["form"],a6b=["numberInput"],b6b=/^\d+\.?\d*$/,c6b={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},UZ=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new Jw;this.displayUnits=0;this.timeUnitEnum=c6b};
UZ.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()})};UZ.prototype.ngAfterViewInit=function(){};
UZ.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))};UZ.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};UZ.\u0275fac=function(a){return new (a||UZ)};
UZ.\u0275cmp=w({type:UZ,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(Hf($5b,7),Hf(a6b,7));if(a&2){var c;Gf(c=Jf())&&(b.form=c.first);Gf(c=Jf())&&(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&&(F(0,"form",null,0)(2,"div",1)(3,"mat-form-field",2)(4,"input",3,4),J("keydown",function(c){switch(c.key){case "-":case "e":case "E":c.preventDefault()}})("paste",function(c){var d=c.clipboardData.getData("Text");b6b.test(d)||c.preventDefault()}),G()(),F(6,"mat-form-field",2)(7,"mat-select",5)(8,"mat-option",6),P(9,"days"),G(),F(10,"mat-option",
6),P(11,"year(s)"),G()()()()());a&2&&(B(4),D("ngModel",b.displayNumber)("disabled",b.disabled),oe("aria-label",b.ariaLabel),B(3),D("ngModel",b.displayUnits)("disabled",b.disabled),B(1),D("value",b.timeUnitEnum.DAYS),B(2),D("value",b.timeUnitEnum.YEARS))},dependencies:[iy,Qg,jy,by,cy,ry,hy,fy,eC,gC,GS,nB],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 VZ=function(){};VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275mod=Cc({type:VZ});VZ.\u0275inj=mc({imports:[Mx,wy,hC,fC,HS,TZ]});
var WZ=function(a,b,c){this.dialogRef=a;this.data=b;this.documentationLinks=c};WZ.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};WZ.prototype.onNoClick=function(){this.dialogRef.close(!1)};WZ.\u0275fac=function(a){return new (a||WZ)(C(CB),C(NB),C(dP))};
WZ.\u0275cmp=w({type:WZ,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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"p"),P(4,
" The "),F(5,"strong"),P(6),G(),P(7," field will change state from "),F(8,"strong"),P(9),G(),P(10," to "),F(11,"strong"),P(12),G(),P(13,". "),G(),O(14,IPa,6,2,"p",2),F(15,"p"),P(16,"Are you sure?"),G()(),F(17,"div",3)(18,"button",4),J("click",function(){return b.onNoClick()}),P(19," Cancel "),G(),F(20,"button",5),P(21," Confirm "),G()());a&2&&(B(1),Je("Field State Change for ",b.data.fieldName,""),B(5),Ke(b.data.fieldName),B(3),Ke(b.data.oldFieldState),B(3),Ke(b.data.newFieldState),B(2),D("ngIf",
b.data.noteText),B(6),D("mat-dialog-close",!0))},dependencies:[ux,rB,QB,RB,SB,TB],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});
var d6b=["fieldStateMenuButton"],e6b=function(a){return{"mat-stroked-button":a}},XZ=function(a){this.dialog=a;this.fieldName="";this.fieldState=1;this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new Jw;this.FieldStateProto=Vpa;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."}};XZ.prototype.ngOnInit=function(){this.updateMenuButton()};
XZ.prototype.ngOnChanges=function(){this.updateMenuButton()};
var g6b=function(a,b){b!==a.fieldState&&(a.confirmationDialog?f6b(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},f6b=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);DB(a.dialog.open(WZ,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:h6b(a,a.fieldState),newFieldState:h6b(a,b),noteText:e}})).pipe(Xf()).subscribe(function(f){f?
(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};XZ.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=h6b(this,this.fieldState)};var h6b=function(a,b){switch(b){case 1:return a.defaultLabel;case 2:return a.msgs.hiddenName;case 3:return a.msgs.visibleName;default:sh(b,"Unknown FieldState.")}};XZ.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};
XZ.\u0275fac=function(a){return new (a||XZ)(C(PB))};
XZ.\u0275cmp=w({type:XZ,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&Hf(d6b,5,wd);if(a&2){var c;Gf(c=Jf())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Jc],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&&(F(0,"div")(1,"button",0,1)(3,"div",2),H(4,"span",3)(5,"b-icon",4),G()()(),F(6,"mat-menu",null,5)(8,"div",6)(9,"div",7)(10,"button",8),J("click",function(){return g6b(b,b.FieldStateProto.INHERIT)}),H(11,"b-icon",9),F(12,"div",10),P(13),G(),F(14,"div",11),P(15),G()()(),H(16,"mat-divider"),F(17,"button",12),J("click",function(){return g6b(b,b.FieldStateProto.DISABLED)}),F(18,"div",13)(19,"div",
14),H(20,"b-icon",9),F(21,"div",10),P(22),G(),F(23,"div",11),P(24),G()()()(),F(25,"button",12),J("click",function(){return g6b(b,b.FieldStateProto.ENABLED)}),F(26,"div",13)(27,"div",14),H(28,"b-icon",9),F(29,"div",10),P(30),G(),F(31,"div",11),P(32),G()()()()()());if(a&2){var c=M(7);B(1);D("ngClass",Oe(16,e6b,!b.disabled))("disabled",b.disabled)("matMenuTriggerFor",c);B(3);D("innerHTML",b.menuLabel,Td);B(6);te("b-menu-item-checked",b.fieldState===b.FieldStateProto.INHERIT);B(3);Je(" ",b.defaultLabel,
" ");B(2);Je(" ",b.msgs.inheritDescription," ");B(2);te("b-menu-item-checked",b.fieldState===b.FieldStateProto.DISABLED);B(5);Je(" ",b.msgs.hiddenName," ");B(2);Je(" ",b.msgs.hiddenDescription," ");B(1);te("b-menu-item-checked",b.fieldState===b.FieldStateProto.ENABLED);B(5);Je(" ",b.msgs.visibleName," ");B(2);Je(" ",b.msgs.visibleDescription," ")}},dependencies:[xx,rB,$H,bF,$E,eF,BH],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 YZ=function(){};YZ.\u0275fac=function(a){return new (a||YZ)};YZ.\u0275mod=Cc({type:YZ});YZ.\u0275inj=mc({imports:[Mx,uG,UB,eI,fF,dI,iO]});
var ZZ=function(a,b){this.dialogRef=b;this.issueId=a.issueId;this.issueTitle=a.issueTitle};ZZ.prototype.close=function(){this.dialogRef.close(!1)};ZZ.\u0275fac=function(a){return new (a||ZZ)(C(NB),C(CB))};
ZZ.\u0275cmp=w({type:ZZ,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&&(F(0,"h1",0),P(1,"Unsubscribe From Issue"),G(),F(2,"mat-dialog-content")(3,"div",1),P(4," Are you sure you would like to unsubscribe from the following issue? "),
G(),H(5,"br"),F(6,"div",2)(7,"a",3)(8,"span"),P(9),G()(),P(10," - "),F(11,"span"),P(12),G()(),H(13,"br"),F(14,"div",1),P(15," By unsubscribing, you will no longer receive email updates about this issue. "),G()(),F(16,"mat-dialog-actions")(17,"button",4),J("click",function(){return b.close()}),P(18," Cancel "),G(),F(19,"button",5),J("click",function(){b.dialogRef.close(!0)}),P(20," Unsubscribe "),G()());a&2&&(B(7),Ge("href","/issues/",b.issueId,"",Ud),B(2),Je("b/",b.issueId,""),B(3),Ke(b.issueTitle))},
dependencies:[RB,SB,TB,rB],encapsulation:2});
var i6b=function(a,b){return{small:a,medium:b}},j6b=function(a){return{black:a}},$Z=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 Jw;this.showNotificationSettings=new Jw;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=XAb;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"}]])};$Z.prototype.ngOnInit=function(){k6b(this)};$Z.prototype.ngOnChanges=function(){this.updateMenuButton()};$Z.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};$Z.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var k6b=function(a){var b,c;hf(function(d){if(1==d.nextAddress)return"true"!==a.routeParams.unsubscribe||a.subscription&&"UNSUBSCRIBED"===a.subscription?d.return():jf(d,(0,U.firstValueFrom)(a.issueFridge.watch(a.issueId)),2);if(3!=d.nextAddress)return(b=d.yieldResult)?jf(d,(0,U.firstValueFrom)(DB(a.matDialogService.open(ZZ,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3):d.return();if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),Zn(a.analytics,ao.EDIT_ISSUE,"unsubscribeUsingDialog");
kf(d)})};ji.Object.defineProperties($Z.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){null!=a&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});$Z.\u0275fac=function(a){return new (a||$Z)(C(yH),C(PB),C(hL),C(FM),C(IR))};
$Z.\u0275cmp=w({type:$Z,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Jc],decls:63,vars:29,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"],["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,"menu-row-container"],[1,"subscription-info"],[1,"subscription-help"],[3,"panelTemplate","overlayPositions"],["allUpdates",""],["name","help-outline","size","small",1,"subscription-help","item-icon"],["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){a&1&&(F(0,"div")(1,"button",0)(2,"div",1),H(3,"b-icon",2),O(4,JPa,3,1,"ng-container",3),G()()(),F(5,"mat-menu",null,4)(7,"div",5)(8,"div",6)(9,"button",7),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION)}),
H(10,"b-icon",8),F(11,"div",9),P(12," Default "),G(),F(13,"div",10),P(14," receive emails based on your default settings. "),G()(),H(15,"mat-divider",11),F(16,"button",12),J("click",function(f){return b.showNotificationSettings.emit(f)}),H(17,"b-icon",13),G()(),H(18,"mat-divider"),F(19,"button",14),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES)}),F(20,"div",15)(21,"div",16),H(22,"b-icon",8),F(23,"div",9),P(24," All Updates "),G(),F(25,"div",10),
P(26," receive emails for major and minor updates. "),G()(),F(27,"div",17)(28,"xap-bubble",18,19),H(30,"b-icon",20),O(31,KPa,13,0,"ng-template",null,21,Pf),G()()()(),F(33,"button",22),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES)}),F(34,"div",15)(35,"div",16),H(36,"b-icon",8),F(37,"div",9),P(38," Major Updates "),G(),F(39,"div",10),P(40," receive emails for major updates only. "),G()(),F(41,"div",17)(42,"xap-bubble",18,23),H(44,"b-icon",20),
O(45,LPa,15,0,"ng-template",null,24,Pf),G()()()(),F(47,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY)}),F(48,"div",15)(49,"div",16),H(50,"b-icon",8),F(51,"div",9),P(52," Closure Only "),G(),F(53,"div",10),P(54," only receive emails when the issue is closed. "),G()()()(),F(55,"button",25),J("click",function(){return b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED)}),F(56,"div",15)(57,"div",16),H(58,"b-icon",8),F(59,"div",
9),P(60," None "),G(),F(61,"div",10),P(62," unsubscribe from further email updates. "),G()()()()()());if(a&2){var c=M(6),d=M(32),e=M(46);B(1);te("icon-only",b.iconOnly);D("ngClass",Pe(24,i6b,b.iconOnly,!b.iconOnly))("matMenuTriggerFor",c)("disabled",b.isAnonymous);oe("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||"UNKNOWN_SUBSCRIPTION").label);B(2);D("name",b.menuIcon)("ngClass",Oe(27,j6b,"notifications-off"===b.menuIcon));B(1);D("ngIf",!b.iconOnly);
B(5);te("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);D("vertical",!0);B(4);te("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(9);D("panelTemplate",d)("overlayPositions",b.bubblePosition);B(5);te("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(9);D("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);te("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);te("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[xx,ux,rB,$H,bF,$E,eF,BH,AS],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%]   .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 a_=function(){};a_.\u0275fac=function(a){return new (a||a_)};a_.\u0275mod=Cc({type:a_});a_.\u0275inj=mc({imports:[Mx,uG,eI,fF,dI,iO,LS]});
var b_=function(a,b){this.sloApi=a;this.cdr=b;this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new Jw;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex_=-1;this.requestIndex_=0},l6b=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()};
b_.prototype.displayFn=function(a){return(null==a?void 0:a.getName())||(null==a?void 0:a.getSloId())||""};b_.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.getSloId();this.onSloSelect.emit(a);this.cdr.detectChanges()};
ji.Object.defineProperties(b_.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 bY).setSloId(b.internalBoundId)}):(this.dropdownChoices=[],this.selectedSlo=null)}}});b_.\u0275fac=function(a){return new (a||b_)(C(eY),C(uI,2))};
b_.\u0275cmp=w({type:b_,selectors:[["slo-picker"]],inputs:{isDisabled:["bv2Disabled","isDisabled"],placeholder:["bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[Me([uI])],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=y();F(0,"div",0)(1,"input",1,2);J("ngModelChange",function(e){return b.selectedSlo=e})("click",function(){z(c);var e=M(2);return A(l6b(b,e.value))})("input",function(){z(c);var e=M(2);return A(l6b(b,e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});O(5,MPa,2,2,"mat-option",5);G()()}if(a&
2){var d=M(4);B(1);D("placeholder",b.placeholder)("ngModel",b.selectedSlo)("disabled",b.isDisabled)("matAutocomplete",d);B(2);D("displayWith",b.displayFn);B(2);D("ngForOf",b.dropdownChoices)}},dependencies:[yx,jN,kN,nB,Qg,by,hy],encapsulation:2});
var c_=function(){};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275mod=Cc({type:c_});c_.\u0275inj=mc({imports:[Mx,mN,wy]});
var m6b=function(a){return{"empty-list-field-indication":a}},d_=function(a){this.documentationLinks=a;this.issueRetentionDisabled=!1;this.modelChange=new Jw;this.validChange=new Jw;this.RetentionSelection=$Ab};d_.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};Tp(this)};
d_.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);Tp(this)};var Tp=function(a){var b=a.validChange,c=b.emit,d;if(d=Wp(a))d=a.hasRetentionSelection(a.model.piiRetentionSelection)&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!n6b(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||o6b(a));c.call(b,d)};
d_.prototype.hasRetentionSelection=function(a){return a&&a!==this.RetentionSelection.UNSPECIFIED_RETENTION};
var Wp=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)},Vp=function(a){return a?ko(a):"[unset period]"},o6b=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},RPa=function(a){if(!Wp(a)||o6b(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 "+Vp(e):"Restricted+ retention must not exceed Restricted retention."},n6b=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||60>a.model.retentionPeriodDays)},UPa=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};d_.\u0275fac=function(a){return new (a||d_)(C(dP))};
d_.\u0275cmp=w({type:d_,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled"},outputs:{modelChange:"modelChange",validChange:"validChange"},decls:30,vars:31,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","rel","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-underline","keep-focus-ring"],[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&&(F(0,"mat-radio-group",0),J("ngModelChange",function(c){return b.updateSelectionOnChange(c)}),F(1,"p")(2,"b"),P(3,"Issue Retention"),G()(),F(4,"mat-radio-button",1),P(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),G(),F(6,"mat-radio-button",2),P(7," Custom retention period "),O(8,NPa,2,0,"span",3),O(9,OPa,4,
3,"div",4),G(),F(10,"mat-radio-button",5),P(11),O(12,PPa,13,0,"div",6),G()(),F(13,"mat-radio-group",7),J("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);Tp(b)}),F(14,"p"),H(15,"br"),F(16,"b"),P(17,"Restricted Comments/Attachments Retention "),G(),F(18,"a",8),P(19,"Learn more "),G()(),F(20,"mat-radio-button",1),P(21," Buganizer default retention period : 60 days "),O(22,QPa,2,0,"span",3),
G(),F(23,"mat-radio-button",9),P(24," Custom retention period "),O(25,SPa,2,1,"span",3),O(26,VPa,16,7,"div",4),G(),F(27,"mat-radio-button",5),P(28," Match Issue Retention "),O(29,WPa,3,0,"div",10),G()());a&2&&(D("ngClass",Oe(27,m6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),D("value",b.RetentionSelection.CUSTOM_PERIOD),
B(2),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!(b.model.retentionPeriodDays&&30<=b.model.retentionPeriodDays&&3650>=b.model.retentionPeriodDays)),B(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(1),Je(" Indefinite retention period ",b.isExternal?"(Internal components only)":""," "),B(1),D("ngIf",b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION),
B(1),D("ngClass",Oe(29,m6b,b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION))("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),oe("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ud),B(2),D("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&n6b(b)),B(1),D("aria-label","Custom Retention Period,"+RPa(b))("disabled",!Wp(b))("value",
b.RetentionSelection.CUSTOM_PERIOD),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD&&!o6b(b)),B(1),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD),B(1),D("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),D("ngIf",b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&UPa(b)))},dependencies:[xx,ux,by,hy,OX,QX,UZ],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 e_=function(){};e_.\u0275fac=function(a){return new (a||e_)};e_.\u0275mod=Cc({type:e_});e_.\u0275inj=mc({imports:[Mx,wy,XX,VZ]});
var p6b=function(){this.type="component";this.includeChildren=!1},q6b=function(){this.type="team";this.includeChildren=!1},r6b=function(){this.type="hotlist"},s6b=function(){this.type="savedsearch"},t6b=function(){this.type="customfield"};
var u6b=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},v6b="componentid c hotlistid h savedsearchid teamid".split(" "),w6b=v6b.concat("archived assignee attachment blockedbyid blockingid canonicalid cc cccount cl comment 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(" ")),
x6b="cl deleted deletionreason deletiontime effortlabel nearestslo postmortem teamid".split(" "),y6b="(?:\\s|^)(-?)(customfield\\d+|"+w6b.join("|")+")(:|>|<|>=|<=|=)";
var f_=function(a,b,c,d,e,f,h){yI.call(this);var k=this;this.userApi=a;this.customFieldsApi=b;this.hotlistApi=c;this.savedSearchApi=d;this.componentActions=e;this.teamsService=f;this.activeSession=h;this.query="";this.requestIndex=0;this.producers=[{match:function(q){return z6b(k,q)}},{updateHeader:function(q){return A6b(k,q)}},{updateHeader:function(q){return B6b(k,q)}},{updateHeader:function(q){return C6b(k,q)}},{updateHeader:function(q){return D6b(k,q)}},{updateHeader:function(q){return E6b(k,
q)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new U.Subject;this.refreshRequest$=new U.Subject;this.refreshRequest$.pipe(Tf(250),jg(this.destroyed$)).subscribe(function(q){F6b(k,q.currentRequestIndex,q.currentSearchContext)});this.sessionIsInternal=h.isInternalSession();a=new Set(w6b);$i("enableWtdmMvpUi")||a.delete("parentid");this.sessionIsInternal||a.delete("mention");if(!this.sessionIsInternal)for(b=r(x6b),c=b.next();!c.done;c=b.next())a.delete(c.value);
this.atoms=Object.freeze(a);this.atomsWithoutOp=Object.freeze(new Set(["customfield"]))};V(f_,yI);f_.\u0275dir=yI.\u0275dir;
var F6b=function(a,b,c){for(var d=!1,e=!1,f=[],h=r(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,v(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()})},z6b=
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 G6b(a,b);switch(b.label.val){case "archived":return Promise.resolve(Zp(H6b,b.value,!0));case "componentid":case "c":return I6b(a,b);case "deleted":return J6b(b);case "deletionreason":return Promise.resolve(Zp(K6b,b.value,!0));case "hotlistid":case "h":return L6b(a,b);case "savedsearchid":return M6b(a,b);case "status":case "is":return Promise.resolve(Zp(N6b,
b.value,!0));case "teamid":return O6b(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(Zp(P6b,b.value,!0));case "severity":case "s":return Promise.resolve(Zp(Q6b,b.value,!0));case "inprod":case "star":case "mute":return J6b(b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];for(var d=YPa(b.value.val),e=r(a.atoms),f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&Mi(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 Yt(k.name,q.name)});return Promise.resolve(c)},G6b=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 Zp(d,b.value,!1,!1)}):Promise.reject(null)};f_.prototype.matchType=function(a){return Promise.resolve(Zp(R6b,a.value,!0))};
var J6b=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(Zp([{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))},I6b=function(a,b){var c=b.value.val;return!c||Yp(c,!0)?Promise.reject(null):a.componentActions.search(c).then(function(d){var e=
[],f={};d=r(d);for(var h=d.next();!h.done;f={$jscomp$loop$prop$component$1701:f.$jscomp$loop$prop$component$1701,$jscomp$loop$prop$startIdx$1702:f.$jscomp$loop$prop$startIdx$1702,$jscomp$loop$prop$endIdx$1703:f.$jscomp$loop$prop$endIdx$1703},h=d.next())f.$jscomp$loop$prop$component$1701=h.value,h=f.$jscomp$loop$prop$component$1701.componentId,f.$jscomp$loop$prop$startIdx$1702=b.value.idx,f.$jscomp$loop$prop$endIdx$1703=f.$jscomp$loop$prop$startIdx$1702+c.length,h={componentId:h,name:f.$jscomp$loop$prop$component$1701.name,
description:f.$jscomp$loop$prop$component$1701.description,trackId:"component:"+h,accessLimit:f.$jscomp$loop$prop$component$1701.accessLimit,completionCfg:{type:"component",startIdx:f.$jscomp$loop$prop$startIdx$1702,endIdx:f.$jscomp$loop$prop$endIdx$1703,completionValue:""+h,matchingString:c},componentPath:f.$jscomp$loop$prop$component$1701.componentPathInfo.componentPathId.map(function(k){return function(q,u){return{trackId:"subcomponent:"+q,id:""+q,name:String(k.$jscomp$loop$prop$component$1701.componentPathInfo.componentPathName[u]),
completionCfg:{type:"component",completionValue:String(q),startIdx:k.$jscomp$loop$prop$startIdx$1702,endIdx:k.$jscomp$loop$prop$endIdx$1703}}}}(f))},e.push(h);return e})},O6b=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||Yp(c,!0))return Promise.reject(null);var d=Mj();$L(a.teamsService,c).pipe(jg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[],q={};e=r(e.getTeamSuggestionsList());for(var u=e.next();!u.done;q={$jscomp$loop$prop$pathNames$1705:q.$jscomp$loop$prop$pathNames$1705},
u=e.next())u=u.value,q.$jscomp$loop$prop$pathNames$1705=u.getPathNamesList(),u={trackId:"team:"+u.getId(),name:u.getName(),id:u.getId(),label:"Team "+u.getId(),pathIds:u.getPathIdsList(),pathNames:u.getPathNamesList(),description:u.getDescription(),completionCfg:{type:"team",startIdx:f,endIdx:h,completionValue:String(u.getId()),matchingString:c},teamPath:u.getPathIdsList().map(function(x){return function(E,I){return{trackId:"team:"+E,id:E,name:x.$jscomp$loop$prop$pathNames$1705[I],completionCfg:{type:"team",
completionValue:String(E),startIdx:f,endIdx:h}}}}(q))},k.push(u);d.resolve(k)},function(){d.reject()});return d.promise},A6b=function(a,b){if(!b.label||"componentid"!==b.label.val&&"c"!==b.label.val)return Promise.reject(null);var c=new p6b;b=b.value.val;return Yp(b,!0)?(Xt(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)},E6b=function(a,b){if(!a.sessionIsInternal||!b.label||"teamid"!==b.label.val)return Promise.reject(null);
var c=new q6b,d=Mj(),e=b.value.val;Yp(e,!0)?(Xt(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),$L(a.teamsService,e).pipe(jg(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},B6b=function(a,b){if(!b.label||"hotlistid"!==
b.label.val&&"h"!==b.label.val)return Promise.reject(null);var c=new r6b;b=b.value.val;return Yp(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},C6b=function(a,b){if(!b.label||"savedsearchid"!==b.label.val)return Promise.reject(null);var c=new s6b;b=b.value.val;return Yp(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},D6b=function(a,b){if(b.label&&b.label.customFieldId)var c=
b.label.customFieldId;else if(Mi(b.value.val,"customfield"))(b=b.value.val.match("^customfield(\\d+)"))&&(c=b[1]),On("search-usage","customfield");else return Promise.reject(null);var d=new t6b;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},L6b=function(a,b){return Yp(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 Zp(c,b.value,!1,!0)})},M6b=function(a,b){return Yp(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 Zp(c,b.value,!1,!0)})};f_.\u0275fac=function(a){return new (a||f_)(t(YK),t(fZ),t(SK),t(CN),t(iT),t(ZL),t(yH))};f_.\u0275prov=lc({token:f_,factory:f_.\u0275fac,providedIn:"root"});
var N6b="accepted assigned closed duplicate fixed infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return $p(a,"status","Status","status")}),R6b=$i("enableWtdmMvpUi")?"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue project feature milestone epic story task".split(" ").map(function(a){return $p(a,"bugType","Type","type")}):"bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue".split(" ").map(function(a){return $p(a,
"bugType","Type","type")}),P6b=["p0","p1","p2","p3","p4"].map(function(a){return $p(a,"priority","Priority","priority")}),Q6b=["s0","s1","s2","s3","s4"].map(function(a){return $p(a,"severity","Severity","severity")}),H6b=["all","true","false"].map(function(a){return $p(a,"archived","Archived","archived")}),K6b=["abuse","pii","user_request","retention"].map(function(a){return $p(a,"deletionReason","Deletion Reason","deletionreason")});
var g_=function(a){this.cdr=a;this.optionsChange=new Jw};g_.prototype.ngOnInit=function(){ZPa(this)};
var ZPa=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},$Pa=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},S6b=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);$Pa(a)},T6b=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(", ")};g_.\u0275fac=function(a){return new (a||g_)(C(uI,2))};
g_.\u0275cmp=w({type:g_,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[Me([uI])],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&&
(F(0,"div")(1,"button",0)(2,"div",1)(3,"span",2),P(4),P(5," \u00a0 "),G(),H(6,"mat-icon",3),G()(),F(7,"mat-menu",null,4)(9,"div",5),J("click",function(d){return S6b(b,d)}),F(10,"b-checkbox",6),J("change",function(d){b.selectAllValue=d;return S6b(b)}),G()(),H(11,"mat-divider"),O(12,aQa,3,3,"div",7),Q(13,"keyvalue"),G(),O(14,bQa,2,1,"div",8),G());if(a&2){var c=M(8);B(1);te("ng-invalid",!!b.errorString);D("matMenuTriggerFor",c);B(3);Je(" ",T6b(b)," ");B(5);oe("aria-checked",b.selectAllValue);B(1);D("checked",
!!b.selectAllValue)("indeterminate",null===b.selectAllValue)("label",b.selectAllText);B(2);D("ngForOf",R(13,10,b.options.propertyValues));B(2);D("ngIf",!!b.errorString)}},dependencies:[yx,ux,fQ,bF,$E,eF,$H,rB,XE,Jx],styles:["[_nghost-%COMP%]   .gmat-button[_ngcontent-%COMP%] {padding: 0 10px;}\n[_nghost-%COMP%]   .bv2-property-picker-summary-text[_ngcontent-%COMP%] {text-align: left;}"]});
var U6b=function(a,b){this.displayString=a;this.value=b},V6b=function(a){this.propertyValues=a},W6b=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(a.propertyValues[c.value].value)return!0;return!1},CQa=function(a){for(var b=r(Object.keys(a.propertyValues)),c=b.next();!c.done;c=b.next())if(!a.propertyValues[c.value].value)return!1;return!0};V6b.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};
var h_=function(){};h_.\u0275fac=function(a){return new (a||h_)};h_.\u0275mod=Cc({type:h_});h_.\u0275inj=mc({imports:[Mx,gQ,fF,eI,uG,pF]});
var X6b=function(a,b){this.name=a;this.secondsPerUnit=b},aq=new X6b("minute",60),bq=new X6b("hour",3600),cq=new X6b("day",86400),i_=function(){this.errorString=null;this.objectiveDurationChange=new Jw;this.objectiveBusinessDaysChange=new Jw;this.intervalUnit=cq};i_.prototype.ngOnInit=function(){Y6b(this)};i_.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.isFirstChange()})&&Y6b(this)};
var eQa=function(a,b){b=b.name;1!==Ki(a.intervalString)&&(b+="s");return b},Y6b=function(a){2!=a.dayType&&Z6b(a,cq)||Z6b(a,bq)||Z6b(a,aq);if(0!=a.objectiveBusinessDays||""!=a.businessDayString)a.businessDayString=""+a.objectiveBusinessDays},Z6b=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?[aq,bq]:[aq,bq,cq]).includes(a.intervalUnit)||(a.intervalUnit=b),!0):!1},
cQa=function(a){a.errorString=a.validator(a.intervalString,a.businessDayString);gQa(a);hQa(a)},gQa=function(a){a.objectiveDuration.setSeconds(a.intervalUnit.secondsPerUnit*(Ki(a.intervalString)||0));a.objectiveDurationChange.emit(a.objectiveDuration)},hQa=function(a){a.objectiveBusinessDays=Ki(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};i_.\u0275fac=function(a){return new (a||i_)};
i_.\u0275cmp=w({type:i_,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Jc],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&&(O(0,iQa,6,6,"span",0),O(1,mQa,3,2,"span",1));a&2&&(D("ngIf",!b.isDisabled),B(1),D("ngIf",b.isDisabled))},dependencies:[yx,
ux,Qg,by,hy,GS,nB],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 j_=function(a,b){this.typeStringToJSPB=new Map([["BUG",1],["FEATURE_REQUEST",2],["CUSTOMER_ISSUE",3],["INTERNAL_CLEANUP",4],["PROCESS",5],["VULNERABILITY",6],["PRIVACY_ISSUE",7]]);this.jspbTypeToString=new Map([[1,"BUG"],[2,"FEATURE_REQUEST"],[3,"CUSTOMER_ISSUE"],[4,"INTERNAL_CLEANUP"],[5,"PROCESS"],[6,"VULNERABILITY"],[7,"PRIVACY_ISSUE"]]);AH(b,"enableWtdmMvpUi")&&(this.typeStringToJSPB.set("PROJECT",8),this.jspbTypeToString.set(8,"PROJECT"),this.typeStringToJSPB.set("FEATURE",9),this.jspbTypeToString.set(9,
"FEATURE"),this.typeStringToJSPB.set("MILESTONE",10),this.jspbTypeToString.set(10,"MILESTONE"),this.typeStringToJSPB.set("EPIC",11),this.jspbTypeToString.set(11,"EPIC"),this.typeStringToJSPB.set("STORY",12),this.jspbTypeToString.set(12,"STORY"),this.typeStringToJSPB.set("TASK",13),this.jspbTypeToString.set(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"]])},c7b=function(a,b){var c=new $6b,d=a7b(b,"type",function(f){var h=f.toUpperCase(),k=new b7b;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=r(d.values);for(d=e.next();!d.done;d=e.next())c.types.push(a.typeStringToJSPB.get(d.value));d=a7b(b,"priority",function(f){var h=
f.toUpperCase(),k=new b7b;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=r(d.values);for(d=e.next();!d.done;d=e.next())c.priorities.push(a.priorityStringToJSPB.get(d.value));b=a7b(b,"postmortem",function(f){var h=f.toUpperCase(),k=new b7b;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=r(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},a7b=function(a,b,c){var d=new d7b;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};j_.\u0275fac=function(a){return new (a||j_)(t(ZH),t(yH))};j_.\u0275prov=lc({token:j_,factory:j_.\u0275fac,providedIn:"root"});
var $6b=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},d7b=function(){this.values=[];this.error=""},b7b=function(){this.error=this.value=""};
var k_=function(){};k_.prototype.validate=function(a){for(var b={},c=r(Object.entries(this.validators)),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;e(a.value)||(b[d]=!0)}return Object.keys(b).length?b:null};k_.\u0275fac=function(a){return new (a||k_)};k_.\u0275dir=w({type:k_,selectors:[["","customValidators",""]],inputs:{validators:["customValidators","validators"]},features:[Me([{provide:Vx,useExisting:k_,multi:!0}])]});
var l_=function(a,b,c){this.constants=a;this.sloParseService=b;this.confirmationDialogService=c;this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new Jw;this.onValidation=new Jw;this.selectedObjectiveBusinessDays=this.selectedObjectiveDuration=null;this.postmortemAllSummaryValue="Either";this.canPerformActionsInternal=!1;this.openRow=null;this.metricChoices=[0].concat(Z3b);this.dayTypes=[1,2];Z3b.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},XQa=function(a,b,c){dq(a);a=r(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},$Qa=function(a,b,c){c=cRa(a,b,c);var d=c.newOffset;c.valid&&(dq(a),za(a.collection,b),za(a.boundCollection,b.sloElement),a.collection.splice(d,
0,b),a.boundCollection.splice(d,0,b.sloElement),e7b(a))},cRa=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:0<=b&&b<a.collection.length,newOffset:b}},dq=function(a){a=r(a.collection);for(var b=a.next();!b.done;b=a.next())b=b.value,b.stopEditing(),b.canEdit=!0},f7b=function(a,b){var c=b.map(function(d){return new m_(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.canPerformActions=!a.openRow},IQa=function(a,b){return 0!==b&&a.constants.protoIssueTypesDisplayNames.has(b)?a.constants.protoIssueTypesDisplayNames.get(b):
" - "},NQa=function(a,b){return 0!==b&&a.constants.protoIssuePrioritiesDisplayNames.has(b)?a.constants.protoIssuePrioritiesDisplayNames.get(b):" - "},DQa=function(a,b){dq(a);za(a.collection,b);za(a.boundCollection,b.sloElement);e7b(a)},pQa=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:In("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];
e7b(a)},onDismiss:function(){}});b.stopPropagation()},nQa=function(a,b){var c=new m_(new $X,a,!0);XQa(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);e7b(a)};l_.prototype.onDrop=function(a){$Qa(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var e7b=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
ji.Object.defineProperties(l_.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){f7b(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=r(this.collection),c=b.next();!c.done;c=b.next())c=c.value,c.canEdit=!a||this.openRow===c},
get:function(){return this.isDisabledInternal}}});l_.\u0275fac=function(a){return new (a||l_)(C(ZH),C(j_),C(PM))};
l_.\u0275cmp=w({type:l_,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&&(F(0,"div",0)(1,"div")(2,"div")(3,"label",1),P(4,"Rules"),G(),F(5,"a",2),H(6,"b-icon",3),G(),O(7,qQa,6,3,"span",4),G(),F(8,"table",5)(9,"thead")(10,"tr",6)(11,"th",7),P(12,"Order"),G(),F(13,"th",8),P(14,"Type"),G(),F(15,"th",9),P(16,"Priority"),G(),F(17,"th",10),P(18,"Postmortem"),G(),F(19,"th",11),P(20,"Metric"),G(),F(21,"th",12),P(22,"Objective"),G(),F(23,"th",13),P(24," Day Type "),G(),H(25,"th",14),G()(),
O(26,fRa,2,3,"tbody",15),G(),F(27,"div"),O(28,gRa,2,0,"div",16),G()()());a&2&&(B(6),D("name","help-outline")("size","small"),B(1),D("ngIf",!b.isDisabled),B(19),D("ngIf",b.collection&&0!=b.collection.length),B(2),D("ngIf",!b.collection||0==b.collection.length))},dependencies:[yx,ux,k_,cV,dV,by,sy,hy,BH,eC,bF,$E,eF,GS,nB,lF,g_,i_],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-color:#dadce0;border-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-color:#dadce0;border-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-color:#dadce0;border-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-color:#dadce0;border-color:var(--divider)}.cdk-drag-preview[_ngcontent-%COMP%]:last-child{border-bottom:1px solid;border-color:#dadce0;border-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 m_=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=W6b(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=null===e;return e};this.validateTypePicker=function(){var e=W6b(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
null===e;return e};this.validatePostmortemPicker=function(){var e=W6b(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=X(a,4,0)||1;this.selectedObjectiveDuration=g7b(m(a,km,3));this.selectedObjectiveBusinessDays=fj(a,5);this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return h7b(d,e)}};i7b(this);this.typePickerValues=j7b(this.controllerReference.sloParseService.jspbTypeToString.keys(),function(e){return 0===d.parseResult.types.length||
d.parseResult.types.includes(e)},function(e){return IQa(d.controllerReference,e)});this.priorityPickerValues=j7b(this.controllerReference.sloParseService.jspbPriorityToString.keys(),function(e){return 0===d.parseResult.priorities.length||d.parseResult.priorities.includes(e)},function(e){return NQa(d.controllerReference,e)});this.postmortemPickerValues=j7b(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();h7b(this,this.selectedMetric)},g7b=function(a){return a?a:(new km).setSeconds(86400)};m_.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var h7b=function(a,b){b=0!==b;return a.metricSelectorValid=b};
m_.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;k7b(this);l(this.sloElement,1,this.selectedMetric);l(this.sloElement,4,this.selectedDayType);Gb(this.sloElement,3,this.selectedObjectiveDuration);l(this.sloElement,5,this.selectedObjectiveBusinessDays);i7b(this)}};
var k7b=function(a){var b=l7b(a.typePickerValues),c=l7b(a.priorityPickerValues),d=l7b(a.postmortemPickerValues);b=m7b(b,function(f){return a.controllerReference.sloParseService.jspbTypeToString.get(Ki(f))});c=m7b(c,function(f){return a.controllerReference.sloParseService.jspbPriorityToString.get(Ki(f))});d=m7b(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)},l7b=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},m7b=function(a,b){if(0===a.length)return"";if(1===a.length)return b(a[0]);var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return"("+c.join("|")+")"};
m_.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;i7b(this)}};var i7b=function(a){a.parseResult=c7b(a.controllerReference.sloParseService,a.matcherText)},j7b=function(a,b,c){var d={};a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new U6b(h,f)}return new V6b(d)};
var n_=function(){};n_.\u0275fac=function(a){return new (a||n_)};n_.\u0275mod=Cc({type:n_});n_.\u0275inj=mc({imports:[Mx,wy,HS]});
var o_=function(){};o_.\u0275fac=function(a){return new (a||o_)};o_.\u0275mod=Cc({type:o_});o_.\u0275inj=mc({imports:[Mx]});
var p_=function(){};p_.\u0275fac=function(a){return new (a||p_)};p_.\u0275mod=Cc({type:p_});p_.\u0275inj=mc({imports:[Mx,o_,eV,wy,dI,fC,fF,HS,mH,h_,n_]});
var q_=function(a,b,c,d,e){yI.call(this);this.element=a;this.cdr=b;this.location=c;this.paths=d;this.hotkeys=e;this.focusedIndex=0;this.slos=[]};V(q_,yI);q_.\u0275dir=yI.\u0275dir;g=q_.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=cJ(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()))};
q_.\u0275fac=function(a){return new (a||q_)(C(wd),C(uI,2),C(FK),C(GK),C(bJ))};
q_.\u0275cmp=w({type:q_,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[Me([uI]),ie],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&&(F(0,"table",0)(1,"thead")(2,"tr",1),H(3,"th",2),F(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),P(8," SLO name "),G()()()(),F(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),P(13," Description "),G()()()()()(),F(14,"tbody"),O(15,hRa,7,7,"tr",6),G()());a&2&&(B(15),D("ngForOf",b.slos))},dependencies:[yx],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 r_=function(){};r_.\u0275fac=function(a){return new (a||r_)};r_.\u0275mod=Cc({type:r_});r_.\u0275inj=mc({imports:[Mx]});
var s_=function(a){this.log_=a},o7b=function(a,b){var c=nSb(b.getAddMask()),d=nSb(b.getRemoveMask()),e={author:b.getAuthor(),timestamp:b.getTimestamp(),diffs:[]},f=b.getAdd()||new bY;b=b.getRemove()||new bY;for(var h=r(new Set([].concat(v(c),v(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=$3b.get(q);if("name"===q){var u=xS(d,q,b.getName());q=xS(c,q,f.getName());e.diffs.push(yS(k,u,q))}else if("description"===q)u=xS(d,q,b.getDescription()),q=xS(c,q,f.getDescription()),e.diffs.push(yS(k,u,q));
else if("parentId"===q)u=xS(d,q,String(b.getParentId())),q=xS(c,q,String(f.getParentId())),e.diffs.push(yS(k,u,q));else if("elements"===q){var x=Os(b);u=Os(f);x=oSb(d,q,x.map(function(E){return n7b(E)}));q=oSb(c,q,u.map(function(E){return n7b(E)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:x,added:q}})}else a.log_.error("Unsupported diff field.")}return e},n7b=function(a){var b=a.getMatcher(),c=vQa.get(a.getMetric()),d=zQa.get(X(a,4,0)),e=[];0<fj(a,5)&&e.push(fj(a,5)+" day"+(1<
fj(a,5)?"s":""));0<m(a,km,3).getSeconds()&&e.push(AOb(1E3*m(a,km,3).getSeconds()));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};s_.\u0275fac=function(a){return new (a||s_)(t(vK))};s_.\u0275prov=lc({token:s_,factory:s_.\u0275fac,providedIn:"root"});
var t_=function(a){this.cdr=a;this.snoozeUntilChange=new Jw;this.snoozeUntilCommit=new Jw;this.isPickerVisible=!1};t_.prototype.ngOnInit=function(){AZa(this)};var AZa=function(a){var b;var c=a.snoozeUntil;if(c){var d=new sC;d.setTime(1E3*c.getSeconds());c=new Ji;c.setTime(d.getTime()-TKb-864E5);d=c}else d=null;a.currentPickerDate=null!=(b=d)?b:void 0};
t_.prototype.setDate=function(a){if(a){var b=new sC;b.setTime(a.getTime()+TKb+864E5);a=new tj;a.setSeconds(b.getTime()/1E3);b=a}else b=null;this.snoozeUntil=b;this.snoozeUntilChange.emit(this.snoozeUntil)};t_.\u0275fac=function(a){return new (a||t_)(C(uI,2))};
t_.\u0275cmp=w({type:t_,selectors:[["snooze-date-time-picker"]],inputs:{snoozeUntil:"snoozeUntil"},outputs:{snoozeUntilChange:"snoozeUntilChange",snoozeUntilCommit:"snoozeUntilCommit"},features:[Me([uI])],decls:1,vars:1,consts:[[4,"ngIf"],[3,"clickOutside"],[3,"date","dateSelectionChange","saveClicked","cancelClicked"]],template:function(a,b){a&1&&O(0,iRa,3,1,"div",0);a&2&&D("ngIf",b.isPickerVisible)},dependencies:[ux,hQ,xP],styles:["b-date-time-picker-content[_ngcontent-%COMP%]{position:absolute;right:10px;z-index:100}\n/*# sourceMappingURL=snooze_date_time_picker.css.map */"]});
var u_=function(){};u_.\u0275fac=function(a){return new (a||u_)};u_.\u0275mod=Cc({type:u_});u_.\u0275inj=mc({imports:[Mx,iQ,QP]});
var v_=function(){};v_.\u0275fac=function(a){return new (a||v_)};v_.\u0275mod=Cc({type:v_});v_.\u0275inj=mc({imports:[Mx,kP,uG,UB]});
var w_=function(a){this.documentationLinks=a};w_.\u0275fac=function(a){return new (a||w_)(C(dP))};
w_.\u0275cmp=w({type:w_,selectors:[["b-wtdm-info-hovercard"]],decls:25,vars:6,consts:[["mat-icon-button","","disableRipple","true","aria-label","Work tracking data model help","target","_blank",1,"help","small","info-link",3,"href","onedevHovercardTrigger"],["svgIcon","help-outline",1,"icon-xs"],["card",""],["role","dialog","aria-label","Work tracking data model help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,
"a",0),H(1,"mat-icon",1),G(),F(2,"onedev-hovercard",null,2)(4,"div",3)(5,"div",4),P(6," A new work tracking data model is now available, which includes a new "),F(7,"strong"),P(8,"Parent/Child"),G(),P(9," relationship with multi-parent support. "),F(10,"a",5),P(11,"Learn more..."),G(),H(12,"br")(13,"br"),P(14," The work tracking data model also includes "),F(15,"a",5),P(16,"new types"),G(),P(17," (available in type dropdown) and an "),F(18,"a",5),P(19,"estimated effort"),G(),P(20," field (with dev days, story points and t-shirt support)."),
H(21,"br")(22,"br"),F(23,"a",5),P(24,"go/wtdm-home"),G()()()());if(a&2){var c=M(3);D("href",eP(b.documentationLinks),Ud)("onedevHovercardTrigger",c);B(10);D("href",eP(b.documentationLinks)+"#parent-child-relationship",Ud);B(5);D("href",eP(b.documentationLinks)+"#types",Ud);B(3);D("href",eP(b.documentationLinks)+"#estimated-effort-field",Ud);B(5);D("href",eP(b.documentationLinks),Ud)}},dependencies:[XE,dN,hN],styles:["a.info-link[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);margin:0 5px}\n/*# sourceMappingURL=wtdm_info_hovercard.css.map */"]});
var x_=function(){};x_.\u0275fac=function(a){return new (a||x_)};x_.\u0275mod=Cc({type:x_});x_.\u0275inj=mc({imports:[Mx,pF,ON]});
var r7b=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=r(p7b);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?Ri(f):""}):e="string"===typeof d?Ri(d):"";this.templateAttributes[c]=e}b=r(q7b);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=r(a),b=a.next();!b.done;b=a.next())b=b.value.split(":"),
c=b.slice(1).join(":"),Wi(c)||(this.templateCustomFields[b[0]]=c)},t7b=function(a){return!ih(a.templateCustomFields)||s7b.some(function(b){return null!=a.templateAttributes[b]})},y7b=function(a,b,c){null!=c&&(u7b(a,c),v7b(a,b,c),w7b(b,c));c=r(Object.entries(a.templateAttributes));for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;var f=b,h=x7b[d];"function"===typeof h?h(f,e):f[h||d]=e}a.templateAttributes={};a.templateCustomFields={}},v7b=function(a,b,c){null==
b.customField&&(b.customField=[]);for(var d={},e=r(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e={};f=r(Object.entries(a.templateCustomFields));for(var h=f.next();!h.done;e={$jscomp$loop$prop$customFieldId$1707:e.$jscomp$loop$prop$customFieldId$1707},h=f.next()){var k=r(h.value);h=k.next().value;k=k.next().value;e.$jscomp$loop$prop$customFieldId$1707=Ki(h);k={customFieldId:e.$jscomp$loop$prop$customFieldId$1707,value:k};h=a.getCustomFieldValue(k,c);null!=d[e.$jscomp$loop$prop$customFieldId$1707]?
(k=b.customField.findIndex(function(q){return function(u){return u.customFieldId===q.$jscomp$loop$prop$customFieldId$1707}}(e)),b.customField[k]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
r7b.prototype.getCustomFieldValue=function(a,b){var c=new jl(a);if(a.value){b=this.getCustomFieldType(c,b);var d=[];switch(b){case "TEXT":c.textValue=a.value;break;case "DATE":c.dateValue=TFb(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=UFb(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 TFb(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 UFb(e)}).filter(function(e){return null!==e});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};r7b.prototype.getCustomFieldType=function(a,b){var c,d;return null!=(d=null==(c=b[a.customFieldId])?void 0:c.type)?d:""};
var u7b=function(a,b){a.templateCustomFields=hh(a.templateCustomFields,function(c,d){return!!b[d]})},w7b=function(a,b){if(null!=a.customField){var c={};a=r(a.customField);for(var d=a.next();!d.done;c={$jscomp$loop$prop$allowedValues$1709:c.$jscomp$loop$prop$allowedValues$1709},d=a.next()){d=d.value;var e=b[d.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){c.$jscomp$loop$prop$allowedValues$1709=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$1709.includes(k)}}(c)),!d.repeatedEnumValue.values.length&&f&&(d.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):c.$jscomp$loop$prop$allowedValues$1709.includes(d.enumValue)||(d.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},z7b=function(a,b,c){c&&(c=Array.isArray(c)?c.map(function(d){return Ki(d)}):[Ki(c)],b[a]=c.filter(function(d){return!isNaN(d)}))},
A7b=function(a,b,c,d){d&&(b=b.find(function(e){return!Yt(e,d)}))&&(c[a]=b)},B7b=new ZH,C7b=B7b.priorities,D7b=B7b.severities,E7b=B7b.issueTypes,p7b="title type priority severity assignee verifier reporter cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),q7b=["inProd"],s7b="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),y_={},x7b=(y_.cc=function(a,b){if(b){b="string"===typeof b?b.split(","):b;a.ccUsers||(a.ccUsers=
[]);b=r(b);for(var c=b.next();!c.done;c=b.next())(c=c.value.trim())&&a.ccUsers.push(Vl(c));a.ccUsers=Ema(a.ccUsers)}else a.ccUsers=[]},y_.assignee=function(a,b){jRa(b,function(c){a.assigneeUser=c})},y_.reporter=function(a,b){jRa(b,function(c){a.reporterUser=c})},y_.verifier=function(a,b){jRa(b,function(c){a.verifierUser=c})},y_.hotlistIds=Tt(z7b,"hotlistId"),y_.blockingIssueIds=Tt(z7b,"blockingIssueId"),y_.blockedByIssueIds=Tt(z7b,"blockedByIssueId"),y_.foundIn=function(a,b){"string"===typeof b&&
(a.foundInVersion=b.split(","))},y_.targetedTo=function(a,b){"string"===typeof b&&(a.targetedToVersion=b.split(","))},y_.inProd=function(a,b){a.inProd="true"===b},y_.priority=Tt(A7b,"priority",C7b),y_.severity=Tt(A7b,"severity",D7b),y_.type=Tt(A7b,"type",E7b),y_);
var z_=function(a,b){yI.call(this);this.routerEvents=a;this.bLocation=b;this.history=[]};V(z_,yI);z_.\u0275dir=yI.\u0275dir;z_.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()}))};z_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};z_.prototype.hasPreviousPage=function(){return 1<this.history.length};
var A_=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("/")};z_.\u0275fac=function(a){return new (a||z_)(t(TI),t(FK))};z_.\u0275prov=lc({token:z_,factory:z_.\u0275fac,providedIn:"root"});
var B_=function(a,b,c){this.bLocation=a;this.routeParams=b;this.domSafe=c},F7b=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&Xt(d,"id=")||Xt(d,"bugId="))d+=c;hP(a.domSafe,d)}else{var e;a.bLocation.replaceUrl(null!=(e=d)?e:b)}};B_.\u0275fac=function(a){return new (a||B_)(t(FK),t(IR),t(fP))};B_.\u0275prov=lc({token:B_,factory:B_.\u0275fac,providedIn:"root"});
var C_=function(a,b){yI.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||(WKb("appNavStart"),c.mostRecentlyMeasured="")};this.onNavSuccess=function(){c.ignoringNextNav?c.ignoringNextNav=!1:c.validNavigations++}};V(C_,yI);C_.\u0275dir=yI.\u0275dir;
C_.prototype.install=function(){var a=this;CM()&&(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(xf(function(b){return"visible"!==b}),Xf()).subscribe(function(){a.tabWasHidden=!0})))};
var G7b=function(a,b){WKb(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)&&CM())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)}}};C_.\u0275fac=function(a){return new (a||C_)(t(TI),t(D_))};
C_.\u0275prov=lc({token:C_,factory:C_.\u0275fac,providedIn:"root"});var D_=function(a){var b=this;this.window=a;this.visibilityState$=(0,U.fromEvent)(this.window.document,"visibilityChange").pipe(hg(void 0),S(function(){return b.currentVisibility}))};ji.Object.defineProperties(D_.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});D_.\u0275fac=function(a){return new (a||D_)(t(jM))};
D_.\u0275prov=lc({token:D_,factory:D_.\u0275fac,providedIn:"root"});
var H7b=RegExp("action/issues/([0-9]+)/"),I7b=new sd("ETAG_URL_TRANSFORMERS"),E_=function(a){this.transformers=a;this.etagStore={};this.IF_MATCH_METHODS=["POST","PUT","DELETE"]};E_.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=H7b.exec(a.url))this.issueId=c[1];return J7b(this,a,b)};
var J7b=function(a,b,c){return c.handle(b).pipe(kg(function(d){if(d instanceof LE){var e=d.headers;e.has("etag")&&a.setEtag(b,e.get("etag"));d=d.body;if(d instanceof vL&&a.issueId)for(d=r(xb(d,Om,1)),e=d.next();!e.done;e=d.next()){e=r(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 IE("GET","action/issues/"+h+"/attachments/"+k);a.setEtag(h,f.getEtag())}}}}))};
E_.prototype.setEtag=function(a,b){null!=b&&(a=K7b(this,a),this.etagStore[a]=b)};E_.prototype.getEtag=function(a){a=K7b(this,a);return this.etagStore[a]};var K7b=function(a,b){b=b.url;var c;a=r(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};E_.\u0275fac=function(a){return new (a||E_)(t(I7b,8))};E_.\u0275prov=lc({token:E_,factory:E_.\u0275fac,providedIn:"root"});var L7b={provide:NE,useClass:E_,multi:!0};
var M7b={provide:I7b,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},N7b={provide:I7b,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};
var F_=function(a){this.activeSession=a};F_.prototype.intercept=function(a,b){var c=a.method,d=c+" "+a.urlWithParams;go[d]=~~go[d]+1;return"POST"===c||"PUT"===c||"DELETE"===c?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};F_.\u0275fac=function(a){return new (a||F_)(t(yH))};F_.\u0275prov=lc({token:F_,factory:F_.\u0275fac,providedIn:"root"});var O7b={provide:NE,useClass:F_,multi:!0};
var G_=function(){};G_.\u0275fac=function(a){return new (a||G_)};G_.\u0275mod=Cc({type:G_});G_.\u0275inj=mc({providers:[{provide:EL,useClass:GL},{provide:HQb,useClass:BR},{provide:CR,useClass:DR},{provide:MGb,useClass:AJ},{provide:NGb,useClass:zJ},{provide:MJ,useClass:OJ},{provide:fZ,useClass:gZ},{provide:bO,useClass:cO},{provide:bK,useClass:dK},{provide:rO,useClass:sO},{provide:YK,useClass:aL},{provide:ZK,useClass:$K}],imports:[Mx]});
var P7b=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1};g=P7b.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 Wr=function(a){Z.call(this,a)};V(Wr,Z);Wr.prototype.getEntryPoint=function(){return X(this,5,0)};Wr.prototype.setEntryPoint=function(a){return l(this,5,a)};Wr.prototype.toObject=function(){return H_(void 0,this)};var H_=function(a,b){if(null!=b){var c={autocompleteField:n(p(b,1)),autocompletePerson:n(p(b,2)),suggestionField:n(p(b,3)),suggestionPerson:n(p(b,4)),entryPoint:X(b,5,0)};a&&(c.$jspbMessageInstance=b);return c}};
var Xr=function(a){Z.call(this,a)};V(Xr,Z);Xr.prototype.getEntryPoint=function(){return X(this,1,0)};Xr.prototype.setEntryPoint=function(a){return l(this,1,a)};Xr.prototype.toObject=function(){return Q7b(void 0,this)};var Q7b=function(a,b){if(null!=b){var c={entryPoint:X(b,1,0),additionEventSources:H_(a,m(b,Wr,2)),replacementEventSources:H_(a,m(b,Wr,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Ir=function(a){Z.call(this,a)};V(Ir,Z);var Eq=function(a){return m(a,Jr,2)};Ir.prototype.getSessionState=function(){return m(this,I_,3)};Ir.prototype.setSessionState=function(a){Gb(this,3,a)};Ir.prototype.hasSessionState=function(){return mj(this,3)};var Kr=function(a){Z.call(this,a)};V(Kr,Z);g=Kr.prototype;g.getPersonLoggingId=function(){return p(this,1)};g.setPersonLoggingId=function(a){l(this,1,a)};g.getFieldLoggingId=function(){return p(this,2)};g.setFieldLoggingId=function(a){l(this,2,a)};
g.setFieldValue=function(a){return l(this,3,a)};g.clearFieldValue=function(){return rb(this,3)};g.getName=function(){return p(this,4)};g.setName=function(a){return l(this,4,a)};g.hasName=function(){return ej(this,4)};g.getContactId=function(){return p(this,5)};g.setContactId=function(a){l(this,5,a)};g.hasContactId=function(){return ej(this,5)};g.getProfileId=function(){return p(this,6)};g.setProfileId=function(a){return l(this,6,a)};g.hasProfileId=function(){return ej(this,6)};
g.getFieldType=function(){return p(this,7)};g.getIsPlaceholder=function(){return bj(this,10,!1)};g.setIsPlaceholder=function(a){l(this,10,a)};g.getGroupId=function(){return p(this,11)};g.setGroupId=function(a){l(this,11,a)};g.hasGroupId=function(){return ej(this,11)};var Jr=function(a){Z.call(this,a)};V(Jr,Z);g=Jr.prototype;g.getProvenance=function(){return X(this,3,0)};g.setProvenance=function(a){return l(this,3,a)};g.getContext=function(){return X(this,5,0)};
g.getExistingSelectionsCount=function(){return fj(this,6,0)};g.setExistingSelectionsCount=function(a){l(this,6,a)};var I_=function(a){Z.call(this,a)};V(I_,Z);I_.prototype.getQuery=function(){return W(this,1,"")};I_.prototype.setQuery=function(a){return l(this,1,a)};I_.prototype.clearQuery=function(){rb(this,1)};I_.prototype.hasQuery=function(){return ej(this,1)};var R7b=function(a,b){l(a,3,b)};I_.prototype.getAffinityVersion=function(){return p(this,7)};
I_.prototype.setAffinityVersion=function(a){l(this,7,a)};var S7b=function(a){var b=yUb();l(a,8,b)};g=I_.prototype;g.getSources=function(){return m(this,Wr,10)};g.getInstanceId=function(){return W(this,11,"")};g.setInstanceId=function(a){return l(this,11,a)};g.clearInstanceId=function(){rb(this,11)};g.hasInstanceId=function(){return ej(this,11)};Ir.prototype.toObject=function(){return T7b(void 0,this)};
var T7b=function(a,b){if(null!=b){var c={info:U7b(a,m(b,Kr,1)),targetState:V7b(a,Eq(b)),sessionState:W7b(a,b.getSessionState()),isClosed:bj(b,4,!1)};a&&(c.$jspbMessageInstance=b);return c}};Kr.prototype.toObject=function(){return U7b(void 0,this)};
var U7b=function(a,b){if(null!=b){var c={personLoggingId:n(p(b,1)),fieldLoggingId:n(p(b,2)),fieldValue:n(p(b,3)),name:n(p(b,4)),contactId:n(p(b,5)),profileId:n(p(b,6)),fieldType:n(p(b,7)),personType:n(p(b,8)),isFlattened:bj(b,9,!0),isPlaceholder:bj(b,10,!1),groupId:n(p(b,11))};a&&(c.$jspbMessageInstance=b);return c}};Jr.prototype.toObject=function(){return V7b(void 0,this)};
var V7b=function(a,b){if(null!=b){var c={fieldPosition:fj(b,1,0),personPosition:fj(b,2,0),provenance:X(b,3,0),valueOriginator:X(b,4,0),context:X(b,5,0),existingSelectionsCount:fj(b,6,0)};a&&(c.$jspbMessageInstance=b);return c}};I_.prototype.toObject=function(){return W7b(void 0,this)};
var W7b=function(a,b){if(null!=b){var c={query:W(b,1,""),querySessionId:fj(b,3,0),selectSessionId:fj(b,4,0),submitSessionId:fj(b,5,0),cacheUpdatedTimestamp:fj(b,6,0),affinityVersion:n(p(b,7)),callTimestampMs:Bl(b,8,0),resultTimestampMs:Bl(b,9,0),sources:H_(a,b.getSources()),instanceId:W(b,11,""),contextualSources:Q7b(a,m(b,Xr,12))};a&&(c.$jspbMessageInstance=b);return c}};
var J_=function(a,b){this.name_=b||"";this.address=a||""},X7b=/"/g,Y7b=/\\"/g,Z7b=/\\/g,$7b=/\\\\/g,a8b=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),b8b=new RegExp("["+kja({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");J_.prototype.getName=function(){return this.name_};J_.prototype.getAddress=function(){return this.address};J_.prototype.setName=function(a){this.name_=a};J_.prototype.toString=function(){return c8b(this,'()<>@:\\".[],;')};
var c8b=function(a,b){var c=a.getName();c=c.replace(X7b,"");a:{for(var d=c,e=0;e<b.length;e++)if(fa(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(Z7b,"\\\\")+'"');return""==c?a.address:""==a.address?c:c+" <"+a.address+">"};J_.prototype.isValid=function(){return a8b.test(this.address)};
var f8b=function(a){var b=d8b;a=a.replace(b8b,"");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||e8b(f,h))f=k;else{q='">)]'.charAt(q);for(var u=f.indexOf(q,h+1);0<=u&&e8b(f,u);)u=f.indexOf(q,u+1);f=0<=u?f.substring(h,u+1):k}"<"==f.charAt(0)&&-1!=f.indexOf(">")?(d=f.indexOf(">"),d=f.substring(1,d)):""==d&&(c+=f);e+=f.length}""==d&&-1!=c.indexOf("@")&&(d=c,c="");c=mC(c);c=Erb(c,"'");c=Erb(c,'"');c=c.replace(Y7b,'"');c=c.replace($7b,"\\");d=mC(d);return new b(d,
c)},e8b=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 d8b=function(a,b){J_.call(this,a,b)};Wt(d8b,J_);var g8b=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}$");d8b.prototype.isValid=function(){return K_(this.address)};var K_=function(a){return null==a?!1:g8b.test(a)};d8b.prototype.toString=function(){return c8b(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};
var h8b=/[^a-z0-9]+/ig,i8b=[9,11,10,12,13,14,15,16,19],j8b=[9,19,11],k8b=[1,6],l8b=[2,7],m8b=[3,8],n8b=[1,2,6,7,8,9,11,10,12,13,14,15,16,19],o8b=[3,4,5,17,20],fr=function(a,b){this.originalValue_=(b||"").trim();switch(a){case 1:case 6:b=(b||"").trim().toLowerCase();break;case 2:case 7:b=(b||"").trim().toLowerCase().replace(h8b,"");break;case 3:case 8:case 5:b=(b||"").trim().toLowerCase();3===a&&"me"===b&&(a=17,b="me");break;case 4:case 9:b=(b||"").trim().toLowerCase();break;case 12:case 13:case 14:case 15:case 16:case 10:case 11:case 18:case 19:case 20:b=
(b||"").trim();break;case 17:b="me";break;default:a=0}this.type_=a;this.value_=b};fr.prototype.getType=function(){return this.type_};fr.prototype.getValue=function(){return this.value_};var xq=function(a){return i8b.includes(a.getType())},yq=function(a){return j8b.includes(a.getType())},uTa=function(a,b){return new fr(a,b)},p8b=function(a){var b=a.indexOf(":"),c=a.substring(b+1);return 0>=b?new fr(0,c):new fr(parseInt(a.substring(0,b),10),c)};
fr.prototype.toString=function(){return this.getType()+":"+this.getValue()};fr.prototype.equals=function(a){return a?this===a?!0:this.getType()===a.getType()&&this.getValue()===a.getValue():!1};var jr=uTa(0,"");new fr(17,"me");
var pr=function(a){Z.call(this,a,2)};V(pr,Z);var q8b={};pr.prototype.toObject=function(){if(null!=this){var a={dataMap:Kb(Zi(this,1))};Ib(this,a,q8b)}else a=void 0;return a};
var Er=function(a){Z.call(this,a)};V(Er,Z);g=Er.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getValue=function(){return W(this,2,"")};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.toObject=function(){var a=null!=this?{type:X(this,1,0),value:W(this,2,"")}:void 0;return a};
var r8b=function(a){Z.call(this,a)};V(r8b,Z);g=r8b.prototype;g.getEnableClearcut=function(){return bj(this,1,!1)};g.setEnableClearcut=function(a){return l(this,1,a)};g.getClientId=function(){return X(this,2,0)};g.setClientId=function(a){return l(this,2,a)};g.getSocialApplication=function(){return p(this,3)};g.getComponentFlow=function(){return X(this,4,0)};g.setComponentFlow=function(a){return l(this,4,a)};g.getInterfaceType=function(){return X(this,5,0)};
g.setInterfaceType=function(a){return l(this,5,a)};g.toObject=function(){return s8b(this)};var s8b=function(a){if(null!=a)return{enableClearcut:bj(a,1,!1),clientId:X(a,2,0),socialApplication:n(p(a,3)),componentFlow:X(a,4,0),interfaceType:X(a,5,0),enableVeTracking:bj(a,6,!0)}};
var L_=function(a){Z.call(this,a)};V(L_,Z);L_.prototype.toObject=function(){return t8b(this)};var t8b=function(a){if(null!=a)return{enableDisambigForAdditionSuggestions:bj(a,1,!1),enableSyntheticVe:bj(a,2,!1),enableOodTag:bj(a,3,!1),enableLegacyReplacementStyling:bj(a,4,!0)}};
var M_=function(a){Z.call(this,a)};V(M_,Z);M_.prototype.getApplication=function(){return X(this,1,0)};M_.prototype.setApplication=function(a){return l(this,1,a)};M_.prototype.getIsEnabled=function(){return bj(this,2,!1)};M_.prototype.toObject=function(){return u8b(this)};var u8b=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:bj(a,2,!1),overriddenExperiments:t8b(m(a,L_,3))}};
var v8b=function(a){Z.call(this,a)};V(v8b,Z);g=v8b.prototype;g.getClearcut=function(){return m(this,r8b,1)};g.setClearcut=function(a){Gb(this,1,a)};g.hasClearcut=function(){return mj(this,1)};g.getExperiments=function(){return m(this,M_,2)};g.setExperiments=function(a){Gb(this,2,a)};g.hasExperiments=function(){return mj(this,2)};
g.toObject=function(){var a=null!=this?{clearcut:s8b(this.getClearcut()),experiments:u8b(this.getExperiments()),maxUndoStackSize:fj(this,3,10),enableTargetedCopyOptions:bj(this,4,!1),enableEmailEditing:bj(this,5,!1),hideGroupResultMemberCount:bj(this,6,!1)}:void 0;return a};
var w8b=function(){var a=bo(v8b,"[[true,49,740,4]]");a.hasClearcut()||a.setClearcut(new r8b);a.hasExperiments()||a.setExperiments(new M_);this.internal=a};
var $Ra=function(a){this.root=a;this.length=0};g=$Ra.prototype;g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(0>a||a>this.length)throw new RangeError("Ae");if(a===this.length)this.append(b);else{var c=Array.from(this.root.childNodes);this.root.insertBefore(b,c[a]);++this.length}};g.remove=function(a){if(0>a||a>=this.length)throw new RangeError("Ae");var b=Array.from(this.root.childNodes);this.root.removeChild(b[a]);--this.length};
g.clear=function(){mD(this.root);this.length=0};g.getRoot=function(){return this.root};
var YRa=function(a){return zq('<ul id="'+Aq(a.id)+'" peoplekit-id="'+Aq("rymPhb")+'" role="listbox" class="'+Aq("peoplekitComponentsListImplList")+'"></ul>')};
var ZRa=BU.getInstance();
var x8b=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(v(a));this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=x8b.prototype;
g.remove=function(a,b){var c=-1;a=r(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(v(b)));c?(y8b(this),z8b(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:y8b(this);A8b(this);break;case 3:A8b(this);break;case 1:a=mRa(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=mRa(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);z8b(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=r(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();y8b(this);this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(v(this.secondaryEventTargets));b=r(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 A8b=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},y8b=function(a){for(var b=r(a.activeItems),c=b.next();!c.done;c=b.next())c.value.deactivate();a.activeItems.clear()},z8b=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 B8b=function(a){this.delegate=a};g=B8b.prototype;g.prev=function(a){a=this.delegate.prev(a);C8b(this);return a};g.next=function(a){a=this.delegate.next(a);C8b(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);C8b(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);C8b(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 C8b=function(a){if(a=a.delegate.getSpotlitItem())if(a=a.getRoot(),$t){var b=pXb(a);sXb(a,b)}else a.scrollIntoView({block:"nearest"})};
var D8b=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.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"),E8b=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,F8b=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,G8b=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i;
var H8b=/\/\/lh[3-6]\./,I8b=function(a,b,c,d){var e;(e=!a)||(e=String(a),e=!(D8b.test(e)||E8b.test(e)||F8b.test(e)||G8b.test(e)));if(e)return String(a||"");a=String(a);b=Math.ceil((b||0)*d);c=Math.ceil((c||0)*d);d=b==c;a=a.replace(H8b,"//lh3.");return(new gR(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(!1).setQualityBucket().setImageFilter().setLooseFaceCrop(!1).setForceMonogram(!1).setRequestPng(!1).setRequestJpeg(!1).setRequestH264(!1).setPad(!1).build()};
var oRa=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;Array.isArray(b);a=zq;var h='<div class="'+Aq("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Aq(oU(d))+"px; height: "+Aq(oU(d))+'px"><div peoplekit-id="'+Aq("YLEF4c")+'" class="'+Aq("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Aq(oU(d))+"px; height: "+Aq(oU(d))+'px">';Array.isArray(b);1==kU(b).length?(Array.isArray(b),b=zq('<div class="'+Aq("peoplekitComponentsAvatarImplContainer")+
'">'+N_(b[0],c,d,e,f)+"</div>")):2==kU(b).length?(Array.isArray(b),b=zq('<div class="'+Aq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'">'+N_(b[0],c,d,e,f)+"</div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'">'+N_(b[1],c,d,e,f)+"</div></div>")):3==kU(b).length?(Array.isArray(b),b=zq('<div class="'+Aq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'">'+N_(b[0],c,d,e,f)+
"</div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[1],c,Math.round(.5*d),e,f)+"</div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[2],c,Math.round(.5*d),e,f)+"</div></div></div>")):(Array.isArray(b),b=zq('<div class="'+Aq("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[0],
c,Math.round(.5*d),e,f)+"</div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[2],c,Math.round(.5*d),e,f)+"</div></div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[1],c,Math.round(.5*d),e,f)+"</div>"+O_()+'<div class="'+Aq("peoplekitComponentsAvatarImplRow")+'">'+N_(b[3],c,Math.round(.5*d),e,f)+"</div></div></div>"));b=zq(b);return a(h+b+'</div><div peoplekit-id="'+Aq("Btuy5e")+'" class="'+
Aq("peoplekitComponentsAvatarImplAvatarBadge")+'">'+zq('<img class="'+Aq("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Aq("m6fZne")+'" draggable="false" alt="">')+"</div></div>")},N_=function(a,b,c,d,e){var f="",h=HWb(I8b(a,c,c,e));h=uWb(h);a=HWb(I8b(a,d,d,e));a=uWb(a);b=HWb(I8b(b,c,c,e));b=uWb(b);f+='<div peoplekit-id="'+Aq("IHgMKc")+'" class="'+Aq("peoplekitComponentsAvatarImplImageRoot")+'"><img peoplekit-id="'+Aq("HiaYvf")+'" class="'+Aq("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Aq(oU(c))+"px; height: "+Aq(oU(c))+'px;" data-preload-src="'+Aq(a)+'" data-src="'+Aq(h)+'" data-backup-src="'+Aq(b)+'" draggable="false" alt=""></div>';return zq(f)},O_=function(){return zq('<div class="'+Aq("peoplekitComponentsAvatarImplDivider")+'"></div>')};
var J8b=new Map([[0,"light_theme"],[1,"dark_theme"]]);
var K8b=!$t&&!caa(),L8b=function(a,b){if(/-[a-z]/.test(b))return null;if(K8b&&a.dataset){if(daa()&&!(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 M8b=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),N8b=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),qRa=function(a,b){this.appearance=b;this.root=a;O8b(this)};
qRa.prototype.setBadge=function(a){var b=fq(this.root,"Btuy5e");if(0===a.badgeType)b.classList.remove("visible");else{var c=M8b.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(J8b.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=N8b.get(a.badgeType)||"";d=fq(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};
var O8b=function(a){var b={};a=r(Array.from(a.root.querySelectorAll('[peoplekit-id="IHgMKc"]')));for(var c=a.next();!c.done;b={$jscomp$loop$prop$img$1717:b.$jscomp$loop$prop$img$1717,$jscomp$loop$prop$src$1715:b.$jscomp$loop$prop$src$1715,$jscomp$loop$prop$imageRoot$1716:b.$jscomp$loop$prop$imageRoot$1716,$jscomp$loop$prop$backupSrc$1718:b.$jscomp$loop$prop$backupSrc$1718},c=a.next())b.$jscomp$loop$prop$imageRoot$1716=c.value,b.$jscomp$loop$prop$img$1717=fq(b.$jscomp$loop$prop$imageRoot$1716,"HiaYvf"),
c=L8b(b.$jscomp$loop$prop$img$1717,"preloadSrc"),b.$jscomp$loop$prop$src$1715=L8b(b.$jscomp$loop$prop$img$1717,"src"),b.$jscomp$loop$prop$backupSrc$1718=L8b(b.$jscomp$loop$prop$img$1717,"backupSrc"),nRa(b.$jscomp$loop$prop$src$1715)?b.$jscomp$loop$prop$img$1717.src=b.$jscomp$loop$prop$src$1715:nRa(c)?(b.$jscomp$loop$prop$img$1717.src=c,zD(function(d){return function(){d.$jscomp$loop$prop$img$1717.src=d.$jscomp$loop$prop$src$1715}}(b),0)):(b.$jscomp$loop$prop$imageRoot$1716.classList.add("isLoading"),
b.$jscomp$loop$prop$img$1717.onload=function(d){return function(){d.$jscomp$loop$prop$imageRoot$1716.classList.remove("isLoading")}}(b),b.$jscomp$loop$prop$img$1717.onerror=function(d){return function(){d.$jscomp$loop$prop$img$1717.src=d.$jscomp$loop$prop$backupSrc$1718}}(b),b.$jscomp$loop$prop$img$1717.src=b.$jscomp$loop$prop$src$1715)};
var gq=function(){this.theme=this.density=0};gq.prototype.getDensity=function(){return this.density};gq.prototype.setDensity=function(a){this.density=a};gq.prototype.getTheme=function(){return this.theme};gq.prototype.setTheme=function(a){this.theme=a};
var KRa=function(a){a=a.memberCount;return(new sP("{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)},JRa=function(a){a=a.memberNames;Array.isArray(a);return kU(a).join(", ")};
var P8b=function(a){Z.call(this,a)};V(P8b,Z);P8b.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var Q8b=function(a){Z.call(this,a)};V(Q8b,Z);Q8b.prototype.toObject=function(){return R8b(this)};var R8b=function(a){if(null!=a)return{exampleBooleanFlag:bj(a,1,!1),exampleIntegerFlag:fj(a,2,42)}};
var S8b=function(a){Z.call(this,a)};V(S8b,Z);S8b.prototype.toObject=function(){return T8b(this)};var T8b=function(a){if(null!=a)return{enableTypescriptCodegenRefactor:bj(a,3,!1),enableTestFeature:bj(a,4,!1)}};
var U8b=function(a){Z.call(this,a)};V(U8b,Z);U8b.prototype.toObject=function(){return V8b(this)};var V8b=function(a){if(null!=a)return{enableProjectLean:bj(a,1,!1),enableEmailAddressMatching:bj(a,2,!1),enableFilterNonPrimarySignupEmail:bj(a,3,!1),enableSmartaddressCounterfactualLogging:bj(a,4,!1),enableExtensibleLookupcache:bj(a,5,!1)}};
var W8b=function(a){Z.call(this,a)};V(W8b,Z);W8b.prototype.toObject=function(){return X8b(this)};var X8b=function(a){if(null!=a)return{enableProjectLean:bj(a,1,!1)}};
var Y8b=function(a){Z.call(this,a)};V(Y8b,Z);Y8b.prototype.toObject=function(){return Z8b(this)};var Z8b=function(a){if(null!=a)return{enablePopulousV2:bj(a,1,!0)}};
var $8b=function(a){Z.call(this,a)};V($8b,Z);$8b.prototype.getIsEnabled=function(){return bj(this,1,!1)};$8b.prototype.toObject=function(){return a9b(this)};var a9b=function(a){if(null!=a)return{isEnabled:bj(a,1,!1),answer:fj(a,2,42)}};
var oq=function(a){Z.call(this,a)};V(oq,Z);oq.prototype.getRequestType=function(){return p(this,1)};oq.prototype.setRequestType=function(a){return l(this,1,a)};oq.prototype.toObject=function(){return b9b(this)};
var b9b=function(a){if(null!=a){var b=n(p(a,1)),c=a9b(m(a,$8b,101));var d=null!=m(a,P8b,102)?{}:void 0;return{requestType:b,testExperimentFlags:c,hovercardExperimentsRoot:d,peopleIntelligenceExperimentsRoot:T8b(m(a,S8b,103)),populousExperimentsRoot:V8b(m(a,U8b,104)),sendkitExperimentsRoot:Z8b(m(a,Y8b,105)),integrationExampleFeature:R8b(m(a,Q8b,106)),peoplekitExperimentsRoot:t8b(m(a,L_,107)),populousLeanExperimentFlags:X8b(m(a,W8b,108))}}};
var c9b=function(){var a=new oq,b=new L_;this.experimentFlags_=Gb(a,107,b)};c9b.prototype.getExperimentFlags=function(){return this.experimentFlags_};c9b.prototype.getExperimentIds=function(){return[]};
var Wq=function(a,b){this.cache=b;this.overriddenExperiments=m(a,L_,3)||new L_};Wq.prototype.getExperiments=function(){var a,b=(null==(a=this.cache.getExperimentFlags())?void 0:m(a,L_,107))||new L_;a=this.overriddenExperiments;if(ej(a,3)){var c=bj(a,3,!1);l(b,3,c)}ej(a,4)&&(a=bj(a,4,!0),l(b,4,a));return b};Wq.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};
var Sq=function(a){Z.call(this,a)};V(Sq,Z);g=Sq.prototype;g.getCacheStaleSec=function(){return fj(this,4,14400)};g.getCacheExpiredSec=function(){return fj(this,5,1209600)};g.getRpcTimeoutSec=function(){return fj(this,7,60)};g.getApiKey=function(){return W(this,8,"")};g.getEnableClearcut=function(){return bj(this,13,!0)};g.setEnableClearcut=function(a){return l(this,13,a)};
g.toObject=function(){var a=null!=this?{minimumCacheRefreshSec:fj(this,3,1800),cacheStaleSec:fj(this,4,14400),cacheExpiredSec:fj(this,5,1209600),rpcTimeoutSec:fj(this,7,60),apiKey:W(this,8,""),apiRoot:n(p(this,10)),cacheRefreshRateSec:fj(this,11,14400),maxRefreshCount:fj(this,12,18),enableClearcut:bj(this,13,!0)}:void 0;return a};
var d9b=function(){};d9b.prototype.getExperimentFlags=function(){return new oq};d9b.prototype.getExperimentIds=function(){return[]};
var Uq=function(){};Uq.prototype.prefetch=function(){};Uq.prototype.loadExperiments=function(){return new d9b};
var P_=function(a){Z.call(this,a)};V(P_,Z);P_.prototype.getVersion=function(){return p(this,1)};P_.prototype.setVersion=function(a){return l(this,1,a)};P_.prototype.toObject=function(){return e9b(this)};var e9b=function(a){if(null!=a)return{version:n(p(a,1))}};
var Q_=function(a){Z.call(this,a)};V(Q_,Z);g=Q_.prototype;g.getApplication=function(){return p(this,1)};g.setApplication=function(a){return l(this,1,a)};g.getVersion=function(){return p(this,2)};g.setVersion=function(a){return l(this,2,a)};g.toObject=function(){return f9b(this)};var f9b=function(a){if(null!=a)return{application:n(p(a,1)),version:n(p(a,2))}};
var g9b=function(a){Z.call(this,a)};V(g9b,Z);g=g9b.prototype;g.getRequestType=function(){return X(this,1,0)};g.setRequestType=function(a){return l(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return ej(this,2)};g.getCaller=function(){return m(this,P_,3)};g.setCaller=function(a){return Gb(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};
g.clearInstanceId=function(){rb(this,4)};g.hasInstanceId=function(){return ej(this,4)};g.getClient=function(){return m(this,Q_,5)};g.setClient=function(a){return Gb(this,5,a)};g.hasClient=function(){return mj(this,5)};g.toObject=function(){var a=null!=this?{requestType:X(this,1,0),profileId:n(p(this,2)),caller:e9b(this.getCaller()),instanceId:n(p(this,4)),client:f9b(this.getClient())}:void 0;return a};
var lq=function(a){Z.call(this,a)};V(lq,Z);g=lq.prototype;g.getErrorType=function(){return X(this,2,1)};g.setErrorType=function(a){return l(this,2,a)};g.getErrorMessage=function(){return p(this,3)};g.setErrorMessage=function(a){l(this,3,a)};g.toObject=function(){return h9b(this)};var h9b=function(a){if(null!=a)return{errorType:X(a,2,1),errorMessage:n(p(a,3))}};
var nq=function(a){Z.call(this,a,-1,i9b)};V(nq,Z);g=nq.prototype;g.getExperimentFlags=function(){return m(this,oq,1)};g.setExperimentFlags=function(a){return Gb(this,1,a)};g.hasExperimentFlags=function(){return mj(this,1)};g.getError=function(){return m(this,lq,2)};g.setError=function(a){Gb(this,2,a)};g.hasError=function(){return mj(this,2)};g.getSource=function(){return p(this,3)};g.setSource=function(a){return l(this,3,a)};g.hasSource=function(){return ej(this,3)};
g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){rb(this,4)};g.hasInstanceId=function(){return ej(this,4)};g.getExperimentIdsList=function(){return ob(this,5)};g.setExperimentIdsList=function(a){return ll(this,5,a)};var i9b=[5];
nq.prototype.toObject=function(){var a=null!=this?{experimentFlags:b9b(this.getExperimentFlags()),error:h9b(this.getError()),source:n(p(this,3)),instanceId:n(p(this,4)),experimentIdsList:n(ob(this,5))}:void 0;return a};
var R_=function(a,b){this.client_=a;this.runtime_=b;kq();this.apiKey_=a.getApiKey();this.apiRoot_=p(this.client_,10)||dCa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};R_.prototype.getClient=function(){return this.client_};R_.prototype.getApiKey=function(){return this.apiKey_};
var S_=function(a){Z.call(this,a,-1,j9b)};V(S_,Z);g=S_.prototype;g.getExperimentFlags=function(){return m(this,oq,1)};g.setExperimentFlags=function(a){return Gb(this,1,a)};g.hasExperimentFlags=function(){return mj(this,1)};g.getObfuscatedGaiaId=function(){return p(this,2)};g.setObfuscatedGaiaId=function(a){l(this,2,a)};g.getExperimentIdsList=function(){return ob(this,3)};g.setExperimentIdsList=function(a){return ll(this,3,a)};var k9b=function(a){return bo(S_,a)},j9b=[3];
S_.prototype.toObject=function(){var a=null!=this?{experimentFlags:b9b(this.getExperimentFlags()),obfuscatedGaiaId:n(p(this,2)),experimentIdsList:n(ob(this,3))}:void 0;return a};
var l9b=function(a){var b=void 0;b=void 0===b?Date.now:b;this.clientConfig_=a;this.now_=b},m9b=function(a,b,c){a=a.now_()-1E3*c;return b>a};l9b.prototype.getCacheState=function(a){var b=fj(this.clientConfig_.getClient(),3,1800);if(m9b(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(m9b(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return m9b(this,a,b)?3:4};
var mq=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};V(mq,Error);
var n9b=function(a,b){b=void 0===b?null:b;var c=wRa(a);a=a.getProfileId()||b;return c&&a?JSON.stringify([c,a]):null},o9b=new mq(6);
var p9b=function(){};
var T_=function(){};Wt(T_,p9b);T_.prototype.getCount=function(){for(var a=0,b=r(this),c=b.next();!c.done;c=b.next())a++;return a};T_.prototype[Symbol.iterator]=function(){return WIb(this.__iterator__(!0)).toEs6()};T_.prototype.clear=function(){var a=Array.from(this);a=r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};
var q9b=function(a){this.storage_=a};Wt(q9b,T_);g=q9b.prototype;g.isAvailable=function(){if(!this.storage_)return!1;try{return this.storage_.setItem("__sak","1"),this.storage_.removeItem("__sak"),!0}catch(a){return!1}};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 HK;d.next=function(){if(b>=c.length)return VIb;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 yRa=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.storage_=a};Wt(yRa,q9b);
var U_=function(a,b){this.mechanism_=a;this.prefix_=b+"::"};Wt(U_,T_);U_.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};U_.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};U_.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
U_.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new HK;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 qq=function(a,b){var c=void 0,d=void 0;b=void 0===b?new yRa:b;c=void 0===c?QD:c;d=void 0===d?gub:d;this.clientConfig_=a;this.transformer_=new l9b(this.clientConfig_);this.localStorage_=b;this.serializeJson_=c;this.isValidJson_=d;this.prefix_="PeopleStackExperiments";this.storage_=new U_(this.localStorage_,this.prefix_)};
qq.prototype.set=function(a,b){var c=n9b(a,b.getObfuscatedGaiaId());if(!c)throw o9b;a={keyPath:c,experiments:b.serialize(),lastUpdated:Date.now(),instanceId:a.getInstanceId()};this.storage_.set(c,this.serializeJson_(a));return c};
qq.prototype.get=function(a){a=n9b(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:k9b(a.experiments),lastUpdated:new Date(a.lastUpdated),state:b.getCacheState(a.lastUpdated),instanceId:a.instanceId}}else a=null;return a};qq.prototype.delete=function(a){this.storage_.remove(a);return!0};
qq.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 rq=function(a){var b=void 0;b=void 0===b?new Map:b;this.clientConfig_=a;this.transformer_=new l9b(this.clientConfig_);this.cache_=b};rq.prototype.set=function(a,b){var c=n9b(a,b.getObfuscatedGaiaId());if(!c)throw o9b;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
rq.prototype.get=function(a){a=n9b(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};rq.prototype.delete=function(a){this.cache_.delete(a);return!0};rq.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){4===a.transformer_.getCacheState(b.lastUpdated.getTime())&&a.cache_.delete(c)})};
var r9b=function(){};g=r9b.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};
var s9b=function(a){Z.call(this,a)};V(s9b,Z);g=s9b.prototype;g.getCaller=function(){return m(this,P_,1)};g.setCaller=function(a){return Gb(this,1,a)};g.getClient=function(){return m(this,Q_,2)};g.setClient=function(a){return Gb(this,2,a)};g.hasClient=function(){return mj(this,2)};g.toObject=function(){return t9b(this)};var t9b=function(a){if(null!=a)return{caller:e9b(a.getCaller()),client:f9b(a.getClient())}};
var u9b=function(a){Z.call(this,a)};V(u9b,Z);g=u9b.prototype;g.getRequestType=function(){return p(this,1)};g.setRequestType=function(a){return l(this,1,a)};g.setProperties=function(a){return Gb(this,3,a)};g.getInstanceId=function(){return p(this,4)};g.setInstanceId=function(a){return l(this,4,a)};g.clearInstanceId=function(){rb(this,4)};g.hasInstanceId=function(){return ej(this,4)};
g.toObject=function(){var a=null!=this?{requestType:n(p(this,1)),properties:t9b(m(this,s9b,3)),instanceId:n(p(this,4))}:void 0;return a};
var v9b=new xG("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",u9b,S_,function(a){return a.serialize()},k9b);
var w9b=function(a){this.client_=new eH({format:"jspb"});this.hostname_=a};w9b.prototype.getExperimentFlags=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},v9b)};
var V_=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new r9b};V_.prototype.getMetric=function(){return this.metric_};V_.prototype.send=function(a){var b=this,c;return hf(function(d){var e=(new s9b).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new u9b).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceId()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
V_.prototype.close=function(){};V_.prototype.processResponse=function(a){return a};
var x9b=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
var y9b=function(a,b){this.config_=a;this.request_=b;this.resolver_=new x9b;this.rpcPromise_=null;this.state_=0};g=y9b.prototype;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_=gtb(new xD),this.resolver_.reject(1)}};
g.send=function(){var a=this;if(0!==this.state_)return this.resolver_.promise;var b=cCa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);this.rpcPromise_=qtb(jtb([b,ztb(1E3*this.config_.timeoutSec,"TIMEOUT")]),function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resolver_.promise};
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 xD?c=1:a&&"object"===typeof a?(c=a.code||2,2===c&&(c=Fo("result.error.code",a)||a.status,c=Number(c),c=JUb.has(c)?JUb.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 z9b=Symbol("Ce"),A9b=function(){};A9b.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[z9b]=d)}return c})};
var W_=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};W_.prototype.getMetric=function(){return this.metric_};W_.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
W_.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[z9b]||0}};W_.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 B9b=function(a){this.config_=a;this.pendingRpcs_=new Set},D9b=function(a,b){b=new W_(b);b=new y9b(a.config_,b);a.pendingRpcs_.add(b);C9b(a,b);return b.resolver_.promise},C9b=function(a,b){hf(function(c){if(1==c.nextAddress)return It(c,2,3),jf(c,b.send(),3);if(2!=c.nextAddress)return Lt(c),a.pendingRpcs_.delete(b),Mt(c,0);Kt(c);return c.jumpTo(3)})};
var ARa=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new B9b(a);this.rpcClient_=new w9b(this.clientConfig_.apiRoot_)},F9b=function(a,b){var c,d,e,f;return hf(function(h){switch(h.nextAddress){case 1:var k=E9b(b);if(c=a.inflightRequests_.get(k)||null)return h.return(c);d=new V_(b,a.rpcClient_);It(h,2,3);e=D9b(a.dispatcher_,d);k=E9b(b);a.inflightRequests_.set(k,
e);return jf(h,e,5);case 5:return f=h.yieldResult,h.return(f);case 3:Lt(h);k=E9b(b);a.inflightRequests_.delete(k);Mt(h,0);break;case 2:throw Kt(h),Error("De");}})},E9b=function(a){a=wRa(a);if(!a)throw o9b;return a};
var G9b=function(a){Z.call(this,a)};V(G9b,Z);g=G9b.prototype;g.getInstanceId=function(){return p(this,1)};g.setInstanceId=function(a){return l(this,1,a)};g.clearInstanceId=function(){rb(this,1)};g.hasInstanceId=function(){return ej(this,1)};g.getRequestType=function(){return p(this,4)};g.setRequestType=function(a){return l(this,4,a)};g.getSourceType=function(){return p(this,6)};g.setSourceType=function(a){return l(this,6,a)};g.getClient=function(){return p(this,7)};
g.setClient=function(a){return l(this,7,a)};g.hasClient=function(){return ej(this,7)};g.getErrorType=function(){return p(this,8)};g.setErrorType=function(a){return l(this,8,a)};g.toObject=function(){var a=null!=this?{instanceId:n(p(this,1)),requestId:n(p(this,2)),durationUsec:n(p(this,3)),requestType:n(p(this,4)),requestOrigin:n(p(this,5)),sourceType:n(p(this,6)),client:n(p(this,7)),errorType:n(p(this,8))}:void 0;return a};
var BRa=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=Tr(new Ur,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(454985249).setEnableClearcut(b.getEnableClearcut())};g=BRa.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("Za");};g.createStatusMetric=function(){throw Error("Za");};g.createErrorMetric=function(){throw Error("Za");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(1E3*b.duration());l(a,3,b);return a};
var X_=function(a,b){this.metrics_=a;this.state_=new VT(b);this.label_="total";this.source=b};X_.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};X_.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};
var CRa=function(a,b){this.worker_=a;this.metrics_=Po(b)},H9b=function(a,b){var c=new G9b,d=kq();c=l(c,2,d).setRequestType(a.getRequestType());return l(c,5,b).setClient(a.getClient().getApplication())};
CRa.prototype.updateExperimentsCache=function(a,b){b=void 0===b?2:b;var c=this,d,e,f,h;return hf(function(k){if(1==k.nextAddress)return d=H9b(a,b),e=new X_(c.metrics_,d),e.start(),jf(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)})};
CRa.prototype.getCachedExperiments=function(a,b){b=void 0===b?0:b;var c=H9b(a,b),d=new X_(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 I9b=function(a){this.timer=a;this.count=0},ERa=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;this.refreshRateMs_=1E3*fj(this.clientConfig_.getClient(),11,14400);this.eventHandler_=new ZG(this)};ERa.prototype.updateExperimentsCache=function(a,b){try{return J9b(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(pq(c))}};ERa.prototype.getCachedExperiments=function(a,b){try{return J9b(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return pq(c)}};
var J9b=function(a,b){var c=wRa(b);if(!c)throw new mq(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new yD(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=fj(a.clientConfig_.getClient(),12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new I9b(d))}a.refreshers_.get(c)};
var K9b=function(){},DRa=function(a,b){this.cache_=a;this.loader_=b};
DRa.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return hf(function(k){if(1==k.nextAddress){e=d=null;try{d=L9b(c,a)}catch(E){e=E}if(d&&3!==d.state)return k.return(c.getCachedExperiments(a,b));It(k,3);return jf(k,M9b(c,a),5)}if(3!=k.nextAddress){f=k.yieldResult;var q=k.return,u=e;u=void 0===u?null:u;var x=(new nq).setExperimentFlags(f.getExperimentFlags()).setExperimentIdsList(f.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceId());u&&x.setError(xRa(u));return q.call(k,
x)}h=Kt(k);return k.return(pq(h))})};DRa.prototype.getCachedExperiments=function(a){try{var b=L9b(this,a);if(b){var c=(new nq).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);1!==b.state&&M9b(this,a).catch(K9b);return c}M9b(this,a).catch(K9b);return pq()}catch(d){return pq(d)}};
var L9b=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof mq)throw d;throw new mq(3);}},M9b=function(a,b){var c,d;return hf(function(e){if(1==e.nextAddress)return It(e,2),b.hasInstanceId()||b.setInstanceId(kq()),jf(e,F9b(a.loader_,b),4);if(2!=e.nextAddress)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Kt(e);if(d instanceof mq)throw d;throw new mq(2);})};
var zRa;
var N9b=function(a){this.clientConfig_=a;this.worker_=FRa(this.clientConfig_)};N9b.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};
var Vq=function(){this.peopleApiEnv_=4};Vq.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};Vq.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};
var O9b=function(a,b){this.client_=a;this.request_=b;this.response_=null};O9b.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};O9b.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList()};
var Tq=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=454985249};Tq.prototype.prefetch=function(a){var b=new R_(this.clientConfig_,new Vq);a=P9b(this,a,"");FRa(b).updateExperimentsCache(a,2)};Tq.prototype.loadExperiments=function(a,b,c){var d=new R_(this.clientConfig_,b),e=P9b(this,a,c);FRa(d).updateExperimentsCache(e,2);b=new N9b(new R_(this.clientConfig_,b));a=P9b(this,a,c);return new O9b(b,a)};
var P9b=function(a,b,c){var d=(new P_).setVersion(a.version_);b=(new Q_).setApplication(b);return(new g9b).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};
var sq=new Wq(new M_,new c9b);
var IRa=BU.getInstance();
var MRa=BU.getInstance();
var Y_=function(a){this.delegate=a};g=Y_.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.addTag=function(a){this.delegate.addTag(a)};g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};
var Q9b=new si(VP.WEEKDAY_MONTH_DAY_MEDIUM),R9b=new si(7);new si(VP.WEEKDAY_MONTH_DAY_MEDIUM);
var S9b=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);
var T9b=function(a){var b=a.altText,c=a.iconUrl,d=a.persistentText,e=a.styleClass;a=zq;e='<div class="'+Aq("peoplekitComponentsTagTag")+" "+(e?Aq(e):"")+'" peoplekit-id="'+Aq("mQXP")+'">';if(c){var f='<img class="'+Aq("peoplekitComponentsTagIcon")+'" src="';iU(c,lWb)||iU(c,mWb)?c=nU(c):c instanceof lh?c=nU(mh(c)):c instanceof lh?c=nU(mh(c)):c instanceof Hy?c=nU(Ci(c).toString()):c instanceof Hy?c=nU(Ci(c).toString()):(c=String(c),c=LWb.test(c)?c.replace(FWb,GWb):"about:invalid#zSoyz");b=f+Aq(c)+'" alt="'+
Aq(b)+'"><div'+(d?"":' class="'+Aq("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Aq("peoplekitComponentsTagText")+'">'+jU(b)+"</div></div>"}else b='<div class="'+Aq("peoplekitComponentsTagText")+'">'+jU(b)+"</div>";return a(e+b+"</div>")};
var ORa=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;U9b(this,{tags:d});kRa(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){U9b(h,k)})};g=ORa.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("Fe");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=fq(this.root,"Z306Oe");if(this.isOutOfOffice=4===a.getCurrentStatus()){if(4!==a.getCurrentStatus())throw Error("Ee");a=a.getCurrentStatusEndTime();var c=new Date(Date.now());a=c.getYear()===a.getYear()&&c.getMonth()===a.getMonth()&&c.getDate()===a.getDate()?"Out of office - back at "+R9b.format(a):"Out of office - back on "+Q9b.format(a);qD(b,String(a));this.root.classList.add("isOutOfOffice")}else qD(b,""),this.root.classList.remove("isOutOfOffice")}};
g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:S9b.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=fq(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=Uo(T9b,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 U9b=function(a,b){for(var c=r(b.tags||[]),d=c.next();!d.done;d=c.next())a.addTag(d.value);b.metaIcon&&a.setMetaIcon(b.metaIcon)};ORa.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};
var V9b=function(a,b,c,d){this.loggingToken=d;(new P7b(a)).setDisplayName(b).forceDisplayNameOverride_=c};V9b.prototype.getLoggingToken=function(){return this.loggingToken};
var Z_=function(a){this.delegate_=a};g=Z_.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()};
var vq=function(a){this.delegate_=a};V(vq,Z_);g=vq.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 W9b=function(){};W9b.prototype.getDisplayNameMatches=function(){return[]};W9b.prototype.getDisplayValueMatches=function(){return[]};W9b.prototype.getGivenNameMatches=function(){return[]};var X9b=new W9b;
var PRa=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=PRa.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("Ge");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getMatchInfo=function(){return X9b};
var Y9b=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 Br=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=Br.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 Z9b=(new Br).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),$9b=new Br;
var a$b=function(a){this.id_=a;this.value_=this.id_.originalValue_;this.description_="";this.name_=null;this.photo_=xq(this.id_)?$9b:Z9b;this.tags_=[];this.sourceIds_=o8b.includes(this.id_.getType())?[this.id_]:[];8===this.id_.getType()&&this.sourceIds_.push(new fr(3,this.id_.originalValue_));this.isMe_=17===this.id_.getType();this.dataSource_=0;this.resultType_=Y9b.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=this.originatingField_=
null};g=a$b.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_=xq(this.id_)?$9b:Z9b};g.getSourceIdList=function(){return this.sourceIds_};g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return 3===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};
g.getContactId=function(){return this.getSourceIdList().filter(function(a){return 4===a.getType()}).map(function(a){return a.originalValue_}).find(Boolean)||""};g.getLoggingToken=function(){return new Ir};var PTa=function(a,b){a.isMe_=b;return a};g=a$b.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 Cr=function(a,b){a.originatingField_=b;return a},Dr=function(a){return new a$b(a)};
var b$b=function(){this.internalId=jr;this.displayNameOverride="";this.forceDisplayNameOverride=!1;var a=Dr(this.internalId).setDataSource(3);this.internalResult=new vq(wq(0,[a]));this.internalSelectionToken=new V9b(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,null)};g=b$b.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 Bq=function(a,b,c,d,e){this.delegate=uq(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=new b$b};V(Bq,Y_);Bq.prototype.getAllIds=function(){return[this.id]};Bq.prototype.getSelection=function(){return this.selection};
var c$b=function(a,b,c,d,e,f,h){c=void 0===c?"":c;d=void 0===d?!1:d;return zq('<div role="option" class="'+Aq("peoplekitComponentsResultlistitemResultListItem")+" "+Aq(c)+'" id="'+Aq(a)+'" peoplekit-id="'+Aq(a)+'" aria-disabled="'+Aq(d)+'" aria-selected="false"><div class="'+Aq("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Aq("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Aq(b)+'">'+jU(e)+'</div><div class="'+Aq("peoplekitComponentsResultlistitemCenter")+
'">'+jU(f)+'</div><div class="'+Aq("peoplekitComponentsResultlistitemRight")+'">'+jU(h)+'</div></div><div peoplekit-id="'+Aq("Z306Oe")+'" class="'+Aq("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},d$b=function(a,b,c,d){return zq('<div class="'+Aq("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Aq("peoplekitComponentsResultlistitemLabel")+" "+Aq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Aq("peoplekitComponentsResultlistitemLabelText")+'" data-hovercard-id="'+
Aq(b)+'" translate="no">'+jU(xWb(a))+'</div><div peoplekit-id="'+Aq("x00ATb")+'" class="'+Aq("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(c?'<div class="'+Aq("peoplekitComponentsResultlistitemSublabel")+" "+Aq("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Aq("peoplekitComponentsResultlistitemSublabelText")+'" data-hovercard-id="'+Aq(b)+'"'+(d?"":' translate="no"')+">"+jU(xWb(c))+"</div></div>":"")+"</div>")},e$b=function(a){return zq('<div class="'+Aq("peoplekitComponentsResultlistitemAvatar")+
'"><div class="'+Aq("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Aq("d6MZcd")+'"></div>'+(a?jU(a):"")+"</div>")},f$b=function(){var a=zq,b='<div class="'+Aq("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Aq("peoplekitComponentsResultlistitemWhiteCheck")+'">';var c=zq('<svg viewBox="0 0 24 24" class="'+(Aq("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(e$b(lU(b+c+"</div></div>")))},g$b=function(){return zq('<img class="'+Aq("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Aq("SC3Htd")+'" alt="" src=""/>')};
var QRa=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.disableReason,f=a.allowSublabelTranslation;return zq(c$b(a.id,b,"isDisabled "+a.densityClass,!0,lU(""+e$b()),lU(""+d$b(c,b,d,f)),lU('<div class="'+Aq("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'+jU(e)+"</div>")))};
var a0=function(a){this.delegate=a;var b=this;this.eventHandler=new ZG(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};V(a0,Y_);a0.prototype.onClick=function(){this.toggleSelection()};
var TRa=function(a,b){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=!1;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("He");this.target=a;a=this.target.getLoggingToken();b=this.target.getId();this.internalSelectionToken=new V9b(b,this.displayNameOverride,this.forceDisplayNameOverride,a)};g=TRa.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 h$b=["pk-select","pk-deselect","pk-click","pk-input"],i$b=new Map([["pk-select",3],["pk-deselect",3],["pk-click",3],["pk-input",15]]);
var b0=function(a,b,c,d,e,f){this.delegate=uq(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=new b$b};V(b0,Y_);b0.prototype.getAllIds=function(){return[this.id]};b0.prototype.toggleSelection=function(){for(var a=r(this.result.getMemberList()),b=a.next();!b.done;b=a.next())b=URa(b.value),this.selectionsState.select(b);this.root.dispatchEvent(SRa("pk-select",this.root))};b0.prototype.getSelection=function(){return this.selection};
var j$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return zq(c$b(a.id,b,a.densityClass,void 0,lU(""+e$b()),lU(""+d$b(c,b,d)),lU(""+g$b())))};
var VRa=BU.getInstance();
var n$b=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&k$b(this,this.getSelection());l$b(this.selectionsState,function(d){d.id().equals(c.id)&&(c.getRoot().classList.remove("isSelected"),c.getRoot().setAttribute("aria-selected","false"))});m$b(this.selectionsState,function(d){return k$b(c,d)})};V(n$b,Y_);
n$b.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=SRa("pk-deselect",a)}else a=this.getRoot(),a=SRa("pk-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var k$b=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};
var o$b=function(a,b,c,d,e,f){this.delegate=uq(a,b,d,e,f,[2]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||URa(b,b.getDisplayName())};V(o$b,Y_);o$b.prototype.getAllIds=function(){return[this.id]};o$b.prototype.getSelection=function(){return this.selection};
var p$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel;return zq(c$b(a.id,b,a.densityClass,void 0,lU(""+f$b()),lU(""+d$b(c,b,d)),lU(""+g$b())))};
var q$b=function(a,b,c,d,e,f){this.delegate=uq(a,b,d,e,f,[]);this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||URa(b)};V(q$b,Y_);q$b.prototype.getAllIds=function(){return[this.id]};q$b.prototype.getSelection=function(){return this.selection};
var r$b=function(a){var b=a.hovercardId,c=a.label,d=a.sublabel,e=a.allowSublabelTranslation;return zq(c$b(a.id,b,a.densityClass,void 0,lU(""+f$b()),lU(""+d$b(c,b,d,e)),lU(""+g$b())))};
var aSa=function(a,b,c,d,e,f){this.list=a;this.resultConfig=b;this.appearanceConfig=c;this.clientConfig=d;this.selectionsState=e;this.results=[];this.intelligentCollection=f.create();a=new x8b(this.results);this.navigatable=new B8b(a)};g=aSa.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){a=r(a);for(var b=a.next();!b.done;b=a.next()){a:{var c=b.value,d=this.selectionsState,e=this.resultConfig;b=this.appearanceConfig;var f=this.clientConfig,h=vXb(this.list.getRoot()),k=!!d.get(c.getPrimaryTarget().getId());var q=c;var u=e;if(u.getManuallyDisableResultCallback()(q))q=6;else{var x=q.getPrimaryTarget().getId();q=yq(x)?3:xq(x)?2:k&&!u.getAllowResultDeselection()?5:1===q.getTargetList().length?1:1<q.getTargetList().length?4:0}switch(q){case 1:case 4:f=c;h=d;d=b;b=HRa(f,
e,jq(d.getDensity()));c=Uo(p$b,b);Dq(c,25285,["impression","pk-select","pk-deselect"],[WRa(f.getPrimaryTarget().getLoggingToken())]);q=fq(c,"d6MZcd");k=iq(d.getDensity());u=e.getBackupAvatarUrlResultCallback()(f);d=hq(q,b.photos,k,k,d,u);b=new o$b(c,f,h,e,b.tags,d);b=new a0(new n$b(b,h));break a;case 5:b=RRa(c,1,e,b,f,h);break a;case 6:b=RRa(c,2,e,b,f,h);break a;case 2:f=NRa(c,e,h,bj(f.internal,6,!1),jq(b.getDensity()));h=Uo(r$b,f);Dq(h,25285,["impression","pk-select","pk-deselect"],[WRa(c.getPrimaryTarget().getLoggingToken())]);
q=fq(h,"d6MZcd");k=iq(b.getDensity());u=e.getBackupAvatarUrlResultCallback()(c);b=hq(q,f.photos,k,k,b,u);b=new q$b(h,c,d,e,f.tags,b);b=new a0(new n$b(b,d));break a;case 3:f=NRa(c,e,h,bj(f.internal,6,!1),jq(b.getDensity()));h=Uo(j$b,f);Dq(h,25285,["impression","pk-select","pk-deselect"],[WRa(c.getPrimaryTarget().getLoggingToken())]);q=fq(h,"d6MZcd");k=iq(b.getDensity());u=e.getBackupAvatarUrlResultCallback()(c);b=hq(q,f.photos,k,k,b,u);b=new a0(new b0(h,c,d,e,f.tags,b));break a;default:throw Error("Ie");
}}this.list.append(b.getRoot());this.register(b)}};g.clear=function(){this.list.clear();this.results.length=0;this.navigatable.clear();this.intelligentCollection.clear()};g.reset=function(){this.navigatable.reset()};g.getNavigatable=function(){return this.navigatable};
var XRa=function(a){a=a.header;return zq('<div peoplekit-id="'+Aq("aittld")+'">'+(0<kU(a).length?'<div class="'+Aq("peoplekitUiResultlistHeader")+'">'+jU(a)+"</div>":"")+'<div peoplekit-id="'+Aq("tjneg")+'"></div></div>')},s$b=function(a){a=a.name;return zq('<div class="'+Aq("peoplekitUiResultlistGroup")+'">'+jU(a)+"</div>")};
var Fq=function(a,b,c){this.delegate=a;this.list=b;this.grouping=c;this.renderedGroups=new Set};Fq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.grouping.getGroupId(b);if(c&&!this.renderedGroups.has(c)){var d=this.grouping.getGroupName(c);d&&(d=Uo(s$b,{name:d}),this.list.append(d));this.renderedGroups.add(c)}this.delegate.append([b])}};Fq.prototype.clear=function(){this.renderedGroups.clear();this.delegate.clear()};
Fq.prototype.reset=function(a){this.grouping.reset(a);this.renderedGroups.clear();this.delegate.reset(a)};Fq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Gq=function(a,b){this.delegate=a;this.interactions=b};Gq.prototype.append=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.delegate.append([b]),this.interactions.display(b)};Gq.prototype.clear=function(){this.delegate.clear()};Gq.prototype.reset=function(a){this.delegate.reset(a)};Gq.prototype.getNavigatable=function(){return this.delegate.getNavigatable()};
var Yq=function(a){this.label=a};Yq.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return 2!==b.getDataSource()})?"non_directory":"directory"};Yq.prototype.getGroupName=function(a){switch(a){case "directory":return this.label;case "non_directory":return"";default:return a}};Yq.prototype.reset=function(){};
var Zq=function(a){this.label=a};Zq.prototype.getGroupId=function(a){return 7!==a.getResultType()?"suggestions":"non_suggestions"};Zq.prototype.getGroupName=function(a){switch(a){case "suggestions":return this.label;case "non_suggestions":return"";default:return a}};Zq.prototype.reset=function(){};
var t$b=function(a,b){this.ariaParent=a;this.delegate=b};g=t$b.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),aJ(this.ariaParent,a)):aJ(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 u$b=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};u$b.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};u$b.prototype.preventDefault=function(){this.event.preventDefault()};
var v$b=function(a){this.input=this.navigatable=null;this.navigatePastBeginCallback=a.navigatePastBegin||function(){};this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.options=Object.assign({},{shouldReactToHomeEnd:!0},{shouldReactToHomeEnd:!1});this.eventHandler=new ZG(this)};g=v$b.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 u$b(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new u$b(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 w$b=new TC;w$b.altKey=!0;w$b.keyCode=39;
var x$b=function(){MC.call(this)};V(x$b,MC);x$b.prototype.init=function(){};new x$b;
var NSa=function(a,b,c,d,e,f){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.count=0;this.attached=!1;this.navigatable=new t$b(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=new v$b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}});this.eventHandler=new ZG(this);eq(this.root,0)};g=NSa.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");eq(this.root,1);this.count=0;if(a){var f=y$b(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=y$b(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){return a.preventDefault()}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();eq(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");this.resultList.append(e);this.count+=e.length;b(this.count);0<this.count?(this.attach(),this.root.classList.remove("noResults")):a.getIsLastCallback()&&this.root.classList.add("noResults");a.getIsLastCallback()?eq(this.root,0===a.getCode()?2:3,a.getCode()):eq(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=r(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 KSa=function(){var a=zq,b='<div class="'+Aq("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Aq("yDHfq")+'"><div class="'+Aq("peoplekitComponentsAutocompleteInlineListContainer")+'">';var c=lU('<div peoplekit-id="'+Aq("tjneg")+'"></div>');c=zq('<div tabindex="-1" class="'+Aq("peoplekitComponentsScrollboxScrollbar")+'">'+jU(c)+"</div>");b=b+c+'</div><div class="'+Aq("peoplekitComponentsAutocompleteInlineCircularProgress")+'">';c='<div class="'+Aq("peoplekitComponentsCircularprogressCircularProgress")+
(" "+Aq("isActive"))+'" data-loadingmessage="'+Aq("Loading...")+'" data-active="true" dir="ltr"><div class="'+Aq("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Aq("vyyg5")+'">'+jU("Loading...")+'</div><div class="'+Aq("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Aq("peoplekitComponentsCircularprogressColorOne")+" "+Aq("exportColorOne")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Aq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+
" "+Aq("exportCircle")+'"></div></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Aq("peoplekitComponentsCircularprogressColorTwo")+" "+Aq("exportColorTwo")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Aq("peoplekitComponentsCircularprogressColorThree")+" "+Aq("exportColorThree")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+
" "+Aq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+
" "+Aq("exportCircle")+'"></div></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Aq("peoplekitComponentsCircularprogressColorFour")+" "+Aq("exportColorFour")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div><div class="'+Aq("peoplekitComponentsCircularprogressCircleClipper")+" "+Aq("peoplekitComponentsCircularprogressRight")+'"><div class="'+Aq("peoplekitComponentsCircularprogressCircle")+" "+Aq("exportCircle")+'"></div></div></div></div></div>';c=zq(c);return a(b+c+"</div></div>")},LSa=function(){return zq('<div class="'+Aq("peoplekitComponentsAutocompleteInlineNoResultsContainer")+'"></div>')};
var MSa=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Aq("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Aq(a)+'"':"")+'><p class="'+Aq("peoplekitComponentsNoResultsMessageHeader")+'">';b=jU(b?b:"No results");a=a+b+"</p>";if(tWb(c)||tWb(d))a+='<p class="'+Aq("peoplekitComponentsNoResultsMessageExplanation")+'">',c&&(c=jU(c),a=a+c+(d?" ":"")),d&&(a+='<a jsname="'+Aq("viORvd")+'" class="'+Aq("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Aq(HWb(d))+'">',d=jU(e?e:"Learn more"),a+=d,a+="</a>"),a+="</p>";a+="</div>";return zq(a)};
var z$b=Object.freeze(new Kq(NaN,NaN)),A$b=Object.freeze(new vU(NaN,NaN,NaN,NaN)),Oq=function(a,b,c){this.root=a;this.requestHide=b;this.lastPosition=z$b;this.lastBounds=A$b;this.anchorUpdateTimer=new yD(15);this.options=Object.assign({},{moveAboveAnchorIfOffscreen:!0},c);this.eventHandler=new ZG(this);this.attach()};Oq.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return B$b(a)})};Oq.prototype.isShown=function(){return"none"!=this.root.style.display};
Oq.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};Oq.prototype.show=function(a){this.anchor=a;this.lastPosition=z$b;this.lastBounds=A$b;zU(this.root,!0);B$b(this);this.anchorUpdateTimer.start()};
var B$b=function(a){var b;if((b=a.anchor)&&!(b=!a.lastPosition.equals(yU(a.anchor)))){b=a.lastBounds;var c=Hq(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=Hq(c),(c=Iq(c))&&b.intersection(eSa(c))){var d=a.anchor;b=a.root;c=a.options.moveAboveAnchorIfOffscreen;Nq(b,"","");b.style.height=xU("",!0);var e=hSa(d,9,b,8,c);d=hSa(d,8,b,9,c);e.height>=d.height||!c?kSa(b,e):kSa(b,d);a.lastPosition=yU(a.anchor);a.lastBounds=Hq(a.root)}else a.requestHide()};
Oq.prototype.hide=function(){this.root.style.cssText="";zU(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=z$b;this.lastBounds=A$b};
var OSa=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=lSa(this.root,function(){f.hide()},{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=new ZG(this);this.attach()};g=OSa.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;m$b(this.selectionsState,function(){return a.onSelect()});C$b(this.selectionsState,function(){return a.onSelect()});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.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&&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("Be`"+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("Be`"+c);}}this.root.style.width=xU(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("Be`"+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 JSa=function(){return zq('<div class="'+Aq("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Aq("noeiCf")+'" style="display: none;"></div>')};
var D$b=function(){this.batches=new Map};D$b.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 mSa=function(a,b){this.service=a;this.resolveComponents=b};
mSa.prototype.update=function(a){var b=this;a=r([].concat(v(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=r(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){E$b(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){E$b(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var E$b=function(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=r(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};
var F$b=new Set([1,3,20]),G$b=function(a){var b=this;this.idToComponent=new Map;this.updater=nSa(a,function(c){return b.resolveComponents(c)})};g=G$b.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return F$b.has(h.getType())})});a=[];b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=r(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=r(a);for(var c=a.next();!c.done;b={$jscomp$loop$prop$component$1720:b.$jscomp$loop$prop$component$1720},c=a.next()){b.$jscomp$loop$prop$component$1720=c.value;c=r(b.$jscomp$loop$prop$component$1720.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$1720}}(b)))}}};
g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};g.refresh=function(a){var b=new D$b;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=r(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 c0=function(){};c0.prototype.append=function(){};c0.prototype.remove=function(){};c0.prototype.refresh=function(){};c0.prototype.clear=function(){};
var ISa=function(a){this.peopleIntelligence=a};ISa.prototype.create=function(){return this.peopleIntelligence?new G$b(this.peopleIntelligence):new c0};
var DSa=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);
var H$b=function(){this.label="";this.type=0};g=H$b.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 I$b=function(){this.decorationConfigRequest=function(){};this.manuallyDisableResultCallback=function(){return!1};this.backupAvatarUrlResultCallback=function(){return""}};g=I$b.prototype;g.getAllowResultDeselection=function(){return!1};g.getWarnForExternalSelections=function(){return!1};g.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g.getManuallyDisableResultCallback=function(){return this.manuallyDisableResultCallback};
g.getShouldHideSuggestionSublabels=function(){return!1};g.getBackupAvatarUrlResultCallback=function(){return this.backupAvatarUrlResultCallback};
var J$b=function(a){this.header="";this.showSuggestions=!1;this.autoActivateFirstSuggestion=!0;this.maxResultsBeforeScroll=7;this.moveAutocompleteAboveAnchorIfOffscreen=!0;this.entryPoint=0;this.environmentConfig=a;this.grouping=new H$b;this.result=new I$b;this.appearance=new gq};g=J$b.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 null};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.getManuallyDisableResultCallback=function(){return this.result.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.result.getShouldHideSuggestionSublabels()};g.getBackupAvatarUrlResultCallback=function(){return this.result.getBackupAvatarUrlResultCallback()};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 K$b=function(a){this.environmentConfig=a;this.autocomplete=new J$b(a)};g=K$b.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.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.getManuallyDisableResultCallback=function(){return this.autocomplete.getManuallyDisableResultCallback()};g.getShouldHideSuggestionSublabels=function(){return this.autocomplete.getShouldHideSuggestionSublabels()};g.getBackupAvatarUrlResultCallback=function(){return this.autocomplete.getBackupAvatarUrlResultCallback()};
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 L$b=Object.freeze(new Map([[5,1]]));
var d0=function(){this.entryPoint_=0};d0.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};d0.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};d0.prototype.serialize=function(){return[this.entryPoint_].toString()};var M$b=Object.freeze(new d0);
var e0=function(){this.originator_=0};e0.prototype.setOriginator=function(a){this.originator_=a;return this};e0.prototype.getOriginator=function(){return this.originator_};
var ESa=function(a,b,c){var d=this;this.reporter=a.getReporter((new d0).setPeoplekitEntryPoint(c));m$b(b,function(e,f,h){d.select(e,h)});l$b(b,function(e,f,h){d.deselect(e,h)});N$b(b,function(e,f,h,k){d.replace(e,k)})};g=ESa.prototype;g.display=function(a){this.reporter.reportDisplay(oSa(a.getTargetList()))};g.select=function(a,b){if(!a.isPlaceholder())switch(b){case 1:case 12:case 5:this.reporter.reportSelect(Pq([a]),(new e0).setOriginator(L$b.get(b)||0));break;case 6:this.reporter.reportExternalSelect(Pq([a]))}};
g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Pq([a]))}};g.dismiss=function(a){this.reporter.reportDismiss(Pq(a))};g.save=function(a){this.reporter.reportSave(Pq(a))};g.send=function(a){this.reporter.reportSend(Pq(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};
var O$b=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};O$b.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=zD(function(){b.isBatchingInternal=!1;a()},100<d?0:100)}};O$b.prototype.cancel=function(){AD(this.timerId);this.isBatchingInternal=!1};
var VSa=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 O$b;m$b(this.selectionsState,function(){P$b(h)})};g=VSa.prototype;g.search=function(a,b){this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){0<d&&!c&&(c=!0)})};g.isShown=function(){return this.autocomplete.isShown()};
g.report=function(a){var b=void 0===b?[]:b;var c=this.interactions;b=b.length?b:this.selectionsState.selectionsState.slice();switch(a){case 1:c.reporter.reportProceed(Pq(b));break;case 2:c.dismiss(b);break;case 3:c.save(b);break;case 4:c.send(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 Q$b=function(a,b){a.selectionChangedListeners.push(b)},P$b=function(a){a.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.selectionsState.slice(),c=r(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};
var CSa=function(){return zq('<div peoplekit-id="'+Aq("nVhUhf")+'"></div>')};
var f0=function(a){Z.call(this,a)};V(f0,Z);f0.prototype.getVersion=function(){return X(this,1,1)};f0.prototype.setVersion=function(a){return l(this,1,a)};f0.prototype.toObject=function(){return R$b(this)};var R$b=function(a){if(null!=a)return{version:X(a,1,1)}};
var S$b=function(a){Z.call(this,a)};V(S$b,Z);g=S$b.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,5)};g.setEntryPoint=function(a){return l(this,5,a)};g.getSocialClient=function(){return m(this,DT,2)};g.setSocialClient=function(a){return Gb(this,2,a)};g.setVersionName=function(a){return l(this,3,a)};g.getBaselineCl=function(){return p(this,4)};g.setBaselineCl=function(a){return l(this,4,a)};
g.hasBaselineCl=function(){return ej(this,4)};g.getComponentFlow=function(){return p(this,7)};g.setComponentFlow=function(a){return l(this,7,a)};g.toObject=function(){return T$b(this)};var T$b=function(a){if(null!=a)return{clientId:n(p(a,1)),entryPoint:n(p(a,5)),socialClient:oTb(a.getSocialClient()),versionName:n(p(a,3)),baselineCl:n(p(a,4)),componentFlow:n(p(a,7)),androidClientInfo:R$b(m(a,f0,6))}};
var U$b=function(a){Z.call(this,a)};V(U$b,Z);U$b.prototype.toObject=function(){return V$b(this)};var V$b=function(a){if(null!=a)return{imageType:n(p(a,1)),imageDataCached:n(p(a,2))}};
var W$b=function(a){Z.call(this,a)};V(W$b,Z);W$b.prototype.toObject=function(){return X$b(this)};var X$b=function(a){if(null!=a)return{avatarMetadata:V$b(m(a,U$b,1))}};
var Y$b=function(a){Z.call(this,a)};V(Y$b,Z);g=Y$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return Z$b(this)};var Z$b=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var $$b=function(a){Z.call(this,a)};V($$b,Z);g=$$b.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getValue=function(){return fj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.toObject=function(){return aac(this)};var aac=function(a){if(null!=a)return{label:n(p(a,1)),value:fj(a,2,1)}};
var bac=function(a){Z.call(this,a)};V(bac,Z);g=bac.prototype;g.setLatencyUsec=function(a){l(this,2,a)};g.getQueryLength=function(){return p(this,3)};g.setQueryLength=function(a){return l(this,3,a)};g.hasQueryLength=function(){return ej(this,3)};g.toObject=function(){return cac(this)};
var cac=function(a){if(null!=a)return{resultCount:n(p(a,1)),latencyUsec:n(p(a,2)),queryLength:n(p(a,3)),isContactsPermissionsGranted:n(Mo(a,4)),isShowDeviceContactsDisplayed:n(Mo(a,5)),memoryAllocatedDelta:n(p(a,6)),inAppResultCount:n(p(a,7))}};
var dac=function(a){Z.call(this,a)};V(dac,Z);g=dac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getCause=function(){return p(this,2)};g.toObject=function(){return eac(this)};var eac=function(a){if(null!=a)return{label:n(p(a,1)),cause:n(p(a,2))}};
var fac=function(a){Z.call(this,a)};V(fac,Z);g=fac.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.setLatencyUsec=function(a){l(this,2,a)};g.getCacheStatus=function(){return p(this,3)};g.setCacheStatus=function(a){return l(this,3,a)};g.toObject=function(){return gac(this)};var gac=function(a){if(null!=a)return{label:n(p(a,1)),latencyUsec:n(p(a,2)),cacheStatus:n(p(a,3))}};
var g0=function(a){Z.call(this,a)};V(g0,Z);g0.prototype.getInterfaceType=function(){return p(this,1)};g0.prototype.setInterfaceType=function(a){return l(this,1,a)};g0.prototype.toObject=function(){return hac(this)};var hac=function(a){if(null!=a)return{interfaceType:n(p(a,1)),dataSourceType:n(p(a,2)),entryIndex:n(p(a,3))}};
var iac=function(a){Z.call(this,a)};V(iac,Z);iac.prototype.toObject=function(){return jac(this)};var jac=function(a){if(null!=a)return{suggestionsLoaded:n(Mo(a,1)),closeType:n(p(a,2))}};
var h0=function(a){Z.call(this,a)};V(h0,Z);h0.prototype.getEventType=function(){return p(this,1)};h0.prototype.setEventType=function(a){return l(this,1,a)};h0.prototype.setLatencyUsec=function(a){l(this,2,a)};h0.prototype.toObject=function(){return kac(this)};var kac=function(a){if(null!=a)return{eventType:n(p(a,1)),latencyUsec:n(p(a,2)),entityCount:n(p(a,3)),memoryAllocatedDelta:n(p(a,4)),animationFps:n(p(a,5)),timeToActionMillis:n(p(a,6)),completionMetadata:jac(m(a,iac,7))}};
var lac=function(a){Z.call(this,a)};V(lac,Z);g=lac.prototype;g.getCount=function(){return m(this,$$b,3)};g.setCount=function(a){Gb(this,3,a)};g.getLatency=function(){return m(this,fac,4)};g.setLatency=function(a){return Gb(this,4,a)};g.getError=function(){return m(this,dac,5)};g.setError=function(a){Gb(this,5,a)};g.hasError=function(){return mj(this,5)};g.toObject=function(){return mac(this)};
var mac=function(a){if(null!=a)return{entryType:n(p(a,1)),sharedDimension:hac(m(a,g0,2)),count:aac(a.getCount()),latency:gac(a.getLatency()),peoplekitError:Z$b(m(a,Y$b,8)),error:eac(a.getError()),dataDisplay:cac(m(a,bac,6)),userEvent:kac(m(a,h0,7))}};
var i0=function(a){Z.call(this,a,-1,nac)};V(i0,Z);i0.prototype.setElementIndex=function(a){l(this,2,a)};i0.prototype.setCardinalDirection=function(a){l(this,7,a)};var nac=[3];i0.prototype.toObject=function(){return oac(this)};var oac=function(a){if(null!=a)return{elementId:n(p(a,1)),elementIndex:n(p(a,2)),pathToRootElementIdList:n(ob(a,3)),userAction:n(p(a,4)),cardinalDirection:n(p(a,7))}};
var pac=function(a){Z.call(this,a)};V(pac,Z);pac.prototype.toObject=function(){return qac(this)};var qac=function(a){if(null!=a)return{ancestryVisualElement:oac(m(a,i0,1)),intentClassName:n(p(a,2)),firstInFlow:n(Mo(a,3)),userInterfaceStyle:X(a,4,0)}};
var rac=function(a){Z.call(this,a)};V(rac,Z);g=rac.prototype;g.getClientInterface=function(){return m(this,S$b,3)};g.setClientInterface=function(a){return Gb(this,3,a)};g.getMetadata=function(){return m(this,W$b,4)};g.setMetadata=function(a){Gb(this,4,a)};g.toObject=function(){var a=null!=this?{visualElementEntry:qac(m(this,pac,1)),metricsDataEntry:mac(m(this,lac,2)),clientInterface:T$b(this.getClientInterface()),metadata:X$b(this.getMetadata())}:void 0;return a};
var FSa=function(a){this.logContext=Sr(Tr(new Ur,"PeopleKit").setLogSource(624).setApplication(a.getSocialApplication()).setEnvironment(0).setVersion("1.0").setBaselineCl(454985249).setEnableClearcut(a.getEnableClearcut()),sq.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=FSa.prototype;g.getLogContext=function(){return this.logContext};g.createCountMetric=function(){throw Error("Za");};g.createStatusMetric=function(){throw Error("Za");};
g.createLatencyMetric=function(a,b){b=b.source();a=(new rac).setClientInterface((new S$b).setClientId(this.clientId).setSocialClient(a.getSocialClient()).setVersionName(this.getLogContext().getVersion()).setBaselineCl(this.getLogContext().getBaselineCl()).setComponentFlow(this.componentFlow));return Gb(a,2,b)};g.createErrorMetric=function(){throw Error("Za");};
var sac=function(a,b){this.count=0;this.metrics=a;this.label="total";a=new lac;a=l(a,1,4);var c=new g0;b=l(c,2,2).setInterfaceType(b);this.dataEntry=Gb(a,2,b).setLatency((new fac).setLabel(8));this.state=new VT(this.dataEntry)};sac.prototype.start=function(){this.count=0;this.metrics.start(this.state,this.label)};
sac.prototype.stop=function(a){a=void 0===a?function(){}:a;this.metrics.stop(this.state,this.label);var b=this.state.durationUsec(this.label),c;null==(c=this.dataEntry.getLatency())||c.setLatencyUsec(b);a(b);var d;null!=(d=m(this.dataEntry,g0,2))&&l(d,3,this.count);this.metrics.latency(this.state);++this.count};
var HSa=function(a,b){this.metrics=a;this.userInterfaceType=b};
var GSa=function(a){this.trackers=a},y$b=function(a){a=a.trackers;return new sac(a.metrics,a.userInterfaceType)};
var Xq=function(){this.selectionCallbacks=[];this.deselectionCallbacks=[];this.selectionReplacedCallbacks=[];this.selectionAttemptedCallbacks=[];this.selectionsState=[]};
Xq.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 Qq(a,b,c,this.selectionAttemptedCallbacks),!1;0<=b?(this.selectionsState.splice(b,0,a),Qq(a,b,c,this.selectionCallbacks)):(this.selectionsState.push(a),Qq(a,this.selectionsState.length-1,c,this.selectionCallbacks));return!0};
Xq.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),Qq(a,d,b,this.deselectionCallbacks))};Xq.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 m$b=function(a,b){a.selectionCallbacks.push(b)},l$b=function(a,b){a.deselectionCallbacks.push(b)},N$b=function(a,b){a.selectionReplacedCallbacks.push(b)},C$b=function(a,b){a.selectionAttemptedCallbacks.push(b)};g=Xq.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;pSa(b,e,a,c,this.selectionReplacedCallbacks);return!0};g.pop=function(a){a=void 0===a?0:a;var b=this.selectionsState.pop();if(b)return Qq(b,this.selectionsState.length,a,this.deselectionCallbacks),b};
g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;0<this.selectionsState.length;)this.deselect(this.selectionsState[0])};
var cr=function(){};cr.prototype.start=function(){};cr.prototype.stop=function(){};
var tac=function(a){this.userAction=a;this.cardinalDirection=void 0};
var br=function(a){this.visualElementRoot=a;this.syntheticVisualElements=new Map;a=Cq(this.visualElementRoot);this.syntheticRoot=qSa(a);this.syntheticVisualElements.set(a.id,this.syntheticRoot)};
br.prototype.insert=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Cq(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=Cq(b[c]);this.syntheticVisualElements.has(e.id)||(d=qSa(e),this.syntheticVisualElements.set(e.id,d),e=Cq(b[c-1]),this.syntheticVisualElements.get(e.id).appendChild(d))}}}};
br.prototype.remove=function(a){a=r(a);for(var b=a.next();!b.done;b=a.next())if(b=Cq(b.value)){var c=this.syntheticVisualElements.get(b.id);this.syntheticVisualElements.delete(b.id);c&&c.parentElement&&c.parentElement.removeChild(c)}};br.prototype.getRoot=function(){return this.syntheticRoot};br.prototype.getElement=function(a){return this.syntheticVisualElements.get(a)};
var SSa=function(a,b){this.syntheticTree=a;this.tracker=b;this.delayedImpression=new lXb(this.impress,15,this)};SSa.prototype.impress=function(){var a=this.tracker,b=this.syntheticTree.getRoot();b=uac(a.traverser_,b);vac(a,b,new vU(0,0,0,0))};SSa.prototype.dispose=function(){this.delayedImpression.dispose()};
var TSa=function(a,b){this.root=a;this.visualElementHandler=b;this.eventHandler=new ZG(this)};
TSa.prototype.observe=function(){var a=this;this.mutationObserver||(this.mutationObserver=new MutationObserver(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"childList"===c.type){var d=rSa(c.removedNodes);d.length&&a.visualElementHandler.syntheticTree.remove(d);c=rSa(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,
h$b,function(b){b.stopPropagation();var c=a.visualElementHandler,d=b.type;if(b=Cq(b.target))if(b=c.syntheticTree.getElement(b.id),d=i$b.get(d),b&&d&&(c=c.tracker,d=new tac(d),(b=j0(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_&&l(b[d],28,c.zwiebackId_),c.clearcut_&&c.clearcut_.log(b[d])}))};
TSa.prototype.dispose=function(){var a;null==(a=this.mutationObserver)||a.disconnect();this.eventHandler.removeAll();this.visualElementHandler.dispose()};
var USa=function(a){this.visualElementObserver=a};USa.prototype.start=function(){this.visualElementObserver.observe()};USa.prototype.stop=function(){this.visualElementObserver.dispose()};
var k0={CLICK:{string:"click",googRequiredXid:"cOuCgd"},GENERIC_CLICK:{string:"generic_click",googRequiredXid:"szJgjc"},IMPRESSION:{string:"impression",googRequiredXid:"xr6bB"},HOVER:{string:"hover",googRequiredXid:"ZmdkE"},KEYPRESS:{string:"keypress",googRequiredXid:"Kr2w4b"},KEYBOARD_ENTER:{string:"keyboard_enter",googRequiredXid:"SYhH9d"}},l0={TRACK:{string:"track",googRequiredXid:"u014N"},INDEX:{string:"index",googRequiredXid:"cQYSPc"},MUTABLE:{string:"mutable",googRequiredXid:"dYFj7e"},TEST_CODE:{string:"tc",
googRequiredXid:"DM6Eze"}},wac=l0.TRACK.string,xac=l0.INDEX.string,yac=l0.MUTABLE.string,zac=l0.TEST_CODE.string,Aac=k0.IMPRESSION.string,sSa=wSa(k0),Bac=new Map,Cac;for(Cac in k0)Bac.set(k0[Cac].googRequiredXid,k0[Cac].string);var uSa=wSa(l0);
var m0=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_=[]},Dac=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):0!=a.tracks_.size};g=m0.prototype;g.setIndex=function(a){this.index_=a};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 Eac=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};m0.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?tSa(a):a};m0.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?vSa(a):a};
var Fac=function(a){m0.call(this,a)};V(Fac,m0);
var n0=function(a){Z.call(this,a)};V(n0,Z);n0.prototype.toObject=function(){return Gac(void 0,this)};var Gac=function(a,b){if(null!=b){var c={timeUsec:n(p(b,1)),serverIp:n(p(b,2)),processId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}},Hac=[n0,1,Ejb,2,Hjb,3,Hjb];
var o0=function(a){Z.call(this,a)};V(o0,Z);o0.prototype.toObject=function(){return p0(void 0,this)};var p0=function(a,b){if(null!=b){var c={base:Gac(a,m(b,n0,1)),clientCounter:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Iac=[o0,1,Jjb,Hac,2,Ejb];
var q0=function(a){Z.call(this,a,-1,Jac)};V(q0,Z);q0.prototype.getOffset=function(){return fj(this,2,0)};q0.prototype.setOffset=function(a){l(this,2,a)};var Jac=[1];q0.prototype.toObject=function(){return Kac(void 0,this)};var Kac=function(a,b){if(null!=b){var c={baseList:n(ob(b,1)),offset:fj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}},Lac=[q0,1,Fjb,2,zu];
var r0=function(a){Z.call(this,a)};V(r0,Z);r0.prototype.setVeIndex=function(a){l(this,1,a)};var Mac=function(a,b){l(a,2,b)};r0.prototype.setElementIndex=function(a){l(this,5,a)};r0.prototype.getResultIndex=function(){return fj(this,6,-1)};r0.prototype.setResultIndex=function(a){l(this,6,a)};r0.prototype.toObject=function(){return Nac(void 0,this)};
var Nac=function(a,b){if(null!=b){var c={veIndex:fj(b,1,-1),nonArchivalVeIndex:fj(b,11,-1),veOffsetIdentifier:Kac(a,m(b,q0,15)),veType:n(p(b,2)),odelaySeLinker:n(p(b,8)),elementIndex:fj(b,5,-1),resultIndex:fj(b,6,-1),pageStart:n(p(b,7)),resultGroupElementIndex:fj(b,9,-1),doNotLogUrl:bj(b,10,!1),resultFprint:n(p(b,12)),veEventId:p0(a,m(b,o0,13)),youtubeVeCounter:fj(b,14,-1)};a&&(c.$jspbMessageInstance=b);return c}},Oac=[r0,1,zu,11,zu,15,Jjb,Lac,2,zu,8,zu,5,zu,6,zu,7,zu,9,zu,10,Ijb,12,Gjb,13,Jjb,Iac,
14,zu];
var s0=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};s0.prototype.getTag=function(){return this.veTag_};s0.prototype.getElement=function(){return this.el_};var Qac=function(a){var b=Pac++;a.traversalOrder_=b};s0.prototype.setParent=function(a){this.parent_=a};s0.prototype.getParent=function(){return this.parent_};
var PSa=function(a){Z.call(this,a)};V(PSa,Z);g=PSa.prototype;g.getClientId=function(){return p(this,1)};g.setClientId=function(a){return l(this,1,a)};g.getEntryPoint=function(){return p(this,2)};g.setEntryPoint=function(a){return l(this,2,a)};g.getApplication=function(){return p(this,3)};g.setApplication=function(a){return l(this,3,a)};g.setVersionName=function(a){return l(this,4,a)};g.getBaselineCl=function(){return p(this,5)};g.setBaselineCl=function(a){return l(this,5,a)};
g.hasBaselineCl=function(){return ej(this,5)};g.getMetadata=function(){return m(this,W$b,6)};g.setMetadata=function(a){Gb(this,6,a)};g.toObject=function(){var a=null!=this?{clientId:n(p(this,1)),entryPoint:n(p(this,2)),application:n(p(this,3)),versionName:n(p(this,4)),baselineCl:n(p(this,5)),metadata:X$b(this.getMetadata())}:void 0;return a};
var RSa=function(a){this.context_=a};RSa.prototype.createNewTag=function(a){return new Fac(a)};RSa.prototype.addEventMetadata=function(a){nE(a,this.context_.serialize())};
var Rac=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};
var t0=function(){};t0.prototype.impressionEvent=function(){return[]};t0.prototype.interactionEvent=function(){return[]};t0.prototype.visibilityEvent=function(){return[]};
var v0=function(){if(!u0){var a=u0=new n0,b=1E3*Date.now();l(a,1,b);l(u0,2,0);l(u0,3,0)}a=new o0;a=Gb(a,1,u0);b=++Sac;return l(a,2,b)},Sac=0,u0=void 0;
var w0=function(a){Z.call(this,a)};V(w0,Z);w0.prototype.toObject=function(){return Tac(this)};var Tac=function(a){if(null!=a)return{rootEventId:p0(void 0,m(a,o0,1))}};
var x0=function(a){Z.call(this,a)};V(x0,Z);x0.prototype.getEvent=function(){return Al(this,n0,1,Uac)};x0.prototype.setVed=function(a){return Yn(this,5,y0,a)};var Uac=[1,3,4],y0=[2,5];x0.prototype.toObject=function(){return z0(void 0,this)};var z0=function(a,b){if(null!=b){var c={event:Gac(a,b.getEvent()),clientEvent:p0(a,Al(b,o0,3,Uac)),ei:n(Hr(b,4,Uac)),rootVe:Nac(a,Al(b,r0,2,y0)),ved:n(Hr(b,5,y0))};a&&(c.$jspbMessageInstance=b);return c}};
var A0=function(a){Z.call(this,a)};V(A0,Z);g=A0.prototype;g.getTarget=function(){return m(this,x0,1)};g.setTarget=function(a){return Gb(this,1,a)};g.getType=function(){return X(this,2,0)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return ej(this,2)};g.toObject=function(){return Vac(void 0,this)};
var Vac=function(a,b){if(null!=b){var c={target:z0(a,b.getTarget()),type:X(b,2,0),cloneTree:z0(a,m(b,x0,3)),sourceTree:z0(a,m(b,x0,5)),graftTimeUsec:n(p(b,4)),dedupe:bj(b,6,!1)};a&&(c.$jspbMessageInstance=b);return c}};
var B0=function(a){Z.call(this,a,-1,Wac)};V(B0,Z);var Wac=[1];B0.prototype.toObject=function(){return Xac(this)};var Xac=function(a){if(null!=a)return{graftList:Hb(xb(a,A0,1),Vac)}};
var C0=function(a){Z.call(this,a,1)};V(C0,Z);var Yac={};C0.prototype.toObject=function(){return Zac(this)};var Zac=function(a){if(null!=a){var b={};Ib(a,b,Yac);return b}};
var D0=function(a){Z.call(this,a,-1,$ac)};V(D0,Z);D0.prototype.getOffset=function(){return fj(this,2,0)};D0.prototype.setOffset=function(a){l(this,2,a)};var $ac=[1];D0.prototype.toObject=function(){return abc(void 0,this)};var abc=function(a,b){if(null!=b){var c={identifierBaseList:n(ob(b,1)),offset:fj(b,2,0)};a&&(c.$jspbMessageInstance=b);return c}};
var E0=function(a){Z.call(this,a)};V(E0,Z);E0.prototype.getEventId=function(){return Al(this,n0,1,bbc)};E0.prototype.setEventId=function(a){qu(this,1,bbc,a)};var bbc=[1,2],cbc=[3,6];E0.prototype.toObject=function(){return dbc(void 0,this)};var dbc=function(a,b){if(null!=b){var c={eventId:Gac(a,b.getEventId()),clientEventId:p0(a,Al(b,o0,2,bbc)),featureIndex:fj(b,wb(b,cbc,3),-1),featureOffsetIdentifier:abc(a,Al(b,D0,6,cbc)),featureTreeRefLabel:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var ebc=function(a){Z.call(this,a)};V(ebc,Z);ebc.prototype.toObject=function(){return fbc(void 0,this)};var fbc=function(a,b){if(null!=b){var c={reference:z0(a,m(b,x0,1))};a&&(c.$jspbMessageInstance=b);return c}};
var F0=function(a){Z.call(this,a,233,gbc)};V(F0,Z);F0.prototype.setUiType=function(a){return l(this,1,a)};F0.prototype.setElementIndex=function(a){l(this,3,a)};var hbc=function(a,b){ll(a,4,b)};F0.prototype.getResultIndex=function(){return p(this,7)};F0.prototype.setResultIndex=function(a){l(this,7,a)};F0.prototype.setVisible=function(a){return l(this,6,a)};var ibc={},gbc=[4];F0.prototype.toObject=function(){return jbc(void 0,this)};
var jbc=function(a,b){if(null!=b){var c={uiType:n(p(b,1)),elementIndex:fj(b,3,-1),containsElementsList:n(ob(b,4)),targetUrl:n(p(b,5)),resultIndex:n(p(b,7)),featureTreeRef:dbc(a,m(b,E0,11)),visible:X(b,6,0),language:n(p(b,17)),adImpressionIndex:fj(b,149,-1),dataElement:fbc(a,m(b,ebc,232))};Ib(b,c,ibc,a);a&&(c.$jspbMessageInstance=b);return c}};
var G0=function(a){Z.call(this,a,17,kbc)};V(G0,Z);g=G0.prototype;g.setVed=function(a){return l(this,11,a)};g.setUiType=function(a){return l(this,1,a)};g.setVeIndex=function(a){l(this,2,a)};g.setCardinalDirection=function(a){l(this,4,a)};g.getResultIndex=function(){return fj(this,7,-1)};g.setResultIndex=function(a){l(this,7,a)};g.setElementIndex=function(a){l(this,8,a)};g.getImageUrl=function(){return p(this,9)};var lbc=function(a,b){Fb(a,14,b)},mbc={},kbc=[14];G0.prototype.toObject=function(){return nbc(this)};
var nbc=function(a){if(null!=a){var b={clickTrackingCgi:Nac(void 0,m(a,r0,16)),ved:n(p(a,11)),uiType:fj(a,1,-1),veIndex:fj(a,2,-1),primaryUserAction:n(p(a,3)),cardinalDirection:n(p(a,4)),toggleState:n(p(a,5)),interactionContext:fj(a,6,-1),resultIndex:fj(a,7,-1),elementIndex:fj(a,8,-1),imageUrl:n(p(a,9)),imageReferrerUrl:n(p(a,10)),thumbnailId:n(p(a,12)),referrerId:n(p(a,13)),ancestryList:Hb(xb(a,F0,14),jbc),clientInteractionMetadata:Zac(m(a,C0,15))};Ib(a,b,mbc);return b}};
var H0=function(a){Z.call(this,a,-1,obc)};V(H0,Z);H0.prototype.getEventId=function(){return m(this,o0,1)};H0.prototype.setEventId=function(a){Gb(this,1,a)};var obc=[2];
H0.prototype.toObject=function(){var a=null!=this?{eventId:p0(void 0,this.getEventId()),visualElementsList:Hb(xb(this,F0,2),jbc),parentEventId:p0(void 0,m(this,o0,3)),ephemeralParentEventId:n(p(this,6)),snapshotParentEventId:p0(void 0,m(this,o0,8)),requestContext:nbc(m(this,G0,4)),graftType:n(p(this,5)),grafts:Xac(m(this,B0,7)),coreEventMetadata:Tac(m(this,w0,9))}:void 0;return a};
var pbc=function(){};pbc.prototype.createNewTag=function(a){return new m0(a)};pbc.prototype.addEventMetadata=function(){};
var I0=function(a){Z.call(this,a)};V(I0,Z);var qbc=function(a){var b=Date.now().toString();l(a,1,b)};I0.prototype.toObject=function(){return rbc(void 0,this)};var rbc=function(a,b){if(null!=b){var c={clientWallClockTimestamp:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var J0=function(a){Z.call(this,a)};V(J0,Z);J0.prototype.getTimestamp=function(){return m(this,I0,1)};J0.prototype.setTimestamp=function(a){return Gb(this,1,a)};J0.prototype.hasTimestamp=function(){return mj(this,1)};J0.prototype.toObject=function(){return sbc(void 0,this)};var sbc=function(a,b){if(null!=b){var c={timestamp:rbc(a,b.getTimestamp())};a&&(c.$jspbMessageInstance=b);return c}};
var tbc=Eb(126,{coreInteractionMetadata:0},J0,sbc);Yac[126]=tbc;
var ubc=Eb(618,{coreVeMetadata:0},J0,sbc);ibc[618]=ubc;
var $q=function(a,b){this.enableAncestryLogging_=void 0===a?!0:a;this.enableBatching_=void 0===b?!1:b};V($q,t0);$q.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=vbc(this,c,b);b=this.enableBatching_?wbc(this,d,b):xbc(this,d,b);return a.concat(b)};
$q.prototype.interactionEvent=function(a,b){var c=new mE,d=new H0,e=v0();d.setEventId(e);e=new G0;a.serverVed_?e.setVed(a.serverVed_):e.setUiType(a.getTag().visualElementID_).setVeIndex(a.traversalOrder_);lbc(l(e,3,b.userAction),this.getAncestry_(a));b.cardinalDirection&&e.setCardinalDirection(b.cardinalDirection);a.getTag();this.setTimestamp(e);b=new w0;Gb(b,1,a.impressionEventID);Gb(d,3,a.impressionEventID);Gb(d,4,e);Gb(d,9,b);JSON.stringify(null,null,1);oE(c,d.serialize());return[c]};
$q.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:[];if(f.neverShown||Dac(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new A0;h.setType(1);var u=ybc(f);h.setTarget(u);u=h;var x=Date.now();l(u,4,x);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new A0,h.setType(2),u=ybc(f),h.setTarget(u),u=h,x=Date.now(),l(u,4,x),q.push(h),f.hidden=!0);d.set(k,q)}a=r(d.keys());for(b=
a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new B0,Fb(e,1,f),f=new H0,k=v0(),q=new w0,Gb(q,1,b),f.setEventId(k),Gb(f,3,b),Gb(f,7,e),Gb(f,9,q),b=new mE,JSON.stringify(null,null,1),oE(b,f.serialize()),c.push(b));return c};
$q.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=nXb(b,new vU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};
var vbc=function(a,b,c){for(var d=[],e={},f=b.length-1;0<=f;e={$jscomp$loop$prop$impressionEventID$1722:e.$jscomp$loop$prop$impressionEventID$1722,$jscomp$loop$prop$clientVeProto$1723:e.$jscomp$loop$prop$clientVeProto$1723,$jscomp$loop$prop$testCodes$1724:e.$jscomp$loop$prop$testCodes$1724},f--){e.$jscomp$loop$prop$clientVeProto$1723=new H0;e.$jscomp$loop$prop$testCodes$1724=[];e.$jscomp$loop$prop$impressionEventID$1722=v0();e.$jscomp$loop$prop$clientVeProto$1723.setEventId(e.$jscomp$loop$prop$impressionEventID$1722);
var h=new w0;Gb(h,1,e.$jscomp$loop$prop$impressionEventID$1722);Gb(e.$jscomp$loop$prop$clientVeProto$1723,9,h);if(h=yub(window.location.href,"ved"))h=(new G0).setVed(h),Gb(e.$jscomp$loop$prop$clientVeProto$1723,4,h);b[f].forEach(function(k){return function(q,u){u.impressionEventID=k.$jscomp$loop$prop$impressionEventID$1722;u.rootImpressionEventID=k.$jscomp$loop$prop$impressionEventID$1722;var x=zbc(u);q.length&&hbc(x,q);q=u.getElement();this.isVisible_(q,c)?(u.neverShown=!1,u.hidden=!1):x.setVisible(1);
this.setTimestamp(x);ru(k.$jscomp$loop$prop$clientVeProto$1723,2,F0,x);k.$jscomp$loop$prop$testCodes$1724=k.$jscomp$loop$prop$testCodes$1724.concat(u.getTag().testCodes_)}}(e),a);h=new mE;JSON.stringify(null,null,1);oE(h,e.$jscomp$loop$prop$clientVeProto$1723.serialize());ll(h,20,e.$jscomp$loop$prop$testCodes$1724);d.push(h)}return d},wbc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;0<=f;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(u,
x){var E=0,I=[],N=new H0,L=[],T=v0();N.setEventId(T);Gb(N,3,x);var Y=new w0;Gb(Y,1,x);Gb(N,9,Y);for(Y=0;Y<u.length;Y++)for(var ja=u[Y],ha=ja.keys(),ra=ha.next().value,Fa=ja.get(ra),Ka={},Ca=0;Ca<Fa.length;Ka={$jscomp$loop$prop$startingOffset$1726:Ka.$jscomp$loop$prop$startingOffset$1726,$jscomp$loop$prop$cloneTreeRootIndex$1727:Ka.$jscomp$loop$prop$cloneTreeRootIndex$1727},++Ca){var La=ra;Ka.$jscomp$loop$prop$cloneTreeRootIndex$1727=0;Ka.$jscomp$loop$prop$startingOffset$1726=Fa[Ca];var jb=ja.size;
Ca!=Fa.length-1&&(jb=Fa[Ca+1]);for(var db=Ka.$jscomp$loop$prop$startingOffset$1726;db<jb;++db){var Mb=ha.next().value;db==Ka.$jscomp$loop$prop$startingOffset$1726&&(La=Mb,Ka.$jscomp$loop$prop$cloneTreeRootIndex$1727=E);Mb.impressionEventID=T;Mb.rootImpressionEventID=x;Mb.traversalOrder_=E;var va=ja.get(Mb),Ba=zbc(Mb);va.length&&hbc(Ba,va.map(function(Ga){return function(Xa){return Xa-Ga.$jscomp$loop$prop$startingOffset$1726+Ga.$jscomp$loop$prop$cloneTreeRootIndex$1727}}(Ka)));va=Mb.getElement();this.isVisible_(va,
c)?(Mb.neverShown=!1,Mb.hidden=!1):Ba.setVisible(1);this.setTimestamp(Ba);ru(N,2,F0,Ba);L=L.concat(Mb.getTag().testCodes_);E++}jb=new A0;jb.setType(3);db=ybc(ra);jb.setTarget(db);db=new x0;Mb=new r0;Mb.setVeIndex(La.traversalOrder_);Mac(Mb,La.getTag().visualElementID_);qu(db,2,y0,Mb);Gb(jb,3,db);I.push(jb)}I.length&&(u=new B0,Fb(u,1,I),Gb(N,7,u));I=new mE;JSON.stringify(null,null,1);oE(I,N.serialize());ll(I,20,L);d.push(I)},a);return d},xbc=function(a,b,c){for(var d=[],e=b.length-1;0<=e;e--)for(var f=
b[e],h=f.keys(),k=h.next().value,q=f.get(k),u={},x=0;x<q.length;u={$jscomp$loop$prop$startingOffset$1729:u.$jscomp$loop$prop$startingOffset$1729},++x){u.$jscomp$loop$prop$startingOffset$1729=q[x];var E=f.size;x!=q.length-1&&(E=q[x+1]);var I=new H0,N=[],L=v0(),T=new w0;Gb(T,1,k.impressionEventID);I.setEventId(L);Gb(I,3,k.impressionEventID);l(I,5,3);Gb(I,9,T);T=new G0;k.serverVed_?T.setVed(k.serverVed_):T.setUiType(k.getTag().visualElementID_).setVeIndex(k.traversalOrder_);lbc(T,a.getAncestry_(k));
Gb(I,4,T);for(T=u.$jscomp$loop$prop$startingOffset$1729;T<E;++T){var Y=h.next().value;Y.impressionEventID=L;Y.rootImpressionEventID=k.rootImpressionEventID;void 0!=Y.traversalOrder_&&(Y.traversalOrder_-=u.$jscomp$loop$prop$startingOffset$1729);var ja=f.get(Y),ha=zbc(Y);ja.length&&hbc(ha,ja.map(function(ra){return function(Fa){return Fa-ra.$jscomp$loop$prop$startingOffset$1729}}(u)));ja=Y.getElement();a.isVisible_(ja,c)?(Y.neverShown=!1,Y.hidden=!1):ha.setVisible(1);a.setTimestamp(ha);ru(I,2,F0,ha);
N=N.concat(Y.getTag().testCodes_)}E=new mE;JSON.stringify(null,null,1);oE(E,I.serialize());ll(E,20,N);d.push(E)}return d};$q.prototype.getAncestry_=function(a){if(!this.enableAncestryLogging_)return[];for(var b=[],c=new Set;a&&!c.has(a);){var d=zbc(a);b.unshift(d);c.add(a);a=a.getParent()}return b};
var zbc=function(a){var b=(new F0).setUiType(a.getTag().visualElementID_);null!=a.getTag().getIndex()&&b.setElementIndex(a.getTag().getIndex());Eac(a.getTag(),b);return b},ybc=function(a){var b=new x0;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new r0;qu(b,3,Uac,a.impressionEventID);c.setVeIndex(a.traversalOrder_);Mac(c,a.getTag().visualElementID_);qu(b,2,y0,c)}return b};
$q.prototype.setTimestamp=function(a){if(a instanceof G0&&(!m(a,C0,15)||!m(a,C0,15).getExtension(tbc))){var b=new J0,c=new I0,d=m(a,C0,15);d||(d=new C0);qbc(c);b.setTimestamp(c);tbc.setExtensionFn(d,b);Gb(a,15,d)}a instanceof F0&&(b=new J0,c=new I0,qbc(c),b.setTimestamp(c),ubc.setExtensionFn(a,b))};
/*

 Copyright 2011 Google LLC.
 SPDX-License-Identifier: Apache-2.0
*/
var Abc=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 Bbc=function(){},Cbc=[[],[]],Dbc=0,Ebc=!1,Fbc=null,Gbc=0,Hbc=0,Ibc=0,K0=0,Jbc=0,L0=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.context_=a;this.state_ctor_=Bbc};L0.prototype.measure=function(a){this.measure_=a;return this};L0.prototype.mutate=function(a){this.mutate_=a;return this};L0.prototype.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
L0.prototype.build=function(){return Kbc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var Kbc=function(a,b){var c=Jbc++,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=Dbc,!a.runInCurrentFrameIfPossible||0==K0||a.measure&&1!=K0||(h=(h+1)%2),Cbc[h].push(f));return Lbc()}},Mbc=function(a,b){Ebc=!1;var c={};K0=
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,ib(f)}}}K0=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){ib(f)}}0<Gbc&&1<b&&(a=b-Gbc,500>a&&(Abc++,100<a&&Hbc++,Ibc<a&&(Ibc=a)));Gbc=Ebc&&1<b?b:0},Lbc=function(){Ebc||(Ebc=!0,Fbc=new Promise(function(a){window.requestAnimationFrame(function(b){var c=
Cbc[Dbc];Dbc=(Dbc+1)%2;try{Mbc(c,b)}finally{K0=0,c.length=0}a()})}));return Fbc};
var Nbc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},j0=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||Wi(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=Obc(a,d);if(!d||d.getComponentID()&&d.getComponentID()!=a.componentID_)return null;a=new s0(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(xu.length){var f=xu.pop();f.setOptions();f.decoder_.init(c,void 0,void 0,void 0);var h=f}else h=new Cjb(c);try{var k=Uaa(Oac);var q=Vaa(new k.ctor,h,k);break b}finally{h.free()}q=void 0}e=m(q,o0,13)}catch(u){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},Obc=function(a,b){if(Wi(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(!Wi(f)){var h=Frb(f);if(2>h.length)return null;f=h[0].trim();h=h[1].trim();if(Wi(f)||Wi(h))return null;switch(f){case a.maybeXidPartLabel_(wac):f=h.split(",");for(h=0;h<f.length;++h){var k=f[h].trim();if(a.expectXidTagComponents_){if(!d.xidTagComponents_)throw Error("Me");if(!Bac.has(k))throw Error("Ne`"+k);d.tracks_.add(k)}else d.tracks_.add(d.maybeXidEventLabel_(k))}break;case a.maybeXidPartLabel_(xac):d.setIndex(Number(h));
break;case a.maybeXidPartLabel_(zac):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_(yac):"true"==h?d.mutable_=!0:"rci"==h&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};Nbc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?vSa(a):a};Nbc.prototype.setComponentID=function(a){this.componentID_=a};Nbc.prototype.getComponentID=function(){return this.componentID_};
var Pbc=function(a,b){this.visualElementProvider_=a;this.traverseShadowDom_=void 0===b?!1:b},uac=function(a,b){return Qbc(a,b).filter(function(c){return null!=j0(this.visualElementProvider_,c)},a)},Rbc=function(a,b){var c=a.visualElementProvider_;a=[];for(var d=void 0,e={},f=0;f<b.length;e={$jscomp$loop$prop$parent$1731:e.$jscomp$loop$prop$parent$1731},++f){var h=j0(c,b[f]);void 0==h.traversalOrder_&&void 0==h.serverVed_&&(e.$jscomp$loop$prop$parent$1731=void 0,zSa(b[f],function(k){return function(q){q=
j0(c,q);return null!=q?(k.$jscomp$loop$prop$parent$1731=q,!0):!1}}(e)),e.$jscomp$loop$prop$parent$1731?d&&d.has(e.$jscomp$loop$prop$parent$1731)||(d=new Map,a.unshift(d),d.set(e.$jscomp$loop$prop$parent$1731,[]),Pac=1):(d=new Map,a.unshift(d),Pac=0),Qac(h),h.setParent(e.$jscomp$loop$prop$parent$1731),d.set(h,[]),e.$jscomp$loop$prop$parent$1731&&d.get(e.$jscomp$loop$prop$parent$1731).push(h.traversalOrder_))}return a},Sbc=function(a,b){var c=a.visualElementProvider_;return b.map(function(d){return j0(c,
d)})},Qbc=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},Pac=0;
var Tbc=function(a,b,c){MC.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};V(Tbc,MC);g=Tbc.prototype;g.stop=function(){this.timer_&&(AD(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(){MC.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_=zD(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};
var Ubc=function(a,b){OC.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};V(Ubc,OC);
var Vbc=function(a){Jo.call(this);this.domHelper_=a||So();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Ko(this.domHelper_.document_,this.eventType_,St(this.handleChange_,this))};Wt(Vbc,Jo);g=Vbc.prototype;g.getBrowserEventType_=mp(function(){var a=!!this.getHiddenPropertyName_(),b="hidden"!=this.getHiddenPropertyName_();if(a){var c;b?c=(((cu?"Webkit":bu?"Moz":$t?"ms":null)||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});
g.getHiddenPropertyName_=mp(function(){return mXb("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=mp(function(){return mXb("visibilityState",this.domHelper_.document_)});g.handleChange_=function(){var a=this.getHiddenPropertyName_()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new Ubc(!!this.domHelper_.document_[this.getHiddenPropertyName_()],a);this.dispatchEvent(a)};g.disposeInternal=function(){aD(this.eventKey_);Vbc.superClass_.disposeInternal.call(this)};
var M0=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;ZG.call(this);this.eventBuilder_=a;this.expectXidTagComponents_=d;this.metadataHandler_=b||new pbc;this.visualElementProvider_=new Nbc(this.metadataHandler_,this.expectXidTagComponents_);if(this.clearcut_=c)this.clearcut_.setClientSideLogOnlyForDevelopment(!1),
Uvb(this.clearcut_,!0),this.clearcut_.useGetRequestForFinalFlush=!0;this.maybeXidEventLabel_("generic_click");this.root_=this.domHelper_=this.invariantData_=this.appInfo_=void 0;this.pageVisibilityMonitor_=new Vbc;this.logImpressionsTask_=(new L0(this)).measure(k?function(){return k().then(f.handleImpressions_.bind(f))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();new Tbc(this.logImpressionsTask_,500,this);this.traverser_=new Pbc(this.visualElementProvider_,h);this.impressionListeners_=
[];this.eventBuilder_ instanceof t0&&(this.eventHandler_=this.eventBuilder_);this.zwiebackId_=e};Wt(M0,ZG);g=M0.prototype;g.setClearcutClientInfo=function(a){this.clearcut_&&this.clearcut_.setClearcutClientInfo(a)};g.setBuildLabel=function(a){this.clearcut_&&this.clearcut_.setBuildLabel(a)};g.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};g.log=function(a){this.clearcut_&&this.clearcut_.log(a)};g.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_&&this.clearcut_.setClientSideLogOnlyForDevelopment(a)};
var Wbc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};M0.prototype.getIndex=function(a){return a.getTag().getIndex()};var Xbc=function(a){return a.map(function(b){return b.getTag().visualElementID_})};g=M0.prototype;g.getMetadata=function(a,b){var c=new F0;Eac(a.getTag(),c);for(a=0;a<b.length;++a)Eac(b[a].getTag(),c);return c};
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;zSa(a,function(d){if(!oD(d))return!1;d=j0(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=uac(this.traverser_,this.root_);if(this.eventHandler_){var c=this.domHelper_.getViewportSize();c=new vU(0,
0,c.width,c.height);vac(this,b,c);b=Sbc(this.traverser_,b);c=this.eventHandler_.visibilityEvent(b,c);if(c.length)for(b=0;b<c.length;++b)this.metadataHandler_.addEventMetadata(c[b]),this.zwiebackId_&&l(c[b],28,this.zwiebackId_),this.clearcut_&&this.clearcut_.log(c[b]);Wbc(this)}else{c=[];var d=this.domHelper_.getViewportSize();d=new vU(0,0,d.width,d.height);for(var e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=j0(this.visualElementProvider_,f))&&Dac(f.getTag(),Aac)&&c.push(f)}for(b=0;b<c.length;b++)if(d=
c[b],!d.loggedImpression_){e=this.getAncestry_(d.getElement());var h=Xbc(e);f=this.getIndex(d);var k=new i0;k=l(k,4);var q=d.getTag().visualElementID_;k=l(k,1,q);h=ll(k,3,h);null!=f&&h.setElementIndex(f);f=new Rac;f.ve_metadata=this.getMetadata(d,e);f.global_metadata=this.invariantData_;f.client_info=this.appInfo_;e=h;e=nE(new mE,e.serialize());e=ll(e,20,f.testCodes);this.clearcut_&&this.clearcut_.log(e);Wbc(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=nXb(b,new vU(a.left,a.top,a.width,a.height)))&&10<=b.width&&10<=b.height?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?tSa(a):a};var vac=function(a,b,c){b=Rbc(a.traverser_,b);if(b.length)for(c=a.eventHandler_.impressionEvent(b,c),b=0;b<c.length;++b)a.metadataHandler_.addEventMetadata(c[b]),l(c[b],28,a.zwiebackId_),a.clearcut_&&a.clearcut_.log(c[b])};
var QSa=function(a,b,c,d,e,f,h,k,q){e=void 0===e?!1:e;k=void 0===k?new FUb(b,c,d,void 0,void 0,void 0,f):k;M0.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:void 0===q?!1:q})};Wt(QSa,M0);
var Rq=function(){this.filter_=null;this.boostIds_=[];this.queryScope_=0;this.slots_=[];this.entryPoint_=0};g=Rq.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 Rq;a.filter_=this.filter_;a.boostIds_=this.boostIds_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;return a};
var as=function(a){Z.call(this,a)};V(as,Z);var N0=function(a,b){return l(a,1,b)};g=as.prototype;g.getProvenance=function(){return X(this,2,0)};g.setProvenance=function(a){return l(this,2,a)};g.getCode=function(){return X(this,3,0)};g.setCode=function(a){return l(this,3,a)};g.toObject=function(){return Ybc(this)};var Ybc=function(a){if(null!=a)return{isLateLoaded:n(Mo(a,1)),provenance:n(p(a,2)),code:n(p(a,3))}};
var O0=function(a){Z.call(this,a)};V(O0,Z);O0.prototype.getSource=function(){return m(this,as,1)};O0.prototype.setSource=function(a){return Gb(this,1,a)};O0.prototype.hasSource=function(){return mj(this,1)};var P0=function(a,b){return l(a,2,b)},Q0=function(a,b){return l(a,3,b)};O0.prototype.toObject=function(){return Zbc(this)};var Zbc=function(a){if(null!=a)return{source:Ybc(a.getSource()),statusAtQuery:n(p(a,2)),statusAtResult:n(p(a,3))}};
var $bc=function(){this.filter_=null};$bc.prototype.getFilter=function(){return this.filter_};$bc.prototype.setFilter=function(a){this.filter_=a;return this};
var acc=function(a){Z.call(this,a)};V(acc,Z);g=acc.prototype;g.getEnd=function(){return fj(this,2,0)};g.setEnd=function(a){return l(this,2,a)};g.getTotalItems=function(){return fj(this,3,0)};g.setTotalItems=function(a){return l(this,3,a)};g.getCode=function(){return X(this,4,2)};g.setCode=function(a){return l(this,4,a)};g.getCacheState=function(){return m(this,O0,5)};g.setCacheState=function(a){return Gb(this,5,a)};g.hasCacheState=function(){return mj(this,5)};
g.toObject=function(){var a=null!=this?{begin:fj(this,1,0),end:fj(this,2,0),totalItems:fj(this,3,0),code:X(this,4,2),cacheState:Zbc(this.getCacheState())}:void 0;return a};
var bcc=function(a,b){this.results_=a;this.metadata_=b};bcc.prototype.getResults=function(){return this.results_};bcc.prototype.getMetadata=function(){return this.metadata_};
var ccc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=ccc.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 ccc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope());a.useOriginalDisplayValue_=this.useOriginalDisplayValue_;return a};
var dcc=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new O0};g=dcc.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 ecc=function(a,b){this.results_=a;this.metadata_=b};ecc.prototype.getResults=function(){return this.results_};ecc.prototype.getMetadata=function(){return this.metadata_};
var R0=function(a){Z.call(this,a)};V(R0,Z);g=R0.prototype;g.getQuery=function(){return W(this,1,"")};g.setQuery=function(a){return l(this,1,a)};g.clearQuery=function(){rb(this,1)};g.hasQuery=function(){return ej(this,1)};g.getIsFirstCallback=function(){return bj(this,2,!1)};g.setIsFirstCallback=function(a){return l(this,2,a)};g.getIsLastCallback=function(){return bj(this,3,!1)};g.setIsLastCallback=function(a){return l(this,3,a)};g.setCallbackNumber=function(a){return l(this,4,a)};
g.getNextPageToken=function(){return W(this,5,"")};g.getCode=function(){return X(this,6,2)};g.setCode=function(a){return l(this,6,a)};g.getCacheState=function(){return m(this,O0,7)};g.setCacheState=function(a){return Gb(this,7,a)};g.hasCacheState=function(){return mj(this,7)};
g.toObject=function(){var a=null!=this?{query:W(this,1,""),isFirstCallback:bj(this,2,!1),isLastCallback:bj(this,3,!1),callbackNumber:fj(this,4,-1),nextPageToken:W(this,5,""),code:X(this,6,2),cacheState:Zbc(this.getCacheState())}:void 0;return a};
var S0=function(a,b){this.results_=a;this.metadata_=b};S0.prototype.getResults=function(){return this.results_};S0.prototype.getMetadata=function(){return this.metadata_};
var fcc={create:function(a,b,c,d,e){e=void 0===e?new Rq:e;return BSa(a,b,c,d,new w8b,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=void 0===e?{}:e;return BSa(a,b,c,d,new w8b,e)},createConfig:function(a){return new K$b(a)}};
var Qr=function(a){Z.call(this,a)};V(Qr,Z);g=Qr.prototype;g.getTimestamp=function(){return fj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return ej(this,1)};g.getAffinityVersion=function(){return fj(this,2)};g.setAffinityVersion=function(a){l(this,2,a)};g.getTotalItems=function(){return fj(this,3)};g.setTotalItems=function(a){return l(this,3,a)};g.getNextPageToken=function(){return W(this,4)};
g.toObject=function(){var a=null!=this?{timestamp:n(p(this,1)),affinityVersion:n(p(this,2)),totalItems:n(p(this,3)),nextPageToken:n(p(this,4)),skipIndexing:n(Mo(this,5))}:void 0;return a};
var T0=function(){this.bits_=[]};g=T0.prototype;g.and=function(a){for(var b=new T0,c=r(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 T0,c=r(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=r(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};T0.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 XSa=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),ZSa=/^[<"']|[>"']$/g,dr=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"),gcc=/[^a-z0-9]+/gi,YSa=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};
var hcc=function(a,b){this.key=a;this.terms=$Sa(b)};
var U0=function(a,b,c){b=void 0===b?"":b;c=void 0===c?new T0:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_="\u2026"===b};U0.prototype.cloneNode=function(a){for(var b=[],c=r(this.items_),d=c.next();!d.done&&(d=d.value,!a.loadOrSkip(d.key)||(b.push(d),!a.isDone()));d=c.next());return new U0(b)};
U0.prototype.getMatches=function(a){for(var b=[],c=r(this.prefix_?this.matchIndices_:bTa(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};
U0.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=r(h.prefix_?h.matchIndices_:bTa(h.items_.length)),q=k.next();!q.done;q=k.next()){var u=h;q=q.value;for(var x=u.prefix_+"\ufdc7",E=r(u.items_[q].terms),I=E.next();!I.done;I=E.next())I=I.value,I.length<=u.prefix_.length||I<u.prefix_||I>x||(I=I.charAt(u.prefix_.length),u.childNodes_[I]||(u.childNodes_[I]=new U0(u.items_,u.prefix_+I)),u.childNodes_[I].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||V0;if(d===V0)break}return d}).reduce(function(c,d){return c.and(d)}):this};var icc=function(a){a.isExpanded_=!1;for(var b=r(Object.keys(a.childNodes_)),c=b.next();!c.done;c=b.next())c=a.childNodes_[c.value],c.isExpanded_&&icc(c)};U0.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new U0(this.items_,"\u2026",a)};U0.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new U0(this.items_,"\u2026",a)};var V0=new U0([]);
V0.isExpanded_=!0;
var W0=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};W0.prototype.getExpiry=function(){return this.expiry_};W0.prototype.getValue=function(){return this.value_};W0.prototype.isExpired=function(){return this.expiry_<Date.now()};W0.prototype.isStale=function(){return this.stale_<Date.now()};
var jcc=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=jcc.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=r(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=r(this.items_),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var kcc=function(){var a=new jcc(function(){return 1E3<a.size()});return a};
var lcc=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new jcc(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=lcc.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 X0=function(a,b){return new lcc(a,function(c){var d=Date.now()+b;return new W0(d,c,d)})};
var Y0=function(a){Z.call(this,a,-1,mcc)};V(Y0,Z);g=Y0.prototype;g.getCacheSize=function(){return fj(this,3,500)};g.setCacheSize=function(a){l(this,3,a)};g.hasCacheSize=function(){return ej(this,3)};g.getCacheStaleSec=function(){return Bl(this,4,86400)};g.getCacheExpiredSec=function(){return Bl(this,5,1209600)};g.getRpcTimeoutSec=function(){return Bl(this,12,60)};var mcc=[24,25];Y0.prototype.toObject=function(){return ncc(this)};
var ncc=function(a){if(null!=a)return{suggestMaxResults:fj(a,1,5),searchMaxResults:fj(a,2,5),cacheSize:fj(a,3,500),cacheStaleSec:Bl(a,4,86400),cacheExpiredSec:Bl(a,5,1209600),lruCacheCapacity:fj(a,6,500),lruCacheExpiredSec:fj(a,7,43200),autocompleteIndexCapacity:fj(a,8,250),autocompleteIndexExpiredSec:Bl(a,9,3600),notFoundCapacity:fj(a,10,500),notFoundExpiredSec:Bl(a,11,600),rpcTimeoutSec:Bl(a,12,60),serverWarmupThrottleSec:Bl(a,13,60),cacheFlushThrottleSec:Bl(a,14,300),suggestFormat:X(a,15,1),searchFormat:X(a,
16,1),lookupFormat:X(a,17,1),listFormat:X(a,18,1),coalescedSortOrder:X(a,19,1),preferSource:X(a,20,1),enableEmailPlaceholders:bj(a,21,!1),allowEmptyTargets:bj(a,22,!1),singleIant:bj(a,23,!1),iantApplicationList:n(ob(a,24)),idTypesList:n(ob(a,25)),smartAddressIndexCapacity:fj(a,26,10),smartAddressIndexExpiredSec:Bl(a,27,600),supportSmtpAddresses:bj(a,28,!1),contextualSuggestMaxAdditionResults:fj(a,29,3),enableBoosting:bj(a,30,!1),boostIndexCapacity:fj(a,31,5),boostIndexExpiredSec:Bl(a,32,3600),enableInterleavedGroups:bj(a,
33,!1),enableSlotReservations:bj(a,34,!1)}};
var dTa=new Set([10,11]);
var occ=function(a){this.interleaveGroups_=bj(a,33,!1)},pcc=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=eTa(d,e,f,!0);break a;default:d=fTa(d,e,f)}}return d}).map(function(d){return String(d.id)})};
var qcc=function(a,b){this.metrics_=a;this.state_=new VT(b);this.source=b;this.label_="total"};qcc.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};qcc.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};
var rcc=function(a,b){this.metrics_=a;this.state_=new VT(b);this.source=b};rcc.prototype.increment=function(a){this.metrics_.count(this.state_,void 0===a?1:a)};
var scc=function(a,b){this.metrics_=a;this.state_=new VT(b);this.source=b};scc.prototype.report=function(){this.metrics_.error(this.state_)};
var tcc=function(a){Z.call(this,a)};V(tcc,Z);tcc.prototype.toObject=function(){return ucc(this)};var ucc=function(a){if(null!=a)return{sqliteStatus:n(p(a,1))}};
var vcc=function(a){Z.call(this,a)};V(vcc,Z);vcc.prototype.getSqliteErrorInfo=function(){return Al(this,tcc,2,wcc)};var wcc=[2];vcc.prototype.toObject=function(){return xcc(this)};var xcc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:ucc(a.getSqliteErrorInfo())}};
var ycc=function(a){Z.call(this,a)};V(ycc,Z);ycc.prototype.getSqliteErrorInfo=function(){return Al(this,tcc,2,zcc)};var zcc=[2];ycc.prototype.toObject=function(){return Acc(this)};var Acc=function(a){if(null!=a)return{errorLocation:n(p(a,1)),sqliteErrorInfo:ucc(a.getSqliteErrorInfo())}};
var Bcc=function(a){Z.call(this,a)};V(Bcc,Z);Bcc.prototype.toObject=function(){return Ccc(this)};var Ccc=function(a){if(null!=a)return{errorLocation:n(p(a,1))}};
var Z0=function(a){Z.call(this,a)};V(Z0,Z);g=Z0.prototype;g.getClientInterface=function(){return m(this,FT,1)};g.setClientInterface=function(a){return Gb(this,1,a)};g.getEventType=function(){return p(this,3)};g.setEventType=function(a){return l(this,3,a)};g.getCacheStatus=function(){return m(this,Dcc,12)};g.setCacheStatus=function(a){return Gb(this,12,a)};g.getCount=function(){return m(this,a1,4)};g.setCount=function(a){Gb(this,4,a)};g.getLatency=function(){return m(this,b1,5)};
g.setLatency=function(a){return Gb(this,5,a)};g.getError=function(){return m(this,c1,6)};g.setError=function(a){Gb(this,6,a)};g.hasError=function(){return mj(this,6)};g.getRpcRequest=function(){return m(this,d1,7)};g.setRpcRequest=function(a){return Gb(this,7,a)};g.getRpcResponse=function(){return m(this,e1,8)};g.setRpcResponse=function(a){return Gb(this,8,a)};g.getApiCall=function(){return m(this,f1,9)};g.setApiCall=function(a){return Gb(this,9,a)};g.getApiResult=function(){return m(this,g1,10)};
g.setApiResult=function(a){return Gb(this,10,a)};var Dcc=function(a){Z.call(this,a)};V(Dcc,Z);var a1=function(a){Z.call(this,a)};V(a1,Z);g=a1.prototype;g.getDataSource=function(){return p(this,3)};g.setDataSource=function(a){return l(this,3,a)};g.getType=function(){return p(this,4)};g.setType=function(a){return l(this,4,a)};g.hasType=function(){return ej(this,4)};g.getValue=function(){return fj(this,2,1)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};var Ecc=function(a){Z.call(this,a)};V(Ecc,Z);var b1=function(a){Z.call(this,a)};V(b1,Z);g=b1.prototype;g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return ej(this,3)};g.setLatencyUsec=function(a){l(this,2,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return ej(this,1)};var h1=function(a){Z.call(this,a)};V(h1,Z);h1.prototype.getLabel=function(){return p(this,1)};h1.prototype.setLabel=function(a){return l(this,1,a)};h1.prototype.hasLabel=function(){return ej(this,1)};var Fcc=function(a){Z.call(this,a)};V(Fcc,Z);var c1=function(a){Z.call(this,a)};V(c1,Z);g=c1.prototype;g.setStatusCode=function(a){l(this,5,a)};g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};
g.hasLabel=function(){return ej(this,1)};g.getCause=function(){return p(this,2)};g.getType=function(){return p(this,3)};g.setType=function(a){return l(this,3,a)};g.hasType=function(){return ej(this,3)};var d1=function(a){Z.call(this,a)};V(d1,Z);d1.prototype.getLabel=function(){return p(this,1)};d1.prototype.setLabel=function(a){return l(this,1,a)};d1.prototype.hasLabel=function(){return ej(this,1)};var e1=function(a){Z.call(this,a)};V(e1,Z);g=e1.prototype;g.getLabel=function(){return p(this,1)};
g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return ej(this,2)};g.setLatencyUsec=function(a){l(this,3,a)};g.getErrorCode=function(){return p(this,4)};g.setStatusCode=function(a){l(this,7,a)};g.setBlockedUsec=function(a){return l(this,8,a)};var xr=function(a){Z.call(this,a)};V(xr,Z);var f1=function(a){Z.call(this,a)};V(f1,Z);g=f1.prototype;
g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getItemCount=function(){return p(this,2)};g.setItemCount=function(a){return l(this,2,a)};g.hasItemCount=function(){return ej(this,2)};g.getLookupInfo=function(){return m(this,xr,3)};g.setLookupInfo=function(a){return Gb(this,3,a)};g.hasLookupInfo=function(){return mj(this,3)};g.getQueryLength=function(){return p(this,4)};g.setQueryLength=function(a){return l(this,4,a)};
g.hasQueryLength=function(){return ej(this,4)};g.getQueryScope=function(){return X(this,5,0)};g.setQueryScope=function(a){return l(this,5,a)};g.hasQueryScope=function(){return ej(this,5)};var g1=function(a){Z.call(this,a)};V(g1,Z);g=g1.prototype;g.getLabel=function(){return p(this,1)};g.setLabel=function(a){return l(this,1,a)};g.hasLabel=function(){return ej(this,1)};g.getStatus=function(){return p(this,2)};g.setStatus=function(a){return l(this,2,a)};g.hasStatus=function(){return ej(this,2)};
g.setLatencyUsec=function(a){l(this,3,a)};g.getResultIndex=function(){return p(this,4)};g.setResultIndex=function(a){l(this,4,a)};g.getDataSource=function(){return p(this,7)};g.setDataSource=function(a){return l(this,7,a)};g.getItemCount=function(){return p(this,8)};g.setItemCount=function(a){return l(this,8,a)};g.hasItemCount=function(){return ej(this,8)};g.getLookupInfo=function(){return m(this,xr,10)};g.setLookupInfo=function(a){return Gb(this,10,a)};g.hasLookupInfo=function(){return mj(this,10)};
g.setStatusCode=function(a){l(this,11,a)};g.getQueryLength=function(){return p(this,13)};g.setQueryLength=function(a){return l(this,13,a)};g.hasQueryLength=function(){return ej(this,13)};g.getQueryScope=function(){return X(this,14,0)};g.setQueryScope=function(a){return l(this,14,a)};g.hasQueryScope=function(){return ej(this,14)};
Z0.prototype.toObject=function(){var a=null!=this?{clientInterface:CTb(this.getClientInterface()),autocompleteSessions:PTb(m(this,NT,2)),eventType:n(p(this,3)),cacheStatus:Gcc(this.getCacheStatus()),deviceInfo:Hcc(m(this,Ecc,13)),count:Icc(this.getCount()),latency:Jcc(this.getLatency()),error:Kcc(this.getError()),rpcRequest:Lcc(this.getRpcRequest()),rpcResponse:Mcc(this.getRpcResponse()),apiCall:Ncc(this.getApiCall()),apiResult:Occ(this.getApiResult()),memory:Pcc(m(this,h1,11))}:void 0;return a};
Dcc.prototype.toObject=function(){return Gcc(this)};var Gcc=function(a){if(null!=a)return{topnCacheItemCount:n(p(a,1)),iosDeviceCacheItemCount:n(p(a,2))}};a1.prototype.toObject=function(){return Icc(this)};var Icc=function(a){if(null!=a)return{dataSource:n(p(a,3)),type:n(p(a,4)),value:fj(a,2,1),label:n(p(a,1))}};Ecc.prototype.toObject=function(){return Hcc(this)};var Hcc=function(a){if(null!=a)return{numberOfContacts:n(p(a,1))}};b1.prototype.toObject=function(){return Jcc(this)};
var Jcc=function(a){if(null!=a)return{type:n(p(a,3)),latencyUsec:n(p(a,2)),label:n(p(a,1))}};h1.prototype.toObject=function(){return Pcc(this)};var Pcc=function(a){if(null!=a)return{label:n(p(a,1)),memoryUsedBytes:n(p(a,2)),memoryAverageUsedBytes:n(p(a,3))}};Fcc.prototype.toObject=function(){return Qcc(this)};var Qcc=function(a){if(null!=a)return{cpuPeakUsageFraction:n(mu(a,1)),cpuAverageUsageFraction:n(mu(a,2)),memoryPeakUsageBytes:n(p(a,3)),memoryAverageUsageBytes:n(p(a,4))}},Rcc=[6,7,8];
c1.prototype.toObject=function(){return Kcc(this)};var Kcc=function(a){if(null!=a)return{statusCode:X(a,5,2),iosErrorInfo:Acc(Al(a,ycc,6,Rcc)),androidErrorInfo:xcc(Al(a,vcc,7,Rcc)),webErrorInfo:Ccc(Al(a,Bcc,8,Rcc)),label:n(p(a,1)),cause:n(p(a,2)),type:n(p(a,3)),causeType:n(p(a,4))}};d1.prototype.toObject=function(){return Lcc(this)};var Lcc=function(a){if(null!=a)return{label:n(p(a,1)),requestProtoBytes:n(p(a,2)),requestBytes:n(p(a,3))}};e1.prototype.toObject=function(){return Mcc(this)};
var Mcc=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),errorCode:n(p(a,4)),responseProtoBytes:n(p(a,5)),responseBytes:n(p(a,6)),statusCode:X(a,7,2),blockedUsec:n(p(a,8)),processingUsec:n(p(a,9))}};xr.prototype.toObject=function(){return Scc(this)};var Scc=function(a){if(null!=a)return{phoneItemCount:n(p(a,1)),emailItemCount:n(p(a,2)),gaiaItemCount:n(p(a,3)),notFoundPhoneItemCount:n(p(a,4)),notFoundEmailItemCount:n(p(a,5)),notFoundGaiaItemCount:n(p(a,6))}};
f1.prototype.toObject=function(){return Ncc(this)};var Ncc=function(a){if(null!=a)return{label:n(p(a,1)),itemCount:n(p(a,2)),lookupInfo:Scc(a.getLookupInfo()),queryLength:n(p(a,4)),queryScope:X(a,5,0)}};g1.prototype.toObject=function(){return Occ(this)};
var Occ=function(a){if(null!=a)return{label:n(p(a,1)),status:n(p(a,2)),latencyUsec:n(p(a,3)),resultIndex:n(p(a,4)),cacheStatusAtQuery:n(p(a,5)),cacheStatusAtResult:n(p(a,6)),dataSource:n(p(a,7)),itemCount:n(p(a,8)),duplicatesRejectedCount:n(p(a,12)),resources:Qcc(m(a,Fcc,9)),lookupInfo:Scc(a.getLookupInfo()),statusCode:X(a,11,2),queryLength:n(p(a,13)),queryScope:X(a,14,0)}};
var wr=function(a){Z.call(this,a)};V(wr,Z);wr.prototype.getEventType=function(){return X(this,1,0)};wr.prototype.setEventType=function(a){return l(this,1,a)};var yr=function(a,b){return l(a,2,b)},zTa=function(a,b){return l(a,3,b)};g=wr.prototype;g.getErrorType=function(){return X(this,6,0)};g.setErrorType=function(a){return l(this,6,a)};g.getIdType=function(){return X(this,8,0)};g.setIdType=function(a){l(this,8,a)};g.getResultIndex=function(){return fj(this,9,0)};
g.setResultIndex=function(a){l(this,9,a)};g.getToken=function(){return W(this,10,"")};g.setToken=function(a){return l(this,10,a)};g.getCacheState=function(){return m(this,O0,11)};g.setCacheState=function(a){return Gb(this,11,a)};g.hasCacheState=function(){return mj(this,11)};g.getQueryLength=function(){return p(this,14)};g.setQueryLength=function(a){return l(this,14,a)};g.hasQueryLength=function(){return ej(this,14)};g.getItemCount=function(){return p(this,15)};
g.setItemCount=function(a){return l(this,15,a)};g.hasItemCount=function(){return ej(this,15)};g.getLookupInfo=function(){return m(this,xr,16)};g.setLookupInfo=function(a){return Gb(this,16,a)};g.hasLookupInfo=function(){return mj(this,16)};g.getQueryScope=function(){return p(this,17)};g.setQueryScope=function(a){return l(this,17,a)};g.hasQueryScope=function(){return ej(this,17)};
g.toObject=function(){var a=null!=this?{eventType:X(this,1,0),apiLabel:X(this,2,0),rpcLabel:X(this,3,0),countType:X(this,4,0),latencyType:X(this,5,0),errorType:X(this,6,0),errorCause:X(this,7,0),idType:X(this,8,0),resultIndex:fj(this,9,0),token:W(this,10,""),cacheState:Zbc(this.getCacheState()),contentLength:fj(this,12,0),errorHint:X(this,13,0),queryLength:n(p(this,14)),itemCount:n(p(this,15)),lookupInfo:Scc(this.getLookupInfo()),queryScope:n(p(this,17))}:void 0;return a};
var Tcc=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};Tcc.prototype.getErrorType=function(){return this.errorType_};
var Ucc=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=Ucc.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 Vcc=function(){};Vcc.prototype.processItem=function(){};var Wcc=new Vcc;
var LTa=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=LTa.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 Xcc=function(){this.altText_=""};Xcc.prototype.getIconUrl=function(){return""};
var Ycc=function(){};Ycc.prototype.configure=function(){};
var i1=function(a){Z.call(this,a,-1,Zcc)};V(i1,Z);i1.prototype.getEnableClearcut=function(){return bj(this,1,!1)};i1.prototype.setEnableClearcut=function(a){return l(this,1,a)};i1.prototype.getSocialApplication=function(){return X(this,2,0)};var Zcc=[5,6];i1.prototype.toObject=function(){return $cc(this)};
var $cc=function(a){if(null!=a)return{enableClearcut:bj(a,1,!1),socialApplication:X(a,2,0),affinityLogSource:X(a,3,41),metricLogSource:X(a,4,574),eventSourcesList:Hb(xb(a,Wr,5),H_),contextualEventSourcesList:Hb(xb(a,Xr,6),Q7b)}};
var j1=function(a){Z.call(this,a)};V(j1,Z);j1.prototype.getApplication=function(){return X(this,1,0)};j1.prototype.setApplication=function(a){return l(this,1,a)};j1.prototype.getIsEnabled=function(){return bj(this,2,!1)};j1.prototype.toObject=function(){return adc(this)};var adc=function(a){if(null!=a)return{application:X(a,1,0),isEnabled:bj(a,2,!1)}};
var k1=function(a){Z.call(this,a)};V(k1,Z);k1.prototype.getApiKey=function(){return W(this,1,"")};k1.prototype.toObject=function(){return bdc(this)};var bdc=function(a){if(null!=a)return{apiKey:W(a,1,""),apiKeyTest:W(a,2,"")}};
var l1=function(a){Z.call(this,a,-1,cdc)};V(l1,Z);var cdc=[1];l1.prototype.toObject=function(){return m1(this)};var m1=function(a){if(null!=a)return{papiExtensionList:n(ob(a,1))}};
var n1=function(a){Z.call(this,a,-1,ddc)};V(n1,Z);n1.prototype.getClientId=function(){return W(this,1,"CLIENT_UNSPECIFIED")};n1.prototype.setClientId=function(a){return l(this,1,a)};n1.prototype.getAffinityType=function(){return W(this,4,"AFFINITY_TYPE_UNKNOWN")};n1.prototype.setAffinityType=function(a){return l(this,4,a)};var ddc=[7,8];n1.prototype.toObject=function(){return edc(this)};
var edc=function(a){if(null!=a)return{clientId:W(a,1,"CLIENT_UNSPECIFIED"),clientName:W(a,2,"CLIENT_UNSPECIFIED"),clientVersion:W(a,3,""),affinityType:W(a,4,"AFFINITY_TYPE_UNKNOWN"),affinityTypeEnum:X(a,5,0),mergedPersonModel:X(a,6,1),containerTypeList:n(ob(a,7)),fieldMaskList:n(ob(a,8)),listRankedTargetsPapiExtensions:m1(m(a,l1,9)),listPeopleByKnownIdPapiExtensions:m1(m(a,l1,10)),listContactPeoplePapiExtensions:m1(m(a,l1,11)),getPeoplePapiExtensions:m1(m(a,l1,12)),identityAcl:bj(a,13,!1),offlineStoreDelayMillis:fj(a,
14,5E3),enablePrivateNames:bj(a,15,!1),dasherAdminDisabled:bj(a,16,!1),enableSmimeCertificate:bj(a,17,!1)}};
var fdc=function(a){Z.call(this,a)};V(fdc,Z);g=fdc.prototype;g.getClient=function(){return m(this,Y0,1)};g.setClient=function(a){return Gb(this,1,a)};g.hasClient=function(){return mj(this,1)};g.getGapi=function(){return m(this,k1,2)};g.getPeopleApi=function(){return m(this,n1,3)};g.getClearcut=function(){return m(this,i1,4)};g.setClearcut=function(a){Gb(this,4,a)};g.hasClearcut=function(){return mj(this,4)};g.getExperiments=function(){return m(this,j1,5)};g.setExperiments=function(a){Gb(this,5,a)};
g.hasExperiments=function(){return mj(this,5)};g.toObject=function(){var a=null!=this?{client:ncc(this.getClient()),gapi:bdc(this.getGapi()),peopleApi:edc(this.getPeopleApi()),clearcut:$cc(this.getClearcut()),experiments:adc(this.getExperiments())}:void 0;return a};
var gdc=function(a){Z.call(this,a,1)};V(gdc,Z);var hdc={};gdc.prototype.toObject=function(){if(null!=this){var a={};Ib(this,a,hdc)}else a=void 0;return a};
var jdc=function(a){Z.call(this,a,-1,idc)};V(jdc,Z);g=jdc.prototype;g.getExperimentIdsList=function(){return ob(this,1)};g.setExperimentIdsList=function(a){return ll(this,1,a)};g.getProfileId=function(){return p(this,2)};g.setProfileId=function(a){return l(this,2,a)};g.hasProfileId=function(){return ej(this,2)};var idc=[1];jdc.prototype.toObject=function(){var a=null!=this?{experimentIdsList:n(ob(this,1)),profileId:n(p(this,2))}:void 0;return a};
var kdc=function(){},ldc=function(){return!1},mdc=function(){this.experiments_=new jdc;this.peopleApiEnv_=4;this.delegatorId_="";this.onAuthError_=kdc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=ldc;this.isOrgStateEnabled_=!1};g=mdc.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.setAuthErrorHandler=function(a){this.onAuthError_=a||kdc};g.getApiKey=function(){return this.apiKey_};
var o1=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new mdc;a=this.getPeopleApi();ob(a,7).length||ll(a,7,[2,8,1,7,10,11]);ob(a,8).length||ll(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=r(ob(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":tb(a,8,c+".metadata.verified")}};o1.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new Y0);return this.delegate_.getClient()};
o1.prototype.getGapi=function(){if(!mj(this.delegate_,2)){var a=this.delegate_,b=new k1;Gb(a,2,b)}return this.delegate_.getGapi()};o1.prototype.getPeopleApi=function(){if(!mj(this.delegate_,3)){var a=this.delegate_,b=new n1;Gb(a,3,b)}return this.delegate_.getPeopleApi()};o1.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new i1);return this.delegate_.getClearcut()};var ndc=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new j1);return a.delegate_.getExperiments()};
o1.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var odc=function(a){a=a.getClient();return fj(a,6,500)?Math.min(Math.round(fj(a,6,500)/4),500):500};
var Vr=null;
var pdc=function(a){this.qos=a};pdc.prototype.getIndex=function(){return String(this.qos)};var qdc=new pdc(1),rdc=new pdc(2);
var sdc=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};sdc.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||(a.orgState_=0)};
var p1=function(a){Z.call(this,a)};V(p1,Z);p1.prototype.getDescription=function(){return p(this,6)};p1.prototype.setDescription=function(a){return l(this,6,a)};p1.prototype.toObject=function(){return tdc(void 0,this)};var tdc=function(a,b){if(null!=b){var c={entityType:n(p(b,4)),presence:n(p(b,1)),memberCount:n(p(b,2)),avatarUrl:n(p(b,3)),developerName:n(p(b,5)),description:n(p(b,6)),dndState:n(p(b,7)),organizationInfo:Qjb(a,m(b,Njb,8))};a&&(c.$jspbMessageInstance=b);return c}};
var udc=function(a){Z.call(this,a)};V(udc,Z);udc.prototype.toObject=function(){return vdc(void 0,this)};var vdc=function(a,b){if(null!=b){var c={actorId:n(p(b,1)),subtitle:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var lr=function(a){Z.call(this,a,5)};V(lr,Z);g=lr.prototype;g.getIsPlaceholder=function(){return Mo(this,2)};g.setIsPlaceholder=function(a){l(this,2,a)};g.getContactId=function(){return p(this,4)};g.setContactId=function(a){l(this,4,a)};g.hasContactId=function(){return ej(this,4)};var wdc={};lr.prototype.toObject=function(){return xdc(void 0,this)};
var xdc=function(a,b){if(null!=b){var c={dynamiteExtendedData:tdc(a,m(b,p1,1)),isPlaceholder:n(Mo(b,2)),paisaExtendedData:vdc(a,m(b,udc,3)),contactId:n(p(b,4))};Ib(b,c,wdc,a);a&&(c.$jspbMessageInstance=b);return c}};
var rTa=Eb(417869898,{clientSpecificData:0},lr,xdc);q8b[417869898]=rTa;
var nr=function(a){Z.call(this,a)};V(nr,Z);nr.prototype.toObject=function(){return ydc(void 0,this)};var ydc=function(a,b){if(null!=b){var c={grammaticalGender:n(p(b,1))};a&&(c.$jspbMessageInstance=b);return c}};
var nTa=Eb(417866180,{peopleStackFieldData:0},nr,ydc);q8b[417866180]=nTa;
var q1=function(a){Z.call(this,a)};V(q1,Z);g=q1.prototype;g.getIdCase=function(){return ub(this,r1)};g.getProfileId=function(){return W(this,wb(this,r1,1))};g.setProfileId=function(a){return Yn(this,1,r1,a)};g.hasProfileId=function(){return 1===ub(this,r1)};g.getEmail=function(){return W(this,wb(this,r1,2))};g.setEmail=function(a){return Yn(this,2,r1,a)};g.hasEmail=function(){return 2===ub(this,r1)};g.getPhone=function(){return W(this,wb(this,r1,3))};g.setPhone=function(a){return Yn(this,3,r1,a)};
g.hasPhone=function(){return 3===ub(this,r1)};var r1=[1,2,3];q1.prototype.toObject=function(){return zdc(void 0,this)};var zdc=function(a,b){if(null!=b){var c={profileId:n(Hr(b,1,r1)),email:n(Hr(b,2,r1)),phone:n(Hr(b,3,r1))};a&&(c.$jspbMessageInstance=b);return c}};
var qr=function(a){Z.call(this,a,-1,Adc)};V(qr,Z);qr.prototype.getHiddenKeysList=function(){return xb(this,q1,3)};var Adc=[3];qr.prototype.toObject=function(){return Bdc(void 0,this)};var Bdc=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Hb(b.getHiddenKeysList(),zdc,a),familyStatus:n(p(b,2)),birthdayStatus:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var sTa=Eb(417869137,{peopleStackPersonData:0},qr,Bdc);q8b[417869137]=sTa;
var Cdc=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},pTa=function(a){if(!a)return 0;a=Array.from(a).map(Cdc);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};
var gTa=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 Ddc=function(a){Z.call(this,a)};V(Ddc,Z);g=Ddc.prototype;g.getLoggingId=function(){return nu(this,1)};g.setLoggingId=function(a){l(this,1,a)};g.getValue=function(){return mu(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};g.toObject=function(){return Edc(void 0,this)};var Edc=function(a,b){if(null!=b){var c={loggingId:Lb(b.getLoggingId()),value:n(mu(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var Fdc=function(a){Z.call(this,a)};V(Fdc,Z);g=Fdc.prototype;g.getValue=function(){return p(this,1)};g.setValue=function(a){return l(this,1,a)};g.hasValue=function(){return ej(this,1)};g.getGivenName=function(){return p(this,2)};g.setGivenName=function(a){return l(this,2,a)};g.hasGivenName=function(){return ej(this,2)};g.getFamilyName=function(){return p(this,3)};g.setFamilyName=function(a){return l(this,3,a)};g.hasFamilyName=function(){return ej(this,3)};
g.getSourceType=function(){return p(this,4)};g.setSourceType=function(a){return l(this,4,a)};g.toObject=function(){return Gdc(void 0,this)};var Gdc=function(a,b){if(null!=b){var c={value:n(p(b,1)),givenName:n(p(b,2)),familyName:n(p(b,3)),sourceType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Hdc=function(a){Z.call(this,a)};V(Hdc,Z);g=Hdc.prototype;g.getUrl=function(){return p(this,1)};g.setUrl=function(a){return l(this,1,a)};g.hasUrl=function(){return ej(this,1)};g.getType=function(){return p(this,2)};g.setType=function(a){return l(this,2,a)};g.hasType=function(){return ej(this,2)};g.getGlyph=function(){return p(this,3)};g.setGlyph=function(a){return l(this,3,a)};g.toObject=function(){return Idc(void 0,this)};
var Idc=function(a,b){if(null!=b){var c={url:n(p(b,1)),type:n(p(b,2)),glyph:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var s1=function(a){Z.call(this,a)};V(s1,Z);g=s1.prototype;g.getPhoto=function(){return m(this,Hdc,1)};g.setPhoto=function(a){Gb(this,1,a)};g.hasPhoto=function(){return mj(this,1)};g.getName=function(){return m(this,Fdc,2)};g.setName=function(a){return Gb(this,2,a)};g.hasName=function(){return mj(this,2)};g.getAffinity=function(){return m(this,Ddc,3)};g.hasAffinity=function(){return mj(this,3)};g.getPrimary=function(){return Mo(this,4)};g.toObject=function(){return Jdc(void 0,this)};
var Jdc=function(a,b){if(null!=b){var c={photo:Idc(a,b.getPhoto()),name:Gdc(a,b.getName()),affinity:Edc(a,b.getAffinity()),primary:n(Mo(b,4))};a&&(c.$jspbMessageInstance=b);return c}};
var Kdc=function(a){Z.call(this,a)};V(Kdc,Z);Kdc.prototype.toObject=function(){return Ldc(void 0,this)};var Ldc=function(a,b){if(null!=b){var c={smtpServerSupportsTls:n(Mo(b,1)),usesConfusingCharacters:n(Mo(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var t1=function(a){Z.call(this,a,-1,Mdc)};V(t1,Z);t1.prototype.getApplication=function(){return X(this,1,0)};t1.prototype.setApplication=function(a){return l(this,1,a)};var Ar=function(a){Z.call(this,a)};V(Ar,Z);Ar.prototype.getState=function(){return p(this,2)};var Mdc=[2];t1.prototype.toObject=function(){return Ndc(void 0,this)};var Ndc=function(a,b){if(null!=b){var c={application:X(b,1,0),stateStatusList:Hb(xb(b,Ar,2),Odc,a)};a&&(c.$jspbMessageInstance=b);return c}};
Ar.prototype.toObject=function(){return Odc(void 0,this)};var Odc=function(a,b){if(null!=b){var c={contextType:n(p(b,1)),state:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var u1=function(a){Z.call(this,a,-1,Pdc)};V(u1,Z);u1.prototype.getValue=function(){return p(this,1)};u1.prototype.setValue=function(a){return l(this,1,a)};u1.prototype.hasValue=function(){return ej(this,1)};var v1=function(a){Z.call(this,a)};V(v1,Z);v1.prototype.getStatus=function(){return p(this,2)};v1.prototype.setStatus=function(a){return l(this,2,a)};v1.prototype.hasStatus=function(){return ej(this,2)};var Pdc=[2];u1.prototype.toObject=function(){return Qdc(void 0,this)};
var Qdc=function(a,b){if(null!=b){var c={value:n(p(b,1)),certificatesList:Hb(xb(b,v1,2),Rdc,a),securityInfo:Ldc(a,m(b,Kdc,3)),internalExternal:Ndc(a,m(b,t1,4))};a&&(c.$jspbMessageInstance=b);return c}};v1.prototype.toObject=function(){return Rdc(void 0,this)};var Rdc=function(a,b){if(null!=b){var c={expirationTimestampSeconds:n(p(b,1)),status:n(p(b,2)),configurationName:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var gr=function(a){Z.call(this,a)};V(gr,Z);g=gr.prototype;g.getProfileId=function(){return p(this,1)};g.setProfileId=function(a){return l(this,1,a)};g.hasProfileId=function(){return ej(this,1)};g.getEmail=function(){return Hr(this,2,ir)};g.setEmail=function(a){return Yn(this,2,ir,a)};g.hasEmail=function(){return 2===ub(this,ir)};g.getPhone=function(){return Hr(this,3,ir)};g.setPhone=function(a){return Yn(this,3,ir,a)};g.hasPhone=function(){return 3===ub(this,ir)};var ir=[2,3];
gr.prototype.toObject=function(){return Sdc(void 0,this)};var Sdc=function(a,b){if(null!=b){var c={profileId:n(p(b,1)),email:n(Hr(b,2,ir)),phone:n(Hr(b,3,ir))};a&&(c.$jspbMessageInstance=b);return c}};
var Tdc=function(a){Z.call(this,a)};V(Tdc,Z);Tdc.prototype.getDisplayValue=function(){return p(this,1)};Tdc.prototype.toObject=function(){return Udc(void 0,this)};var Udc=function(a,b){if(null!=b){var c={displayValue:n(p(b,1)),canonicalValue:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var kr=function(a){Z.call(this,a)};V(kr,Z);kr.prototype.getIdCase=function(){return ub(this,w1)};kr.prototype.getProfileId=function(){return Hr(this,1,w1)};kr.prototype.setProfileId=function(a){return Yn(this,1,w1,a)};kr.prototype.hasProfileId=function(){return 1===ub(this,w1)};var w1=[1];kr.prototype.toObject=function(){return Vdc(void 0,this)};var Vdc=function(a,b){if(null!=b){var c={profileId:n(Hr(b,1,w1))};a&&(c.$jspbMessageInstance=b);return c}};
var rr=function(a){Z.call(this,a,-1,Wdc)};V(rr,Z);g=rr.prototype;g.getValueCase=function(){return ub(this,hr)};g.getDisplayInfo=function(){return m(this,s1,1)};g.hasDisplayInfo=function(){return mj(this,1)};g.getEmail=function(){return Al(this,u1,2,hr)};g.setEmail=function(a){return qu(this,2,hr,a)};g.hasEmail=function(){return yl(this,2,hr)};g.getPhone=function(){return Al(this,Tdc,3,hr)};g.setPhone=function(a){return qu(this,3,hr,a)};g.hasPhone=function(){return yl(this,3,hr)};
g.getIsSelf=function(){return Mo(this,6)};g.getTypeLabel=function(){return p(this,10)};var Wdc=[5],hr=[2,3,4];rr.prototype.toObject=function(){return Xdc(void 0,this)};
var Xdc=function(a,b){if(null!=b){var c={displayInfo:Jdc(a,b.getDisplayInfo()),email:Qdc(a,b.getEmail()),phone:Udc(a,b.getPhone()),inAppTarget:Sdc(a,Al(b,gr,4,hr)),sourceIdsList:Hb(xb(b,kr,5),Vdc,a),isSelf:n(Mo(b,6)),isGoogleGroup:n(Mo(b,7)),isPersonal:n(Mo(b,8)),peopleStackFieldExtendedData:ydc(a,m(b,nr,9)),typeLabel:n(p(b,10))};a&&(c.$jspbMessageInstance=b);return c}};
var ur=function(a){Z.call(this,a,-1,Ydc)};V(ur,Z);ur.prototype.getDisplayInfo=function(){return m(this,s1,1)};ur.prototype.hasDisplayInfo=function(){return mj(this,1)};ur.prototype.getMembersList=function(){return xb(this,rr,2)};ur.prototype.getLabelId=function(){return p(this,3)};var Ydc=[2];ur.prototype.toObject=function(){return Zdc(void 0,this)};
var Zdc=function(a,b){if(null!=b){var c={displayInfo:Jdc(a,b.getDisplayInfo()),membersList:Hb(b.getMembersList(),Xdc,a),labelId:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Fr=function(a){Z.call(this,a)};V(Fr,Z);Fr.prototype.getIdCase=function(){return ub(this,Gr)};var Gr=[1];Fr.prototype.toObject=function(){return $dc(void 0,this)};var $dc=function(a,b){if(null!=b){var c={rosterEmail:n(Hr(b,1,Gr))};a&&(c.$jspbMessageInstance=b);return c}};
var bec=function(a){Z.call(this,a,-1,aec)};V(bec,Z);bec.prototype.getHiddenKeysList=function(){return xb(this,q1,3)};var aec=[3];bec.prototype.toObject=function(){return cec(void 0,this)};var cec=function(a,b){if(null!=b){var c={hideType:n(p(b,1)),hiddenKeysList:Hb(b.getHiddenKeysList(),zdc,a),familyStatus:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};
var tr=function(a){Z.call(this,a,-1,dec)};V(tr,Z);tr.prototype.getAffinity=function(){return m(this,Ddc,2)};tr.prototype.hasAffinity=function(){return mj(this,2)};var dec=[1];tr.prototype.toObject=function(){return eec(void 0,this)};
var eec=function(a,b){if(null!=b){var c={affinity:Edc(a,b.getAffinity()),contactMethodsList:Hb(xb(b,rr,1),Xdc,a),clientSpecificData:xdc(a,m(b,lr,3)),peopleStackExtendedData:cec(a,m(b,bec,4)),peopleStackPersonExtendedData:Bdc(a,m(b,qr,5))};a&&(c.$jspbMessageInstance=b);return c}};
var gec=function(a){Z.call(this,a,-1,fec)};V(gec,Z);g=gec.prototype;g.getDisplayInfo=function(){return m(this,s1,1)};g.hasDisplayInfo=function(){return mj(this,1)};g.getMembersList=function(){return xb(this,tr,2)};g.getGroupId=function(){return p(this,4)};g.setGroupId=function(a){l(this,4,a)};g.hasGroupId=function(){return ej(this,4)};var fec=[2,6];gec.prototype.toObject=function(){return hec(void 0,this)};
var hec=function(a,b){if(null!=b){var c={displayInfo:Jdc(a,b.getDisplayInfo()),membersList:Hb(b.getMembersList(),eec,a),fullGroupSize:n(p(b,3)),groupId:n(p(b,4)),groupType:n(p(b,5)),groupAlternateIdList:Hb(xb(b,Fr,6),$dc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var vr=function(a){Z.call(this,a)};V(vr,Z);vr.prototype.getGroup=function(){return Al(this,gec,2,sr)};vr.prototype.setGroup=function(a){qu(this,2,sr,a)};var sr=[1,2,3];vr.prototype.toObject=function(){return iec(void 0,this)};var iec=function(a,b){if(null!=b){var c={person:eec(a,Al(b,tr,1,sr)),group:hec(a,b.getGroup()),contactLabel:Zdc(a,Al(b,ur,3,sr))};a&&(c.$jspbMessageInstance=b);return c}};
var zr=function(a){Z.call(this,a)};V(zr,Z);g=zr.prototype;g.getIdCase=function(){return ub(this,x1)};g.getEmail=function(){return Hr(this,1,x1)};g.setEmail=function(a){return Yn(this,1,x1,a)};g.hasEmail=function(){return 1===ub(this,x1)};g.getPhone=function(){return Hr(this,2,x1)};g.setPhone=function(a){return Yn(this,2,x1,a)};g.hasPhone=function(){return 2===ub(this,x1)};g.getProfileId=function(){return Hr(this,3,x1)};g.setProfileId=function(a){return Yn(this,3,x1,a)};
g.hasProfileId=function(){return 3===ub(this,x1)};var x1=[1,2,3];zr.prototype.toObject=function(){return jec(void 0,this)};var jec=function(a,b){if(null!=b){var c={email:n(Hr(b,1,x1)),phone:n(Hr(b,2,x1)),profileId:n(Hr(b,3,x1))};a&&(c.$jspbMessageInstance=b);return c}};
var y1=function(a){Z.call(this,a,-1,kec)};V(y1,Z);y1.prototype.getAffinityVersion=function(){return p(this,1)};y1.prototype.setAffinityVersion=function(a){l(this,1,a)};y1.prototype.getAffinityType=function(){return p(this,4)};y1.prototype.setAffinityType=function(a){return l(this,4,a)};var lec=function(a){Z.call(this,a)};V(lec,Z);var kec=[3];y1.prototype.toObject=function(){return mec(void 0,this)};
var mec=function(a,b){if(null!=b){var c={affinityVersion:n(p(b,1)),affinityThreshold:n(mu(b,2)),featureList:Hb(xb(b,lec,3),nec,a),affinityType:n(p(b,4))};a&&(c.$jspbMessageInstance=b);return c}};lec.prototype.toObject=function(){return nec(void 0,this)};var nec=function(a,b){if(null!=b){var c={featureType:X(b,1,0),weight:Bl(b,2,0),exponent:Bl(b,3,1)};a&&(c.$jspbMessageInstance=b);return c}};
var z1=function(a){Z.call(this,a,-1,oec)};V(z1,Z);var oec=[1];z1.prototype.toObject=function(){return pec(void 0,this)};var pec=function(a,b){if(null!=b){var c={resultsList:Hb(xb(b,vr,1),iec,a),affinityResponseContext:mec(a,m(b,y1,2))};a&&(c.$jspbMessageInstance=b);return c}};
var rec=function(a){Z.call(this,a,-1,qec)};V(rec,Z);var A1=function(a){Z.call(this,a)};V(A1,Z);A1.prototype.getId=function(){return m(this,zr,1)};A1.prototype.setId=function(a){return Gb(this,1,a)};var qec=[1];rec.prototype.toObject=function(){var a=null!=this?{matchesList:Hb(xb(this,A1,1),sec)}:void 0;return a};var tec=[2,3];A1.prototype.toObject=function(){return sec(void 0,this)};
var sec=function(a,b){if(null!=b){var c={id:jec(a,b.getId()),autocompletion:iec(a,Al(b,vr,2,tec)),failureType:n(Hr(b,3,tec))};a&&(c.$jspbMessageInstance=b);return c}};
var BTa=new Map([[0,1],[1,2],[2,3]]);
var B1=function(a){Z.call(this,a)};V(B1,Z);B1.prototype.setDevice=function(a){return l(this,1,a)};B1.prototype.toObject=function(){return uec(this)};var uec=function(a){if(null!=a)return{device:n(p(a,1))}};
var vec=function(a){Z.call(this,a)};V(vec,Z);g=vec.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getQuery=function(){return p(this,2)};g.setQuery=function(a){return l(this,2,a)};g.clearQuery=function(){rb(this,2)};g.hasQuery=function(){return ej(this,2)};g.getClientInformation=function(){return m(this,B1,3)};g.setClientInformation=function(a){Gb(this,3,a)};
g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),query:n(p(this,2)),clientInformation:uec(this.getClientInformation())}:void 0;return a};
var C1=function(a){Z.call(this,a,-1,wec)};V(C1,Z);C1.prototype.getAffinityType=function(){return p(this,1)};C1.prototype.setAffinityType=function(a){return l(this,1,a)};C1.prototype.getClientInformation=function(){return m(this,B1,2)};C1.prototype.setClientInformation=function(a){Gb(this,2,a)};var xec=function(a,b){Fb(a,3,b)},wec=[3];
C1.prototype.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:uec(this.getClientInformation()),idsList:Hb(xb(this,zr,3),jec)}:void 0;return a};
var yec=function(a){Z.call(this,a)};V(yec,Z);g=yec.prototype;g.getAffinityType=function(){return p(this,1)};g.setAffinityType=function(a){return l(this,1,a)};g.getClientInformation=function(){return m(this,B1,2)};g.setClientInformation=function(a){Gb(this,2,a)};g.toObject=function(){var a=null!=this?{affinityType:n(p(this,1)),clientInformation:uec(this.getClientInformation())}:void 0;return a};
var zec=function(a){Z.call(this,a)};V(zec,Z);zec.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var Aec=new xG("/peoplestack.PeopleStackAutocompleteService/Autocomplete",vec,z1,function(a){return a.serialize()},function(a){return bo(z1,a)});
var Bec=new xG("/peoplestack.PeopleStackAutocompleteService/Lookup",C1,rec,function(a){return a.serialize()},function(a){return bo(rec,a)});
var Cec=new xG("/peoplestack.PeopleStackAutocompleteService/Warmup",yec,zec,function(a){return a.serialize()},function(a){return bo(zec,a)});
var Dec=function(a){var b={unaryInterceptors:[new A9b]};b=b||{};b.format="jspb";this.client_=new eH(b);this.hostname_=a};Dec.prototype.autocomplete=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},Aec)};Dec.prototype.lookup=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},Bec)};
var D1=function(a,b,c,d){this.grpcClient_=a;d?a=ATa(d):(a=new wr,zTa(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=d?2:1;this.trackers_=c;this.query_=d;this.affinity_=X(b.getPeopleApi(),5,0)};D1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};D1.prototype.send=function(a){var b=new vec;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new B1).setDevice(1));return this.grpcClient_.autocomplete(b,a)};
D1.prototype.processResponse=function(a){var b=yTa(a,this.provenance_),c=new Qr;mj(a,2)&&c.setAffinityVersion(m(a,y1,2).getAffinityVersion());return{data:b,metadata:c}};D1.prototype.close=function(){};
var E1=function(a,b,c,d,e){this.grpcClient_=a;a=new wr;zTa(a.setEventType(4),7).setIdType(d);this.sourceInfo_=a;this.provenance_=3;this.keys_=e;this.type_=d;this.trackers_=c;this.affinity_=X(b.getPeopleApi(),5,0)};E1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};
E1.prototype.send=function(a){var b=this,c=new C1;c.setAffinityType(this.affinity_).setClientInformation((new B1).setDevice(1));xec(c,this.keys_.map(function(d){return HTa(b.type_,d)}).filter(function(d){return!!d}));return this.grpcClient_.lookup(c,a)};
E1.prototype.processResponse=function(a){var b=this.provenance_,c=new Map;a=r(xb(a,A1,1));for(var d=a.next();!d.done;d=a.next())if(d=d.value,yl(d,2,tec)){var e=xTa(Al(d,vr,2,tec),b);switch(d.getId().getIdCase()){case 1:c.set(d.getId().getEmail(),e);break;case 2:c.set(d.getId().getPhone(),e);break;case 3:c.set(d.getId().getProfileId(),e)}}return{data:c,metadata:new Qr}};E1.prototype.close=function(){};
var Eec=function(a){Z.call(this,a)};V(Eec,Z);Eec.prototype.toObject=function(){return Fec(void 0,this)};var Fec=function(a,b){if(null!=b){var c={leanAutocomplete:pec(a,m(b,z1,1))};a&&(c.$jspbMessageInstance=b);return c}},Gec=Eb(342338249,{leanOfflineData:0},Eec,Fec);hdc[342338249]=Gec;
var Hec=function(){};Hec.prototype.write=function(a,b){var c=new Eec;b=Gb(c,1,b);Gec.setExtensionFn(a,b)};Hec.prototype.read=function(a){return(a=a.getExtension(Gec))?m(a,z1,1):null};
var F1=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=ATa("");this.trackers_=c;this.affinity_=X(b.getPeopleApi(),5,0)};F1.prototype.getMetric=function(){return this.trackers_.rpc(this.sourceInfo_)};F1.prototype.send=function(a){var b=new yec;b.setAffinityType(this.affinity_).setClientInformation((new B1).setDevice(1));var c=this.grpcClient_;return sG(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},Cec)};
F1.prototype.processResponse=function(){return{data:[],metadata:new Qr}};F1.prototype.close=function(){};
var Iec=new Rzb;
var G1=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};G1.prototype.send=function(a){var b=this;return hf(function(c){return b.runtimeConfig_.isOffline_()?c.return(Iec):c.return(b.delegate_.send(a))})};G1.prototype.getMetric=function(){return this.delegate_.getMetric()};G1.prototype.processResponse=function(a){return a===Iec?this.offlineResponse_:this.delegate_.processResponse(a)};G1.prototype.close=function(a){this.delegate_.close(a)};
var Jec={data:[],metadata:l(new Qr,5,!0)},Kec={data:new Map,metadata:l(new Qr,5,!0)};l(new Qr,5,!0);
var Lec=function(a){Z.call(this,a)};V(Lec,Z);g=Lec.prototype;g.getTimestamp=function(){return fj(this,1)};g.setTimestamp=function(a){return l(this,1,a)};g.hasTimestamp=function(){return ej(this,1)};g.getOwner=function(){return W(this,2)};g.setOwner=function(a){return l(this,2,a)};g.toObject=function(){return Mec(void 0,this)};var Mec=function(a,b){if(null!=b){var c={timestamp:n(p(b,1)),owner:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}},Nec=Eb(342656659,{metadata:0},Lec,Mec);
hdc[342656659]=Nec;
var H1=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null},Oec=function(a){var b,c;return hf(function(d){if(1==d.nextAddress)return It(d,2),jf(d,a.offlineStorage_.fetch(),4);if(2!=d.nextAddress){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Nec);c=a.offlineMetadata_?p8b(a.offlineMetadata_.getOwner()):jr;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):
d.return(null)}Kt(d);return d.return(null)})};
H1.prototype.send=function(a){var b=this,c,d,e,f,h;return hf(function(k){switch(k.nextAddress){case 1:return It(k,2),jf(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Iec){k.jumpTo(5);break}return jf(k,Oec(b),6);case 6:return e=k.yieldResult,k.return(e||Iec);case 5:return setTimeout(function(){var q=new gdc;or(q,Nec,(new Lec).setTimestamp(d).setOwner(String(b.owner_)));b.offlineDataTransformer_.write(q,c);b.offlineStorage_.store(q)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=
Kt(k),jf(k,Oec(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};H1.prototype.getMetric=function(){return this.delegate_.getMetric()};H1.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};H1.prototype.close=function(a){this.delegate_.close(a)};
var I1=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;b={apiKey:b.runtimeConfig_.getApiKey()||(7===b.runtimeConfig_.getPeopleApiEnv()?W(b.getGapi(),2,""):b.getGapi().getApiKey()),timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new B9b(b);a=dCa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new Dec(a);this.offlineDataTransformer_=
new Hec};I1.prototype.loadRankedItems=function(){var a=new D1(this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new G1(a,this.config_.runtimeConfig_,Jec);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=new fr(1,e),b=fj(b.getPeopleApi(),14,5E3),a=new H1(a,d,c,e,b))}return D9b(this.dispatcher_,a)};
I1.prototype.loadAutocompleteItems=function(a){a=a?new D1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a):new F1(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new G1(a,this.config_.runtimeConfig_,Jec);return D9b(this.dispatcher_,a)};I1.prototype.loadLookupItems=function(a,b){a=new E1(this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new G1(a,this.config_.runtimeConfig_,Kec);return D9b(this.dispatcher_,a)};I1.prototype.loadContactItems=function(){};
var ITa=new Map([[1,1],[2,2]]);
var MTa=new Map([[3,3],[1,2],[2,1]]),Pec=new Map([[2,1],[4,2],[3,3],[1,4]]),Qec=function(a){this.delegate_=a};
Qec.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=Dr(a.id).setValue(c);if(xb(b,v1,2).length||mj(b,3)){var d=1;if(xb(b,v1,2).length){var e=xb(b,v1,2)[0];p(e,1);d=Pec.get(e.getStatus())||d}mj(b,3)&&(e=m(b,Kdc,3),Mo(e,1));4===(void 0===d?1:d)&&Date.now()}mj(b,4)&&(b=JTa(m(b,t1,4)),c.orgState_=b);Mo(a.contactMethod,7)&&(c.resultType_=2);b=c;break;case 3:b=a.contactMethod.getPhone();
b=b.getDisplayValue()||p(b,2)||"";b=Dr(a.id).setValue(b);break;case 4:b=Al(a.contactMethod,gr,4,hr);b=OTa(a,b);break;default:b=Dr(a.id||jr)}a.containerIds&&(b.sourceIds_=a.containerIds||[]);PTa(b,!!a.isMe);a.person&&a.person.hasAffinity()&&b.setPersonLoggingId(KTa(kba(p(a.person.getAffinity(),1))||""));a.contactMethod.hasDisplayInfo()&&NTa(b,a.contactMethod.getDisplayInfo());ej(a.contactMethod,10)&&(c=b,d=a.contactMethod.getTypeLabel(),e=new Xcc,e.altText_=d||"",c.tags_=[e]);a.target=b}else a.group?
QTa(a,a.group.getDisplayInfo()):a.contactLabel&&QTa(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 Rec=function(a,b){this.metrics_=a;this.state_=new VT(b)};g=Rec.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();l(d,13,b)}c&&(b=this.state_.source(),l(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};
var J1=function(a){this.metrics_=a};J1.prototype.error=function(a,b){var c=this.metrics_,d=new wr;a=d.setEventType(3).setErrorType(a);l(a,7,b);return new scc(c,d)};J1.prototype.latency=function(a){var b=this.metrics_,c=new wr,d=c.setEventType(2);l(d,5,a);return new X_(b,c)};J1.prototype.count=function(a){var b=this.metrics_,c=new wr,d=c.setEventType(1);l(d,4,a);return new rcc(b,c)};var K1=function(a,b){return new qcc(a.metrics_,b)};J1.prototype.rpc=function(a){return new Rec(this.metrics_,a)};
var Sec=function(a,b){this.ranker_=new occ(a.getClient());this.loader_=new I1(a,b);b=Wcc;b=void 0===b?Wcc:b;this.targetFactory_=new sdc(a,new Qec(b))};
var Tec=function(){};Tec.prototype.suggest=function(){};var Uec=new Tec;
var Vec=function(){};Vec.prototype.create=function(){return Uec};var RTa=new Vec;
var Wec=function(){this.createSmartAddressFactory_=STa;this.cacheConfigurators_=[];this.grpcClient_=null};
var TTa=function(a){this.delegate_=a};V(TTa,Z_);
var Xec=function(a){this.keys_=new Set(a)};Xec.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};Xec.prototype.isDone=function(){return!this.keys_.size};
var Yec=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new Xec(a)};Yec.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};Yec.prototype.isDone=function(){return this.delegate_.isDone()};var Zec=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};
var $ec=new Qr,afc=Promise.resolve(new as),bfc=function(a,b){this.trieFactory_=a;this.indexes_=X0(fj(b,31,5),1E3*Bl(b,32,3600))};g=bfc.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};g.fetch=function(a){this.index(a,[],$ec);return afc};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)||V0).search(a.getTerms()).getMatches(a.getCollector()).map(UTa)};
g.index=function(a){var b=a.getBoostKey();b.cacheKey&&(a=cfc(this.trieFactory_,new Yec(b.ids),a.getFormat()),this.indexes_.set(b.cacheKey,a))};
var dfc=new Tcc(60,61,34);
var efc=function(){};efc.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;a=a.clientConfig.getClient();bj(a,30,!1)&&(c=new bfc(c,a),b=new Ucc(c,b,dfc),d.unshift(b))};
var ffc=function(){return Date.now()},gfc=function(a,b,c){this.staleMillis_=1E3*a;this.expiredMillis_=1E3*b;this.nowFn_=c;this.timestamp_=0};g=gfc.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 WTa=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),VTa=new Map([[1,7],[2,5]]);
var hfc=function(a,b){this.delegate_=a;this.extendedData_=b};V(hfc,Z_);
var ifc=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=yq(this.group_.getId())?this.members_.length:c;this.resultType_=Y9b.get(this.group_.getTargetType())||0};g=ifc.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("Ge");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getMatchInfo=function(){return X9b};
var jfc=function(a){this.delegate_=a};g=jfc.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.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.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()};
var YTa=function(a,b){this.delegate_=a;this.loggingToken_=b};V(YTa,jfc);YTa.prototype.getLoggingToken=function(){return this.loggingToken_};
var kfc=function(a){this.itemResolver_=a};kfc.prototype.create=function(a,b){var c=this,d=p8b(a);a=L1(this.itemResolver_,a);if(!a)return null;if(xq(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 L1(c.itemResolver_,h)}).filter(Boolean):[a];return lfc(f,d,b)};
var lfc=function(a,b,c){var d=[],e=0,f=null,h=null;a=r(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,u=q.getId().equals(b);if(!e||u)e=q.getResultType();q=ZTa(q,k.provenance,c);u?(h=void 0,f=null!=(h=k.totalMemberCount)?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=wq(e,d,f);return h?new hfc(b,h):b};
kfc.prototype.createGroup=function(a,b,c){c=ZTa(a.target,a.provenance,c);var d,e=null!=(d=a.totalMemberCount)?d:null;b=new vq(new ifc(c,null!=b?b:[],null!=e?e:null));return(a=a.resultExtendedData)?new hfc(b,a):b};
var $Ta=[3,1,2,4,5,6,9,7,8],mfc=function(a,b){this.targetFactory_=a;this.resultFactory_=new kfc(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=void 0===d?ffc:d;this.expiry_=new gfc(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=X0(fj(b,6,500),1E3*fj(b,7,43200));this.idTypes_=new Set(ob(b,25))};mfc.prototype.load=function(a,b){return this.resultFactory_.create(a,b)};var L1=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)};g=mfc.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){c=void 0===c?"":c;if(!this.idTypes_.size||!n8b.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var d=!1,e=String(b.id),f=(b.containerIds||[]).map(String),h=nfc(this,a,e);ofc(this,a,e,b)&&(h(e,b),d=!0);f=r(f);for(var k=f.next();!k.done;k=f.next())k=k.value,ofc(this,a,k,b)&&(h(k,b),d=!0);c&&e!==c&&ofc(this,a,c,b)&&(h(c,b),d=!0);d&&!b.target&&this.targetFactory_.processItem(b)}};
var ofc=function(a,b,c,d){var e=L1(a,c);if(!e)return!0;1===b&&a.lruStorage_.has(c)&&(b=a.lruStorage_.get(c),a.ttlStorage_.set(c,b),a.lruStorage_.delete(c));return e.id.equals(d.id)?bUa(d)&&!bUa(e)||pfc(a,e)<pfc(a,d)||aUa(d)<aUa(e)||18===d.id.getType()&&18===e.id.getType()?!0:!1:String(d.id)===c},pfc=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},
nfc=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 qfc=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},sfc=function(a){if(a.isCompleted_)return Promise.resolve(N0(new as,!1).setProvenance(5).setCode(0));a.pendingRequest_||(a.pendingRequest_=(new Promise(function(b,c){rfc(a,a.requestId_,function(d){a.isCompleted_=!0;b(d)},function(d){c(d)})})).finally(function(){a.pendingRequest_=null}));return a.pendingRequest_};
qfc.prototype.flush=function(){this.requestId_++;this.contacts_=[];this.totalItems_=0;this.nextPageToken_="";this.pendingRequest_=null;this.isCompleted_=!1};
var rfc=function(a,b,c,d){a.loader_.loadContactItems(a.nextPageToken_,rdc).then(function(e){if(b!==a.requestId_)d(N0(new as,!0).setProvenance(5).setCode(1));else{var f=e.metadata;a.totalItems_=f.getTotalItems();a.nextPageToken_=f.getNextPageToken();Array.prototype.push.apply(a.contacts_,e.ids);e=r(e.data);for(f=e.next();!f.done;f=e.next())a.storage_.store(1,f.value);a.nextPageToken_?rfc(a,b,c,d):(a.totalItems_=a.contacts_.length,c(N0(new as,!0).setProvenance(5).setCode(0)))}},function(e){e=isFinite(e)?
e:13;d(N0(new as,!0).setProvenance(5).setCode(e))})};
qfc.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(),N0(new as,!1).setProvenance(5).setCode(0)):sfc(this).then(function(q){d(k(),q)},function(q){q instanceof as||(q=(new as).setCode(13));d({results:[],begin:a,end:b,totalItems:0},q)})};
var dUa=function(a,b){this.delegate_=a;this.displayValue_=b};V(dUa,jfc);dUa.prototype.getDisplayValue=function(){return this.displayValue_};
var Lr=function(a,b){this.delegate_=a;this.targets_=b};V(Lr,Z_);Lr.prototype.getTargetList=function(){return this.targets_};
var tfc=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=tfc.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};
g.notify=function(a,b,c){if(a.size||b.length||this.isDone()||0!==c.getCode()){a=eUa(a,this.options);for(var d=r(a.keys()),e=d.next();!e.done;e=d.next())this.remainingIds.delete(String(e.value));d=r(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 dcc).setCallbackNumber(this.callbackNumber).setIsFirstCallback(0===this.callbackNumber).setIsLastCallback(this.isDone()).setCode(c.getCode());d.notFoundIdList_=b;b=new ecc(a,d);this.callbackNumber++;
this.listener(b,c)}};
var ufc=function(a,b){this.stages=a;this.indexer=b};ufc.prototype.flush=function(){this.indexer.flush()};
ufc.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,u,x;return hf(function(E){switch(E.nextAddress){case 1:null==(f=d.getFilter())||f.reset(""),h=new tfc(a,b,c,d),k=1===h.queryScope()||2===h.queryScope(),q=r(e.stages),u=q.next();case 2:if(u.done){E.jumpTo(4);break}x=u.value;if(k&&1!==x.getStageType()){E.jumpTo(3);break}if(h.isDone()){E.jumpTo(4);break}return jf(E,x.lookup(h),3);case 3:u=q.next();E.jumpTo(2);break;case 4:return h.isDone()||h.notify(new Map,Array.from(h.remainingIds.values()),
N0((new as).setProvenance(10),!1).setCode(0)),e.indexer.compact(),E.return()}})};
var vfc=function(){};vfc.prototype.createFromQuery=function(a){var b=a.getPrefix();if(0!==a.getCollector().resultCount()||!K_(b))return null;b=Dr(new fr(1,b)).setValue(b).setDataSource(3);b=wq(b.getResultType(),[b],null);return(a=a.getResultFilter())?a.filterResult(b):b};vfc.prototype.createFromLookupId=function(a){if(1!==a.getType()||!K_(a.getValue()))return null;a=Dr(a).setValue(a.originalValue_).setDataSource(3);return wq(a.getResultType(),[a],null)};
var wfc=function(){};wfc.prototype.createFromQuery=function(){return null};wfc.prototype.createFromLookupId=function(){return null};var xfc=new wfc;
var M1=function(a,b){this.storage=a;a=b.getClient();this.placeholderFactory=bj(a,21,!1)?new vfc:xfc;this.notFoundIds=X0(fj(a,10,500),1E3*Bl(a,11,600))};M1.prototype.compact=function(){this.notFoundIds.compact()};M1.prototype.flush=function(){this.notFoundIds.clear()};
M1.prototype.store=function(a,b,c){if(!bj(c,5))for(l(c,5,!0),b=r(b),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;c=String(uTa(a,String(c)));d=r(d);for(var e=d.next();!e.done;e=d.next())this.storage.store(2,e.value,c)}};M1.prototype.load=function(a,b,c,d,e){var f=String(a);if((b=this.storage.load(f,b))&&(!c||c.filterResult(b)))return b;if(e&&(a=this.placeholderFactory.createFromLookupId(a))&&(!c||c.filterResult(a)))return a;d||this.notFoundIds.set(f,f);return null};
var yfc=new function(){this.ids=[];this.cacheKey=""};
var zfc=function(){};zfc.prototype.loadOrSkip=function(){return null};zfc.prototype.resultCount=function(){return 0};zfc.prototype.isDone=function(){return!0};var Afc=new zfc;
var Bfc=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Afc;this.boostKey_=yfc;this.listener_=function(){}};g=Bfc.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.queryScope=function(){return 0};g.getResultFilter=function(){return null};var Cfc=new Bfc;
var Dfc=function(){this.fetchDone_=Promise.resolve((new as).setCode(0))};g=Dfc.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};var Efc=new Dfc;
var Ffc=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return 1===b.getCacheType()})||Efc;this.prefetched_=a.filter(function(b){return 2===b.getCacheType()||1===b.getCacheType()});this.lazyLoaded_=a.filter(function(b){return 3===b.getCacheType()})};
Ffc.prototype.prefetch=function(a){var b=this,c,d,e,f,h,k;return hf(function(q){if(1==q.nextAddress)return jf(q,b.primary_.fetch(a),2);c=q.yieldResult;if(0!==c.getCode())return q.return(c);d=r(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=r(b.prefetched_.filter(function(u){return u!==b.primary_}));for(e=h.next();!e.done;e=h.next())k=e.value,k.fetch(a);return q.return(c)})};
Ffc.prototype.warmUpSession=function(a){var b=this;if(1===a.queryScope())return Promise.resolve([(new as).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});2!==a.queryScope()&&c.push.apply(c,v(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Gfc=function(a){var b=[a.primary_].concat(v(a.prefetched_.filter(function(d){return d!==a.primary_})),v(a.lazyLoaded_)).reverse();b=r(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Hfc=function(a,b){var c=[];a=r(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,v(d.search(b)))}return c},Jfc=function(a,b,c){var d,e,f,h;return hf(function(k){if(1==k.nextAddress){if(2===b.queryScope())return k.return();d=a.lazyLoaded_[a.lazyLoaded_.length-
1];e=r(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():jf(k,Ifc(h,b,c,d===h),3)}f=e.next();return k.jumpTo(2)})},Ifc=function(a,b,c,d){var e,f;return hf(function(h){if(1==h.nextAddress)return 1===b.queryScope()?(e=N0((new as).setProvenance(6).setCode(0),!1),h.jumpTo(2)):jf(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);kf(h)})};
var Kfc=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.serverWarming_=this.cacheWarming_=null};g=Kfc.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};g.warmUpCache=function(){return N1(this,Cfc)};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return hf(function(k){switch(k.nextAddress){case 1:return jf(k,N1(b,a),2);case 2:return c=P0(new O0,O1(b)),It(k,3,4),b.serverWarming_||(b.serverWarming_=b.prefixSearch_.warmUpSession(a)),jf(k,b.serverWarming_,6);case 6:return d=k.yieldResult,e=d.find(function(q){return 2===q.getProvenance()})||(new as).setProvenance(2).setCode(0),k.return(Q0(c.setSource(e),O1(b)));case 4:Lt(k);b.serverWarming_=null;Mt(k,0);break;case 3:return f=Kt(k),h=f instanceof
as?f:(new as).setProvenance(2).setCode(13),k.return(Promise.reject(Q0(c.setSource(h),O1(b))))}})};
g.search=function(a){var b=this,c,d,e;return hf(function(f){switch(f.nextAddress){case 1:Lfc(b);It(f,2);if(!a.isSuggestQuery()){c=Q0(P0((new O0).setSource(N0(new as,!1).setProvenance(1).setCode(0)),O1(b)),O1(b));N1(b,a);f.jumpTo(4);break}return jf(f,N1(b,a),5);case 5:c=f.yieldResult;case 4:return jf(f,Mfc(b,a,c),6);case 6:Jt(f,0);break;case 2:d=Kt(f);if(a.isCancelled())return f.return();d instanceof O0?c=d:(e=d instanceof as?d:(new as).setCode(13),c=Q0((new O0).setSource(e),O1(b)));a.getListener()(new S0([],
(new R0).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));kf(f)}})};
var Mfc=function(a,b,c){var d,e,f,h;return hf(function(k){if(1==k.nextAddress){if(b.isCancelled())return k.return();d=Hfc(a.prefixSearch_,b);e=(new R0).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new S0(d,e));if(e.getIsLastCallback())return k.return();f=!1;return jf(k,Jfc(a.prefixSearch_,b,function(q,u,x){u=(new R0).setIsLastCallback(x).setQuery(b.getPrefix()).setCode(u.getCode()).setCacheState(Q0(P0((new O0).setSource(u),
p(c,2)),O1(a)));b.getListener()(new S0(q,u));u.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(h=(new R0).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(Q0(P0((new O0).setSource((new as).setProvenance(10).setCode(0)),p(c,2)),O1(a))),b.getListener()(new S0([],h)));kf(k)})};
Kfc.prototype.lookup=function(a,b,c){var d=this;Lfc(this);N1(this,Cfc);var e=P0(new O0,O1(this));this.lookupCache_.lookup(a,X(this.clientInfo_,17,1),function(f,h){e.setSource(h);Q0(e,O1(d));f.getMetadata().setCacheState(e);b(f)},c)};
Kfc.prototype.list=function(a,b,c,d){var e=this;N1(this,Cfc);var f=P0(new O0,O1(this));this.listCache_.list(a,b,X(this.clientInfo_,18,1),function(h,k){var q=h.results;var u=new acc;u=l(u,1,h.begin);c(new bcc(q,u.setEnd(h.end).setTotalItems(h.totalItems).setCode(k.getCode()).setCacheState(Q0(f.setSource(k),O1(e)))))},d)};
var N1=function(a,b){var c=O1(a),d=P0(new O0,c);if(a.storage_.getExpiry().isStale()){var e=a.storage_.getExpiry().isExpired();e&&a.storage_.getExpiry().getTimestamp()&&Nfc(a);a.cacheWarming_||(a.cacheWarming_=new Promise(function(f,h){var k,q,u;return hf(function(x){switch(x.nextAddress){case 1:return It(x,2,3),jf(x,a.prefixSearch_.prefetch(b),5);case 5:k=x.yieldResult,Q0(d,O1(a)).setSource(k),f(d);case 3:Lt(x);a.cacheWarming_=null;Mt(x,0);break;case 2:q=Kt(x),u=q instanceof as?q:(new as).setCode(13),
Q0(d,O1(a)).setSource(u),h(d),x.jumpTo(3)}})}));if(e)return a.cacheWarming_}return Promise.resolve(Q0(d,c).setSource(N0((new as).setProvenance(1),!1).setCode(0)))},O1=function(a){return a.storage_.getExpiry().getStatus()},Nfc=function(a){Gfc(a.prefixSearch_);a.lookupCache_.flush();a.listCache_.flush();a.storage_.flush()},Lfc=function(a){var b=1===O1(a)?1:2;a.trackers_.count(b).increment()};
var Ofc=function(a){this.itemResolver_=a},Pfc=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(gcc).filter(Boolean),q=k.length-1;if(0<q){var u=k.join(".");k.push(k.join("-"));for(k.push(u);0<q;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(XSa,""));"+"===e[0]&&k.push("+"+k[0]);h.call(f,c,v(k));break;default:c.push(e)}if(!c.length&&
b.memberKeys&&b.memberKeys.length&&10!==d.getTargetType())for(b=r(b.memberKeys),d=b.next();!d.done;d=b.next())(d=L1(a.itemResolver_,d.value))&&Pfc(a,d,c);return c};
var Qfc=new ccc,Rfc=function(a,b){this.itemResolver_=a;this.lookupCache_=b;this.indexer_=new Ofc(a);this.trieRoots_=new Map},cfc=function(a,b,c){var d=(a.trieRoots_.get(c)||V0).cloneNode(b);b.isDone()||(b=Zec(b).map(p8b),a.lookupCache_.lookup(b,c,function(e){e=Array.from(e.getResults().keys(),String);e=Sfc(a,e);Array.prototype.push.apply(d.items_,e);icc(d)},Qfc));return d},Tfc=function(a,b){a=Sfc(a,b);return new U0(a)},Sfc=function(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;
var e=L1(a.itemResolver_,d);e&&(e=Pfc(a.indexer_,e),c.push(new hcc(d,e)))}return c};
var Ufc=function(){this.queryId_=0};Ufc.prototype.getQueryId=function(){return this.queryId_};
var Vfc=function(a){this.delegate=a};g=Vfc.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 hf(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return hf(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 Wfc=function(a,b){this.delegate_=a;this.name_=b};V(Wfc,jfc);Wfc.prototype.getName=function(){return this.name_};
var Xfc=function(){};Xfc.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 vq(new Lr(a,c))};Xfc.prototype.reset=function(){};
var Mr=function(a){this.types_=a};V(Mr,Xfc);Mr.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};Mr.prototype.reset=function(){};var gUa=function(a){this.filters_=a};gUa.prototype.filterResult=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())if(a=c.value.filterResult(a),!a)return null;return a};gUa.prototype.reset=function(a){for(var b=r(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var Yfc=Nr();
var Zfc=function(){this.delegate=Yfc};Zfc.prototype.filterResult=function(a){return this.delegate.filterResult(a)};Zfc.prototype.reset=function(a){this.delegate.reset(a)};var $fc=function(a,b){a.delegate=null!=b?b:Yfc};
var agc=function(a){this.delegate=a};g=agc.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.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};
var P1=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};P1.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};P1.prototype.resultCount=function(){return this.count_};P1.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};
var bgc=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();0<c.limit&&(d=new P1(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?Nr.apply(null,v(d)):null;var f;this.scope=null!=(f=c.scope)?f:a.queryScope()};V(bgc,agc);g=bgc.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 cgc=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};V(cgc,Vfc);
cgc.prototype.search=function(a){var b=this,c,d,e,f,h;return hf(function(k){switch(k.nextAddress){case 1:c=b.slots,c=a.isSuggestQuery()?c.filter(function(q){return 2!==q.visibility}):c.filter(function(q){return 1!==q.visibility}),d=c.map(function(q,u){return new bgc(a,b.originalFilter,q,u===c.length-1)}),e=r(d),f=e.next();case 2:if(f.done){k.jumpTo(4);break}h=f.value;if(a.isCancelled()||a.isDone()){k.jumpTo(4);break}$fc(b.filterInterceptor,h.getResultFilter());return jf(k,b.delegate.search(h),3);
case 3:f=e.next();k.jumpTo(2);break;case 4:return k.return()}})};
var Q1=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=$Sa([b]);this.id_=new fr(1,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 LTa).setDisplayName(c),q=h.getPrimaryTarget();h=cUa(h,new Wfc(q,k))}return h});e=new S0(f,e.getMetadata());a.getListener()(e)}};V(Q1,agc);Q1.prototype.getPrefix=function(){return this.query_};Q1.prototype.getTerms=function(){return this.terms_};
Q1.prototype.getListener=function(){return this.listener_};
var dgc=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new Ufc;this.clientInfo_=c};g=dgc.prototype;g.warmUpSession=function(a){a=egc(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=egc(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=egc(this.queryFactory_,a,this.querySession_,c,b);bj(this.clientInfo_,28,!1)&&(b=a.getPrefix(),b.includes("<")&&(c=f8b(b),c.isValid()||(c=f8b(b+">")),a=c.isValid()&&c.getName()?new Q1(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()};
var R1=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=bj(c,34,!1)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new Zfc;e.setFilter(q);e=new cgc(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};R1.prototype.warmUpCache=function(){return this.cache_.warmUpCache()};R1.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};R1.prototype.list=function(a,b,c,d){this.cache_.list(a,b,c,d)};
R1.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new dgc(a,this.queryFactory_,this.clientInfo_)};
var fgc=function(a){this.ids=a.map(String);this.cacheKey=pTa(this.ids)+":"+this.ids.length};
var ggc=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_=hUa(this,f)};g=ggc.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.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};
var hgc=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};hgc.prototype.getFormat=function(){return this.format_};hgc.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};hgc.prototype.queryScope=function(){return this.queryScope_};
var S1=function(){this.foundKeys_=new Set};V(S1,Xfc);S1.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};S1.prototype.has=function(a){return this.foundKeys_.has(a)};S1.prototype.add=function(a){this.foundKeys_.add(a)};S1.prototype.reset=function(){this.foundKeys_.clear()};
var igc=function(a){this.delegate_=a;this.filter_=new S1};igc.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=r(a.getTargetList()),c=b.next();!c.done;c=b.next())this.filter_.add(String(c.value.getId()));return a};igc.prototype.resultCount=function(){return this.delegate_.resultCount()};igc.prototype.isDone=function(){return this.delegate_.isDone()};
var jgc=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};jgc.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};jgc.prototype.resultCount=function(){return this.delegate_.resultCount()};jgc.prototype.isDone=function(){return this.delegate_.isDone()};
var kgc=function(a,b){this.storage_=a;this.format_=b};kgc.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};kgc.prototype.resultCount=function(){return 0};kgc.prototype.isDone=function(){return!1};
var lgc=[198,230,306,307,338,339],mgc=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)"+Jn(b),"g")})},iUa=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=er(YSa(b)).replace(ZSa,"").toUpperCase().toLowerCase(),e=d.indexOf("@");a=r(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++):lgc.includes(f)&&e.push(a);b=r(c);for(a=b.next();!a.done;a=b.next()){a=a.value;f=r(d);for(h=f.next();!h.done;h=f.next())h=h.value,h<a[0]&&a[0]++,h<a[1]&&a[1]++;f=r(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 Or=function(a,b){this.start_=a;this.end_=b};Or.prototype.getStart=function(){return this.start_};Or.prototype.getEnd=function(){return this.end_};
var Pr=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Pr.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Pr.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Pr.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};
var T1=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new T1(c,b)});this.matchInfo_=null};V(T1,Z_);T1.prototype.getMemberList=function(){return this.memberList_};T1.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=(null==(a=this.getDelegate().getPrimaryTarget().getName())?void 0:a.getGivenName())||"";this.matchInfo_=jUa(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};
var ngc=function(a,b){this.delegate_=a;this.matcher_=new mgc(b)};ngc.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new T1(a,this.matcher_):null};ngc.prototype.resultCount=function(){return this.delegate_.resultCount()};ngc.prototype.isDone=function(){return this.delegate_.isDone()};
var ogc=/\s+/g,pgc=function(a,b){this.clientInfo_=a;this.storage_=b},egc=function(a,b,c,d,e){var f=$Sa([b]);b=(b||"").replace(ogc," ").trim();var h=!f.length,k=h?X(a.clientInfo_,15,1):X(a.clientInfo_,16,1),q=h?fj(a.clientInfo_,1,5):fj(a.clientInfo_,2,5);h=d.boostIds_;h=h.length?new fgc(h):yfc;var u=d.getFilter();a=new kgc(a.storage_,k);u&&(a=new jgc(a,u,b));a=new igc(a);a=new P1(a,q);a=f.length?new ngc(a,f):a;d=d.getQueryScope();c=new hgc(k,c,d);return new ggc(c,b,f,a,h,e,u)};
var qgc=function(a){this.fetcher=a};qgc.prototype.getStageType=function(){return 2};
qgc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,u,x;return hf(function(E){switch(E.nextAddress){case 1:c=lUa(Array.from(a.remainingIds.values())),d=r(c),e=d.next();case 2:if(e.done){E.jumpTo(4);break}f=e.value;h=r(f);k=h.next().value;q=h.next().value;u=k;x=q;if(!u){E.jumpTo(3);break}return jf(E,b.fetcher.fetch(x,u,a.getFormat(),function(I,N,L){a.notify(I,N,L)},a.getOptions()),3);case 3:e=d.next();E.jumpTo(2);break;case 4:return E.return()}})};
var rgc=function(a,b){this.delegate=a;this.maxLookupChunkSize=odc(b)};rgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return hf(function(u){switch(u.nextAddress){case 1:var x=f.maxLookupChunkSize;if(a.length)if(a.length<=x)x=[a];else{for(var E=[],I=0;I<a.length;I+=x){var N=a.slice(I,I+x);N.length&&E.push(N)}x=E}else x=[];h=r(x);k=h.next();case 2:if(k.done){u.jumpTo(4);break}q=k.value;return jf(u,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();u.jumpTo(2);break;case 4:return u.return()}})};
var sgc=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
sgc.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,u,x,E,I,N,L,T,Y,ja,ha;return hf(function(ra){switch(ra.nextAddress){case 1:return h=3===b?4:3,k=N0((new as).setProvenance(h),!0).setCode(0),q=!0,It(ra,2),jf(ra,f.loader.loadLookupItems(b,a.map(function(Fa){return Fa.originalValue_}),rdc),4);case 4:u=ra.yieldResult;q=bj(u.metadata,5);try{f.indexer.store(b,u.data,u.metadata)}catch(Fa){f.trackers.error(21,10).report(),k.setCode(13),q=!0}Jt(ra,3);break;case 2:x=Kt(ra),E=Number(x),k.setCode(isFinite(E)&&
E?E:13),q=!0;case 3:I=e.getFilter();N=[];L=new Map;T=r(a);for(Y=T.next();!Y.done;Y=T.next())ja=Y.value,(ha=f.indexer.load(ja,c,I,q,!0))?L.set(ja,ha):N.push(ja);d(L,N,k);return ra.return()}})};
var tgc=function(a){this.indexer=a};tgc.prototype.getStageType=function(){return 1};
tgc.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return hf(function(q){c=new Map;d=[];e=r(Array.from(a.remainingIds.values()));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getResultFilter(),!0,!1))c.set(h,k);else{var u=b.indexer;a:switch(h.getType()){case 1:case 6:var x=K_(h.getValue().trim());break a;case 2:case 7:x=h.getValue().replace(h8b,"");x=3<=x.length&&"0"<=x[0]&&"9">=x[0];break a;default:x=!0}(x?u.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,
d,N0((new as).setProvenance(6),!1).setCode(0));return q.return()})};
var ugc=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.placeholderFactory_=bj(e,21,!1)?new vfc:xfc;this.indexes_=X0(fj(e,8,250),1E3*Bl(e,9,3600));this.notFound_=X0(fj(e,10,500),1E3*Bl(e,11,600))};g=ugc.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,f,h;return hf(function(k){switch(k.nextAddress){case 1:c=N0(new as,!0).setProvenance(2).setCode(0);if(b.indexes_.has(a.getPrefix())||b.notFound_.has(a.getPrefix()))return k.return(N0(c,!1));if(!K_(a.getPrefix()))for(d=a.getPrefix().length;0<d;d--)if(b.notFound_.has(a.getPrefix().substr(0,d)))return k.return(N0(c,!1));e=a.getPrefix()?rdc:qdc;It(k,2);return jf(k,b.loader_.loadAutocompleteItems(a.getPrefix(),e),4);case 4:f=k.yieldResult;Jt(k,3);break;case 2:return h=
Kt(k),k.return(c.setCode(isFinite(h)?h:13));case 3:try{b.index(a,f.data,f.metadata)}catch(q){return k.return(c.setCode(13))}return k.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(!bj(c,5)&&(l(c,5,!0),!a.isSuggestQuery()))if(b.length){c=pcc(this.ranker_,b,1);b=r(b);for(var d=b.next();!d.done;d=b.next())this.storage_.store(1,d.value);c=Tfc(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),c)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};
var vgc=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=vgc.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return hf(function(h){switch(h.nextAddress){case 1:return c=N0(new as,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?rdc:qdc,It(h,2),jf(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;Jt(h,3);break;case 2:return f=Kt(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())||V0).search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!bj(c,5)){l(c,5,!0);a=1!==this.coalescedSortOrder_?pcc(this.ranker_,b,this.coalescedSortOrder_):null;var d=pcc(this.ranker_,b,1);this.storage_.flush();b=r(b);for(var e=b.next();!e.done;e=b.next())this.storage_.store(1,e.value);this.storage_.markAsFresh(c);c=Tfc(this.trieFactory_,d);a=a?Tfc(this.trieFactory_,a):c;this.indexes_.set(1,c);this.indexes_.set(2,a)}};
var wgc=new Tcc(27,32,33),xgc=new Tcc(24,23,20);
var ygc=function(){};ygc.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,u=a.clientConfig.getClient();if(0<u.getCacheSize()){var x=X(u,19,1);x=new vgc(e,q,f,c,x);x=new Ucc(x,b,xgc);h.push(x);k.push(new tgc(d))}0<fj(u,2,5)&&(c=new ugc(e,q,f,c,u),b=new Ucc(c,b,wgc),h.push(b));h=new sgc(a.trackers,a.loader,a.indexer);h=new rgc(h,a.clientConfig);k.push(new qgc(h))};
var zgc=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};zgc.prototype.getId=function(){return this.id_};zgc.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var U1=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};U1.prototype.getIdType=function(){return this.idType_};U1.prototype.getOptions=function(){return this.options_};
U1.prototype.getKeys=function(){var a=this;return this.ids_.map(function(b){return new zgc(a.getIdType(),b,a.getOptions())})};var Agc=function(a,b){a.ids_=b;return a};U1.prototype.setIdType=function(a){this.idType_=a};U1.prototype.setOptions=function(){this.options_=void 0};U1.prototype.clone=function(){var a=this.getIdType(),b=this.getOptions();return new U1(a,this.ids_,b)};
var V1=function(a,b){this.ids_=new Set(b.ids_);this.parameters_=b.clone();this.loader_=a;this.resolver_=new x9b;this.isSent_=!1};V1.prototype.send=function(){if(!this.isSent_){this.isSent_=!0;var a=Array.from(this.ids_);this.loader_.load(Agc(this.parameters_,a)).then(this.resolver_.resolve,this.resolver_.reject)}};V1.prototype.promise=function(){return this.resolver_.promise};
V1.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=r(a.ids_);for(b=a.next();!b.done;b=a.next())this.ids_.add(b.value);return!0};
var Bgc=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=odc(c);this.lastRequestCreationTime_=0};
Bgc.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 V1(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;zD(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},30<d?0:30)}return this.batchedRequest_.promise()};
var Cgc=function(a,b){this.delegate_=a;this.inflightRequests_=kcc();this.tracker_=b};
Cgc.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=r(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=Agc(a.clone(),d);var q=new V1(this.delegate_,k);q.send();c.add(q);a=r(k.getKeys());for(f=a.next();!f.done;f=a.next())this.inflightRequests_.set(f.value.getIndex(),
q);q.promise().catch(function(){}).finally(function(){for(var u=r(k.getKeys()),x=u.next();!x.done;x=u.next())b.inflightRequests_.delete(x.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(u){return u.promise()})).then(function(u){return q?q.promise().then(function(x){return mUa(u,x.metadata)}):mUa(u)})};
var Dgc=function(a){this.peopleLoader_=a};Dgc.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.ids_,a.getOptions())};
var Egc=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};Egc.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new Dgc(this.peopleLoader_);b=new Bgc(b,this.tracker_,this.clientConfig_);b=new Cgc(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};
var W1=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new Egc(this.delegate_,this.trackers_,c)},Fgc=function(a,b,c,d){var e,f;return hf(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 jf(h,f,4)}if(2!=h.nextAddress)return h.return(h.yieldResult);Lt(h);a.searchRequests_.delete(e);
return Mt(h,0)})};W1.prototype.loadRankedItems=function(a){var b=this;return Fgc(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};W1.prototype.loadAutocompleteItems=function(a,b){var c=this;return Fgc(this,82,a,function(){return c.delegate_.loadAutocompleteItems(a,b)})};W1.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new U1(a,b,c))};W1.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var Ggc=function(){return Date.now()},X1=function(a,b,c){this.delegate_=a;this.nowFn_=c;this.cacheFlushRateMillis_=1E3*Bl(b.getClient(),14,300);this.serverWarmupRateMillis_=1E3*Bl(b.getClient(),13,60);this.lastServerWarmup_=this.lastCacheFlush_=0};X1.prototype.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)};
X1.prototype.loadAutocompleteItems=function(a,b){var c=b.qos;var d=this.nowFn_();1===c&&this.lastServerWarmup_+this.serverWarmupRateMillis_>d?c=!0:(this.lastServerWarmup_=d,c=!1);return c?Promise.reject(1):this.delegate_.loadAutocompleteItems(a,b)};X1.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};X1.prototype.loadContactItems=function(a,b){return this.delegate_.loadContactItems(a,b)};
var Y1=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};Y1.prototype.suggest=function(a){a=void 0===a?this.listener_:a;this.delegate_.suggest(a,this.options_)};Y1.prototype.search=function(a,b){b=void 0===b?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};Y1.prototype.cancel=function(){this.delegate_.cancel();return this};Y1.prototype.getReporter=function(a){a=void 0===a?M$b:a;return this.delegate_.getReporter(a)};
var Hgc=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=yq(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};V(Hgc,Z_);Hgc.prototype.getMemberList=function(){return this.members_};Hgc.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};
var Igc=function(a){this.filter_=a};Igc.prototype.filterResult=function(a){var b=this;if(!yq(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 vq(new Hgc(a,c))};Igc.prototype.reset=function(a){this.filter_.reset(a)};var Rr=function(a){this.filter_=Nr(a,new Igc(a))};Rr.prototype.filterResult=function(a){return this.filter_.filterResult(a)};
Rr.prototype.reset=function(a){this.filter_.reset(a)};
var Z1=function(a){this.delegate_=a};Z1.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof O0&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};Z1.prototype.lookup=function(a,b,c){c=void 0===c?new ccc:c;c.setFilter(nUa(c.getFilter()));this.delegate_.lookup(a,b,c);return this};
Z1.prototype.list=function(a,b,c,d){d=void 0===d?new $bc:d;d.setFilter(nUa(d.getFilter()));this.delegate_.list(a,b,c,d);return this};Z1.prototype.beginSession=function(a,b){b=void 0===b?new Rq:b;b=b.clone();b.setFilter(nUa(b.getFilter()));var c=this.delegate_.beginSession(b);return new Y1(c,a,b)};
var Jgc=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]]),Kgc=new Map([[2,13],[3,6]]),Lgc=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 oUa=new Map([[1,1],[2,3],[3,5]]),Mgc=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[10,20]]),Ngc=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[10,20]]),Ogc=function(a,b){this.logContext_=qUa(a,b)};g=Ogc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source(),e=new Z0;switch(d.getEventType()){case 1:d=e.setCount;b=X(b.source(),4,0);var f=new a1;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=X(b.source(),3,0);d=new d1;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=X(b,2,0);f=new f1;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 Z0;switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=X(f,3,0);var k=X(f,13,0)||0;k=Kgc.get(k)||Jgc.get(c)||0;var q=b.durationUsec("blocked"),u=b.durationUsec("network"),x=b.durationUsec("processed");b=new e1;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(u);l(b,9,x);b.setStatusCode(c);fj(f,12,0)&&(c=fj(f,12,0),l(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();
k=X(h,2,0);f=new g1;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=b.durationUsec("total"),f.setLatencyUsec(b));c=Lgc.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=pUa(p(b,2)),l(f,5,c),c=pUa(p(b,3)),l(f,6,c),c=f.setDataSource,h=b.getSource(),b=
!bj(h,1),h=h.getProvenance(),b=(b?Ngc.get(h):Mgc.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 Z0;d.setClientInterface(a);a=d.setLatency;var e=X(b.source(),5,0);if(37===e||38===e||40===e){e=X(b.source(),5,0);var f=b.durationUsec("LATENCY_A");b=b.durationUsec("LATENCY_B");b=null!=f&&null!=b?f-b:NaN;f=new b1;f.setType(e);isFinite(b)&&f.setLatencyUsec(b);e=f}else b=b.durationUsec("total"),f=new b1,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 Z0;d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=X(e,7,0);var f=new c1;f.setType(b);l(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};
var Pgc=function(a,b){this.delegate_=a;this.trackers_=b};g=Pgc.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=void 0===b?new e0: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();Qgc(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);Qgc(this)};g.reportSend=function(a){this.delegate_.reportSend(a);Qgc(this)};var Qgc=function(a){a=a.trackers_;var b=new wr;yr(b.setEventType(6),3);K1(a,b).call()};
var Rgc=function(a,b){this.delegate_=a;this.trackers_=b};g=Rgc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};
g.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=K1(this.trackers_,GTa(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d&&0===k.getCode()&&c.trackers_.error(22,19).report(),d=!0);k.getIsLastCallback()&&(e&&0===k.getCode()&&c.trackers_.error(22,20).report(),e=!0);k=c.trackers_.latency(90);k.start();try{a(h)}catch(u){throw c.trackers_.error(22,
11).report(),u;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
g.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=K1(this.trackers_,FTa(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().length);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&0===q.getCode()&&d.trackers_.error(23,19).report(),e=!0);q.getIsLastCallback()&&(f&&0===q.getCode()&&d.trackers_.error(23,20).report(),f=!0);q=d.trackers_.latency(91);q.start();try{b(k)}catch(x){throw d.trackers_.error(23,
11).report(),x;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};g.cancel=function(){this.delegate_.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate_.getAffinityVersion()};g.getReporter=function(a){a=this.delegate_.getReporter(a);return new Pgc(a,this.trackers_)};g.getSessionState=function(){return this.delegate_.getSessionState()};
var a2=function(a,b){this.delegate_=a;a=this.trackers_=b;b=new wr;yr(b.setEventType(6),1);K1(a,b).call()};a2.prototype.warmUpCache=function(){var a=this,b=K1(this.trackers_,ETa());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof O0?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new O0).setSource((new as).setCode(2)));return Promise.reject(c)})};
a2.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=K1(this.trackers_,CTa(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),u=q.getCacheState();h.source.setCacheState(u);h.source.setItemCount(k.getResults().size);for(var x=0,E=0,I=0,N=r(k.getResults().keys()),L=N.next();!L.done;L=N.next()){var T=L.value;k8b.includes(T.getType())?x++:l8b.includes(T.getType())?E++:m8b.includes(T.getType())&&I++}var Y=0;N=T=0;var ja=r(q.notFoundIdList_);for(L=ja.next();!L.done;L=
ja.next())L=L.value,k8b.includes(L.getType())?Y++:l8b.includes(L.getType())?T++:m8b.includes(L.getType())&&N++;L=h.source.getLookupInfo();x=l(L,2,x);E=l(x,1,E);I=l(E,3,I);I=l(I,5,Y);I=l(I,4,T);l(I,6,N);h.result(u.getSource().getCode());q.getIsFirstCallback()&&(e&&0===q.getCode()&&d.trackers_.error(8,19).report(),e=!0);q.getIsLastCallback()&&(f&&0===q.getCode()&&d.trackers_.error(8,20).report(),f=!0);q=d.trackers_.latency(89);q.start();try{b(k)}catch(ha){throw d.trackers_.error(8,11).report(),ha;}finally{q.stop()}},
c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};a2.prototype.list=function(a,b,c,d){var e=this;try{var f=K1(this.trackers_,DTa());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;}};
a2.prototype.beginSession=function(a){var b=this.trackers_,c=new wr;yr(c.setEventType(6),2);K1(b,c).call();a=this.delegate_.beginSession(a);return new Rgc(a,this.trackers_)};
var Sgc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Sgc.prototype.report=function(a){var b=WT(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=r(a);for(b=a.next();!b.done;b=a.next())XT(this.clearcut_,b.value)};
var Tgc=function(a){this.clearcut_=a};Tgc.prototype.report=function(a){this.clearcut_.report(a)};
var Ugc=function(a){this.writer_=a},Wgc=function(a,b,c){var d=new GT,e=a.writer_,f=d.getMetadata()||new HT;d.setMetadata(f);var h=Eq(b)||new Jr;a=m(b,Kr,1)||new Kr;e.metadataStateWriter_.write(f,h,(bj(a,9,!0)?fj(h,2,0):fj(h,1,0))||0,Vgc(b));e.contactInfoWriter_.write(d,a,c,h.getProvenance()||0);b=m(d,IT,4)||new IT;Gb(d,4,b);m(d,IT,4).setType(a.getFieldType());d.setLoggingId(a.getFieldLoggingId());return d};
var Xgc=function(){};
Xgc.prototype.create=function(a,b,c){var d=new NT,e=fj(b,3,0);l(d,1,e);e=fj(b,4,0);l(d,2,e);e=fj(b,5,0);l(d,3,e);d.setInstanceId(b.getInstanceId());d.setAffinityVersion(b.getAffinityVersion());e=new LT;Gb(e,3,d);7!==c&&b.hasQuery()&&(d=b.getQuery(),2===c&&e.setQuery(d),e.setQueryLength(d.length));var f=new MT;d=iCa(Bl(b,9,0)-Bl(b,8,0));l(f,2,d);d=new ET;Gb(d,1,e);Gb(d,6,f);e=new uTb;if(f=fj(b,6,0)){l(e,3,1E3*f);var h=1E3*(Date.now()-f);l(e,2,h)}l(e,1,!!f);Gb(d,3,e);d.setAffinityVersion(b.getAffinityVersion());b=
new qTb;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};
var Ygc=function(){};Ygc.prototype.extractPersonEventSource=function(a){return p(rUa(a),4)};Ygc.prototype.extractFieldEventSource=function(a){return p(rUa(a),3)};
var Zgc=function(){};Zgc.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new Wr;return(a.getQuery()||"").length?p(b,2):p(b,4)};Zgc.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new Wr;return(a.getQuery()||"").length?p(b,1):p(b,3)};
var $gc=function(){};$gc.prototype.extractPersonEventSource=function(a){return p(sUa(a),4)};$gc.prototype.extractFieldEventSource=function(a){return p(sUa(a),3)};
var ahc=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};
var bhc=new Map([[1,11],[2,12],[0,0]]),chc=function(){};chc.prototype.write=function(a,b,c){var d=new JT;l(d,1,c);c=new OT;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());Gb(a,8,c);b=[bhc.get(b.getContext())];ll(a,3,b)};
var dhc=new Map([[1,5],[2,4],[3,6],[7,13]]),ehc=function(){};ehc.prototype.write=function(a,b,c,d){var e=new JT;l(e,1,c);a.setPosition(e);c=dhc.get(b.getProvenance())||0;d||1===X(b,4,0)?c=3:2===X(b,4,0)&&(c=10);ll(a,3,[c])};
var fhc=new Set([9,1,2]),ghc=function(){};ghc.prototype.write=function(a,b,c,d){if(8===c||10===c||9===c||2===c&&fhc.has(d))c=new IT,1!==b.getFieldType()&&7!==b.getFieldType()||c.setEmail(p(b,3)),2!==b.getFieldType()&&5!==b.getFieldType()||c.setPhone(p(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),Gb(a,4,c),c=new KT,c.setName(b.getName()),b=a.getMetadata()||new HT,Gb(b,2,c),a.setMetadata(b)};
var hhc=function(a){var b=new ghc;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Vgc=function(a){var b;return(null==(b=m(a,Kr,1))?0:b.getIsPlaceholder())?!0:!1};
var Zr=function(a){Z.call(this,a,-1,ihc)};V(Zr,Z);g=Zr.prototype;g.getEventType=function(){return p(this,1)};g.setEventType=function(a){return l(this,1,a)};g.getSessionState=function(){return m(this,I_,2)};g.setSessionState=function(a){Gb(this,2,a)};g.hasSessionState=function(){return mj(this,2)};var wUa=function(a,b){Gb(a,4,b)},ihc=[3];
Zr.prototype.toObject=function(){var a=null!=this?{eventType:n(p(this,1)),sessionState:W7b(void 0,this.getSessionState()),tokensList:Hb(xb(this,Ir,3),T7b),eventSources:H_(void 0,m(this,Wr,4))}:void 0;return a};
var jhc=new Set([8]),khc=function(){this.defaultEntityFactory_=new Ugc(new hhc(new ehc));this.contextualEntityFactory_=new Ugc(new hhc(new chc));this.extensionFactory_=new Xgc;this.defaultEventSourceExtractor_=new Zgc;this.additionEventSourceExtractor_=new Ygc;this.replacementEventSourceExtractor_=new $gc};
khc.prototype.create=function(a,b){var c=b.getSessionState()||new I_,d=b.getEventType();b=xb(b,Ir,3);var e=Yr(b,uUa);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(v(Yr(f,tUa).values())):[];b=b?[].concat(v(Yr(b,tUa).values())):[];e=e?[].concat(v(Yr(e,tUa).values())):[];f=new ahc(f,b,e);b=[];var h=r(f.defaultTokenGroups_);for(e=h.next();!e.done;e=h.next())b.push.apply(b,v(lhc(this,a,d,e.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));h=r(f.additionTokenGroups_);for(e=h.next();!e.done;e=
h.next())b.push.apply(b,v(lhc(this,a,d,e.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));f=r(f.replacementTokenGroups_);for(e=f.next();!e.done;e=f.next())b.push.apply(b,v(lhc(this,a,d,e.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var lhc=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=d.map(function(x){var E=new GT,I=h.writer_,N=E.getMetadata()||new HT;E.setMetadata(N);var L=Eq(x)||new Jr,T=m(x,Kr,1)||new Kr;I.metadataStateWriter_.write(N,L,fj(L,2,0)||0,Vgc(x));I.contactInfoWriter_.write(E,T,c,L.getProvenance()||0);E.setLoggingId(T.getPersonLoggingId());x=m(E,IT,4)||new IT;Gb(E,4,x);x.setType(p(T,8));return E});k.push(mhc(a,b,c,f.extractPersonEventSource(e),q,e));q=[];d=r(d);for(var u=d.next();!u.done;u=
d.next())u=u.value,mj(u,1)&&jhc.has(m(u,Kr,1).getFieldType())||q.push(Wgc(h,u,c));q.length&&k.push(mhc(a,b,c,f.extractFieldEventSource(e),q,e));return k},mhc=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);Fb(a,2,e);return a};
var nhc=function(a,b){this.logContext_=Sr(Tr(new Ur,"PeopleStore.BigBug").setLogSource(X(a.getClearcut(),3,41)).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1002").setBaselineCl(454985249).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(v(a.runtimeConfig_.getExperiments().getExperimentIdsList()),v(Vr?Vr.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);this.eventsFactory_=
new khc};nhc.prototype.getLogContext=function(){return this.logContext_};
var ohc=function(a){this.clientConfig_=a;this.reportingCache_=new Map};ohc.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new nhc(this.clientConfig_,a),a=new Tgc(new Sgc(HUb(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};
var phc=function(a,b){this.reporting_=a;this.sharedSessionState_=b};g=phc.prototype;g.reportDisplay=function(a){b2(this,$r(a,1))};g.reportSelect=function(a,b){b=void 0===b?new e0:b;if(0!==b.getOriginator())for(var c=r(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!mj(d,2)){var e=new Jr;Gb(d,2,e)}d=Eq(d);l(d,4,b.getOriginator())}b=fj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);b2(this,$r(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=r(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!mj(c,2)){var d=new Jr;Gb(c,2,d)}c=Eq(c);l(c,4,2)}b=fj(this.sharedSessionState_,4,0)+1;l(this.sharedSessionState_,4,b);b2(this,$r(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){b2(this,$r(a,17,this.sharedSessionState_))};g.reportProceed=function(a){b2(this,$r(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new Zr;a=a.clone();b.setSessionState(a);b.setEventType(7);wUa(b,a.getSources());b2(this,[b])};g.reportSave=function(a){b2(this,$r(a,9,this.sharedSessionState_))};g.reportSend=function(a){b2(this,$r(a,8,this.sharedSessionState_,!0))};var b2=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};
var qhc=function(a,b,c){this.delegate_=a;this.sharedSessionState_=c;l(this.sharedSessionState_,5,Math.floor(9007199254740991*Math.random()));this.reportingFactory_=b};g=qhc.prototype;g.warmUpSession=function(a){return this.delegate_.warmUpSession(a)};g.suggest=function(a,b){var c=this;R7b(this.sharedSessionState_,fj(this.sharedSessionState_,3,0)+1);var d=this.sharedSessionState_.clone();d.setQuery("");S7b(d);this.delegate_.suggest(function(e){rhc(c,e.getResults(),xUa(e),d,0);a(e)},b)};
g.search=function(a,b,c){var d=this;R7b(this.sharedSessionState_,fj(this.sharedSessionState_,3,0)+1);var e=this.sharedSessionState_.clone();e.setQuery(a);S7b(e);var f=0;this.delegate_.search(a,function(h){f=rhc(d,h.getResults(),xUa(h),e,f);b(h)},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 new phc(this.reportingFactory_.create(a),this.sharedSessionState_)};g.getSessionState=function(){return this.sharedSessionState_};
var rhc=function(a,b,c,d,e){var f=yUb();l(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();l(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=r(b);for(f=a.next();!f.done;f=a.next()){b=0;f=r(f.value.getTargetList());for(var h=f.next();!h.done;h=f.next()){h=h.value.getLoggingToken();var k=Eq(h)||new Jr;7!==k.getProvenance()&&k.setProvenance(c.getProvenance());l(k,2,e);l(k,1,b);Gb(h,2,k);h.setSessionState(d);b++}e++}return e};
var c2=function(a,b,c){this.delegate_=a;this.reportingFactory_=b;this.instanceId_=kq();this.clearcutConfig_=c};c2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};
c2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new as;h=c.getOriginator();e=r(e);for(var k=e.next();!k.done;k=e.next()){k=r(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var u=Eq(q)||new Jr;7!==u.getProvenance()&&u.setProvenance(f.getProvenance());l(u,4,h);Gb(q,2,u)}}b(d)},c)};
c2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};c2.prototype.beginSession=function(a){var b=new I_,c=shc(this,a);Gb(b,10,c);c=thc(this,a);Gb(b,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new qhc(a,this.reportingFactory_,b)};
var shc=function(a,b){a=xb(a.clearcutConfig_,Wr,5);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new Wr},thc=function(a,b){a=xb(a.clearcutConfig_,Xr,6);return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return 0===c.getEntryPoint()})||new Xr};
var uhc=function(a){this.delegate_=a};g=uhc.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 d2=function(a,b){this.delegate_=a;this.smartAddressFactory_=b};d2.prototype.warmUpCache=function(){return this.delegate_.warmUpCache()};d2.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,b,c)};d2.prototype.list=function(a,b,c,d){this.delegate_.list(a,b,c,d)};d2.prototype.beginSession=function(a){a=this.delegate_.beginSession(a);return new uhc(a,this.smartAddressFactory_.create(a.getSessionState()))};
var vhc={create:function(a){a=new o1(bo(fdc,'[[15,15],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",""],["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);if(a.runtimeConfig_.getExperiments().getProfileId())if(ndc(a).getIsEnabled()){var b=bo(Sq,'[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]');b=new Tq(b,1)}else b=new Uq;else b=new Uq;var c=
a.runtimeConfig_.getExperiments().getProfileId(),d=a.runtimeConfig_;Vr=b.loadExperiments(ndc(a).getApplication(),(new Vq).setPeopleApiEnv(d.getPeopleApiEnv()),c);b=new Wec;b.cacheConfigurators_.push(new Ycc);d=b;d=void 0===d?new Wec:d;b=a.getClearcut();b=new Ogc(b,a.runtimeConfig_);b=Po(b);b=new J1(b);c=new Sec(a,b);var e=a.getClient();e=new mfc(c.targetFactory_,e);var f=void 0===f?Ggc:f;f=new X1(c.loader_,a,f);f=new W1(f,b,a);var h=[new ygc,new efc].concat(v(d.cacheConfigurators_)),k=[],q=[],u=new M1(e,
a),x=new ufc(q,u);q={clientConfig:a,trackers:b,storage:e,indexer:u,loader:f,loaderFactory:c,trieFactory:new Rfc(e,x),prefixCaches:k,lookupStages:q};h=r(h);for(u=h.next();!u.done;u=h.next())u.value.configure(q);k=new Ffc(k);f=new Kfc(a,b,k,x,new qfc(f,e),e);x=a.getClient();x=new pgc(x,e);k=a.getClient();f=new R1(f,x,k);f=new c2(f,new ohc(a),a.getClearcut());a=(0,d.createSmartAddressFactory_)(a,e,x,c.targetFactory_,b);f=new d2(f,a);f=new a2(f,b);return new Z1(f)}};
var e2=function(){};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275cmp=w({type:e2,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&&(Ee(),O(0,yUa,1,0,"div",0),O(1,zUa,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),B(1),D("ngIf",b.isReady))},dependencies:[ux],encapsulation:2});
var f2=function(a,b){var c=this;this.fridge=a;this.userAccess=b;this.currentComponentId="";this.providedComponentId$=new U.ReplaySubject(1);this.accessCheckIsThinking$=new U.BehaviorSubject(!0);this.component$=this.providedComponentId$.pipe(ig(function(d){return c.fridge.watchOne(d)}));this.userIsComponentReader$=this.providedComponentId$.pipe(ig(function(d){d!==c.currentComponentId&&(c.accessCheckIsThinking$.next(!0),c.currentComponentId=d);return gK(c.userAccess,"reader","components/"+d).then(function(e){return e},
function(){return!1}).finally(function(){c.accessCheckIsThinking$.next(!1)})}));this.isReady$=(0,U.combineLatest)([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(S(function(d){var e=r(d);d=e.next().value;e=e.next().value;return!d&&!e}),hg(!1));this.manageComponentLink=""};f2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};f2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};
f2.\u0275fac=function(a){return new (a||f2)(C(IJ),C(fK))};
f2.\u0275cmp=w({type:f2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Jc],decls:6,vars:7,consts:[[3,"isReady"],[3,"href",4,"ngIf","ngIfElse"],["notComponentReader",""],[3,"href"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),Q(1,"async"),O(2,AUa,3,4,"a",1),Q(3,"async"),O(4,BUa,2,1,"ng-template",null,2,Pf),G());if(a&2){var c=M(5);D("isReady",R(1,3,b.isReady$));B(2);D("ngIf",R(3,5,b.userIsComponentReader$))("ngIfElse",c)}},dependencies:[ux,e2,Fx],encapsulation:2});
var g2=function(){};g2.\u0275fac=function(a){return new (a||g2)};
g2.\u0275cmp=w({type:g2,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:2,consts:[[3,"ngClass"]],template:function(a,b){a&1&&(F(0,"span",0),P(1),G());a&2&&(D("ngClass","priority-"+b.issuePriority),B(1),a=b.issuePriority,a=null==a?"--":"string"===typeof a?MJb.get(a):LJb.get(a),Je(" ",a," "))},dependencies:[xx],styles:["span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:18px;border-radius:4px;word-break:keep-all}.priority-1[_ngcontent-%COMP%]{background-color:#1a73e8;background-color:var(--issue-priority);border:2px solid transparent;color:#fff;min-width:19px}.priority-2[_ngcontent-%COMP%]{background:transparent;border:2px solid;border-color:#1a73e8;border-color:var(--issue-priority);color:#202124;color:var(--text-high-contrast);min-width:19px}\n/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});
var h2=function(){this.showIssueMetadataContainer=!1;this.manageComponentLink=""};
ji.Object.defineProperties(h2.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=jo(a.modifiedTime),a.teamId&&0!==a.teamId&&(this.issueTeamId=String(a.teamId)),a=a.issueState)this.issueType=nDb[a.type],this.issueStatus=oDb[a.status],this.issuePriority=a.priority,this.issueSeverity=NJb.get(a.severity),this.issueComponentId=String(a.componentId)}}});
h2.\u0275fac=function(a){return new (a||h2)};
h2.\u0275cmp=w({type:h2,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&&(F(0,"div",0)(1,"h3",1),P(2," Access is denied to this issue "),G(),O(3,EUa,33,11,"ol",2),G());a&2&&(B(3),D("ngIf",b.showIssueMetadataContainer))},dependencies:[ux,
f2,g2,VU,Ix],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 i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=Cc({type:i2});i2.\u0275inj=mc({imports:[Mx]});
var j2=function(){};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275mod=Cc({type:j2});j2.\u0275inj=mc({imports:[Mx,i2]});
var k2=function(){};k2.\u0275fac=function(a){return new (a||k2)};k2.\u0275mod=Cc({type:k2});k2.\u0275inj=mc({imports:[Mx]});
var l2=function(){};l2.\u0275fac=function(a){return new (a||l2)};l2.\u0275mod=Cc({type:l2});l2.\u0275inj=mc({imports:[Mx,j2,k2,WU]});
var gs=Symbol("Pe"),whc=["OR","AND","NAND"],xhc=["OR","NAND"],yhc="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),zhc=["AND","OR","NAND"],Ahc=["OR","LT","GT","LE","GE"],fs=function(a){this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};fs.prototype[gs]=function(a){this.initType(a);this.initValues(a)};
fs.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]};fs.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var Bhc=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}};
fs.prototype.toString=function(){var a=Bhc(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=Chc(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var Chc=function(a){var b=a.label.field;a:{var c=FUa()[b];if(c&&(c=c.queryLabel,null!=c)){b=c;break a}b=Ii(b).toLowerCase()}return b+(a.label.customFieldId||"")};
fs.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};fs.prototype.getWidgetType=function(){return"default"};fs.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};fs.prototype.getLegalTypes=function(){return whc};var Dhc=[],m2=function(a){fs.call(this,a);this.enumValues={}};V(m2,fs);g=m2.prototype;g.getLegalTypes=function(){return xhc};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=r(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=r(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[IUa(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(hh(this.enumValues,function(a){return a}))};g.getOptions=function(){return Dhc};var Ehc=paa().map(function(a){return{id:"p"+a,label:"P"+a}}),Fhc=function(a){m2.call(this,a)};V(Fhc,m2);
Fhc.prototype.getOptions=function(){return Ehc};var Ghc=paa().map(function(a){return{id:"s"+a,label:"S"+a}}),Hhc=function(a){m2.call(this,a)};V(Hhc,m2);Hhc.prototype.getOptions=function(){return Ghc};
var Ihc=$i("enableWtdmMvpUi")?[{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"}]:[{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"}],Jhc=function(a){m2.call(this,a)};V(Jhc,m2);Jhc.prototype.getOptions=function(){return Ihc};var Khc=[{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"}],Lhc=function(a){m2.call(this,a)};V(Lhc,m2);
Lhc.prototype.getOptions=function(){return Khc};var Mhc=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Nhc=function(a){m2.call(this,a)};V(Nhc,m2);Nhc.prototype.getOptions=function(){return Mhc};var cs=function(a){m2.call(this,a);this.allowedValues=[]};V(cs,m2);cs.prototype[gs]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:IUa(b)}});m2.prototype[gs].call(this,a)};
cs.prototype.valuesToStrings=function(){return Object.keys(hh(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};cs.prototype.getOptions=function(){return this.allowedValues};var ts=function(a){fs.call(this,a);this.csv=""};V(ts,fs);ts.prototype.getWidgetType=function(){return"csv"};ts.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};ts.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};
var n2=function(a){ts.call(this,a)};V(n2,ts);n2.prototype.getWidgetType=function(){return"id"};n2.prototype.valuesToStrings=function(){return ts.prototype.valuesToStrings.call(this).map(function(a){return"none"===a.toLowerCase()?"none":"any"===a.toLowerCase()?"any":String(Ki(a))})};var Ohc=function(a){ts.call(this,a)};V(Ohc,n2);Ohc.prototype.getLegalTypes=function(){return xhc};var hs=function(a){ts.call(this,a)};V(hs,ts);hs.prototype.getWidgetType=function(){return"user"};
var o2=function(a){ts.call(this,a)};V(o2,hs);o2.prototype.getLegalTypes=function(){return xhc};var bs=function(a){fs.call(this,a);this.dateTo=this.dateFrom=this.duration=""};V(bs,fs);var DVa=function(a){return a&&"string"===typeof a?a:""};bs.prototype.initType=function(a){fs.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&("RANGE"===b.type?this.type=a.negated?"NRANGE":"RANGE":Xt(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};
bs.prototype.getWidgetType=function(){return"date"};bs.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=Phc(b),"RANGE"===this.type||"NRANGE"===this.type)this.dateTo=Phc(a.values[0].simpleValues[1].value)}};
bs.prototype.valuesToStrings=function(){if("DURATION"===this.type||"NDURATION"===this.type){var a=Ki(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if("RANGE"===this.type||"NRANGE"===this.type){a=this.dateFrom&&Qhc(this.dateFrom)||(new Ji).toIsoString(!0);var b=this.dateTo&&Qhc(this.dateTo)||(new Ji).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&Qhc(this.dateFrom)||(new Ji).toIsoString(!0)]};
var Rhc=function(a){var b=String(a.getMonth()+1),c=String(a.getDate());return b+"/"+c+"/"+String(a.getFullYear())},Phc=function(a){var b=new sC(2E3);a=Ri(a);var c=-1==a.indexOf("T")?" ":"T";a=a.split(c);var d=a[0].match(Grb);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 io("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new io("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(Irb);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(Hrb)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var u=h[4]?1E3*Number(h[4]):0;(h=0<=a&&100>a)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,u);h&&(a-=126227808E5);b.setTime(a+6E4*q)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?1E3*Number(h[4]):0);c=!0}else c=!1}return Rhc(c?b:null)},Qhc=function(a){a=a.split("/").map(Number);return(new Ji(a[2],a[0]-1,a[1])).toIsoString(!0)};bs.prototype.getLegalTypes=function(){return yhc};var p2=function(a){fs.call(this,a)};V(p2,fs);p2.prototype.getWidgetType=function(){return"bool"};
p2.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"};p2.prototype.toString=function(){return Chc(this)+":"+("OR"===this.type)};p2.prototype.getLegalTypes=function(){return xhc};var q2=function(a){fs.call(this,a)};V(q2,fs);q2.prototype.getWidgetType=function(){return"boolwithall"};
q2.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")};q2.prototype.toString=function(){var a=Chc(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
q2.prototype.getLegalTypes=function(){return zhc};var es=function(a){fs.call(this,a)};V(es,fs);es.prototype.getWidgetType=function(){return"text"};es.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}})};es.prototype.valuesToStrings=function(){return this.values.map(function(a){return-1<a.value.indexOf(" ")?'"'+a.value+'"':a.value})};var r2=function(a){fs.call(this,a)};
V(r2,fs);r2.prototype.getWidgetType=function(){return"component"};r2.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};Xt(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};r2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Shc=function(a){fs.call(this,a)};V(Shc,fs);
Shc.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};Xt(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};Shc.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Thc=function(a){fs.call(this,a)};V(Thc,Shc);Thc.prototype.getWidgetType=function(){return"team"};var Uhc=function(a){fs.call(this,a)};
V(Uhc,fs);Uhc.prototype.getWidgetType=function(){return"hotlist"};var Vhc=function(a){fs.call(this,a)};V(Vhc,fs);Vhc.prototype.getWidgetType=function(){return"savedsearch"};var ds=function(a){ts.call(this,a)};V(ds,ts);ds.prototype.getWidgetType=function(){return"number"};ds.prototype.getLegalTypes=function(){return Ahc};var Whc=function(a){bs.call(this,a)};V(Whc,bs);Whc.prototype.initType=function(a){bs.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var s2={},JUa=(s2.ATTACHMENT={ruleCtor:es,name:"Attachment name"},s2.COMMENT={ruleCtor:es},s2.TITLE={ruleCtor:es},s2.ASSIGNEE={ruleCtor:o2},s2.MODIFIER={ruleCtor:hs},s2.REPORTER={ruleCtor:o2},s2.VERIFIER={ruleCtor:o2},s2.CC={ruleCtor:hs},s2.COMPONENT_ID={ruleCtor:r2,name:"Component"},s2.TEAM_ID={ruleCtor:Thc,name:"Team"},s2.TYPE={ruleCtor:Jhc},s2.STATUS={ruleCtor:Lhc},s2.PRIORITY={ruleCtor:Fhc},s2.SEVERITY={ruleCtor:Hhc},s2.BLOCKED_BY_ID={ruleCtor:n2},s2.BLOCKING_ID={ruleCtor:n2},s2.PARENT_ID={ruleCtor:n2},
s2.CANONICAL_ID={ruleCtor:Ohc},s2.ID={ruleCtor:Ohc},s2.FOUND_IN={ruleCtor:ts},s2.TARGETED_TO={ruleCtor:ts},s2.VERIFIED_IN={ruleCtor:ts},s2.CL={ruleCtor:ts,name:"Changelists"},s2.POSTMORTEM={ruleCtor:ts,name:"Postmortems"},s2.MODIFIED={ruleCtor:bs},s2.RESOLVED={ruleCtor:Whc},s2.CREATED={ruleCtor:bs},s2.VERIFIED={ruleCtor:Whc},s2.DELETION_TIME={ruleCtor:bs,name:"Deletion time"},s2.SAVED_SEARCH_ID={ruleCtor:Vhc,name:"Saved search"},s2.HOTLIST_ID={ruleCtor:Uhc,name:"Hotlist"},s2.STAR={ruleCtor:p2,name:"Starred"},
s2.MUTE={ruleCtor:p2,name:"Muted"},s2.IN_PROD={ruleCtor:p2,name:"In production"},s2.CC_COUNT={ruleCtor:ds},s2.DUPLICATE_COUNT={ruleCtor:ds},s2.VOTE_COUNT={ruleCtor:ds},s2.LAST_MODIFIER={ruleCtor:o2,name:"Last Modified By"},s2.COMMENTER={ruleCtor:hs},s2.LAST_COMMENTER={ruleCtor:o2},s2.ARCHIVED={ruleCtor:q2},s2.IS_DELETED={ruleCtor:p2,name:"Deleted",queryLabel:"deleted"},s2.DELETION_REASON={ruleCtor:Nhc,name:"Deletion reason"},s2.MIN_SLO_TARGET={ruleCtor:bs,name:"Nearest SLO",queryLabel:"nearestslo"},
s2.EFFORT_LABEL={ruleCtor:ts},s2._TEXT_={ruleCtor:es,queryLabel:"",name:"All fields"},s2);
var ls=function(a){Z.call(this,a,-1,Xhc)};V(ls,Z);ls.prototype.getType=function(){return X(this,1,0)};ls.prototype.setType=function(a){return l(this,1,a)};ls.prototype.hasType=function(){return ej(this,1)};var ms=function(a){Z.call(this,a,-1,Yhc)};V(ms,Z);g=ms.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getValuesList=function(){return xb(this,t2,2)};g.setValuesList=function(a){Fb(this,2,a)};
g.getLabel=function(){return m(this,Zhc,4)};g.setLabel=function(a){return Gb(this,4,a)};g.hasLabel=function(){return mj(this,4)};var t2=function(a){Z.call(this,a,-1,$hc)};V(t2,Z);g=t2.prototype;g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getValuesList=function(){return xb(this,t2,2)};g.setValuesList=function(a){Fb(this,2,a)};var is=function(a){Z.call(this,a)};V(is,Z);g=is.prototype;
g.getType=function(){return X(this,1,0)};g.setType=function(a){return l(this,1,a)};g.hasType=function(){return ej(this,1)};g.getValue=function(){return W(this,2)};g.setValue=function(a){return l(this,2,a)};g.hasValue=function(){return ej(this,2)};var Zhc=function(a){Z.call(this,a)};V(Zhc,Z);g=Zhc.prototype;g.getField=function(){return X(this,1,0)};g.setField=function(a){l(this,1,a)};g.getCustomFieldId=function(){return lj(this,2)};g.setCustomFieldId=function(a){return l(this,2,a)};
g.hasCustomFieldId=function(){return ej(this,2)};var Xhc=[2];ls.prototype.toObject=function(){return aic(this)};var aic=function(a){if(null!=a)return{type:n(p(a,1)),expressionsList:Hb(xb(a,ms,2),bic)}},Yhc=[2];ms.prototype.toObject=function(){return bic(void 0,this)};var bic=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Hb(b.getValuesList(),cic,a),negated:n(Mo(b,3)),label:dic(a,b.getLabel()),operator:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}},$hc=[2,3];
t2.prototype.toObject=function(){return cic(void 0,this)};var cic=function(a,b){if(null!=b){var c={type:n(p(b,1)),valuesList:Hb(b.getValuesList(),cic,a),simpleValuesList:Hb(xb(b,is,3),eic,a)};a&&(c.$jspbMessageInstance=b);return c}};is.prototype.toObject=function(){return eic(void 0,this)};var eic=function(a,b){if(null!=b){var c={type:n(p(b,1)),value:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};Zhc.prototype.toObject=function(){return dic(void 0,this)};
var dic=function(a,b){if(null!=b){var c={field:n(p(b,1)),customFieldId:n(p(b,2))};a&&(c.$jspbMessageInstance=b);return c}};ls.messageId="b.QueryBuilderResponse";
var js=function(a){Z.call(this,a)};V(js,Z);js.prototype.toObject=function(){return fic(this)};var fic=function(a){if(null!=a)return{syntaxError:n(p(a,1))}};js.messageId="b.SyntaxErrorResponse";
var u2=function(a){Z.call(this,a)};V(u2,Z);u2.prototype.getKindCase=function(){return ub(this,ks)};var ks=[1,2];u2.prototype.toObject=function(){var a=null!=this?{queryBuilderResponse:aic(Al(this,ls,1,ks)),syntaxErrorResponse:fic(Al(this,js,2,ks))}:void 0;return a};u2.messageId="b.QueryBuilderResponseOrError";
var v2=function(a){this.executor=a},gic=function(a,b){b=yn(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:u2}).then(UUa).then(function(c){var d;null!=(d=c.syntaxErrorResponse)?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(KUa)});return c})};v2.\u0275fac=function(a){return new (a||v2)(t(qI))};v2.\u0275prov=lc({token:v2,factory:v2.\u0275fac,providedIn:"root"});
var w2=function(a){var b=this;this.teamsService=a;this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new Jw;this.onEmptyQuery=new Jw;this.searchQuery$=new U.Subject;this.teamSuggestions$=this.searchQuery$.pipe(Tf(300),Wf(),ig(function(c){return $L(b.teamsService,c)}),S(function(c){return YUa(c)}))};w2.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};w2.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};
w2.prototype.displayFn=function(a){return a?a.name:""};w2.prototype.ngAfterViewInit=function(){};w2.\u0275fac=function(a){return new (a||w2)(C(ZL))};
w2.\u0275cmp=w({type:w2,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&Hf(kN,7);if(a&2){var c;Gf(c=Jf())&&(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=y();F(0,"div",0)(1,"input",1,2);J("click",function(){z(c);var e=M(2);return A(b.search(e.value))})("input",
function(){z(c);var e=M(2);return A(b.search(e.value))});G();F(3,"mat-autocomplete",3,4);J("optionSelected",function(e){return b.updateSelectionOnChange(e)});O(5,XUa,6,8,"mat-option",5);Q(6,"async");G()()}if(a&2){var d=M(4);B(1);He("placeholder",b.placeholder);D("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",d);oe("aria-disabled",b.disabled);B(2);D("panelWidth",b.panelWidth)("displayWith",b.displayFn);B(2);D("ngForOf",R(6,8,b.teamSuggestions$))}},dependencies:[yx,ux,jN,kN,nB,lF,
Qg,by,hy,Fx,Lx],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 ns=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 hic(a.slice(0,e+1),b.slice(0,e+1))})},hic=function(a,b){this.pathIds=a;this.pathNames=b;this.name=0<b.length?b[b.length-1]:"";this.pathNameText=b.join(" > ")};
var x2=function(a,b,c,d,e,f,h,k,q,u,x,E){yI.call(this);var I=this;this.analytics=a;this.userApi=b;this.customFieldsApi=c;this.savedSearchApi=d;this.hotlistApi=e;this.issueSearchResources=f;this.activeSession=h;this.elementRef=k;this.errorHandler=q;this.componentActions=u;this.teamsService=x;this.cdr=E;this.availableLabels=[];this.expressions=[];this.components={};this.teams={};this.hotlists={};this.savedSearches={};this.customFields={};this.userHotlists=[];this.userSavedSearches=[];this.teamUnderEdit=
this.componentUnderEdit=this.chipUnderEdit=null;this.trackByIndex=function(N){return N};this.sessionIsInternal=this.activeSession.isInternalSession();this.typeLabels=iic;this.globalTypeLabels=jic;fh(FUa(),function(N,L){"SAVED_SEARCH_ID"===L||"TEAM_ID"===L&&!I.sessionIsInternal||"PARENT_ID"===L&&!AH(I.activeSession,"enableWtdmMvpUi")||(N.name?I.availableLabels.push([L,N.name]):I.availableLabels.push([L,Yta(L)]))},this);this.availableLabels.sort(function(N,L){return naa(N[1],L[1])});this.availableLabels.push(["SAVED_SEARCH_ID",
"Saved search"]);this.availableLabels.push(["CUSTOM_FIELD","Custom field"]);this.state="INIT"};V(x2,yI);x2.\u0275dir=yI.\u0275dir;x2.prototype.schedule=function(a){this.subscriptions.add(U.asyncScheduler.schedule(a))};x2.prototype.ngOnInit=function(){this.cdr.detectChanges()};
var mic=function(a,b){a.reset();b?kic(a,b):(a.expressions=lic.map(function(c){return HUa(c)}),a.state="SUCCESS");a.userApi.getUserSavedSearches().then(function(c){a.userSavedSearches=c;c=r(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=r(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()},
kic=function(a,b){gic(a.issueSearchResources,b).then(function(c){if(c.syntaxError)return a.state="SYNTAX_ERROR",Zn(a.analytics,"search","adv-search-syntax-error"),a.cdr.detectChanges(),null;a.expressionType=c.type;a.expressions=[];c=c.expressions.map(function(d){return nic(a,d)});return Promise.all(c).then(function(d){if(d.every(function(f){return!!f})){a.state="SUCCESS";d=r(d);for(var e=d.next();!e.done;e=d.next())a.expressions.push(e.value)}else a.state="NOT_REPRESENTABLE",Zn(a.analytics,"search",
"adv-search-not-rep-error");a.cdr.detectChanges()})}).catch(function(c){a.state="SERVER_ERROR";a.errorHandler.errorHandler(null,c);a.cdr.detectChanges()})},nic=function(a,b){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?oic(a,b.label.customFieldId).then(function(c){b.customField=c;return pic(a,b)}):Promise.resolve(pic(a,b))},oic=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):
a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},pic=function(a,b){b="ERR"===b.type?null:GUa(b);if(!b||b&&!b.isValid())return null;qic(a,b);return b},qic=function(a,b){if("COMPONENT_ID"===b.label.field){var c=r(b.values);for(b=c.next();!b.done;b=c.next())b=qC(b.value.value),a.components[b]||a.fetchComponent(b)}else if("TEAM_ID"===b.label.field&&a.sessionIsInternal)for(c=r(b.values),b=c.next();!b.done;b=c.next())b=b.value.value,a.teams[b]||ric(a,b);else if("SAVED_SEARCH_ID"===
b.label.field)for(c=r(b.values),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});else if("HOTLIST_ID"===b.label.field)for(c=r(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})};x2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.components[a]=c})};
var ric=function(a,b){$L(a.teamsService,b).pipe(S(function(c){return c.getTeamSuggestionsList()}),Sf(function(){return(0,U.of)([])}),jg(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:""}})},sic=function(a){var b="AND"===a.expressionType?" ":" | ";return Pib(a.expressions.map(function(c){return c.label?c.toString():""}),iaa).join(b)};
x2.prototype.getState=function(){return this.state};x2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var $Va=function(a,b){var c=a.expressions[b],d=c.label;"CUSTOM_FIELD"===d.field?c.isPendingCustomField=!0:(a.expressions[b]=HUa(d.field),YVa(a,a.expressions[b]));a.cdr.detectChanges()},YVa=function(a,b){var c=b.getWidgetType();"component"===c||"savedsearch"===c||"hotlist"===c||"text"===c||"team"===c?qs(a,b):"date"===c&&(b.dateFrom||(b.dateFrom=Rhc(new Ji)),b.dateTo||(b.dateTo=Rhc(new Ji)))};x2.prototype.removeExpression=function(a){za(this.expressions,a);this.cdr.detectChanges()};
var qs=function(a,b){var c={value:""};b.values.push(c);"COMPONENT_ID"===b.label.field?nVa(a,c):"TEAM_ID"===b.label.field?uVa(a,c):ss(a,c);a.cdr.detectChanges()},ps=function(a,b,c){za(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()},ss=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},nVa=function(a,b){ss(a,b);a.componentUnderEdit=b.value?Fi(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},
uVa=function(a,b){ss(a,b);a.teamUnderEdit=b.value?Fi(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},rs=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},wVa=function(a,b){Zn(a.analytics,ao.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;rs(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
x2.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]};x2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||a:""};
var jic={AND:"Match all (AND)",OR:"Match any (OR)"},iic={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"}},lic=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];x2.\u0275fac=function(a){return new (a||x2)(C(FM),C(YK),C(fZ),C(CN),C(SK),C(v2),C(yH),C(wd),C(xK),C(iT),C(ZL),C(uI,2))};
x2.\u0275cmp=w({type:x2,selectors:[["b-advanced-search"]],features:[Me([uI]),ie],decls:1,vars:1,consts:[["class","bv2-adv-search",4,"ngIf"],[1,"bv2-adv-search"],["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-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"],["class","bv2-adv-search-chip-content  bv2-adv-search-chip-content-btn",
3,"title","click",4,"ngIf"],["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&&O(0,cWa,9,6,"div",0);a&2&&D("ngIf","SUCCESS"===b.getState())},dependencies:[yx,ux,HU,rV,Qg,by,ty,hy,LX,rB,eC,XE,bF,$E,eF,GS,nB,fQ,w2,oV,Jx,qM,
rM],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-bookmark-item-chip[_ngcontent-%COMP%]{align-items:baseline}.bv2-adv-search-bookmark-item-form-field[_ngcontent-%COMP%]{text-align:left;width:100%}']});
var y2=function(){};y2.\u0275fac=function(a){return new (a||y2)};y2.\u0275mod=Cc({type:y2});y2.\u0275inj=mc({imports:[Mx,mN,yO,mH,wy]});
var z2=function(){};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275mod=Cc({type:z2});z2.\u0275inj=mc({imports:[Mx,IU,sV,wy,UX,uG,fC,pF,hC,fF,HS,gQ,zM,y2,qV]});
var tic=function(a){Z.call(this,a)};V(tic,Z);g=tic.prototype;g.getExperimentId=function(){return fj(this,1)};g.getState=function(){return X(this,2,0)};g.getTitle=function(){return W(this,4)};g.setTitle=function(a){return l(this,4,a)};g.getDescription=function(){return W(this,5)};g.setDescription=function(a){return l(this,5,a)};g.toObject=function(){return uic(void 0,this)};
var uic=function(a,b){if(null!=b){var c={experimentId:n(p(b,1)),state:n(p(b,2)),userGroup:n(p(b,3)),title:n(p(b,4)),description:n(p(b,5)),learnMoreLink:n(p(b,6))};a&&(c.$jspbMessageInstance=b);return c}};
var wic=function(a){Z.call(this,a,-1,vic)};V(wic,Z);var vic=[1];wic.prototype.toObject=function(){var a=null!=this?{featuresList:Hb(xb(this,tic,1),uic)}:void 0;return a};wic.messageId="b.ListBeapFeaturesResponse";
var A2=function(a){this.executor=a};A2.prototype.fetch=function(){return this.executor.get({url:"action/experiments",responseConstructor:wic}).pipe(S(function(a){return xb(a,tic,1)}))};A2.\u0275fac=function(a){return new (a||A2)(t(pI))};A2.\u0275prov=lc({token:A2,factory:A2.\u0275fac,providedIn:"root"});
var B2=function(a){GJ.call(this,{freshUntil:Infinity,ancientAfter:Infinity});this.beapApi=a;this.recordType="beapFeature";this.idForRecord=function(b){return""+b.getExperimentId()}};V(B2,GJ);B2.prototype.fetchAll=function(){return this.beapApi.fetch().pipe(S(function(a){return{results:a}}))};B2.\u0275fac=function(a){return new (a||B2)(t(A2))};B2.\u0275prov=lc({token:B2,factory:B2.\u0275fac,providedIn:"root"});
var C2=function(a){this.beapFridge=a};C2.prototype.getFeature=function(a){return xic(this,"ALL").pipe(S(function(b){return b.find(function(c){return c.getExperimentId()===a})}))};var xic=function(a,b){b=void 0===b?"ALL":b;var c="ALL"===b,d="TEAM_FOOD"===b?1:2;return a.beapFridge.watchMany({}).pipe(S(function(e){return e.results.filter(function(f){return c?!0:X(f,3,0)===d})}))};C2.prototype.refresh=function(){this.beapFridge.pokeMany({})};C2.\u0275fac=function(a){return new (a||C2)(t(B2))};
C2.\u0275prov=lc({token:C2,factory:C2.\u0275fac,providedIn:"root"});
var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};
D2.\u0275cmp=w({type:D2,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&&(ze(0,0),O(1,dWa,1,0,"div",1),O(2,eWa,1,0,"div",2),Ae());a&2&&(D("ngSwitch",b.featureStage),B(1),D("ngSwitchCase","TEAM_FOOD"),B(1),D("ngSwitchCase","EARLY_ACCESS"))},dependencies:[Ax,Bx],styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});
var E2=function(a){var b=this;this.beapService=a;this.experimentId$=new U.ReplaySubject(1);this.featureState$=this.experimentId$.pipe(ig(function(c){return b.beapService.getFeature(c)}));this.featureStage$=this.featureState$.pipe(S(function(c){if(!c)return"UNKNOWN";c=X(c,3,0);return 1===c?"TEAM_FOOD":2===c?"EARLY_ACCESS":"UNKNOWN"}))};E2.prototype.ngOnChanges=function(){this.experimentId$.next(this.experimentId)};E2.prototype.ngOnInit=function(){};E2.\u0275fac=function(a){return new (a||E2)(C(C2))};
E2.\u0275cmp=w({type:E2,selectors:[["b-app-beap-state-indicator"]],inputs:{experimentId:"experimentId"},features:[Jc],decls:2,vars:3,consts:[[3,"featureStage"]],template:function(a,b){a&1&&(H(0,"b-feature-stage-label",0),Q(1,"async"));if(a&2){var c;D("featureStage",null!==(c=R(1,1,b.featureStage$))&&void 0!==c?c:void 0)}},dependencies:[D2,Fx],encapsulation:2});
var F2=function(){};F2.\u0275fac=function(a){return new (a||F2)};F2.\u0275mod=Cc({type:F2});F2.\u0275inj=mc({imports:[Mx]});
var G2=function(){};G2.\u0275fac=function(a){return new (a||G2)};G2.\u0275mod=Cc({type:G2});G2.\u0275inj=mc({imports:[Mx,F2]});
var H2=function(a){this.domSafe=a;this.buttonLabel="";this.alertMode=this.menuMode=!1},fWa=function(a){gP(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};H2.\u0275fac=function(a){return new (a||H2)(C(fP))};
H2.\u0275cmp=w({type:H2,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&&(O(0,gWa,3,3,"button",0),O(1,hWa,2,1,"button",1));a&2&&(D("ngIf",!b.menuMode),B(1),D("ngIf",b.menuMode))},dependencies:[ux,XE,rB,$E,lF],styles:["[_nghost-%COMP%] { display: flex; }"]});
var I2=function(a,b,c){yI.call(this);this.session=a;this.appsEvents=b;this.prefsManager=c;this.density="COMFORTABLE";this.enableWhatsNewDialog=AH(a,"enableWhatsNewDialog");this.enableBeap=AH(a,"enableBeap")};V(I2,yI);I2.\u0275dir=yI.\u0275dir;g=I2.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(jg(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})};I2.\u0275fac=function(a){return new (a||I2)(C(yH),C(BK),C(VI))};
I2.\u0275cmp=w({type:I2,selectors:[["b-app-settings-menu"]],features:[ie],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&&(F(0,"button",0),H(1,"mat-icon",1),G(),F(2,"mat-menu",null,2)(4,"div",3),P(5,"Display Density"),G(),F(6,"button",4),J("click",function(){return b.setDensity("COMFORTABLE")}),F(7,"span",5),H(8,"mat-icon",6),G(),P(9," Comfortable "),G(),F(10,"button",7),J("click",function(){return b.setDensity("COZY")}),F(11,"span",5),H(12,"mat-icon",6),G(),P(13," Cozy "),G(),F(14,"button",8),J("click",function(){return b.setDensity("COMPACT")}),F(15,"span",5),H(16,"mat-icon",6),G(),P(17," Compact "),G(),H(18,"mat-divider"),
F(19,"button",9),J("click",function(d){return b.browseComponents(d)}),P(20,"Browse components"),G(),F(21,"button",9),J("click",function(d){return b.manageHotlists(d)}),P(22,"Manage hotlists"),G(),O(23,iWa,2,0,"button",10),F(24,"button",9),J("click",function(d){b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey})}),P(25,"Settings"),G(),O(26,jWa,3,0,"a",11),O(27,kWa,3,1,"ng-container",12),G());if(a&2){var c=M(3);D("disabled",b.session.isAnonymous())("matMenuTriggerFor",c);B(6);
te("b-menu-item-checked","COMFORTABLE"===b.density);oe("aria-checked","COMFORTABLE"===b.density);B(4);te("b-menu-item-checked","COZY"===b.density);oe("aria-checked","COZY"===b.density);B(4);te("b-menu-item-checked","COMPACT"===b.density);oe("aria-checked","COMPACT"===b.density);B(12);D("ngIf",b.enableBeap);B(1);D("ngIf",b.enableWhatsNewDialog)}},dependencies:[ux,bF,$E,eF,rB,$H,lF,XE,H2,cP,D2],encapsulation:2,changeDetection:0});
var J2=function(a){this.theme=a;this.isDark=!1;this.iconName="brightness-4"};J2.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();yic(this)};var yic=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"brightness-4"};J2.\u0275fac=function(a){return new (a||J2)(C(EO))};
J2.\u0275cmp=w({type:J2,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&&(F(0,"button",0),J("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&xE(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());tNb(c,!c.clientDarkmodeSubject.getValue());yic(b)}),
H(1,"mat-icon",1),G());a&2&&(B(1),D("svgIcon",b.iconName))},dependencies:[rB,XE,lF],encapsulation:2});
var K2=function(a,b,c,d,e,f,h){this.session=a;this.userFeedback=b;this.domSafe=c;this.docLinks=d;this.userPreferencesManager=e;this.analytics=f;this.router=h;this.isNewVersion=dj(this.session.getUserPreferences());this.url$=this.router.events.pipe(xf(function(k){return k instanceof ct}),S(function(k){return k.url}),hg(window.location.pathname));this.showNewVersionButton$=this.url$.pipe(S(function(){return!1}));this.enableWhatsNewDialog=AH(a,"enableWhatsNewDialog");this.majorReleaseNotesUpdated=AH(a,
"majorReleaseNotesUpdated")};K2.prototype.toggleNewIssueDetailsPage=function(a){var b=this,c,d;return hf(function(e){if(1==e.nextAddress)return c=b.userPreferencesManager.newIssueDetailsPagePreferencesSubject$.value,jf(e,(0,U.firstValueFrom)(b.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},c,{enableNewIssueDetailsPage:a,newIdpOptOut:!a})})),2);d=a?"new-idp-on":"new-idp-off";Zn(b.analytics,"prefs","change",d);window.location.reload();kf(e)})};
K2.\u0275fac=function(a){return new (a||K2)(C(yH),C(GO),C(fP),C(dP),C(VI),C(FM),C(Gk))};
K2.\u0275cmp=w({type:K2,selectors:[["b-app-actions"]],decls:8,vars:4,consts:[[4,"ngIf"],["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"],["class","padded new-feature-link nowrap","href","",3,"click",4,"ngIf"],["href","",1,"padded","new-feature-link",
"nowrap",3,"click"],["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&&(O(0,nWa,3,2,"ng-container",0),Q(1,"async"),H(2,"theme-change-btn"),O(3,oWa,1,1,"b-whats-new-button",1),O(4,pWa,2,0,"button",2),F(5,"button",3),J("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(6,"mat-icon",4),G(),H(7,"b-app-settings-menu"));a&2&&(D("ngIf",R(1,2,b.showNewVersionButton$)),B(3),D("ngIf",b.enableWhatsNewDialog))},dependencies:[ux,rB,lF,XE,H2,cP,J2,I2,Fx],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 L2=function(a){this.currentTracker=a;this.isTrackerExpanded=!1};L2.\u0275fac=function(a){return new (a||L2)(C(kM))};
L2.\u0275cmp=w({type:L2,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&&(F(0,"button",0),J("menuOpened",function(){return b.isTrackerExpanded=!0})("menuClosed",function(){return b.isTrackerExpanded=!1}),H(1,"mat-icon",1),G(),F(2,"mat-menu",2,3)(4,"span",4),P(5,"Select a tracker"),G(),O(6,qWa,4,4,"button",5),G());if(a&2){var c=M(3);D("matMenuTriggerFor",c);oe("aria-label",b.isTrackerExpanded?"Expanded tracker menu":"Collapsed tracker menu");B(6);D("ngForOf",
b.associatedTrackers)}},dependencies:[yx,rB,XE,bF,$E,eF,lF],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 sWa=function(a){return[a]},tWa=function(){return[]},M2=function(a){this.activeSession=a;this.clickMenu=new Jw;this.showMenu=!1;this.clickLogo=new Jw;this.chips=[]};M2.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};M2.\u0275fac=function(a){return new (a||M2)(C(yH))};
M2.\u0275cmp=w({type:M2,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","App Logo Image",1,"logo","light",3,"src"],["alt","App Logo Image",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&&(Ee(),O(0,rWa,2,0,"button",0),F(1,"a",1),J("click",function(){return b.clickLogo.emit()}),H(2,"img",2)(3,"img",3),F(4,"h1"),P(5),G()(),Fe(6),O(7,uWa,2,5,"output",4));a&2&&(D("ngIf",b.showMenu),B(1),oe("href",b.href?b.href:void 0,Ud),B(1),D("src",b.imgSrc,Ud),B(1),D("src",b.imgSrcDark||b.imgSrc,Ud),B(2),Ke(b.name),B(2),D("ngForOf",b.chips))},dependencies:[xx,
yx,ux,rB,XE],styles:['[_nghost-%COMP%]{box-sizing:border-box;height:56px;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 zic=function(){return[]},N2=function(a){this.events=a;this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};N2.prototype.ngOnInit=function(){var a="QA"===this.environmentType?"INTERNAL"===this.frontendAccessMode||"PARTNER"===this.frontendAccessMode?"QA":"sandbox":"NIGHTLY"===this.environmentType?"nightly":"";a&&this.chips.push({name:a,color:"purple"})};N2.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};
N2.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:sh(this.frontendAccessMode,"unknown frontend access mode.")}};
ji.Object.defineProperties(N2.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"}}});N2.\u0275fac=function(a){return new (a||N2)(C(BK))};
N2.\u0275cmp=w({type:N2,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",associatedTrackers:"associatedTrackers",href:"href"},features:[Jc],decls:2,vars:7,consts:[[3,"name","href","chips","imgSrc","imgSrcDark","clickMenu"],[3,"associatedTrackers",4,"ngIf"],[3,"associatedTrackers"]],template:function(a,b){a&1&&(F(0,"app-logo",0),J("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),O(1,vWa,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);B(1);D("ngIf",0<(null!==(c=b.associatedTrackers)&&void 0!==c?c:Ne(6,zic)).length)}},dependencies:[ux,M2,L2],encapsulation:2,changeDetection:0});
var O2=function(){this.isActive=!1;this.optionClicked=new Jw};O2.prototype.ngOnInit=function(){};O2.prototype.onClick=function(){this.optionClicked.emit(this.index)};O2.\u0275fac=function(a){return new (a||O2)};
O2.\u0275cmp=w({type:O2,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&J("click",function(){return b.onClick()});a&2&&te("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&&(Ee(),F(0,"div",0),Fe(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 P2=function(a,b){this.ref=a;this.hostElement=b;this.items=[];this.header=null;this.itemSelected=new Jw;this.activeItemChanged=new Jw;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component team".split(" ")};P2.prototype.ngOnChanges=function(a){a.items&&(0<this.items.length?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};P2.prototype.ngAfterViewInit=function(){};var TWa=function(a){var b=K(3);$Wa(a);b.itemSelected.emit(a)};
P2.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(),Aic(this))};
P2.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(),Aic(this))};var Bic=function(a){null!=a.activeItemIndex&&a.itemSelected.emit(a.items[a.activeItemIndex])};P2.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var Cic=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}},Aic=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&sXb(b.nativeElement,a.hostElement.nativeElement)},$Wa=function(a){Nn(ao.SEARCH,"autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};P2.\u0275fac=function(a){return new (a||P2)(C(uI,2),C(wd))};
P2.\u0275cmp=w({type:P2,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&Hf(O2,5,wd);if(a&2){var c;Gf(c=Jf())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[Me([uI]),Jc],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",""],[3,"accessLevel"],["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&&(O(0,NWa,6,5,"div",0),F(1,"div",1),O(2,aXa,8,10,"b-app-search-auto-complete-option",
2),G());a&2&&(D("ngIf",b.header&&b.header.type),B(2),D("ngForOf",b.items))},dependencies:[yx,ux,BS,O2,Gx],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}b-access-level-indicator[_ngcontent-%COMP%]{margin:0 8px}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 Q2=function(){this.searchTriggered$=new U.Subject;this.queryState$=new U.BehaviorSubject({query:"",cursorPosition:void 0,setViaInteraction:!1})};Q2.\u0275fac=function(a){return new (a||Q2)};Q2.\u0275prov=lc({token:Q2,factory:Q2.\u0275fac,providedIn:"root"});
var Dic=["box"],Eic=["initialFocus"],Fic=["finalFocus"],R2=function(a,b){this.documentationLinks=a;this.appSearchState=b;this.placeholder="";this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new Jw;this.onAdvancedSearchClose=new Jw;this.onAdvancedSearchSubmit=new Jw;this.onSaveSearch=new Jw;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/guides/search-editor";this.destroyed$=new U.Subject;this.currentQuery$=
this.appSearchState.queryState$.pipe(S(function(c){return c.query}));this.autoCompleteItemSelected$=new U.Subject};
R2.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(lg(this.currentQuery$),jg(this.destroyed$)).subscribe(function(b){var c=r(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()})};
R2.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(xf(function(b){return!b.setViaInteraction}),jg(this.destroyed$)).subscribe(function(b){var c=b.cursorPosition;a.inputBox.nativeElement.value=b.query;null!=c&&(b=a.inputBox.nativeElement,RWb(b)&&(b.selectionStart=c,b.selectionEnd=c))})};R2.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};R2.prototype.submitSearch=function(){this.appSearchState.searchTriggered$.next()};
var Gic=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};
R2.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!S2(this))return;Hic(this);break;case "ArrowUp":if(!S2(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!S2(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!S2(this)){Gic(this,this.inputBox.nativeElement.value);return}Bic(this.acList);break;case "ArrowLeft":Gic(this,this.inputBox.nativeElement.value);return;case "Enter":S2(this)?null!=this.acList.activeItemIndex?Bic(this.acList):
this.submitSearch():this.submitSearch();break;default:return}a.preventDefault();a.stopPropagation()};R2.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Iic(this)};R2.prototype.getCursorPosition=function(){var a=SWb(this.inputBox.nativeElement,!0)[0];if(a===SWb(this.inputBox.nativeElement,!1)[1])return a};
var Hic=function(a){"auto_complete"===a.dropdownStatus&&(a.dropdownStatus="closed")},Iic=function(a){"advanced_search"===a.dropdownStatus&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},S2=function(a){return"auto_complete"===a.dropdownStatus&&0<a.autoCompleteItems.length},Jic=function(a){return"auto_complete"===a.dropdownStatus&&null!=a.autoCompleteHeader},Kic=function(a){return"advanced_search"===a.dropdownStatus};
R2.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",Iic(this))};var Lic=function(a,b){b.shiftKey&&"Tab"===b.key&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},Mic=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};R2.\u0275fac=function(a){return new (a||R2)(C(dP),C(Q2))};
R2.\u0275cmp=w({type:R2,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(Hf(P2,7),Hf(Dic,5),Hf(Eic,7,wd),Hf(Fic,7));if(a&2){var c;Gf(c=Jf())&&(b.acList=c.first);Gf(c=Jf())&&(b.inputBox=c.first);Gf(c=Jf())&&(b.advancedSearchInitialFocus=c.first);Gf(c=Jf())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",onAdvancedSearchClose:"onAdvancedSearchClose",
onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},ngContentSelectors:["*"],decls:28,vars:18,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,"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,"click"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[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=y();Ee();F(0,"div",0);J("clickOutside",function(){Hic(b)});F(1,"div",1)(2,"button",2);J("click",function(){return b.submitSearch()});H(3,"mat-icon",3);G();F(4,"textarea",4,5);J("keydown",function(d){return b.handleKeydown(d)})("input",function(){z(c);var d=M(5);return A(Gic(b,d.value))})("click",function(){z(c);
var d=M(5);return A(Gic(b,d.value))})("focus",function(){b.dropdownStatus="auto_complete"});G();F(6,"button",6);J("click",function(){b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit()});H(7,"mat-icon",7);G()();F(8,"aside",8)(9,"b-app-search-auto-complete-list",9);J("itemSelected",function(d){return b.autoCompleteItemSelected$.next(d)});G();F(10,"div",10)(11,"div",11)(12,"button",12,13);J("keydown",function(d){return Lic(b,d)})("click",function(){return Iic(b)});H(14,"mat-icon",14);G()();
F(15,"div",15);Fe(16);G();F(17,"div",16)(18,"button",17);J("click",function(){return b.submitAdvancedSearch()});P(19,"Search");G();F(20,"a",18);P(21,"Search help ");H(22,"mat-icon",19);G();F(23,"div",20)(24,"input",21,22);J("ngModelChange",function(d){return b.searchName=d})("keydown.Tab",function(){return Mic(b)})("keydown.enter",function(){return b.saveSearch()});G();F(26,"button",23);J("click",function(){return b.saveSearch()});H(27,"mat-icon",24);G()()()()()()}a&2&&(te("dropdown-opened",S2(b)||
Jic(b)||Kic(b)),B(1),te("hidden",Kic(b)),B(3),D("placeholder",b.placeholder),oe("aria-activedescendant",Cic(b.acList))("aria-expanded",S2(b)||Jic(b)),B(4),te("advanced-search-open",Kic(b)),B(1),te("hidden",!(S2(b)||Jic(b))),D("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(1),te("hidden",!Kic(b)),B(10),oe("href",b.searchHelpLink,Ud),B(4),D("ngModel",b.searchName),B(2),D("disabled",!b.searchName))},dependencies:[sA,rB,lF,XE,Qg,by,hy,hQ,WB,P2],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:transparent;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:8px;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 T2=function(a){this.currentTracker=a;this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new Jw;this.searchBoxOnAdvancedSearchClose=new Jw;this.searchBoxOnAdvancedSearchSubmit=new Jw;this.searchBoxOnSaveSearch=new Jw};T2.\u0275fac=function(a){return new (a||T2)(C(kM))};
T2.\u0275cmp=w({type:T2,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},ngContentSelectors:["*"],decls:6,vars:11,consts:[[3,"environmentType","frontendAccessMode","tracker","associatedTrackers"],[3,"placeholder","autoCompleteItems","autoCompleteHeader","onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch"]],template:function(a,b){a&1&&(Ee(),H(0,"b-app-logo",0),Q(1,"async"),Q(2,"async"),F(3,"b-app-search-box",1),J("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)}),Fe(4),G(),H(5,"b-app-actions"));a&2&&(D("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",R(1,7,b.currentTracker.tracker$))("associatedTrackers",R(2,9,b.currentTracker.associatedTrackers$)),B(3),D("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",
b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader))},dependencies:[N2,K2,R2,Fx],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 U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=Cc({type:U2});U2.\u0275inj=mc({imports:[Mx,UB,uG,LN]});
var Nic=[L2],V2=function(){};[].concat(v(Nic));[].concat(v(Nic));V2.\u0275fac=function(a){return new (a||V2)};V2.\u0275mod=Cc({type:V2});V2.\u0275inj=mc({imports:[Mx,uG,pF,fF,mH]});
var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=Cc({type:W2});W2.\u0275inj=mc({imports:[Mx,pF,uG,fF,mH]});
var Oic=[M2],X2=function(){};[].concat(v(Oic));[].concat(v(Oic));X2.\u0275fac=function(a){return new (a||X2)};X2.\u0275mod=Cc({type:X2});X2.\u0275inj=mc({imports:[Mx,uG,pF,mH]});
var Y2=function(){};Y2.\u0275fac=function(a){return new (a||Y2)};Y2.\u0275mod=Cc({type:Y2});Y2.\u0275inj=mc({providers:[EO]});
var Z2=function(){};Z2.\u0275fac=function(a){return new (a||Z2)};Z2.\u0275mod=Cc({type:Z2});Z2.\u0275inj=mc({imports:[Mx,uG,pF,mH,Y2]});
var a3=function(){};a3.\u0275fac=function(a){return new (a||a3)};a3.\u0275mod=Cc({type:a3});a3.\u0275inj=mc({imports:[Mx,fF,uG,eI,mH,pF,xA,wy,iQ,W2,jP,X2,MS,YB,F2,Z2,U2,V2]});
var b3=function(){};b3.\u0275fac=function(a){return new (a||b3)};b3.\u0275mod=Cc({type:b3});b3.\u0275inj=mc({imports:[Mx,uG,UB]});
var c3=function(){};c3.\u0275fac=function(a){return new (a||c3)};c3.\u0275mod=Cc({type:c3});c3.\u0275inj=mc({imports:[Mx,wy,uG,hC,fC,UB,qV]});
var d3=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 Jw;this.selectedChange=new Jw;this.cardTitleChange=new Jw;this.onSaveButtonClicked=new Jw;this.onCancelButtonClicked=
new Jw;this.isInheritedChange=new Jw;this.isExpanded=!1};d3.prototype.expand=function(){this.isExpanded=!0};d3.prototype.collapse=function(){this.isExpanded=!1};d3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};d3.\u0275fac=function(a){return new (a||d3)};
d3.\u0275cmp=w({type:d3,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&&(Ee(),F(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),J("change",function(d){b.selected=d.checked;b.expand();b.selectedChange.emit(b.selected)}),G(),O(3,bXa,3,3,"ng-container",3),F(4,"button",4),J("click",function(){b.isExpanded?b.collapse():b.expand()}),O(5,cXa,1,0,"mat-icon",5),O(6,dXa,1,0,"mat-icon",6),G(),O(7,iXa,3,7,"ng-template",null,
7,Pf),G(),O(9,jXa,2,0,"div",8),O(10,oXa,9,6,"div",9),G());if(a&2){var c=M(8);oe("aria-expanded",b.isExpanded);B(2);te("expanded-checkbox",b.isExpanded);D("disabled",b.disabled)("checked",b.selected)("aria-label",b.cardTitle);B(1);D("ngIf",!b.isExpanded)("ngIfElse",c);B(1);D("ngClass",b.isExpanded?"collapse-toggle":"expand-toggle");oe("aria-label",b.isExpanded?"Collapse editor":"Expand editor");B(1);D("ngIf",b.isExpanded);B(1);D("ngIf",!b.isExpanded);B(3);D("ngIf",b.isExpanded);B(1);D("ngIf",b.isExpanded)}},
dependencies:[xx,yx,ux,Qg,by,sy,ty,hy,tO,rB,nT,XE,eC,bC,GS,ES,nB,$H,gC,lF],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-color:#9aa0a6;border-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 e3=function(){};e3.\u0275fac=function(a){return new (a||e3)};e3.\u0275mod=Cc({type:e3});e3.\u0275inj=mc({imports:[Mx,wy,yO,uG,qT,pF,HS,eI,hC,mH]});
var f3=function(a){Z.call(this,a,-1,Pic)};V(f3,Z);f3.prototype.getFieldIdList=function(){return xb(this,hl,1)};f3.prototype.setFieldIdList=function(a){return Fb(this,1,a)};var Pic=[1];f3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Hb(this.getFieldIdList(),jJ)}:void 0;return a};f3.messageId="b.ReorderFieldsRequest";
var g3=function(a){Z.call(this,a,-1,Qic)};V(g3,Z);g3.prototype.getFieldIdList=function(){return xb(this,hl,1)};g3.prototype.setFieldIdList=function(a){return Fb(this,1,a)};var Qic=[1];g3.prototype.toObject=function(){var a=null!=this?{fieldIdList:Hb(this.getFieldIdList(),jJ)}:void 0;return a};g3.messageId="b.ReorderFieldsResponse";
var h3=function(a){this.executor=a};h3.prototype.updateCustomFieldState=function(a,b,c){var d=new hl;d.setCustomFieldId(b);var e=new kJ;Gb(e,1,d);e.setStateOnIssues(c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:kJ})};h3.prototype.reorder=function(a,b){b=(new f3).setFieldIdList(b);return this.executor.post({url:"action/components/"+a+"/reorder",body:b,responseConstructor:g3})};h3.\u0275fac=function(a){return new (a||h3)(t(pI))};
h3.\u0275prov=lc({token:h3,factory:h3.\u0275fac,providedIn:"root"});
var Ric=["SILENT","MINOR","MAJOR"];
var Sic=["fieldStateMenu"],sXa=function(a){return{type:a}},i3=function(a,b,c,d,e,f,h,k,q,u,x){yI.call(this);var E=this;this.customFieldsApi=a;this.checkBeforeExit=b;this.butterBar=c;this.analytics=d;this.routeParams=e;this.componentActions=f;this.fieldConfigService=h;this.documentationLinks=k;this.paths=q;this.confirmationDialog=u;this.appEvents=x;this.FieldType=iYb;this.ListFieldType=bZb;this.getSingleEditFieldType=jYb;this.getListFieldType=cZb;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.typeChoices=Object.values(TAb).filter(function(I){return!I.includes("REPEATED")});this.significanceChoices=Ric;Object.keys(Vpa).slice(0).filter(function(I){return"UNSPECIFIED"!==I});this.componentId_=Ki(this.routeParams.componentId);this.subscriptions.add(LY(b,function(){return E.hasUnsavedChanges()},!0))};V(i3,yI);
i3.\u0275dir=yI.\u0275dir;i3.prototype.ngOnInit=function(){Tic(this)};i3.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};
i3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||q5b())this.editableField=Fi(this.customFields[a]),this.originalEditableFieldValue_=Fi(this.editableField),this.serverError=null,this.setType(this.editableField.type),wXa(this,this.editableField.allowedValue)};
var IXa=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:In("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)}})};
i3.prototype.doDelete=function(a){var b=this;tK(this.butterBar,"Deleting field: "+a.name,2E3);this.customFieldsApi.delete(this.componentId_,a.customFieldId).then(function(){b.appEvents.componentModified.next(b.componentId_);Zn(b.analytics,"customField","delete");tK(b.butterBar,"Deleted field: "+a.name,2E3);Tic(b)})};
i3.prototype.save=function(){var a=this;this.isLoading=!0;var b=function(){a.appEvents.componentModified.next(a.componentId_);Tic(a);Zn(a.analytics,"customField",d)},c=function(e){a.serverError=$m(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)};
i3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId_,a.customFieldId,b).pipe(jg(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}Zn(d.analytics,"customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId_).then(function(){return Tic(d,
!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=$m(h);d.isLoading=!1;f(h)})})};i3.prototype.cancel=function(){this.originalEditableFieldValue_=this.editableField=null};
var zXa=function(a,b){var c=a.editableField.type;a.editableField.typedDefaultValue=new jl({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})};
i3.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 wXa=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}}):[]};i3.prototype.hasUnsavedChanges=function(){return this.editableField&&!Ei(this.editableField,this.originalEditableFieldValue_)?!0:!1};
var Tic=function(a,b){b=void 0===b?!1:b;b||(a.isLoading=!0);return a.componentActions.get(a.componentId_).then(function(c){var d,e=(null==(d=c.componentPathInfo)?void 0:d.allCustomField)||[];d=[];a.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]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");a.editableField=null;a.originalEditableFieldValue_=null;b||(a.isLoading=
!1);c=function(k,q){return Yt(k.name,q.name)};a.customFields=e.filter(function(k){return a.componentId_===k.componentId}).sort(c);a.inheritedCustomFields=e.filter(function(k){return a.componentId_!==k.componentId}).sort(c);a.appEvents.customFieldsModified.next(e)})},OXa=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};i3.prototype.trackClick=function(a){Zn(this.analytics,"editComponent","click",a)};
var AXa=function(a){var b,c;return null==(b=a.editableField)?void 0:null==(c=b.typedDefaultValue)?void 0:c.getValue()};i3.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};i3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
i3.\u0275fac=function(a){return new (a||i3)(C(fZ),C(KY),C(sK),C(FM),C(IR),C(iT),C(h3),C(dP),C(GK),C(PM),C(BK))};
i3.\u0275cmp=w({type:i3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&Hf(Sic,5);if(a&2){var c;Gf(c=Jf())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[ie,Jc],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"],["format","fill",1,"",3,"disabled","onAction"],["format","hairline",3,"onAction"],[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"],[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"],["format","fill",3,"onAction"]],template:function(a,b){a&1&&(F(0,"div",0),O(1,FXa,68,32,"div",1),O(2,GXa,2,1,"div",2),O(3,UXa,26,7,"div",3),G());a&2&&(B(1),D("ngIf",b.editableField&&!b.isLoading),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[xx,yx,ux,iy,Qg,by,cy,sy,hy,fy,fV,LU,BH,hO,XZ,dN,eN,hN,fN,CS,lF,bF,$E,eF,ZE,rB,SZ,tV,aN,KI,mM,nM,pM],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 j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=Cc({type:j3});j3.\u0275inj=mc({imports:[Mx,wy,gV,MU,dI,iO,YZ,ON,NS,mH,fF,uG,HS,TZ,uV,zM,MN,QI]});
var k3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new Jw;this.addRow=new Jw;this.optionsChange=new Jw};k3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};k3.prototype.drop=function(a){ep(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};k3.\u0275fac=function(a){return new (a||k3)};
k3.\u0275cmp=w({type:k3,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&&(F(0,"div",0)(1,"div",1)(2,"span",2),P(3," Dropdown value "),G()(),F(4,"div",3)(5,"span",4),P(6," Average days "),G(),H(7,"mat-icon",5),G()(),F(8,"div",6),J("cdkDropListDropped",function(c){return b.drop(c)}),O(9,WXa,12,13,"div",7),G(),O(10,XXa,2,0,"button",8));a&2&&(B(2),te("muted",b.disabled),B(3),te("muted",b.disabled),B(2),D("matTooltip","All estimated effort types map to an average number of days."),B(2),D("ngForOf",b.options),B(1),D("ngIf",!b.disabled))},dependencies:[yx,ux,eC,gC,rB,
XE,lF,cV,dV,XU],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 l3=function(){this.disabled=!1;this.valueChange=new Jw};l3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};l3.\u0275fac=function(a){return new (a||l3)};
l3.\u0275cmp=w({type:l3,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&&(F(0,"div",0)(1,"div",1)(2,"span",2),P(3," Time "),G(),F(4,"span",3),P(5,"1"),G()(),F(6,"div",1)(7,"div",4)(8,"span",5),P(9," Average days "),G(),H(10,"mat-icon",6),G(),F(11,"mat-form-field",
7)(12,"input",8,9),J("change",function(d){return b.onValueChange(d)}),G()()()());if(a&2){var c=M(13);B(2);te("muted",b.disabled);B(6);te("muted",b.disabled);B(2);D("matTooltip","All estimated effort types map to an average number of days.");B(1);D("appearance",c.focused?"standard":"none");B(1);D("disabled",b.disabled)("value",b.value)}},dependencies:[eC,gC,XE,lF],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 n3=function(a){this.activeSession=a;this.disabled=!1;this.updateEffortSpec=new Jw;this.configurationOptions=[Uic,Vic,m3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=hGb;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=AH(this.activeSession,"enableAggregationRules")};
n3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&yl(this.effortSpec,4,zl)&&(this.originalSelectedEffortConfig=m3)};n3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=this.effortSpec.clone(),this.setValues(this.effortSpec))};
n3.prototype.setValues=function(a){if(yl(a,4,zl)){this.selectedEffortConfig=m3;var b,c,d;this.numericSpecMultiplier=null!=(d=null==(b=this.effortSpec)?void 0:null==(c=Al(b,rl,4,zl))?void 0:Bl(c,1))?d:1}yl(a,5,zl)&&(this.selectedEffortConfig=void 0,this.enumSpecOptions=Cl(a).getOptionsList().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(yl(a,5,zl)||yl(a,4,zl))this.estimatedEffortFieldEnabled=
!0;X(a,6,0)!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=X(a,6,0))};var Wic=function(a){var b,c,d;if((null==(b=a.effortSpec)?0:yl(b,5,zl))&&!a.selectedEffortConfig||(null==(c=a.selectedEffortConfig)?void 0:c.displayText)===Uic.displayText||(null==(d=a.selectedEffortConfig)?void 0:d.displayText)===Vic.displayText)return"enum";var e;return(null==(e=a.selectedEffortConfig)?void 0:e.displayText)===m3.displayText?"numeric":"empty"};
n3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};n3.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=r(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 Xic=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};n3.\u0275fac=function(a){return new (a||n3)(C(yH))};
n3.\u0275cmp=w({type:n3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Jc],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&&(F(0,"b-collapsible-card",0),J("cardTitleChange",function(c){return b.name=c})("dropdownSelectionChanged",function(c){b.selectedEffortConfig=
c;c.displayText===Uic.displayText?(b.enumSpecOptions=[].concat(v(Yic)),b.name="Story points"):c.displayText===Vic.displayText?(b.enumSpecOptions=[].concat(v(Zic)),b.name="T-shirt sizes"):c.displayText===m3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0})("onSaveButtonClicked",function(){var c=new ql;if(b.estimatedEffortFieldEnabled){c.setName(b.name).setInherit(b.inherit);b.enableAggregationRules&&ul(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)===m3.displayText)fqa(c,gqa(new rl,b.numericSpecMultiplier));else if(0<b.enumSpecOptions.length){d=[];for(var e=r(b.enumSpecOptions),f=e.next();!f.done;f=e.next())f=f.value,f.label&&null!==f.value&&d.push((new tl).setLabel(f.label).setValue(f.value));hqa(c,(new sl).setOptionsList(d))}}else c.setName("").setInherit(!1);b.updateEffortSpec.emit(c)})("selectedChange",
function(c){b.estimatedEffortFieldEnabled=c;b.estimatedEffortFieldEnabled||Xic(b)})("onCancelButtonClicked",function(){b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,Xic(b))})("isInheritedChange",function(c){(c=c.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:(new ql).setName("Estimated effort")),b.effortSpec=b.parentEffortSpec,b.effortSpec||Xic(b)):b.effortSpec&&(b.setValues(new ql),
Xic(b));b.inherit=c}),F(1,"div",1),O(2,ZXa,2,1,"ng-container",2),O(3,$Xa,2,2,"ng-container",2),O(4,aYa,1,0,"ng-container",2),G(),O(5,bYa,23,13,"div",3),G(),O(6,cYa,1,2,"ng-template",null,4,Pf));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),B(1),D("ngSwitch",Wic(b)),B(1),D("ngSwitchCase","enum"),B(1),D("ngSwitchCase","numeric"),B(1),D("ngSwitchCase","empty"),B(1),D("ngIf",b.enableAggregationRules&&b.estimatedEffortFieldEnabled))},dependencies:function(){return[ux,Ex,Ax,Bx,eC,sB,XE,d3,lF,GS,ES,nB,k3,l3,o3]},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}\n/*# sourceMappingURL=estimated_effort_config.css.map */"]});
var Yic=[{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}],Zic=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],Uic={displayText:"Story points",icon:"story-point-24px"},Vic={displayText:"T-shirt sizes",icon:"t-shirt-24px"},m3={displayText:"Time",icon:"time-24px"},o3=function(){};
o3.prototype.transform=function(a){switch(a){case 2:return"Max Point";default:return"Simple Sum"}};o3.\u0275fac=function(a){return new (a||o3)};o3.\u0275pipe=Ec({name:"aggregationRuleText",type:o3,pure:!0});
var p3=function(){this.disabled=!1;this.updateComponent=new Jw};p3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.effortSpecJspb=vl(this.effortSpec));a.parentEffortSpec&&this.parentEffortSpec&&(this.parentEffortSpecJspb=vl(this.parentEffortSpec))};p3.\u0275fac=function(a){return new (a||p3)};
p3.\u0275cmp=w({type:p3,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},features:[Jc],decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"effortSpec","parentEffortSpec","disabled","updateEffortSpec"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),P(2,"Once activated, standard fields appear in the right panel of all issues."),G(),F(3,"b-estimated-effort-config",
2),J("updateEffortSpec",function(c){b.updateComponent.emit(c)}),G()());a&2&&(B(3),D("effortSpec",b.effortSpecJspb)("parentEffortSpec",b.parentEffortSpecJspb)("disabled",b.disabled))},dependencies:[n3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});
var q3=function(){};q3.\u0275fac=function(a){return new (a||q3)};q3.\u0275mod=Cc({type:q3});q3.\u0275inj=mc({imports:[Mx,hC,uG,pF,yO,e3,mH,HS,eV]});
var r3=function(){};r3.\u0275fac=function(a){return new (a||r3)};r3.\u0275mod=Cc({type:r3});r3.\u0275inj=mc({imports:[Mx,e3,q3]});
var $ic={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};
var s3=function(a,b,c,d,e,f,h,k,q,u){yI.call(this);var x=this;this.data=a;this.dialogRef=b;this.pathBuilder=c;this.teamsService=d;this.componentActions=e;this.userPreferencesManager=f;this.snackBar=h;this.analytics=k;this.errorHandler=q;this.componentFridge=u;this.teamSuggestionIds=[];this.header="";this.teamOptions=[];this.teamAction="CHANGE";this.WarningType=$ic;this.warningType=a.warningType;this.componentId=a.componentId;this.parentComponentId=a.parentComponentId;this.teamSuggestionIds=a.teamSuggestionIds;
this.selectedTeam=new ajc(this.teamSuggestionIds[0]||"0",[]);this.componentSetting=this.pathBuilder.editComponent(this.componentId,"basic");this.suggestedTeams$=LKb(this.teamsService,this.teamSuggestionIds).pipe(S(function(E){var I=[];E=Zi(E,1,VL);for(var N=r(x.teamSuggestionIds),L=N.next();!L.done;L=N.next())L=L.value,E.has(L)&&I.push(new ajc(L,ob(E.get(L),6)));return I}),hg([]));this.myTeams$=$L(this.teamsService,"").pipe(S(function(E){var I=[];E=E.getTeamSuggestionsList();E=r(E);for(var N=E.next();!N.done;N=
E.next())N=N.value,I.push(new ajc(N.getId(),N.getPathNamesList()));return I}));(0,U.combineLatest)([this.suggestedTeams$,this.myTeams$]).pipe(S(function(E){var I=r(E);E=I.next().value;I=I.next().value;return[].concat(v(E),v(I))}),S($Bb(function(E){return E.teamId})),jg(this.destroyed$)).subscribe(function(E){x.teamOptions=E;x.selectedTeam=E[0]})};V(s3,yI);s3.\u0275dir=yI.\u0275dir;
s3.prototype.ngOnInit=function(){"MISSING"===this.warningType?this.header="Add team to the component":"DELETED"===this.warningType&&(this.header="Change team mapping for this component")};
s3.prototype.confirm=function(){var a=this;if("CHANGE"===this.teamAction)0<this.parentComponentId?this.componentActions.get(this.parentComponentId).then(function(c){var d;bjc(a,(null==(d=c.team)?void 0:d.id)||"0",a.selectedTeam.teamId)}):bjc(this,"0",this.selectedTeam.teamId);else{var b=Fi(this.userPreferencesManager.teamWarningPreferencesSubject$.value);b.componentTeamWarnings.push({componentId:this.componentId,dismissMillis:(new Date).getTime()});DFb(this.userPreferencesManager,b).pipe(jg(this.destroyed$)).subscribe(function(){Zn(a.analytics,
ao.TEAM_WARNING,"dismiss","componentId",a.componentId);var c;null==(c=a.dialogRef)||c.close()},function(){})}};var bjc=function(a,b,c){a.componentActions.updateTeam(a.componentId,{inherit:c===b,id:c}).then(function(d){a.componentFridge.announce(d);Zn(a.analytics,ao.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)})};
s3.prototype.selectOption=function(a){this.selectedTeam=a};s3.prototype.trackClick=function(a){Zn(this.analytics,ao.TEAM_WARNING,"click",a)};s3.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};s3.\u0275fac=function(a){return new (a||s3)(C(NB),C(CB),C(MX),C(ZL),C(iT),C(VI),C(pK),C(FM),C(xK),C(IJ))};
s3.\u0275cmp=w({type:s3,selectors:[["b-team-warning-dialog"]],features:[ie],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&&(F(0,"h1",0),P(1),G(),O(2,eYa,5,1,"div",1),
O(3,fYa,5,1,"div",1),O(4,gYa,7,1,"mat-radio-group",2),O(5,kYa,6,6,"div",3),F(6,"mat-dialog-actions")(7,"button",4),P(8," Cancel "),G(),F(9,"button",5),J("click",function(){return b.confirm()}),P(10," Confirm "),G()());a&2&&(B(1),Ke(b.header),B(1),D("ngIf",b.warningType===b.WarningType.MISSING),B(1),D("ngIf",b.warningType===b.WarningType.DELETED),B(1),D("ngIf",b.warningType===b.WarningType.MISSING),B(1),D("ngIf",0<b.teamOptions.length))},dependencies:[ux,by,hy,rB,sB,QB,RB,SB,TB,XE,OX,QX,lF,NP],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 ajc=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};
var t3=function(a,b){yI.call(this);this.matDialogService=a;this.analytics=b;this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new Jw};V(t3,yI);t3.\u0275dir=yI.\u0275dir;t3.prototype.ngOnInit=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")};
t3.prototype.openDialog=function(){var a=this;Zn(this.analytics,ao.TEAM_WARNING,"open");DB(this.matDialogService.open(s3,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.getTeamId())})}})).pipe(jg(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};t3.\u0275fac=function(a){return new (a||t3)(C(PB),C(FM))};
t3.\u0275cmp=w({type:t3,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[ie],decls:4,vars:2,consts:[["messageType","caution","format","app"],[4,"ngIf"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(F(0,"b-callout",0)(1,"b-callout-body"),P(2),G(),O(3,lYa,3,1,"b-callout-actions",1),G());a&
2&&(B(2),Je(" ",b.warningMessage," "),B(1),D("ngIf",!b.messageOnly))},dependencies:[hO,jI,kI,ux],encapsulation:2});
var u3=function(a){var b=this;this.teamsService=a;this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new Jw;this.inherit=!1;this.selectedTeam$=new U.Subject;this.teamIdChanged$=new U.ReplaySubject(1);this.placeholder$=this.teamIdChanged$.pipe(S(function(c){return"0"===c?!b.isAdmin||!b.isTopLevel&&b.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),hg(""));this.teamFromId$=this.teamIdChanged$.pipe(ig(function(c){return"0"===
c?(0,U.of)(new ns([c],[""],"")):b.teamsService.getTeam(c).pipe(S(function(d){return new ns([],ob(d,6),d.getDescription())}),Sf(function(){return(0,U.of)(new ns([c],[c],""))}))}));this.displayedTeam$=(0,U.merge)(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(ig(function(c){return"0"===c?(0,U.of)("MISSING"):b.teamsService.getTeam(c).pipe(S(function(d){return d.getDeleted()?"DELETED":"VALID"}))}))};
u3.prototype.updateSelectionOnChange=function(a){Nn(ao.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)};u3.prototype.ngOnChanges=function(a){a.model&&(this.inherit=this.model.inherit,this.teamIdChanged$.next(this.model.id))};u3.prototype.ngOnInit=function(){Object.assign({},this.model);this.inherit=this.model.inherit;this.teamIdChanged$.next(this.model.id)};
var us=function(a){return a.model.id&&"0"!==a.model.id};u3.prototype.getMomaTeamLink=function(){return us(this)?"https://moma.corp.google.com/team/"+this.model.id:null};u3.\u0275fac=function(a){return new (a||u3)(C(ZL))};
u3.\u0275cmp=w({type:u3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},features:[Jc],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&&(F(0,"div"),O(1,nYa,2,1,"ng-container",0),Q(2,"async"),O(3,oYa,3,2,"div",1),F(4,"div",2)(5,"label",3),P(6,"Team selection"),G(),F(7,"b-team-picker",
4),J("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model)}),Q(8,"async"),Q(9,"async"),G(),O(10,qYa,2,1,"ng-container",5),G()(),O(11,sYa,1,1,"ng-template",null,6,Pf));if(a&2){var c=M(12);B(1);D("ngIf",R(2,7,b.warningType$));B(2);D("ngIf",!b.isTopLevel);B(4);D("placeholder",R(8,9,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",R(9,11,b.displayedTeam$));B(3);D("ngIf",b.useInternalLink)("ngIfElse",
c)}},dependencies:[ux,tO,lF,w2,t3,XE,sB,KI,Fx],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 v3=function(){};v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275mod=Cc({type:v3});v3.\u0275inj=mc({imports:[iO,jO,Mx,wy,uG,UB,pF,XX,nK,mH,bQ]});
var w3=function(){};w3.\u0275fac=function(a){return new (a||w3)};w3.\u0275mod=Cc({type:w3});w3.\u0275inj=mc({imports:[Mx,mN,yO,mH,y2,v3,wy,pF,uG,QI]});
var cjc=function(){return"mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}"},x3=function(a){this.documentationLinks=a};x3.\u0275fac=function(a){return new (a||x3)(C(dP))};
x3.\u0275cmp=w({type:x3,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&&(F(0,"h1",0),P(1,"Apply component retention settings?"),G(),F(2,"div",
1)(3,"p"),P(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(),F(5,"a",2),P(6,"Learn more"),G()(),F(7,"div",3)(8,"button",4),P(9," Cancel "),G(),F(10,"button",5),P(11," OK "),G()());a&2&&(B(5),D("href",qt(),Ud),B(3),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},dependencies:[QB,RB,SB,TB,rB],encapsulation:2});
var y3=function(a){this.documentationLinks=a;this.indefiniteRetentionAcknowledged=!1};y3.\u0275fac=function(a){return new (a||y3)(C(dP))};
y3.\u0275cmp=w({type:y3,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&&(F(0,
"h1",0),P(1,"Retain issue indefinitely?"),G(),F(2,"div",1)(3,"p"),P(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),G(),F(5,"p")(6,"b"),P(7,"Please note indefinite retention is not appropriate in many circumstances."),G(),H(8,"br"),P(9," Before selecting this option, you should make sure at least one of the following is true: "),G(),F(10,"ul")(11,"li"),P(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
G(),F(13,"li"),P(14," You have a process in place to manually delete this issue within an approved period of time. "),G(),F(15,"li"),P(16," Legal and Privacy have approved this non-standard retention period. "),G()(),H(17,"p"),F(18,"p")(19,"a",2),P(20,"Learn more"),G()(),F(21,"b-checkbox",3),J("change",function(c){return b.indefiniteRetentionAcknowledged=c}),G()(),F(22,"div",4)(23,"button",5),P(24," Cancel "),G(),F(25,"button",6),P(26," OK "),G()());a&2&&(B(19),D("href",qt(),Ud),B(2),D("checked",
b.indefiniteRetentionAcknowledged),B(2),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[QB,RB,SB,TB,rB,fQ],styles:[".mat-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var z3=function(a){this.documentationLinks=a;this.REMOVAL_URL=tYa()};z3.\u0275fac=function(a){return new (a||z3)(C(dP))};
z3.\u0275cmp=w({type:z3,selectors:[["b-issue-flag-as-spam-dialog"]],decls:18,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&&(F(0,"h1",0),P(1,"Report spam?"),G(),F(2,"div",1)(3,
"p"),P(4," This will remove the issue from search results but will not delete it from the database. "),F(5,"a",2),P(6,"Learn more"),G()(),H(7,"p"),F(8,"p"),P(9," To delete PII or other sensitive content, "),F(10,"a",2),P(11,"file a support request"),G(),P(12,". "),G()(),F(13,"div",3)(14,"button",4),P(15," Cancel "),G(),F(16,"button",5),P(17," Report spam "),G()());a&2&&(B(5),a=b.documentationLinks,a=a.session.isExternalSession()?a.baseDocumentationUrl+"#terms_of_service":"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/public-access#spam",
D("href",a,Ud),B(5),D("href",b.REMOVAL_URL,Ud),B(4),D("mat-dialog-close",!1),B(2),D("mat-dialog-close",!0))},dependencies:[QB,RB,SB,TB,rB],encapsulation:2});var A3=function(a,b){this.dialogRef=b;this.newTitle=a.title};A3.prototype.keydown=function(a){"Enter"===a.key&&this.dialogRef.close(this.newTitle)};A3.\u0275fac=function(a){return new (a||A3)(C(NB),C(CB))};
A3.\u0275cmp=w({type:A3,selectors:[["b-issue-edit-title-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","","autocomplete","off",3,"ngModel","ngModelChange","keydown"],["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"]],template:function(a,b){a&1&&(F(0,"h1",0),P(1,"Edit issue title"),G(),F(2,"div",
1)(3,"mat-form-field")(4,"mat-label"),P(5,"Enter a new issue title:"),G(),F(6,"input",2),J("ngModelChange",function(c){return b.newTitle=c})("keydown",function(c){return b.keydown(c)}),G()()(),F(7,"div",3)(8,"button",4),P(9," Cancel "),G(),F(10,"button",5),P(11," OK "),G()());a&2&&(B(6),D("ngModel",b.newTitle),B(4),D("mat-dialog-close",b.newTitle))},dependencies:[QB,RB,SB,TB,rB,eC,bC,gC,Qg,by,hy],styles:["mat-form-field[_ngcontent-%COMP%] { width: 100%; }"]});
var B3=function(a,b){this.documentationLinks=b;this.commentNumber=a.commentNumber;this.issueId=a.issueId;this.deletionReasons=a.deletionReasons};B3.\u0275fac=function(a){return new (a||B3)(C(NB),C(dP))};
B3.\u0275cmp=w({type:B3,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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"label"),P(4,"Please select the reason for deleting this comment."),G(),F(5,"a",2),P(6," \u00a0Learn more "),G(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),O(8,vYa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),P(11," Cancel "),G(),F(12,"button",7),P(13," Delete "),G()());a&2&&(B(1),Le("Delete Comment #",b.commentNumber," of Issue ",b.issueId,
""),B(4),D("href",QNb(b.documentationLinks),Ud),B(2),D("ngModel",b.selectedReason),B(1),D("ngForOf",b.deletionReasons),B(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[yx,ux,QB,RB,SB,TB,rB,by,hy,OX,QX],styles:[cjc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var C3=function(a,b){this.documentationLinks=b;this.deletionReasons=a.deletionReasons;this.attachmentId=a.attachmentId};C3.\u0275fac=function(a){return new (a||C3)(C(NB),C(dP))};
C3.\u0275cmp=w({type:C3,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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"span"),P(4," Please select the reason for deleting this attachment. "),F(5,"a",2),P(6," \u00a0Learn more "),G()(),F(7,"mat-radio-group",3),J("ngModelChange",function(c){return b.selectedReason=c}),O(8,xYa,3,4,"mat-radio-button",4),G()(),F(9,"div",5)(10,"button",6),P(11," Cancel "),G(),F(12,"button",7),P(13," Delete "),G()());a&2&&(B(1),Je("Delete attachment ",b.attachmentId,""),B(4),D("href",
QNb(b.documentationLinks),Ud),B(2),D("ngModel",b.selectedReason),B(1),D("ngForOf",b.deletionReasons),B(4),D("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[yx,ux,QB,RB,SB,TB,rB,by,hy,OX,QX],styles:[cjc(),"mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var D3=function(){};D3.\u0275fac=function(a){return new (a||D3)};D3.\u0275mod=Cc({type:D3});D3.\u0275inj=mc({imports:[Mx,UB,uG,gQ,hC,wy,fC,pF,XX]});
var E3=function(){};E3.\u0275fac=function(a){return new (a||E3)};E3.\u0275mod=Cc({type:E3});E3.\u0275inj=mc({imports:[Mx,wy,uG,hC,fC,UB]});
var F3=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},djc=function(a){a.fields.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};F3.prototype.drop=function(a){ep(this.fields,a.previousIndex,a.currentIndex);this.detectChanges()};
var yYa=function(a,b){return 0<b?(ep(a.fields,b,b-1),a.detectChanges(),!0):!1},zYa=function(a,b){return b<a.fields.length-1?(ep(a.fields,b,b+1),a.detectChanges(),!0):!1};F3.prototype.trackByFn=function(){return-1};F3.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.")};
F3.prototype.onKeyDown=function(a,b){switch(a.key){case " ":a.preventDefault();ejc(this,b);break;case "Tab":this.grabbed&&ejc(this,b);break;case "ArrowUp":fjc(this,a);break;case "ArrowDown":fjc(this,a)}};
var ejc=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."))},fjc=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&void 0!==a.grabbedIndex){if("ArrowUp"===b.key){if(yYa(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else zYa(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."))}}};F3.prototype.detectChanges=function(){this.hasChanges=!Ei(this.fields,this.originalFields)};F3.\u0275fac=function(a){return new (a||F3)(C(NB),C(CB),C(Pz))};
F3.\u0275cmp=w({type:F3,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&&(F(0,"div",0)(1,"div",1)(2,"h1",2),P(3," Reorder custom fields "),G(),F(4,"button",3),J("click",function(){return djc(b)}),H(5,"mat-icon",4),G()()(),F(6,"div",5)(7,"ol",6),J("cdkDropListDropped",function(c){return b.drop(c)}),O(8,AYa,9,7,"li",7),G()(),F(9,"div",8)(10,"button",9),J("click",function(){return b.dialogRef.close()}),P(11," Cancel "),G(),F(12,"button",10),J("click",function(){return b.dialogRef.close(b.fields)}),P(13," Save "),G()());a&2&&(B(8),
D("ngForOf",b.fields)("ngForTrackBy",b.trackByFn),B(4),D("disabled","CUSTOMIZED"===b.fieldOrdering&&!b.hasChanges))},dependencies:[yx,rB,RB,SB,TB,cV,dV,XU,lF,XE],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-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 G3=new sd("CDK_TABLE");new sd("text-column-options");
var H3=function(a){this.template=a};H3.\u0275fac=function(a){return new (a||H3)(C(Df))};H3.\u0275dir=w({type:H3,selectors:[["","cdkCellDef",""]]});var I3=function(a){this.template=a};I3.\u0275fac=function(a){return new (a||I3)(C(Df))};I3.\u0275dir=w({type:I3,selectors:[["","cdkHeaderCellDef",""]]});var J3=function(a){this.template=a};J3.\u0275fac=function(a){return new (a||J3)(C(Df))};J3.\u0275dir=w({type:J3,selectors:[["","cdkFooterCellDef",""]]});
var gjc=BYa(function(){}),K3=function(a){var b=gjc.call(this)||this;b._table=a;b._stickyEnd=!1;return b};V(K3,gjc);K3.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};K3.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
ji.Object.defineProperties(K3.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=bh(a);this._hasStickyChanged=b!==this._stickyEnd}}});K3.\u0275fac=function(a){return new (a||K3)(C(G3,8))};
K3.\u0275dir=w({type:K3,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(If(c,H3,5),If(c,I3,5),If(c,J3,5));if(a&2){var d;Gf(d=Jf())&&(b.cell=d.first);Gf(d=Jf())&&(b.headerCell=d.first);Gf(d=Jf())&&(b.footerCell=d.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[Me([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:K3}]),ie]});
var hjc=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,v(a._columnCssClassName))},L3=function(a,b){hjc.call(this,a,b)};V(L3,hjc);L3.\u0275fac=function(a){return new (a||L3)(C(K3),C(wd))};L3.\u0275dir=w({type:L3,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ie]});
var M3=function(a,b){hjc.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"))};V(M3,hjc);M3.\u0275fac=function(a){return new (a||M3)(C(K3),C(wd))};M3.\u0275dir=w({type:M3,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ie]});
var ijc=function(){this.tasks=[];this.endTasks=[]},jjc=new sd("_COALESCED_STYLE_SCHEDULER"),N3=function(a){this._ngZone=a;this._currentSchedule=null;this._destroyed=new U.Subject};N3.prototype.schedule=function(a){this._createScheduleIfNeeded();this._currentSchedule.tasks.push(a)};N3.prototype.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete()};
N3.prototype._createScheduleIfNeeded=function(){var a=this;this._currentSchedule||(this._currentSchedule=new ijc,this._getScheduleObservable().pipe(jg(this._destroyed)).subscribe(function(){for(;a._currentSchedule.tasks.length||a._currentSchedule.endTasks.length;){var b=a._currentSchedule;a._currentSchedule=new ijc;for(var c=r(b.tasks),d=c.next();!d.done;d=c.next())d=d.value,d();b=r(b.endTasks);for(d=b.next();!d.done;d=b.next())c=d.value,c()}a._currentSchedule=null}))};
N3.prototype._getScheduleObservable=function(){return this._ngZone.isStable?(0,U.from)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Xf())};N3.\u0275fac=function(a){return new (a||N3)(t(qg))};N3.\u0275prov=lc({token:N3,factory:N3.\u0275fac});
var O3=function(a,b){this.template=a;this._differs=b};O3.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};O3.\u0275fac=function(a){return new (a||O3)(C(Df),C(sx))};O3.\u0275dir=w({type:O3,features:[Jc]});var kjc=function(){O3.apply(this,arguments)};V(kjc,O3);kjc.\u0275dir=O3.\u0275dir;kjc.\u0275fac=O3.\u0275fac;
var ljc=BYa(kjc),P3=function(a,b,c){a=ljc.call(this,a,b)||this;a._table=c;return a};V(P3,ljc);P3.prototype.ngOnChanges=function(a){ljc.prototype.ngOnChanges.call(this,a)};P3.\u0275fac=function(a){return new (a||P3)(C(Df),C(sx),C(G3,8))};P3.\u0275dir=w({type:P3,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[ie,Jc]});var mjc=function(){O3.apply(this,arguments)};V(mjc,O3);mjc.\u0275dir=O3.\u0275dir;
mjc.\u0275fac=O3.\u0275fac;var njc=BYa(mjc),Q3=function(a,b,c){a=njc.call(this,a,b)||this;a._table=c;return a};V(Q3,njc);Q3.prototype.ngOnChanges=function(a){njc.prototype.ngOnChanges.call(this,a)};Q3.\u0275fac=function(a){return new (a||Q3)(C(Df),C(sx),C(G3,8))};Q3.\u0275dir=w({type:Q3,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[ie,Jc]});var R3=function(a,b,c){O3.call(this,a,b);this._table=c};V(R3,O3);
R3.\u0275fac=function(a){return new (a||R3)(C(Df),C(sx),C(G3,8))};R3.\u0275dir=w({type:R3,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[ie]});var T3=function(a){this._viewContainer=a;S3=this};T3.prototype.ngOnDestroy=function(){S3===this&&(S3=null)};var S3=null;T3.\u0275fac=function(a){return new (a||T3)(C(Ef))};T3.\u0275dir=w({type:T3,selectors:[["","cdkCellOutlet",""]]});var U3=function(){};
U3.\u0275fac=function(a){return new (a||U3)};U3.\u0275cmp=w({type:U3,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&&Be(0,0)},dependencies:[T3],encapsulation:2});var V3=function(){};V3.\u0275fac=function(a){return new (a||V3)};
V3.\u0275cmp=w({type:V3,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Be(0,0)},dependencies:[T3],encapsulation:2});var W3=function(a){this.templateRef=a;this._contentClassName="cdk-no-data-row"};W3.\u0275fac=function(a){return new (a||W3)(C(Df))};W3.\u0275dir=w({type:W3,selectors:[["ng-template","cdkNoDataRow",""]]});
var ojc=new sd("CDK_SPL");
var pjc=["top","bottom","left","right"],qjc=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"}},rjc=function(a,b,c){var d=[];b=r(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=r(d),k=h.next();!k.done;k=h.next())a._removeStickyStyle(k.value,c)})},sjc=function(a,b,c,d,e){e=void 0===e?!0:e;if(b.length&&a._isBrowser&&(c.some(function(I){return I})||d.some(function(I){return I}))){var f=b[0],h=f.children.length,k=a._getCellWidths(f,e),q=a._getStickyStartColumnPositions(k,c),u=a._getStickyEndColumnPositions(k,
d),x=c.lastIndexOf(!0),E=d.indexOf(!0);a._coalescedStyleScheduler.schedule(function(){var I="rtl"===a.direction,N=I?"right":"left";I=I?"left":"right";for(var L=r(b),T=L.next();!T.done;T=L.next()){T=T.value;for(var Y=0;Y<h;Y++){var ja=T.children[Y];c[Y]&&a._addStickyStyle(ja,N,q[Y],Y===x);d[Y]&&a._addStickyStyle(ja,I,u[Y],Y===E)}}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===x?[]:k.slice(0,x+1).map(function(ha,ra){return c[ra]?ha:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===
E?[]:k.slice(E).map(function(ha,ra){return d[ra+E]?ha:null}).reverse()}))})}else a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:[]}),a._positionListener.stickyEndColumnsUpdated({sizes:[]}))},tjc=function(a,b,c,d){if(a._isBrowser){var e="bottom"===d?b.slice().reverse():b,f="bottom"===d?c.slice().reverse():c,h=[],k=[],q=[];for(c=b=0;b<e.length;b++)if(f[b]){h[b]=c;var u=e[b];q[b]=a._isNativeHtmlTable?Array.from(u.children):[u];u=u.getBoundingClientRect().height;c+=u;k[b]=u}var x=
f.lastIndexOf(!0);a._coalescedStyleScheduler.schedule(function(){for(var E=0;E<e.length;E++)if(f[E])for(var I=h[E],N=E===x,L=r(q[E]),T=L.next();!T.done;T=L.next())a._addStickyStyle(T.value,d,I,N);if("top"===d){var Y;null==(Y=a._positionListener)||Y.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var ja;null==(ja=a._positionListener)||ja.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}})}},ujc=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=qjc.prototype;g._removeStickyStyle=function(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);pjc.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=r(pjc),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 vjc=[[["caption"]],[["colgroup"],["col"]]],X3=function(a,b){this.viewContainer=a;this.elementRef=b};X3.\u0275fac=function(a){return new (a||X3)(C(Ef),C(wd))};X3.\u0275dir=w({type:X3,selectors:[["","rowOutlet",""]]});var Y3=function(a,b){this.viewContainer=a;this.elementRef=b};Y3.\u0275fac=function(a){return new (a||Y3)(C(Ef),C(wd))};Y3.\u0275dir=w({type:Y3,selectors:[["","headerRowOutlet",""]]});var Z3=function(a,b){this.viewContainer=a;this.elementRef=b};
Z3.\u0275fac=function(a){return new (a||Z3)(C(Ef),C(wd))};Z3.\u0275dir=w({type:Z3,selectors:[["","footerRowOutlet",""]]});var a4=function(a,b){this.viewContainer=a;this.elementRef=b};a4.\u0275fac=function(a){return new (a||a4)(C(Ef),C(wd))};a4.\u0275dir=w({type:a4,selectors:[["","noDataRowOutlet",""]]});
var b4=function(a,b,c,d,e,f,h,k,q,u,x,E){this._differs=a;this._changeDetectorRef=b;this._elementRef=c;this._dir=e;this._platform=h;this._viewRepeater=k;this._coalescedStyleScheduler=q;this._viewportRuler=u;this._stickyPositioningListener=x;this._ngZone=E;this._onDestroy=new U.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 Jw;d||this._elementRef.nativeElement.setAttribute("role","table");this._document=f;this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName};
b4.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(jg(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};
b4.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&&c4(this);this._checkStickyStates()};
b4.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();Pka(this.dataSource)&&this.dataSource.disconnect(this)};
b4.prototype.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;hqb(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();snb(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this._ngZone&&Mw()?this._ngZone.onStable.pipe(Xf(),
jg(this._onDestroy)).subscribe(function(){c4(a)}):c4(this)}else this._updateNoDataRow();this.contentChanged.next()};
var wjc=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});rjc(a._stickyStyler,b,["top"]);tjc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},xjc=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});
rjc(a._stickyStyler,b,["bottom"]);tjc(a._stickyStyler,b,c,"bottom");ujc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},c4=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)rjc(a._stickyStyler,[].concat(v(b),v(c),v(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=b4.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();vs(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=vs(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=vs(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=vs(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=[];Pka(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;Pka(this.dataSource)?b=this.dataSource.connect(this):(0,U.isObservable)(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=(0,U.of)(this.dataSource));this._renderChangeSubscription=b.pipe(jg(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)});wjc(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)});xjc(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});sjc(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=r(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,S3&&S3._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 P3?c.headerCell.template:a instanceof Q3?c.footerCell.template:c.cell.template}):[]};
g._applyNativeTableSections=function(){for(var a=this._document.createDocumentFragment(),b=r([{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=r(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)&&wjc(this);this._footerRowDefs.reduce(a,!1)&&xjc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,c4(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new qjc(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,U.of)()).pipe(jg(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;c4(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}}};
ji.Object.defineProperties(b4.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=bh(a);this._rowOutlet&&this._rowOutlet.viewContainer.length&&
(this._forceRenderDataRows(),c4(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=bh(a);this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});b4.\u0275fac=function(a){return new (a||b4)(C(sx),C(nx),C(wd),fd("role"),C(gA,8),C(hi),C(yy),C(iqb),C(jjc),C(vA),C(ojc,12),C(qg,8))};
b4.\u0275cmp=w({type:b4,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(If(c,W3,5),If(c,K3,5),If(c,R3,5),If(c,P3,5),If(c,Q3,5));if(a&2){var d;Gf(d=Jf())&&(b._noDataRow=d.first);Gf(d=Jf())&&(b._contentColumnDefs=d);Gf(d=Jf())&&(b._contentRowDefs=d);Gf(d=Jf())&&(b._contentHeaderRowDefs=d);Gf(d=Jf())&&(b._contentFooterRowDefs=d)}},viewQuery:function(a,b){a&1&&(Hf(X3,7),Hf(Y3,7),Hf(Z3,7),Hf(a4,7));if(a&2){var c;Gf(c=Jf())&&(b._rowOutlet=c.first);Gf(c=Jf())&&(b._headerRowOutlet=
c.first);Gf(c=Jf())&&(b._footerRowOutlet=c.first);Gf(c=Jf())&&(b._noDataRowOutlet=c.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&te("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Me([{provide:G3,useExisting:b4},{provide:iqb,useClass:gqb},{provide:jjc,useClass:N3},{provide:ojc,
useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a){a&1&&(Ee(vjc),Fe(0),Fe(1,1),Be(2,0)(3,1)(4,2)(5,3))},dependencies:[X3,Y3,Z3,a4],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});
var d4=function(){};d4.\u0275fac=function(a){return new (a||d4)};d4.\u0275mod=Cc({type:d4});d4.\u0275inj=mc({imports:[xA]});
var e4=function(){H3.apply(this,arguments)};V(e4,H3);e4.\u0275fac=function(){var a;return function(b){return(a||(a=md(e4)))(b||e4)}}();e4.\u0275dir=w({type:e4,selectors:[["","matCellDef",""]],features:[Me([{provide:H3,useExisting:e4}]),ie]});var f4=function(){I3.apply(this,arguments)};V(f4,I3);f4.\u0275fac=function(){var a;return function(b){return(a||(a=md(f4)))(b||f4)}}();f4.\u0275dir=w({type:f4,selectors:[["","matHeaderCellDef",""]],features:[Me([{provide:I3,useExisting:f4}]),ie]});
var g4=function(){return K3.apply(this,arguments)||this};V(g4,K3);g4.prototype._updateColumnCssClassName=function(){K3.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};ji.Object.defineProperties(g4.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});g4.\u0275fac=function(){var a;return function(b){return(a||(a=md(g4)))(b||g4)}}();
g4.\u0275dir=w({type:g4,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[Me([{provide:K3,useExisting:g4},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:g4}]),ie]});var h4=function(){L3.apply(this,arguments)};V(h4,L3);h4.\u0275fac=function(){var a;return function(b){return(a||(a=md(h4)))(b||h4)}}();h4.\u0275dir=w({type:h4,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[ie]});
var i4=function(){M3.apply(this,arguments)};V(i4,M3);i4.\u0275fac=function(){var a;return function(b){return(a||(a=md(i4)))(b||i4)}}();i4.\u0275dir=w({type:i4,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[ie]});
var j4=function(){return P3.apply(this,arguments)||this};V(j4,P3);j4.\u0275fac=function(){var a;return function(b){return(a||(a=md(j4)))(b||j4)}}();j4.\u0275dir=w({type:j4,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[Me([{provide:P3,useExisting:j4}]),ie]});var k4=function(){R3.apply(this,arguments)};V(k4,R3);k4.\u0275fac=function(){var a;return function(b){return(a||(a=md(k4)))(b||k4)}}();
k4.\u0275dir=w({type:k4,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[Me([{provide:R3,useExisting:k4}]),ie]});var l4=function(){};V(l4,U3);l4.\u0275fac=function(){var a;return function(b){return(a||(a=md(l4)))(b||l4)}}();
l4.\u0275cmp=w({type:l4,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[Me([{provide:U3,useExisting:l4}]),ie],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Be(0,0)},dependencies:[T3],encapsulation:2});var m4=function(){};V(m4,V3);m4.\u0275fac=function(){var a;return function(b){return(a||(a=md(m4)))(b||m4)}}();
m4.\u0275cmp=w({type:m4,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[Me([{provide:V3,useExisting:m4}]),ie],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Be(0,0)},dependencies:[T3],encapsulation:2});
var yjc=[[["caption"]],[["colgroup"],["col"]]],n4=function(){b4.apply(this,arguments);this.stickyCssClass="mat-table-sticky";this.needsPositionStickyOnElement=!1};V(n4,b4);n4.\u0275fac=function(){var a;return function(b){return(a||(a=md(n4)))(b||n4)}}();
n4.\u0275cmp=w({type:n4,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(a,b){a&2&&te("mat-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Me([{provide:iqb,useClass:gqb},{provide:b4,useExisting:n4},{provide:G3,useExisting:n4},{provide:jjc,useClass:N3},{provide:ojc,useValue:null}]),ie],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",
""]],template:function(a){a&1&&(Ee(yjc),Fe(0),Fe(1,1),Be(2,0)(3,1)(4,2)(5,3))},dependencies:[X3,Y3,Z3,a4],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 o4=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 Jw;this.displayedColumn=["index","name","type","required","customFieldId"]},PYa=function(a){return DB(a.matDialog.open(F3,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&zjc(a,b)})},QYa=function(a){a.confirmationDialog.open({title:"Reset ordering?",content:In("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()}})},zjc=function(a,b){Zn(a.analytics,ao.FIELD_ORDERING,"reorderFields");var c=b.map(function(d){return(new hl).setCustomFieldId(d.customFieldId)});a.componentId?(tK(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){tK(a.butterBar,"Field ordering saved",5E3);a.fields=b.concat();a.fieldOrdering="CUSTOMIZED"},function(){uK(a.butterBar,"Saving ordering failed, please refresh the page.",5E3)})):uK(a.butterBar,"Saving ordering failed due to the undefined component id.")};
o4.prototype.reset=function(){var a=this;Zn(this.analytics,ao.FIELD_ORDERING,"resetFields");this.componentId?(tK(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:eL}).subscribe(function(){tK(a.butterBar,"Ordering reset");a.fieldOrdering="INHERITED";a.onReload.emit()},function(){uK(a.butterBar,"Reset failed.")})):uK(this.butterBar,"Reset failed due to the undefined component id.")};
o4.\u0275fac=function(a){return new (a||o4)(C(PB),C(PM),C(h3),C(FM),C(sK))};
o4.\u0275cmp=w({type:o4,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&&(F(0,"div",0)(1,"div",1)(2,"table",2),ze(3,3),O(4,CYa,2,0,"th",4),O(5,DYa,2,1,"td",5),Ae(),ze(6,6),O(7,EYa,2,0,"th",4),O(8,FYa,
2,1,"td",5),Ae(),ze(9,7),O(10,GYa,2,0,"th",4),O(11,HYa,3,3,"td",5),Ae(),ze(12,8),O(13,IYa,2,0,"th",4),O(14,JYa,2,1,"td",5),Ae(),ze(15,9),O(16,KYa,2,0,"th",4),O(17,LYa,2,1,"td",5),Ae(),O(18,MYa,1,0,"tr",10),O(19,NYa,1,0,"tr",11),G(),O(20,OYa,2,0,"div",12),G(),O(21,RYa,6,2,"div",13),G());a&2&&(B(2),D("dataSource",b.fields),B(16),D("matHeaderRowDef",b.displayedColumn),B(1),D("matRowDefColumns",b.displayedColumn),B(1),D("ngIf",0===b.fields.length),B(1),D("ngIf",b.isAdmin))},dependencies:[ux,rB,n4,f4,
j4,g4,e4,k4,h4,i4,l4,m4,sS],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-color:#dadce0;border-color:var(--divider)}th[_ngcontent-%COMP%]{font-weight:bold;color:#202124;color:var(--text-high-contrast)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-color:#dadce0;border-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 p4=function(){};p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275mod=Cc({type:p4});p4.\u0275inj=mc({providers:[PM],imports:[Mx,uG,UB]});
var q4=function(){};q4.\u0275fac=function(a){return new (a||q4)};q4.\u0275mod=Cc({type:q4});q4.\u0275inj=mc({imports:[d4,XA,XA]});
var r4=function(){};r4.\u0275fac=function(a){return new (a||r4)};r4.\u0275mod=Cc({type:r4});r4.\u0275inj=mc({imports:[Mx,uG,iO,UB,q4,eV,mH,dI,pF,p4,tS]});
var s4=function(a){this.analytics=a;this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},TYa=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="+Ajc+a.issueId+Bjc;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
s4.prototype.trackClick=function(a){Zn(this.analytics,"codeMentions","clickCodeSearchLink",a)};s4.\u0275fac=function(a){return new (a||s4)(C(FM))};
s4.\u0275cmp=w({type:s4,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&&(F(0,"div",0)(1,"a",1),J("click",function(){return b.trackClick("fileName")}),P(2),G(),O(3,SYa,2,1,"span",2),O(4,VYa,5,1,"span",2),G());a&2&&(B(1),D("href",TYa(b,b.lineNumbers),Ud),B(1),Je(" ",b.filename," "),B(1),D("ngIf",!(10>=b.lineNumbers.length&&"wiki"!=b.packageName)),B(1),D("ngIf",10>=b.lineNumbers.length&&"wiki"!=b.packageName))},dependencies:[yx,ux],encapsulation:2});var Ajc=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),Bjc=encodeURIComponent("(\\b|$)");
var t4=function(){};t4.\u0275fac=function(a){return new (a||t4)};t4.\u0275mod=Cc({type:t4});t4.\u0275inj=mc({imports:[Mx]});
var u4=function(){this.isReady=!1};u4.\u0275fac=function(a){return new (a||u4)};u4.\u0275cmp=w({type:u4,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&&(Ee(),O(0,WYa,1,0,"div",0),O(1,XYa,2,0,"ng-container",1));a&2&&(D("ngIf",!b.isReady),B(1),D("ngIf",b.isReady))},dependencies:[ux],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:opacity-gradient .5s linear 0s infinite alternate;animation: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 opacity-gradient{0%{opacity:0}to{opacity:1}}@keyframes opacity-gradient{0%{opacity:0}to{opacity:1}}"]});
var v4=function(){this.warning=""};v4.\u0275fac=function(a){return new (a||v4)};
v4.\u0275cmp=w({type:v4,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&te("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&&O(0,YYa,2,1,"svg",0);a&2&&
D("ngIf",b.warning)},dependencies:[ux,lF],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 Cjc=["*",[["","actions",""]]],Djc=[[["onedev-field-label"]],[["onedev-field-value"]]],Ejc=0,w4=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+Ejc;Ejc++};w4.\u0275fac=function(a){return new (a||w4)};
w4.\u0275cmp=w({type:w4,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&oe("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&&(Ee(),F(0,"onedev-async-data-placeholder",0)(1,"span",1),Fe(2),G(),H(3,"onedev-warning-icon",2),G());a&2&&(D("isReady",!b.thinking),B(1),D("matTooltip",b.labelTooltip),B(2),D("warning",
b.warning))},dependencies:[u4,lF,v4],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var x4=function(){this.thinking=!1};x4.\u0275fac=function(a){return new (a||x4)};
x4.\u0275cmp=w({type:x4,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(Ee(Cjc),F(0,"onedev-async-data-placeholder",0),Fe(1),Fe(2,1),G());a&2&&D("isReady",!b.thinking)},dependencies:[u4],encapsulation:2});var y4=function(){this.labelPosition="left"};y4.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
y4.\u0275fac=function(a){return new (a||y4)};
y4.\u0275cmp=w({type:y4,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(If(c,MP,5),If(c,w4,7));if(a&2){var d;Gf(d=Jf())&&(b.field=d.first);Gf(d=Jf())&&(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&&(Ee(Djc),F(0,"div",0),Fe(1),Fe(2,1),G());a&2&&te("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 Fjc=["popOverContent"],z4=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.closedWithAction=new Jw;this.isOpen=!1;this.destroyed$=new U.ReplaySubject(1);this.backdropClickSubscription=U.Subscription.EMPTY};z4.prototype.ngOnInit=function(){};z4.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
z4.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(jg(this.destroyed$)).subscribe(function(){aZa(a)}))};z4.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var $Ya=function(a){a.closedWithAction.emit(0);a.close()},aZa=function(a){a.closedWithAction.emit(1);a.close()};g=z4.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":aZa(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)$Ya(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||($Ya(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 NA(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=FA(EA(KA(this.overlay.position(),this.anchor),!1),!1);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return CA(a,Gjc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};z4.\u0275fac=function(a){return new (a||z4)(C(TA),C(Ef))};
z4.\u0275cmp=w({type:z4,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&Hf(Fjc,7);if(a&2){var c;Gf(c=Jf())&&(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&&O(0,bZa,8,2,"ng-template",null,0,Pf)},dependencies:[Ex,Fy,rB],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 Gjc=[{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 Hjc=["popOver"],dZa=function(a){return{$implicit:a}},A4=function(a){this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.valueChange=new Jw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};V(A4,MP);g=A4.prototype;g.ngOnInit=function(){};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};
g.valueChanged=function(){return iZa(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=iZa(this.editingValue),this.valueChange.emit(a))};g.writeValue=function(a){var b=iZa(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};ji.Object.defineProperties(A4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(null!=a?String(a):null)}}});A4.\u0275fac=function(a){return new (a||A4)(fd("required"))};
A4.\u0275cmp=w({type:A4,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&Hf(Hjc,7);if(a&2){var c;Gf(c=Jf())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:"labelledById",openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate"},outputs:{valueChange:"valueChange"},features:[Me([{provide:wx,useExisting:ic(function(){return A4}),multi:!0},{provide:MP,useExisting:ic(function(){return A4}),multi:!0}]),ie],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&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),O(3,eZa,2,4,"ng-container",2),O(4,fZa,1,1,"ng-template",null,3,Pf),G(),O(6,gZa,2,0,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",function(f){return b.stopEditing(f)}),G(),O(9,hZa,1,1,"ng-template",null,7,Pf));if(a&2){var c=M(1),d=
M(5),e=M(10);D("disabled",b.disabled);B(3);D("ngIf",b.valueTemplate)("ngIfElse",d);B(3);D("ngIf",!b.disabled&&b.displayEditIcon);B(1);D("anchor",c)("editorTemplate",e)}},dependencies:[ux,Ex,Qg,jy,by,hy,z4],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 nZa=function(){return[]},B4=function(){this.disabled=this.thinking=!1;this.effortChange=new Jw;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
B4.prototype.ngOnChanges=function(){if("DROPDOWN"===this.getFieldType()){var a;this.effortSpec&&null!=(a=Cl(this.effortSpec))&&a.getOptionsList()&&this.effort&&W(this.effort,2)?(a=Ijc(this),a="incompatible"===a?(new tl).setLabel(W(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:W(b,2))?Number(null==(c=this.effort)?void 0:W(c,2)):void 0}this.fieldName=this.getFieldName();this.fieldType=this.getFieldType();
this.isCompatibleValue=Jjc(this)};B4.prototype.selectOption=function(a){this.selectedOption=a;if(null==a)this.effort=void 0;else{var b,c,d=new wl,e=null!=(c=null==(b=this.effortSpec)?void 0:b.getId())?c:0;b=Vk(d,1,e);a=a.getLabel();this.effort=xl(b,2,a)}this.isCompatibleValue=Jjc(this);this.effortChange.emit(this.effort)};B4.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.getName():this.effort?"Estimate "+fj(this.effort,1):"Estimate"};
B4.prototype.getFieldType=function(){var a;if(null==(a=this.effortSpec)?0:yl(a,4,zl))return"NUMERIC";var b;return(null==(b=this.effortSpec)?0:yl(b,5,zl))?"DROPDOWN":"UNKNOWN"};
var Jjc=function(a){if(!a.effort)return!0;var b,c;if((null==(b=a.effortSpec)?void 0:b.getId())!==(null==(c=a.effort)?void 0:fj(c,1))||"DROPDOWN"===a.fieldType&&"incompatible"===Ijc(a))return!1;var d,e;return"NUMERIC"===a.getFieldType()&&isNaN(Number(null!=(e=null==(d=a.effort)?void 0:W(d,2))?e:""))?!1:!0},Ijc=function(a){var b;if(null==(b=a.effort)?0:W(b,2)){var c,d,e,f;return null!=(f=null==(c=a.effortSpec)?void 0:null==(d=Cl(c))?void 0:null==(e=d.getOptionsList())?void 0:e.find(function(h){var k;
return h.getLabel()===(null==(k=a.effort)?void 0:W(k,2))}))?f:"incompatible"}};B4.\u0275fac=function(a){return new (a||B4)};
B4.\u0275cmp=w({type:B4,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},features:[Jc],decls:3,vars:1,consts:[[4,"ngIf"],["rawNumericValueTemplate",""],[3,"thinking","warning","labelTooltip"],[3,"thinking"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[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&&(O(0,qZa,8,8,"onedev-edit-field",0),O(1,tZa,3,2,"ng-template",null,1,Pf));a&2&&D("ngIf",b.effortSpec)},dependencies:[ux,Ax,Bx,Cx,w4,x4,y4,NP,A4],styles:["onedev-numeric-field[_ngcontent-%COMP%], onedev-single-select[_ngcontent-%COMP%]{flex:1;width:100%}\n/*# sourceMappingURL=estimated_effort_row.css.map */"]});
var C4=function(){};C4.\u0275fac=function(a){return new (a||C4)};C4.\u0275mod=Cc({type:C4});C4.\u0275inj=mc({imports:[Mx]});
var D4=function(){};D4.\u0275fac=function(a){return new (a||D4)};D4.\u0275mod=Cc({type:D4});D4.\u0275inj=mc({imports:[Mx,mH]});
var E4=function(){};E4.\u0275fac=function(a){return new (a||E4)};E4.\u0275mod=Cc({type:E4});E4.\u0275inj=mc({imports:[C4,Mx,mH,D4]});
var F4=function(){};F4.\u0275fac=function(a){return new (a||F4)};F4.\u0275mod=Cc({type:F4});F4.\u0275inj=mc({imports:[Mx,Qz,WA,SA,uG]});
var G4=function(){};G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275mod=Cc({type:G4});G4.\u0275inj=mc({imports:[Mx,wy,F4]});
var H4=function(){};H4.\u0275fac=function(a){return new (a||H4)};H4.\u0275mod=Cc({type:H4});H4.\u0275inj=mc({imports:[Mx,mH,pF,E4,bQ,G4]});
var I4=function(a,b,c){yI.call(this);this.activeSession=a;this.clipboard=b;this.butterBar=c;this.componentId=0;this.issueTitle=this.issueId="";this.isOpen=this.disabled=this.isExternalIssue=!1;this.HOTKEYS=xI};V(I4,yI);I4.\u0275dir=yI.\u0275dir;I4.prototype.ngOnInit=function(){};I4.prototype.openIssueIdPicker=function(){this.disabled||this.trigger.open()};var ws=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=I4.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return xs(this.activeSession,this.isExternalIssue)+this.issueId};g.getUrlAndTitle=function(){return xs(this.activeSession,this.isExternalIssue)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(UBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+(xs(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId)+"): "+this.issueTitle};
I4.\u0275fac=function(a){return new (a||I4)(C(yH),C(TS),C(sK))};
I4.\u0275cmp=w({type:I4,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&Hf(IP,7);if(a&2){var c;Gf(c=Jf())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled"},features:[ie],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&&(F(0,"button",0),J("click",function(){b.clipboard.copy(b.issueId);tK(b.butterBar,"Issue ID copied",2E3)}),P(1),G(),F(2,"button",1,2),J("onHotkey",function(){return b.openIssueIdPicker()})("onedevPopupPanelTriggerOpened",
function(){return b.isOpen=!0})("onedevPopupPanelTriggerClosed",function(){return b.isOpen=!1})("click",function(){return b.openIssueIdPicker()}),H(4,"mat-icon",3),G(),F(5,"onedev-popup-panel",4,5),O(7,xZa,31,19,"div",6),G());if(a&2){var c=M(6);oe("aria-label","Copy issue number "+b.issueId);B(1);Ke(b.issueId);B(1);D("onedevPopupPanelTriggerFor",c)("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID);oe("aria-label","Show links for the issue "+b.issueId);B(5);D("ngIf",b.isOpen)}},dependencies:[Fy,ux,dJ,rB,XE,lF,
HP,IP],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-color:#fff;border-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 J4=function(){};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275mod=Cc({type:J4});J4.\u0275inj=mc({imports:[Qz,Mx,eJ,uG,pF,mH,$P]});
var K4=function(a){GJ.call(this);this.observableSlosService=a;this.recordType="slo";this.idForRecord=function(b){return b.getSloId()}};V(K4,GJ);g=K4.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)};
K4.\u0275fac=function(a){return new (a||K4)(t(dY))};K4.\u0275prov=lc({token:K4,factory:K4.\u0275fac,providedIn:"root"});
var L4=function(a,b,c,d){yI.call(this);var e=this;this.userPreferencesManager=a;this.sloStatusHelpersService=b;this.paths=c;this.sloFridge=d;this.onSnoozeChange=new Jw;this.providedSloId$=new U.ReplaySubject(1);this.slo$=this.providedSloId$.pipe(ig(function(f){return e.sloFridge.watchOne(f)}));this.shouldShowSnoozeButton=this.isAccordionExpanded=!1};V(L4,yI);L4.\u0275dir=yI.\u0275dir;
L4.prototype.ngOnInit=function(){var a=this;Kjc(this);this.userPreferencesManager.layoutPreferences$.pipe(jg(this.destroyed$),S(function(b){a.isAccordionExpanded=!!b.expandIssueSlo}))};L4.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);Kjc(this)};
var Kjc=function(a){a.hasSlo=!!a.sloStatus&&VQb(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;a.sloSnoozeUntil?a.sloSnoozeUntilUnderEdit=a.sloSnoozeUntil.clone():a.sloSnoozeUntilUnderEdit=void 0},Ljc=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;yFb(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(jg(a.destroyed$)).subscribe();
Nn(ao.ISSUE_SLO,"toggle",a.isAccordionExpanded?"open":"close")};L4.prototype.trackOpenSlo=function(){Nn(ao.EDIT_SLO,"open","fromIssueSloBox")};L4.\u0275fac=function(a){return new (a||L4)(C(VI),C(LR),C(GK),C(K4))};
L4.\u0275cmp=w({type:L4,selectors:[["b-issue-slo-box"]],viewQuery:function(a,b){a&1&&Hf(t_,5);if(a&2){var c;Gf(c=Jf())&&(b.snoozeDateTimePicker=c.first)}},inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloSnoozeUntil:"sloSnoozeUntil",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp"},outputs:{onSnoozeChange:"onSnoozeChange"},features:[ie,Jc],decls:26,vars:30,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"],[3,"snoozeUntil","snoozeUntilChange","snoozeUntilCommit"],[1,"slo-action"],["class","bv2-metadata-link bv2-metadata-tool",3,"click",4,"ngIf"],[1,"slo-start"],[1,"bv2-metadata-link",3,"click"],[4,
"ngIf"],["href","http://go/buganizer/guides/defer-slos","target","_blank"],["mode","date",3,"timestamp"],["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&&(F(0,"span",0),J("click",function(){return Ljc(b)}),F(1,"label"),P(2,"SLO Status"),G(),F(3,"span",1)(4,"span",2),H(5,"b-icon",3),G(),F(6,"span",2),H(7,"b-icon",3),G()()(),F(8,"div",4)(9,"div",5)(10,"div",2),H(11,"b-aggregated-slo-status-indicator",
6),G(),F(12,"div",2),H(13,"b-slo-status-summary",7),G(),F(14,"button",8),J("click",function(){return Ljc(b)}),F(15,"span",1)(16,"span",2),H(17,"b-icon",3),G(),F(18,"span",2),H(19,"b-icon",3),G()()()(),F(20,"div",9),O(21,BZa,8,4,"div",10),F(22,"snooze-date-time-picker",11),J("snoozeUntilChange",function(c){return b.sloSnoozeUntilUnderEdit=c})("snoozeUntilCommit",function(){b.onSnoozeChange.next(b.sloSnoozeUntilUnderEdit||null)}),G(),O(23,DZa,4,3,"div",10),F(24,"div",12),O(25,EZa,2,1,"a",13),G()()());
a&2&&(B(4),D("hidden",b.isAccordionExpanded),B(1),D("name","arrow-down")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("name","arrow-up")("size","small"),B(3),D("hidden",b.isAccordionExpanded),B(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeSloMetric",!0)("includeObjective",!0),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("sloStatus",b.sloStatus)("sloSnoozeUntil",b.sloSnoozeUntilUnderEdit)("includeNoSlo",!0),B(1),D("color","")("matTooltip","Toggle the detailed SLO status"),
oe("aria-label","Toggle the detailed SLO status")("aria-expanded",b.isAccordionExpanded),B(2),D("hidden",b.isAccordionExpanded),B(1),D("name","arrow-down")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("name","arrow-up")("size","small"),B(1),D("hidden",!b.isAccordionExpanded),B(1),D("ngIf",b.shouldShowSnoozeButton),B(1),D("snoozeUntil",b.sloSnoozeUntilUnderEdit),B(1),D("ngIf",b.editSloLink),B(2),D("ngIf",!b.editSloLink&&b.componentSloLink))},dependencies:[ux,lF,rB,sY,vP,gY,t_,BH,
Fx],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 transparent;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 transparent;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 M4=function(){};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275mod=Cc({type:M4});M4.\u0275inj=mc({imports:[Mx,mH,uG,pZ,PP,nZ,u_,dI,iO]});
var Mjc=function(){return{width:400}},N4=function(a,b,c,d,e,f,h,k){this.bLocation=c;this.paths=d;this.analytics=e;this.componentActions=h;this.cdr=k;this.includeArchived=!1;this.createComponentPath=Zs.COMPONENT_CREATE;a.setTitle("Browse Components");a=HZa(this);b.componentId&&IZa(this,Ki(b.componentId),a);this.isInternalSession=f.isInternalSession()};N4.prototype.viewComponent=function(a,b){b=void 0===b?null:b;a&&(b&&Zn(this.analytics,"listComponents",b),this.bLocation.url(this.paths.manageComponent(a.componentId)))};
var HZa=function(a){return a.componentActions.getChildren(0,a.includeArchived).then(function(b){a.topLevelComponents=b;a.cdr.detectChanges();return b})},IZa=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=laa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-1),f={0:c},h=r(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Ao(f).then(function(q){for(var u=q[0],x=0,E={},I=r(e),N=I.next();!N.done;E=
{$jscomp$loop$prop$parentId$1579$1733:E.$jscomp$loop$prop$parentId$1579$1733},N=I.next()){E.$jscomp$loop$prop$parentId$1579$1733=N.value;N=void 0;var L=null!=(N=u.find(function(T){return function(Y){return Y.componentId==T.$jscomp$loop$prop$parentId$1579$1733}}(E)))?N:null;L&&(L.children=q[E.$jscomp$loop$prop$parentId$1579$1733],L.showChildren=!0,u=L.children,x=L.componentId)}d.archived&&!a.includeArchived&&(b=x);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};
N4.\u0275fac=function(a){return new (a||N4)(C(WN),C(IR),C(FK),C(GK),C(FM),C(yH),C(iT),C(uI,2))};
N4.\u0275cmp=w({type:N4,selectors:[["b-list-components-page"]],features:[Me([uI])],decls:13,vars:8,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&&(F(0,"h2",0),P(1,"Browse Components"),G(),F(2,"div",1)(3,"div",2),
O(4,FZa,2,1,"a",3),F(5,"button",4),P(6," Search Components "),G(),O(7,GZa,3,4,"ng-template",null,5,Pf),O(9,JZa,2,2,"div",6),G()(),F(10,"div",7),O(11,KZa,2,0,"div",8),F(12,"component-tree-list",9),J("init",function(d){return b.componentTree=d}),G()());if(a&2){var c=M(8);B(4);D("ngIf",b.isInternalSession);B(1);D("xapInlineDialogClick",c)("overlaySize",Ne(7,Mjc));B(4);D("ngIf",b.isInternalSession);B(2);D("ngIf",!b.topLevelComponents);B(1);D("components",b.topLevelComponents)("includeArchived",b.includeArchived)}},
dependencies:[ux,aN,qN,pN,uN,rT,rB,sB,kT,oV],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     .bv2-component-picker{width:100%}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});
var O4=function(){};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275mod=Cc({type:O4});O4.\u0275inj=mc({imports:[Mx,MN,KN,PN,RN,mN,sT,uG,mT,qV]});
var P4=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};P4.\u0275fac=function(a){return new (a||P4)};
P4.\u0275cmp=w({type:P4,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&&(F(0,"div",0),O(1,LZa,2,1,"p",1),F(2,"ul"),O(3,MZa,2,5,"li",
2),G()());a&2&&(B(1),D("ngIf",b.displayPackageName),B(2),D("ngForOf",b.packageMentionSet.fileMentionSet))},dependencies:[yx,ux,s4],encapsulation:2});
var Q4=function(){};Q4.\u0275fac=function(a){return new (a||Q4)};Q4.\u0275mod=Cc({type:Q4});Q4.\u0275inj=mc({imports:[Mx,t4]});
var R4=function(){};R4.\u0275fac=function(a){return new (a||R4)};R4.\u0275mod=Cc({type:R4});R4.\u0275inj=mc({imports:[Mx,wy,uG,UB,hC,IU,fC]});
var Njc=function(a){Z.call(this,a)};V(Njc,Z);g=Njc.prototype;g.getResourcePath=function(){return W(this,1)};g.setResourcePath=function(a){return l(this,1,a)};g.hasResourcePath=function(){return ej(this,1)};g.getSeverity=function(){return X(this,2,0)};g.setSeverity=function(a){return l(this,2,a)};g.getJudgementReason=function(){return W(this,3)};g.setJudgementReason=function(a){return l(this,3,a)};
g.toObject=function(){var a=null!=this?{resourcePath:n(p(this,1)),severity:n(p(this,2)),judgementReason:n(p(this,3))}:void 0;return a};Njc.messageId="b.CreateContentJudgementRequest";
var Pjc=function(a){Z.call(this,a,-1,Ojc)};V(Pjc,Z);var Ojc=[1];Pjc.prototype.toObject=function(){var a=null!=this?{contentJudgementsList:Hb(xb(this,Gl,1),nJ)}:void 0;return a};Pjc.messageId="b.ListContentJudgementsResponse";
var S4=function(a){Z.call(this,a)};V(S4,Z);S4.prototype.getContentJudgement=function(){return m(this,Gl,1)};S4.prototype.setContentJudgement=function(a){return Gb(this,1,a)};S4.prototype.toObject=function(){var a=null!=this?{contentJudgement:nJ(void 0,this.getContentJudgement())}:void 0;return a};S4.messageId="b.UpdateContentJudgementRequest";
var T4=function(a){this.executor=a};T4.prototype.create=function(a,b,c){a=(new Njc).setResourcePath(a).setSeverity(b).setJudgementReason(c);return this.executor.post({url:"action/content_judgements",body:a,responseConstructor:Gl})};T4.prototype.update=function(a){var b=lj(a,1);a=(new S4).setContentJudgement(a);return this.executor.post({url:"action/content_judgements/"+b,body:a,responseConstructor:Gl})};
T4.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:Pjc})};T4.\u0275fac=function(a){return new (a||T4)(t(pI))};T4.\u0275prov=lc({token:T4,factory:T4.\u0275fac,providedIn:"root"});
var U4=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.piiSeverity=jGb;this.loaded=!1;this.minimumSeverity=0;this.severity=1;this.processContentJudgements=function(h){var k=0;h=r(xb(h,Gl,1));for(var q=h.next();!q.done;q=h.next())q=q.value,W(q,5)===f.activeSession.getUserEmail()?Qjc(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):(Qjc(this,e.contentJudgement),this.loaded=!0)};U4.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var Qjc=function(a,b){if(a.judgement=b)a.severity=b.getSeverity()},Rjc=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};U4.prototype.getContentJudgement=function(){var a=new Gl;if(this.judgement){var b=lj(this.judgement,1);l(a,1,b);a.setResourcePath(this.judgement.getResourcePath())}a.setJudgementReason("None specified");a.setSeverity(this.severity);return a};
U4.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()})};U4.prototype.onNoClick=function(){this.dialogRef.close(null)};U4.\u0275fac=function(a){return new (a||U4)(C(CB),C(dP),C(T4),C(yH),C(NB))};
U4.\u0275cmp=w({type:U4,selectors:[["b-content-judgement-dialog"]],decls:28,vars:10,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","ref","noopener noreferrer nofollow","aria-label","Learn more about restricted access",1,"keep-focus-ring"],["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-dialog-actions",""],["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&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),P(3," Set restriction "),G()(),F(4,"div",2)(5,"span")(6,"label",3),P(7),
F(8,"a",4),P(9," Learn More "),G()(),F(10,"mat-radio-group",5),J("ngModelChange",function(c){return b.severity=c}),F(11,"mat-radio-button",6),P(12," No restriction "),F(13,"div"),P(14,' Users with "View issues" can access. '),G()(),F(15,"mat-radio-button",7),P(16," Restricted "),F(17,"div"),P(18,' Users with "View restricted content" can access. '),G()(),F(19,"mat-radio-button",8),P(20," Restricted+ "),F(21,"div"),P(22,' Users with "View restricted+ content" can access. '),G()()()()(),F(23,"div",
9)(24,"button",10),J("click",function(){return b.onNoClick()}),P(25," Cancel "),G(),F(26,"button",11),J("click",function(){return b.onSaveClick()}),P(27," Set "),G()());a&2&&(B(7),Je(" ",Rjc(b)," "),B(1),oe("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ud),B(2),D("ngModel",b.severity),B(1),D("value",b.piiSeverity.NONE_DETECTED)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.NONE_DETECTED),B(4),D("value",b.piiSeverity.PII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.PII),
B(4),D("value",b.piiSeverity.SPII)("disabled",!b.canInteract()||b.minimumSeverity>b.piiSeverity.SPII),B(7),D("disabled",!b.canInteract()))},dependencies:[rB,RB,SB,TB,XE,OX,QX,by,hy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}.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)}.optional[_ngcontent-%COMP%]{line-height:2em;margin-top:20px}.optional[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:.5em 0;text-transform:uppercase;font-weight:600;font-size:.8em;line-height:1.5em}.annotations[_ngcontent-%COMP%]{margin-top:4px;display:grid;grid-template-columns:repeat(2, 50%)}.annotation[_ngcontent-%COMP%]{margin:0 10px;padding:4px;line-height:1.5em}\n/*# sourceMappingURL=content_judgement_dialog.css.map */"]});
var V4=function(a,b){this.documentationLinks=a;this.dateFormatter=b;this.retentionModel=ZAb;this.label="Restricted";this.contentType="item"};V4.prototype.getRetentionPeriod=function(){if(!this.retentionState||!this.retentionState.retentionPeriod)return"";var a=Kua(this.retentionState.retentionPeriod);return a?ko(Math.floor(1E3*a.getSeconds()/864E5)):""};
var ys=function(a){var b=new Date(864E13);if(!a.retentionState||!a.retentionState.scheduledDeletionTime)return b;a=jo(Tn(a.retentionState.scheduledDeletionTime));return new Date(a||b)},Sjc=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?12096E5>jo(Tn(a.retentionState.scheduledDeletionTime))-Date.now():!1};V4.\u0275fac=function(a){return new (a||V4)(C(dP),C(uP))};
V4.\u0275cmp=w({type:V4,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},decls:10,vars:5,consts:[[1,"bubble",3,"panelTemplate"],[1,"chip","nowrap"],[1,"icon-s",3,"svgIcon"],["popup",""],["infiniteRetention",""],["hasExpiredText",""],[1,"popup"],["target","_blank","rel","noopener noreferrer nofollow"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngIf","ngIfElse"],[3,"ngSwitchCase"]],template:function(a,b){a&1&&(F(0,
"xap-bubble",0)(1,"div",1),H(2,"mat-icon",2),P(3),G(),O(4,SZa,8,3,"ng-template",null,3,Pf),O(6,TZa,3,1,"ng-template",null,4,Pf),O(8,UZa,8,5,"ng-template",null,5,Pf),G());if(a&2){var c=M(5);D("panelTemplate",c);B(1);te("warning",Sjc(b));B(1);D("svgIcon",Sjc(b)?"delete-alert":"delete-clock");B(1);Je(" ",b.label," ")}},dependencies:[ux,Ax,Bx,XE,AS,Ix],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 W4=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c};W4.prototype.onNoClick=function(){this.dialogRef.close(!1)};W4.\u0275fac=function(a){return new (a||W4)(C(CB),C(dP),C(NB))};
W4.\u0275cmp=w({type:W4,selectors:[["b-restricted-confirmation-dialog"]],decls:12,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";"),["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&&(F(0,"h1",0),P(1),G(),F(2,"div",1)(3,"p"),P(4),F(5,"a",2),P(6," Learn More "),G()()(),F(7,"div",3)(8,"button",4),J("click",function(){return b.onNoClick()}),P(9," Cancel "),G(),F(10,"button",5),P(11," Confirm "),G()());a&2&&(B(1),Ke(b.data.title),B(3),Je(" ",b.data.content," "),B(1),oe("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ud),B(5),D("mat-dialog-close",!0))},dependencies:[rB,QB,RB,SB,TB],encapsulation:2});
var X4=function(a,b){this.dialog=a;this.documentationLinks=b;this.disabled=!1;this.onConfirm=new Jw};X4.prototype.openDialog=function(){var a=this;DB(this.dialog.open(W4,{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()})};
X4.\u0275fac=function(a){return new (a||X4)(C(PB),C(dP))};
X4.\u0275cmp=w({type:X4,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},decls:5,vars:2,consts:[["mat-stroked-button","","color","primary",1,"gmat-button","small","restricted-comment-load",3,"disabled","click"],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about restricted access".split(";")],template:function(a,b){a&1&&(F(0,"span")(1,"button",0),J("click",function(){return b.openDialog()}),P(2," Show Restricted Content "),
G(),F(3,"a",1),P(4," Learn More "),G()());a&2&&(B(1),D("disabled",b.disabled),B(2),oe("href",b.documentationLinks.getRestrictedAccessHelpLink(),Ud))},dependencies:[rB],styles:[".mat-stroked-button[_ngcontent-%COMP%]{margin-right:1em}\n/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});
var Y4=function(a,b,c){this.dialogRef=a;this.documentationLinks=b;this.data=c;this.acknowledgeToMatchIssueRetention=!1;this.resource=c.resource;this.piiRetention=c.piiRetention};Y4.prototype.canInteract=function(){return 2!==this.piiRetention||this.acknowledgeToMatchIssueRetention};Y4.prototype.onSaveClick=function(){this.dialogRef.close(1)};Y4.prototype.onNoClick=function(){this.dialogRef.close(0)};Y4.\u0275fac=function(a){return new (a||Y4)(C(CB),C(dP),C(NB))};
Y4.\u0275cmp=w({type:Y4,selectors:[["b-update-retention-dialog"]],decls:19,vars:7,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],[4,"ngIf"],["mat-dialog-content",""],"target;_blank;ref;noopener noreferrer nofollow;aria-label;Learn more about component retention".split(";"),[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&&(F(0,"h1",0),H(1,"mat-icon",1),F(2,"div"),O(3,VZa,2,1,"span",2),O(4,WZa,2,0,"span",2),G()(),F(5,"div",3),O(6,XZa,8,1,"span",2),O(7,YZa,3,2,"span",2),F(8,"span")(9,"a",4),P(10," Learn More "),G()()(),F(11,"div")(12,"span"),O(13,ZZa,2,1,"mat-checkbox",5),G()(),F(14,"div",6)(15,"button",7),J("click",function(){return b.onNoClick()}),P(16,
" Cancel "),G(),F(17,"button",8),J("click",function(){return b.onSaveClick()}),P(18," Save "),G()());a&2&&(B(3),D("ngIf",2===b.piiRetention),B(1),D("ngIf",2!==b.piiRetention),B(2),D("ngIf",2===b.piiRetention),B(1),D("ngIf",2!==b.piiRetention),B(2),oe("href",qt(),Ud),B(4),D("ngIf",2===b.piiRetention),B(4),D("disabled",!b.canInteract()))},dependencies:[ux,rB,RB,SB,TB,XE,tO,by,hy],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit}\n/*# sourceMappingURL=update_retention_dialog.css.map */"]});
var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=Cc({type:Z4});Z4.\u0275inj=mc({imports:[Mx,fF,uG,UB,eI,fC,EP,mH,q4,pF,XX,yO,wy,LS]});
var a5=function(a,b,c,d,e,f){yI.call(this);var h=this;this.analytics=b;this.location=c;this.prefsManager=e;this.domSafe=f;this.prefsManager.preferences$.pipe(jg(this.destroyed$)).subscribe(function(k){h.prefs=k});a.topBarEvents.browseComponents.pipe(jg(this.destroyed$)).subscribe(function(k){k=k.newTab;Tjc(h,d.listComponents(),k)});a.topBarEvents.manageHotlists.pipe(jg(this.destroyed$)).subscribe(function(k){Tjc(h,d.listHotlists(),k.newTab)});a.topBarEvents.manageSlos.pipe(jg(this.destroyed$)).subscribe(function(k){k=
k.newTab;Tjc(h,d.listSlos(),k)});a.topBarEvents.setDensity.pipe(jg(this.destroyed$)).subscribe(function(k){h.setDensity(k)});a.topBarEvents.openSettings.pipe(jg(this.destroyed$)).subscribe(function(k){var q=k.newTab;Tjc(h,zsa(k.settingsTabName),q)})};V(a5,yI);a5.\u0275dir=yI.\u0275dir;var Tjc=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.url(b)};
a5.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(Xf(),jg(this.destroyed$)).subscribe(),Zn(this.analytics,"preferences","setDisplayDensity",a))};a5.\u0275fac=function(a){return new (a||a5)(t(BK),t(FM),t(FK),t(GK),t(VI),t(fP))};a5.\u0275prov=lc({token:a5,factory:a5.\u0275fac,providedIn:"root"});
var b5=function(a,b,c,d,e,f,h,k,q,u,x){yI.call(this);var E=this;this.activeSession=a;this.currentSearch=b;this.searchAcData=c;this.savedSearchApi=d;this.butterBar=e;this.bLocation=f;this.paths=h;this.analytics=k;this.appSearchState=q;this.appEvents=x;this.items=[];this.acHeader=null;this.placeholder=this.currentQuery="";this.frontendAccessMode=this.activeSession.frontendAccessMode;this.environmentType=this.activeSession.getEnvironmentType();this.searchAcData.acRefreshed$.pipe(jg(this.destroyed$)).subscribe(function(){E.items=
E.searchAcData.items;E.acHeader=E.searchAcData.acHeader})};V(b5,yI);b5.\u0275dir=yI.\u0275dir;
b5.prototype.ngOnInit=function(){var a=this;switch(this.frontendAccessMode){case "INTERNAL":this.placeholder="Search Buganizer";break;case "PARTNER":this.placeholder="Search Partner IssueTracker";break;case "PUBLIC":this.placeholder="Search IssueTracker";break;default:this.placeholder="Search"}this.appSearchState.queryState$.next({query:this.currentSearch.currentSearch,cursorPosition:void 0,setViaInteraction:!1});this.subscriptions.add(FMb(this.currentSearch,function(c){a.appSearchState.queryState$.next({query:c,
cursorPosition:void 0,setViaInteraction:!1})}));this.appSearchState.queryState$.pipe(jg(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("ze");e=new u6b(f,h);if(f){var k=f.slice(0,h);for(var q=!1,u=-1,x=-1;-1<(u=k.indexOf('"',u+1));)q=!q,x=u;k=q?x:-1;if(-1<k)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=XPa(f.slice(0,h)+(-1<q?k.slice(0,q):k),y6b))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},Mi(k.val,"customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);h=Math.max(h-q,0);u=k;if("("===f.charAt(0)){b:{u=[];x=/[()]/g;for(var E;null!=(E=x.exec(f));){var I=u[u.length-1];if(I&&I!==E[0]){if(u.pop(),!u.length){u=
E.index>=h;break b}}else u.push(E[0])}u=!0}u=u?2:0}else u=v6b.includes(u.val)&&-1===f.search("^\\d")?1:0;switch(u){case 2:f=v6b.includes(k.val)?Xp(f,h,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):Xp(f,h,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(f.val)&&(f.val="",f.idx=h);e.value=f;break;case 1:e.value=Xp(f,h,"[()|]","[()|,\\s]");break;case 0:e.value=Xp(f,h,"[\\s()|]");-1<f.slice(0,h).search("[\\s()|]")&&(k=null);break;default:sh(u,"unknown ValueType.")}e.value.idx+=q;e.label=k}else e.value=
Xp(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(S(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(lg(b),jg(this.destroyed$)).subscribe(function(c){c=r(c);c.next();c=c.next().value;a.submitSearch(c)})};b5.prototype.ngAfterViewInit=function(){mic(this.advancedSearchCtrl,this.currentSearch.currentSearch)};
b5.prototype.submitSearch=function(a){var b=this.currentSearch,c=sa(b.searchHandlerStack);void 0===c?b.$log.warn("No search function installed."):c(a)};var Ujc=function(a){if(a.advancedSearchCtrl)return"SUCCESS"!==a.advancedSearchCtrl.getState()?a.currentQuery:sic(a.advancedSearchCtrl).trim()};b5.prototype.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(Ujc(this)!==this.currentQuery||"SUCCESS"!==this.advancedSearchCtrl.getState())&&mic(this.advancedSearchCtrl,this.currentQuery)};
b5.prototype.onAdvancedSearchClose=function(){if(this.advancedSearchCtrl){var a=Ujc(this);void 0!==a&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1})}};b5.prototype.submitAdvancedSearch=function(){if(this.advancedSearchCtrl){var a=Ujc(this);void 0!==a&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next(),Zn(this.analytics,"search","done-builder"))}};
b5.prototype.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=Ujc(this);void 0!==c&&(tK(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;tK(b.butterBar,"Created saved search '"+a+"' ID "+d+".");b.bLocation.url(b.paths.viewSavedSearch(d));Zn(b.analytics,"savedSearches","create")}).catch(function(d){uK(b.butterBar,$m(d))}))}};
b5.\u0275fac=function(a){return new (a||b5)(C(yH),C(EN),C(f_),C(CN),C(sK),C(FK),C(GK),C(FM),C(Q2),C(a5),C(BK))};
b5.\u0275cmp=w({type:b5,selectors:[["b-top-bar-outlet"]],viewQuery:function(a,b){a&1&&Hf(x2,5);if(a&2){var c;Gf(c=Jf())&&(b.advancedSearchCtrl=c.first)}},features:[ie],decls:5,vars:8,consts:[[3,"logoFrontendAccessMode","logoEnvironmentType","searchBoxPlaceholder","searchBoxAutoCompleteItems","searchBoxAutoCompleteHeader","searchBoxOnAdvancedSearchOpen","searchBoxOnAdvancedSearchClose","searchBoxOnAdvancedSearchSubmit","searchBoxOnSaveSearch"],["class","bv2-view-loading",4,"ngIf"],["class","bv2-validation-error-banner",
4,"ngIf"],[1,"bv2-view-loading"],[1,"bv2-validation-error-banner"],["class","warning-container",4,"ngIf"],[4,"ngIf"],[1,"warning-container"],["svgIcon","alert"]],template:function(a,b){a&1&&(F(0,"b-app-top-bar",0),J("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",function(c){return b.saveSearch(c)}),
H(1,"b-advanced-search"),O(2,$Za,4,0,"div",1),O(3,c_a,3,2,"div",2),O(4,d_a,2,0,"div",2),G());a&2&&(D("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",b.placeholder)("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader),B(2),D("ngIf","INIT"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),D("ngIf","NOT_REPRESENTABLE"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())||"SYNTAX_ERROR"===
(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())),B(1),D("ngIf","SERVER_ERROR"===(null==b.advancedSearchCtrl?null:b.advancedSearchCtrl.getState())))},dependencies:[ux,x2,T2,aN,XE],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 c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=Cc({type:c5});c5.\u0275inj=mc({imports:[Mx,z2,a3,MN,pF]});
var d5=function(a,b){this.dialogRef=a;this.data=b;this.userToDisplay=Ol;this.updateDiffs=b.updateDiffs};d5.prototype.close=function(){this.dialogRef.close()};d5.\u0275fac=function(a){return new (a||d5)(C(CB),C(NB))};
d5.\u0275cmp=w({type:d5,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&&(F(0,"div",0)(1,"ul",1),O(2,m_a,10,4,"li",2),G()(),F(3,"div",3)(4,"button",4),J("click",function(){return b.close()}),P(5," Close "),G()());a&2&&(B(2),D("ngForOf",b.updateDiffs))},dependencies:[yx,ux,rB,SB,TB,aS,ZR,vP],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-color:#dadce0;border-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 e5=function(){};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275mod=Cc({type:e5});e5.\u0275inj=mc({imports:[Mx,uG,UB,qS,PP]});
var Vjc=Et(["https://www.gstatic.com/buganizer/gfx/","/",""]),f5=Et(["https://www.gstatic.com/buganizer/img/v2/",""]),Wjc=xh(Vjc,"2022-05-24-9b045fc3","all-icons.svg"),Xjc=xh(f5,"empty_blocker_light.png"),Yjc=xh(f5,"empty_blocker_dark.png"),Zjc=xh(f5,"empty_child_light.png"),$jc=xh(f5,"empty_child_dark.png"),akc=xh(f5,"robot_sleeping.png"),bkc=xh(f5,"tea_light.png"),ckc=xh(f5,"tea_dark.png"),dkc=xh(f5,"welcome_graphic_light.png"),ekc=xh(f5,"welcome_graphic_dark.png");
var g5=function(a,b){yI.call(this);this.$window=a;this.currentTracker=b;this.faviconUrl=this.defaultFaviconUrl=vh("https://www.gstatic.com/buganizer/img/v4/favicon.png")};V(g5,yI);g5.\u0275dir=yI.\u0275dir;
var fkc=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=null==b?void 0:b.href;a.faviconUrl=c?vh(c):a.defaultFaviconUrl;a.currentTracker.tracker$.pipe(S(function(d){var e;if(null==d?0:null==(e=d.branding)?0:e.logoUrl){var f;d=vh(null==d?void 0:null==(f=d.branding)?void 0:f.logoUrl)}else d=a.faviconUrl;return d}),jg(a.destroyed$)).subscribe(function(d){if(b&&b.href!==d.toString()){if(d instanceof Hy)b.href=Ci(d).toString();else{if(-1===LAb.indexOf("icon"))throw Error("fc`icon");
b.href=mh(d)}b.rel="icon"}})};g5.\u0275fac=function(a){return new (a||g5)(t(jM),t(kM))};g5.\u0275prov=lc({token:g5,factory:g5.\u0275fac,providedIn:"root"});
var gkc=/^\s*[^:/?#]+:/i,h5=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}!d||d.hasAttribute("target")&&"_self"!==d.getAttribute("target")||(d=d.getAttribute("href"))&&!gkc.test(d)&&(c.preventDefault(),b.bLocation.url(d))}}};h5.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};
h5.\u0275fac=function(a){return new (a||h5)(t(FK))};h5.\u0275prov=lc({token:h5,factory:h5.\u0275fac,providedIn:"root"});
var hkc=new sd("XapHatsSurveyApiKey"),ikc=new sd("XapHatsSurveyLocale"),jkc=new sd("XapHatsSurveyWindow"),kkc=new sd("XapHatsSurveyListnrProductId");
var lkc=new Map([[0,1],[1,2]]),i5=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:null!=c?c:"en-US",window:d};h=PAb(RAb,"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 oH(h)};this.helpService=e?e.runOutsideAngular(f):f()},u_a=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 U.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(ig(function(f){return new U.Observable(function(h){var k;a.helpService.presentSurvey({surveyData:f,
colorScheme:d.theme?lkc.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)})}))};i5.\u0275fac=function(a){return new (a||i5)(t(hkc),t(kkc),t(ikc,8),t(jkc,8),t(qg,8))};i5.\u0275prov=lc({token:i5,factory:i5.\u0275fac,providedIn:"any"});
var mkc=[],nkc=!1,j5=function(a,b,c,d,e,f,h,k){yI.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};V(j5,yI);j5.\u0275dir=yI.\u0275dir;j5.prototype.tearDown=function(){yI.prototype.ngOnDestroy.call(this);document.removeEventListener("click",this.linkClickHandler.linkClickHandler)};j5.\u0275fac=function(a){return new (a||j5)(t(i5),t(WE),t(yH),t(z_),t(C_),t(h5),t(GN),t(g5))};
j5.\u0275prov=lc({token:j5,factory:j5.\u0275fac,providedIn:"root"});
var okc={provide:nmb,useFactory:function(a){return function(){Sk("app initializer starting");nkc||(a.iconRegistry._addSvgIconSetConfig("",new VE(Wjc)),nkc=!0);if("INTERNAL"===a.session.frontendAccessMode){u_a(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(Xf(),jg(a.destroyed$)).subscribe();for(var b=r(mkc),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;AH(a.session,c.flagName)&&u_a(a.hatsService,d).pipe(Xf(),jg(a.destroyed$)).subscribe()}}a.appHistory.install();a.routePerformance.install();
a.linkClickHandler.install();b=a.issueLru;iwa(b.viewed,OMb());iwa(b.edited,MMb());b.appEvents.issueViewed.pipe(jg(b.stop$)).subscribe(b.addViewed);b.appEvents.issueEdited.pipe(jg(b.stop$)).subscribe(b.addEdited);fkc(a.faviconService)}},deps:[j5],multi:!0};
var k5=function(a,b){this.paths=a;this.bLocation=b};k5.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)};k5.\u0275fac=function(a){return new (a||k5)(t(GK),t(FK))};k5.\u0275prov=lc({token:k5,factory:k5.\u0275fac,providedIn:"root"});var pkc={provide:pW,useExisting:k5};
var qkc=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":case "critique-legacy.corp.google.com":case "critique-ng.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":case "critique-legacy-staging.corp.google.com":case "critique-ng-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":case "critique-legacy-qa.corp.google.com":case "critique-ng-qa.corp.google.com":return 3;
default:return 4}}();
var l5=function(a){MC.call(this);this.errorHandlerFn_=a};Wt(l5,MC);l5.prototype.wrap=function(a){return rkc(this,a)};var m5=function(a,b){return(b?"__wrapper_":"__protected_")+Ia(a)+"__"},rkc=function(a,b){var c=m5(a,!0);b[c]||((b[c]=skc(a,b))[m5(a,!1)]=b);return b[c]},skc=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[m5(a,!1)]=b;return c};
l5.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 tkc(a);};
var ukc=function(a,b){var c=da.window,d=c[b];if(!d)throw Error("Qe`"+b);c[b]=function(e,f){"string"===typeof e&&(e=Tt(Dib,e));e&&(arguments[0]=e=rkc(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][m5(a,!1)]=d};l5.prototype.disposeInternal=function(){var a=da.window;var b=a.setTimeout;b=b[m5(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[m5(this,!1)]||b;a.setInterval=b;l5.superClass_.disposeInternal.call(this)};
var tkc=function(a){ba.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)};Wt(tkc,ba);
var n5=function(a,b,c){Jo.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=vkc;this.handlerUrl_=a;if(!c)if(this.errorHandler_=null,$t&&!fu("10"))osb(St(this.handleException,this));else{this.errorHandler_=new l5(St(this.handleException,this));ukc(this.errorHandler_,"setTimeout");ukc(this.errorHandler_,"setInterval");a=this.errorHandler_;b=da.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=
0;d<c.length;d++){var e=c[d];c[d]in b&&ukc(a,e)}a=this.errorHandler_;nsb=!0;b=St(a.wrap,a);for(c=0;c<PC.length;c++)PC[c](b);QC.push(a)}};Wt(n5,Jo);var wkc=function(a,b){OC.call(this,"w");this.error=a;this.context=b};Wt(wkc,OC);var vkc=function(a,b,c,d){if(d instanceof Map){var e={};d=r(d);for(var f=d.next();!f.done;f=d.next()){var h=r(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;ui(a,null,b,c,e)};
n5.prototype.handleException=function(a,b){a=a.error||a;b=b?kh(b):{};a instanceof Error&&sja(b,a.__closure__error__context__984382||{});var c=qsb(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(k){}var d=c.message.substring(0,1900);if(!(a instanceof ba)||a.reportErrorToServer){a=c.stack;try{var e=TD(this.handlerUrl_,"script",c.fileName,"error",d,"line",c.lineNumber);ih(this.additionalArguments_)||(e=Asa(e,this.additionalArguments_));d={};d.trace=a;if(b)for(var f in b)d["context."+
f]=b[f];var h=vub(d);this.xhrSender_(e,"POST",h,this.extraHeaders_)}catch(k){}}try{this.dispatchEvent(new wkc(c,b))}catch(k){}};n5.prototype.disposeInternal=function(){ti(this.errorHandler_);n5.superClass_.disposeInternal.call(this)};
var o5=function(){this.jsBuild="455121451";this.buildLabel="buganizer.frontend_20220615.04_p0"};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275prov=lc({token:o5,factory:o5.\u0275fac,providedIn:"root"});var p5=function(){};p5.prototype.reportingEnabled=function(){return 4!==qkc};p5.\u0275fac=function(a){return new (a||p5)};p5.\u0275prov=lc({token:p5,factory:p5.\u0275fac,providedIn:"root"});
var q5=function(a,b){var c=this;this.appContext=b;this.context={};this.reportingExtensions=[];this.jsDebugErrorReporter=new n5("/jserror",function(d,e){e.js_build=a.jsBuild;e.buildLabel=a.buildLabel;e["build-label"]=a.buildLabel;d=r(c.reportingExtensions);for(var f=d.next();!f.done;f=d.next())f.value.enhanceContext(e)},!0)};
q5.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=r(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};q5.\u0275fac=function(a){return new (a||q5)(t(o5),t(p5))};q5.\u0275prov=lc({token:q5,factory:q5.\u0275fac,providedIn:"root"});
var r5=function(a){this._console=console;this.reporter=a};V(r5,ce);r5.prototype.handleError=function(a){this.reporter.reportError(a)};r5.\u0275fac=function(a){return new (a||r5)(t(q5))};r5.\u0275prov=lc({token:r5,factory:r5.\u0275fac,providedIn:"root"});var s5=function(a){this.activeSession=a};V(s5,p5);s5.prototype.reportingEnabled=function(){return AH(this.activeSession,"reportErrors")};s5.\u0275fac=function(a){return new (a||s5)(t(yH))};s5.\u0275prov=lc({token:s5,factory:s5.\u0275fac,providedIn:"root"});
var xkc={provide:ce,useClass:r5},ykc={provide:p5,useClass:s5},zkc={provide:o5,useValue:{jsBuild:"455121451",buildLabel:"buganizer.frontend_20220615.04_p0"}};
var t5=function(){};t5.\u0275fac=function(a){return new (a||t5)};t5.\u0275cmp=w({type:t5,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var u5=function(){};u5.\u0275fac=function(a){return new (a||u5)};u5.\u0275mod=Cc({type:u5});u5.\u0275inj=mc({});
var Akc=function(){};V(Akc,MEb);g=Akc.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&&Ei(a.params,b.params)};
var v5=function(a){this.router=a};
v5.prototype.canActivate=function(a,b){if(b.url.includes("#ISSUE_HistoryHeader")){var c=r(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=r(b.url.split("?")).next().value;var d={};return this.router.createUrlTree([b],{queryParams:Object.assign({},Dsa(a.queryParamMap),(d.showInsights="deployments",d)),fragment:null!=
(c=a.fragment)?c:void 0})}return!0};v5.\u0275fac=function(a){return new (a||v5)(t(Gk))};v5.\u0275prov=lc({token:v5,factory:v5.\u0275fac,providedIn:"root"});
var Bkc=/^(\d+)$/,w5=function(a){this.butterBar=a;this.paramNamesToCheck=new Set(Object.values(MDb))};w5.prototype.validate=function(a){for(var b=r(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,this.paramNamesToCheck.has(c)){var d=a[c],e=qC(d);if(!Bkc.test(d)||isNaN(e)||!Number.isInteger(e))return uK(this.butterBar,"The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};w5.\u0275fac=function(a){return new (a||w5)(t(sK))};
w5.\u0275prov=lc({token:w5,factory:w5.\u0275fac,providedIn:"root"});
var x5=function(a){this.routeParamsValidator=a};x5.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};x5.\u0275fac=function(a){return new (a||x5)(t(w5))};x5.\u0275prov=lc({token:x5,factory:x5.\u0275fac,providedIn:"root"});
var y5=function(a){this.router=a};y5.prototype.canActivate=function(){return this.router.createUrlTree([n_a()])};y5.\u0275fac=function(a){return new (a||y5)(t(Gk))};y5.\u0275prov=lc({token:y5,factory:y5.\u0275fac,providedIn:"root"});
var Ckc=["bookmarkGroupName"],Dkc=function(a){return{"bv2-edit-resource-readonly":a}},z5=function(a,b,c,d,e,f,h,k,q,u){yI.call(this);var x=this;this.location=a;this.appHistory=b;this.snackBar=c;this.bookmarkGroupsApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new ey({name:new gy("",Xx),description:new gy("")});h.setTitle("Create Bookmark Group");this.subscriptions.add(LY(q,function(){return!(!x.name()&&!x.description())},
!1))};V(z5,yI);z5.\u0275dir=yI.\u0275dir;g=z5.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});Zn(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(){A_(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:""};z5.\u0275fac=function(a){return new (a||z5)(C(FK),C(z_),C(pK),C(NM),C(GK),C(FM),C(WN),C(xK),C(KY),C(BK))};
z5.\u0275cmp=w({type:z5,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&Hf(Ckc,5);if(a&2){var c;Gf(c=Jf())&&(b.bookmarkGroupName=c.first)}},features:[ie],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&&(F(0,"div",0)(1,"div",1)(2,"button",2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),P(5,"Create a new bookmark group"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),P(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),P(17,"Description"),G(),F(18,"textarea",13),P(19,"        "),G()(),F(20,"p",14),P(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. "),
G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),P(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),P(26," Revert changes "),G()()()()());a&2&&(B(8),D("formGroup",b.bookmarkGroupUnderEdit),B(1),D("error",b.error),B(1),D("ngClass",Oe(7,Dkc,b.isSaving)),B(3),D("disabled",b.isSaving),B(2),D("ngClass",Oe(9,Dkc,b.isSaving)),B(3),D("disabled",b.isSaving),B(5),D("disabled",b.isSaving))},dependencies:[xx,rB,lF,XE,iy,Qg,by,cy,sy,oy,py,SY],encapsulation:2});
var Ekc=["form"],A5=function(a,b,c,d,e,f,h,k,q,u){yI.call(this);this.butterBar=a;this.paths=b;this.analytics=c;this.appHistory=d;this.bLocation=e;this.activeSession=f;this.documentationLinks=h;this.componentActions=u;this.parentComponentInternal=null;this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=this.isSaving=!1;this.component={componentId:0,parentComponentId:0,name:"",description:"",archived:!1,customFieldId:null,accessLimit:{accessLevel:"ACCESS_LEVEL_UNSPECIFIED"},emailAlias:"dummyemail@google.com",
componentPathInfo:{componentPathId:null,componentPathName:null,allCustomField:null},userHasEditAccess:void 0,commentEditState:void 0,slo:{inherit:!0,source:"BUGSCOPE",id:"0"},bugscopeSloId:"0"};this.sessionIsExternal=f.isExternalSession();k.parentId&&this.loadParentComponent_(Ki(k.parentId));q.setTitle("Create component")};V(A5,yI);A5.\u0275dir=yI.\u0275dir;g=A5.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate_()&&(tK(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){tK(a.butterBar,"Component saved, redirecting in "+a.activeSession.getCreateComponentRedirectDelay()/1E3+"s.",a.activeSession.getCreateComponentRedirectDelay());Zn(a.analytics,"component","create");a.commentEditsEnabled?Zn(a.analytics,"component","comment edits enabled",
"create"):Zn(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){uK(a.butterBar,$m(b),0);a.isSaving=!1}))};g.back=function(){A_(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;Fkc(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;Fkc(this)};var Fkc=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled="ENABLED"===a.component.commentEditState):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};
ji.Object.defineProperties(A5.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;Fkc(this)}}});A5.\u0275fac=function(a){return new (a||A5)(C(sK),C(GK),C(FM),C(z_),C(FK),C(yH),C(dP),C(IR),C(WN),C(iT))};
A5.\u0275cmp=w({type:A5,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&Hf(Ekc,5);if(a&2){var c;Gf(c=Jf())&&(b.createComponentForm=c.first)}},features:[ie],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&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5),P(6,"Create component"),G(),F(7,"div",
6)(8,"form",7,8),H(10,"b-error-banner",9),F(11,"div",10)(12,"label",11)(13,"span",12),P(14,"Name"),G()(),F(15,"input",13),J("ngModelChange",function(c){return b.component.name=c}),G()(),F(16,"div",10)(17,"label",14)(18,"span",12),P(19,"Description"),G()(),F(20,"textarea",15),J("ngModelChange",function(c){return b.component.description=c}),P(21,"        "),G()(),F(22,"div",10)(23,"label",16)(24,"span",12),P(25,"Parent Component"),G()(),F(26,"b-team-component-picker",17),J("selectedComponentChange",
function(c){return b.onComponentSelect(null!==c&&void 0!==c?c:null)})("accessCheckComplete",function(c){return b.accessCheckComplete(c)}),G()(),F(27,"div",18)(28,"div",19)(29,"b-checkbox",20),J("change",function(c){b.commentEditsEnabled=c;return b.setCommentEditState()}),G()(),F(30,"div")(31,"strong",21),P(32,"Editable Comments"),G(),F(33,"div",22),P(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. "),O(35,p_a,2,1,"a",
23),G()()(),F(36,"div",10)(37,"label",24)(38,"span",12),P(39,"Retention Settings"),G()(),F(40,"div",21)(41,"p"),P(42,"Please choose a period of time to retain the data stored in this component."),H(43,"br"),F(44,"a",25),P(45," Learn more "),G()()(),F(46,"div",26)(47,"b-retention-settings-form",27),J("modelChange",function(c){return b.component.retentionSettings=c})("validChange",function(c){return b.retentionIsValid=c}),G()()(),F(48,"p",28),P(49," Advanced settings such as custom field and access controls may be defined once the component is created. "),
G(),F(50,"div",29)(51,"b-button",30),J("onAction",function(){return b.create()}),P(52," Save "),G(),F(53,"b-button",31),J("onAction",function(){return b.back()}),P(54," Discard "),G()()()()());a&2&&(B(8),te("show-errors",b.error),B(2),D("error",b.error),B(1),te("bv2-edit-resource-readonly",b.isSaving),B(4),D("bFocus",!0)("ngModel",b.component.name)("disabled",b.isSaving)("required",!0),B(1),te("bv2-edit-resource-readonly",b.isSaving),B(4),D("ngModel",b.component.description)("disabled",b.isSaving),
B(2),te("bv2-edit-resource-readonly",b.isSaving),B(4),D("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(1),te("bv2-edit-resource-readonly",b.isSaving),B(2),D("checked",b.commentEditsEnabled),B(6),D("ngIf",!b.sessionIsExternal),B(9),D("href",qt(),Ud),B(2),te("bv2-edit-resource-readonly",b.isSaving),B(1),D("issueRetentionDisabled",b.isSaving)("isExternal",bX(b.parentComponent))("initialModel",b.component.retentionSettings),B(4),D("disabled",
b.isSaving||!b.componentIsValid),B(2),D("disabled",b.isSaving))},dependencies:[hO,ux,SY,SZ,iy,Qg,by,cy,sy,hy,fy,BH,fQ,d_,oV],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});
var Gkc=["hotlistName"],Hkc=function(a){return{"bv2-edit-resource-readonly":a}},B5=function(a,b,c,d,e,f,h,k,q,u){yI.call(this);var x=this;this.location=a;this.appHistory=b;this.snackBar=c;this.hotlistApi=d;this.paths=e;this.analytics=f;this.errorHandler=k;this.appEvents=u;this.error="";this.isSaving=!1;this.hotlistUnderEdit=new ey({name:new gy("",Xx),description:new gy("")});h.setTitle("Create Hotlist");this.subscriptions.add(LY(q,function(){return!(!x.name()&&!x.description())},!1))};V(B5,yI);
B5.\u0275dir=yI.\u0275dir;g=B5.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});Zn(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(){A_(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:""};
B5.\u0275fac=function(a){return new (a||B5)(C(FK),C(z_),C(pK),C(SK),C(GK),C(FM),C(WN),C(xK),C(KY),C(BK))};
B5.\u0275cmp=w({type:B5,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&Hf(Gkc,5);if(a&2){var c;Gf(c=Jf())&&(b.hotlistName=c.first)}},features:[ie],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&&(F(0,"div",0)(1,"div",1)(2,"button",
2),J("click",function(){return b.back()}),H(3,"mat-icon",3),G(),F(4,"h2"),P(5,"Create a new hotlist"),G()()(),F(6,"div",4)(7,"div",5)(8,"form",6),H(9,"b-error-banner",7),F(10,"div",8)(11,"label",9),P(12,"Name"),G(),H(13,"input",10,11),G(),F(15,"div",8)(16,"label",12),P(17,"Description"),G(),F(18,"textarea",13),P(19,"        "),G()(),F(20,"p",14),P(21," Advanced settings such as access controls may be defined once the hotlist is created. "),G(),F(22,"div",15)(23,"button",16),J("click",function(){return b.save()}),
P(24," Save "),G(),F(25,"button",17),J("click",function(){return b.revertChanges()}),P(26," Revert changes "),G()()()()());a&2&&(B(8),D("formGroup",b.hotlistUnderEdit),B(1),D("error",b.error),B(1),D("ngClass",Oe(7,Hkc,b.isSaving)),B(3),D("disabled",b.isSaving),B(2),D("ngClass",Oe(9,Hkc,b.isSaving)),B(3),D("disabled",b.isSaving),B(5),D("disabled",b.isSaving))},dependencies:[xx,rB,lF,XE,iy,Qg,by,cy,sy,oy,py,SY],encapsulation:2});
var C5=function(a,b,c,d,e,f){yI.call(this);this.cdr=a;this.paths=b;this.relatedIssuesService=c;this.analytics=d;this.hatsService=e;this.refreshMagicBox=!1;this.refreshMagicBoxChange=new Jw;this.hideHeader=this.showInline=!1;this.issueTitle="";this.issue={};this.customFieldMap={};this.numIssues=5;this.headerChange=new Jw;this.isRefreshing=this.showSuggestedDupes=!1;this.page=1;this.endIndex=this.startIndex=this.numPages=this.numTotalResults=0;this.magicBoxIssues=[];this.isInitiallyLoading=!0;this.refresh$=
new U.Subject;this.CATEGORIES=ao;this.enableDupSearchControl=AH(f,"enableDupSearchControl");this.enableDupSearchA=AH(f,"enableDupSearchA");this.enableDupSearchB=AH(f,"enableDupSearchB");this.enableDupSearchC=AH(f,"enableDupSearchC");this.enableSimilarIssues=f.isInternalSession()&&(this.enableDupSearchControl||this.enableDupSearchA||this.enableDupSearchB||this.enableDupSearchC)};V(C5,yI);C5.\u0275dir=yI.\u0275dir;
C5.prototype.ngOnInit=function(){var a=this;this.fetchIssues();this.refresh$.pipe(Tf(750),jg(this.destroyed$)).subscribe(function(){a.refresh()})};C5.prototype.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=Ikc(this),this.headerChange.emit(w_a(this)),this.refresh$.next());b&&this.refresh()}};
var Ikc=function(a){var b;return!!a.issue.title||!!a.issue.comment||!!a.issue.priority||!!a.issue.type||0<(null!=(b=a.issue.hotlistId)?b:[]).length||a.hasCustomFieldValue()};C5.prototype.hasCustomFieldValue=function(){return this.issue.customField?0<this.issue.customField.map(function(a){return new jl(a)}).filter(function(a){return!a.isEmpty()}).length:!1};C5.prototype.refresh=function(){this.isRefreshing=!0;this.page=1;this.magicBoxIssues=[];this.fetchIssues()};
var Jkc=function(a){a.magicBoxIssues=[];a.numPages=0;a.page=0;a.numTotalResults=0;a.totalText="0";a.startIndex=0;a.endIndex=0};
C5.prototype.searchAsync=function(a){var b=this,c=this.page;this.relatedIssuesService.get({query:a,nonParallelRequest:!0,sort:"modified_time:desc",count:this.numIssues,page:c}).then(function(d){if(d.issueDigests){var e=d.issueDigests.map(function(f){return{id:f.issueId,title:f.title,href:b.paths.editIssue(f.issueId)}});1===b.page&&(b.magicBoxIssues=[]);b.magicBoxIssues=b.enableSimilarIssues?[].concat(v(b.magicBoxIssues),v(e)):e;e=b.numIssues;b.numTotalResults=d.numTotalResults;b.numPages=Math.ceil(b.numTotalResults/
e);b.startIndex=0===b.numTotalResults?0:(c-1)*e+1;b.endIndex=Math.min(b.startIndex+e-1,b.numTotalResults);b.viewAllHref=b.paths.listIssues({q:a,s:"modified_time:desc"});b.totalText=b.getTotalText(b.numTotalResults,c,e,1===c);b.cdr.detectChanges()}else Jkc(b)},function(){Jkc(b)}).finally(function(){b.isInitiallyLoading=!1;b.isRefreshing=!1})};var w_a=function(a){return a.showSuggestedDupes?"Similar Issues":"Recent Issues"};
C5.prototype.fetchIssues=function(a){a&&(this.page=a);this.componentId&&(this.isRefreshing=!0,a=this.showSuggestedDupes?Kkc(this):"componentid:"+this.componentId+" status:open",this.searchAsync(a))};
var Kkc=function(a){var b=J_a(a.issue.title||"");b=0<b.length?"title:("+b.join(" ")+")":"";var c=$k(a.issue.componentId);b=(c?"componentid:"+c:"")+(b?" "+b:"");if(a.enableDupSearchControl)return b;c=J_a($k(a.issue.comment)||"");c=0<c.length?"comment:("+c.join(" ")+")":"";b+=c?" "+c:"";if(a.enableDupSearchA)return b;c=$k(a.issue.type);var d=$k(a.issue.priority);b=b+(" "+(d?"priority:"+d:""))+(" "+(c?"type:"+c:""));if(a.enableDupSearchB)return b;c=$k(a.issue.hotlistId);b=b+(" "+(!c||1>(null==c?void 0:
c.length)?"":"hotlistid:("+(c.join(" | ")+")")))+(" "+Lkc(a,$k(a.issue.customField)));return a.enableDupSearchC?b:""},Lkc=function(a,b){return!b||1>(null==b?void 0:b.length)?"":b.map(function(c){return new jl(c)}).filter(function(c){return!c.isEmpty()}).map(function(c){return Mkc(a,c)}).join(" ")},Mkc=function(a,b){if(b.isEmpty())return"";var c="customfield"+b.customFieldId+":";switch(a.getCustomFieldType(b)){case "TEXT":var d='"'+b.textValue+'"';break;case "DATE":d=Nkc(b.dateValue);break;case "ENUM":d=
'"'+b.enumValue+'"';break;case "NUMERIC":d=""+b.numericValue;break;case "REPEATED_TEXT":d='("'+b.repeatedTextValue.values.join('" | "')+'")';break;case "REPEATED_DATE":d="("+b.repeatedDateValue.values.map(function(e){return Nkc(e)}).join(" | ")+")";break;case "REPEATED_ENUM":d='("'+b.repeatedEnumValue.values.join('" | "')+'")';break;case "REPEATED_NUMERIC":d="("+b.repeatedNumericValue.values.join(" | ")+")"}return d?c+d:""},Nkc=function(a){return a?a.year+"-"+("0"+a.month).slice(-2)+"-"+("0"+a.day).slice(-2):
""};C5.prototype.getCustomFieldType=function(a){var b,c;return null!=(c=null==(b=this.customFieldMap[a.customFieldId])?void 0:b.type)?c:""};C5.prototype.getTotalText=function(a,b,c,d){return a<=b*c?a.toString():d?"many":a.toString()};C5.prototype.getGroupName=function(){return this.enableDupSearchControl?"BaseVariant":this.enableDupSearchA?"VariantA":this.enableDupSearchB?"VariantB":this.enableDupSearchC?"VariantC":"Control"};
C5.\u0275fac=function(a){return new (a||C5)(C(uI,2),C(GK),C(jX),C(FM),C(i5),C(yH))};
C5.\u0275cmp=w({type:C5,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:[Me([jX,uI]),ie,Jc],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&&(O(0,r_a,2,2,"div",0),O(1,H_a,9,8,"ng-template",null,1,Pf));a&2&&D("ngIf",b.componentId)},dependencies:[hO,BH,aN,xx,yx,ux,nX,dN,eN,hN,fN,rB,XE],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-color:#dadce0;border-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-color:#dadce0;border-color:var(--divider);padding:0}\n/*# sourceMappingURL=magic-box.css.map */"]});
var I_a=RegExp("\\w+","g");
var Okc=["popOver"],L_a=function(a){return{$implicit:a}},D5=function(a){this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.valueChange=new Jw;this.required=this.editing=this.headerFocused=!1;this.editingValue="";this.onChange=function(){};this.onTouched=function(){};if(""===a||"true"===a||"required"===a)this.required=!0};V(D5,MP);g=D5.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};ji.Object.defineProperties(D5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});D5.\u0275fac=function(a){return new (a||D5)(fd("required"))};
D5.\u0275cmp=w({type:D5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&Hf(Okc,7);if(a&2){var c;Gf(c=Jf())&&(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:[Me([{provide:wx,useExisting:ic(function(){return D5}),
multi:!0},{provide:MP,useExisting:ic(function(){return D5}),multi:!0}]),ie],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&&(F(0,"button",0,1),J("click",function(){return b.startEditing()})("focus",function(){return b.headerFocused=!0})("blur",function(){return b.headerFocused=!1}),F(2,"span"),O(3,M_a,2,4,"ng-container",2),O(4,N_a,1,1,"ng-template",null,3,Pf),G(),O(6,O_a,2,2,"svg",4),G(),F(7,"onedev-pop-over-edit-panel",5,6),J("closedWithAction",
function(f){return b.stopEditing(f)}),G(),O(9,R_a,4,2,"ng-template",null,7,Pf));if(a&2){var c=M(1),d=M(5),e=M(10);oe("aria-labelledby",b.labelledById);B(3);D("ngIf",b.valueTemplate)("ngIfElse",d);B(3);D("ngIf",!b.disabled);B(1);D("anchor",c)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)}},dependencies:[ux,Ex,Qg,by,hy,WB,z4],styles:["button[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;font-size:13px;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;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 Pkc=Ch("indicatorRotate",[Fh("collapsed, void",Eh({transform:"rotate(0deg)"})),Fh("expanded",Eh({transform:"rotate(180deg)"})),Gh("expanded <=> collapsed, void => collapsed",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),Qkc=Ch("bodyExpansion",[Fh("collapsed, void",Eh({height:"0px",visibility:"hidden"})),Fh("expanded",Eh({height:"*",visibility:"visible"})),Gh("expanded <=> collapsed, void => collapsed",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]);
var Rkc=new sd("CdkAccordion");
var Skc=0,E5=function(a,b,c){var d=this;this.accordion=a;this._changeDetectorRef=b;this._expansionDispatcher=c;this._openCloseAllSubscription=U.Subscription.EMPTY;this.closed=new Jw;this.opened=new Jw;this.destroyed=new Jw;this.expandedChange=new Jw;this.id="cdk-accordion-child-"+Skc++;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=E5.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)})};
ji.Object.defineProperties(E5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){return this._expanded},set:function(a){a=bh(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=bh(a)}}});
E5.\u0275fac=function(a){return new (a||E5)(C(Rkc,12),C(nx),C(uA))};E5.\u0275dir=w({type:E5,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Me([{provide:Rkc,useValue:void 0}])]});
var F5=function(){};F5.\u0275fac=function(a){return new (a||F5)};F5.\u0275mod=Cc({type:F5});F5.\u0275inj=mc({});
var Tkc=new sd("MAT_ACCORDION");
var Ukc=new sd("MAT_EXPANSION_PANEL");
var G5=function(a,b){this._template=a;this._expansionPanel=b};G5.\u0275fac=function(a){return new (a||G5)(C(Df),C(Ukc,8))};G5.\u0275dir=w({type:G5,selectors:[["ng-template","matExpansionPanelContent",""]]});
var Vkc=["body"],Wkc=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xkc=0,Ykc=new sd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),H5=function(a,b,c,d,e,f,h){E5.call(this,a,b,c);var k=this;this._viewContainerRef=d;this._animationMode=f;this._hideToggle=!1;this.afterExpand=new Jw;this.afterCollapse=new Jw;this._inputChanges=new U.Subject;this._headerId="mat-expansion-panel-header-"+Xkc++;this._bodyAnimationDone=new U.Subject;this.accordion=a;this._document=e;this._bodyAnimationDone.pipe(Wf(function(q,
u){return q.fromState===u.fromState&&q.toState===u.toState})).subscribe(function(q){"void"!==q.fromState&&("expanded"===q.toState?k.afterExpand.emit():"collapsed"===q.toState&&k.afterCollapse.emit())});h&&(this.hideToggle=h.hideToggle)};V(H5,E5);H5.\u0275dir=E5.\u0275dir;g=H5.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(hg(null),xf(function(){return a.expanded&&!a._portal}),Xf()).subscribe(function(){a._portal=new NA(a._lazyContent._template,a._viewContainerRef)})};g.ngOnChanges=function(a){this._inputChanges.next(a)};
g.ngOnDestroy=function(){E5.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};
ji.Object.defineProperties(H5.prototype,{hideToggle:{configurable:!0,enumerable:!0,get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=bh(a)}},togglePosition:{configurable:!0,enumerable:!0,get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}}});H5.\u0275fac=function(a){return new (a||H5)(C(Tkc,12),C(nx),C(uA),C(Ef),C(hi),C(Xv,8),C(Ykc,8))};
H5.\u0275cmp=w({type:H5,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&If(c,G5,5);if(a&2){var d;Gf(d=Jf())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&Hf(Vkc,5);if(a&2){var c;Gf(c=Jf())&&(b._body=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(a,b){a&2&&te("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:[Me([{provide:Tkc,useValue:void 0},{provide:Ukc,useExisting:H5}]),ie,Jc],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&&(Ee(Wkc),Fe(0),F(1,"div",0,1),J("@bodyExpansion.done",function(c){return b._bodyAnimationDone.next(c)}),F(3,"div",2),Fe(4,1),O(5,S_a,0,0,"ng-template",3),G(),Fe(6,2),G());a&2&&(B(1),D("@bodyExpansion",b._getExpandedState())("id",b.id),oe("aria-labelledby",b._headerId),B(4),D("cdkPortalOutlet",b._portal))},dependencies:[RA],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:[Qkc]},changeDetection:0});
var Zkc=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$kc=ni(function(){}),I5=function(a,b,c,d,e,f,h){var k=$kc.call(this)||this;k.panel=a;k._element=b;k._focusMonitor=c;k._changeDetectorRef=d;k._animationMode=f;k._parentChangeSubscription=U.Subscription.EMPTY;var q=a.accordion?a.accordion._stateChanges.pipe(xf(function(u){return!(!u.hideToggle&&!u.togglePosition)})):U.EMPTY;k.tabIndex=parseInt(h||"")||0;k._parentChangeSubscription=(0,U.merge)(a.opened,a.closed,q,a._inputChanges.pipe(xf(function(u){return!!(u.hideToggle||
u.disabled||u.togglePosition)}))).subscribe(function(){return k._changeDetectorRef.markForCheck()});a.closed.pipe(xf(function(){return a._containsFocus()})).subscribe(function(){return Iz(c,b,"program")});e&&(k.expandedHeight=e.expandedHeight,k.collapsedHeight=e.collapsedHeight);return k};V(I5,$kc);g=I5.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:fi(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};
g.focus=function(a,b){a?Iz(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)};ji.Object.defineProperties(I5.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});
I5.\u0275fac=function(a){return new (a||I5)(C(H5,1),C(wd),C(Hz),C(nx),C(Ykc,8),C(Xv,8),fd("tabindex"))};
I5.\u0275cmp=w({type:I5,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(a,b){a&1&&J("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(oe("id",b.panel._headerId)("tabindex",b.tabIndex)("aria-controls",b.panel.id)("aria-expanded",b.panel.expanded)("aria-disabled",b.panel.disabled),se("height",b._getHeaderHeight()),te("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:[ie],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(a,b){a&1&&(Ee(Zkc),
F(0,"span",0),Fe(1),Fe(2,1),Fe(3,2),G(),O(4,T_a,1,1,"span",1));a&2&&(B(4),D("ngIf",b._showToggle()))},dependencies:[ux],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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;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:[Pkc]},changeDetection:0});var J5=function(){};J5.\u0275fac=function(a){return new (a||J5)};J5.\u0275dir=w({type:J5,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});
var K5=function(){};K5.\u0275fac=function(a){return new (a||K5)};K5.\u0275mod=Cc({type:K5});K5.\u0275inj=mc({imports:[Mx,XA,F5,SA]});
var alc=["descriptionConfirmDialog"],V_a=function(a,b){return{partner:a,"public":b}},H0a=function(a){return{required:a}},M0a=function(a){return{"bv2-upload-ongoing":a}},blc=function(a){return{submitted:a}},L5=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba,Ga,Xa,$a,ec){yI.call(this);var Va=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=u;this.issueTypeDialog=
x;this.componentActions=E;this.activeSession=I;this.draftStore=N;this.pageTitle=L;this.analytics=T;this.issueApi=Y;this.userApi=ja;this.hotlistApi=ha;this.butterBar=ra;this.errorHandler=Fa;this.matDialogService=Ka;this.appEvents=Ca;this.userPreferencesManager=db;this.cdr=Ba;this.confirmationDialogService=Ga;this.issueRelationshipsFridge=Xa;this.issueFridge=$a;this.clearcut=ec;this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.userEmail=this.activeSession.getUserEmail();
this.enableWtdmMvpUi=AH(this.activeSession,"enableWtdmMvpUi");this.sessionIsExternal=this.activeSession.isExternalSession();this.hotlistMap={};this.hotlists=[];this.templateComment="";this.appliedTemplate=null;this.componentPickerTouched=this.isLoadingComponent=!1;this.availablePredefinedTemplates=[];this.preferredTemplateId=this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;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.magicBoxHeader="Recent Issues";this.selectedComponent=null;this.useCodefont=!1;this.selectedHotlistIds=[[]];this.isFormatInRoute=!1;this.isChildIssueIdsValid=this.isParentIssueIdsValid=
this.isBlockingIssueIdValid=this.isBlockedByIssueIdValid=!0;this.startTime=new Date;this.toIssueSeverity=XBb;this.FieldType=iYb;this.initialized=!1;this.getSingleEditFieldType=jYb;this.getListFieldType=cZb;this.fetchUserHotlists();this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){Va.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){Va.fetchUserHotlists()}));
this.enableCreateIssueWithTemplate=AH(I,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=I.isInternalSession()||zH(I);this.priorityChoices=va.priorities.map(function(Ya){return{value:Ya,displayText:Ya}});this.severityChoices=va.severities.map(function(Ya){return{value:Ya,displayText:Ya}});this.issueTypeChoices=va.editIssueTypes.map(function(Ya){return{value:Ya,displayText:ZBb(Ya),altText:va.issueTypesShortDescriptions.get(Ya)}});this.urlTemplate=new r7b(La,b);this.piiWarningMessage=
I.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=
La.component;this.templateIssueRequestedInUrl=La.template_issue;La.template&&(a=Ki(La.template),void 0!==a&&(this.preferredTemplateId=a));La.parentIssueId&&(a=La.parentIssueId,this.parentIssueIds=Array.isArray(a)?a:[a]);La.childrenIssueIds&&(a=La.childrenIssueIds,this.childrenIssueIds=Array.isArray(a)?a:[a]);La.afterIssueId&&(a=La.afterIssueId,this.afterIssueId=Array.isArray(a)?a[0]:a);this.issue=Fi(clc);P0a(this.issue,this);this.audience=2;La.description?this.comment=new HR(La.description,!0):(a=
this.draftStore.$window.sessionStorage.getItem(qo(0))||"",this.comment=new HR(a));a=dlc(La);this.isFormatInRoute=null!=a;a&&(this.comment.formattingMode=a);this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.subscriptions.add(db.preferences$.subscribe(function(Ya){var Sa;Va.useCodefont=null!=(Sa=Ya.useCodefont)?Sa:Va.useCodefont}));this.hasAdvancedFieldsInUrlTemplate=t7b(this.urlTemplate)||!!this.parentIssueIds||!!this.childrenIssueIds;this.subscriptions.add(cJ(jb,{title:"Create Issue Page",
hotkeys:[{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var Ya;null==(Ya=Va.hotlistPicker)||Ya.open()}},{keys:["u"],displayAs:"u",description:"Back to previous page",onPress:function(){Va.back()}}]}));this.componentRequestedInUrl?(this.newIssueStarted=!0,elc(this,Ki(this.componentRequestedInUrl))):(y7b(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&(this.newIssueStarted=!0,flc(this));this.originalIssueCopy=Fi(this.issue);La.description&&
(this.originalIssueCopy.comment=this.comment.value,this.issue.comment=this.comment.value);this.isFormatInRoute&&(this.issue.formattingMode=Mm[this.comment.formattingMode],this.originalIssueCopy.formattingMode=this.issue.formattingMode);this.pageTitle.setTitle("New issue");this.createRestrictedResourcesComponentWhitelist=ob(I.config,13);this.subscriptions.add(LY(Mb,function(){return Va.hasUnsavedChanges()},!1))};V(L5,yI);L5.\u0275dir=yI.\u0275dir;g=L5.prototype;
g.ngOnDestroy=function(){yI.prototype.ngOnDestroy.call(this);glc(this)};g.ngOnInit=function(){this.initialized=!0};g.unloadPageHandler=function(){glc(this)};g.refreshView=function(){var a=this;this.initialized&&this.ngZone.run(function(){a.cdr.detectChanges()})};g.back=function(){A_(this.appHistory)};
var llc=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,hlc(a),a.audience=bX(a.selectedComponent)?2:1,a.createRestrictedResourcesComponentWhitelist.includes(a.selectedComponent.componentId)?(a.judgementForNewContent=new Gl,a.judgementForNewContent.setSeverity(2),a.judgementForNewContent.setJudgementReason("None Specified")):a.judgementForNewContent=
void 0):(jh(a.issue,"componentId"),a.audience=2);a.submitRequested=!1;ilc(a);a.selectedComponentProcessedPromise=Promise.all([jlc(a),klc(a)]).then(function(){});return a.selectedComponentProcessedPromise},mlc=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},W_a=function(a){return D2b(a.selectedComponent)?"External Google partners may be able to see this issue.":cX(a.selectedComponent)?
"Public users with Google Accounts may be able to see this issue.":""},flc=function(a){var b=Ki(a.templateIssueRequestedInUrl);a.availableExistingIssueTemplate=new nlc(b,"issue","Issue "+b,!1);a.selectedTemplate=a.availableExistingIssueTemplate},jlc=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;Wi(Vi(f))&&(f=e.default?"(default template)":"(unnamed template)");return new nlc(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=r(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]);a.refreshView()}).catch(function(){uK(a.butterBar,"Unable to load templates for this component")}):Promise.resolve(void 0)},klc=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=gK(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;a.refreshView()}),e=gK(a.userAccess,"writer",c).then(function(f){a.canEditIssuesInComponent=f;a.refreshView()});c=gK(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;a.refreshView()});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=
f;a.refreshView()});return Promise.all([d,e,c,b]).then(function(){olc(a);a.refreshView()}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})};
L5.prototype.getIssueTemplate=function(){var a=this;if(this.selectedTemplate){var b=function(c){var d=Fi(clc);Object.assign(d,c.snapshot);a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);delete d.issueId;var e=Fi(d);mlc(a);Q0a(a,a.issue);var f=Fi(a.issue);if(a.appliedTemplate)for(var h=r(Object.entries(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){var q=r(k.value);k=q.next().value;q=q.next().value;if(Array.isArray(q)&&Array.isArray(f[k])){q=r(q);for(var u=q.next();!u.done;u=
q.next())Fma(f[k],u.value)}else Ei(q,f[k])&&delete f[k]}a.appliedTemplate=e;f=r(Object.entries(f));for(h=f.next();!h.done;h=f.next())k=r(h.value),h=k.next().value,k=k.next().value,q=clc[h],"customField"===h||Ei(k,q)||(Array.isArray(k)?d[h]=d[h]?Ema(k.concat(d[h])):k:""!==k&&(d[h]=k));e=e.comment||"";a.comment.value!==a.templateComment&&(NQb(a.comment)||""===e||a.comment.value===e||(a.templateComment=e,plc(a,a.comment.value)),d.comment=a.comment.value);a.templateComment=e;d.reporterUser=Vl(a.userEmail);
a.issue=d;P0a(a.issue,a);olc(a);mlc(a);Q0a(a,a.issue);a.comment.value=a.issue.comment||"";y7b(a.urlTemplate,a.issue,a.customFieldMap);P0a(a.issue,a);a.originalIssueCopy=Fi(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Fi(a.issue.hotlistId);a.refreshView()});qlc(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(){a.refreshView()}):"issue"===this.selectedTemplate.type&&(FIb(this.issueTemplate,this.selectedTemplate.id).then(b).then(function(c){c&&(elc(a,c),a.refreshView())}),(0,U.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&&Zn(this.analytics,ao.CREATE_ISSUE,"changeTemplate");
ilc(this)}};L5.prototype.isValid=function(){return!(0!==Y_a(this).length||0!==Z_a(this).length)&&!(!this.isBlockedByIssueIdValid||!this.isBlockingIssueIdValid||!this.isParentIssueIdsValid)&&!Bs(this.comment)};
var Y_a=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})},Z_a=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&(new jl(b)).isEmpty()}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},Ds=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(function(c){return c}).map(Number).filter(function(c){return!isNaN(c)})},s0a=function(a){return a.split(",").map(function(b){return b.trim()})},Cs=function(a){return a?a.join(", "):""},qlc=function(a){if(jja(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;null==(b=a.advancedFieldsZippy)||b.open()}};g=L5.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 jl(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});Zn(this.analytics,ao.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 jl(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(qo(0),a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=r(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;(d=d.next().value)&&b.push(Ki(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();Zn(this.analytics,ao.CREATE_ISSUE,"changeHotlists")};g.removeHotlist=function(a){var b;za(null!=(b=this.issue.hotlistId)?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.issue=Object.assign({},this.issue,{title:a})};g.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:n8a(a)});var b;Zn(this.analytics,ao.CREATE_ISSUE,"changePriority",null!=(b=this.issue.priority)?b:void 0)};var o0a=function(a,b){a.issue=Object.assign({},a.issue,{type:WBb(b)});var c;Zn(a.analytics,ao.CREATE_ISSUE,"changeType",null!=(c=a.issue.type)?c:void 0)};
L5.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)});Ma(this.selectedHotlists,function(b,c){return Yt(b.name,c.name)})};
var rlc=function(a,b){var c,d,e,f,h,k,q,u,x,E,I;return hf(function(N){switch(N.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){N.jumpTo(2);break}e=[];return 1===d.length?jf(N,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):jf(N,oKb(a.issueRelationshipsFridge,c,d),5);case 5:h=N.yieldResult;e=h.notAdded;f=h.errors;N.jumpTo(4);break;case 6:k=N.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&uK(a.butterBar,"Unable to add "+e+" as parent(s). "+
f);case 2:q=a.childrenIssueIds;if(null==(u=q)||!u.length){N.jumpTo(7);break}return jf(N,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(L){return{issueId:L}})),8);case 8:x=N.yieldResult,E=x.notAdded,I=x.errors,E.length&&uK(a.butterBar,"Unable to add "+E+" as children. "+I);case 7:return N.return(b)}})},L0a=function(a,b){var c=a.issue;a.submitRequested=!0;if(a.isValid()){c.comment=a.comment.value;c.formattingMode=Mm[a.comment.formattingMode];var d={snapshot:c,attachments:OQb(a.comment)};
a.selectedTemplate&&"predefined"===a.selectedTemplate.type&&(d.templateId=a.selectedTemplate.id);a.judgementForNewContent&&1!==a.judgementForNewContent.getSeverity()&&(d.contentJudgement=mqa(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=hh(d.snapshot,function(h){return"string"!==typeof h||!Wi(h)});d.snapshot.customField&&(d.snapshot.customField=d.snapshot.customField.filter(function(h){return!(new jl(h)).isEmpty()}));Q0a(a,d.snapshot);d.snapshot.assigneeUser&&(d.snapshot.status="ASSIGNED");var e=function(){a.isSaving=!0;a.newIssueStarted=!1;tK(a.butterBar,"Creating...",0);a.issueApi.createIssue(d).then(function(h){return rlc(a,h)}).then(function(h){a.draftStore.$window.sessionStorage.removeItem(qo(0));a.originalIssueCopy=
Fi(a.issue);Zn(a.analytics,ao.CREATE_ISSUE,"create",2===a.comment.formattingMode?"markdown":"non markdown");slc(a);if(b){var k;Zn(a.analytics,ao.CREATE_ISSUE,"fileAndRedirect","component",null!=(k=c.componentId)?k:void 0);a.butterBar.dismiss();a.isNavigatingAway=!0;a.isSaving=!1;gK(a.userAccess,"reader","issues/"+h.issueId).then(function(x){a.componentPickerTouched=!1;x?F7b(a.redirectUrl,a.paths.editIssue(h.issueId),String(h.issueId)):(tK(a.butterBar,"New issue created: "+h.issueId+" (view access not granted)",
0),F7b(a.redirectUrl,a.paths.listIssues()));a.refreshView()}).catch(function(x){a.errorHandler.errorHandler(null,x);a.isNavigatingAway=!1})}else{a.componentPickerTouched=!1;var q;Zn(a.analytics,ao.CREATE_ISSUE,"fileAndNew","component",null!=(q=c.componentId)?q:void 0);k={};DIb(a.butterBar,Ln("New issue created: ",Kn("A",(k.href=a.paths.editIssue(h.issueId),k),String(h.issueId))),0);c.title="";a.comment=new HR(a.templateComment);c.comment=a.comment.value;a.isSaving=!1;a.submitRequested=!1;var u;k=
r(null!=(u=a.magicBoxes)?u:[]);for(u=k.next();!u.done;u=k.next())u.value.refresh();a.newIssueStarted=!0;a.originalIssueCopy=Fi(a.issue)}a.refreshView()}).catch(function(h){403===h.status&&Zm(h)?yK(a.errorHandler,$m(h)):a.errorHandler.errorHandler(null,h);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1})};tlc(a).then(function(h){return h?ulc(a):Promise.resolve(!1)}).then(function(h){h&&e()})}else{var f=document.querySelector(".bv2-view");f&&(f.scrollTop=0)}},tlc=function(a){var b=Mj();!a.canEditIssuesInComponent&&
!a.frontendIsInternalOrPartner&&a.selectedComponent&&a.selectedComponent.accessLimit&&"INTERNAL"!==a.selectedComponent.accessLimit.accessLevel?a.confirmationDialogService.open({title:"",content:Ly("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},ulc=function(a){var b=Mj();!a.canEditIssuesInComponent||"VULNERABILITY"!==a.issue.type&&
"PRIVACY_ISSUE"!==a.issue.type?b.resolve(!0):wR(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},elc=function(a,b){a.isLoadingComponent=!0;a.componentActions.getUncached(b).then(function(c){llc(a,c);a.refreshView()}).catch(function(){uK(a.butterBar,"Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};
L5.prototype.hasUnsavedChanges=function(){var a=R0a(this.issue),b=R0a(this.originalIssueCopy);return!Ei(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var k0a=function(a){a.showRecentIssuesInline=!a.showRecentIssuesInline;Zn(a.analytics,ao.CREATE_ISSUE,"toggleRecentIssuesInline",a.showRecentIssuesInline.toString())},plc=function(a,b){DB(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe($f()).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="")})},ilc=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)))},zs=function(a){return a.sessionIsExternal?!1:D2b(a.selectedComponent)},As=function(a){return"PUBLIC"===a.activeSession.frontendAccessMode?!1:cX(a.selectedComponent)},
hlc=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=r(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=vlc(b);wlc(a)}},wlc=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=r(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 jl({customFieldId:d.customFieldId}));a.originalIssueCopy.customField=a.issue.customField}},olc=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)void 0!==a.ccsText?a.ccsText.includes(a.userEmail)||(a.ccsText=[a.userEmail].concat(v(a.ccsText))):
a.ccsText=[a.userEmail]};g=L5.prototype;g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.refreshView()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;Zn(this.analytics,"baseIssue","createHotlist");tK(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){tK(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);b.refreshView()}).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);b.refreshView();return d},function(){var d=b.hotlistMap[c];jh(b.hotlistMap,c);za(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){b.refreshView()})};
var dlc=function(a){var b;switch((null==(b=a.format)?void 0:b.toLowerCase())||""){case "plain":return 1;case "markdown":return 2}};L5.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(jg(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};
L5.prototype.showContentJudgementDialog=function(a){return DB(this.matDialogService.open(U4,{width:"500px",data:a}))};
var glc=function(a){a.componentPickerTouched&&(Zn(a.analytics,ao.CREATE_ISSUE,"exit-after-component-picker-interaction","new-ui"),a.componentPickerTouched=!1);Zn(a.analytics,ao.CREATE_ISSUE,"creation-abandon","new-ui")},slc=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(0<b){var c=Math.min(b,108E5);dLb(a.analytics,"createIssue",c,"new-ui");Zn(a.analytics,ao.CREATE_ISSUE,"createIssue","time-to-create-new-ui",c);CO(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date};
ji.Object.defineProperties(L5.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()})}}}});
L5.\u0275fac=function(a){return new (a||L5)(C(qg),C(vK),C(CLb),C(GK),C(B_),C(fK),C(EL),C(FK),C(z_),C(AK),C(vR),C(iT),C(yH),C(uR),C(WN),C(FM),C(bK),C(YK),C(SK),C(sK),C(xK),C(PB),C(BK),C(IR),C(bJ),C(VI),C(KY),C(ZH),C(uI,2),C(PM),C(SL),C(hL),C(BO))};
L5.\u0275cmp=w({type:L5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(Hf(gX,5),Hf($W,5),Hf(alc,5),Hf(H5,5),Hf(C5,5));if(a&2){var c;Gf(c=Jf())&&(b.hotlistPicker=c.first);Gf(c=Jf())&&(b.commentBox=c.first);Gf(c=Jf())&&(b.descriptionConfirmDialog=c.first);Gf(c=Jf())&&(b.advancedFieldsZippy=c.first);Gf(c=Jf())&&(b.magicBoxes=c)}},hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,zd)},features:[Me([uI]),ie],decls:30,vars:17,consts:[[1,"a11y-only"],
[1,"kd-appbar","bv2-create-issue-scroll-header"],[1,"kd-buttonbar","ltr"],["mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate",4,"ngIf"],["cdkScrollable","",1,"bv2-view"],[1,"bv2-new-issue-main-content"],["novalidate","","name","createIssueForm",3,"ngClass"],["class","bv2-create-component-external-warning",3,"ngClass",4,"ngIf"],["class","bv2-validation-error-banner",
"role","alert",4,"ngIf"],["class","bv2-create-issue-hotlists",4,"ngIf"],[1,"bv2-create-issue-row"],[1,"bv2-create-field"],[1,"bv2-top-field-label"],["for","bv2-component",1,"required"],[1,"bv2-create-issue-component"],[3,"selectedComponent","shouldFocus","isRequired","selectedComponentChange","touched"],["class","bv2-create-field bv2-right-button",4,"ngIf"],["class","bv2-validation-error-banner",4,"ngIf"],[4,"ngIf"],[1,"bv2-new-issue-right-sidebar"],[3,"componentId","issueTitle","issue","customFieldMap",
"headerChange"],["descriptionConfirmDialog",""],[3,"selectedHotlistIds","choices","onApply","onLoad","onCreate"],[1,"bv2-create-component-external-warning",3,"ngClass"],[3,"name","size"],[3,"href"],["role","alert",1,"bv2-validation-error-banner"],["class","bv2-validation-error",4,"ngIf"],[1,"bv2-validation-error"],[1,"bv2-create-issue-hotlists"],["class","bv2-hotlist-chips",4,"ngFor","ngForOf"],[1,"bv2-hotlist-chips"],[3,"hotlist","removeHotlist"],[1,"bv2-create-field","bv2-right-button"],["for",
"bv2-template-chooser"],["mat-button","","color","primary","id","bv2-template-chooser","aria-label","Template","type","button",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["templateMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"bv2-validation-error-banner"],["class","bv2-recent-issues-inline-container",4,"ngIf"],["for","bv2-title",1,"required"],[1,"bv2-create-issue-title"],
["type","text","name","title","aria-label","Issue Title","id","bv2-title","name","title","required","","aria-required","true","autocomplete","off",3,"ngModel","bFocus","ngModelChange"],["class","bv2-create-field bv2-create-issue-assignee",4,"ngIf"],["class","bv2-create-field bv2-create-issue-cc",4,"ngIf"],[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"supportsPreview","comment","loadFormatFromPrefs","disabled","judgementForNewContent","componentId","placeholder","idForAriaLabel","audience",
"ngClass","commentChange","onChange","onSubmit","onRestrict"],[3,"initialValue"],[1,"float-clear"],[1,"bv2-create-issue-zippy"],["class","mat-elevation-z0",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"],[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-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"],["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&&(F(0,"h2",0),P(1,"Create issue"),G(),F(2,"div",1)(3,"div",2)(4,"button",3),J("click",function(){return b.back()}),H(5,"mat-icon",4),G(),F(6,"h2"),P(7,"Create Issue"),G(),O(8,U_a,1,2,"b-hotlist-picker",5),G()(),F(9,"div",6)(10,"div")(11,"div",7)(12,"form",8),O(13,X_a,6,8,"div",9),O(14,c0a,4,3,"div",10),O(15,e0a,2,1,"div",11),F(16,"div",12)(17,"div",13)(18,"div",14)(19,"label",15),P(20,"Component"),G()(),F(21,"div",16)(22,"b-team-component-picker",
17),J("selectedComponentChange",function(d){return llc(b,null!==d&&void 0!==d?d:null)})("touched",function(){return b.componentPickerTouched=!0}),G()()(),O(23,h0a,11,5,"div",18),G(),O(24,i0a,3,0,"div",19),O(25,N0a,33,25,"div",20),G()(),F(26,"div",21)(27,"b-magic-box",22),J("headerChange",function(d){return b.magicBoxHeader=d}),G()()()(),O(28,O0a,11,2,"ng-template",null,23,Pf));if(a&2){var c;B(8);D("ngIf",b.canEditIssuesInComponent);B(4);D("ngClass",Oe(15,blc,b.submitRequested));B(1);D("ngIf",zs(b)||
As(b));B(1);D("ngIf",b.submitRequested&&!b.isValid());B(1);D("ngIf",0<b.selectedHotlists.length);B(7);D("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B(1);D("ngIf",0<b.availablePredefinedTemplates.length||null!=b.availableExistingIssueTemplate);B(1);D("ngIf",!b.isLoadingComponent&&(null!=b.componentRequestedInUrl||null!=b.selectedComponent)&&!b.canCreateNewIssuesInComponent&&!b.createAclLoading&&b.selectedComponent);
B(1);D("ngIf",b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent);B(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:[hO,$W,DW,HU,NP,A4,SZ,iy,Qg,by,cy,sy,uy,hy,fy,NX,gX,BH,LX,fV,C5,rB,QB,RB,SB,TB,H5,I5,J5,XE,sA,bF,$E,eF,nT,lF,D5,oV,xx,yx,ux,mM],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}.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)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var vlc=function(a){var b={};a=r(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},clc={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},nlc=function(a,b,c,d){this.id=a;this.type=b;this.name=c;this.isDefault=d};
var xlc=["form"],M5=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 bY;h.setTitle("Create SLO")};M5.prototype.ngAfterViewInit=function(){};
M5.prototype.save=function(){var a=this;if(!this.validate())return Promise.reject("Correct the errors in the form");tK(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){tK(a.butterBar,"SLO "+b.getName()+" saved.",2E3);Zn(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})};M5.prototype.back=function(){A_(this.appHistory)};
M5.prototype.revertChanges=function(){this.sloUnderEdit.setName("");this.sloUnderEdit.setDescription("");Fb(this.sloUnderEdit,6,[])};var ylc=function(a){return""!==a.sloUnderEdit.getName()||""!==a.sloUnderEdit.getDescription()||0<Os(a.sloUnderEdit).length};M5.prototype.updateCollection=function(a){Fb(this.sloUnderEdit,6,a)};
M5.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};M5.\u0275fac=function(a){return new (a||M5)(C(FK),C(eY),C(xK),C(GK),C(FM),C(sK),C(WN),C(z_))};
M5.\u0275cmp=w({type:M5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&Hf(xlc,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"div",0)(1,"div",
1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4)(5,"h2",5)(6,"span",6),P(7,"Create a new SLO"),G()(),F(8,"div",7)(9,"form",8,9),H(11,"b-error-banner",10),F(12,"div",11)(13,"label",12),P(14,"Name"),G(),F(15,"input",13),J("ngModelChange",function(c){return b.sloUnderEdit.setName(c)}),G()(),F(16,"div",11)(17,"label",14),P(18,"Description"),G(),F(19,"textarea",15),J("ngModelChange",function(c){return b.sloUnderEdit.setDescription(c)}),P(20,"        "),
G()(),F(21,"div",11)(22,"slo-elements-picker",16),J("onCollectionUpdate",function(c){return b.updateCollection(c)})("onValidation",function(c){return b.elementPickerIsValid=c}),G()(),F(23,"p",17),P(24," Access controls may be defined once the slo is created. "),G(),F(25,"div",18)(26,"b-button",19),J("onAction",function(){return b.save()}),P(27," Save "),G(),F(28,"b-button",20),J("onAction",function(){return b.revertChanges()}),P(29," Revert changes "),G()()()()());a&2&&(B(9),te("show-errors",b.error),
B(2),D("error",b.error),B(1),te("bv2-edit-resource-readonly",b.isSaving),B(3),D("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.getName())("disabled",b.isSaving),B(1),te("bv2-edit-resource-readonly",b.isSaving),B(3),D("ngModel",b.sloUnderEdit.getDescription())("disabled",b.isSaving),B(3),D("isDisabled",!1)("collection",Os(b.sloUnderEdit)),B(4),D("disabled",b.isSaving||(null==b.createSloForm?null:b.createSloForm.pending)||(null==b.createSloForm?null:b.createSloForm.invalid)||!b.elementPickerIsValid),
B(2),D("disabled",!ylc(b)))},dependencies:[hO,SY,SZ,iy,Qg,by,cy,sy,hy,fy,BH,l_],encapsulation:2});
var N5=function(){this.nextPanelId_=1};N5.\u0275fac=function(a){return new (a||N5)};N5.\u0275prov=lc({token:N5,factory:N5.\u0275fac,providedIn:"root"});
var O5=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa){yI.call(this);this.cdr=a;this.paths=b;this.bLocation=c;this.$log=d;this.analytics=e;this.issueApi=f;this.userApi=h;this.bookmarkGroupsApi=k;this.hotlistApi=q;this.butterBar=u;this.pageTitle=x;this.dashboards=E;this.routeParams=I;this.currentSearch=L;this.userAccess=T;this.errorHandler=Y;this.statusMessages=ja;this.appEvents=ha;this.hotlistFridge=ra;this.issueFridge=Fa;this.ANALYTICS_CATEGORY="dashboard";this.panels=[];this.hotlistChoices=
[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1;this.userEmail=N.getUserEmail();this.groupId=I.groupId||null};V(O5,yI);O5.\u0275dir=yI.\u0275dir;
O5.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){zlc(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){Alc(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){Alc(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){Alc(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){Alc(a,b,function(){return a.panels.length-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.remove.subscribe(function(b){a.removePanel(b)}));
this.currentSearch.clear()};var W0a=function(a,b){var c=b.selectedIssues;if(a=Blc(a,b.panelId))a.selectedIssues=null!=c?c:[]},V0a=function(a,b,c){b.focusedRowIndex=c;if(null!=c)for(a=r(a.panels),c=a.next();!c.done;c=a.next())c=c.value,c!==b&&(c.focusedRowIndex=null)},Blc=function(a,b){return a.panels.find(function(c){return c.panelId===b})},Clc=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return-1!==a?a:void 0};g=O5.prototype;
g.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ei(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback;a=a.errorCallback;Zn(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");tK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);tK(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;tK(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=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;xa(d.hotlists);for(var e=r(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=r(c);for(d=c.next();!d.done;a={$jscomp$loop$prop$issueRows$1735:a.$jscomp$loop$prop$issueRows$1735},d=c.next())e=r(d.value),d=e.next().value,e=e.next().value,a.$jscomp$loop$prop$issueRows$1735=e,this.hotlistApi.get(d).then(function(h){return function(k){b.hotlistFridge.announce(k);
for(var q=r(h.$jscomp$loop$prop$issueRows$1735),u=q.next();!u.done;u=q.next())u.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){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(this.panels),e=d.next();!e.done;e=d.next()){e=r(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=c}this.cdr.detectChanges();tK(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(c?"read":"unread")+"...",0);return jL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){tK(b.butterBar,"Issues marked "+
(c?"read":"unread")+".");for(var q=r(b.panels),u=q.next();!u.done;u=q.next()){u=r(u.value.selectedIssues);for(var x=u.next();!x.done;x=u.next()){var E=void 0;x.value.lastViewedTime=null!=(E=k)?E:null}}}).catch(function(k){for(var q=r(b.panels),u=q.next();!u.done;u=q.next()){u=r(u.value.selectedIssues);for(var x=u.next();!x.done;x=u.next())x=x.value,x.isRead=!!x.lastViewedTime&&x.lastViewedTime>=x.majorModifiedTime}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=
BQb(a).map(function(k){return k.fieldName});Zn(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};tK(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h).then(function(k){for(var q=r([].concat(v(b.searchPanels),v(b.hotlistPanels))),u=q.next();!u.done;u=q.next()){u=u.value;var x=k;if(u.searchResults){u.searchResults=u.searchResults.clone();for(var E=0,I=r(u.searchResults.issues),N=I.next();!N.done;N=I.next()){N=N.value;if(x.affectedIssues[N.issueId]){var L=
x.affectedIssues[N.issueId];L=iLb(L,x.componentMap[Number(sa(L.snapshot).componentId)]);L.selected=N.selected;u.searchResults.issues[E]=L;u.resultsLoaded.emit([u.searchResults.issues[E]])}E++}}}k.errors&&k.errors.length?(q=Ni(k.errors,"issueId"),uK(b.butterBar,"Failed to update issue(s) "+q.join(", ")+"."),Zn(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=FQb(b.statusMessages,h))?tK(b.butterBar,k):tK(b.butterBar,"Saved "+CQb(a).length+" issue(s).")}).catch(function(k){b.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this;return this.bookmarkGroupsApi.get(this.groupId).then(function(b){gK(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 zlc=function(a,b){a.panels=(b.item||[]).map(function(c,d){return Dlc(a,c,0===d?0:void 0)})};
O5.prototype.removePanel=function(a){var b=this,c=Blc(this,a);if(null!=c){tK(this.butterBar,"Saving changes...",0);a=Fi(this.bookmarkGroup);var d;a.item=(null!=(d=a.item)?d:[]).filter(function(e){return!Elc(b,c,e)});Flc(this,a)}};
var Alc=function(a,b,c){b=Clc(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=Fi(a.bookmarkGroup);var e,f,h=null==(e=a.bookmarkGroup)?void 0:null==(f=e.item)?void 0:f.findIndex(function(k){return Elc(a,d,k)});void 0!==h&&(qaa(b.item,h,c),Flc(a,b))}}},Flc=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Glc(a,a.bookmarkGroup.item);tK(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},Elc=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}},Hlc=function(a,b){return a.panels.find(function(c){return Elc(a,c,b)})},Dlc=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:[]}},Glc=function(a,b){a.panels=(null!=b?b:[]).map(function(c){var d;return null!=(d=Hlc(a,c))?d:Dlc(a,c)})};
O5.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)})};
O5.prototype.editBookmarkGroup=function(){this.bLocation.url(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};O5.\u0275fac=function(a){return new (a||O5)(C(uI),C(GK),C(FK),C(vK),C(FM),C(bK),C(YK),C(NM),C(SK),C(sK),C(WN),C(N5),C(IR),C(yH),C(EN),C(fK),C(xK),C(yR),C(BK),C(bL),C(hL))};
O5.\u0275cmp=w({type:O5,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(Hf(NZ,5),Hf(CZ,5));if(a&2){var c;Gf(c=Jf())&&(b.searchPanels=c);Gf(c=Jf())&&(b.hotlistPanels=c)}},features:[Me([uI]),ie],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&&(F(0,"h2",0),P(1,"Dashboard"),G(),F(2,"div",1)(3,"div",2),P(4,"Bookmark groups dashboard"),G(),F(5,"b-dashboard-controls",3),J("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),G()(),F(6,"div",4),O(7,U0a,8,3,"div",5),O(8,Z0a,3,3,"div",6),G());a&2&&(B(5),D("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(1),D("bFocus",!0),B(1),D("ngIf",
b.bookmarkGroup),B(1),D("ngForOf",b.panels))},dependencies:[IX,ZM,NZ,CZ,yx,ux,Ax,Bx,SZ,lF],encapsulation:2});var P5=function(){};P5.\u0275fac=function(a){return new (a||P5)};P5.\u0275mod=Cc({type:P5});P5.\u0275inj=mc({imports:[JX,KN,OZ,DZ,Mx,TZ,mH]});
var Ilc=["editBookmarkGroupItemsContainer"],Jlc=["bookmarkGroupName"],Es=function(a){return{"bv2-edit-resource-readonly":a}},z1a=function(a){return{displayText:"Admins",values:a}},y1a=function(a){return[a]},Q5=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra){yI.call(this);var Fa=this;this.routeParams=a;this.location=b;this.butterBar=c;this.accessPolicyApi=d;this.userApi=e;this.bookmarkGroupsApi=f;this.hotlistApi=h;this.paths=k;this.appHistory=q;this.pageTitle=u;this.accessPolicyConverter=x;this.userAccess=
E;this.errorHandler=N;this.appEvents=T;this.snackBar=Y;this.confirmationDialog=ja;this.cdr=ha;this.documentationLinks=ra;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=L.getUserEmail();this.accessPolicyUnderEdit=uT();this.flattenedAccessPolicy=uT();a=this.loadBookmarkGroup(this.routeParams.groupId);
b=this.loadUserAccess(this.routeParams.groupId);this.loadAccessPolicy(this.routeParams.groupId);Klc(this);Llc(this);Promise.all([a,b]).then(function(){var Ka;null==(Ka=Fa.bookmarkGroupNameInput)||Ka.nativeElement.focus()});this.subscriptions.add(LY(I,function(){return Fa.hasUnsavedChanges()},!1));I=function(){Klc(Fa)};this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(I));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(I));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(){Llc(Fa)}))};
V(Q5,yI);Q5.\u0275dir=yI.\u0275dir;g=Q5.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(){A_(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!Ei(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};
g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Fi(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[Mlc(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];R5(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};
g.saveMetadata=function(){this.validate()&&(Ol(this.bookmarkGroupUnderEdit.ownerUser)!==Ol(this.bookmarkGroup.ownerUser)?this.openConfirmationDialog("Change bookmark group owner",In("Are you sure you want to transfer ownership of this bookmark\n              group to "+Ol(this.bookmarkGroupUnderEdit.ownerUser)+"?\n              You will no longer have permissions to edit it."),this.doSaveMetadata):this.doSaveMetadata())};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("2:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.openConfirmationDialog("Change bookmark group admins",In("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",In("Do you want to archive this bookmark group?"),function(){Nlc(a,"archive")})};g.unarchive=function(){var a=this;this.openConfirmationDialog("Unarchive bookmark group",In("Do you want to unarchive this bookmark group?"),function(){Nlc(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});Olc(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=wT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);uK(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=vT(c);a.accessPolicyUnderEdit=Fi(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var Nlc=function(a,b){var c=Fi(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});Olc(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
Q5.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){Olc(b,c);b.selectedHotlistIds=[Mlc(b.bookmarkGroup.item)];R5(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var Olc=function(a,b){a.bookmarkGroup=b;a.bookmarkGroup.item||(a.bookmarkGroup.item=[]);a.bookmarkGroupUnderEdit=Fi(a.bookmarkGroup)};
Q5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=vT(c);b.accessPolicyUnderEdit=Fi(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};Q5.prototype.loadUserAccess=function(a){var b=this;return gK(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var Klc=function(a){a.userApi.getUserHotlists().then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},Llc=function(a){a.userSavedSearches=null;a.userApi.getUserSavedSearches().then(function(b){a.userSavedSearches=b;R5(a);a.cdr.detectChanges()})},R5=function(a){if(a.userSavedSearches&&null!=a.bookmarkGroupUnderEdit){var b=Plc(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return-1==b.indexOf(c.searchId)})}},
c1a=function(a,b){var c=Number(b);Aa(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});Qlc(a,c);var d;null==(d=a.editBookmarkGroupItemsContainer)||d.nativeElement.focus()},e1a=function(a,b){Aa(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});R5(a);var c;null==(c=a.editBookmarkGroupItemsContainer)||c.nativeElement.focus()},r1a=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return a.paths.viewHotlist(b.hotlistId);
default:sh(b.resourceType)}},m1a=function(a,b){for(var c={},d=r(Object.entries(b.newSelectionMap)),e=d.next();!e.done;c={$jscomp$loop$prop$id$1738:c.$jscomp$loop$prop$id$1738},e=d.next()){var f=r(e.value);e=f.next().value;f=f.next().value;c.$jscomp$loop$prop$id$1738=Ki(e);f&&!b.oldSelectionMap[c.$jscomp$loop$prop$id$1738]?(p1a(a,c.$jscomp$loop$prop$id$1738),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1738}}(c)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[c.$jscomp$loop$prop$id$1738]&&!f&&(Qlc(a,c.$jscomp$loop$prop$id$1738),Aa(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.$jscomp$loop$prop$id$1738}}(c)))}},p1a=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},Qlc=function(a,b){za(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},i1a=function(a,b){-1===Plc(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)&&
a.bookmarkGroupUnderEdit.item.push({name:b.name,resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){R5(a)})},Plc=function(a){return a?Ni(a,"savedSearchId"):[]},Mlc=function(a){return a?Ni(a,"hotlistId"):[]},n1a=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)},
o1a=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)};Q5.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:sh(a.resourceType)}};
Q5.prototype.openConfirmationDialog=function(a,b,c){this.confirmationDialog.open({title:a,content:b,onConfirm:function(){c()}})};Q5.\u0275fac=function(a){return new (a||Q5)(C(IR),C(FK),C(sK),C(EL),C(YK),C(NM),C(SK),C(GK),C(z_),C(WN),C(tT),C(fK),C(KY),C(xK),C(yH),C(BK),C(pK),C(PM),C(uI,2),C(dP))};
Q5.\u0275cmp=w({type:Q5,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(Hf(Ilc,5),Hf(Jlc,5),Hf(NW,5,wd));if(a&2){var c;Gf(c=Jf())&&(b.editBookmarkGroupItemsContainer=c.first);Gf(c=Jf())&&(b.bookmarkGroupNameInput=c.first);Gf(c=Jf())&&(b.tabs=c)}},features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",
4),G(),O(5,$0a,2,1,"button",5),O(6,a1a,2,1,"button",5),G()()(),F(7,"div",6),O(8,A1a,48,40,"ng-container",7),G());a&2&&(B(5),D("ngIf",b.isAdmin&&!b.isArchived()),B(1),D("ngIf",b.isAdmin&&b.isArchived()),B(2),D("ngIf",!b.isLoading&&b.bookmarkGroup.bookmarkGroupId))},dependencies:[xx,yx,ux,lF,rB,PW,NW,SY,VX,gX,nN,XE,Qg,by,sy,hy,bF,$E,eF,ZE,HY],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 Nhb=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()}}}},Mhb=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},Ohb=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)}}},Rlc=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 Fs=function(a){Z.call(this,a,-1,Slc)};V(Fs,Z);Fs.prototype.getFilename=function(){return W(this,1)};Fs.prototype.setFilename=function(a){l(this,1,a)};var Slc=[2];Fs.prototype.toObject=function(){return Tlc(void 0,this)};var Tlc=function(a,b){if(null!=b){var c={filename:n(p(b,1)),lineNumberList:n(ob(b,2)),changeNumber:n(p(b,3))};a&&(c.$jspbMessageInstance=b);return c}};
var Gs=function(a){Z.call(this,a,-1,Ulc)};V(Gs,Z);var Ulc=[2];Gs.prototype.toObject=function(){return Vlc(void 0,this)};var Vlc=function(a,b){if(null!=b){var c={packageName:n(p(b,1)),fileMentionSetList:Hb(xb(b,Fs,2),Tlc,a)};a&&(c.$jspbMessageInstance=b);return c}};
var Xlc=function(a){Z.call(this,a,-1,Wlc)};V(Xlc,Z);var Wlc=[3];Xlc.prototype.toObject=function(){var a=null!=this?{totalMentions:n(p(this,1)),truncated:n(Mo(this,2)),packageMentionSetList:Hb(xb(this,Gs,3),Vlc)}:void 0;return a};Xlc.messageId="b.MentionSearchResult";
var S5=function(a){this.executor=a};S5.\u0275fac=function(a){return new (a||S5)(t(qI))};S5.\u0275prov=lc({token:S5,factory:S5.\u0275fac,providedIn:"root"});
var T5=function(a,b,c){this.mentionsApi=a;this.refreshMonitor=b;this.analytics=c},Ylc=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=yJb(a.refreshMonitor,(0,U.defer)(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:Xlc}).then(E1a).then(function(d){return{mentions:d,loadingState:"OK",link:c}}).catch(function(){return{loadingState:"ERROR",link:c}})}).pipe(hg({loadingState:"LOADING",link:c}))).pipe(fg({refCount:!0,
bufferSize:1})));return a.cachedEntry};T5.prototype.mentionsLoadingStateTooltipText=function(a){switch(a.loadingState){case "LOADING":return"Loading...";case "OK":var b;return"This issue is referenced by "+(null==(b=a.mentions)?void 0:b.totalMentions)+" TODO(s) from Squeegee";default:return"Could not be read at this time."}};
T5.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)};T5.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};T5.prototype.trackSqueegeeClick=function(){Zn(this.analytics,"codeMentions","clickSqueegeeLink")};T5.\u0275fac=function(a){return new (a||T5)(t(S5),t(dL),t(FM))};T5.\u0275prov=lc({token:T5,factory:T5.\u0275fac,providedIn:"root"});
var Zlc=new sd("DevopsGraphLogger",{providedIn:"root",factory:function(){return Tk}}),$lc=new sd("DEV_GRAPH",{providedIn:"root",factory:function(){var a;return hf(function(b){switch(b.nextAddress){case 1:return It(b,2),jf(b,bBb(),4);case 4:a=b.yieldResult;Jt(b,3);break;case 2:return Kt(b),b.return();case 3:return It(b,5),jf(b,a.loadGraph(),7);case 7:Jt(b,6);break;case 5:return Kt(b),b.return();case 6:return b.return(google.corp.devops.tools.graph)}})}});
var amc=function(a){return["PROD","NIGHTLY"].includes(a)?"production":"autopush"},U5=function(a,b,c,d){var e=this;this.session=a;this.theme=b;this.logger=c;this.graphBuilder=d;this.open$=new U.Subject;this.close$=new U.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()};
U5.prototype.init=function(){var a=this,b,c,d,e,f;return hf(function(h){if(1==h.nextAddress)return b=a.getContainer(),!b||a.graphService&&a.graphController?h.return():jf(h,a.graphBuilder,2);c=h.yieldResult;d=amc(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")});kf(h)})};var bmc=function(a,b){var c;return hf(function(d){switch(d.nextAddress){case 1:return It(d,2),jf(d,a.init(),4);case 4:return null==a.graphService?d.return(new Set):jf(d,a.graphService.getAvailableIssueContexts(b),6);case 6:return d.return(d.yieldResult);case 5:Jt(d,0);break;case 2:return c=Kt(d),a.logger(c),d.return(new Set)}})};
U5.prototype.openSidebar=function(a,b){var c=this,d;return hf(function(e){switch(e.nextAddress){case 1:return jf(e,c.init(),2);case 2:if(!c.graphController)return e.return();It(e,3);return jf(e,c.graphController.openIssueContext(a,b),5);case 5:Jt(e,0);break;case 3:d=Kt(e),c.logger(d),kf(e)}})};
U5.prototype.close=function(){var a=this,b;return hf(function(c){switch(c.nextAddress){case 1:return jf(c,a.init(),2);case 2:if(!a.graphController)return c.return();It(c,3);return jf(c,a.graphController.close(),5);case 5:Jt(c,0);break;case 3:b=Kt(c),a.logger(b),kf(c)}})};U5.\u0275fac=function(a){return new (a||U5)(t(yH),t(EO),t(Zlc),t($lc))};U5.\u0275prov=lc({token:U5,factory:U5.\u0275fac,providedIn:"root"});
var cmc={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},V5=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=cmc};V5.\u0275fac=function(a){return new (a||V5)(C(NB),C(GK))};
V5.\u0275cmp=w({type:V5,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&&(F(0,"h1",0),P(1,"Archive with all descendant issues?"),G(),
F(2,"div",1),P(3),H(4,"br")(5,"br"),F(6,"a",2),P(7,"View all descendant issues"),G(),H(8,"br"),F(9,"a",3),P(10,"Learn more"),G()(),F(11,"div",4)(12,"button",5),P(13,"Cancel"),G(),F(14,"button",5),P(15," Just this one "),G(),F(16,"button",6),P(17," Archive all "),G()());a&2&&(B(3),Je(" 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? "),B(3),He("href",b.descendantIssuesUrl,
Ud),B(6),D("matDialogClose",b.ActionType.CANCEL),B(2),D("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),D("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[rB,QB,RB,SB,TB],encapsulation:2});var W5=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};
W5.prototype.submitArchivalState=function(a,b){var c=this;return hf(function(d){if(1==d.nextAddress)return b?jf(d,c.archive(a),5):jf(d,c.editIssueService.unarchive(a),0);c.issueFridge.poke(a);c.eventsForIssueFridge.poke(a);kf(d)})};
W5.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,u,x,E;return hf(function(I){if(1==I.nextAddress)return jf(I,Promise.all([b.getDescendants(a),(0,U.firstValueFrom)(b.issueFridge.watch(a))]),2);c=I.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;u=q.childToParents;x=q.completeResult;E=[].concat(v(u.keys()));u.set(a,k.parentIssueIds||[]);return 0===E.length?I.return(dmc(b,a,u)):x?I.return(emc(b,a,E,u)):I.return(fmc(b,a,u))})};
var emc=function(a,b,c,d){var e,f,h;return hf(function(k){if(1==k.nextAddress)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},jf(k,(0,U.firstValueFrom)(DB(a.dialog.open(V5,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(gmc(a,[b].concat(v(c)),d));case "ARCHIVE_ONE":return k.return(dmc(a,b,d));case "CANCEL":return k.return();default:return k.return(sh(h))}})},gmc=function(a,b,c){var d=[{issueIds:b.map(Number),actions:[{fieldName:"isArchived",value:"true"}]}];
hmc(a,c);tK(a.butterBar,"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){tK(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){uK(a.butterBar,e);imc(a,c)})},dmc=function(a,b,c){hmc(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){tK(a.butterBar,"Archived successfully.")}).catch(function(d){uK(a.butterBar,d);imc(a,c)})},fmc=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues\uff1f",
content:Ln(In("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."),Kn("BR",{}),Kn("BR",{}),Kn("A",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Kn("BR",{}),Kn("A",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")),cancelButtonText:"Cancel",confirmButtonText:"Just this one",onConfirm:function(){dmc(a,
b,c).then(d)},onDismiss:d})})},hmc=function(a,b){b=r(b.entries());for(var c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;d=r(d);for(var e=d.next();!e.done;e=d.next())a.issueRelationshipsFridge.unlinkFromParent(c,e.value,!0)}},imc=function(a,b){b=[].concat(v(b.values())).flat();b=r(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
W5.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,u,x,E,I,N;return hf(function(L){if(1==L.nextAddress)return jf(L,(0,U.firstValueFrom)(lKb(b.issueRelationshipsFridge,a)),2);c=L.yieldResult;d=c.results;e=!0;f=new Map;h=r(d);for(k=h.next();!k.done;k=h.next()){q=k.value;u=r(q.relatedChildren);for(x=u.next();!x.done;x=u.next())E=x.value,I=void 0,N=null!=(I=f.get(E.targetIssueId))?I:[],N.push(q.issueId),f.set(E.targetIssueId,N);q.totalChildCount===q.relatedChildren.length||(e=!1)}return L.return({childToParents:f,
completeResult:e})})};W5.\u0275fac=function(a){return new (a||W5)(t(bK),t(PB),t(PM),t(SL),t(hL),t(wL),t(GK),t(sK),t(VR))};W5.\u0275prov=lc({token:W5,factory:W5.\u0275fac,providedIn:"root"});
var X5=function(a,b,c,d,e,f,h,k,q){yI.call(this);var u=this;this.issueDetailsBrain=a;this.issuePagination=b;this.issueFridge=c;this.componentFridge=d;this.issueInteractionsTracking=e;this.bLocation=f;this.paths=h;this.refreshMonitor=k;this.butterBar=q;this.internalSearchResults$=new U.BehaviorSubject(null);this.searchResults$=this.internalSearchResults$.pipe(Wf(),ig(function(x){return x?x.changed$:(0,U.of)(null)}));this.issueIds$=this.searchResults$.pipe(S(function(x){var E;return null!=(E=null==
x?void 0:x.issues.map(function(I){return I.id}).map(Mn))?E:[]}),Wf(Ei));this.issues$=this.issueIds$.pipe(ig(function(x){return(0,U.combineLatest)(x.map(function(E){return u.issueFridge.watch(E,{trustUncertainMemory:!0})}))}),ig(function(x){return(0,U.combineLatest)(x.map(function(E){return u.componentFridge.watch(String(null==E?void 0:E.snapshot[0].componentId),{trustUncertainMemory:!0}).pipe(S(function(I){return{issue:E,component:I}}))}))}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=
this.searchResults$.pipe(S(function(x){var E;return null!=(E=null==x?void 0:x.totalText)?E:""}));this.backNavigationLabel$=this.searchResults$.pipe(S(function(x){return(null==x?0:x.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=(0,U.combineLatest)([this.searchResults$,this.issueId$]).pipe(S(function(x){var E=r(x);x=E.next().value;E=E.next().value;var I;return null!=(I=null==x?void 0:HM(x,Number(E)))?I:-1}));this.hasPreviousIssue$=(0,U.combineLatest)([this.searchResults$,
this.issueId$]).pipe(S(function(x){var E=r(x);x=E.next().value;E=E.next().value;var I;if(I=E)null==x?x=0:(E=HM(x,Number(E)),x=null==E||-1===E?!1:E>x.startIndex||1<x.params.page),I=x;return!!I}));this.hasNextIssue$=(0,U.combineLatest)([this.searchResults$,this.issueId$]).pipe(S(function(x){var E=r(x);x=E.next().value;E=E.next().value;var I;if(I=E)null==x?x=0:(E=HM(x,Number(E)),x=null==E||-1===E?!1:E<x.endIndex||x.params.page<x.numPages),I=x;return!!I}));this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){jmc(u)}));
this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(x){u.issueId=x;jmc(u)}));this.subscriptions.add(this.issues$.subscribe(function(x){var E=u.internalSearchResults$.value;E&&kLb(E,x.filter(function(I){var N=I.component;return I.issue&&N}))}))};V(X5,yI);X5.\u0275dir=yI.\u0275dir;
var Is=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)},Ks=function(a){var b=Ik(a.hasNextIssue$),c=Ik(a.issueIndex$);b&&c&&kmc(a,c+1)},Js=function(a){var b=Ik(a.hasPreviousIssue$),c=Ik(a.issueIndex$);b&&c&&kmc(a,c-1)},jmc=function(a){var b,c,d,e;hf(function(f){if(1==f.nextAddress)return b=function(){},jf(f,rLb(a.issuePagination).catch(b),2);
c=f.yieldResult;a.internalSearchResults$.next(null!=(d=c)?d:null);if(!c||!a.issueId)return f.return();e=HM(c,Number(a.issueId));return-1===e?f.jumpTo(0):jf(f,sLb(a.issuePagination,e).catch(b),0)})},kmc=function(a,b){sLb(a.issuePagination,b).then(function(c){a.bLocation.url(a.paths.editIssue(c))},function(){uK(a.butterBar,"Can't find issue id for index '"+b+"'")})};X5.\u0275fac=function(a){return new (a||X5)(t(XN),t(IM),t(hL),t(IJ),t(OR),t(FK),t(GK),t(dL),t(sK))};
X5.\u0275prov=lc({token:X5,factory:X5.\u0275fac,providedIn:"root"});
var Y5=function(a,b,c,d,e,f,h,k){yI.call(this);var q=this;this.activeSession=a;this.analytics=b;this.butterBar=c;this.userApi=d;this.hotlistApi=e;this.errorHandler=f;this.appEvents=h;this.hotlistFridge=k;this.hotlistMap={};this.hotlists=[];this.selectedHotlistIds=[[]];this.selectableHotlistsChanged$=new U.ReplaySubject(1);this.subscriptions.add(xJb(this.hotlistFridge).subscribe(function(u){u=r(u);for(var x=u.next();!x.done;x=u.next())q.addHotlist(lmc(x.value));q.selectableHotlistsChanged$.next()}))};
V(Y5,yI);Y5.prototype.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&za(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a);mmc(this,a)};var mmc=function(a,b){null!=a.issue&&null!=a.issue.hotlistId&&(b.selected=(a.issue.hotlistId||[]).includes(b.hotlistId))},nmc=function(a){a.selectedHotlistIds=[[].concat(v(a.issue.hotlistId||[]))];for(var b=r(a.hotlists),c=b.next();!c.done;c=b.next())mmc(a,c.value)};
Y5.prototype.createHotlist=function(a){var b=this,c=a.name,d=a.successCallback,e=a.errorCallback;Zn(this.analytics,"baseIssue","createHotlist");tK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(f){f=lmc(f);tK(b.butterBar,"Hotlist "+c+" created successfully");b.addHotlist(f);b.appEvents.hotlistCreated.next();d(f);b.selectableHotlistsChanged$.next()}).catch(function(){e();b.selectableHotlistsChanged$.next()})};
Y5.prototype.loadHotlist=function(a){var b=this,c=a.hotlistId,d=a.successCallback,e=a.errorCallback;if(this.hotlistMap[c])return mmc(this,this.hotlistMap[c]),Promise.resolve(this.hotlistMap[c]);this.hotlistMap[c]={hotlistId:c};return this.hotlistApi.get(c).then(function(f){f=lmc(f);b.addHotlist(f);d(f);b.selectableHotlistsChanged$.next();return f},function(){var f=b.hotlistMap[c];jh(b.hotlistMap,c);za(b.hotlists,f);e();b.selectableHotlistsChanged$.next()})};
Y5.\u0275fac=function(a){return new (a||Y5)(C(yH),C(FM),C(sK),C(YK),C(SK),C(xK),C(BK),C(bL))};Y5.\u0275dir=w({type:Y5,features:[ie]});var lmc=function(a){a=Fi(a);a.selected=!1;return a};
var Z5=function(){};Z5.prototype.watch=function(a,b){b=void 0===b?document.documentElement:b;return(0,U.concat)((0,U.defer)(function(){return(0,U.of)(document.getElementById(a))}),mKa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(S(function(){return document.getElementById(a)}))).pipe(xf(cl),Xf())};Z5.\u0275fac=function(a){return new (a||Z5)};Z5.\u0275prov=lc({token:Z5,factory:Z5.\u0275fac,providedIn:"root"});
var $5=function(a){this.idWatch=a},omc=function(a,b){var c=b.scrollableContainerId,d=void 0===b.scrollPadding?0:b.scrollPadding;return a.idWatch.watch(b.elementId,b.parentElement).pipe(Xf(),S(function(e){e.scrollIntoView();if(e=document.getElementById(c))e.scrollTop-=d}))};$5.\u0275fac=function(a){return new (a||$5)(t(Z5))};$5.\u0275prov=lc({token:$5,factory:$5.\u0275fac,providedIn:"root"});
var a6=function(a,b,c,d){this.dynamicScrollIntoView=a;this.paths=b;this.routeParams=c;this.baseIssueReferenceResolver=d;this.destroyed$=new U.ReplaySubject(1);var e;this.issueId=Number(null!=(e=this.routeParams.issueId)?e:"0")};
a6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(omc(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(jg(this.destroyed$)).subscribe(),history&&history.pushState(null,"",this.paths.editIssue(this.issueId)+"#"+a.elementId))};a6.prototype.ngOnDestroy=function(){this.destroyed$.next()};
a6.\u0275fac=function(a){return new (a||a6)(t($5),t(GK),t(IR),t(k5))};a6.\u0275prov=lc({token:a6,factory:a6.\u0275fac});
var pmc=function(a){Z.call(this,a)};V(pmc,Z);pmc.prototype.toObject=function(){var a=null!=this?{warningHeader:n(p(this,1)),warning:n(p(this,2)),isAllowed:n(Mo(this,3)),isExternalMove:n(Mo(this,4))}:void 0;return a};pmc.messageId="b.CompareComponentAccessResponse";
var b6=function(a){this.executor=a};b6.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:pmc}).then(sra)};b6.\u0275fac=function(a){return new (a||b6)(t(qI))};b6.\u0275prov=lc({token:b6,factory:b6.\u0275fac,providedIn:"root"});
var c6=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},Z5a=function(a,b,c){var d,e,f,h,k;return hf(function(q){switch(q.nextAddress){case 1:return b=String(b),PR(a.issueInteractionsTracking,b,{label:"changeComponent"}),c?jf(q,(0,U.firstValueFrom)(a.issueFridge.watch(b)),2):q.return();case 2:d=q.yieldResult;if(!d)return uK(a.butterBar,"Could not load issue "+b),q.return();e=d.snapshot[0].componentId;
f=c.componentId;return e===f?q.return():jf(q,a.compareComponentAccess.check(String(e),String(f),b),3);case 3:h=q.yieldResult;if(!h.warning){q.jumpTo(4);break}return jf(q,qmc(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))}})},qmc=function(a,b){return new Promise(function(c){DB(a.matDialogService.open(dT,{width:"580px",data:{response:b,callbacks:{allow:function(){c(!0)},cancel:function(){c(!1)}}}})).subscribe(function(){c(!1)})})};
c6.\u0275fac=function(a){return new (a||c6)(t(OR),t(hL),t(sK),t(b6),t(PB),t(VR))};c6.\u0275prov=lc({token:c6,factory:c6.\u0275fac,providedIn:"root"});
var d6=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},rmc=function(a,b){var c=b.issueId,d=b.newCommentId,e=b.newComment,f=b.newCommentFormattingMode,h,k;hf(function(q){switch(q.nextAddress){case 1:h=a.editIssueService.savingState(c);if(!e.trim())return uK(a.butterBar,"New comment cannot be empty."),q.return();SR(h,"commentEdit");tK(a.butterBar,
"Saving comment edit...",0);PR(a.issueInteractionsTracking,c,{label:1===d?"description":"comment"});It(q,2,3);return jf(q,a.issueCommentsService.update(c,d,e,f),5);case 5:tK(a.butterBar,"Comment edit successful.",4E3),1===d?mL(a.issueFetchResponseFridge,c):HJ(a.eventsForIssueFridge,c,function(u){u.events=ita(u.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:el(f,Mm)})}),a.eventsForIssueFridge.poke(c);case 3:Lt(q);TR(h,"commentEdit");Mt(q,0);break;case 2:k=Kt(q),zK(a.errorHandler,
k),q.jumpTo(3)}})};d6.\u0275fac=function(a){return new (a||d6)(t(xK),t(wL),t(kL),t(bO),t(OR),t(sK),t(VR))};d6.\u0275prov=lc({token:d6,factory:d6.\u0275fac,providedIn:"root"});
var smc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};
var e6=function(a){this.matDialog=a};e6.prototype.show=function(a,b,c){a={width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:a,audience:b,id:null!=c.unlinkifiedComment?c.commentNumber:1,text:c.unlinkifiedComment||"",formattingMode:bsa(c.formattingMode)}};this.dialog=this.matDialog.open(f6,a);return(0,U.firstValueFrom)(DB(this.dialog))};e6.\u0275fac=function(a){return new (a||e6)(t(PB))};e6.\u0275prov=lc({token:e6,factory:e6.\u0275fac,providedIn:"root"});
var f6=function(a,b,c,d,e){yI.call(this);var f=this;this.activeSession=a;this.origComment=b;this.dialogService=c;this.dialogRef=d;this.MARKDOWN=2;this.contentRemovalRequestLink=this.activeSession.isInternalSession()?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202";this.newComment=Object.assign({},this.origComment);this.subscriptions.add(LY(e,function(){return!Ei(f.newComment,f.origComment)},!1))};V(f6,yI);f6.\u0275dir=yI.\u0275dir;
f6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(jg(this.destroyed$)).subscribe(function(b){"Escape"===b.key&&tmc(a)});this.dialogRef.backdropClick().pipe(jg(this.destroyed$)).subscribe(function(){tmc(a)})};var tmc=function(a){if(Ei(a.newComment,a.origComment)){var b;null==(b=a.dialogService.dialog)||b.close()}};f6.\u0275fac=function(a){return new (a||f6)(C(yH),C(NB),C(e6),C(CB),C(KY))};
f6.\u0275cmp=w({type:f6,selectors:[["ng-component"]],features:[ie],decls:17,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"content","issueId","audience","contentChange","onSubmit"],[1,"inline-block",3,"initialValue","change"],[3,"comment","issueId","audience","formattingMode",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"mat-dialog-close"],["mat-flat-button","",1,"gmat-button",3,"mat-dialog-close",
"disabled"],[3,"comment","issueId","audience","formattingMode"]],template:function(a,b){a&1&&(F(0,"h1",0),P(1),G(),F(2,"section",1)(3,"p",2),P(4," Editing comments will not permanently remove old ones from database history. "),H(5,"br"),P(6," For deletion of PII or other sensitive content, please "),F(7,"a",3),P(8," file a support request."),G()(),F(9,"b-comment-draft",4),J("contentChange",function(c){return b.newComment.text=c})("onSubmit",function(){if(!Ei(b.newComment,b.origComment)){var c;null==
(c=b.dialogService.dialog)||c.close(b.newComment)}}),G(),F(10,"b-markdown-toggle",5),J("change",function(c){return b.newComment.formattingMode=c}),G(),O(11,F1a,1,4,"b-live-preview",6),G(),F(12,"footer",7)(13,"button",8),P(14," Cancel "),G(),F(15,"button",9),P(16," Save "),G()());a&2&&(B(1),Le("Editing Comment #",b.origComment.id," of Issue ",b.origComment.issueId,""),B(6),D("href",b.contentRemovalRequestLink,Ud),B(2),D("content",b.newComment.text)("issueId",b.origComment.issueId)("audience",b.origComment.audience),
B(1),te("margin-bottom",(null==b.newComment?null:b.newComment.formattingMode)!==b.MARKDOWN),D("initialValue",b.origComment.formattingMode),B(1),D("ngIf",(null==b.newComment?null:b.newComment.formattingMode)===b.MARKDOWN),B(2),D("mat-dialog-close",void 0),B(2),D("mat-dialog-close",b.newComment)("disabled",!!Ei(b.newComment,b.origComment)))},dependencies:[QB,RB,SB,TB,ux,rB,DW,CW,YW],encapsulation:2,changeDetection:0});
var g6=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra){this.editIssueService=a;this.butterBar=b;this.issuePermissionService=c;this.issueCommentService=d;this.editCommentDialogService=e;this.issueFridge=f;this.matDialogService=h;this.paths=k;this.analytics=q;this.domSafe=u;this.confirmationDialogService=x;this.issueComments=E;this.errorHandler=I;this.issueFetchResponseFridge=N;this.eventsForIssueFridge=L;this.componentFridge=T;this.commentFormatter=Y;this.confirmNoAccessService=ja;this.activeSession=
ha;this.appEvents=ra},ht=function(a,b,c){var d,e,f,h;return hf(function(k){if(1==k.nextAddress){b=String(b);d=a.editIssueService.savingState(b);if(d.get("commentEdit"))return k.return();a.butterBar.dismiss();f=null!=(e=a.issuePermissionService.audience())?e:2;return jf(k,a.editCommentDialogService.show(Number(b),f,c),2)}h=k.yieldResult;if(null==h)return k.return();rmc(a.issueCommentService,{issueId:b,newCommentId:h.id,newComment:h.text,newCommentFormattingMode:h.formattingMode});kf(k)})},vmc=function(a,
b,c){var d,e,f;return hf(function(h){if(1==h.nextAddress)return c?jf(h,umc(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"},jf(h,(0,U.firstValueFrom)(DB(a.matDialogService.open(tX,{data: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});Zn(a.analytics,ao.EDIT_ISSUE,
"copyComment",k.relations.join(",")||"NONE");a.domSafe.openInNewTab(q)}kf(h)})},umc=function(a,b){var c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y;return hf(function(ja){if(1==ja.nextAddress)return jf(ja,(0,U.firstValueFrom)(a.issueFridge.watch(b)),2);if(3!=ja.nextAddress){c=ja.yieldResult;if(!c)return ja.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 jf(ja,(0,U.firstValueFrom)(a.issueFridge.watchSet(Fj([].concat(v(e),
v(h),v(q))))),3)}u=ja.yieldResult;x=new Map(u.map(function(ha){return[ha.issueId,ha]}));E=function(ha){return x.get(ha)};I=q.map(E).filter(cl).map(wmc("BLOCKED_BY"));N=h.map(E).filter(cl).map(wmc("BLOCKING"));L=e.map(E).filter(cl).map(wmc("DUPLICATE"));T=[].concat(v(I),v(N),v(L));Y=G1a(T);return ja.return(Y)})},ymc=function(a,b,c){var d;return hf(function(e){return 1==e.nextAddress?c?jf(e,ALb(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:In("Are you sure you want to restore this comment?")}),
2):e.return():(d=e.yieldResult)?jf(e,xmc(a,b,c),0):e.return()})},xmc=function(a,b,c){var d,e;return hf(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();tK(a.butterBar,"Restoring comment...",0);It(f,2,3);SR(d,"commentUndelete");return jf(f,a.issueComments.undelete(b,c),5);case 5:tK(a.butterBar,"Comment restored successfully.");case 3:Lt(f);TR(d,"commentUndelete");mL(a.issueFetchResponseFridge,b);a.eventsForIssueFridge.poke(b);
Mt(f,0);break;case 2:e=Kt(f),tK(a.butterBar,"Comment restoration failed."),zK(a.errorHandler,e),f.jumpTo(3)}})},Bmc=function(a,b,c,d){var e,f,h,k;return hf(function(q){if(1==q.nextAddress){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():jf(q,zmc(a,b),2)}return 3!=q.nextAddress?(f=q.yieldResult,a.butterBar.dismiss(),jf(q,(0,U.firstValueFrom)(DB(a.matDialogService.open(B3,{width:"560px",data:{commentNumber:c,issueId:Number(b),deletionReasons:f}}))),
3)):(h=q.yieldResult)?jf(q,Amc(a,b,c,h.value,null!=(k=d)?k:""),0):q.jumpTo(0)})},Amc=function(a,b,c,d,e){var f,h;return hf(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();It(k,2,3);tK(a.butterBar,"Deleting comment...",0);SR(f,"commentDelete");return jf(k,a.issueComments.delete(b,c,d,e),5);case 5:tK(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Lt(k);TR(f,"commentDelete");
mL(a.issueFetchResponseFridge,b);Mt(k,0);break;case 2:h=Kt(k),tK(a.butterBar,"Comment deletion failed."),zK(a.errorHandler,h),k.jumpTo(3)}})},zmc=function(a,b){var c,d,e,f,h,k,q,u,x;return hf(function(E){switch(E.nextAddress){case 1:return jf(E,(0,U.firstValueFrom)(a.issueFridge.watch(b,{trustUncertainMemory:!0})),2);case 2:c=E.yieldResult;e=(null==(d=c)?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;E.jumpTo(3);break}return jf(E,(0,U.firstValueFrom)(a.componentFridge.watch(e)),4);case 4:f=
E.yieldResult;case 3:return h=f,k=new smc("Other","USER_REQUEST"),"DISABLED"===(null==(q=h)?void 0:q.commentEditState)&&(k.enabled=!1,k.disabledReason="comment editing must be enabled"),u=new smc("Spam or Abuse","ABUSE"),"EXTERNAL_PUBLIC"!==a.issuePermissionService.accessLevel()&&(u.enabled=!1,u.disabledReason="available on Public components"),x=new smc("Personally Identifiable Information","PII"),E.return([x,u,k])}})},Cmc=function(a,b,c){var d,e;return hf(function(f){if(1==f.nextAddress)return d=
YN(a.issuePermissionService,Rl(c.userPerformingActionUser)),Zn(a.analytics,ao.RESTRICTED_CONTENT,"updateContentJudgement","comment"),jf(f,a.showContentJudgementDialog({severity:El(Fl(c.commentContentVerdict)),resourcePath:"issues/"+b+"/comments/"+c.commentNumber,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||d}),2);if(e=f.yieldResult)c.commentContentVerdict={piiVerdict:{severity:Dl(e.contentJudgement.getSeverity())}},mL(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),jL(a.issueFridge,
[b],{markRead:!0});kf(f)})};g6.prototype.showContentJudgementDialog=function(a){return(0,U.firstValueFrom)(DB(this.matDialogService.open(U4,{width:"500px",data:a})))};
var Dmc=function(a,b,c){var d;return hf(function(e){if(1==e.nextAddress)return jf(e,(0,U.firstValueFrom)(DB(a.matDialogService.open(Y4,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(1===d)})},Emc=function(a,b,c,d){var e;hf(function(f){if(1==f.nextAddress){if(null==d)return f.return();Zn(a.analytics,ao.RESTRICTED_CONTENT,"updateContentJudgement","attachment");return jf(f,a.showContentJudgementDialog({severity:El(Fl(d.contentVerdict)),resourcePath:"issues/"+b+
"/attachments/"+d.attachmentId,hasAclToCreate:a.issuePermissionService.hasAclToAdmin()||c}),2)}if(e=f.yieldResult)d.contentVerdict={piiVerdict:{severity:Dl(e.contentJudgement.getSeverity())}},mL(a.issueFetchResponseFridge,b),a.eventsForIssueFridge.poke(b),jL(a.issueFridge,[b],{markRead:!0});kf(f)})};
g6.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q,u;hf(function(x){if(1==x.nextAddress){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return x.return();e=U;f=e.firstValueFrom;h=c.matDialogService;k=h.open;q=C3;return jf(x,zmc(c,a),3)}return 2!=x.nextAddress?jf(x,f.call(e,DB(k.call(h,q,{width:"560px",data:{deletionReasons:x.yieldResult,attachmentId:b.attachmentId}}))),2):(u=x.yieldResult)?jf(x,rRb(c.editIssueService,a,b,u.value),0):x.jumpTo(0)})};
var Fmc=function(a,b){var c=b.issueId,d=b.componentId,e=b.comment,f,h,k;return hf(function(q){if(1==q.nextAddress){if("INTERNAL"!==a.issuePermissionService.accessLevel()||a.issuePermissionService.showImplicitAccessIndicator())return q.return(!0);It(q,2);return jf(q,(0,U.firstValueFrom)(I1b(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(KQb(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Kt(q);zK(a.errorHandler,k);return q.return(!1)})},Gmc=function(a){var b;return hf(function(c){return(b=a.issuePermissionService.accessLevel())&&"INTERNAL"===b||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||zH(a.activeSession)?c.return(!0):c.return(ALb(a.confirmationDialogService,{title:"",content:In("Commenting on this bug report means your email address will be shared with the team that works on this product.")}))})};
g6.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k;return hf(function(q){if(1==q.nextAddress){c=b.editIssueService.issueCommentDraft(a).comment();d=b.editIssueService.savingState(a);e=b.editIssueService.editableIssue(a);if(!b.issuePermissionService.hasAclToComment()||!PQb(c)||d.get("comment"))return q.return();SR(d,"comment");f=function(){TR(d,"comment")};return jf(q,Fmc(b,{issueId:a,componentId:String(e.componentId),comment:c}),2)}if(3!=q.nextAddress)return h=q.yieldResult,h?jf(q,Gmc(b),
3):(f(),q.return());k=q.yieldResult;if(!k)return f(),q.return();Zn(b.analytics,ao.EDIT_ISSUE,"addComment",2===c.formattingMode?"markdown":"non markdown");return q.return(b.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(a).finally(function(){f();b.appEvents.commentSubmitted.next(Number(a));b.appEvents.scrollToCommentBox.next()}))})};
g6.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return hf(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,jf(q,b.showContentJudgementDialog({severity:h,contentJudgement:d,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.userDefinedJudgementForNewContent$.next(k.contentJudgement);kf(q)})};
g6.\u0275fac=function(a){return new (a||g6)(t(VR),t(sK),t(ZN),t(d6),t(e6),t(hL),t(PB),t(GK),t(FM),t(fP),t(PM),t(bO),t(xK),t(kL),t(wL),t(IJ),t(BW),t(FR),t(yH),t(BK))};g6.\u0275prov=lc({token:g6,factory:g6.\u0275fac,providedIn:"root"});var wmc=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 h6=function(a,b,c){this.editIssueService=a;this.matDialogService=b;this.analytics=c},L1a=function(a,b){var c,d,e,f,h,k,q;return hf(function(u){if(1==u.nextAddress)return b=String(b),Zn(a.analytics,ao.ISSUE_PICKER,"click","duplicate"),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},f=(new Date).getTime(),jf(u,(0,U.firstValueFrom)(DB(a.matDialogService.open(tX,
{data:e}))),2);h=u.yieldResult;if(null==(k=h)||!k.length)return c.status=d,u.return();q=(new Date).getTime()-f;Zn(a.analytics,ao.ISSUE_PICKER,"apply","duplicate",q);eLb(a.analytics,q,"duplicate");Zn(a.analytics,ao.EDIT_ISSUE,"setCanonicalIssue");return u.return(lRb(a.editIssueService,b,String(h.map(function(x){return x.resourceId})[0])))})};h6.\u0275fac=function(a){return new (a||h6)(t(VR),t(PB),t(FM))};h6.\u0275prov=lc({token:h6,factory:h6.\u0275fac,providedIn:"root"});
var i6=function(a,b,c,d,e,f){yI.call(this);var h=this;this.devopsGraph=a;this.paramsService=b;this.analytics=c;this.butterBar=d;this.router=e;this.route=f;this.id$=hM(this.paramsService,"issueId").pipe(Wf());this.contexts$=this.id$.pipe(ig(function(k){return hf(function(q){return null!=h.devopsGraph.getContainer()&&k?q.return(bmc(h.devopsGraph,Number(k)).then(function(u){return{issueId:k,availablePanels:u}})):q.return(void 0)})}),fg({refCount:!1,bufferSize:1}));this.availablePanels$=this.contexts$.pipe(S(function(k){return k?
k.availablePanels:new Set}));this.shouldShowInsightsGraphMenu$=this.contexts$.pipe(S(function(k){return!!k&&0<k.availablePanels.size&&aj()&&null!=h.devopsGraph.getContainer()}));this.shouldShowInsightsGraphButton$=this.contexts$.pipe(S(function(k){return!!k&&0<k.availablePanels.size&&aj()&&null!=h.devopsGraph.getContainer()&&k.availablePanels.has("deployments")}));this.openSidebar.bind(this);this.subscriptions.add(this.contexts$.subscribe(function(k){if(k){k=k.availablePanels;h.track("ingress-view-"+
(0<k.size?"enabled":"disabled"));k.has("deployments")&&h.track("ingress-view-deployments-enabled");k.has("incidents")&&h.track("ingress-view-incidents-enabled");var q=h.paramsService.params.showInsights;q&&("default"===q?0<k.size?h.openSidebar():uK(h.butterBar,"Could not open Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."):k.has(q)?h.openSidebar(q):uK(h.butterBar,"Could not open "+q+" Insights Sidebar: no data for this issue. See go/g3g-guide-buganizer."))}else h.devopsGraph.close()}));
this.subscriptions.add(this.devopsGraph.close$.subscribe(function(){Hmc(h,null)}))};V(i6,yI);i6.\u0275dir=yI.\u0275dir;i6.prototype.openSidebar=function(a){var b=this,c,d,e,f,h;return hf(function(k){c=Ik(b.contexts$);if(!c)return k.return();d=c;e=d.issueId;f=d.availablePanels;Hmc(b,null!=(h=a)?h:"default");("incidents"===a||!a&&1===f.size&&f.has("incidents"))&&BM.setBooleanAt("g3g.incidentSidebarOpened")(!0);return k.return(b.devopsGraph.openSidebar(Number(e),{panel:a}))})};
i6.prototype.track=function(a){Zn(this.analytics,"sidebar",a)};var Hmc=function(a,b){a.router.navigate([],{relativeTo:a.route,queryParams:{showInsights:b},queryParamsHandling:"merge",replaceUrl:!0,preserveFragment:!0})};i6.\u0275fac=function(a){return new (a||i6)(t(U5),t(gM),t(FM),t(sK),t(Gk),t(mk))};i6.\u0275prov=lc({token:i6,factory:i6.\u0275fac,providedIn:"root"});
var f2a=function(a,b){return{"bv2-has-canonical":a,"bv2-archived":b}},Imc={parent:"me"},Jmc={voted:!1,starred:!1,notificationSubscription:"UNKNOWN_SUBSCRIPTION",lastViewedTimeMicros:void 0},j6=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba,Ga,Xa,$a,ec,Va,Ya,Sa,vb,fb,zb,Jb,gc,Ac,ue,jd,Ed,gh,wK,am){Y5.call(this,u,ja,ha,e,f,Ca,Mb,Va);var nc=this;this.cdr=a;this.bLocation=b;this.routerEvents=c;this.issueApi=d;this.codeMentions=h;this.issueService=k;this.paths=q;this.hotkeys=
x;this.componentActions=E;this.bCacheFactory=I;this.userPreferencesManager=N;this.$log=L;this.checkBeforeExit=T;this.routeParams=Y;this.draftStore=ra;this.constants=Fa;this.pageTitle=Ka;this.domSafe=La;this.attachmentsMember=jb;this.matDialogService=db;this.devopsGraph=va;this.routePerformance=Ba;this.refreshMonitor=Ga;this.issueDetailsBrain=Xa;this.permissionsFridge=$a;this.issueFetchResponseFridge=ec;this.eventsForIssueFridge=Ya;this.componentFridge=Sa;this.issueRelationshipService=vb;this.element=
fb;this.issueFridge=zb;this.issueArchiveService=Jb;this.editIssueService=gc;this.issueInteractionsTracking=Ac;this.currentSearchResults=ue;this.issuePermissionService=jd;this.issueRelationshipsFridge=Ed;this.issueMarkAsDuplicateDialogService=gh;this.issueInsightsSidebarService=wK;this.issueCommentDialogsService=am;this.enableG3cWidgetIntegration=AH(this.activeSession,"enableG3cWidgetIntegration");this.enableG3cFeatureHighlighting=AH(this.activeSession,"enableG3cFeatureHighlighting");this.enableWtdmMvpUi=
AH(this.activeSession,"enableWtdmMvpUi");this.codeMentionsEnabled=AH(this.activeSession,"enableCodeMentionsUi");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.newComponent=this.currentComponent=null;this.componentPathInfo$=(0,U.combineLatest)([this.issueDetailsBrain.componentId$,this.issueDetailsBrain.componentPathInfo$]).pipe(S(function(kc){var ve=r(kc);kc=ve.next().value;ve=ve.next().value;null!=ve?kc=ve:kc=kc?{componentPathId:[Number(kc)],
componentPathName:["Component "+kc],allCustomField:[]}:void 0;return kc}));this.frontendIsInternalOrPartner=this.sessionIsInternal||zH(this.activeSession);this.frontendIsInternal=this.sessionIsInternal;this.relatedIssuesCache=this.bCacheFactory.get("edit-issue-controller-related-issues")||this.bCacheFactory.create("edit-issue-controller-related-issues",{capacity:25});this.preferences={showFullHistory:!1,useCodefont:!1,autoCcOnComment:!1};this.editComponent=!1;this.rightSidebarWidth=330;this.rightSidebarMinWidth=
245;this.unStarTooltip=this.starTooltip="";this.voteCount=0;this.issueId=qC(this.routeParams.issueId);this.issueIdString=String(this.issueId);this.issueCommentDraft=this.editIssueService.issueCommentDraft(this.issueIdString);this.ariaIssueTitle="";this.savingState=this.editIssueService.savingState(String(this.issueId));this.quickActions=this.editIssueService.issueQuickActions(String(this.issueId));this.issueStatusQuickAction$=this.quickActions.issueStatusQuickAction$;this.commentLimitReached=!1;this.canonicalIssueId$=
this.issueDetailsBrain.canonicalIssueId$;this.canonicalIssue$=this.issueDetailsBrain.canonicalIssue$;this.codeMentionsState$=AH(this.activeSession,"enableCodeMentionsUi")?Ylc(this.codeMentions,this.issueId):void 0;this.duplicateIssues=[];this.blockingIssues=[];this.blockedByIssues=[];this.parentIssues=[];this.parentIssueIds=[];this.parentChildRelationships$=this.issueRelationshipsFridge.watch(this.issueId);this.childIssuesCount$=this.parentChildRelationships$.pipe(S(function(kc){var ve;return null!=
(ve=null==kc?void 0:kc.totalChildCount)?ve:0}));this.childIssues$=this.parentChildRelationships$.pipe(ig(function(kc){var ve;return(0,U.combineLatest)(null!=(ve=null==kc?void 0:kc.relatedChildren.map(function(Oi){return nc.issueFridge.watch(Oi.targetIssueId)}))?ve:[])}),S(function(kc){return kc.filter(cl)}),S(function(kc){return kc.map(function(ve){return Kmc(ve)})}));this.insightsFeatureTooltipPositions=[$rb];this.relatedIssuesTrayOpen=null;this.events=[];this.blockingIssuesSearchUrl=this.paths.listIssues({q:"blockingid:"+
this.issueId});this.blockedIssuesSearchUrl=this.paths.listIssues({q:"blockedbyid:"+this.issueId});this.childIssuesSearchUrl=this.paths.listIssues({q:"parentid:"+this.issueId});this.issue=new rR;this.isShowAccessDeniedComponent=!1;this.issueMetadata=null;this.issue$=this.issueDetailsBrain.issueJs$;this.events$=this.issueDetailsBrain.eventsJs$;this.componentIds$=(0,U.combineLatest)([this.events$.pipe(S(hta)),this.issue$.pipe(S(lta))]).pipe(S(QKa),Wf(PKa));this.hotlistIds$=(0,U.combineLatest)([this.events$.pipe(S(jta)),
this.issue$.pipe(S(kta))]).pipe(S(QKa),Wf(PKa));this.userHotlists$=this.hotlistFridge.watchMany(Imc).pipe(S(function(kc){return kc.results}));this.issueAndEventHotlists$=this.hotlistIds$.pipe(S(function(kc){return[].concat(v(kc))}),ig(this.hotlistFridge.watchSet));this.hotlists$=(0,U.combineLatest)([this.issueAndEventHotlists$,this.userHotlists$]).pipe(S(function(kc){var ve=r(kc);kc=ve.next().value;ve=ve.next().value;return[].concat(v(kc),v(ve))}),S($Bb(function(kc){return kc.hotlistId})),S(function(kc){return kc.filter(cl)}),
kg(function(kc){kc=r(kc);for(var ve=kc.next();!ve.done;ve=kc.next())ve=ve.value,null!=ve&&nc.addHotlist(lmc(ve))}),fg({refCount:!0,bufferSize:1}),jg(this.destroyed$));this.onLoad=function(){Lmc(nc)};this.UNKNOWN_SUBSCRIPTION="UNKNOWN_SUBSCRIPTION";this.viewInitialized=!1;this.HOTKEYS=xI;this.onIssueError=function(kc){403===kc.status&&nc.frontendIsInternal?Mmc(nc):nc.errorHandler.errorHandler(null,kc)};this.onEventsError=function(kc){nc.errorHandler.errorHandler(null,kc)};this.onChangeIssue=function(kc){nc.firstEvent=
null==kc?void 0:kc.firstEvent;if(null!=kc){kc=(kc||{}).issue;var ve=kc.aggregatedData,Oi=sa((null==kc?void 0:kc.snapshot)||[]),Pn=Oi.componentId||0,Up;nc.userData=Object.assign({},null!=(Up=kc.userData)?Up:Jmc);nc.aggregatedData=ve;Nmc(nc);nc.parentIssueIds=kc.parentIssueIds;Omc(nc,Oi);Pmc(nc,Pn)}};this.toggleStar=function(){null==nc.userData||nc.savingState.get("star")||(nc.userData.starred=!nc.userData.starred,nc.frontendIsInternalOrPartner||(Nmc(nc),nc.userData.voted=nc.userData.starred),SR(nc.savingState,
"star"),BJb(nc.issueFridge,String(nc.issue.issueId),nc.userData.starred).pipe(Xf(),jg(nc.destroyed$)).subscribe(function(){TR(nc.savingState,"star");nc.refreshView()},function(kc){null!=nc.userData&&(nc.userData.starred=!nc.userData.starred);TR(nc.savingState,"star");nc.errorHandler.errorHandler(null,kc);nc.refreshView()}))};this.toggleStarDebounced=lC(this.toggleStar,1E3)};V(j6,Y5);j6.\u0275dir=Y5.\u0275dir;g=j6.prototype;
g.ngOnDestroy=function(){Y5.prototype.ngOnDestroy.call(this);ZQb(this.issueInteractionsTracking,String(this.issueId));this.devopsGraph.close();this.editIssueService.clear(String(this.issueId))};
g.ngOnInit=function(){var a=this;this.appEvents.issueViewed.next(Zk(this.issueId));YQb(this.issueInteractionsTracking,String(this.issueId));this.subscriptions.add(LY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.routerEvents.routeChangeSuccess.pipe(jg(this.destroyed$)).subscribe(function(){a.butterBar.dismiss()});(0,U.combineLatest)([this.events$,this.issue$]).pipe(Xf(),jg(this.destroyed$)).subscribe(this.onLoad);this.refreshMonitor.getObservable().pipe(jg(this.destroyed$)).subscribe(function(){a.refresh()});
this.issueCommentDraft.comment$.pipe(jg(this.destroyed$)).subscribe(function(b){b.hasContent()&&Qmc(a);a.refreshView()});this.eventsForIssueFridge.error$.pipe(jg(this.destroyed$)).subscribe(this.onEventsError);Pp("#comment1 .critical-feature",this.element.nativeElement).pipe(jg(this.destroyed$)).subscribe(function(){var b=function(){G7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.userPreferencesManager.preferences$.pipe(jg(this.destroyed$)).subscribe(function(b){Object.assign(a.preferences,
b);var c=(a.preferences.themePreferences||{}).density;b=(b.layoutPreferences||{}).rightSidebarWidth;a.rightSidebarWidth=null!=b?b:"COZY"===c?300:"COMPACT"===c?270:330},function(){});this.frontendIsInternalOrPartner?(this.starTooltip="Star this issue",this.unStarTooltip="Un-star this issue"):(this.starTooltip="Indicate that you are affected by this issue",this.unStarTooltip="Indicate that you are no longer affected by this issue");this.issue$.pipe(jg(this.destroyed$)).subscribe(this.onChangeIssue);
this.issueFetchResponseFridge.error$.pipe(jg(this.destroyed$)).subscribe(this.onIssueError);this.hotlists$.pipe(jg(this.destroyed$)).subscribe(function(){nmc(a)});this.componentIds$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(b){a.componentFridge.watchSet([].concat(v(b)))});this.events$.pipe(jg(this.destroyed$)).subscribe(function(b){a.events=b.slice(1);var c=a.activeSession.getCommentNumberLimit();un(b)>=c&&(a.commentLimitReached=!0)});this.editIssueService.editableIssue$(String(this.issueId)).pipe(jg(this.destroyed$)).subscribe(function(b){a.issue=
b;nmc(a);a.refreshView()});this.issuePermissionService.issuePermissions$.pipe(jg(this.destroyed$)).subscribe(function(){a.refreshView()});this.selectableHotlistsChanged$.pipe(jg(this.destroyed$)).subscribe(function(){a.refreshView()})};g.ngAfterViewInit=function(){this.viewInitialized=!0};g.refreshView=function(){this.viewInitialized&&this.cdr.detectChanges()};g.onVote=function(){PR(this.issueInteractionsTracking,String(this.issueId))};
var e2a=function(a,b){b!==a.rightSidebarWidth&&yFb(a.userPreferencesManager,{rightSidebarWidth:b}).pipe(jg(a.destroyed$)).subscribe(function(){a.rightSidebarWidth=b;a.refreshView()})},Mmc=function(a){a.isShowAccessDeniedComponent=!0;a.issueService.getMetadata(a.issueId).then(function(b){a.issueMetadata=b;a.refreshView()})},Pmc=function(a,b){null==b?Promise.resolve():a.componentActions.get(b).then(function(c){a.currentComponent=c;a.currentComponent.archived&&(a.inArchivedComponent=a.currentComponent.archived);
a.refreshView()}).catch(function(c){403!==c.status&&a.errorHandler.errorHandler(null,c);a.currentComponent={componentId:b,name:"Component "+String(b)};a.refreshView()}).then(function(){var c=a.issuePermissionService.accessLevel();c=c?hua(c):"";a.ariaIssueTitle=(c?c+" - ":"")+"Issue title: "+a.issue.title+". Change.";a.refreshView()})},Nmc=function(a){var b,c=(null==(b=a.userData)?0:b.starred)?1:0,d,e;a.voteCount=(null!=(e=null==(d=a.aggregatedData)?void 0:d.voteCount)?e:0)+c},phb=function(a,b){var c=
Mj();SR(a.savingState,"parentIssues");var d=a.parentIssues;a.parentIssues=b.items;var e=a.parentIssues.map(function(h){return h.issueId}),f=function(h){yK(a.errorHandler,$m(h));a.parentIssues=d;c.reject()};b.added?(tK(a.butterBar,"Saving...",0),a.issueRelationshipService.create(String(b.item.issueId),1,JL(new IL,a.issueId)).pipe(jg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=k6(a,e,function(){a.parentIssues=[].concat(v(a.parentIssues));tK(a.butterBar,'"'+b.item.issueId+
'" added to Parent Issues.',0);c.resolve()})},f)):(tK(a.butterBar,"Saving...",0),a.issueRelationshipService.delete(String(b.item.issueId),1,String(a.issueId)).pipe(jg(a.destroyed$)).subscribe(function(){a.parentIssueIds=e.map(String);a.parentIssues=k6(a,e,function(){a.parentIssues=[].concat(v(a.parentIssues));tK(a.butterBar,'"'+b.item.issueId+'" removed from Parent Issues.',0);c.resolve()})},f));return c.promise.then(function(){mL(a.issueFetchResponseFridge,a.issueId);a.eventsForIssueFridge.poke(a.issueId)}).finally(function(){TR(a.savingState,
"parentIssues");a.refreshView()})},shb=function(a,b){var c=Mj();SR(a.savingState,"childIssues");tK(a.butterBar,"Saving...",0);var d=function(f){yK(a.errorHandler,$m(f));c.reject()};if("added"in b)b.added?a.issueRelationshipsFridge.assignParentToIssues(String(a.issueId),[{issueId:String(b.item.issueId),afterIssueId:"-1"}]).then(function(f){f.errors?d(f.errors[0]):(c.resolve(),tK(a.butterBar,'"'+b.item.issueId+'" added to Child Issues.',0))}):a.issueRelationshipsFridge.unlinkFromParent(String(b.item.issueId),
String(a.issueId)).then(function(){c.resolve();tK(a.butterBar,'"'+b.item.issueId+'" removed from to Child Issues.',0)}).catch(d);else{var e;pKb(a.issueRelationshipsFridge,{parentId:String(a.issueId),position:(null==(e=b.isNowAfter)?0:e.issueId)?{issueId:String(b.isNowAfter.issueId),position:"after"}:void 0},[{issueId:String(b.item.issueId),parentId:String(a.issueId)}]).then(function(){c.resolve();tK(a.butterBar,"Moved",0)}).catch(d)}return c.promise.then(function(){mL(a.issueFetchResponseFridge,a.issueId);
a.eventsForIssueFridge.poke(a.issueId)}).finally(function(){TR(a.savingState,"childIssues");a.refreshView()})},Rmc=function(a){hf(function(b){return a.enableWtdmMvpUi?jf(b,a.issueRelationshipsFridge.poke(a.issueId),0):b.return()})};j6.prototype.mentionsLoadingStateTooltipText=function(a){return this.codeMentions.mentionsLoadingStateTooltipText(a)};j6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};
var Omc=function(a,b){a.blockedByIssues=k6(a,b.blockedByIssueId||[],function(){a.blockedByIssues=[].concat(v(a.blockedByIssues))});a.blockingIssues=k6(a,b.blockingIssueId||[],function(){a.blockingIssues=[].concat(v(a.blockingIssues))});a.duplicateIssues=k6(a,b.duplicateIssueId||[],function(){a.duplicateIssues=[].concat(v(a.duplicateIssues))});a.enableWtdmMvpUi&&(a.parentIssues=k6(a,a.parentIssueIds.map(Number),function(){a.parentIssues=[].concat(v(a.parentIssues))}))},k6=function(a,b,c){if(!b.length)return null==
c||c(),[];var d=[];b=r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.relatedIssuesCache.get(String(e));f||(f={issueId:e},a.relatedIssuesCache.put(String(e),f));d.push(f)}b=d.filter(function(h){return!h.resolved});Smc(a,b).finally(function(){null==c||c();a.refreshView()});return d},Smc=function(a,b){var c=b.filter(function(f){return!f.resolved});b=r(c);for(var d=b.next();!d.done;d=b.next())d=d.value,a.relatedIssuesCache.put(String(d.issueId),d);var e=Mj();a.issueFridge.watchSet(c.map(function(f){return f.issueId})).pipe(Sf(function(){return(0,U.of)([])}),
Xf(),jg(a.destroyed$)).subscribe(function(f){f=new Map(f.map(function(u){return[u.issueId,u]}));for(var h=r(c),k=h.next();!k.done;k=h.next()){k=k.value;var q=f.get(k.issueId);q?Object.assign(k,Kmc(q)):k.resolved=!0}a.refreshView();e.resolve()});return e.promise},Kmc=function(a){var b=sa(a.snapshot);return{issueId:a.issueId,title:b.title,status:b.status,archived:a.isArchived,resolved:!0}},Ms=function(a){return a.filter(function(b){return!(b.resolved&&b.archived)}).length};g=j6.prototype;
g.hasUnsavedChanges=function(){return this.comment.hasContent()};g.getRequestDataForUpdate=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.getRequestDataForUpdate(this.issue)};g.updateIssue=function(){return this.editIssueService.LEGACY_EDIT_ISSUE.updateIssue(String(this.issueId))};g.preUpdate=function(a){this.editIssueService.LEGACY_EDIT_ISSUE.preUpdate(a)};g.postUpdate=function(a,b){var c=this;return this.editIssueService.LEGACY_EDIT_ISSUE.postUpdate(a,b).finally(function(){c.refreshView()})};
g.performQuickAction=function(a,b){Zn(this.analytics,ao.EDIT_ISSUE,"quickAction ("+a+")",null==b?void 0:b.displayText);return this.editIssueService.performQuickAction(String(this.issueId),null!=b?b:void 0)};var yt=function(a,b){a.savingState.get("title")||!a.issuePermissionService.hasAclToEdit()||b&&"Enter"!==b.key||DB(a.matDialogService.open(A3,{width:"560px",data:{title:a.issue.title}})).pipe(jg(a.destroyed$)).subscribe(function(c){void 0!==c&&c!==a.issue.title&&(a.issue.title=c,a.updateIssue())})};
j6.prototype.showFlagAsSpamDialog=function(){var a=this;DB(this.matDialogService.open(z3,{maxWidth:560})).pipe(jg(this.destroyed$)).subscribe(function(b){b&&pRb(a.editIssueService,String(a.issueId))})};j6.prototype.undelete=function(){this.issue.setIsDeleted(!1);this.issue.setDeletionReason(null);var a=this.getRequestDataForUpdate();if(a&&a.actions){this.preUpdate(a);var b=this.issueService.undelete(this.issueId);this.postUpdate(b,a)}};
j6.prototype.handleHotlistPickerSave=function(a){var b=this,c=a.oldSelectionMap,d=this.issue,e=[],f=[];a=r(Object.entries(a.newSelectionMap));for(var h=a.next();!h.done;h=a.next()){var k=r(h.value);h=k.next().value;k=k.next().value;h=Ki(h);k!==c[h]&&(k&&d.hotlistId&&!d.hotlistId.includes(h)?(d.hotlistId.push(h),e.push(h)):!k&&za(d.hotlistId,h)&&f.push(h))}var q=this.getRequestDataForUpdate();if(q&&q.actions){this.preUpdate(q);var u=this.issueApi.updateIssueHotlists(this.issueId,{addHotlistIds:e,removeHotlistIds:f,
hotlistIssue:{issueId:this.issueId,issue:this.issue}});u.then(function(){q&&(b.postUpdate(u,q),b.refreshView())})}};j6.prototype.submitArchivalState=function(a){return this.issueArchiveService.submitArchivalState(String(this.issueId),a)};
var Qmc=function(a){(0,U.forkJoin)([a.events$.pipe(Xf()),Pp("#AddCommentBox textarea",a.element.nativeElement)]).pipe(jg(a.destroyed$)).subscribe(function(){a.appEvents.scrollToCommentBox.next()})},Tmc=function(a,b,c,d){var e=Pi(b||[],new Set(a));if(0<e.length)return{issueId:c,relation:d,targetIds:e,actionType:"ADD"};a=Pi(a||[],new Set(b));return{issueId:c,relation:d,targetIds:a,actionType:"REMOVE"}},lhb=function(a,b){a.blockingIssues=b;Smc(a,a.blockingIssues).then(function(){a.blockingIssues=[].concat(v(a.blockingIssues));
a.refreshView()});var c=a.issue.blockingIssueId||[];xQb(a.issue,a.blockingIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Tmc(c,a.issue.blockingIssueId||[],a.issueId,"BLOCKING"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d},jhb=function(a,b){a.blockedByIssues=b;Smc(a,a.blockedByIssues).then(function(){a.blockedByIssues=[].concat(v(a.blockedByIssues));a.refreshView()});var c=a.issue.blockedByIssueId||[];yQb(a.issue,
a.blockedByIssues.map(function(e){return e.issueId}));b=a.getRequestDataForUpdate();var d=null;b&&b.actions&&(a.preUpdate(b),c=Tmc(c,a.issue.blockedByIssueId||[],a.issueId,"BLOCKED_BY"),c=a.issueApi.relateIssue(a.issueId,c),d=a.postUpdate(c,b));return d};j6.prototype.saveCommentDraft=function(){this.draftStore.$window.sessionStorage.setItem(qo(this.issue.issueId),this.comment.value)};j6.prototype.clearCanonicalIssue=function(){Zn(this.analytics,ao.EDIT_ISSUE,"click","unmarkDuplicate");this.editIssueService.clearCanonicalIssue(String(this.issueId))};
var d2a=function(a){var b=a.preferences.showFullHistory;Zn(a.analytics,ao.EDIT_ISSUE,"toggleShowFullHistory",String(b));a.userPreferencesManager.save({showFullHistory:b}).pipe(jg(a.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist showFullHistory.")})};
j6.prototype.toggleAutoCcOnComment=function(){var a=this,b=!Fi(this.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;Zn(this.analytics,ao.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));this.userPreferencesManager.save({autoCcOnComment:b}).pipe(jg(this.destroyed$)).subscribe(function(){},function(){a.$log.warn("Failed to persist autoCcOnComment.")})};
var Ls=function(a,b){Zn(a.analytics,ao.EDIT_ISSUE,"toggleRelatedIssuesTray",(a.relatedIssuesTrayOpen!==b?"open":"close")+" "+b);a.relatedIssuesTrayOpen=a.relatedIssuesTrayOpen===b?null:b};j6.prototype.updateSubscription=function(a){var b=this;return hf(function(c){if(1==c.nextAddress)return jf(c,b.editIssueService.updateSubscription(String(b.issueId),a),2);Zn(b.analytics,ao.EDIT_ISSUE,"updateSubscription",a);b.refreshView();kf(c)})};
j6.prototype.refresh=function(){this.relatedIssuesCache.removeAll();this.permissionsFridge.poke("issues/"+this.issueId);Rmc(this);mL(this.issueFetchResponseFridge,this.issueId);this.eventsForIssueFridge.poke(this.issueId);Lmc(this);this.hotlistFridge.pokeMany(Imc);this.issueInteractionsTracking.trackNavigation("refresh")};
var Lmc=function(a){var b=void 0===b?!0:b;a.activeSession.isAnonymous()?Promise.resolve():jL(a.issueFridge,[a.issueId],{markRead:b}).then(function(c){a.userData&&(a.userData.lastViewedTimeMicros=c);a.refreshView()})},zt=function(a){return a.issuePermissionService.hasAclToEdit()?"Set issue title":""},$hb=function(a){return a.issuePermissionService.hasAclToComment()&&!a.commentLimitReached&&!a.savingState.get("comment")},aib=function(a){return a.issuePermissionService.hasAclToComment()&&PQb(a.comment)&&
!a.savingState.get("comment")};j6.prototype.submitCommentBox=function(){var a=this;return hf(function(b){if(1==b.nextAddress)return jf(b,a.issueCommentDialogsService.submitCommentBox(a.issueIdString),2);a.refreshView();kf(b)})};var Zhb=function(a){return a.commentLimitReached?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?"Sign in to use full features.":a.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."};
g=j6.prototype;g.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};g.requestIssueDeletion=function(){this.domSafe.openInNewTab(tYa())};g.showIndefiniteRetentionDialog=function(){var a=this;this.savingState.get("retention")||DB(this.matDialogService.open(y3,{maxWidth:560})).pipe(jg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"INDEFINITE")})};
g.showComponentRetentionDialog=function(){var a=this;this.savingState.get("retention")||DB(this.matDialogService.open(x3,{maxWidth:560})).pipe(jg(this.destroyed$)).subscribe(function(b){b&&a.editIssueService.updateIssueRetention(String(a.issueId),"COMPONENT_DEFAULT")})};g.showNewContentJudgementDialog=function(){var a=this;return hf(function(b){return jf(b,a.issueCommentDialogsService.showNewContentJudgementDialog(String(a.issueId)),0)})};
g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};var cib=function(a){var b,c=null!=(b=Ik(a.childIssuesCount$))?b:0;return a.parentIssueIds.length||c||null!=a.issue.type&&zDb.has(a.issue.type)};
ji.Object.defineProperties(j6.prototype,{comment:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.comment()}},areEventsLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.eventsForIssueFridge.isThinking(this.issueId);return this.isLoading||a&&0===this.events.length}},judgementForNewContent:{configurable:!0,enumerable:!0,get:function(){return this.issueCommentDraft.judgementForNewContent()}},isLoading:{configurable:!0,enumerable:!0,get:function(){var a=this.issueFetchResponseFridge.isThinking(this.issueId);
return null==this.firstEvent&&a}}});j6.\u0275fac=function(a){return new (a||j6)(C(uI),C(FK),C(TI),C(bK),C(YK),C(SK),C(T5),C(EK),C(GK),C(yH),C(bJ),C(iT),C(PK),C(VI),C(vK),C(KY),C(IR),C(FM),C(sK),C(uR),C(ZH),C(WN),C(xK),C(fP),C(CR),C(PB),C(BK),C(U5),C(C_),C(dL),C(XN),C(TL),C(kL),C(bL),C(wL),C(IJ),C(RL),C(wd),C(hL),C(W5),C(VR),C(OR),C(X5),C(ZN),C(SL),C(h6),C(i6),C(g6))};
j6.\u0275cmp=w({type:j6,selectors:[["edit-issue-page"]],features:[Me([uI,WR,{provide:pW,useClass:a6}]),ie],decls:6,vars:5,consts:[[1,"a11y-only"],["class","kd-appbar",4,"ngIf"],[1,"bv2-view","bv2-edit-view"],["class","bv2-access-denied",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"kd-appbar"],[1,"kd-buttonbar"],[1,"bv2-appbar-left"],["mat-icon-button","","color","primary",3,"hotkey","matTooltip","onHotkey","click"],["svgIcon","arrow-backward"],["class","flex-kids-x",4,"ngIf"],[1,"bv2-appbar-right"],[4,"ngIf"],
["mat-icon-button","","color","primary","matTooltip","Go to previous issue","matTooltipPosition","left","aria-label","Go to previous issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-left"],["mat-icon-button","","color","primary","matTooltip","Go to next issue","matTooltipPosition","left","aria-label","Go to next issue",3,"hotkey","disabled","onHotkey","click"],["svgIcon","arrow-right"],[1,"flex-kids-x"],["mat-icon-button","","color","primary","matTooltip","Refresh","aria-label",
"Refresh",3,"hotkey","onHotkey","click"],["svgIcon","refresh"],[1,"bv2-vertical-bar"],[1,"bv2-edit-controls"],[3,"issueId","hasAclToEdit","hasAclToComment","issueStatusQuickAction","statusIsSaving","isDuplicate","upvoted","voteCount","hotkey","onHotkey","onVote","quickAction","markAsDuplicate","clearCanonical"],[3,"choices","hotkey","selectedHotlistIds","onHotkey","onApply","onCreate","onLoad"],["hotlistPicker",""],["aria-label","Notification menu",3,"subscription","issueId","matTooltip","subscriptionChange",
"showNotificationSettings"],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar",4,"ngIf"],["onedevTooltipAnchor","incident-insights",3,"availablePanels","openSidebar"],["tooltipId","incident-insights",3,"customPositions"],["onedevTooltipTitle",""],[3,"customWidgetClass","taskId","featureHighlightingEnabled","userActionPerformed"],["role","alert","aria-live","polite","class","bv2-appbar-pagenums",
4,"ngIf"],["role","alert","aria-live","polite",1,"bv2-appbar-pagenums"],[1,"bv2-access-denied"],[3,"issueMetadata"],[3,"ngClass"],["messageType","caution","class","bv2-archived-issue-banner border-bottom",3,"format","iconOverride",4,"ngIf"],["class","bv2-canonical-issue-banner",4,"ngIf"],[1,"bv2-related-issues-bar"],[1,"bv2-related-issues-bar-upper"],["role","tablist","aria-label","Related issues","aria-multiselectable","true",1,"bv2-related-issues-buttons"],["id","rel-issues-tray-blocked","role",
"tab","tabindex","0","aria-controls","rel-issues-tray-blocked-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],[1,"label",3,"matTooltip"],["svgIcon","arrow-dropdown"],["id","rel-issues-tray-blocking","role","tab","tabindex","0","aria-controls","rel-issues-tray-blocking-content",1,"tab-head",3,"click","keydown.enter","keydown.space"],["id","rel-issues-tray-duplicates","role","tab","tabindex","0","aria-controls","rel-issues-tray-duplicates-content",1,"tab-head",3,"matTooltip","click",
"keydown.enter","keydown.space"],[1,"label"],["class","tab-head","id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["class","tab-head","id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[1,"bv2-related-issues-bar-upper-right"],["id",
"bv2-issue-history-button"],["label","Full history",3,"model","tooltip","modelChange"],[1,"bv2-main-content-right-bar-container"],[1,"bv2-main-content-container"],[3,"parent"],["direction","rtl","id","bv2-resizable-rightbar",3,"disableToggleBtn","hideToggleBtnOnOpen","minWidth","size","widthChanged"],[1,"bv2-issue-metadata"],[1,"flex-kids-y"],[3,"issueId"],["messageType","caution",1,"bv2-archived-issue-banner","border-bottom",3,"format","iconOverride"],["href","http://go/buganizer-issue-archive",
"target","_blank",4,"ngIf"],["format","flat",3,"onAction",4,"ngIf"],["href","http://go/buganizer-issue-archive","target","_blank"],["format","flat",3,"onAction"],["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"],[1,"bv2-canonical-issue-banner"],["class","bv2-canonical-title",4,"ngIf","ngIfElse"],["partiallyLoaded",""],[1,"bv2-canonical-title"],[1,"high-contrast-link",
3,"href","onedevHovercardTrigger"],["canonicalHovercard",""],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""],[1,"high-contrast-link",3,"href"],["id","rel-issues-tray-parents","role","tab","tabindex","0","aria-controls","rel-issues-tray-parents-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["id","rel-issues-tray-children","role","tab","tabindex","0","aria-controls","rel-issues-tray-children-content",
1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"],["class","tab-head","id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",3,"expanded","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],["id","rel-issues-tray-mentions","role","tab","tabindex","0","aria-controls","rel-issues-tray-mentions-content",1,"tab-head",3,"matTooltip","click","keydown.enter","keydown.space"]],template:function(a,b){a&1&&(F(0,"h2",0),P(1),
G(),O(2,P1a,17,19,"div",1),F(3,"div",2),O(4,Q1a,2,1,"div",3),O(5,g2a,45,62,"div",4),G());a&2&&(B(1),Je("Issue ",b.issueId,""),B(1),D("ngIf",!b.isShowAccessDeniedComponent),B(1),oe("aria-busy",b.isLoading),B(1),D("ngIf",b.isShowAccessDeniedComponent),B(1),D("ngIf",b.issue&&!b.isShowAccessDeniedComponent))},encapsulation:2});
var Umc=["savedSearchNameInput"],Ns=function(a){return{"bv2-edit-resource-readonly":a}},m2a=function(a){return{displayText:"Admins",values:a}},l2a=function(a){return[a]},l6=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja){yI.call(this);var ha=this;this.routeParams=a;this.location=b;this.accessPolicyApi=c;this.savedSearchApi=d;this.paths=e;this.appHistory=f;this.butterBar=h;this.pageTitle=k;this.documentationLinks=u;this.userAccess=E;this.errorHandler=I;this.snackBar=N;this.confirmationDialog=L;this.cdr=
T;this.accessPolicyConverter=Y;this.appEvents=ja;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=uT();this.flattenedAccessPolicy=uT();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 ra;null==(ra=ha.savedSearchName)||ra.nativeElement.focus()});this.subscriptions.add(LY(x,function(){return ha.hasUnsavedChanges()},!1))};V(l6,yI);l6.\u0275dir=yI.\u0275dir;g=l6.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=Fi(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=vT(c);b.accessPolicyUnderEdit=Fi(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return gK(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(){A_(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=Fi(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!Ei(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!Ei(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=Fi(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",In("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=wT(this.accessPolicyUnderEdit)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);uK(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=vT(c);a.accessPolicyUnderEdit=Fi(a.flattenedAccessPolicy);
a.loadUserAccess(String(a.savedSearch.searchId));a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})},function(c){a.errorHandler.errorHandler(null,c);uK(a.butterBar,$m(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.openConfirmationDialog("Delete saved search",In("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"});QIb(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()}})};l6.\u0275fac=function(a){return new (a||l6)(C(IR),C(FK),C(EL),C(CN),C(GK),C(z_),C(sK),C(WN),C(yH),C(dP),C(KY),C(fK),C(xK),C(pK),C(PM),C(uI,2),C(tT),C(BK))};
l6.\u0275cmp=w({type:l6,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(Hf(Umc,5),Hf(NW,5,wd));if(a&2){var c;Gf(c=Jf())&&(b.savedSearchName=c.first);Gf(c=Jf())&&(b.tabs=c)}},features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G(),O(5,h2a,2,1,"button",5),G()()(),F(6,"div",6),O(7,i2a,
4,0,"ng-container",7),O(8,n2a,51,38,"ng-container",7),G());a&2&&(B(5),D("ngIf",b.isAdmin),B(2),D("ngIf",!b.isLoading&&!b.savedSearch),B(1),D("ngIf",!b.isLoading&&b.savedSearch))},dependencies:[xx,ux,lF,rB,PW,NW,SY,XE,Qg,by,sy,hy,HY],encapsulation:2});
var Vmc=function(a){Z.call(this,a)};V(Vmc,Z);g=Vmc.prototype;g.getAuthor=function(){return m(this,Tl,1)};g.getTimestamp=function(){return m(this,tj,2)};g.setTimestamp=function(a){return Gb(this,2,a)};g.hasTimestamp=function(){return mj(this,2)};g.getAdd=function(){return m(this,bY,3)};g.getRemove=function(){return m(this,bY,4)};g.getAddMask=function(){return m(this,gH,5)};g.getRemoveMask=function(){return m(this,gH,6)};g.toObject=function(){return Wmc(void 0,this)};
var Wmc=function(a,b){if(null!=b){var c={author:qJ(a,b.getAuthor()),timestamp:Nu(a,b.getTimestamp()),add:d4b(a,b.getAdd()),remove:d4b(a,b.getRemove()),addMask:hH(a,b.getAddMask()),removeMask:hH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var m6=function(a){Z.call(this,a,-1,Xmc)};V(m6,Z);m6.prototype.getUpdatesList=function(){return xb(this,Vmc,1)};var Xmc=[1];m6.prototype.toObject=function(){var a=null!=this?{updatesList:Hb(this.getUpdatesList(),Wmc)}:void 0;return a};m6.messageId="b.SloHistory";
var n6=function(a,b){this.executor=b;this.sloHistories=a.get("slo_histories-second-level-cache")||a.create("slo_histories-second-level-cache",{capacity:25})};n6.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:m6}))};n6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};n6.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};
n6.\u0275fac=function(a){return new (a||n6)(t(PK),t(qI))};n6.\u0275prov=lc({token:n6,factory:n6.\u0275fac,providedIn:"root"});
var o6=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra){yI.call(this);var Fa=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=E;this.sloApi=I;this.sloUpdatesApi=N;this.sloUpdatesService=L;this.errorHandler=T;this.matDialogService=Y;this.analytics=ja;this.confirmationDialogService=ha;this.appEvents=ra;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(Fa.validity).some(function(Ka){return!Ka})};this.editableAccessPolicy=uT();this.flattenedAccessPolicy=uT();this.subscriptions.add(LY(u,function(){return Fa.hasUnsavedChanges()},!1));a=this.routeParams.sloId;this.resourceName=Dn("SLO",Ki(a));if(this.sloEnabled=k.isInternalSession())this.pageTitle.setTitle("SLO Overview"),Ymc(this,a),this.loadUserAccess_(a),
this.loadAccessPolicy_(a),Zmc(this,a);this.alertState={getValue:function(){return Fa.editableCopy?1===X(Fa.editableCopy,9,0):!1},getSavedValue:function(){return Fa.slo?1===X(Fa.slo,9,0):!1},setValue:function(Ka){Fa.editableCopy&&l(Fa.editableCopy,9,Ka?1:0)}};this.currentUserEmail=k.getUserEmail()};V(o6,yI);o6.\u0275dir=yI.\u0275dir;
o6.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)};o6.prototype.ngOnInit=function(){"access"===this.bLocation.hash()&&(this.selectedTabIndex=1)};o6.prototype.updateCollection=function(a){this.editableCopy&&Fb(this.editableCopy,6,a)};
var Ymc=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;Os(a.slo)||Fb(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})};
o6.prototype.loadAccessPolicy_=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=vT(c);b.editableAccessPolicy=Fi(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var $mc=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.getUpdatesList().map(function(d){return o7b(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=o6.prototype;
g.loadUserAccess_=function(a){var b=this;gK(this.userAccess,"admin",Dn("SLO",Ki(a))).then(function(c){b.isAdmin_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){var a=this.slo,b=this.editableCopy;return!(a==b||a&&b&&a instanceof b.constructor&&Daa(a.toArrayInternal(),b.toArrayInternal()))};
g.hasUnsavedAccessPolicyChanges=function(){return!Ei(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;anc(Os(this.slo),Os(this.editableCopy))?bnc(this):this.confirmationDialogService.open({title:"Save SLO changes?",content:Ln(In("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."),Kn("br"),Kn("br"),In("Please combine changes into as few updates as possible.")),onConfirm:function(){bnc(a)},onDismiss:kC})};
var r2a=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.setIsArchived(b);bnc(a)};b?a.confirmationDialogService.open({title:"Archive SLO?",content:In("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:kC}):c()}},anc=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=m(d,km,3),e=m(e,km,
3),f=null===d&&null===e||null!==d&&null!==e&&d.getSeconds()===e.getSeconds();if(!f)return!1}return!0},bnc=function(a){var b=a.editableCopy;tK(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.';anc(Os(a.slo),Os(a.editableCopy))||(d+=" Propagating this change may take several hours.");tK(a.butterBar,d);a.slo=c;Os(a.slo)||Fb(a.slo,6,[]);a.editableCopy=c.clone();a.sloUpdatesApi.invalidateCache(a.slo.getSloId());
Zn(a.analytics,ao.EDIT_SLO,"update")}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating_=!1})};
o6.prototype.saveAccessPolicy=function(){var a=this;cnc(this)?this.confirmationDialogService.open({title:"Change SLO admins",content:In("You are about to change the administrator privileges for this SLO. Make sure your changes are correct -- if you revoke your own privileges, you will not be able to undo this action or perform further edits. Do you want to proceed?"),onConfirm:function(){a.doSaveAccessPolicy_()},onDismiss:kC}):this.doSaveAccessPolicy_()};
o6.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=wT(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);uK(this.butterBar,b);return}this.isUpdating_=!0;tK(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.getSloId(),b).then(function(c){tK(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=vT(c);a.editableAccessPolicy=Fi(a.flattenedAccessPolicy);a.loadUserAccess_(a.slo.getSloId());Zn(a.analytics,
ao.EDIT_SLO,"updateAccessPolicy")},function(c){uK(a.butterBar,$m(c),0)}).finally(function(){a.isUpdating_=!1})};
var Zmc=function(a,b){$mc(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"===Rl(c.author)&&(a.isImportedFromBugScope=!0);d.author&&"buganizer-system@google.com"===Rl(d.author)&&(a.isUneditedFromBugScope=!0)}})},cnc=function(a){if(Ei(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=o6.prototype;g.revertMetadataChanges=function(){var a=this;if(anc(Os(this.slo),Os(this.editableCopy))){var b;this.editableCopy=null==(b=this.slo)?void 0:b.clone()}else this.confirmationDialogService.open({title:"Revert SLO changes?",content:Ln(In("Revert all changes to this SLO?")),onConfirm:function(){var c;a.editableCopy=null==(c=a.slo)?void 0:c.clone()},onDismiss:kC})};
g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Fi(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating_};g.back=function(){A_(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdmin_};
g.showUpdateHistoryModal=function(){var a=this;$mc(this,this.slo.getSloId()).then(function(){a.matDialogService.open(d5,{width:"600px",data:{updateDiffs:a.historyDiffs}});Zn(a.analytics,ao.UPDATE_HISTORY_MODAL,"open");Zn(a.analytics,ao.EDIT_SLO,"viewHistory")})};o6.\u0275fac=function(a){return new (a||o6)(C(IR),C(tT),C(FK),C(GK),C(z_),C(sK),C(WN),C(yH),C(dP),C(KY),C(fK),C(EL),C(eY),C(n6),C(s_),C(xK),C(PB),C(FM),C(PM),C(BK))};
o6.\u0275cmp=w({type:o6,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&Hf(NW,5,wd);if(a&2){var c;Gf(c=Jf())&&(b.tabs=c)}},features:[ie],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&&(F(0,"div",0)(1,"div",1)(2,"b-button",2),J("onAction",function(){return b.back()}),H(3,"b-icon",3),G()()(),F(4,"div",4),O(5,o2a,2,0,"div",5),O(6,w2a,55,31,"div",6),G());a&2&&(B(5),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&b.slo&&b.slo.getSloId()&&b.editableCopy))},dependencies:[hO,ux,iy,Qg,by,cy,sy,hy,fy,QY,BH,PW,NW,HY,fQ,l_,aN],encapsulation:2});
var p6=function(){this.issue=null;this.isDataLoaded=!1};p6.prototype.ngOnChanges=function(){var a;this.assignee=iua(Rl(null==(a=this.issue)?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=null!==this.issue};p6.\u0275fac=function(a){return new (a||p6)};
p6.\u0275cmp=w({type:p6,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Jc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1,x2a,2,2,"b-person-hovercard",1),O(2,y2a,1,0,"ng-template",null,2,Pf),G());if(a&2){var c=M(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.assignee)("ngIfElse",c)}},dependencies:[e2,ux,jR],encapsulation:2,changeDetection:0});
var q6=function(){this.isDataLoaded=!1};q6.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};q6.\u0275fac=function(a){return new (a||q6)};
q6.\u0275cmp=w({type:q6,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue"},features:[Jc],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&&(F(0,"b-async-data-placeholder",0),O(1,z2a,1,1,"b-formatted-date-time",1),G(),O(2,A2a,1,0,"ng-template",null,2,Pf));if(a&2){var c=M(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.createdTime)("ngIfElse",c)}},dependencies:[e2,
ux,vP],encapsulation:2,changeDetection:0});
var r6=function(){};r6.prototype.ngOnInit=function(){};r6.\u0275fac=function(a){return new (a||r6)};r6.\u0275cmp=w({type:r6,selectors:[["b-issue-id-cell"]],inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),P(1),G());a&2&&(D("isReady",!!b.id),B(1),Je(" ",b.id," "))},dependencies:[e2],encapsulation:2,changeDetection:0});
var s6=function(){this.issue=null;this.isDataLoaded=!1};s6.prototype.ngOnChanges=function(){var a;this.reporter=iua(Rl(null==(a=this.issue)?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=null!==this.issue};s6.\u0275fac=function(a){return new (a||s6)};
s6.\u0275cmp=w({type:s6,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Jc],decls:4,vars:3,consts:[[3,"isReady"],[3,"email",4,"ngIf","ngIfElse"],["noData",""],[3,"email"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1,B2a,2,2,"b-person-hovercard",1),O(2,C2a,1,0,"ng-template",null,2,Pf),G());if(a&2){var c=M(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.reporter)("ngIfElse",c)}},dependencies:[e2,ux,jR],encapsulation:2,changeDetection:0});
var t6=function(){this.IssueStatus_strToTag=Yl;this.STATUS_FULL_TEXT=uL;this.STATUS_TERSE=qL;this.issue=null;this.isDataLoaded=!1};t6.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};t6.\u0275fac=function(a){return new (a||t6)};
t6.\u0275cmp=w({type:t6,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue"},features:[Jc],decls:4,vars:3,consts:[[3,"isReady"],[3,"class","title",4,"ngIf","ngIfElse"],["noData",""],[3,"title"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1,D2a,2,5,"div",1),O(2,E2a,1,0,"ng-template",null,2,Pf),G());if(a&2){var c=M(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.IssueStatus_strToTag[b.status])("ngIfElse",c)}},dependencies:[e2,ux],encapsulation:2,changeDetection:0});
var u6=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};u6.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};u6.\u0275fac=function(a){return new (a||u6)};
u6.\u0275cmp=w({type:u6,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Jc],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&&(F(0,"b-async-data-placeholder",0),O(1,F2a,1,3,"b-team-display",1),O(2,G2a,1,0,"ng-template",null,2,Pf),G());if(a&2){var c=M(3);D("isReady",b.isDataLoaded);
B(1);D("ngIf",b.teamId)("ngIfElse",c)}},dependencies:[e2,ux,VU],encapsulation:2,changeDetection:0});
var v6=function(){this.issue=null;this.title="";this.isDataLoaded=!1;this.link={path:""}};v6.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=fn(null!=(d=null==(c=this.issue)?void 0:c.issueId)?d:"")};v6.\u0275fac=function(a){return new (a||v6)};
v6.\u0275cmp=w({type:v6,selectors:[["b-issue-title-cell"]],hostAttrs:[1,"flex-kids-x"],inputs:{issue:"issue"},features:[Jc],decls:3,vars:3,consts:[[1,"title","title-location",3,"isReady"],[1,"hover-link","line-clamp-3",3,"routerLinkObj","keydown","click"]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0)(1,"a",1),J("keydown",function(c){"Enter"===c.key&&c.stopPropagation()})("click",function(c){return c.stopPropagation()}),P(2),G()());a&2&&(D("isReady",b.isDataLoaded),B(1),D("routerLinkObj",
b.link),B(1),Ke(b.title||"--"))},dependencies:[e2,ZS],styles:[".title[_ngcontent-%COMP%] {\n      margin-left: 4px\n      padding: 7px 0 6px 0;\n    }\n    a[_ngcontent-%COMP%] {\n      color: inherit;\n    }"],changeDetection:0});
var w6=function(){this.type=this.issue=null;this.isDataLoaded=!1};w6.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};w6.\u0275fac=function(a){return new (a||w6)};
w6.\u0275cmp=w({type:w6,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Jc],decls:4,vars:3,consts:[[1,"nowrap",3,"isReady"],[4,"ngIf","ngIfElse"],["noData",""]],template:function(a,b){a&1&&(F(0,"b-async-data-placeholder",0),O(1,H2a,3,3,"ng-container",1),O(2,I2a,1,0,"ng-template",null,2,Pf),G());if(a&2){var c=M(3);D("isReady",b.isDataLoaded);B(1);D("ngIf",b.type)("ngIfElse",c)}},dependencies:[e2,ux,mM],encapsulation:2,changeDetection:0});
var dnc=function(a,b){fA.call(this,a);this.directives=a;this.isEqual=b};V(dnc,fA);var Ps=function(a,b){var c;return hf(function(d){if(1==d.nextAddress)return jf(d,(0,U.firstValueFrom)(a.directives.changes.pipe(hg(a.directives.toArray()),S(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),xf(Boolean),zf(3E3))),2);c=d.yieldResult;bA(a,c);kf(d)})};
var x6=function(a,b){this.elementRef=a;this.interactivityHelper=b};x6.prototype.ngOnInit=function(){};x6.prototype.focus=function(){var a=V5b(this.interactivityHelper,this.elementRef.nativeElement,!0);a&&a.focus()};ji.Object.defineProperties(x6.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});x6.\u0275fac=function(a){return new (a||x6)(C(wd),C(EZ))};x6.\u0275dir=w({type:x6,selectors:[["tr","row",""]],inputs:{row:"row"}});
var enc=Ch("indicator",[Fh("active-asc, asc",Eh({transform:"translateY(0px)"})),Fh("active-desc, desc",Eh({transform:"translateY(10px)"})),Gh("active-asc <=> active-desc",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),fnc=Ch("leftPointer",[Fh("active-asc, asc",Eh({transform:"rotate(-45deg)"})),Fh("active-desc, desc",Eh({transform:"rotate(45deg)"})),Gh("active-asc <=> active-desc",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),gnc=Ch("rightPointer",[Fh("active-asc, asc",Eh({transform:"rotate(45deg)"})),Fh("active-desc, desc",
Eh({transform:"rotate(-45deg)"})),Gh("active-asc <=> active-desc",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),hnc=Ch("arrowOpacity",[Fh("desc-to-active, asc-to-active, active",Eh({opacity:1})),Fh("desc-to-hint, asc-to-hint, hint",Eh({opacity:.54})),Fh("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Eh({opacity:0})),Gh("* => asc, * => desc, * => active, * => hint, * => void",Dh("0ms")),Gh("* <=> *",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),inc=Ch("arrowPosition",[Gh("* => desc-to-hint, * => desc-to-active",
Dh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Eh({transform:"translateY(-25%)"}),Eh({transform:"translateY(0)"})]})),Gh("* => hint-to-desc, * => active-to-desc",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Eh({transform:"translateY(0)"}),Eh({transform:"translateY(25%)"})]})),Gh("* => asc-to-hint, * => asc-to-active",Dh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Eh({transform:"translateY(25%)"}),Eh({transform:"translateY(0)"})]})),Gh("* => hint-to-asc, * => active-to-asc",
Dh("225ms cubic-bezier(0.4,0.0,0.2,1)",{type:5,steps:[Eh({transform:"translateY(0)"}),Eh({transform:"translateY(-25%)"})]})),Fh("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Eh({transform:"translateY(0)"})),Fh("hint-to-desc, active-to-desc, desc",Eh({transform:"translateY(-25%)"})),Fh("hint-to-asc, active-to-asc, asc",Eh({transform:"translateY(25%)"}))]),jnc=Ch("allowChildren",[Gh("* <=> *",[Ih("@*",Hh())])]);
var y6=function(){this.changes=new U.Subject};y6.\u0275fac=function(a){return new (a||y6)};y6.\u0275prov=lc({token:y6,factory:y6.\u0275fac,providedIn:"root"});var knc={provide:y6,deps:[[new Fv,new Gv,y6]],useFactory:function(a){return a||new y6}};
var lnc=new sd("MAT_SORT_DEFAULT_OPTIONS"),mnc=Uka(mi(function(){})),z6=function(a){var b=mnc.call(this)||this;b._defaultOptions=a;b.sortables=new Map;b._stateChanges=new U.Subject;b.start="asc";b._direction="";b.sortChange=new Jw;return b};V(z6,mnc);g=z6.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()};ji.Object.defineProperties(z6.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=bh(a)}}});z6.\u0275fac=function(a){return new (a||z6)(C(lnc,8))};
z6.\u0275dir=w({type:z6,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:[ie,Jc]});
var nnc=mi(function(){}),A6=function(a,b,c,d,e,f,h,k){var q=nnc.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};V(A6,nnc);g=A6.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)||Zpb(b,this._sortButton,this._sortActionDescription);var c;null==(c=this._ariaDescriber)||Ypb(c,this._sortButton,a)}this._sortActionDescription=a};
g._handleStateChanges=function(){var a=this;this._rerenderSubscription=(0,U.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()})};ji.Object.defineProperties(A6.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=bh(a)}}});
A6.\u0275fac=function(a){return new (a||A6)(C(y6),C(nx),C(z6,8),C("MAT_SORT_HEADER_COLUMN_DEF",8),C(Hz),C(wd),C(Rz,8),C(lnc,8))};
A6.\u0275cmp=w({type:A6,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&J("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&&(oe("aria-sort",b._getAriaSortAttribute()),te("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:[ie],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&&(Ee(),F(0,"div",0)(1,"div",1),Fe(2),G(),O(3,J2a,6,6,"div",2),G());a&2&&(te("mat-sort-header-sorted",b._isSorted())("mat-sort-header-position-before","before"===b.arrowPosition),oe("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),D("ngIf",b._renderArrow()))},dependencies:[ux],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:[enc,fnc,gnc,hnc,inc,jnc]},changeDetection:0});
var onc="focus-indicator title type team id assignee status menu".split(" "),B6=function(a,b,c){yI.call(this);var d=this;this.issueFridge=a;this.router=b;this.domSafe=c;this.issueIds$=new U.BehaviorSubject([]);this.menuItemFactory=function(){return[]};this.tableColumns=onc.slice();this.activeSort$=new U.BehaviorSubject(void 0);this.rows$=this.issueIds$.pipe(Jk(),S(function(e){return e.map(function(f){return{id:f,issue$:d.issueFridge.watch(f)}})}),ig(function(e){return(0,U.combineLatest)([d.activeSort$].concat(v(e.map(function(f){return f.issue$.pipe(hg(null))})))).pipe(S(function(f){var h=
r(f);f=h.next().value;h=wf(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:pnc(d,e,f)}))}),fg({refCount:!0,bufferSize:1}));this.trackBy=function(e,f){return f.id};this.correctedDisplayedRows=new Kf;this.getIssue=function(e){return Ik(e.issue$)}};V(B6,yI);B6.\u0275dir=yI.\u0275dir;g=B6.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(v(this.menuItemFactory(a)))};g.ngOnInit=function(){this.initialSort&&this.initialSort.direction&&this.activeSort$.next(this.initialSort)};
g.ngAfterViewInit=function(){var a=this;(0,U.combineLatest)([this.rows$,this.displayedRows.changes.pipe(hg(void 0))]).pipe(jg(this.destroyed$)).subscribe(function(b){b=r(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);Ff(a.correctedDisplayedRows)});this.focusManager=aA(new dnc(this.correctedDisplayedRows,f3a))};
g.navigateToIssue=function(a,b){!b||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(b=cn(b),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?gP(this.domSafe,b):Ys(this.router,b))};g.onRowKeydown=function(a,b){this.focusManager.onKeydown(b)};
var pnc=function(a,b,c){if(!c||!c.direction)return b;switch(c.active){case "status":return qta(a.getIssue)(b,c.direction);case "assignee":return rta(a.getIssue)(b,c.direction);case "reporter":return tta(a.getIssue)(b,c.direction);case "type":return sta(a.getIssue)(b,c.direction);case "createdTime":return uta(a.getIssue)(b,c.direction);default:return b}};ji.Object.defineProperties(B6.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(null!=a?a:[])}}});
B6.\u0275fac=function(a){return new (a||B6)(C(hL),C(Gk),C(fP))};
B6.\u0275cmp=w({type:B6,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&Hf(x6,5);if(a&2){var c;Gf(c=Jf())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",tableColumns:"tableColumns"},features:[ie],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&&(F(0,"table",0),J("matSortChange",function(e){b.activeSort$.next(e)}),Q(1,"async"),Q(2,"async"),ze(3,1),O(4,
K2a,1,0,"th",2),O(5,L2a,1,0,"td",3),Ae(),ze(6,4),O(7,M2a,2,0,"th",2),O(8,N2a,2,1,"td",5),Ae(),ze(9,6),O(10,O2a,2,0,"th",2),O(11,P2a,3,3,"td",5),Ae(),ze(12,7),O(13,Q2a,2,0,"th",8),O(14,R2a,3,3,"td",5),Ae(),ze(15,9),O(16,S2a,2,0,"th",10),O(17,T2a,3,3,"td",5),Ae(),ze(18,11),O(19,U2a,2,0,"th",12),O(20,V2a,3,3,"td",5),Ae(),ze(21,13),O(22,W2a,2,0,"th",14),O(23,X2a,3,3,"td",5),Ae(),ze(24,15),O(25,Y2a,2,0,"th",2),O(26,Z2a,3,3,"td",5),Ae(),ze(27,16),O(28,$2a,2,0,"th",17),O(29,a3a,3,3,"td",5),Ae(),ze(30,18),
O(31,b3a,1,0,"th",2),O(32,c3a,2,1,"td",5),Ae(),O(33,d3a,1,0,"tr",19),O(34,e3a,1,1,"tr",20),G());if(a&2){var c,d;D("dataSource",b.rows$)("trackBy",b.trackBy)("matSortActive",null!==(c=null==(c=R(1,6,b.activeSort$))?null:c.active)&&void 0!==c?c:"")("matSortDirection",null!==(d=null==(d=R(2,8,b.activeSort$))?null:d.direction)&&void 0!==d?d:"");B(33);D("matHeaderRowDef",b.tableColumns);B(1);D("matRowDefColumns",b.tableColumns)}},dependencies:[z6,A6,n4,f4,j4,g4,e4,k4,h4,i4,l4,m4,wZ,WO,p6,s6,r6,t6,u6,v6,
w6,q6,x6,Fx],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 C6=function(a,b,c,d){yI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.TEA_DARK=ckc;this.TEA_LIGHT=bkc;this.getStatus=function(f){return f.snapshot[0].status};this.STATUS_FULL_TEXT=uL;this.STATUS_TERSE=qL;this.IssueStatus_strToTag=Yl;this.id$=Hk(this.bestRoute.paramMap.pipe(S(function(f){return Yk(f.get("issueId"))}),xf(cl),jg(this.destroyed$)));this.searchUrl$=this.id$.pipe(S(function(f){return{path:"/issues",params:{q:"blockedbyid:"+f}}}));this.issue$=
this.id$.pipe(ig(this.issues.watch));this.blockingIds$=this.issue$.pipe(S(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].blockingIssueId)?h:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(ig(this.issues.watchSet));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(S(function(f){return f.filter(wn)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(S(function(f){return f.map(function(h){return String(h.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(S(function(f){return f.filter(function(h){if(null==
h?0:h.isArchived)var k=!1;else{var q;h=null==h?void 0:null==(k=h.snapshot)?void 0:null==(q=k[0])?void 0:q.status;if(null==h||null==vn[h])k=!1;else{var u;k=!(null==(u=vn[h])?0:u.open)}}return k})}));this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(S(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&&iL(e.issues,2,
1,String(h),[String(f)]).catch(e.gotErr)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(f){var h=e.id$.value;null!=h&&(f=f.map(String),iL(e.issues,1,1,String(h),f).catch(e.gotErr))};this.gotErr=function(f){e.snackBar.open($m(f)||"Error with network request","close",{panelClass:"error"})}};V(C6,yI);C6.\u0275dir=yI.\u0275dir;var g3a=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0},a.didChooseBlocking)};
ji.Object.defineProperties(C6.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});C6.\u0275fac=function(a){return new (a||C6)(C(mk),C(hL),C(uX),C(pK))};
C6.\u0275cmp=w({type:C6,selectors:[["ng-component"]],features:[ie],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&&(F(0,"section",0),O(1,u3a,4,2,"ng-container",1),Q(2,"async"),G(),O(3,v3a,2,0,"aside",2),Q(4,"async"));a&2&&(B(1),D("ngIf",R(2,2,b.blockingIds$)),B(2),D("ngIf",R(4,4,b.thinking$)))},dependencies:[yx,ux,KI,rB,sB,lF,aN,B6,Fx],styles:["[_nghost-%COMP%]{display:block;padding:8px}.b-chip[_ngcontent-%COMP%]{margin:-3px 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 8px 8px 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 D6=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.expansionChange=new Jw;this.title=""};D6.prototype.ngOnChanges=function(){var a,b;this.title=(null==(a=this.issue)?void 0:null==(b=a.snapshot[0])?void 0:b.title)||""};D6.\u0275fac=function(a){return new (a||D6)};
D6.\u0275cmp=w({type:D6,selectors:[["b-expandable-issue-title-cell"]],inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level"},outputs:{expansionChange:"expansionChange"},features:[Jc],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&&(F(0,"div",0),O(1,w3a,2,3,"button",1),O(2,x3a,1,0,"div",2),H(3,"b-issue-title-cell",3),G());a&2&&(se("margin-left",24*b.level,"px"),B(1),D("ngIf",b.expandable),B(1),D("ngIf",!b.expandable),B(1),D("issue",b.issue))},dependencies:[ux,BH,rB,v6],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 qnc=["theInput"],E6=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new Jw;this.commit=new Jw};E6.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};E6.\u0275fac=function(a){return new (a||E6)};
E6.\u0275cmp=w({type:E6,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&Hf(qnc,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"input",0,1),J("keydown.enter",function(c){b.readonly||b.commit.emit(c)})("ngModelChange",
function(c){return b.valueChange.emit(c)}),G());a&2&&(te("readonly",b.readonly)("override",b.readonly),D("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Qg,by,hy],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 rnc=[D6,p6,s6,r6,t6,u6,v6,w6,E6,q6],F6=function(){};[].concat(v(rnc));[].concat(v(rnc));F6.\u0275fac=function(a){return new (a||F6)};F6.\u0275mod=Cc({type:F6});F6.\u0275inj=mc({imports:[i2,Mx,wy,dI,oX,uG,lS,zM,PP,WU,$S]});
var G6=function(){};G6.\u0275fac=function(a){return new (a||G6)};G6.\u0275mod=Cc({type:G6});G6.\u0275inj=mc({providers:[knc],imports:[Mx,XA]});
var H6=function(){};H6.\u0275fac=function(a){return new (a||H6)};H6.\u0275mod=Cc({type:H6});H6.\u0275inj=mc({imports:[Qz,Dz,cz,Mx,wy,uG,pF,G6,q4,UW,mH,xy,QI,zZ,i2,iO,XO,MN,F6]});
var I6=function(){};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275mod=Cc({type:I6});I6.\u0275inj=mc({imports:[cz,Dz,wy,xy,QI,uG,UW,mH,pF,qX,ON,XO,oX,MN,H6]});
var J6=function(a,b,c,d){this.issueFridge=a;this.relationshipsFridge=b;this.issuePicker=c;this.butterBar=d;this.issueDetailsRoute=fn;this.parentIds$=new U.ReplaySubject(1);this.parents$=this.parentIds$.pipe(ig(this.issueFridge.watchSet));this.isThinking$=new U.BehaviorSubject(!1);this.parentNames$=this.parents$.pipe(S(D3a));this.parentIdAndNames$=(0,U.combineLatest)([this.parentIds$,this.parentNames$])},tnc=function(a){!0!==a.isThinking$.getValue()&&null!=a.issueId&&a.issuePicker.open({title:"Add Parent to b/"+
a.issueId,allowMultipleIds:!1},function(b){snc(a,a.issueId,b)})},snc=function(a,b,c){var d=r(c).next().value,e,f,h,k;hf(function(q){if(1==q.nextAddress){e=d;if(null==e)return q.return();a.isThinking$.next(!0);return jf(q,a.relationshipsFridge.assignParentToOneIssue(e,b),2)}if(3!=q.nextAddress)return f=q.yieldResult,h=f.errors,(null==(k=h)?0:k.length)?(uK(a.butterBar,"Could not add parent"),q.jumpTo(3)):jf(q,a.issueFridge.poke(b),3);a.isThinking$.next(!1);kf(q)})};
ji.Object.defineProperties(J6.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:[])}}}});J6.\u0275fac=function(a){return new (a||J6)(C(hL),C(SL),C(uX),C(sK))};
J6.\u0275cmp=w({type:J6,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&&(O(0,B3a,3,2,"section",0),Q(1,"async"),F(2,"button",1),J("click",function(){return tnc(b)}),Q(3,"async"),P(4," Add parent "),H(5,"b-spinner",2),G(),O(6,C3a,2,0,"ng-template",null,3,Pf));if(a&2){var c=M(7);D("ngIf",R(1,4,b.parentIdAndNames$))("ngIfElse",
c);B(2);te("thinking",R(3,6,b.isThinking$))}},dependencies:[yx,ux,KI,nX,dN,eN,hN,fN,rB,aN,Fx],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 unc="focus-indicator title type team id assignee status menu".split(" "),vnc="focus-indicator drag-handle title type id assignee status menu".split(" ");
var K6=function(a,b,c,d){yI.call(this);var e=this;this.issueFridge=a;this.butterBar=b;this.analytics=c;this.refreshMonitor=d;this.blockerIssueIds$=new U.BehaviorSubject([]);this.tableColumns=unc;this.initialSort={active:"status",direction:"asc"};this.getMenuItems=function(f){return[{type:"action",label:"Remove blocker",action:function(){wnc(e,f)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var f=r(e.blockerIssueIds$.value),
h=f.next();!h.done;h=f.next())e.issueFridge.poke(h.value)}))};V(K6,yI);K6.\u0275dir=yI.\u0275dir;K6.prototype.ngOnInit=function(){};var wnc=function(a,b){var c;hf(function(d){if(1==d.nextAddress){Zn(a.analytics,ao.EDIT_ISSUE,"update","remove-blocker");It(d,2);var e=iL(a.issueFridge,2,2,a.issueId,[b]);return jf(d,e,4)}if(2!=d.nextAddress)return Jt(d,0);c=Kt(d);uK(a.butterBar,"Could not remove blocker "+b+". "+(Zm(c)?$m(c):c));kf(d)})};
ji.Object.defineProperties(K6.prototype,{blockerIds:{configurable:!0,enumerable:!0,set:function(a){this.blockerIssueIds$.next(null!=a?a:[])}}});K6.\u0275fac=function(a){return new (a||K6)(C(hL),C(sK),C(FM),C(dL))};
K6.\u0275cmp=w({type:K6,selectors:[["b-blockers-table"]],inputs:{blockerIds:"blockerIds",issueId:"issueId"},features:[ie],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","tableColumns","menuItemFactory","initialSort"]],template:function(a,b){a&1&&(O(0,E3a,2,4,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.blockerIssueIds$))},dependencies:[ux,B6,Fx],encapsulation:2,changeDetection:0});
var L6=function(){this.EMPTY_BLOCKER_LIGHT=Xjc;this.EMPTY_BLOCKER_DARK=Yjc;this.EMPTY_CHILD_LIGHT=Zjc;this.EMPTY_CHILD_DARK=$jc};L6.\u0275fac=function(a){return new (a||L6)};
L6.\u0275cmp=w({type:L6,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","http://go/wtdm-home#parent-child-relationship","target","_blank",1,"nowrap"],["mat-dialog-actions",""],["mat-flat-button",
"","color","primary","matDialogClose","","cdkFocusInitial","",1,"gmat-button"]],template:function(a,b){a&1&&(F(0,"h1",0),P(1,"About Dependencies"),G(),F(2,"div",1)(3,"div",2),H(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),G(),F(8,"article")(9,"p",5),P(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. "),F(11,"a",6),P(12,"Learn more"),G()()()(),F(13,"div",7)(14,"button",8),P(15,"Ok"),
G()());a&2&&(B(4),D("src",b.EMPTY_CHILD_LIGHT,Ud),B(1),D("src",b.EMPTY_BLOCKER_LIGHT,Ud),B(1),D("src",b.EMPTY_CHILD_DARK,Ud),B(1),D("src",b.EMPTY_BLOCKER_DARK,Ud))},dependencies:[rB,QB,RB,SB,TB],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 M6=function(a){this.pathToAncestor=a},Ss=function(a){return new M6(a.split(">"))},xnc=function(a,b){return new M6([].concat(v(a.pathToAncestor),[b]))};M6.prototype.hash=function(){return this.pathToAncestor.join(">")};M6.prototype.equals=function(a){return!!a&&Ei(this.pathToAncestor,a.pathToAncestor)};var ync=function(a,b){a=r(a.pathToAncestor.entries());for(var c=a.next();!c.done;c=a.next()){c=r(c.value);var d=c.next().value;if(c.next().value!==b.pathToAncestor[d])return!1}return!0};
M6.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};M6.prototype.some=function(a){return this.pathToAncestor.some(a)};M6.prototype.toString=function(){return this.hash()};
ji.Object.defineProperties(M6.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 M6(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});
var N6=function(){var a=this;this.draftRows=new Map;this.changed$=new U.Subject;this.counter=0;this.createId=function(){return String(a.counter++)}};N6.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:xnc(a,d),level:a.size-1,issue$:(0,U.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};
N6.prototype.get=function(a){var b;return null!=(b=this.draftRows.get(a.hash()))?b:[]};N6.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=r(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 znc=function(a,b){return hf(function(c){return c.return((0,U.firstValueFrom)(a.changed$.pipe(hg(a.draftRows),S(function(d){return![].concat(v(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),xf(Boolean),S(function(){}))))})};N6.prototype.isSaving=function(){return[].concat(v(this.draftRows.values())).flat().some(function(a){return a.saving})};N6.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(v(c),[b]));this.changed$.next(this.draftRows)};
var Anc={defaultExpandedChildren:0,defaultExpansionLevel:0,maxExpansion:Infinity},Bnc=function(){var a={defaultExpansionLevel:3,defaultExpandedChildren:10,maxExpansion:500};this.config=a=void 0===a?Anc:a;this.expansionState={};this.changed$=new U.ReplaySubject(1)},Cnc=function(a,b){b=b.hash();return a.expansionState[b]},O6=function(a,b,c){b=b.hash();void 0===c?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},Dnc=function(a,b,c){var d=!1;c=r(c);for(var e=c.next();!e.done;e=
c.next()){e=e.value;var f=xnc(b,e.nodeId);e.size<=a.config.defaultExpansionLevel&&void 0===Cnc(a,e)&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=r(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=r(k.value);var q=k.next().value;k=k.next().value;q=Ss(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new M6(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!Cnc(a,
b)){var u;a.expansionState[b.hash()]=null!=(u=a.config.defaultExpandedChildren)?u:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};
var P6=function(a,b,c,d,e){this.issueApi=a;this.activeSession=b;this.issueFridge=c;this.componentFridge=d;this.componentTemplatesFridge=e;this.currentUser=Vl(this.activeSession.getUserEmail())},Fnc=function(a,b){var c,d,e;return hf(function(f){if(1==f.nextAddress)return jf(f,Enc(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(Wsa(d,e))})},Hnc=function(a,b){var c;return hf(function(d){if(1==d.nextAddress)return jf(d,Gnc(a,b),2);c=d.yieldResult;return d.return({snapshot:[c],
issueId:0,userData:void 0,aggregatedData:void 0,accessLimit:void 0,visibleFields:[],majorModifiedTimeMicros:0,parentIssueIds:[],ancestors:new Map,childIssueCount:0,isArchived:!1,relatedLinks:[]})})},Inc=function(a,b,c){var d;return hf(function(e){if(1==e.nextAddress)return jf(e,Gnc(a,b),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
P6.prototype.create=function(a){var b=this,c,d;return hf(function(e){return 1==e.nextAddress?jf(e,b.issueApi.createIssue({snapshot:a}),2):3!=e.nextAddress?(c=e.yieldResult,d=c.issueId,jf(e,b.issueFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var Gnc=function(a,b){var c,d,e,f,h;return hf(function(k){if(1==k.nextAddress)return jf(k,(0,U.firstValueFrom)(a.issueFridge.watch(b).pipe(xf(cl))),2);if(3!=k.nextAddress)return c=k.yieldResult,jf(k,Enc(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 u={};c.snapshot[0].priority&&
(u.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(u.severity=c.snapshot[0].severity);c.snapshot[0].type&&(u.type=c.snapshot[0].type)}else u={};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]},u,q,Jnc(e,f));return k.return(h)})},Jnc=function(a,b){var c=[],d,e,f={};a=r(null!=(e=null==(d=a.componentPathInfo)?
void 0:d.allCustomField)?e:[]);for(d=a.next();!d.done;f={$jscomp$loop$prop$customField$1740:f.$jscomp$loop$prop$customField$1740},d=a.next())if(f.$jscomp$loop$prop$customField$1740=d.value,f.$jscomp$loop$prop$customField$1740.required){e=void 0;d=null!=(e=f.$jscomp$loop$prop$customField$1740.typedDefaultValue)?e:new jl({customFieldId:f.$jscomp$loop$prop$customField$1740.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(u){return function(x){return x.customFieldId===
u.$jscomp$loop$prop$customField$1740.customFieldId}}(f)))?k:d;q&&c.push(Object.assign({},q))}return 0===c.length?{}:{customField:c}},Enc=function(a,b){var c,d,e,f,h,k;return hf(function(q){if(1==q.nextAddress)return jf(q,Promise.all([(0,U.firstValueFrom)(a.componentTemplatesFridge.defaultTemplate$(b)),(0,U.firstValueFrom)(a.componentFridge.watch(b).pipe(xf(cl)))]),2);c=q.yieldResult;d=r(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};
P6.\u0275fac=function(a){return new (a||P6)(t(bK),t(yH),t(hL),t(IJ),t(CK))};P6.\u0275prov=lc({token:P6,factory:P6.\u0275fac,providedIn:"root"});
var Mnc=function(a,b,c,d,e,f,h,k,q,u,x){var E=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=u;this.refreshMonitor=x;this.expansion=new Bnc;this.draftRows=new N6;this.refetchingAll$=new U.BehaviorSubject(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(ig(function(){E.refetchingAll$.next(!0);var I=Ik(E.rows$),N=[];if(!I)return Promise.resolve();
N.push(E.issueRelationshipsFridge.pokeMany({type:"descendants",ids:new Set([E.rootIssueId]),depth:3}));I=r(I);for(var L=I.next();!L.done;L=I.next())L=L.value,"data"===L.type&&N.push(E.issueFridge.poke(L.id)),1<L.level&&N.push(E.issueRelationshipsFridge.poke(L.id));return Promise.all(N).then(function(){E.refetchingAll$.next(!1)})}));this.rows$=(0,U.merge)(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,(0,U.scheduled)((0,U.of)({}),U.asapScheduler)).pipe(ig(function(){return lKb(E.issueRelationshipsFridge,
E.rootIssueId,3)}),ig(function(){for(var I=new Map,N=r(Object.entries(E.expansion.expansionState)),L=N.next();!L.done;L=N.next()){L=r(L.value);var T=L.next().value;L=L.next().value;T=Ss(T).nodeId;var Y=void 0;L=Math.max(L,null!=(Y=I.get(T))?Y:0);I.set(T,L)}return Knc(E,I)}),S(function(I){return Lnc(E,I)}),fg({refCount:!0,bufferSize:1}));this.rootIssue$=this.issueFridge.watch(this.rootIssueId).pipe(xf(cl));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new M6([this.rootIssueId]),
expandedCount:500,issue$:U.NEVER,hasChildren$:U.NEVER};this.supportsOneLineCreation=(0,U.firstValueFrom)(this.rootIssue$).then(function(I){return Mn(I.snapshot[0].componentId)}).then(function(I){return Fnc(E.issueCreationService,I)});this.isOneLineCreationSupported=function(){return E.supportsOneLineCreation}},Nnc=function(a,b,c){b=void 0===b?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k;hf(function(q){switch(q.nextAddress){case 1:return d=b.nodeId,jf(q,(0,U.firstValueFrom)(a.issueFridge.watch(d)),2);
case 2:return(e=q.yieldResult)?jf(q,a.supportsOneLineCreation,3):q.return();case 3:f=q.yieldResult;if(!f){q.jumpTo(4);break}return jf(q,Hnc(a.issueCreationService,d),5);case 5:return h=q.yieldResult,q.return(a.draftRows.create(b,h,c));case 4:var u=a.router,x=a.paths,E=x.createIssue,I=e.snapshot[0].componentId,N=e.issueId;var L=bn("issues/:issueId/dependencies",{id:a.rootIssueId,params:void 0});return jf(q,Ys(u,E.call(x,{component:I,parentIssueId:N,redirectUrl:L,afterIssueId:null==(k=c)?void 0:k.afterIssueId})),
6);case 6:return q.return()}})};
Mnc.prototype.addExistingChild=function(a){var b=this,c,d,e,f;hf(function(h){if(1==h.nextAddress)return jf(h,(0,U.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);b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0},function(k){return hf(function(q){if(1==q.nextAddress){if(0===k.length)return q.return();b.assignParentToIssues(f,k.map(String));Zn(b.analytics,ao.EDIT_ISSUE,"add","existing-child-issue");
return jf(q,Bo(),2)}a&&O6(b.expansion,a.ancestorChain,500);kf(q)})});kf(h)})};Mnc.prototype.saveDraft=function(a){var b=this,c;return hf(function(d){if(1==d.nextAddress){if(a.saving||!a.title)return d.return();a.saving=!0;return jf(d,Onc(b,a),2)}return(c=d.yieldResult)?d.return(Pnc(b,a,c)):d.return()})};
var Onc=function(a,b){var c,d,e,f;return hf(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,It(h,2),jf(h,Inc(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;Jt(h,3);break;case 2:return f=Kt(h),uK(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);dLb(a.analytics,"createIssue",q,"from-tree");Zn(a.analytics,
ao.CREATE_ISSUE,"createIssue","time-to-create-from-tree",q);CO(a.clearcut,k,"createIssue-fromTree")}O6(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var u=r(k.draftRows.values()),x=u.next();!x.done;x=u.next()){x=r(x.value);for(var E=x.next();!E.done;E=x.next())E=E.value,E.afterDraftId===b.id&&(E.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},Pnc=function(a,b,c){var d,e,f,h,k,q;return hf(function(u){if(1==u.nextAddress)return d=b.ancestorChain.parentNodeId,
f=null!=(e=b.afterIssueId)?e:b.afterDraftId,void 0===f||"-1"===f?u.jumpTo(2):jf(u,znc(a.draftRows,f),2);if(4!=u.nextAddress)return jf(u,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=u.yieldResult;k=h.errors;(null==(q=k)?0:q.length)&&uK(a.butterBar,"Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);kf(u)})},Knc=function(a,b,c){c=void 0===c?0:c;return(0,U.combineLatest)([a.rootIssueId].concat(v(b.keys())).map(function(d){return a.refetchingAll$.pipe(xf(function(e){return!e}),
ig(function(){return kKb(a.issueRelationshipsFridge,d)}))})).pipe(S(function(d){return d.filter(Boolean)}),ig(function(d){var e=new Map(d.map(function(f){return[f.issueId,f]}));if(1===c)return(0,U.of)(e);d=Qnc(a,e,c);d=new Map(d.map(function(f){return[f,10]}));return Knc(a,d,c+1).pipe(S(function(f){var h=new Map(e);f=r(f.entries());for(var k=f.next();!k.done;k=f.next()){var q=r(k.value);k=q.next().value;q=q.next().value;h.set(k,q)}return h}))}))},Qnc=function(a,b,c){var d=[];a=[{id:a.rootIssueId,
level:-1}];for(var e={};0<a.length;){e.$jscomp$loop$prop$current$1742=a.pop();e.$jscomp$loop$prop$current$1742.level===c&&d.push(e.$jscomp$loop$prop$current$1742.id);if(!(e.$jscomp$loop$prop$current$1742.level>c)){var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$current$1742.id))?void 0:f.relatedChildren)?h:[];a.push.apply(a,v(k.map(function(q){return function(u){return{id:u.targetIssueId,level:q.$jscomp$loop$prop$current$1742.level+1}}}(e))))}e={$jscomp$loop$prop$current$1742:e.$jscomp$loop$prop$current$1742}}return d},
Lnc=function(a,b){for(var c=[],d=[a.ROOT_ROW],e={};0<d.length;){e.$jscomp$loop$prop$parentRow$1744=d.pop();if("load-more-children"===e.$jscomp$loop$prop$parentRow$1744.type||"draft-issue"===e.$jscomp$loop$prop$parentRow$1744.type)c.push(e.$jscomp$loop$prop$parentRow$1744);else{e.$jscomp$loop$prop$parentRow$1744.id!==a.rootIssueId&&c.push(e.$jscomp$loop$prop$parentRow$1744);var f=void 0,h=void 0,k=null!=(h=null==(f=b.get(e.$jscomp$loop$prop$parentRow$1744.id))?void 0:f.relatedChildren)?h:[];f=k.slice(0,
e.$jscomp$loop$prop$parentRow$1744.expandedCount);e.$jscomp$loop$prop$childrenLevel$1745=e.$jscomp$loop$prop$parentRow$1744.level+1;e.$jscomp$loop$prop$parentRow$1744.expandedCount&&f.length<k.length&&(h=xnc(e.$jscomp$loop$prop$parentRow$1744.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.$jscomp$loop$prop$childrenLevel$1745,parentIssue$:e.$jscomp$loop$prop$parentRow$1744.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(u){var x=
xnc(q.$jscomp$loop$prop$parentRow$1744.ancestorChain,u.targetIssueId),E=u.targetIssueId,I=q.$jscomp$loop$prop$childrenLevel$1745,N=a.issueRelationshipsFridge.watch(u.targetIssueId).pipe(S(Jta));var L=q.$jscomp$loop$prop$childrenLevel$1745;var T=x.nodeId,Y=Cnc(a.expansion,x);if(void 0!==Y)L=Y;else if(1>L){var ja,ha;L=Math.min(10,null!=(ha=null==(ja=b.get(T))?void 0:ja.relatedChildren.length)?ha:0)}else L=0;return{type:"data",id:E,level:I,hasChildren$:N,ancestorChain:x,expandedCount:L,issue$:a.issueFridge.watch(u.targetIssueId)}}}(e));
d.push.apply(d,v(Rnc(a,k,e.$jscomp$loop$prop$parentRow$1744.ancestorChain).reverse()))}e={$jscomp$loop$prop$parentRow$1744:e.$jscomp$loop$prop$parentRow$1744,$jscomp$loop$prop$childrenLevel$1745:e.$jscomp$loop$prop$childrenLevel$1745}}return c},Rnc=function(a,b,c){var d=[].concat(v(b));c=a.draftRows.get(c);a={};c=r(c);for(var e=c.next();!e.done;a={$jscomp$loop$prop$draft$1748:a.$jscomp$loop$prop$draft$1748},e=c.next())a.$jscomp$loop$prop$draft$1748=e.value,b.some(function(f){return function(h){return h.id===
f.$jscomp$loop$prop$draft$1748.issueId}}(a))||(e=d.findIndex(function(f){return function(h){return h.id===f.$jscomp$loop$prop$draft$1748.afterDraftId||h.id===f.$jscomp$loop$prop$draft$1748.afterIssueId}}(a)),d.splice(-1===e?d.length:e+1,0,a.$jscomp$loop$prop$draft$1748));return d};
Mnc.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return hf(function(k){if(1==k.nextAddress)return 0===b.length?k.return():jf(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 uK(c.butterBar,"Could not add "+e+" as child of b/"+a+". "+(null==(h=f)?void 0:h.map(function(q){return $m(q)}))),k.return();kf(k)})};
var Q6=function(a,b,c,d,e,f,h,k,q,u){this.analytics=a;this.butterBar=b;this.issueFridge=c;this.issuePicker=d;this.issueRelationshipsFridge=e;this.paths=f;this.router=h;this.issueCreationService=k;this.clearcut=q;this.refreshMonitor=u};Q6.prototype.create=function(a){return new Mnc(a,this.analytics,this.butterBar,this.issueFridge,this.issuePicker,this.issueRelationshipsFridge,this.paths,this.router,this.issueCreationService,this.clearcut,this.refreshMonitor)};
Q6.\u0275fac=function(a){return new (a||Q6)(t(FM),t(sK),t(hL),t(uX),t(SL),t(GK),t(Gk),t(P6),t(BO),t(dL))};Q6.\u0275prov=lc({token:Q6,factory:Q6.\u0275fac,providedIn:"root"});
var R6=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new U.Subject;this.onRowsMoved$=new U.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=xrb(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;
f=G3a(k<=.25*f?"top":k>=.75*f?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var u=(k=null==(u=f.querySelector(".title-location"))?void 0:u.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;u=f.offsetLeft+u;k="after"===h?f.offsetTop+
f.offsetHeight:f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=u+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-u+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};Snc(e,f,h)}});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(){Tnc(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,Unc(e.rowSelectionModel),"mouse",4);Tnc(e)})})};
R6.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(Ts(c));Vnc(this.rowSelectionModel);Wnc(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=r(a);for(c=a.next();!c.done;c=a.next())c.value.element.classList.add("dragging")};
var Xnc=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)},Ync=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=r(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)}};
R6.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)}};
R6.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?Xnc(this,a):(b=c&&b.row.level<Rs(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
R6.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=null==(b=a.target)?void 0:b.closest("tr");if(c){var d=Ts(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":Xnc(this,b);break;case "ArrowRight":Ync(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
R6.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=Ts(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:F3a(d)})})}};
var Tnc=function(a){for(var b=r(a.rootElement.querySelectorAll("tr.dragging")),c=b.next();!c.done;c=b.next())c.value.classList.remove("dragging");b=r(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},Snc=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 Ts(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},Wnc=function(a){var b;
null==(b=a.updatingNoDropRows)||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(hg(null)).subscribe(function(){var c=a.rows.toArray(),d=new Set(a.rowSelectionModel.selectedRows.map(function(f){return f.nodeId}));c=r(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 S6=function(a){yI.call(this);var b=this;this.analytics=a;this.dragStarted$=new U.Subject;this.onRowsMoved$=new U.Subject;(0,U.merge)(this.dragStarted$,this.onRowsMoved$).pipe(Apa(),jg(this.destroyed$)).subscribe(function(c){var d=c[c.length-1].timestamp-c[0].timestamp;c=Fj(c.map(function(e){return e.event.origin}));c=1===c.length?c[0]:"mixed";Zn(b.analytics,ao.EDIT_ISSUE,"reorderChildren",c);dLb(b.analytics,"reorderChildren",d,c)})};V(S6,yI);S6.\u0275dir=yI.\u0275dir;
S6.\u0275fac=function(a){return new (a||S6)(t(FM))};S6.\u0275prov=lc({token:S6,factory:S6.\u0275fac,providedIn:"root"});
var T6=function(){this.changed$=new U.Subject;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};T6.prototype.init=function(a){this.visibleRows=a};T6.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var j4a=function(a,b){var c=b.hash(),d,e=null!=(d=a.isSelectedObservableMap.get(c))?d:a.changed$.pipe(hg(a.selectedRowHashes),S(function(f){return f.has(b.hash())}),Wf(),fg({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
T6.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};T6.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var Vnc=function(a){for(var b=a.visibleRows.toArray().map(function(k){return k.row.ancestorChain}),c=!1,d=r(a.selectedRowHashes.values()),e=d.next();!e.done;e=d.next()){e=Ss(e.value);for(var f=r(b),h=f.next();!h.done;h=f.next())h=h.value,ync(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},Unc=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(v(a.selectedRowHashes.values())).map(function(f){return Ss(f)}).map(function(f){return f.nodeId})),d=[];a=r(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};
ji.Object.defineProperties(T6.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(v(this.selectedRowHashes)).map(function(a){return Ss(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});
var Znc=function(){return["focus-indicator","load-more-children"]},$nc={type:"data",id:"",issue$:U.NEVER,hasChildren$:U.NEVER,ancestorChain:new M6([]),level:0,expandedCount:0},U6=function(a,b,c,d,e,f,h,k,q,u,x,E,I){yI.call(this);var N=this;this.issueRelationshipsFridge=a;this.router=b;this.butterBar=c;this.analytics=d;this.issueArchiveService=e;this.ngZone=f;this.elementRef=h;this.domSafe=q;this.reorderingSessionTracker=u;this.cdr=x;this.relationsTableModelFactory=E;this.liveAnnouncer=I;this.tableColumns=
vnc;this.trackBy=function(L,T){return T.ancestorChain.hash()+T.type};this.isLoadMoreRow=function(L,T){return"load-more-children"===T.type};this.isDataRow=function(L,T){return"data"===T.type};this.isDraftRow=function(L,T){return"draft-issue"===T.type};this.selectionModel=new T6;this.correctedDisplayedRows=new Kf;this.TITLE_FIXED_OFFSET_PX=42;this.rowDirectiveMap=new Map;this.getRowIndex=function(L){var T;return(null!=(T=Ik(N.rows$))?T:[]).findIndex(function(Y){return Qs(Y,L)})};this.showError=function(L){return function(T){uK(N.butterBar,
L+". "+(Zm(T)?$m(T):T))}};this.subscriptions.add(LY(k,function(){return N.tableModel.draftRows.isSaving()||N.issueRelationshipsFridge.isSaving()},!1))};V(U6,yI);U6.\u0275dir=yI.\u0275dir;
U6.prototype.ngOnInit=function(){var a=this;this.tableModel=this.relationsTableModelFactory.create(this.rootIssueId);this.rows$=(0,U.scheduled)([this.tableModel.rows$,(0,U.of)([$nc])],U.asyncScheduler).pipe(rf(1),fg({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(ig(function(c){return(0,U.combineLatest)(c.filter(function(d){return"data"===d.type}).map(function(d){return d.issue$}))}),Tf(0,U.asapScheduler));this.subscriptions.add(b.subscribe(function(){a.cdr.detectChanges()}));this.rowReorderingModel=
new R6(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?e4a(a,d):"data"===d.type&&(c=a.tableModel.expansion,d=d.ancestorChain,Cnc(c,d)||O6(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;return hf(function(e){if(1==e.nextAddress)return pKb(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")),Dnc(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),jf(e,(0,U.firstValueFrom)(a.correctedDisplayedRows.changes.pipe(S(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})}),xf(Boolean),zf(6E4))),2);d=e.yieldResult;
d.focus();kf(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
U6.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);(0,U.combineLatest)([this.rows$,this.displayedRows.changes]).pipe(jg(this.destroyed$)).subscribe(function(b){b=r(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);Ff(a.correctedDisplayedRows)});this.focusManager=aA(new dnc(this.correctedDisplayedRows,
Qs))};U6.prototype.toggleExpansion=function(a){O6(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};U6.prototype.navigateToIssue=function(a,b){!b.id||a.defaultPrevented||"mouseup"===a.type&&a instanceof MouseEvent&&1!==a.button||"A"===a.target.tagName||(Zn(this.analytics,ao.EDIT_ISSUE,"navigate","to-child-issue"),b=cn(b.id),a.ctrlKey||a.metaKey||a instanceof MouseEvent&&1===a.button?this.domSafe.openInNewTab(b):a&&a.shiftKey?gP(this.domSafe,b):Ys(this.router,b))};
var e4a=function(a,b){var c;return hf(function(d){if(1==d.nextAddress)return c=a.getRowIndex(b),O6(a.tableModel.expansion,b.ancestorChain.parentChain,500),jf(d,Bo(),2);a.focusManager.setActiveItem(c);kf(d)})};
U6.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:"Create child",action:function(){return hf(function(c){if(1==c.nextAddress)return jf(c,Bo(),2);aoc(b,a);kf(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 hf(function(c){if(1==c.nextAddress)return jf(c,Bo(),2);boc(b,a);kf(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(){Ync(b.rowReorderingModel,b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){Xnc(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(){coc(b,a)},title:"Archive issue",icon:"archive_24px"}]};
U6.prototype.saveDraft=function(a){var b=this,c,d;return hf(function(e){if(1==e.nextAddress){if(!a.title)return e.return();b.tableModel.saveDraft(a);return jf(e,(0,U.firstValueFrom)(b.displayedRows.changes.pipe(S(function(f){return f.find(function(h){return"data"===h.row.type&&h.row.id===a.issueId})}),xf(Boolean),zf(6E4))),2)}c=e.yieldResult;Qs(null==(d=b.focusManager.activeItem)?void 0:d.row,a)&&b.focusManager.setActiveItem(c);kf(e)})};
var m4a=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;Qs(null==(c=a.focusManager.activeItem)?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},aoc=function(a,b){Nnc(a.tableModel,null==b?void 0:b.ancestorChain,{afterIssueId:"-1"})},boc=function(a,b){"data"===b.type?Nnc(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):Nnc(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};U6.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var doc=function(a){return a.tableColumns.map(function(b){return"title"===b?"editable-title":"menu"===b?"save":"id"===b?"empty-id":b})};U6.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
U6.prototype.onRowKeydown=function(a,b){var c=this,d;return hf(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&&(e4a(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?jf(e,c.tableModel.isOneLineCreationSupported(),
4):e.return();(d=e.yieldResult)&&("data"===a.type||"draft-issue"===a.type&&a.saving)&&(b.shiftKey&&"data"===a.type?aoc(c,a):boc(c,a),b.preventDefault());return e.jumpTo(0)})};
var coc=function(a,b){var c,d;hf(function(e){if(1==e.nextAddress)return Zn(a.analytics,ao.EDIT_ISSUE,"update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),jf(e,(0,U.firstValueFrom)(a.rows$.pipe(S(function(f){return!f.find(function(h){return"data"===h.type&&h.id===b.id})}),xf(Boolean),zf(6E4))),2);Qs(null==(d=a.focusManager.activeItem)?void 0:d.row,b)&&a.focusManager.setActiveItem(c);kf(e)})};
U6.prototype.unlinkFromParent=function(a){var b=this,c,d;return hf(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;Zn(b.analytics,ao.EDIT_ISSUE,"update","unlink-child-issue");return jf(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){tK(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};
U6.\u0275fac=function(a){return new (a||U6)(C(SL),C(Gk),C(sK),C(FM),C(W5),C(qg),C(wd),C(KY),C(fP),C(S6),C(uI),C(Q6),C(Pz))};
U6.\u0275cmp=w({type:U6,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&Hf(x6,5);if(a&2){var c;Gf(c=Jf())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId"},features:[Me([uI]),ie],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","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&&(F(0,"table",0),ze(1,1),O(2,H3a,1,0,"th",2),O(3,I3a,2,0,"td",3),Ae(),ze(4,4),O(5,J3a,1,0,"th",2),O(6,K3a,3,0,"td",5),Ae(),ze(7,6),O(8,L3a,2,0,"th",2),O(9,M3a,2,1,"td",7),Ae(),ze(10,8),O(11,N3a,2,0,"th",2),O(12,O3a,2,0,"td",7),Ae(),ze(13,9),O(14,P3a,2,0,"th",2),O(15,Q3a,4,8,"td",7),Ae(),ze(16,10),O(17,R3a,2,0,"th",2),O(18,S3a,3,3,"td",7),Ae(),ze(19,11),O(20,T3a,2,0,"th",2),O(21,U3a,3,3,"td",7),Ae(),
ze(22,12),O(23,V3a,2,0,"th",2),O(24,W3a,3,3,"td",7),Ae(),ze(25,13),O(26,X3a,2,0,"th",2),O(27,Y3a,3,3,"td",7),Ae(),ze(28,14),O(29,Z3a,1,0,"th",2),O(30,$3a,2,1,"td",7),Ae(),ze(31,15),O(32,a4a,1,0,"th",2),O(33,d4a,4,2,"td",16),Ae(),ze(34,17),O(35,f4a,6,7,"td",18),Ae(),ze(36,19),O(37,g4a,2,0,"th",2),O(38,h4a,2,4,"td",18),Ae(),O(39,i4a,1,0,"tr",20),O(40,k4a,2,8,"tr",21),O(41,l4a,1,4,"tr",22),O(42,n4a,1,2,"tr",23),G(),H(43,"div",24)(44,"div",25)(45,"div",26));a&2&&(D("dataSource",b.rows$)("trackBy",b.trackBy),
B(39),D("matHeaderRowDef",b.tableColumns),B(1),D("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(1),D("matRowDefColumns",Ne(9,Znc))("matRowDefWhen",b.isLoadMoreRow),B(1),D("matRowDefColumns",doc(b))("matRowDefWhen",b.isDraftRow))},dependencies:[Fy,ux,rB,XE,n4,f4,j4,g4,e4,k4,h4,i4,l4,m4,lF,wZ,e2,hO,D6,p6,r6,t6,u6,w6,E6,WO,OO,aN,x6,Fx],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 transparent;border-left:8px solid;border-left-color:#1a73e8;border-left-color:var(--primary-btn-bg);border-top:5px solid transparent;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}[_nghost-%COMP%]{position:relative;padding-bottom:5px;overflow-y:hidden}'],
changeDetection:0});
var V6=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$=hM(this.paramsService,"issueId").pipe(Vf(1E3),Wf());this.issue$=this.id$.pipe(ig(this.issueFridge.watch));this.issueEvents$=this.id$.pipe(ig(this.eventsForIssue.watch),S(function(k){var q;return null!=(q=null==k?void 0:k.events)?q:[]}));this.blockerIssueIds$=this.issue$.pipe(S(function(k){var q;return null!=(q=null==k?void 0:
k.snapshot[0].blockedByIssueId)?q:[]}),Wf(Ei));this.blockedIssueIds$=this.issue$.pipe(S(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockingIssueId)?q:[]}),Wf(Ei));this.childrenIds$=this.id$.pipe(ig(this.issueRelationshipsFridge.watch),S(function(k){var q;return null!=(q=null==k?void 0:k.relatedChildren.map(function(u){return u.targetIssueId}))?q:[]}));this.duplicateIssueIds$=this.issue$.pipe(S(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].duplicateIssueId)?q:[]}),
Wf(Ei));this.blockersDualCount$=(0,U.combineLatest)([this.id$,this.blockerIssueIds$]).pipe(ig(function(k){var q=r(k);k=q.next().value;q=q.next().value;return eoc(h,k,q,"BLOCKED_BY")}),fg({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(S(Us),fg({bufferSize:1,refCount:!0}));this.blockedDualCount$=(0,U.combineLatest)([this.id$,this.blockedIssueIds$]).pipe(ig(function(k){var q=r(k);k=q.next().value;q=q.next().value;return eoc(h,k,q,"BLOCKING")}),fg({bufferSize:1,refCount:!0}));
this.countBlockedDisplay$=this.blockedDualCount$.pipe(S(Us),fg({bufferSize:1,refCount:!0}));this.childrenDualCount$=(0,U.combineLatest)([this.id$,this.childrenIds$]).pipe(ig(function(k){var q=r(k);k=q.next().value;q=q.next().value;return eoc(h,k,q,"CHILDREN")}),fg({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=this.childrenDualCount$.pipe(S(Us),fg({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=(0,U.combineLatest)([this.childrenDualCount$,this.blockersDualCount$]).pipe(S(function(k){var q=
r(k);k=q.next().value;q=q.next().value;var u=k.open.count+q.open.count,x=k.total.count+q.total.count;return{open:k.open.exact&&q.open.exact?Ws(u):Ws(100),total:k.total.exact&&q.total.exact?Ws(x):Ws(100)}}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(S(Us),fg({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=(0,U.combineLatest)([this.id$,this.duplicateIssueIds$]).pipe(ig(function(k){var q=r(k);k=q.next().value;q=q.next().value;return eoc(h,k,q,"DUPLICATE")}),fg({bufferSize:1,
refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(S(function(k){return k.total}),S(Vs),fg({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(S(function(k){var q;return null!=(q=null==k?void 0:k.relatedLinks)?q:[]}),S(function(k){return Ws(k.length)}),S(Vs),fg({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(xf(cl),S(Number),ig(function(k){return Ylc(h.codeMentions,k)}),S(function(k){var q,u;return Ws(null!=(u=null==(q=k.mentions)?void 0:
q.totalMentions)?u:0)}),S(Vs),fg({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(S(function(k){return Ws(k.filter(function(q){return q.isMajorEvent}).length)}),S(Vs),fg({bufferSize:1,refCount:!0}))},eoc=function(a,b,c,d){return b&&0!==c.length?99<c.length?a.issueApi.listIssues(p4a(b,d),{p:1,count:100}).then(function(e){e=e.issues.filter(wn).filter(xn).length;return{open:Ws(e),total:Ws(c.length)}}):a.issueFridge.watchSet(c).pipe(S(function(e){return{open:Ws(e.filter(wn).filter(xn).length),
total:Ws(c.length)}})):(0,U.of)({open:{count:0,exact:!0},total:{count:0,exact:!0}})};V6.\u0275fac=function(a){return new (a||V6)(t(gM),t(SL),t(hL),t(T5),t(bK),t(wL))};V6.\u0275prov=lc({token:V6,factory:V6.\u0275fac,providedIn:"root"});
var W6=function(a,b,c,d,e,f,h,k,q,u,x,E,I){yI.call(this);var N=this;this.brain=a;this.issuePicker=b;this.issueRelationshipsFridge=c;this.issueFridge=d;this.butterBar=e;this.router=f;this.routePerformance=h;this.element=k;this.analytics=q;this.issuePermissionService=u;this.activeSession=x;this.counts=E;this.matDialog=I;this.issueDetailsRoute=fn;this.EMPTY_BLOCKER_LIGHT=Xjc;this.EMPTY_BLOCKER_DARK=Yjc;this.EMPTY_CHILD_LIGHT=Zjc;this.EMPTY_CHILD_DARK=$jc;this.isThinking$=(0,U.combineLatest)([this.issueFridge.saving$,
this.issueRelationshipsFridge.saving$]).pipe(S(function(L){return L.some(Boolean)}));this.issueId$=this.brain.id$.pipe(xf(cl),S(Mn));this.issue$=this.brain.issueJs$.pipe(xf(cl));this.blockerIds$=this.issue$.pipe(S(function(L){var T,Y,ja;return null!=(ja=null==(T=L.issue.snapshot[0])?void 0:null==(Y=T.blockedByIssueId)?void 0:Y.map(String))?ja:[]}));this.parentIds$=this.issue$.pipe(S(function(L){var T;return null!=(T=L.issue.parentIssueIds)?T:[]}));this.blockerIssues$=this.blockerIds$.pipe(ig(this.issueFridge.watchSet));
this.blockersCount$=this.blockerIssues$.pipe(S(function(L){return L.filter(xn).length}));this.childrenIds$=this.issueId$.pipe(ig(this.issueRelationshipsFridge.watch),S(function(L){var T;return null!=(T=null==L?void 0:L.relatedChildren.map(function(Y){return Y.targetIssueId}))?T:[]}));this.totalDaysOpen$=this.issue$.pipe(S(function(L){var T,Y;return(null==(T=tn(L))?void 0:null==(Y=T.effort)?void 0:Bl(Y,4))||0}));this.totalDaysComplete$=this.issue$.pipe(S(function(L){var T,Y;return(null==(T=tn(L))?
void 0:null==(Y=T.effort)?void 0:Bl(Y,5))||0}));this.unarchivedChildIssueCount$=this.childrenIds$.pipe(S(function(L){return L.length}));this.isTotalEstimatesEnabled=AH(this.activeSession,"enableAggregationRules");this.totalDaysCount$=(0,U.combineLatest)([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(S(function(L){var T=r(L);L=T.next().value;T=T.next().value;return L+T}));this.totalDaysDisplayPercent$=H4a(this.totalDaysComplete$,this.totalDaysCount$);(0,U.combineLatest)([this.blockersCount$,this.unarchivedChildIssueCount$]).pipe(S(function(L){var T=
r(L);L=T.next().value;T=T.next().value;return L+T}));this.progressHovercardContent$=(0,U.combineLatest)([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(S(function(L){var T=r(L);L=T.next().value;var Y=T.next().value;T=T.next().value;return I4a(Math.round(100*L)/100)+" completed | "+I4a(Math.round(100*Y)/100)+" open | "+T+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new U.Subject;(0,U.firstValueFrom)(Pp("b-issue-relations-table tr .mat-column-title a",
this.element.nativeElement).pipe(jg((0,U.merge)(this.destroyed$,this.rowCreated$)))).then(function(){var L=function(){G7b(N.routePerformance,"issue-details-w-tree")};requestAnimationFrame(L);setTimeout(L)}).catch(function(){})};V(W6,yI);W6.\u0275dir=yI.\u0275dir;
var E4a=function(a){var b,c;return hf(function(d){if(1==d.nextAddress)return Zn(a.analytics,ao.EDIT_ISSUE,"update","add-blocker"),jf(d,(0,U.firstValueFrom)(a.issue$),2);b=d.yieldResult;c=b.issue.issueId;a.issuePicker.open({title:"Add Blockers of "+c,allowMultipleIds:!0},function(e){foc(a,c,e)});kf(d)})};W6.prototype.addChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||a.addExistingChild()};W6.prototype.createChild=function(){this.rowCreated$.next();var a;null==(a=this.table)||aoc(a)};
var foc=function(a,b,c){var d;hf(function(e){if(1==e.nextAddress){if(0===c.length)return e.return();It(e,2);var f=c.map(String);f=iL(a.issueFridge,1,2,String(b),f);return jf(e,f,4)}if(2!=e.nextAddress)return Jt(e,0);d=Kt(e);uK(a.butterBar,"Could not add "+c+" as blockers of "+b+". "+d);kf(e)})};W6.\u0275fac=function(a){return new (a||W6)(C(XN),C(uX),C(SL),C(hL),C(sK),C(Gk),C(C_),C(wd),C(FM),C(ZN),C(yH),C(V6),C(PB))};
W6.\u0275cmp=w({type:W6,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&Hf(U6,5);if(a&2){var c;Gf(c=Jf())&&(b.table=c.first)}},features:[ie],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","format","fill","title","Mark an existing issue as blocker.",1,"add",3,"disabled","onAction"],["size","small","format","fill","title","Create an issue as a child.",1,"add",3,"disabled","onAction"],["size","small","title","Add an existing issue as a child.",1,"add",3,"disabled","onAction"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"section",1)(2,"h4",2),P(3,
"Parents:"),G(),P(4,"\u00a0"),H(5,"related-parents-compact",3),Q(6,"async"),G(),F(7,"p",4),O(8,q4a,1,0,"b-spinner",5),Q(9,"async"),F(10,"button",6),J("click",function(){b.matDialog.open(L6,{maxWidth:"1300px",width:"90%"})}),H(11,"mat-icon",7),G()(),F(12,"section")(13,"div",8)(14,"h4",9)(15,"div",10),H(16,"mat-icon",11),G(),P(17),Q(18,"async"),G(),O(19,s4a,2,1,"ng-container",5),Q(20,"async"),G(),O(21,u4a,3,4,"ng-container",5),Q(22,"async"),O(23,w4a,6,1,"ng-template",null,12,Pf),G(),F(25,"section")(26,
"div",13)(27,"h4",9)(28,"div",14),H(29,"mat-icon",15),G(),P(30),Q(31,"async"),G(),O(32,y4a,2,1,"ng-container",5),Q(33,"async"),Q(34,"async"),G(),O(35,z4a,28,24,"div",16),Q(36,"async"),Q(37,"async"),O(38,A4a,2,5,"b-issue-relations-table",17),Q(39,"async"),O(40,D4a,4,5,"ng-container",5),Q(41,"async"),G()(),O(42,F4a,3,3,"ng-template",null,18,Pf),O(44,G4a,6,6,"ng-template",null,19,Pf));if(a&2){var c,d;B(5);D("issue",null==(c=R(6,10,b.issue$))?null:c.issue);B(3);D("ngIf",R(9,12,b.isThinking$));B(9);Je(" Blockers ",
R(18,14,b.counts.countBlockersDisplay$)," ");B(2);D("ngIf",R(20,16,b.blockersCount$));B(2);D("ngIf",R(22,18,b.issueId$));B(9);Je(" Child issues ",R(31,20,b.counts.countChildrenDisplay$)," ");B(2);D("ngIf",R(33,22,b.unarchivedChildIssueCount$)||0<((null==(d=R(34,24,null==b.table?null:b.table.rows$))?null:d.length)||0));B(3);D("ngIf",b.isTotalEstimatesEnabled&&R(36,26,b.unarchivedChildIssueCount$)&&R(37,28,b.totalDaysCount$));B(3);D("ngIf",R(39,30,b.issueId$));B(2);D("ngIf",null!==R(41,32,b.unarchivedChildIssueCount$))}},
dependencies:[ux,Ex,dN,hN,rB,XE,lF,hO,aN,J6,K6,U6,Fx,Kx],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%]{background:background(white);border-radius:6px;border:1px solid;border-color:#2b923d;border-color:var(--status-fixed-gfx);height:8px;width:132px;position:relative}.progress[_ngcontent-%COMP%] > .completion[_ngcontent-%COMP%]{background-color:#2b923d;background-color:var(--status-fixed-gfx);height:100%;border-radius:9px}.progress-hover-card[_ngcontent-%COMP%]{font-weight:bold}"],
changeDetection:0});
var X6=function(){};X6.\u0275fac=function(a){return new (a||X6)};X6.\u0275mod=Cc({type:X6});X6.\u0275inj=mc({imports:[Mx,QI,qX,ON,uG,mH,MN]});
var Y6=function(){};Y6.\u0275fac=function(a){return new (a||Y6)};Y6.\u0275mod=Cc({type:Y6});Y6.\u0275inj=mc({imports:[Qz,Dz,cz,Mx,wy,ON,uG,UB,pF,G6,q4,UW,mH,xy,QI,zZ,i2,iO,F6,XO,MN,H6,qX,X6]});
var Z6=function(a,b){this.paths=a;this.activeSession=b;this.isCompact=!1;this.starClicked=new Jw;this.currentUserEmail=this.activeSession.getUserEmail()};Z6.prototype.ngOnInit=function(){};Z6.prototype.isDirectAdmin=function(a){return a?Pl(a.adminUsers).includes(this.currentUserEmail):!1};Z6.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};Z6.\u0275fac=function(a){return new (a||Z6)(C(GK),C(yH))};
Z6.\u0275cmp=w({type:Z6,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},decls:1,vars:1,consts:[["class","hotlist-matlist-option",4,"ngIf"],[1,"hotlist-matlist-option"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],["class","valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked",
4,"ngIf"],["matTooltip","Open hotlist in a new tab","target","_blank",1,"keep-focus-ring",3,"routerLink","click","keydown.enter"],["svgIcon","pop-out",1,"icon-s"],["class","line-clamp-2 muted type-s",4,"ngIf"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred","starClicked"],[1,"line-clamp-2","muted","type-s"]],template:function(a,b){a&1&&O(0,L4a,9,4,"div",0);a&2&&D("ngIf",b.hotlist)},dependencies:[ux,XE,KI,ZM,lF,Fx],encapsulation:2,changeDetection:0});
var goc=function(){this.tokens=new Map};goc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};goc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new hoc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var hoc=function(a){this.sortedEntries=a};
hoc.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};hoc.prototype.search=function(a){var b=new Set;a=r(this.match(a));for(var c=a.next();!c.done;c=a.next()){c=r(c.value.labels);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
var ioc=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(v(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};
var joc=function(a){this.hotlists=a;var b=new goc,c=new goc;a=r(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())?Qxa(d.name.toLowerCase()):[];f=r(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())?Qxa(d.description.toLowerCase()):[];f=r(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]}))};
joc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=r(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;(Mma(a)&&String(h).includes(a)||(null==(k=f)?0:k.includes(a))||(null==(q=e)?0:q.includes(a)))&&b.add(d)}c=Qxa(a);d=r(ioc(this.nameTokenMatcher,c));for(a=d.next();!a.done;a=d.next())b.add(a.value);c=r(ioc(this.descriptionTokenMatcher,c));
for(a=c.next();!a.done;a=c.next())b.add(a.value);return koc(this,b)};var koc=function(a,b){return[].concat(v(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};
var $6=function(){this.innerHeight$=(0,U.concat)((0,U.defer)(function(){return(0,U.of)(window.innerHeight)}),(0,U.fromEvent)(window,"resize").pipe(S(function(){return window.innerHeight})))};$6.\u0275fac=function(a){return new (a||$6)};$6.\u0275prov=lc({token:$6,factory:$6.\u0275fac,providedIn:"root"});
var a7=function(a,b,c,d,e,f,h,k,q,u,x,E){yI.call(this);var I=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=u;this.windowHeight=x;this.permissionsFridge=E;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new U.BehaviorSubject("");this.debouncedQuery$=this.query$.pipe(Tf(100),hg(""));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 ey({name:new gy("",Xx),description:new gy("")});this.currentUserEmail=this.activeSession.getUserEmail();this.starredHotlists=new RR;this.isSavingStar=new RR;this.userHotlists$=xJb(this.hotlistFridge);this.issueHotlists$=
this.hotlistFridge.watchSet(Array.from(this.data.selectedHotlistIds));this.combineHotlistsWithPermissions=S(function(N){var L=I.permissionsFridge.watchSet(N.map(function(T){return"hotlists/"+T.hotlistId}));return N.map(function(T,Y){return Object.assign({},T,{permissions$:L.pipe(S(function(ja){return ja[Y]}))})})});this.hotlists$=(0,U.combineLatest)([this.issueHotlists$,this.userHotlists$]).pipe(S(function(N){var L=r(N);N=L.next().value;L=L.next().value;return[].concat(v(N),v(L))}),S($Bb(function(N){return N.hotlistId})),
S(function(N){return N.filter(cl)}),S(function(N){return N.sort(g5a)}),S(function(N){return N.sort(function(L,T){var Y=I.selectedHotlistIds;L=Y.has(L.hotlistId);T=Y.has(T.hotlistId);return L&&T?0:L?-1:T?1:0})}),this.combineHotlistsWithPermissions,fg({bufferSize:1,refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(S(function(N){return new joc(N)}),fg({bufferSize:1,refCount:!0}));this.visibleHotlists$=(0,U.combineLatest)([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(S(function(N){var L=
r(N);N=L.next().value;var T=L.next().value;L=L.next().value;return""!==N.trim()?T.search(N):L}),fg({bufferSize:1,refCount:!0}));this.showLoadById$=this.query$.pipe(S(function(N){N=N.trim();return!I.allHotlistIds.has(Number(N))&&Mma(N)}));this.showCreateNew$=(0,U.combineLatest)([this.query$,this.visibleHotlists$]).pipe(S(function(N){var L=r(N);N=L.next().value;L=L.next().value;return h5a(N,L)}));this.isCompactMode$=this.visibleHotlists$.pipe(S(function(N){return 200<N.length}));this.compactHotlistItemHeight=
24;this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(S(function(N){return Math.max(1,Math.floor(.5*N/24))}),Wf());this.hotlistViewportContainerHeight$=this.compactNumberOfHotlistsToShow$.pipe(S(function(N){return 24*N}));this.subscriptions.add(this.hotlists$.subscribe(function(N){I.hotlists=N;N=r(N);for(var L=N.next();!L.done;L=N.next())I.allHotlistIds.add(L.value.hotlistId)}))};V(a7,yI);a7.\u0275dir=yI.\u0275dir;
a7.prototype.ngOnInit=function(){var a=this;loc(this);this.query$.pipe(jg(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
var d5a=function(a,b){b.options.forEach(function(d){d.selected?a.selectedHotlistIds.add(d.value):a.selectedHotlistIds.delete(d.value)});b=RKa(a.originalIds,a.selectedHotlistIds);a.pristine=!b;var c=r(i5a(b));b=c.next().value;c=c.next().value;a.saveBtnLabel=b;a.saveBtnTooltip=c},Xs=function(a){a.dialogRef.close(a.selectedHotlistIds)},R4a=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("name"))?void 0:b.value)?a:""},moc=function(a){var b;return(a=null==(b=a.hotlistUnderEdit.get("description"))?
void 0:b.value)?a:""},Q4a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=R4a(a),c=moc(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)})},loc=function(a){a.userApi.getUserSidebar().then(function(b){a.starredHotlists.clear();
for(var c=r(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=r(b.bookmarkGroups||[]);for(c=b.next();!c.done;c=b.next())for(c=r(c.value.sublinks||[]),d=c.next();!d.done;d=c.next())d=d.value,d.starred&&a.starredHotlists.add(Number(d.id))}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
a7.prototype.toggleStar=function(a){var b=this,c,d,e;return hf(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a,userLogin:b.currentUserEmail};It(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),jf(f,b.userApi.deleteFavorite(d),3);b.starredHotlists.add(a);return jf(f,b.userApi.saveFavorite(d),3);case 3:Lt(f);b.isSavingStar.delete(a);Mt(f,4);break;case 2:e=Kt(f);zK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),
b.appEvents.favoritesModified.next(),loc(b),kf(f)}})};var a5a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);Xs(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};a7.prototype.trackByHotlistId=function(a,b){return b.hotlistId};a7.\u0275fac=function(a){return new (a||a7)(C(CB),C(NB),C(GK),C(bL),C(SK),C(pK),C(BK),C(xK),C(yH),C(YK),C($6),C(TL))};
a7.\u0275cmp=w({type:a7,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("keydown.meta.enter",function(){return Xs(b)})("keydown.shift.enter",function(){return Xs(b)})("keydown.control.enter",function(){return Xs(b)})},features:[ie],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",""],[3,"selectionChange"],["hotlistMatList",""],[4,"ngIf"],["class","muted margin-top",4,"ngIf"],["class","load-from-id-btn",3,"click",4,"ngIf"],["class","create-new-hotlist-btn",3,"click",4,"ngIf"],["regularMode",""],[1,"compact"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"matTooltip"],["tooltip","matTooltip"],["checkboxPosition","before",3,"selected","disabled","value","focus","blur"],[3,"hotlist","isCompact",
"starredHotlists","isSavingStar","starClicked"],[1,"muted","margin-top"],[1,"load-from-id-btn",3,"click"],[1,"muted"],[1,"create-new-hotlist-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&&(O(0,N4a,
2,1,"ng-container",0),F(1,"mat-dialog-actions")(2,"button",1),J("click",function(){b.dialogRef.close()}),P(3," Cancel "),G(),O(4,P4a,2,1,"ng-container",0),G(),O(5,S4a,2,1,"ng-template",null,2,Pf),O(7,T4a,2,5,"ng-template",null,3,Pf),O(9,e5a,19,12,"ng-template",null,4,Pf),O(11,f5a,14,1,"ng-template",null,5,Pf));if(a&2){var c=M(8),d=M(10);D("ngIf",b.showCreateNewPane)("ngIfElse",d);B(4);D("ngIf",b.showCreateNewPane)("ngIfElse",c)}},dependencies:function(){return[yx,ux,Ex,XE,QB,RB,SB,TB,rB,CP,DP,iy,
Qg,by,cy,sy,oy,py,lF,Z6,Fx,b7]},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:transparent;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{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{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 b7=function(){};b7.prototype.transform=function(a){return zpa(a)};b7.\u0275fac=function(a){return new (a||b7)};b7.\u0275pipe=Ec({name:"stagedHotlistSlice",type:b7,pure:!0});
var c7=function(a,b,c,d){this.dialog=a;this.issueFridge=b;this.eventsForIssueFridge=c;this.errorHandler=d},noc=function(a,b){var c,d,e,f,h,k,q,u;return hf(function(x){switch(x.nextAddress){case 1:return jf(x,(0,U.firstValueFrom)(b),2);case 2:return c=x.yieldResult,(e=null==(d=c)?void 0:d.snapshot[0].hotlistId)&&c?jf(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);It(x,4,5);return jf(x,DJb(a.issueFridge,
q,h,k),5);case 5:Lt(x);a.eventsForIssueFridge.poke(q);Mt(x,0);break;case 4:u=Kt(x),zK(a.errorHandler,u),x.jumpTo(5)}})};c7.prototype.openModal=function(a){var b=this,c,d,e,f;return hf(function(h){if(1==h.nextAddress)return c={panelClass:"no-jitter",data:{selectedHotlistIds:a},ariaLabel:"Search for Hotlists"},d=b.dialog.open(a7,c),jf(h,(0,U.firstValueFrom)(DB(d)),2);e=h.yieldResult;if(!e)return h.return(Promise.resolve());f=RKa(new Set(a),new Set(e));return h.return(Promise.resolve(f))})};
c7.\u0275fac=function(a){return new (a||c7)(t(PB),t(hL),t(wL),t(xK))};c7.\u0275prov=lc({token:c7,factory:c7.\u0275fac,providedIn:"root"});
var d7=function(a,b,c){this.issueFridge=a;this.hotlistFridge=b;this.hotlistPicker=c;this.issueId$=new U.ReplaySubject(1);this.issue$=this.issueId$.pipe(ig(this.issueFridge.watch));this.hotlistsOnIssue$=this.issue$.pipe(S(function(d){var e;return null!=(e=null==d?void 0:d.snapshot[0].hotlistId)?e:[]}));this.count$=this.hotlistsOnIssue$.pipe(S(function(d){return null==d?void 0:d.length}),hg(0));this.label$=this.count$.pipe(S(function(d){return 0<d?"Hotlists ("+d+")":"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$};
d7.prototype.onClick=function(){noc(this.hotlistPicker,this.issue$)};ji.Object.defineProperties(d7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});d7.\u0275fac=function(a){return new (a||d7)(C(hL),C(bL),C(c7))};
d7.\u0275cmp=w({type:d7,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},decls:4,vars:6,consts:[["mat-stroked-button","",1,"gmat-button","small",3,"disabled","click"]],template:function(a,b){a&1&&(F(0,"button",0),J("click",function(){return b.onClick()}),Q(1,"async"),P(2),Q(3,"async"),G());a&2&&(D("disabled",R(1,2,b.isDisabled$)),B(2),Je(" ",R(3,4,b.label$),"\n"))},dependencies:[rB,Fx],encapsulation:2});
var e7=function(){this.availablePanels=new Set;this.iconOnly=!1;this.buttonClassname="";this.openSidebar=new Jw;this.PANEL_OPTIONS=ooc};e7.\u0275fac=function(a){return new (a||e7)};
e7.\u0275cmp=w({type:e7,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&&(F(0,"button",0),J("click",function(){b.openSidebar.emit({panel:void 0})}),Uc(),F(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()(),O(13,j5a,2,1,"ng-container",13),G(),Vc(),F(14,"button",14),H(15,"mat-icon",15),G(),F(16,"mat-menu",16,17),O(18,k5a,2,2,"button",18),G());if(a&2){var c=M(17);te("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size);
B(13);D("ngIf",!b.iconOnly);B(1);te("icon-only-mode",b.iconOnly);D("ngClass",b.buttonClassname)("disabled",0===b.availablePanels.size)("matMenuTriggerFor",c);B(4);D("ngForOf",b.PANEL_OPTIONS)}},dependencies:[xx,yx,ux,rB,bF,$E,eF,XE],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 ooc=[{panel:"deployments",label:"Deployment Status"},{panel:"incidents",label:"Incident Context"}];
var f7=function(a){this.issueInsightsSidebarService=a;this.iconOnly=!1;this.buttonClassname="";this.availablePanels$=this.issueInsightsSidebarService.availablePanels$;this.shouldShowInsightsGraphMenu$=this.issueInsightsSidebarService.shouldShowInsightsGraphMenu$};f7.prototype.openSidebar=function(a){this.issueInsightsSidebarService.openSidebar(a)};f7.\u0275fac=function(a){return new (a||f7)(C(i6))};
f7.\u0275cmp=w({type:f7,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&&(O(0,m5a,3,3,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.availablePanels$))},dependencies:[ux,e7,Fx],encapsulation:2,changeDetection:0});
var poc=function(a){return{isDupe:a}},g7=function(a,b,c,d,e){yI.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 U.ReplaySubject(1);this.issue$=this.issueId$.pipe(ig(function(h){return f.fridge.watchOne(h)}));this.isDupe$=this.issue$.pipe(S(function(h){var k;return!!(null==
h?0:null==(k=h.snapshot[0])?0:k.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(ig(function(h){return f.permissionsFridge.watchOne("issues/"+h)}));this.canEdit$=this.permissions$.pipe(S(function(h){return!(null==h||!h.writer)}),hg(!0));this.didChooseCanonical=function(h){return function(k){k=k[0];null!=k&&EJb(f.fridge,k,h).then(function(){f.eventsForIssueFridge.poke(h)}).catch(f.gotErr)}};this.gotErr=function(h){f.snackBar.open($m(h)||"Error with network request","close",{panelClass:"error"})}};
V(g7,yI);g7.\u0275dir=yI.\u0275dir;
var n5a=function(a){var b,c;return hf(function(d){if(1==d.nextAddress)return a.disabled||a.fridge.isSaving(a.internalIssueId)||!Ik(a.canEdit$)?d.return():jf(d,(0,U.firstValueFrom)(a.isDupe$),2);if(3!=d.nextAddress)return b=d.yieldResult,jf(d,(0,U.firstValueFrom)(a.issue$),3);c=d.yieldResult;if(null==c)return d.return();b?qoc(a,c):a.issuePicker.open({title:"Mark issue as duplicate of:",allowMultipleIds:!1,componentId:c.snapshot[0].componentId},a.didChooseCanonical(c.issueId));kf(d)})},qoc=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)};ji.Object.defineProperties(g7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});g7.\u0275fac=function(a){return new (a||g7)(C(hL),C(TL),C(uX),C(pK),C(wL))};
g7.\u0275cmp=w({type:g7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[ie],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&&(O(0,o5a,3,5,"button",0),Q(1,"async"));a&2&&D("ngIf",Oe(3,poc,R(1,1,b.isDupe$)))},dependencies:[ux,rB,Fx]});
var h7=function(){this.label=""};h7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};h7.\u0275fac=function(a){return new (a||h7)};
h7.\u0275cmp=w({type:h7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&Hf(hN,5);if(a&2){var c;Gf(c=Jf())&&(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&&(F(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),
O(4,q5a,2,1,"ng-container",3),G()()(),H(5,"mat-icon",4));if(a&2){var c=M(1);B(2);oe("aria-label",b.label);B(2);D("ngIf",b.content);B(1);D("onedevHovercardTrigger",c)}},dependencies:[ux,Ex,XE,dN,hN],encapsulation:2});var i7=function(){};i7.\u0275fac=function(a){return new (a||i7)};i7.\u0275mod=Cc({type:i7});i7.\u0275inj=mc({imports:[Mx,pF,ON]});
var j7=function(a,b,c,d,e,f,h,k,q){yI.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 U.ReplaySubject(1);this.HOTKEYS=xI;this.issue$=this.issueId$.pipe(ig(this.issueFridge.watch));this.issueDerivedProperties$=this.issue$.pipe(S(function(u){var x,E,I,N,L,T,Y;return{modifiedTimeMilliseconds:null!=(null==u?void 0:null==(x=u.aggregatedData)?
void 0:x.modifiedTimeMicros)?u.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:null!=(T=null==u?void 0:null==(E=u.userData)?void 0:E.voted)?T:!1,voteCount:null!=(Y=null==u?void 0:null==(I=u.aggregatedData)?void 0:I.voteCount)?Y:0,notificationSubscription:$k(null==u?void 0:null==(N=u.userData)?void 0:N.notificationSubscription),retentionState:null==u?void 0:null==(L=u.aggregatedData)?void 0:L.retentionState}}));this.menuItems$=roc(this);this.state$=(0,U.combineLatest)([this.issueId$,this.issueDerivedProperties$,
this.menuItems$]).pipe(S(function(u){var x=r(u);u=x.next().value;var E=x.next().value;x=x.next().value;return Object.assign({},{issueId:Number(u)},E,{menuItems:x})}))};V(j7,yI);j7.\u0275dir=yI.\u0275dir;g=j7.prototype;g.updateSubscription=function(a){var b=this,c;return hf(function(d){if(1==d.nextAddress)return(c=Ik(b.issueId$))?jf(d,b.editIssueService.updateSubscription(c,a),2):d.return();Zn(b.analytics,ao.EDIT_ISSUE,"updateSubscription",a);kf(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 hf(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():jf(d,(0,U.firstValueFrom)(DB(b.matDialogService.open(y3,{maxWidth:560}))),2):(c=d.yieldResult)?jf(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return hf(function(d){return 1==d.nextAddress?b.editIssueService.savingState(a).get("retention")?d.return():jf(d,(0,U.firstValueFrom)(DB(b.matDialogService.open(x3,{maxWidth:560}))),2):(c=d.yieldResult)?jf(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return hf(function(d){return 1==d.nextAddress?jf(d,(0,U.firstValueFrom)(DB(b.matDialogService.open(z3,{maxWidth:560}))),2):(c=d.yieldResult)?jf(d,pRb(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var roc=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(tYa())},showIndefiniteRetentionDialog:function(){var c=Ik(a.issueId$);c&&a.showIndefiniteRetentionDialog(c)},showComponentRetentionDialog:function(){var c=Ik(a.issueId$);c&&a.showComponentRetentionDialog(c)},submitArchivalState:function(c){var d=Ik(a.issueId$);d&&a.issueArchiveService.submitArchivalState(d,c)},showFlagAsSpamDialog:function(){var c=Ik(a.issueId$);c&&a.showFlagAsSpamDialog(c)}};return(0,U.combineLatest)([a.issue$,
a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(S(function(c){var d=r(c);c=d.next().value;var e=d.next().value,f;d={permissions:d.next().value,accessLevel:Qwa(c),isArchived:null!=(f=null==c?void 0:c.isArchived)?f:!1,isDeleted:Owa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:Twa(c),retentionState:Wwa(c)};return[Ohb(b,d),Rlc(b,d),Mhb(b,d),Nhb(b,d)].filter(cl)}))};
ji.Object.defineProperties(j7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});j7.\u0275fac=function(a){return new (a||j7)(C(hL),C(ZN),C(yH),C(BK),C(W5),C(fP),C(VR),C(PB),C(FM))};
j7.\u0275cmp=w({type:j7,selectors:[["issue-actions"]],viewQuery:function(a,b){a&1&&Hf(h7,5);if(a&2){var c;Gf(c=Jf())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[ie],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueId","voteCount","upvoted"],[3,"issueId"],[3,"issueId","hotkey","onHotkey"],["smartDupeBtn",""],["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",""],["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&&(O(0,v5a,15,13,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.state$))},dependencies:[mX,yx,ux,h7,dJ,f7,rB,XE,bF,$E,eF,lF,$Z,xY,wY,g7,d7,Fx],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 k7=function(a){Z.call(this,a,-1,soc)};V(k7,Z);k7.prototype.setIssueIdsList=function(a){ll(this,1,a)};k7.prototype.addIssueIds=function(a){tb(this,1,a)};var soc=[1];k7.prototype.toObject=function(){var a=null!=this?{issueIdsList:n(ob(this,1))}:void 0;return a};k7.messageId="b.BatchIssueDigestRequest";
var l7=function(a){Z.call(this,a,-1,toc)};V(l7,Z);l7.prototype.getIssueDigestsList=function(){return xb(this,$J,1)};var toc=[1];l7.prototype.toObject=function(){var a=null!=this?{issueDigestsList:Hb(this.getIssueDigestsList(),rIb)}:void 0;return a};l7.messageId="b.BatchIssueDigestResponse";
var m7=function(a){this.executor=a};m7.prototype.call=function(a){var b=new k7;a=r(a);for(var c=a.next();!c.done;c=a.next())b.addIssueIds(String(c.value));return this.executor.post({url:"action/issues/digest",body:b,responseConstructor:l7})};m7.prototype.split=function(a,b){b=r(b.getIssueDigestsList());for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.getIssueId()===String(a))return c;return new $J};m7.\u0275fac=function(a){return new (a||m7)(t(pI))};
m7.\u0275prov=lc({token:m7,factory:m7.\u0275fac,providedIn:"root"});
var uoc={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},n7=function(a,b){yI.call(this);var c=this;this.issueFridge=a;this.router=b;this.STATUS_TERSE=qL;this.URLS=Zs;this.IssueStatus_strToTag=Yl;this.ListIssuesHovercardMode=uoc;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new U.ReplaySubject(1);this.init=new U.ReplaySubject(1);this.issues$=this.issueIds$.pipe(xf(cl),ig(this.issueFridge.watchSet),S(function(d){return"parent"===c.mode?d.filter(xn):d.filter(wn)}))};V(n7,yI);
n7.\u0275dir=yI.\u0275dir;n7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var B5a=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=r(c.entries()),f=e.next();!f.done;f=e.next()){var h=r(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}a.router.navigate([Zs.ISSUE_LIST],{queryParams:{q:d}})})};
n7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(jg(this.destroyed$)).subscribe(function(){a.init.next()})};ji.Object.defineProperties(n7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});n7.\u0275fac=function(a){return new (a||n7)(C(hL),C(Gk))};
n7.\u0275cmp=w({type:n7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[ie],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"],[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&&(F(0,"div",0),O(1,w5a,5,3,"div",1),O(2,x5a,5,3,"div",1),O(3,E5a,4,3,"div",2),Q(4,"async"),G());a&2&&(B(1),
D("ngIf",b.mode===b.ListIssuesHovercardMode.PARENT_ISSUES),B(1),D("ngIf",b.mode===b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES),B(1),D("ngIf",R(4,3,b.issues$)))},dependencies:[xx,yx,ux,XE,KI,rB,Fx],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 #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)}.issue-row[_ngcontent-%COMP%]   .b-chip[_ngcontent-%COMP%]{margin-left:8px}.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 o7=function(a,b){this.batchIssueDigests=a;this.paths=b;this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=uoc;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIds=[]};o7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&voc(this).then(function(c){b.issueIdToTitle=c})};o7.prototype.getIssueLink=function(a){return this.paths.editIssue(a)};
var voc=function(a){a.reorderedAncestors=[];for(var b=Number(a.issueId);;)if(b=a.ancestors.get(b))if(1===b.sourceIssueIds.length)b=b.sourceIssueIds[0],a.reorderedAncestors.push(b);else{a.multiParentIds=b.sourceIssueIds;break}else break;a.reorderedAncestors.reverse();return(0,U.firstValueFrom)(a.batchIssueDigests.call(new Set(a.reorderedAncestors)).pipe(S(function(c){var d=new Map;c=r(c.getIssueDigestsList());for(var e=c.next();!e.done;e=c.next())e=e.value,d.set(Number(e.getIssueId()),e.getTitle());
return d})))};o7.\u0275fac=function(a){return new (a||o7)(C(m7),C(GK))};
o7.\u0275cmp=w({type:o7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Jc],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",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"type-s",3,"href","issueId","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId"]],template:function(a,b){a&1&&(H(0,"mat-icon",0),O(1,H5a,7,4,"ng-container",1),O(2,J5a,7,6,"ng-container",2));a&2&&(B(1),D("ngIf",1<b.multiParentIds.length),B(1),D("ngForOf",b.reorderedAncestors))},dependencies:[yx,
ux,XE,qW,dN,eN,hN,fN,nX,n7],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 p7=function(a){yI.call(this);var b=this;this.componentFridge=a;this.componentId$=new U.ReplaySubject(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(xf(function(c){return String(c.idOrKey)===b.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(xf(cl),ig(this.componentFridge.watch),xf(cl));this.component$=(0,U.merge)(this.error$,this.rawComponent$).pipe(S(function(c){return c.componentId&&c.name?c:{componentId:Number(c.idOrKey),name:"(unknown)"}}));this.isArchived$=
this.component$.pipe(S(function(c){return c.archived}));this.componentPath$=this.component$.pipe(S(function(c){return zo(c.componentPathInfo)}));this.init=new U.ReplaySubject(1);this.routes$=this.componentId$.pipe(S(function(c){var d={component:c};d=void 0===d?{}:d;return{createIssue:{path:"/issues/new",queryParams:d},componentSettings:Bsa(c),recentIssues:gn(c)}}))};V(p7,yI);p7.\u0275dir=yI.\u0275dir;p7.prototype.ngOnInit=function(){var a=this;this.component$.pipe(Xf(),jg(this.destroyed$)).subscribe(function(){a.init.next()})};
ji.Object.defineProperties(p7.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a=String(a);this.componentId$.next(a)}}});p7.\u0275fac=function(a){return new (a||p7)(C(IJ))};
p7.\u0275cmp=w({type:p7,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[ie],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&&(F(0,"div",0)(1,
"div",1),O(2,N5a,5,6,"div",2),O(3,O5a,9,3,"ng-container",3),Q(4,"async"),O(5,P5a,7,3,"div",4),Q(6,"async"),G()());a&2&&(B(2),D("ngIf",!b.hidePath),B(1),D("ngIf",R(4,3,b.component$)),B(2),D("ngIf",R(6,5,b.routes$)))},dependencies:[yx,ux,XE,sB,ZS,Fx],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 q7=function(a,b){var c=this;this.componentFridge=a;this.issueEditComponentService=b;this.componentId$=new U.ReplaySubject(1);this.compactMode$=new U.BehaviorSubject(!1);this.editing=!1;this.component$=this.componentId$.pipe(ig(function(d){return c.componentFridge.watch(d).pipe(hg(void 0))}));this.isArchived$=this.component$.pipe(S(function(d){return null==d?void 0:d.archived}));this.componentPath$=(0,U.combineLatest)([this.componentId$,this.component$,this.compactMode$]).pipe(S(function(d){var e=
r(d);d=e.next().value;var f=e.next().value;e=e.next().value;if(null==f)return zo({componentPathId:[Number(d)]});d=zo(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 u=String(k.name),x=void 0;if(e+[].concat(v(u)).length>q){var E=q-e;q="";u=void 0===u?"":u;E=void 0===E?48:E;q=void 0===q?"...":q;x=[].concat(v(u));x.length<=E||(u=E-[].concat(v(q)).length,u=x.slice(-u).join(""),null!=String.prototype.trimStart&&(u=u.trimStart()),u=
q+u);x=!0}e+=[].concat(v(u)).length;f.unshift(Object.assign({},k,{name:u,isTruncated:x}));if(x)break}d.length>f.length&&(f[0].isSpliced=!0);d=f}return d}));this.isEmpty$=this.component$.pipe(S(function(d){return!d}));this.isThinkingAndEmpty$=(0,U.combineLatest)([this.componentFridge.thinking$,this.isEmpty$]).pipe(S(function(d){var e=r(d);d=e.next().value;e=e.next().value;return d&&e}));this.isReady$=this.isThinkingAndEmpty$.pipe(S(function(d){return!d}))};q7.prototype.ngOnInit=function(){};
ji.Object.defineProperties(q7.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)}}});q7.\u0275fac=function(a){return new (a||q7)(C(IJ),C(c6))};
q7.\u0275cmp=w({type:q7,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",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","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn",3,"click"],["svgIcon",
"edit-outline",1,"icon-xxs"],[1,"component-path"],[4,"ngFor","ngForOf"],["href","javascript:void(0);","title","Show all Components","class","subtle-link",3,"click",4,"ngIf"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],["card",""],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components",1,"subtle-link",3,"click"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""],["placeholder","Choose Component",3,"selectedComponent","isRequired","shouldFocus",
"selectedComponentChange","dropdownClosed"]],template:function(a,b){a&1&&(O(0,Y5a,10,9,"b-async-data-placeholder",0),O(1,$5a,2,5,"ng-template",null,1,Pf));if(a&2){var c=M(2);D("ngIf",!b.editing)("ngIfElse",c)}},dependencies:[e2,yx,ux,rB,XE,oV,dN,eN,hN,fN,lF,p7,ZS,Fx],styles:["a[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%], .edit-btn[_ngcontent-%COMP%]{vertical-align:middle}mat-icon[_ngcontent-%COMP%]:first-of-type{margin-right:3px}.edit-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-color:#fff;border-color:var(--background)}.edit-btn[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}.edit-btn[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-top:-3px}.issue-editor-false   [_nghost-%COMP%]     .edit-btn{display:none}[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}"],
changeDetection:0});
var woc=["issueTitleEl"],xoc=["issueTitleInputEl"],c6a=function(a){return{"width.px":a}},r7=function(){this.disabled=!1;this.updateTitle=new Jw;this.isEditMode=!1;this.editModeWidth=0};r7.prototype.ngDoCheck=function(){yoc(this)};
var e6a=function(a){a.isEditMode=!a.isEditMode;a.isEditMode&&setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0)},zoc=function(a,b){a.isEditMode=!1;yoc(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())}},b6a=function(a,b){if(b)"Enter"===b.key?zoc(a,b.target.value):("Escape"===b.key||"Esc"===b.key)&&e6a(a);else{var c;b=null==(c=a.issueTitleInputEl)?void 0:c.nativeElement.value;zoc(a,b)}},
yoc=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};r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=w({type:r7,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(Hf(woc,5),Hf(xoc,5));if(a&2){var c;Gf(c=Jf())&&(b.issueTitleEl=c.first);Gf(c=Jf())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{updateTitle:"updateTitle"},decls:3,vars:3,consts:[["class","heading-m line-clamp-3",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","line-clamp-3"],["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&&(O(0,a6a,3,2,"h3",0),O(1,d6a,3,4,"mat-form-field",1),O(2,f6a,2,1,"button",2));a&2&&(D("ngIf",!b.isEditMode),B(1),D("ngIf",
b.isEditMode),B(1),D("ngIf",b.hasAclToEdit))},dependencies:[ux,Dx,rB,XE,lF,eC,gC],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}  .mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:0}"]});
var s7=function(a){this.teamsService=a;this.onTeamLoaded=new U.ReplaySubject;this.teamName$=new U.BehaviorSubject("");this.isTeamLoaded=!1};s7.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(Xf(),S(function(c){return c.getName()})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
s7.\u0275fac=function(a){return new (a||s7)(C(ZL))};
s7.\u0275cmp=w({type:s7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Jc],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&&(F(0,"b-async-data-placeholder",0),O(1,g6a,4,4,"div",1),Q(2,
"async"),G(),F(3,"onedev-hovercard",null,2),ze(5),H(6,"b-team-card",3),Ae(),G());if(a&2){var c;D("isReady",b.isTeamLoaded);B(1);D("ngIf",R(2,4,b.teamName$));B(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:[ux,XE,e2,dN,hN,TU,Fx],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});
var t7=function(a,b,c,d,e,f){yI.call(this);var h=this;this.issueFridge=a;this.issuePermissionService=b;this.router=c;this.refreshMonitor=d;this.currentSearchResults=e;this.eventsForIssueFridge=f;this.editTitleDisabled=this.starToggleDisabled=!1;this.issueId$=new U.ReplaySubject(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=uoc;this.blockedIdsToUrlQuery=function(k){if(!(2>k.length))return{q:"blockingid:"+h.issueId}};this.HOTKEYS=xI;this.issue$=this.issueId$.pipe(ig(this.issueFridge.watch));
this.issueTitle$=this.issue$.pipe(S(function(k){return null==k?void 0:k.snapshot[0].title}));this.starred$=this.issue$.pipe(S(function(k){var q;return $k(null==k?void 0:null==(q=k.userData)?void 0:q.starred)}));this.componentId$=this.issue$.pipe(S(function(k){return $k(null==k?void 0:k.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(S(function(k){return $k(null==k?void 0:k.ancestors)}));this.hasAncestors$=this.ancestors$.pipe(S(function(k){return!!(k&&0<k.size)}));this.teamId$=this.issue$.pipe(S(function(k){var q;
return $k(null==k?void 0:null==(q=k.aggregatedData)?void 0:q.teamId)}));this.blockedByids$=this.issue$.pipe(S(function(k){var q;return null!=(q=null==k?void 0:k.snapshot[0].blockedByIssueId)?q:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(ig(this.issueFridge.watchSet),S(function(k){return k.filter(wn)}),S(function(k){return k.length}));Hk(this.issuesBlockedByCount$.pipe(S(r6a),jg(this.destroyed$)),"Blocked");this.blockedByids$.pipe(S(s6a));this.blockedByids$.pipe(S(this.blockedIdsToUrlQuery));
this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.toggleStar=function(){var k=!!Ik(h.starred$);h.starToggleDisabled=!0;BJb(h.issueFridge,h.issueId,!k).pipe($f(),jg(h.destroyed$)).subscribe(function(){h.starToggleDisabled=!1})};this.toggleStarDebounced=lC(this.toggleStar,1E3)};V(t7,yI);t7.\u0275dir=yI.\u0275dir;var Aoc=function(a,b){a.editTitleDisabled=!0;CJb(a.issueFridge,a.issueId,b).pipe(jg(a.destroyed$)).subscribe(function(){a.editTitleDisabled=!1;a.eventsForIssueFridge.poke(a.issueId)})};
t7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};ji.Object.defineProperties(t7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});t7.\u0275fac=function(a){return new (a||t7)(C(hL),C(ZN),C(Gk),C(dL),C(X5),C(wL))};
t7.\u0275cmp=w({type:t7,selectors:[["issue-banner"]],inputs:{issueId:"issueId"},features:[ie],decls:24,vars:27,consts:[[1,"first-row","flex-kids-x","flex-wrap","gap-s"],[4,"ngIf","ngIfElse"],[1,"second-row","flex-kids-x","align-items-center"],["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"],[3,"title","disabled","hasAclToEdit","updateTitle"],["class","b-chip squared bad xs",3,"onedevHovercardTrigger",4,"ngIf"],["card","onedevHovercard"],[4,"onedevHovercardLazyBody"],["withAncestorsBreadcrumbs",""],["withoutAncestorBreadcrumbs",""],[4,"ngTemplateOutlet"],[1,"b-chip","squared","bad","xs",3,"onedevHovercardTrigger"],["svgIcon","slo-status-no-data",1,"icon-xxs"],[4,"ngIf"],[3,"onedevIsHovercardReady","hovercardInstance",
"currentIssueId","issueIds","mode"],["cardBody",""],[3,"componentId","teamId","onTeamLoaded"],[3,"componentId","compactMode","issueId"],[1,"b-chip","squared","s"],[3,"ancestors","issueId",4,"ngIf"],[2,"margin-right","-4px",3,"issueId","componentId","issueTitle","isExternalIssue"],[3,"ancestors","issueId"],[3,"componentId","issueId"],[1,"b-chip","squared","s","padding-0"],[3,"issueId","componentId","issueTitle","isExternalIssue"]],template:function(a,b){a&1&&(F(0,"div",0),O(1,i6a,2,1,"ng-container",
1),Q(2,"async"),G(),F(3,"div",2)(4,"button",3),J("onHotkey",function(){return Is(b.currentSearchResults)})("click",function(){return Is(b.currentSearchResults)}),Q(5,"async"),Q(6,"async"),H(7,"mat-icon",4),G(),F(8,"button",5),J("onHotkey",function(){return b.refresh()})("click",function(){return b.refresh()}),H(9,"mat-icon",6),G(),F(10,"b-star-toggle",7),J("starClicked",function(){return b.toggleStar()})("onHotkey",function(){return b.toggleStarDebounced()}),Q(11,"async"),G(),F(12,"issue-title",8),
J("updateTitle",function(e){return Aoc(b,e)}),Q(13,"async"),Q(14,"async"),G(),O(15,k6a,3,2,"div",9),Q(16,"async"),F(17,"onedev-hovercard",null,10),O(19,l6a,4,7,"ng-container",11),G()(),O(20,o6a,4,7,"ng-template",null,12,Pf),O(22,q6a,4,7,"ng-template",null,13,Pf));if(a&2){var c=M(23),d;B(1);D("ngIf",R(2,13,b.hasAncestors$))("ngIfElse",c);B(3);D("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",null!==(d=R(5,15,b.currentSearchResults.backNavigationLabel$))&&void 0!==d?d:"");oe("aria-label",R(6,17,b.currentSearchResults.backNavigationLabel$));
B(4);D("hotkey",b.HOTKEYS.REFRESH);B(2);D("starred",R(11,19,b.starred$))("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(2);D("title",R(13,21,b.issueTitle$))("disabled",b.editTitleDisabled)("hasAclToEdit",R(14,23,b.issuePermissionService.hasAclToEdit$));B(3);D("ngIf",R(16,25,b.issuesBlockedByCount$))}},dependencies:[o7,ux,Ex,q7,dJ,dN,eN,hN,fN,I4,r7,n7,rB,XE,lF,ZM,s7,Fx],styles:["[_nghost-%COMP%]{padding:8px;padding-bottom:0;overflow:auto;overflow-y:hidden}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.second-row[_ngcontent-%COMP%]{margin-top:8px}.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}"]});
var u6a=function(a){return{"invisible zero-width":a}},u7=function(a){this.currentSearchResults=a;this.HOTKEYS=xI};u7.\u0275fac=function(a){return new (a||u7)(C(X5))};
u7.\u0275cmp=w({type:u7,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&&
(O(0,v6a,9,12,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.currentSearchResults.issueIndex$))},dependencies:[xx,ux,dJ,rB,XE,lF,Fx],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 v7=function(a){this.brain=a;this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(S(function(b){return null==b?void 0:b.issue}),xf(cl));this.retentionState$=this.issue$.pipe(S(function(b){var c;return null==(c=b.aggregatedData)?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(S(function(b){var c;return(null==(c=b.aggregatedData)?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),xf(cl));this.accessLevel$=this.issue$.pipe(S(function(b){var c;return null==
(c=b.accessLimit)?void 0:c.accessLevel}),xf(cl));this.state$=(0,U.combineLatest)([this.retentionState$,this.modifiedTime$,this.accessLevel$]).pipe(S(function(b){var c=r(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{retentionState:b,isShowingRetention:null==(null==b?void 0:b.scheduledDeletionTime)?!1:OKa(b),isShowingPublicPartner:"INTERNAL"!==c,modifiedTime:d,accessLevel:c}}))};v7.\u0275fac=function(a){return new (a||v7)(C(XN))};
v7.\u0275cmp=w({type:v7,selectors:[["chip-indicators"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","flex-kids-x gap-s",4,"ngIf"],[1,"flex-kids-x","gap-s"],[3,"accessLevel",4,"ngIf"],[3,"retentionState","compactMode","modifiedTime",4,"ngIf"],[3,"accessLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(O(0,z6a,2,1,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.state$))},dependencies:[ux,yY,BS,Fx],encapsulation:2});
var w7=function(a){this.dialogRef=a;this.WTDM_INTRO_LIGHT=dkc;this.WTDM_INTRO_DARK=ekc};w7.\u0275fac=function(a){return new (a||w7)(C(CB))};
w7.\u0275cmp=w({type:w7,selectors:[["onboarding-dialog"]],hostBindings:function(a,b){a&1&&J("keyup.esc",function(){b.dialogRef.close()},!1,zd)},decls:21,vars:2,consts:[["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"light-only",3,"src"],["aria-hidden","true","alt","Stylized UI screenshot annotated with 'Dependency surfaced as a tree', 'New issue types', and 'estimated effort field",1,"dark-only",
3,"src"],[1,"center"],"href;http://go/wtdm-home#parent-child-relationship;target;_blank;aria-label;Learn more about parent child relationship".split(";"),"href;http://go/wtdm-home#types;target;_blank;aria-label;Learn more about new issue types".split(";"),"href;http://go/wtdm-home#estimated-effort-field;target;_blank;aria-label;Learn more about estimated effort field".split(";"),["mat-flat-button","",1,"gmat-button","medium",3,"click"]],template:function(a,b){a&1&&(H(0,"img",0)(1,"img",1),F(2,"div",
2)(3,"h1"),P(4,"Welcome to a new Issue Detail Page \ud83c\udf89"),G()(),F(5,"ul")(6,"li"),P(7," Model the work required to close any issue through a new parent-child feature, visualized as a 'tree' in the Dependencies tab. "),F(8,"a",3),P(9,"Learn more"),G()(),F(10,"li"),P(11," Break down your goals by size / complexity with new issue types - Project, Milestone, Feature, Epic, Story and Task. "),F(12,"a",4),P(13,"Learn more"),G()(),F(14,"li"),P(15," Specify the effort required to complete an issue with a new \u2018estimated effort\u2019 field. "),
F(16,"a",5),P(17,"Learn more"),G()()(),F(18,"div",2)(19,"button",6),J("click",function(){return b.dialogRef.close()}),P(20," Get started "),G()());a&2&&(D("src",b.WTDM_INTRO_LIGHT,Ud),B(1),D("src",b.WTDM_INTRO_DARK,Ud))},dependencies:[rB],styles:['img[_ngcontent-%COMP%]{max-width:100%;min-height:188px}h1[_ngcontent-%COMP%]{font-family:"Google Sans",Roboto,Arial,sans-serif;line-height:2rem;font-size:1.5rem;letter-spacing:0em;font-weight:400}ul[_ngcontent-%COMP%]{list-style-type:disc;margin:20px;font-size:1rem;color:#5f6368;color:var(--text-muted)}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{line-height:24px;margin:10px}.center[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:10px}']});
var x7=function(a,b){this.dialog=a;this.userPreferencesManager=b;this.idpPrefs$=this.userPreferencesManager.newIssueDetailsPagePreferencesSubject$;this.ackTime$=this.idpPrefs$.pipe(S(function(c){return c.onboardingDialogAcknowledgedMillis}));this.shouldShow$=this.ackTime$.pipe(S(function(c){return Vma()?!1:null==c}))};
x7.prototype.openIfNecessary=function(){var a=this,b,c;hf(function(d){if(1==d.nextAddress)return jf(d,(0,U.firstValueFrom)(a.shouldShow$),2);b=d.yieldResult;if(!b)return d.jumpTo(0);c={maxWidth:"700px",disableClose:!0};a.dialog.open(w7,c);return jf(d,Boc(a),0)})};var Boc=function(a){return hf(function(b){return jf(b,(0,U.firstValueFrom)(a.userPreferencesManager.save({newIssueDetailsPagePreferences:Object.assign({},a.idpPrefs$.value,{onboardingDialogAcknowledgedMillis:Date.now()})})),0)})};
x7.\u0275fac=function(a){return new (a||x7)(t(PB),t(VI))};x7.\u0275prov=lc({token:x7,factory:x7.\u0275fac,providedIn:"root"});
var y7=function(){var a=this;this.pressed=new Jw;this.disabled=!1;this.getTooltip=function(){return a.disabled?"Deployment status is only available for submitted Boq, Pod & Annealing CLs. For more information, go/g3g-guide.":"Open the insights graph"}};y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=w({type:y7,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&&(F(0,"button",0),J("click",function(){return b.pressed.emit()}),P(1,"Insights "),Uc(),F(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),oe("aria-label",b.getTooltip()))},dependencies:[rB],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 Coc=new sd("PeoplekitClientConfig"),Doc=function(a){this.matcher=a};Doc.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};Doc.prototype.reset=function(){};
var Foc=function(a){var b=new Eoc;this.apiEnv_=a;this.experimentsConfig_=b};
var Eoc=function(){};Eoc.prototype.getProfileId=function(){return""};
var z7=function(a){var b=new mdc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.customAuthHeaders&&(b.customAuthHeaders_=a.customAuthHeaders);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new Foc(b.getPeopleApiEnv())};z7.\u0275fac=function(a){return new (a||z7)(t(Coc))};z7.\u0275prov=lc({token:z7,factory:z7.\u0275fac});
var A7=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 Jw;this.sessionOptions=(new Rq).setFilter(Goc);this.inputSearchDelay=200;this.destroyed$=new U.ReplaySubject(1);this.inputChanged$=new U.ReplaySubject(1)};A7.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
A7.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);A6a(b,this.config);var c;this.autocomplete=null==(c=this.clientConfig.autocompleteFactory)?void 0:c.create(Hoc(this),this.inputEl.nativeElement,this.peopleKitService.peopleStore,b,this.sessionOptions);Q$b(this.autocomplete,function(d){a.selectionChange.emit(d)});this.inputChanged$.pipe(Tf(this.inputSearchDelay)).subscribe(function(){a.search()})};
var Hoc=function(a){if(!a.peopleKitService.autocompleteAnchor){var b=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=b;a.renderer.addClass(b,"peoplekit-autocomplete-anchor");var c;(null!=(c=qva(a.inputEl.nativeElement))?c:a.document.body).append(b)}return a.peopleKitService.autocompleteAnchor};A7.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};
A7.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};A7.\u0275fac=function(a){return new (a||A7)(C(Coc),C(hi),C(z7),C(wd),C(qg),C(Nv))};
A7.\u0275dir=w({type:A7,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&J("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 Goc=fUa(1);
var Ioc=["popOver"],Joc=["inputBox"],B7=function(a){this.defaultAutocompleteConfig=a;this.mergedAutocompleteConfig=Object.assign({},Koc,this.defaultAutocompleteConfig);this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new Jw;this.inputValue="";this.sessionOptions=Loc};B7.prototype.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
B7.prototype.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},Koc,this.defaultAutocompleteConfig,this.autocompleteConfig))};B7.prototype.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;null==(c=b.inputBox)||c.nativeElement.select()})};B7.prototype.onPopOverClose=function(a){this.closed.emit(0===a?this.inputValue:void 0);this.inputValue=""};B7.\u0275fac=function(a){return new (a||B7)(C(Moc,8))};
B7.\u0275cmp=w({type:B7,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(Hf(Ioc,7),Hf(Joc,5));if(a&2){var c;Gf(c=Jf())&&(b.popOver=c.first);Gf(c=Jf())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},features:[Jc],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&&(F(0,"onedev-pop-over-edit-panel",0,1),J("closedWithAction",function(d){return b.onPopOverClose(d)}),G(),O(2,B6a,2,3,"ng-template",null,2,Pf));if(a&2){var c=M(3);D("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",
c)}},dependencies:[Qg,by,hy,z4,A7],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 Moc=new sd("user-picker-autocomplete-config"),Koc={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},Loc=(new Rq).setFilter(Nr(fUa(1),new Doc(function(a){return 0<=a.indexOf("-pager")||0<=a.indexOf("+pager")||0<=a.indexOf("lifeguard-ng")})));
var D6a=function(a){return{$implicit:a}},Noc=0,C7=function(){this.val="";this.disabled=!1;this.emailChange=new Jw;this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+Noc;this.onChange=function(){};this.onTouched=function(){};Noc++};V(C7,MP);g=C7.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};
ji.Object.defineProperties(C7.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});C7.\u0275fac=function(a){return new (a||C7)};
C7.\u0275cmp=w({type:C7,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&Hf(B7,7);if(a&2){var c;Gf(c=Jf())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],features:[Me([{provide:MP,useExisting:ic(function(){return C7}),multi:!0},{provide:wx,useExisting:ic(function(){return C7}),multi:!0}]),
ie],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&&(F(0,"button",0,1),J("focus",function(){return b.active=!0})("blur",function(){return b.active=!1})("click",function(){return b.openPopOver()}),O(2,E6a,2,4,"ng-container",2),O(3,F6a,1,1,"ng-template",null,3,Pf),O(5,G6a,2,0,"svg",4),G(),F(6,"onedev-user-picker-panel",5),J("closed",function(e){return b.onPopOverClose(e)}),G());if(a&2){var c=M(1),d=M(4);te("active",b.isActive());oe("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(2);D("ngIf",b.selectedUserTemplate)("ngIfElse",
d);B(3);D("ngIf",!b.disabled);B(1);D("anchor",c)("autocompleteConfig",b.autocompleteConfig)}},dependencies:[ux,Ex,B7],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 Ooc=["picker"],D7=function(){this.disabled=!1;this.emailChange=new Jw;this.userEmail=""};V(D7,MP);D7.prototype.openPopOver=function(){this.picker.openPopOver()};D7.prototype.isActive=function(){return this.picker.isActive()};ji.Object.defineProperties(D7.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userEmail=Rl(a)||""}}});D7.\u0275fac=function(){var a;return function(b){return(a||(a=md(D7)))(b||D7)}}();
D7.\u0275cmp=w({type:D7,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&Hf(Ooc,7);if(a&2){var c;Gf(c=Jf())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[Me([{provide:MP,useExisting:ic(function(){return D7}),multi:!0}]),ie],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&&(F(0,"onedev-user-picker",0,1),J("emailChange",function(d){return b.emailChange.emit(d)}),G(),O(2,I6a,1,1,"ng-template",null,2,Pf));if(a&2){var c=M(3);D("email",b.userEmail)("disabled",b.disabled)("labelledById",b.labelledById)("selectedUserTemplate",c)}},dependencies:[ux,pS,C7],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 E7=function(a){Z.call(this,a,-1,Poc)};V(E7,Z);E7.prototype.getName=function(){return W(this,1)};E7.prototype.setName=function(a){return xl(this,1,a)};var Qoc=function(a){Z.call(this,a)};V(Qoc,Z);var Poc=[2];E7.prototype.toObject=function(){return Roc(void 0,this)};var Roc=function(a,b){if(null!=b){var c={name:W(b,1),buganizerOrCustomStatusesList:Hb(xb(b,Qoc,2),Soc,a)};a&&(c.$jspbMessageInstance=b);return c}},Toc=[1,2];Qoc.prototype.toObject=function(){return Soc(void 0,this)};
var Soc=function(a,b){if(null!=b){var c={buganizerStatus:n(Hr(b,1,Toc)),customStatusId:n(Hr(b,2,Toc))};a&&(c.$jspbMessageInstance=b);return c}};
var Uoc=function(a){Z.call(this,a)};V(Uoc,Z);g=Uoc.prototype;g.getId=function(){return fj(this,1)};g.setId=function(a){return Vk(this,1,a)};g.getName=function(){return W(this,2)};g.setName=function(a){return xl(this,2,a)};g.setColor=function(a){return xl(this,4,a)};g.getCustomField=function(){return m(this,F7,6)};g.setCustomField=function(a){return Gb(this,6,a)};var F7=function(a){Z.call(this,a)};V(F7,Z);F7.prototype.getCustomFieldId=function(){return fj(this,1)};
F7.prototype.setCustomFieldId=function(a){return Vk(this,1,a)};F7.prototype.getCustomFieldValue=function(){return W(this,2)};F7.prototype.setCustomFieldValue=function(a){return xl(this,2,a)};Uoc.prototype.toObject=function(){return Voc(void 0,this)};var Voc=function(a,b){if(null!=b){var c={id:fj(b,1),name:W(b,2),color:W(b,4),buganizerStatus:X(b,5,0),customField:Woc(a,b.getCustomField())};a&&(c.$jspbMessageInstance=b);return c}};F7.prototype.toObject=function(){return Woc(void 0,this)};
var Woc=function(a,b){if(null!=b){var c={customFieldId:fj(b,1),customFieldValue:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var Yoc=function(a){Z.call(this,a,-1,Xoc)};V(Yoc,Z);Yoc.prototype.getState=function(){return X(this,2,0)};var G7=function(a){Z.call(this,a)};V(G7,Z);G7.prototype.getResourceId=function(){return fj(this,2)};G7.prototype.setResourceId=function(a){Vk(this,2,a)};var Zoc=function(a){Z.call(this,a)};V(Zoc,Z);var Xoc=[3,9,4,5,6];Yoc.prototype.toObject=function(){return $oc(void 0,this)};
var $oc=function(a,b){if(null!=b){var c={kanbanProjectId:W(b,1),state:X(b,2,0),failureReason:W(b,8),iterationMappingsList:Hb(xb(b,G7,3),H7,a),savedQueryMappingsList:Hb(xb(b,G7,9),H7,a),epicMappingsList:Hb(xb(b,G7,4),H7,a),storyMappingsList:Hb(xb(b,G7,5),H7,a),resourceUpdateFailuresList:Hb(xb(b,Zoc,6),apc,a),migrationAttempts:fj(b,7)};a&&(c.$jspbMessageInstance=b);return c}};G7.prototype.toObject=function(){return H7(void 0,this)};
var H7=function(a,b){if(null!=b){var c={kanbanId:W(b,1),resourceId:fj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};Zoc.prototype.toObject=function(){return apc(void 0,this)};var apc=function(a,b){if(null!=b){var c={resourceName:W(b,1),failureReason:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var cpc=function(a){Z.call(this,a,-1,bpc)};V(cpc,Z);g=cpc.prototype;g.getState=function(){return X(this,2,0)};g.getStart=function(){return m(this,tj,3)};g.setStart=function(a){return Gb(this,3,a)};g.getEnd=function(){return m(this,tj,4)};g.setEnd=function(a){return Gb(this,4,a)};var dpc=function(a){Z.call(this,a)};V(dpc,Z);dpc.prototype.setWorkItemId=function(a){return xl(this,1,a)};var bpc=[9];cpc.prototype.toObject=function(){return epc(void 0,this)};
var epc=function(a,b){if(null!=b){var c={jobId:W(b,1),state:X(b,2,0),failureReason:W(b,8),start:Nu(a,b.getStart()),end:Nu(a,b.getEnd()),expectedWorkItemUpdatesCount:fj(b,5),workItemUpdatesCount:fj(b,6),workItemUpdateFailuresList:Hb(xb(b,dpc,9),fpc,a)};a&&(c.$jspbMessageInstance=b);return c}};dpc.prototype.toObject=function(){return fpc(void 0,this)};var fpc=function(a,b){if(null!=b){var c={workItemId:W(b,1),failureReason:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var gpc=function(a){Z.call(this,a)};V(gpc,Z);var I7=function(a){Z.call(this,a)};V(I7,Z);I7.prototype.getId=function(){return fj(this,1)};I7.prototype.setId=function(a){return Vk(this,1,a)};var hpc=function(a){Z.call(this,a)};V(hpc,Z);hpc.prototype.setWorkItemId=function(a){return xl(this,1,a)};var ipc=function(a){Z.call(this,a)};V(ipc,Z);var jpc=function(a){Z.call(this,a)};V(jpc,Z);var J7=function(a){Z.call(this,a)};V(J7,Z);J7.prototype.getId=function(){return fj(this,wb(this,K7,1))};
J7.prototype.setId=function(a){return Yn(this,1,K7,a)};var L7=function(a){Z.call(this,a)};V(L7,Z);L7.prototype.getQuery=function(){return W(this,1)};L7.prototype.setQuery=function(a){return xl(this,1,a)};var M7=function(a){Z.call(this,a)};V(M7,Z);M7.prototype.getId=function(){return W(this,1)};M7.prototype.setId=function(a){return xl(this,1,a)};var N7=function(a){Z.call(this,a)};V(N7,Z);N7.prototype.getId=function(){return fj(this,1)};N7.prototype.setId=function(a){return Vk(this,1,a)};
var O7=[1,2,3,4,5,6,7,8];gpc.prototype.toObject=function(){return kpc(void 0,this)};var kpc=function(a,b){if(null!=b){var c={backlogScope:lpc(a,Al(b,I7,1,O7)),drillinScope:mpc(a,Al(b,hpc,2,O7)),goalsScope:npc(a,Al(b,ipc,3,O7)),inboxScope:opc(a,Al(b,jpc,4,O7)),iterationScope:ppc(a,Al(b,J7,5,O7)),searchScope:qpc(a,Al(b,L7,6,O7)),tagScope:rpc(a,Al(b,M7,7,O7)),savedQueryScope:spc(a,Al(b,N7,8,O7))};a&&(c.$jspbMessageInstance=b);return c}};I7.prototype.toObject=function(){return lpc(void 0,this)};
var lpc=function(a,b){if(null!=b){var c={id:fj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};hpc.prototype.toObject=function(){return mpc(void 0,this)};var mpc=function(a,b){if(null!=b){var c={workItemId:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};ipc.prototype.toObject=function(){return npc(void 0,this)};var npc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}};jpc.prototype.toObject=function(){return opc(void 0,this)};
var opc=function(a,b){if(null!=b){var c={};a&&(c.$jspbMessageInstance=b);return c}},K7=[1,2,3];J7.prototype.toObject=function(){return ppc(void 0,this)};var ppc=function(a,b){if(null!=b){var c={id:n(Hr(b,1,K7)),iterationType:n(Hr(b,2,K7)),iterationTag:n(Hr(b,3,K7))};a&&(c.$jspbMessageInstance=b);return c}};L7.prototype.toObject=function(){return qpc(void 0,this)};var qpc=function(a,b){if(null!=b){var c={query:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
M7.prototype.toObject=function(){return rpc(void 0,this)};var rpc=function(a,b){if(null!=b){var c={id:W(b,1)};a&&(c.$jspbMessageInstance=b);return c}};N7.prototype.toObject=function(){return spc(void 0,this)};var spc=function(a,b){if(null!=b){var c={id:fj(b,1)};a&&(c.$jspbMessageInstance=b);return c}};
var P7=function(a){Z.call(this,a)};V(P7,Z);P7.prototype.getScope=function(){return m(this,gpc,2)};P7.prototype.setScope=function(a){return Gb(this,2,a)};P7.prototype.toObject=function(){return tpc(void 0,this)};var tpc=function(a,b){if(null!=b){var c={savedViewId:W(b,1),scope:kpc(a,b.getScope())};a&&(c.$jspbMessageInstance=b);return c}};
var Q7=function(a){Z.call(this,a)};V(Q7,Z);g=Q7.prototype;g.getComponentId=function(){return fj(this,wb(this,R7,1))};g.setComponentId=function(a){return Yn(this,1,R7,a)};g.hasComponentId=function(){return 1===ub(this,R7)};g.getHotlistId=function(){return fj(this,wb(this,R7,2))};g.setHotlistId=function(a){Yn(this,2,R7,a)};var R7=[1,2];Q7.prototype.toObject=function(){return upc(void 0,this)};
var upc=function(a,b){if(null!=b){var c={componentId:n(Hr(b,1,R7)),hotlistId:n(Hr(b,2,R7)),syncStartTime:Nu(a,m(b,tj,3)),syncEndTime:Nu(a,m(b,tj,4))};a&&(c.$jspbMessageInstance=b);return c}};
var S7=function(a){Z.call(this,a,-1,vpc)};V(S7,Z);S7.prototype.getName=function(){return W(this,1)};S7.prototype.setName=function(a){return xl(this,1,a)};S7.prototype.getDescription=function(){return W(this,2)};S7.prototype.setDescription=function(a){return xl(this,2,a)};var wpc=function(a){Z.call(this,a)};V(wpc,Z);var ypc=function(a){Z.call(this,a,-1,xpc)};V(ypc,Z);var zpc=function(a){Z.call(this,a)};V(zpc,Z);var Bpc=function(a){Z.call(this,a,-1,Apc)};V(Bpc,Z);
var T7=function(a){Z.call(this,a,-1,Cpc)};V(T7,Z);T7.prototype.setAddHotlistIdsList=function(a){ll(this,2,a)};T7.prototype.setRemoveHotlistIdsList=function(a){ll(this,3,a)};var U7=function(a){Z.call(this,a)};V(U7,Z);U7.prototype.getComponentId=function(){return fj(this,1)};U7.prototype.setComponentId=function(a){return Vk(this,1,a)};var V7=function(a){Z.call(this,a)};V(V7,Z);V7.prototype.getStatus=function(){return X(this,1,0)};V7.prototype.setStatus=function(a){return ul(this,1,a)};
var W7=function(a){Z.call(this,a)};V(W7,Z);W7.prototype.getPriority=function(){return X(this,1,0)};W7.prototype.setPriority=function(a){return ul(this,1,a)};var X7=function(a){Z.call(this,a)};V(X7,Z);X7.prototype.getSeverity=function(){return X(this,1,0)};X7.prototype.setSeverity=function(a){return ul(this,1,a)};var Y7=function(a){Z.call(this,a)};V(Y7,Z);Y7.prototype.getItemType=function(){return X(this,1,0)};Y7.prototype.setItemType=function(a){ul(this,1,a)};var Z7=function(a){Z.call(this,a)};
V(Z7,Z);Z7.prototype.getAssignee=function(){return W(this,2)};Z7.prototype.setAssignee=function(a){xl(this,2,a)};var Epc=function(a){Z.call(this,a,-1,Dpc)};V(Epc,Z);var $7=function(a){Z.call(this,a)};V($7,Z);$7.prototype.getComment=function(){return W(this,2)};$7.prototype.setComment=function(a){xl(this,2,a)};var vpc=[3];S7.prototype.toObject=function(){return Fpc(void 0,this)};
var Fpc=function(a,b){if(null!=b){var c={name:W(b,1),description:W(b,2),subActionsList:Hb(xb(b,wpc,3),Gpc,a)};a&&(c.$jspbMessageInstance=b);return c}},a8=[1,2,3,4,5,6,7,8,9,10,11,12];wpc.prototype.toObject=function(){return Gpc(void 0,this)};
var Gpc=function(a,b){if(null!=b){var c={goalAction:Hpc(a,Al(b,ypc,1,a8)),iterationsBacklogsAction:Ipc(a,Al(b,zpc,2,a8)),tagsAction:Jpc(a,Al(b,Bpc,3,a8)),hotlistsAction:Kpc(a,Al(b,T7,4,a8)),componentsAction:Lpc(a,Al(b,U7,5,a8)),statusAction:Mpc(a,Al(b,V7,6,a8)),priorityAction:Npc(a,Al(b,W7,7,a8)),severityAction:Opc(a,Al(b,X7,8,a8)),assigneeAction:Ppc(a,Al(b,Z7,9,a8)),ccAction:Qpc(a,Al(b,Epc,10,a8)),commentAction:Rpc(a,Al(b,$7,11,a8)),typeAction:Spc(a,Al(b,Y7,12,a8))};a&&(c.$jspbMessageInstance=b);
return c}},xpc=[2,3];ypc.prototype.toObject=function(){return Hpc(void 0,this)};var Hpc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),addGoalIdsList:n(ob(b,2)),removeGoalIdsList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};zpc.prototype.toObject=function(){return Ipc(void 0,this)};var Ipc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),iterationId:fj(b,2),iteration:W(b,3),removeIteration:bj(b,4)};a&&(c.$jspbMessageInstance=b);return c}},Apc=[2,3];
Bpc.prototype.toObject=function(){return Jpc(void 0,this)};var Jpc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),addTagsList:n(ob(b,2)),removeTagsList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}},Cpc=[2,3];T7.prototype.toObject=function(){return Kpc(void 0,this)};var Kpc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),addHotlistIdsList:n(ob(b,2)),removeHotlistIdsList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};U7.prototype.toObject=function(){return Lpc(void 0,this)};
var Lpc=function(a,b){if(null!=b){var c={componentId:fj(b,1),promptUser:bj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};V7.prototype.toObject=function(){return Mpc(void 0,this)};var Mpc=function(a,b){if(null!=b){var c={status:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};W7.prototype.toObject=function(){return Npc(void 0,this)};var Npc=function(a,b){if(null!=b){var c={priority:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};X7.prototype.toObject=function(){return Opc(void 0,this)};
var Opc=function(a,b){if(null!=b){var c={severity:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};Y7.prototype.toObject=function(){return Spc(void 0,this)};var Spc=function(a,b){if(null!=b){var c={itemType:X(b,1,0)};a&&(c.$jspbMessageInstance=b);return c}};Z7.prototype.toObject=function(){return Ppc(void 0,this)};var Ppc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),assignee:W(b,2),removeAssignee:bj(b,3)};a&&(c.$jspbMessageInstance=b);return c}},Dpc=[2,3];
Epc.prototype.toObject=function(){return Qpc(void 0,this)};var Qpc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),addCcsList:n(ob(b,2)),removeCcsList:n(ob(b,3))};a&&(c.$jspbMessageInstance=b);return c}};$7.prototype.toObject=function(){return Rpc(void 0,this)};var Rpc=function(a,b){if(null!=b){var c={promptUser:bj(b,1),comment:W(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var b8=function(a){Z.call(this,a)};V(b8,Z);g=b8.prototype;g.getUser=function(){return Al(this,RH,1,c8)};g.setUser=function(a){qu(this,1,c8,a)};g.getGroup=function(){return Al(this,RH,2,c8)};g.setGroup=function(a){qu(this,2,c8,a)};g.getAlias=function(){return W(this,wb(this,c8,3))};g.setAlias=function(a){Yn(this,3,c8,a)};var c8=[1,2,3];b8.prototype.toObject=function(){return d8(void 0,this)};
var d8=function(a,b){if(null!=b){var c={user:SH(a,b.getUser()),group:SH(a,b.getGroup()),alias:n(Hr(b,3,c8))};a&&(c.$jspbMessageInstance=b);return c}};
var Upc=function(a){Z.call(this,a,-1,Tpc)};V(Upc,Z);g=Upc.prototype;g.getInheritance=function(){return X(this,1,0)};g.setInheritance=function(a){ul(this,1,a)};g.getAdminsList=function(){return xb(this,b8,2)};g.setAdminsList=function(a){Fb(this,2,a)};g.getInheritedAdminsList=function(){return xb(this,b8,3)};g.getEditorsList=function(){return xb(this,b8,4)};g.setEditorsList=function(a){Fb(this,4,a)};g.getImplicitEditorsList=function(){return xb(this,b8,5)};
g.getAppendersList=function(){return xb(this,b8,6)};g.setAppendersList=function(a){Fb(this,6,a)};g.getImplicitAppendersList=function(){return xb(this,b8,7)};g.getReadersList=function(){return xb(this,b8,8)};g.setReadersList=function(a){Fb(this,8,a)};g.getImplicitReadersList=function(){return xb(this,b8,9)};g.getImplicitAccess=function(){return X(this,10,0)};g.setImplicitAccess=function(a){return ul(this,10,a)};g.getRestrictedReadersList=function(){return xb(this,b8,11)};
g.setRestrictedReadersList=function(a){Fb(this,11,a)};g.getRestrictedPlusReadersList=function(){return xb(this,b8,12)};g.setRestrictedPlusReadersList=function(a){Fb(this,12,a)};var Tpc=[2,3,4,5,6,7,8,9,11,12];Upc.prototype.toObject=function(){return Vpc(void 0,this)};
var Vpc=function(a,b){if(null!=b){var c={inheritance:X(b,1,0),adminsList:Hb(b.getAdminsList(),d8,a),inheritedAdminsList:Hb(b.getInheritedAdminsList(),d8,a),editorsList:Hb(b.getEditorsList(),d8,a),implicitEditorsList:Hb(b.getImplicitEditorsList(),d8,a),appendersList:Hb(b.getAppendersList(),d8,a),implicitAppendersList:Hb(b.getImplicitAppendersList(),d8,a),readersList:Hb(b.getReadersList(),d8,a),implicitReadersList:Hb(b.getImplicitReadersList(),d8,a),implicitAccess:X(b,10,0),restrictedReadersList:Hb(b.getRestrictedReadersList(),
d8,a),restrictedPlusReadersList:Hb(b.getRestrictedPlusReadersList(),d8,a)};a&&(c.$jspbMessageInstance=b);return c}};
var $s=function(a){Z.call(this,a,-1,Wpc)};V($s,Z);g=$s.prototype;g.getWorkspaceId=function(){return fj(this,1)};g.getName=function(){return W(this,2)};g.setName=function(a){return xl(this,2,a)};g.getTimeZone=function(){return m(this,nG,8)};g.setTimeZone=function(a){return Gb(this,8,a)};g.hasTimeZone=function(){return mj(this,8)};g.getMembersList=function(){return xb(this,e8,9)};g.getBookmarkGroupId=function(){return fj(this,14)};g.setBookmarkGroupId=function(a){Vk(this,14,a)};
g.getTeamId=function(){return W(this,20)};g.setTeamId=function(a){return xl(this,20,a)};var Xpc=function(a){return bo($s,a)},Zpc=function(a){Z.call(this,a,-1,Ypc)};V(Zpc,Z);var f8=function(a){Z.call(this,a)};V(f8,Z);f8.prototype.getHotlistId=function(){return fj(this,1)};f8.prototype.setHotlistId=function(a){Vk(this,1,a)};var e8=function(a){Z.call(this,a)};V(e8,Z);e8.prototype.getEmail=function(){return W(this,1)};e8.prototype.setEmail=function(a){return xl(this,1,a)};
var Wpc=[5,9,13,15,16,17,18],$pc=[6,7];$s.prototype.toObject=function(){return aqc(void 0,this)};
var aqc=function(a,b){if(null!=b){var c={workspaceId:fj(b,1),name:W(b,2),defaultComponentId:fj(b,3),inboxQuery:W(b,4),componentIdsList:n(ob(b,5)),componentBased:bqc(a,Al(b,Zpc,6,$pc)),hotlistBased:cqc(a,Al(b,f8,7,$pc)),timeZone:Mzb(a,b.getTimeZone()),membersList:Hb(b.getMembersList(),dqc,a),trashComponentId:fj(b,10),defaultHotlistAcls:Vpc(a,m(b,Upc,11)),updateTime:Nu(a,m(b,tj,12)),triageActionsList:Hb(xb(b,S7,13),Fpc,a),bookmarkGroupId:fj(b,14),defaultSavedViewsList:Hb(xb(b,P7,15),tpc,a),tagMigrationJobDatasList:Hb(xb(b,
cpc,16),epc,a),kanbanMigrationJobData:$oc(a,m(b,Yoc,19)),customStatusesList:Hb(xb(b,Uoc,17),Voc,a),boardColumnsList:Hb(xb(b,E7,18),Roc,a),teamId:W(b,20)};a&&(c.$jspbMessageInstance=b);return c}},Ypc=[1,2];Zpc.prototype.toObject=function(){return bqc(void 0,this)};var bqc=function(a,b){if(null!=b){var c={componentIdsList:n(ob(b,1)),sourceSyncStateList:Hb(xb(b,Q7,2),upc,a)};a&&(c.$jspbMessageInstance=b);return c}};f8.prototype.toObject=function(){return cqc(void 0,this)};
var cqc=function(a,b){if(null!=b){var c={hotlistId:fj(b,1),sourceSyncState:upc(a,m(b,Q7,2))};a&&(c.$jspbMessageInstance=b);return c}};e8.prototype.toObject=function(){return dqc(void 0,this)};var dqc=function(a,b){if(null!=b){var c={email:W(b,1),isGroup:bj(b,2)};a&&(c.$jspbMessageInstance=b);return c}};
var eqc=function(a){Z.call(this,a)};V(eqc,Z);eqc.prototype.getWorkspaceId=function(){return fj(this,1)};eqc.prototype.toObject=function(){var a=null!=this?{workspaceId:fj(this,1)}:void 0;return a};
var fqc=new xG("/google.corp.devtools.worktracker.v1.WorkspaceService/Get",eqc,$s,function(a){return a.serialize()},Xpc);
var g8=function(a){Z.call(this,a)};V(g8,Z);g8.prototype.setWorkItemId=function(a){return Yn(this,1,gqc,a)};var hqc=function(a){Z.call(this,a)};V(hqc,Z);var gqc=[1,2];g8.prototype.toObject=function(){if(null!=this){var a=n(Hr(this,1,gqc));var b=null!=Al(this,hqc,2,gqc)?{}:void 0;a={workItemId:a,userWorkspacesRequest:b}}else a=void 0;return a};hqc.prototype.toObject=function(){var a=null!=this?{}:void 0;return a};
var jqc=function(a){Z.call(this,a,-1,iqc)};V(jqc,Z);var iqc=[1];jqc.prototype.toObject=function(){var a=null!=this?{workspacesList:Hb(xb(this,$s,1),aqc)}:void 0;return a};
var kqc=new xG("/google.corp.devtools.worktracker.v1.WorkspaceService/List",g8,jqc,function(a){return a.serialize()},function(a){return bo(jqc,a)});
var lqc=function(a){Z.call(this,a)};V(lqc,Z);lqc.prototype.toObject=function(){var a=null!=this?{workspace:aqc(void 0,m(this,$s,1)),updateMask:hH(void 0,m(this,gH,2))}:void 0;return a};
var mqc=new xG("/google.corp.devtools.worktracker.v1.WorkspaceService/Update",lqc,$s,function(a){return a.serialize()},Xpc);
var nqc=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new eH(b);this.hostname_=a};nqc.prototype.get=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Get",a,b||{},fqc)};nqc.prototype.list=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/List",a,b||{},kqc)};
nqc.prototype.update=function(a,b){return sG(this.client_,this.hostname_+"/$rpc/google.corp.devtools.worktracker.v1.WorkspaceService/Update",a,b||{},mqc)};
var oqc={},pqc;oqc.Authorization=null!=(pqc=Ho([]))?pqc:"";oqc["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";oqc["X-Goog-AuthUser"]="0";
var h8=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)},qqc=function(a,b){return a.activeSession.isExternalSession()?(0,U.of)([]):(0,U.from)(a.client.list((new g8).setWorkItemId("b/"+
b),oqc)).pipe(S(J6a(b)),Sf(function(){return(0,U.of)([])}))};h8.\u0275fac=function(a){return new (a||h8)(t(yH),t(i8))};h8.\u0275prov=lc({token:h8,factory:h8.\u0275fac,providedIn:"root"});var i8=function(){};i8.prototype.create=function(a){return new nqc(a)};i8.\u0275fac=function(a){return new (a||i8)};i8.\u0275prov=lc({token:i8,factory:i8.\u0275fac,providedIn:"root"});
var rqc=0,j8=function(a){this.elementRef=a;this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.headerId="b-collapsible-panel-header-"+rqc;this.id="b-collapsible-panel-"+rqc;rqc++};j8.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
ji.Object.defineProperties(j8.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"}}});j8.\u0275fac=function(a){return new (a||j8)(C(wd))};
j8.\u0275cmp=w({type:j8,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",title:"title"},ngContentSelectors:["*"],decls:7,vars:8,consts:[[1,"collapsible-panel"],[1,"title-bar","unstyled-button",3,"click","mouseup"],[1,"title"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(Ee(),F(0,"div",0)(1,"button",1),J("click",function(){return b.toggleExpansion()})("mouseup",
function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,"span",2),P(3),G(),H(4,"mat-icon",3),G(),F(5,"div",4),Fe(6),G()());a&2&&(B(1),oe("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(2),Ke(b.title),B(1),D("@expandCollapseIcon",b.expandedState),B(1),D("@expandCollapseContent",b.expandedState),oe("id",b.id)("aria-labelledby",b.headerId))},dependencies:[XE],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%]   .content[_ngcontent-%COMP%]{overflow:hidden}'],
data:{animation:[Ch("expandCollapseContent",[Fh("expanded",Eh({height:"*",visibility:"visible"})),Fh("collapsed",Eh({height:"0",visibility:"hidden"})),Gh("expanded <=> collapsed",[Dh("200ms")])]),Ch("expandCollapseIcon",[Fh("expanded",Eh({transform:"rotate(-180deg)"})),Fh("collapsed",Eh({transform:"*"})),Gh("expanded <=> collapsed",[Dh("200ms")])])]}});
var M6a=function(a){return[a]},P6a=function(){return[]},B7a=function(a){return{$implicit:a}},k8=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){var L=this;this.activeSession=a;this.editIssueService=b;this.issueFridge=c;this.issuePermissionService=d;this.issueDetailsBrain=e;this.constants=f;this.refreshMonitor=h;this.userPreferencesManager=k;this.documentationLinks=q;this.workspaceService=u;this.changelistApi=x;this.issueMarkAsDuplicateDialogService=E;this.analytics=I;this.issueInsightsSidebarService=N;this.issueId$=
new U.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Wf());this.issue$=this.distinctIssueId$.pipe(ig(function(T){return L.editIssueService.editableIssue$(T)}));this.enablePeoplekitAc=AH(this.activeSession,"enablePeoplekitUserAc");this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.showSloStatus=this.sessionIsInternal;this.showChangelists=!this.sessionIsExternal;this.defaultAssigneeQuickActionEnabled=this.sessionIsInternal;
this.HOTKEYS=xI;this.trackCustomField=function(T,Y){return"{"+Y.componentId+", "+Y.customFieldId+"}"};this.FieldType=iYb;this.ListFieldType=bZb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.isAllowedToEditCC$=this.issuePermissionService.isAllowedToEditCC$;this.showImplicitAccessIndicator$=this.issuePermissionService.showImplicitAccessIndicator$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;
this.shouldDisplayWtdmUi$=this.issuePermissionService.isWithinExternalComponent$.pipe(S(function(T){return!L.activeSession.isExternalSession()&&AH(L.activeSession,"enableWtdmMvpUi")&&!T}));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(S(dYa));this.component$=this.issueDetailsBrain.component$;this.effort$=this.issueDetailsBrain.effort$;this.issueFields$=this.distinctIssueId$.pipe(S(function(T){return L.editIssueService.issueFields(T)}),fg({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(ig(function(T){return T.isForgottenFourPrimary$}));
this.showHiddenFieldsLabel$=this.issueFields$.pipe(ig(function(T){return T.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(ig(function(T){return T.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(ig(function(T){return T.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(ig(function(T){return T.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(ig(function(T){return T.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(ig(function(T){return T.hiddenCustomFields$}));
this.visibleCustomFields$=this.issueFields$.pipe(ig(function(T){return T.visibleCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(S(function(T){return L.editIssueService.issueQuickActions(T)}),fg({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(ig(function(T){return T.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(ig(function(T){return T.issueStatusQuickAction$}));this.priorityChoices=this.constants.priorities.map(function(T){return{value:T,
displayText:T}});this.severityChoices=this.constants.severities.map(function(T){return{value:T,displayText:T}});this.typeChoices=this.constants.editIssueTypeChoices;this.teamHovercardInputs$=(0,U.combineLatest)([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(S(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return{teamId:Y?String(Y):"0",componentId:T?String(T):"0"}}));this.isTeamWarningDismissed$=(0,U.combineLatest)([this.issue$,this.userPreferencesManager.preferences$]).pipe(S(function(T){T=
r(T);var Y=T.next().value,ja,ha;return null==(ja=T.next().value.teamWarningPreferences)?void 0:null==(ha=ja.componentTeamWarnings)?void 0:ha.some(function(ra){return ra.componentId===Y.componentId})}));this.shouldDisplayTeamSuggestions$=(0,U.combineLatest)([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$]).pipe(S(function(T){var Y=r(T);T=Y.next().value;var ja=Y.next().value;Y=Y.next().value;return AH(L.activeSession,"enableTeamSuggestions")&&T&&
!ja&&("MISSING"===Y||"DELETED"===Y)}));this.statusChoices$=this.canonicalIssueId$.pipe(S(function(T){return[].concat(v(IJb.filter(function(Y){return"DUPLICATE"!==Y.value})),[{value:"DUPLICATE",displayText:T?"Duplicate of "+T:"Duplicate"}])}));this.workspaces$=this.distinctIssueId$.pipe(ig(function(T){return qqc(L.workspaceService,Number(T))}),fg({refCount:!0,bufferSize:1}));this.pendingChangelists$=yJb(this.refreshMonitor,this.distinctIssueId$).pipe(ig(function(T){return L.changelistApi.getPendingChangelistsForIssue(T)}),
S(function(T){return T.changelistNumbers}),S(function(T){return{cls:T,hasError:!1}}),Sf(function(){return(0,U.of)({cls:[],hasError:!0})}),fg({refCount:!0,bufferSize:1}));this.reconcileView={assignee:function(T){var Y,ja;T.value=null!=(ja=null==(Y=Ik(L.issue$))?void 0:Y.assignee)?ja:""},reporter:function(T){var Y,ja;T.value=null!=(ja=null==(Y=Ik(L.issue$))?void 0:Y.reporter)?ja:""},verifier:function(T){var Y,ja;T.value=null!=(ja=null==(Y=Ik(L.issue$))?void 0:Y.verifier)?ja:""},ccs:function(T){var Y,
ja;T.values=null!=(ja=null==(Y=Ik(L.issue$))?void 0:Y.cc)?ja:[]}}};k8.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var u7a=function(a){var b=a.issuePermissionService.isCurrentUserCCd();Zn(a.analytics,ao.EDIT_ISSUE,"toggleCC (appbar)",(!b).toString());var c=a.editIssueService.editableIssue(a.issueId),d=[];d=b?c.cc.filter(function(e){return!YN(a.issuePermissionService,e)}):[].concat(v(c.cc),[a.activeSession.getUserEmail()]);return oRb(a.editIssueService,a.issueId,d)},i7a=function(a,b,c){return bt(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.assignee(b)})},S6a=function(a,b,c){return U6a(a.editIssueService,
a.issueId,c).finally(function(){a.reconcileView.reporter(b)})},o7a=function(a,b,c){return q7a(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.verifier(b)})},q8a=function(a,b,c){return oRb(a.editIssueService,a.issueId,c).finally(function(){a.reconcileView.ccs(b)})},at=function(a,b){Zn(a.analytics,ao.EDIT_ISSUE,"quickAction (sidebar)",null==b?void 0:b.displayText);return a.editIssueService.performQuickAction(a.issueId,b)},p8a=function(a,b){var c;return hf(function(d){return(c=YBb(b))?
"DUPLICATE"===c?d.return(L1a(a.issueMarkAsDuplicateDialogService,a.issueId)):d.return(mRb(a.editIssueService,a.issueId,c)):d.return()})};k8.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(S(function(c){return b.editIssueService.savingState(c)}),ig(function(c){return Hs(c.propertiesBeingSaved,Mn(String(a)))}))};k8.\u0275fac=function(a){return new (a||k8)(C(yH),C(VR),C(hL),C(ZN),C(XN),C(ZH),C(dL),C(VI),C(dP),C(h8),C(PU),C(h6),C(FM),C(i6))};
k8.\u0275cmp=w({type:k8,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Jc],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",""],[1,"full-width",3,"defaultLineCount","readonly","title","type","isUser","values","users",
"listFieldDisabled","teamId","valuesChange"],["ccsField",""],[1,"value-action"],["class","bv2-metadata-tool bv2-metadata-link","tabindex","0","role","button",3,"disabled","matTooltip","click","keydown.enter","keydown.space",4,"ngIf"],[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",""],["tabindex","0",
"role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"matTooltip","click","keydown.enter","keydown.space"],[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&&(O(0,r8a,84,115,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.issue$))},dependencies:[j8,yx,ux,Ex,hV,LU,B4,w4,x4,y4,dJ,dN,eN,hN,fN,y7,nX,L4,fV,XE,lF,PO,t3,D7,AS,wN,yM,Fx],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 sqc={},tqc=(sqc.COMFORTABLE=330,sqc.COZY=300,sqc.COMPACT=270,sqc),l8=function(a){yI.call(this);var b=this;this.userPreferencesManager=a;this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(S(function(c){var d;return null==(d=c.themePreferences)?void 0:d.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(S(function(c){var d;return null==(d=c.layoutPreferences)?void 0:d.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new U.Subject;this.currentSidebarWidth$=(0,U.combineLatest)([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(hg(void 0))]).pipe(S(function(c){var d=r(c);c=d.next().value;var e=d.next().value;d=d.next().value;return null!=d?d:null!=e?e:tqc[null!=c?c:"COMFORTABLE"]}));(0,U.combineLatest)([this.rightSidebarWidthChanged$.pipe(Wf()),this.sidebarWidthPreference$]).pipe(xf(function(c){c=r(c);var d=c.next().value;return c.next().value!==d}),ig(function(c){c=r(c);var d=c.next().value;
c.next();return yFb(b.userPreferencesManager,{rightSidebarWidth:d})}),jg(this.destroyed$)).subscribe()};V(l8,yI);l8.\u0275dir=yI.\u0275dir;l8.prototype.ngOnInit=function(){};l8.\u0275fac=function(a){return new (a||l8)(C(VI))};
l8.\u0275cmp=w({type:l8,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[ie],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&&(F(0,"h3",0),P(1,"Issue metadata"),G(),F(2,"b-resizable-sidebar",1),J("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),Q(3,"async"),
F(4,"div",2)(5,"div",3),O(6,s8a,1,1,"edit-issue-metadata",4),G()()());if(a&2){var c;B(2);D("disableToggleBtn",!1)("hideToggleBtnOnOpen",!0)("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",null!==(c=R(3,5,b.currentSidebarWidth$))&&void 0!==c?c:0);B(4);D("ngIf",b.issueId)}},dependencies:[ux,QO,k8,Fx],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});
var m8=function(a,b){yI.call(this);var c=this;this.el=a;this.router=b;this.router.events.pipe(xf(v8a),jg(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(xf(u8a),jg(this.destroyed$)).subscribe(function(d){t8a(c.el.nativeElement,["scrollY",c.rememberScroll,d.url].join("-"))})};V(m8,yI);
m8.\u0275fac=function(a){return new (a||m8)(C(wd),C(Gk))};m8.\u0275dir=w({type:m8,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},features:[ie]});var n8=function(){};n8.\u0275fac=function(a){return new (a||n8)};n8.\u0275mod=Cc({type:n8});n8.\u0275inj=mc({imports:[Mx,QI]});
var I8a=function(){return{exact:!0}},o8=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa){yI.call(this);var Ka=this;this.paramsService=a;this.issueFridge=b;this.onboardingDialogService=c;this.activeSession=d;this.permissions=e;this.editIssueService=f;this.counts=h;this.appEvents=k;this.issueInteractionsTracking=q;this.checkBeforeExit=u;this.butterBar=x;this.routerEvents=E;this.devopsGraph=I;this.refreshMonitor=N;this.eventsForIssueFridge=L;this.issueFetchResponseFridge=T;this.hotlistFridge=
Y;this.permissionsFridge=ja;this.issueRelationshipsFridge=ha;this.issueService=ra;this.errorHandler=Fa;this.STATUS_IS_FEATURED=KJb;this.id$=hM(this.paramsService,"issueId").pipe(Wf());this.issue$=this.id$.pipe(ig(this.issueFridge.watch));this.snapshot$=this.issue$.pipe(S(function(Ca){return null==Ca?void 0:Ca.snapshot[0]}));this.archived$=this.snapshot$.pipe(S(function(Ca){return null==Ca?void 0:Ca.isArchived}));this.deleted$=this.snapshot$.pipe(S(function(Ca){return null==Ca?void 0:Ca.isDeleted}));
this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(S(function(Ca){return Ca?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(S(function(Ca){return(null==Ca?void 0:Ca.isArchived)&&!(null==Ca?0:Ca.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(S(function(Ca){return null==Ca?void 0:Ca.snapshot[0].status}),S(function(Ca){return Yl[Ca]}));this.prettyStatus$=this.status$.pipe(xf(cl),S(function(Ca){return uL[Ca]}));this.title$=this.issue$.pipe(S(function(Ca){var La;
return null!=(La=null==Ca?void 0:Ca.snapshot[0].title)?La:""}));this.issuesBeingBlocked$=this.issue$.pipe(S(function(Ca){var La;return null!=(La=null==Ca?void 0:Ca.snapshot[0].blockingIssueId)?La:[]}),Vf(1E3),ig(this.issueFridge.watchSet));this.issue$.pipe(S(function(Ca){var La;return null!=(La=null==Ca?void 0:Ca.snapshot[0].duplicateIssueId)?La:[]}),Vf(1E3),ig(this.issueFridge.watchSet));this.userHasReadAccess$=this.issueFetchResponseFridge.error$.pipe(S(function(Ca){if(403===Ca.status&&Ka.activeSession.isInternalSession())return!1;
Ka.errorHandler.errorHandler(null,Ca);return!0}),hg(!0),fg({refCount:!0,bufferSize:1}));this.issueMetadata$=(0,U.defer)(function(){return Ka.id$}).pipe(xf(cl),ig(function(Ca){return Ka.issueService.getMetadata(Number(Ca))}),fg({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(v(AH(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]))};V(o8,yI);o8.\u0275dir=yI.\u0275dir;
o8.prototype.ngOnInit=function(){var a=this,b,c,d;return hf(function(e){if(1==e.nextAddress)return b=EC,c=b.assertExists,jf(e,(0,U.firstValueFrom)(a.id$),2);d=c.call(b,e.yieldResult);a.appEvents.issueViewed.next(d);YQb(a.issueInteractionsTracking,d);a.subscriptions.add(LY(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(xf(cl),
Xf()).subscribe(function(f){jL(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);mL(a.issueFetchResponseFridge,d);a.eventsForIssueFridge.poke(d);a.hotlistFridge.pokeMany(wJb);jL(a.issueFridge,[d])}));a.destroyed$.subscribe(function(){a.devopsGraph.close();ZQb(a.issueInteractionsTracking,d);a.editIssueService.clear(d)});
kf(e)})};o8.prototype.ngAfterViewInit=function(){this.onboardingDialogService.openIfNecessary()};o8.\u0275fac=function(a){return new (a||o8)(C(gM),C(hL),C(x7),C(yH),C(ZN),C(VR),C(V6),C(BK),C(OR),C(KY),C(sK),C(TI),C(U5),C(dL),C(wL),C(kL),C(bL),C(TL),C(SL),C(EK),C(xK))};
o8.\u0275cmp=w({type:o8,selectors:[["issue-details-wrapper"]],features:[Me([{provide:y3b,useValue:x3b},MX,uI,WR,{provide:pW,useClass:a6}]),ie],decls:6,vars:7,consts:[["class","a11y-only",4,"ngIf"],["class","flex-kids-y pos-fill",3,"issue-editor-false",4,"ngIf","ngIfElse"],["showNoAccessScreen",""],[1,"a11y-only"],[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"],[1,"pos-fill",2,"bottom","auto","height","6px",3,"title"],[1,"flex-kids-x","space-between","border-bottom","padded-s-bottom",3,"ngClass"],[3,"issueId"],[1,"flex-kids-y","padded-s-top","padded-s-right","align-items-end","justify-flex-end"],
[1,"flex-kids-x","gap-s"],["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-access-denied"],[3,"issueMetadata"]],template:function(a,b){a&1&&(O(0,w8a,2,1,"h2",0),Q(1,"async"),O(2,M8a,15,19,"div",1),Q(3,"async"),
O(4,N8a,3,3,"ng-template",null,2,Pf));if(a&2){var c=M(5);D("ngIf",R(1,3,b.id$));B(2);D("ngIf",R(3,5,b.userHasReadAccess$))("ngIfElse",c)}},dependencies:[xx,yx,ux,FI,KI,LI,rB,RW,SW,QY,sA,lF,jI,kI,t7,j7,u7,h2,l8,m8,v7,Fx],styles:["b-pagination-one-issue[_ngcontent-%COMP%]{margin-top:-8px}issue-actions[_ngcontent-%COMP%]{margin-top:4px}[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px}[_nghost-%COMP%]     .issue-header .b-chip{margin-right:0;max-width:100%}"]});
var p8=function(a,b){yI.call(this);var c=this;this.issueFridge=a;this.butterBar=b;this.duplicateIssueIds$=new U.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"}]}};V(p8,yI);p8.\u0275dir=yI.\u0275dir;p8.prototype.ngOnInit=function(){};
p8.prototype.removeDuplicate=function(a){var b=this,c;return hf(function(d){if(1==d.nextAddress)return It(d,2),jf(d,b.issueFridge.removeDuplicate(b.issueId,a),4);if(2!=d.nextAddress)return Jt(d,0);c=Kt(d);uK(b.butterBar,"Could not remove duplicate "+a+". "+c);kf(d)})};ji.Object.defineProperties(p8.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((null!=a?a:[]).map(function(b){return String(b)}))}}});
p8.\u0275fac=function(a){return new (a||p8)(C(hL),C(sK))};p8.\u0275cmp=w({type:p8,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[ie],decls:2,vars:3,consts:[[4,"ngIf"],[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(O(0,O8a,2,4,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.duplicateIssueIds$))},dependencies:[ux,B6,Fx],encapsulation:2,changeDetection:0});
var q8=function(a,b,c,d){yI.call(this);var e=this;this.route=a;this.issues=b;this.issuePicker=c;this.snackBar=d;this.ROBOT_SLEEPING=akc;this.id$=this.bestRoute.paramMap.pipe(S(function(f){return f.get("issueId")}),xf(cl),kg(function(f){e.lastKnownId=f}));this.dupeUrl$=this.id$.pipe(S(function(f){return{path:"/issues",params:{q:"canonicalid:"+f}}}));this.issue$=this.id$.pipe(ig(this.issues.watch));this.duplicateIds$=this.issue$.pipe(S(function(f){var h;return null!=(h=null==f?void 0:f.snapshot[0].duplicateIssueId)?
h:[]}));this.didChooseDupes=function(f){null!=e.lastKnownId&&EJb(e.issues,e.lastKnownId,f[0]).catch(e.gotErr)};this.gotErr=function(f){e.snackBar.open($m(f)||"Error with network request","close",{panelClass:"error"})}};V(q8,yI);q8.\u0275dir=yI.\u0275dir;q8.prototype.isThinking=function(){return this.issues.isThinking()};var P8a=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1},a.didChooseDupes)};
ji.Object.defineProperties(q8.prototype,{bestRoute:{configurable:!0,enumerable:!0,get:function(){var a;return null!=(a=this.route.parent)?a:this.route}}});q8.\u0275fac=function(a){return new (a||q8)(C(mk),C(hL),C(uX),C(pK))};
q8.\u0275cmp=w({type:q8,selectors:[["ng-component"]],features:[ie],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&&(F(0,"section",0),
O(1,U8a,4,2,"ng-container",1),Q(2,"async"),G(),O(3,V8a,2,0,"aside",2));a&2&&(B(1),D("ngIf",R(2,2,b.duplicateIds$)),B(2),D("ngIf",b.isThinking()))},dependencies:[ux,KI,rB,sB,lF,aN,p8,Fx],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 8px 8px 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 r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=Cc({type:r8});r8.\u0275inj=mc({imports:[Mx,cz,Dz,wy,xy,QI,uG,UW,mH,pF,ON,qX,XO,MN,H6]});
var uqc=function(a){Z.call(this,a)};V(uqc,Z);g=uqc.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getCommentNumber=function(){return fj(this,2)};g.setCommentNumber=function(a){return l(this,2,a)};g.getPiiRetention=function(){return X(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),commentNumber:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var s8=function(a){this.executor=a};s8.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:sh(c)}c=void 0}return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:{"X-Restricted-Content-Limit":d(c)}},responseConstructor:YJ})};
s8.prototype.updateRetention=function(a,b,c){c=(new uqc).setIssueId(String(a)).setCommentNumber(b).setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:YJ})};s8.\u0275fac=function(a){return new (a||s8)(t(pI))};s8.\u0275prov=lc({token:s8,factory:s8.\u0275fac,providedIn:"root"});
var vqc=function(a){Z.call(this,a)};V(vqc,Z);g=vqc.prototype;g.getIssueId=function(){return lj(this,1)};g.setIssueId=function(a){return l(this,1,a)};g.getAttachmentId=function(){return lj(this,2)};g.setAttachmentId=function(a){l(this,2,a)};g.getPiiRetention=function(){return X(this,3,0)};g.setPiiRetention=function(a){return l(this,3,a)};g.toObject=function(){var a=null!=this?{issueId:n(p(this,1)),attachmentId:n(p(this,2)),piiRetention:n(p(this,3))}:void 0;return a};
var t8=function(a){this.executor=a};t8.prototype.updateRetention=function(a,b,c){var d=new vqc;d.setIssueId(String(a));d.setAttachmentId(String(b));d.setPiiRetention(c);return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:d,responseConstructor:Nm})};t8.\u0275fac=function(a){return new (a||t8)(t(pI))};t8.\u0275prov=lc({token:t8,factory:t8.\u0275fac,providedIn:"root"});
var u8=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T){yI.call(this);this.activeSession=a;this.documentationLinks=b;this.domSafe=c;this.matDialogService=d;this.attachmentService=e;this.cdr=f;this.differs=h;this.paths=k;this.userAccess=q;this.butterBar=u;this.errorHandler=x;this.analytics=E;this.issueCommentDialogsService=I;this.issuePermissionService=N;this.editIssueService=L;this.routeParams=T;this.isInternalSession=this.activeSession.isInternalSession();this.hasViewAccess=!1;this.actionMenuItems=[];this.attachmentRetentionSaveInProgress=
!1};V(u8,yI);u8.\u0275dir=yI.\u0275dir;u8.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;wqc(this);xqc(this)};u8.prototype.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&(wqc(this),this.cdr.markForCheck())};
u8.prototype.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
var wqc=function(a){a.actionMenuItems=[];yqc(a)&&a.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."});zqc(a)&&a.actionMenuItems.push({type:"action",action:function(){qRb(a.editIssueService,String(a.issueId),a.attachment)},label:"Restore attachment"});a.isInternalSession&&a.actionMenuItems.push({type:"action",action:function(){Emc(a.issueCommentDialogsService,String(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;Dmc(a.issueCommentDialogsService,"attachment",c).then(function(d){d&&Aqc(a,c)})},label:b?"Match issue retention...":"Revert to component retention..."})}};
u8.prototype.setHasViewAccess=function(){var a=this;this.isRestricted()?null==this.attachment?this.hasViewAccess=!1:(this.hasViewAccess=!1,gK(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};u8.prototype.getFilename=function(){var a;return(null==(a=this.attachment)?void 0:a.filename)||""};
u8.prototype.getSize=function(){var a;return(null==(a=this.attachment)?void 0:a.length)||0};var et=function(a,b){b=void 0===b?!0:b;var c;if(null==(c=a.attachment)||!c.attachmentId)throw Error("Re");c=a.paths.getAttachmentAction(a.issueId,a.attachment.attachmentId);a=a.paths.getBaseUrl()+"/"+c;return UD(a,"download",b)};u8.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)};
u8.prototype.isRestricted=function(){return"NONE_DETECTED"!==this.getPiiSeverity()};u8.prototype.getPiiSeverity=function(){var a;return Fl(null==(a=this.attachment)?void 0:a.contentVerdict)};u8.prototype.getRestrictedLabel=function(){return lqa(this.getPiiSeverity())};
var a9a=function(a){return(a=a.getPiiSeverity())?"bv2-restricted-content-limit-"+kqa(a):""},$8a=function(a,b){Zn(a.analytics,ao.RESTRICTED_CONTENT,"viewRestrictedContent","attachment");a.matDialogService.open(iP,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})},yqc=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()||YN(b,a)?!0:!1:
!1:!1}else b=!1;return b},zqc=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()||YN(b,a)?!0:!1:!1:!1}else b=!1;return b};u8.prototype.showDeleteAttachmentDialog=function(){var a;null!=(a=this.attachment)&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(String(this.issueId),this.attachment)};
var Aqc=function(a,b){var c;null!=(c=a.attachment)&&c.attachmentId?(Zn(a.analytics,ao.RESTRICTED_CONTENT,"updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(jg(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=W8a(d.getPiiRetention()),a.attachment.piiRetentionState=d.hasPiiRetentionState()?X8a(d.getPiiRetentionState()):void 0);
tK(a.butterBar,"Attachment retention updated",4E3);a.attachmentRetentionOverride=2===b?"INDEFINITE":"COMPONENT_DEFAULT";wqc(a);a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;yK(a.errorHandler,"Attachment retention update failed")}})):yK(a.errorHandler,"Attachment id is missing")},xqc=function(a){var b,c,d;hf(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===(null==(c=a.attachment)?void 0:c.attachmentId)&&(d="true"===a.routeParams.download,$8a(a,d));kf(e)})};
u8.\u0275fac=function(a){return new (a||u8)(C(yH),C(dP),C(fP),C(PB),C(t8),C(uI,2),C(tx),C(GK),C(fK),C(sK),C(xK),C(FM),C(g6),C(ZN),C(VR),C(IR))};
u8.\u0275cmp=w({type:u8,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[Me([uI]),ie,Jc],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&&(F(0,"div",0),H(1,"b-icon",1),G(),F(2,"div")(3,"div",2),P(4),F(5,"span",3),O(6,Y8a,1,3,"b-restricted-chip",4),O(7,Z8a,2,3,"span",5),G()(),F(8,"div"),P(9),O(10,b9a,2,8,"span",6),O(11,c9a,2,8,"span",6),F(12,"xap-bubble",7),O(13,d9a,3,3,"span",8),O(14,e9a,4,1,"ng-template",null,9,Pf),G()()());if(a&2){var c=M(15);B(4);Je(" ",b.getFilename()," ");B(2);D("ngIf",b.isRestricted());
B(1);D("ngIf",0<b.actionMenuItems.length);B(2);Je(" ",gua(b.getSize())," ");B(1);var d;a=b.isActive()&&Oma(null==(d=b.attachment)?void 0:d.contentType);D("ngIf",a);B(1);D("ngIf",b.isActive());B(1);D("panelTemplate",c);B(1);D("ngIf",b.isRestricted()&&!b.hasViewAccess)}},dependencies:[ux,wZ,QS,BH,sB,XE,lF,V4,AS],encapsulation:2,changeDetection:0});
var Bqc=["commentActionsMenu"],Cqc=["editDescription"],v9a=function(){return[]},v8=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){yI.call(this);var L=this;this.eventsForIssue=a;this.userPreferencesManager=b;this.issueFridge=c;this.issueReferenceResolver=d;this.activeSession=e;this.commentService=f;this.errorHandler=h;this.analytics=k;this.butterBar=q;this.userAccess=u;this.issueCommentDialogsService=x;this.issuePermissionService=E;this.commentHistoryDialogService=I;this.dateFormatter=N;this.id$=new U.ReplaySubject(1);
this.idAsNumber$=this.id$.pipe(S(function(T){return Number(T)}));this.accessLevel$=this.id$.pipe(ig(this.issueFridge.watch),S(function(T){var Y;return null==T?void 0:null==(Y=T.accessLimit)?void 0:Y.accessLevel}));this.firstEvent$=new U.ReplaySubject(1);this.firstNote$=this.firstEvent$.pipe(S(function(T){return T}));this.commentActionMenuItems$=new U.BehaviorSubject([]);this.isFormattingOverrideEnabled=!1;this.formattingMode=1;this.formattingMode$=Hk(this.firstEvent$.pipe(xf(cl),S(function(T){return bsa(T.formattingMode)})),
1);this.isRedacted$=this.firstEvent$.pipe(xf(cl),S(function(T){return T.commentRedacted}));this.isDeleted$=this.firstEvent$.pipe(xf(cl),S(function(T){return"DELETED"===T.commentDeletionStatus}));this.shouldShowRestrictedPlaceholder$=(0,U.combineLatest)([this.isRedacted$,this.isDeleted$]).pipe(S(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return!(!T||Y)}));this.isRestricted$=this.firstEvent$.pipe(xf(cl),S(function(T){return Fl(T.commentContentVerdict)}),S(function(T){if(!L.isInternalSession)return!1;
switch(T){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:sh(T)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(xf(cl),S(function(T){return T.commentRetention}));this.commentHistoryEnabled=AH(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=(0,U.combineLatest)([this.firstEvent$,this.isRedacted$]).pipe(S(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return!(!(AH(L.activeSession,"enableCommentHistoryUi")&&
0<((null==T?void 0:T.commentVersion)||0))||Y)}));this.canEditComment$=this.firstEvent$.pipe(ig(function(T){return T?L.issuePermissionService.canEditComment$(T):(0,U.of)(!1)}),fg({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Ik(L.canEditComment$)};this.isInternalSession=this.activeSession.isInternalSession();this.mayReadPii$=this.isRestricted$.pipe(ig(function(T){return T?L.mayReadPii():(0,U.of)(void 0)}));this.reporterUser$=this.id$.pipe(jg(this.destroyed$),ig(this.issueFridge.watch),
S(function(T){var Y;return null==T?void 0:null==(Y=T.snapshot[0])?void 0:Y.reporterUser}));this.reporterUserEmailAddress$=this.reporterUser$.pipe(jg(this.destroyed$),S(function(T){return(null==T?void 0:T.emailAddress)||(null==T?void 0:T.obfuscatedEmailAddress)||""}));this.isAuthorNotReporter$=(0,U.combineLatest)([this.reporterUser$,this.firstEvent$]).pipe(S(function(T){var Y=r(T);T=Y.next().value;Y=Y.next().value;return!Ei(T,null==Y?void 0:Y.userPerformingActionUser)}))};V(v8,yI);v8.\u0275dir=yI.\u0275dir;
v8.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(ig(function(b){return(0,U.defer)(function(){return gK(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Tk("error: ",c);return!1})})}))};
v8.prototype.ngOnInit=function(){var a=this;Dqc(this,1);this.id$.pipe(ig(this.eventsForIssue.watch),S(function(b){var c;return null!=(c=null==b?void 0:b.events)?c:[]}),S(function(b){return b[0]}),jg(this.destroyed$)).subscribe(function(b){a.firstEvent$.next(b)});this.canEditComment$.pipe(jg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(jg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=null!=
b.commentDisplayOverride;a.initializeActionsMenu()});this.formattingMode$.pipe(jg(this.destroyed$)).subscribe(function(b){a.formattingMode=b;Dqc(a,b)});this.issuePermissionService.canChangeCommentRetention$.pipe(jg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
v8.prototype.initializeActionsMenu=function(){var a=this,b=[];this.isFormattingOverrideEnabled||b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]});var c=Ik(this.firstEvent$);this.canEditComment()&&c&&b.push({type:"action",action:function(){ht(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:Ik(this.isRedacted$)});
Ik(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&&TMb(this.issuePermissionService,c)&&b.push({type:"action",action:function(){c.commentEtag&&Bmc(a.issueCommentDialogsService,a.id,1,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});c&&SMb(this.issuePermissionService,
c)&&b.push({type:"action",action:function(){ymc(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});this.isInternalSession&&c&&b.push({type:"action",action:function(){Cmc(a.issueCommentDialogsService,a.id,c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restriction settings..."});if(this.isInternalSession&&Ik(this.isRestricted$)&&this.issuePermissionService.canChangeCommentRetention()&&
!Ik(this.isDeleted$)){var d="COMPONENT_DEFAULT"===Ik(this.commentRetentionOverride$);b.push({type:"action",action:function(){var e=d?2:1;Dmc(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 Dqc=function(a,b){var c={};a.formattingModeMenuItems=(c[1]={type:"select",action:function(){a.formattingMode$.next(1);a.initializeActionsMenu()},label:"Classic",selected:1===b},c[2]={type:"select",action:function(){a.formattingMode$.next(2);a.initializeActionsMenu()},label:"Markdown",selected:2===b},c[3]={type:"select",action:function(){a.formattingMode$.next(3);a.initializeActionsMenu()},label:"Source",selected:3===b},c)};
v8.prototype.updateCommentRetention=function(a){var b=this,c=Ik(this.firstEvent$),d=Ik(this.idAsNumber$);c&&!c.commentNumber&&yK(this.errorHandler,"Comment number is missing");Zn(this.analytics,ao.RESTRICTED_CONTENT,"updateRetention","comment");d&&c&&this.commentService.updateRetention(d,c.commentNumber||0,a).pipe(jg(this.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);tK(b.butterBar,"Comment retention updated",4E3);b.initializeActionsMenu()},error:function(){yK(b.errorHandler,"Comment retention update failed")}})};
v8.prototype.loadRestrictedComment=function(a,b){var c=this;Zn(this.analytics,ao.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var d=(null==b?void 0:b.commentNumber)||0;b=El(Fl(null==b?void 0:b.commentContentVerdict));a&&this.commentService.get(a,d,b).pipe(Xf(),jg(this.destroyed$)).subscribe(function(e){e=Jm(e);e=Object.assign({},Ik(c.firstEvent$),e);c.firstEvent$.next(e);c.initializeActionsMenu()},function(e){var f;uK(c.butterBar,"Error showing comment "+d+": "+(null==(f=e.error)?void 0:
f.message))})};v8.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(Number(this.id),a,-1)};v8.prototype.getUserEmailIfAvailable=function(){var a;return Rl(null==(a=Ik(this.firstEvent$))?void 0:a.userPerformingActionUser)};
var f9a=function(a){var b=Ik(a.firstEvent$);b&&ht(a.issueCommentDialogsService,a.id,b).then(function(){a.editDescriptionButton.focus()})},j9a=function(a,b){var c="Last edited by ";0===b.version&&b.lastCommentEditorUser&&(c+=Ol(b.lastCommentEditorUser));b.commentLastModifiedAtDate&&(c+=" on ",COb(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).subscribe(function(d){c+=d}));return c};
ji.Object.defineProperties(v8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Ik(this.id$)}}});v8.\u0275fac=function(a){return new (a||v8)(C(wL),C(VI),C(hL),C(pW),C(yH),C(s8),C(xK),C(FM),C(sK),C(fK),C(g6),C(ZN),C(vS),C(uP))};
v8.\u0275cmp=w({type:v8,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(Hf(Bqc,5),Hf(Cqc,5));if(a&2){var c;Gf(c=Jf())&&(b.commentActionsMenu=c.first);Gf(c=Jf())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[ie],decls:2,vars:3,consts:[["id","comment1",4,"ngIf"],["id","comment1"],[1,"flex-kids-x","description-heading"],[1,"flex-1"],[1,"description-label"],["mat-stroked-button","","color","primary","class","gmat-button update-button small","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"],[1,"right-side"],["mode","datetime",3,"timestamp"],["matTooltip","Description actions",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",3,"click"],["editDescription",""],["reporterCard",""],[1,"keep-focus-ring",3,"routerLinkObj","click"],[1,"edited-label",3,"matTooltip"],[1,"description-deleted"],["showNote",""],["class","critical-feature",3,"disabled","onConfirm",4,"ngIf"],[1,"critical-feature",3,"disabled","onConfirm"],["class","critical-feature",3,"issueId","issueAccessLevel","note","formattingMode",4,"ngIf"],["class","no-description-container flex-kids-x",4,"ngIf"],[1,"critical-feature",
3,"issueId","issueAccessLevel","note","formattingMode"],[1,"no-description-container","flex-kids-x"],[1,"no-description","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&&(O(0,w9a,28,26,"div",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.firstEvent$))},dependencies:[wZ,u8,
EW,yx,ux,vP,dN,hN,YR,rB,lF,X4,ZS,$R,Fx],styles:[".description-heading[_ngcontent-%COMP%]{font-weight:400;margin:0 0 12px}.description-heading   .d-cozy[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-cozy   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:10px}.description-heading   .d-compact[_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%], .d-compact   [_nghost-%COMP%]   .description-heading[_ngcontent-%COMP%]{margin-bottom:8px}.description-heading[_ngcontent-%COMP%]   .update-button[_ngcontent-%COMP%]{height:24px;line-height:24px;min-width:40px;padding:0 8px;margin:0 4px}.description-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px;margin-right:4px;text-transform:uppercase}button[_ngcontent-%COMP%]{margin-right:2px}.edited-label[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.right-side[_ngcontent-%COMP%]   b-formatted-date-time[_ngcontent-%COMP%]{margin-right:8px}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.no-description-container[_ngcontent-%COMP%]{line-height:24px}.no-description-container[_ngcontent-%COMP%]   .no-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}.no-description-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{padding-right:4px;padding-bottom:4px}"]});
var w8=function(a,b,c,d){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(S(function(e){return e?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),hg(""))};w8.prototype.onClick=function(){var a=this,b;return hf(function(c){if(1==c.nextAddress)return a.isSaving?c.return():jf(c,(0,U.firstValueFrom)(a.on$),2);b=c.yieldResult;a.save(!b);kf(c)})};
w8.prototype.save=function(a){var b=this;Zn(this.analytics,ao.EDIT_ISSUE,"toggleShowFullHistory",String(a));this.isSaving=!0;a=(0,U.firstValueFrom)(this.prefs.save({showFullHistory:a}));a.then(function(){b.isSaving=!1;b.cdr.markForCheck()});a.catch(function(){uK(b.butterBar,'Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()})};w8.\u0275fac=function(a){return new (a||w8)(C(VI),C(nx),C(FM),C(sK))};
w8.\u0275cmp=w({type:w8,selectors:[["smart-full-history-btn"]],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&&(F(0,"button",0),J("click",function(){return b.onClick()}),Q(1,"async"),Q(2,"async"),Q(3,"async"),Q(4,"async"),O(5,x9a,1,0,"mat-icon",1),O(6,y9a,1,0,"b-spinner",2),G());a&2&&(te("on",R(1,8,b.on$)),D("matTooltip",R(2,10,b.tooltip$))("disabled",
b.isSaving),oe("aria-pressed",R(3,12,b.on$))("aria-label",R(4,14,b.tooltip$)),B(5),D("ngIf",!b.isSaving),B(1),D("ngIf",b.isSaving))},dependencies:[ux,lF,XE,rB,aN,Fx],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 x8=function(a,b,c,d,e,f){yI.call(this);this.issueFridge=a;this.eventsForIssueFridge=b;this.hotlistPickerService=c;this.issueInteractionsTracking=d;this.errorHandler=e;this.liveAnnouncer=f;this.ISSUE_TYPE_TEXT=OJb;this.STATUS_FULL_TEXT=uL;this.STATUS_TERSE=qL;this.DUPLICATE=10;this.id$=new U.ReplaySubject(1);this.issue$=this.id$.pipe(ig(this.issueFridge.watch));this.hotlistIds$=this.issue$.pipe(S(H9a));this.textOfHotlistBtn$=this.hotlistIds$.pipe(S(function(h){var k;return null!=(k=null==h?void 0:
h.length)?k:0}),S(function(h){return 5>=h?"Add Hotlist":""}));this.priority$=this.issue$.pipe(S(function(h){return null==h?void 0:h.snapshot[0].priority}),S(function(h){return Lqa[h]}));this.type$=this.issue$.pipe(S(function(h){return null==h?void 0:h.snapshot[0].type}),S(function(h){return Kqa[h]}));this.canonicalId$=this.issue$.pipe(S(function(h){return null==h?void 0:h.snapshot[0].duplicateOfIssueId}));this.statusForChip$=this.issue$.pipe(S(function(h){return null==h?void 0:h.snapshot[0].status}),
S(function(h){return Yl[h]}),S(function(h){return KJb[h]?h:void 0}));this.HOTKEYS=xI};V(x8,yI);x8.\u0275dir=yI.\u0275dir;
var E9a=function(a){return hf(function(b){return jf(b,noc(a.hotlistPickerService,a.issue$),0)})},C9a=function(a,b){var c,d;return hf(function(e){switch(e.nextAddress){case 1:return jf(e,(0,U.firstValueFrom)(a.id$),2);case 2:c=e.yieldResult;PR(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});It(e,3,4);var f=DJb(a.issueFridge,c,[],[String(b)]);return jf(e,f,6);case 6:return jf(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Lt(e);a.eventsForIssueFridge.poke(c);Mt(e,
0);break;case 3:d=Kt(e),zK(a.errorHandler,d),e.jumpTo(4)}})};ji.Object.defineProperties(x8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});x8.\u0275fac=function(a){return new (a||x8)(C(hL),C(wL),C(c7),C(OR),C(xK),C(Pz))};
x8.\u0275cmp=w({type:x8,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[ie],decls:15,vars:12,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"],[1,"thread-filters"],["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"],[3,"onedevIsHovercardReady","issueId"],["canonicalCardBody",""]],template:function(a,b){a&1&&(F(0,"div",0)(1,
"div",1),O(2,A9a,5,8,"div",2),Q(3,"async"),O(4,B9a,2,4,"span",3),Q(5,"async"),H(6,"b-issue-priority-display",4),Q(7,"async"),G(),O(8,F9a,6,5,"div",5),Q(9,"async"),F(10,"div",6),H(11,"smart-full-history-btn"),G()(),F(12,"onedev-hovercard",null,7),O(14,G9a,3,4,"b-issue-card",8),G());a&2&&(B(2),D("ngIf",R(3,4,b.statusForChip$)),B(2),D("ngIf",R(5,6,b.type$)),B(2),D("issuePriority",R(7,8,b.priority$)),B(2),D("ngIf",R(9,10,b.hotlistIds$)))},dependencies:[yx,ux,dJ,VX,dN,eN,hN,fN,nX,g2,rB,XE,lF,KI,w8,Fx],
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);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:-3px -2px 0}.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;margin-right:-9px}\n/*# sourceMappingURL=issue_description_area.css.map */"],
changeDetection:0});
var y8=function(a,b){yI.call(this);this.preferences=a;this.activeSession=b;this.enableCommentFilters=AH(this.activeSession,"enableCommentFiltering");this.selectedFilter=null;this.filters=Eqc;this.showRecentEventsFirst=!1};V(y8,yI);y8.\u0275dir=yI.\u0275dir;y8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(xf(cl),jg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b})};y8.\u0275fac=function(a){return new (a||y8)(C(VI),C(yH))};
y8.\u0275cmp=w({type:y8,selectors:[["b-event-stream-header"]],features:[ie],decls:8,vars:3,consts:[[1,"flex-kids-x","flex-spread"],[1,"comments-subtext"],[1,"flex-kids-x"],["appearance","outline","class","filter-select",4,"ngIf"],["mat-stroked-button","","color","primary",1,"gmat-button","sort-order-button",3,"click"],[4,"ngIf"],["appearance","outline",1,"filter-select"],[3,"value","valueChange"],["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&&(F(0,"div",0)(1,"span",1),P(2,"Comments"),G(),F(3,"div",2),O(4,J9a,5,3,"mat-form-field",3),F(5,"button",4),J("click",function(){BM.setBooleanAt("hasClickedCommentSortBtn")(!0);b.preferences.save({showRecentEventsFirst:!b.showRecentEventsFirst}).pipe(jg(b.destroyed$)).subscribe()}),O(6,K9a,3,0,"ng-container",5),O(7,L9a,3,
0,"ng-container",5),G()()());a&2&&(B(4),D("ngIf",b.enableCommentFilters),B(2),D("ngIf",!b.showRecentEventsFirst),B(1),D("ngIf",b.showRecentEventsFirst))},dependencies:[yx,ux,XE,rB,eC,GS,ES,nB],styles:[".comments-subtext[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:.6875rem;letter-spacing:.8px;text-transform:uppercase}.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%]     .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}.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)}"]});
var Eqc=[{name:"Full history",description:"Including everything with audit trail",displayName:"Full history"},{name:"All comments and updates",description:"Including CLs, blunderbuss, and etc.",displayName:"All"},{name:"Users' comments",description:"All human generated comments",displayName:"Users"},{name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee"}];
var z8=function(){};z8.\u0275fac=function(a){return new (a||z8)};z8.\u0275cmp=w({type:z8,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&&O(0,N9a,7,2,"ng-container",0);a&2&&D("ngIf",b.event.commentLastModifiedAtDate)},dependencies:[ux,vP],encapsulation:2,changeDetection:0});
var A8=function(){this.texts=[]};A8.prototype.getIssueId=function(a){return Number(a.text)};A8.prototype.trackByIndex=function(a){return a};A8.\u0275fac=function(a){return new (a||A8)};
A8.\u0275cmp=w({type:A8,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&&O(0,R9a,5,3,"ng-container",0);a&2&&D("ngForOf",b.texts)("ngForTrackBy",b.trackByIndex)},dependencies:[qW,yx,Ax,Bx,Cx,oS],encapsulation:2,changeDetection:0});
var B8=function(a){this.hotlists=a;this.HOTLIST_SEARCH=Zs.HOTLIST_SEARCH};B8.\u0275fac=function(a){return new (a||B8)(C(bL))};B8.\u0275cmp=w({type:B8,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(F(0,"a",0),P(1),Q(2,"async"),G());if(a&2){var c;D("href",b.HOTLIST_SEARCH(b.id),Ud);B(1);Ke((null==(c=R(2,2,b.hotlists.watch(b.id)))?null:c.name)||b.id)}},dependencies:[Fx],encapsulation:2,changeDetection:0});
var C8=function(a){var b=this;this.componentFridge=a;this.id$=new U.ReplaySubject(1);this.name$=this.id$.pipe(Wf(),ig(function(c){return b.componentFridge.watchOne(c).pipe(S(function(d){var e;return d?E2b(null==(e=d.componentPathInfo)?void 0:e.componentPathName,c):c}))}))};C8.prototype.ngOnChanges=function(){this.id$.next(this.id)};C8.\u0275fac=function(a){return new (a||C8)(C(IJ))};
C8.\u0275cmp=w({type:C8,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Jc],decls:6,vars:4,consts:[[3,"onedevHovercardTrigger"],["thisHovercard","onedevHovercard"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["cardBody",""]],template:function(a,b){a&1&&(F(0,"span",0),P(1),Q(2,"async"),G(),F(3,"onedev-hovercard",null,1),O(5,S9a,3,2,"ng-container",2),G());if(a&2){var c=M(4);D("onedevHovercardTrigger",c);B(1);Ke(R(2,2,b.name$)||b.id)}},dependencies:[dN,eN,
hN,fN,CS,Fx],encapsulation:2,changeDetection:0});
var h$a=function(a){return{"bv2-diff-newvalue-nextline":a}},B$a=function(a,b,c){return{diff:a,change:b,isLast:c}},D8=function(a,b){yI.call(this);this.activeSession=a;this.preferences=b;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=Kma;this.isLinkedItemArray=bta;this.isIssueDiff=Zsa;this.isHotlistDiff=$sa};V(D8,yI);D8.\u0275dir=yI.\u0275dir;
var Fqc=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)},Gqc=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)};D8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(xf(cl),jg(this.destroyed$)).subscribe(function(b){2>a.internalDiffs.length||AH(a.activeSession,"enableEnhancedCommentThread")&&(b&&Fqc(a)||!b&&Gqc(a))&&a.internalDiffs.reverse()})};D8.prototype.trackByIndex=function(a){return a};
var ft=function(a,b,c){return"<none>"===qja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"DATE"===a.customFieldMap[b.customFieldId].type?!0:!1},gt=function(a,b,c){return"<none>"===qja(b,c)?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&"REPEATED_DATE"===a.customFieldMap[b.customFieldId].type?!0:!1};D8.prototype.asNumber=function(a){return Number(a)};
D8.prototype.customFieldName=function(a){if(a.customFieldId){var b;return(null==(b=this.customFieldMap[a.customFieldId])?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};ji.Object.defineProperties(D8.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(v(a))}}});D8.\u0275fac=function(a){return new (a||D8)(C(yH),C(VI))};
D8.\u0275cmp=w({type:D8,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[ie],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"],["class","bv2-diff-detail",4,"ngIf"],[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"],["notIssue",""],["issueHovercard","onedevHovercard"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"href","onedevHovercardTrigger","issueId"],[3,"onedevIsHovercardReady","issueId"],["cardBody",
""],["plainLink",""],["target","_blank",3,"href"]],template:function(a,b){a&1&&(F(0,"div",0),O(1,W$a,2,1,"div",1),G(),O(2,fab,1,1,"ng-template",null,2,Pf),O(4,gab,2,0,"ng-template",null,3,Pf));a&2&&(B(1),D("ngForOf",b.internalDiffs)("ngForTrackBy",b.trackByIndex))},dependencies:[xx,yx,ux,Ex,dN,eN,hN,fN,nX,vP,ZR,qW,B8,C8],styles:["\n/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});
var Hqc=["commentActionsMenu"],pab=function(){return[]},E8=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja){yI.call(this);var ha=this;this.documentationLinks=a;this.activeSession=b;this.issueReferenceResolver=c;this.commentService=d;this.el=e;this.userAccess=f;this.butterBar=h;this.errorHandler=k;this.analytics=q;this.userPreferencesManager=u;this.issueDetailsBrain=x;this.editIssueService=E;this.issuePermissionService=I;this.commentHistoryDialogService=N;this.issueCommentDialogsService=L;this.dateFormatter=
T;this.paths=Y;this.domSafe=ja;this.issueId$=new U.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Wf());this.event$=new U.ReplaySubject(1);this.isCommentEvent=sn;this.isNonObfuscatedEmail=Gn;this.commentActionMenuItems$=new U.BehaviorSubject([]);this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingMode=1;this.commentRetentionOverride=null;a={};this.formattingModeMenuItems=(a[1]={type:"select",action:function(){ha.formattingMode=
1;ha.initializeActionsMenu()},label:"Classic",selected:!0},a[2]={type:"select",action:function(){ha.formattingMode=2;ha.initializeActionsMenu()},label:"Markdown",selected:!1},a[3]={type:"select",action:function(){ha.formattingMode=3;ha.initializeActionsMenu()},label:"Source",selected:!1},a);this.isFormattingOverrideEnabled=!1;this.canEditComment$=this.event$.pipe(ig(function(ra){return ha.issuePermissionService.canEditComment$(ra)}),fg({refCount:!0,bufferSize:1}));this.canEditComment=function(){return!!Ik(ha.canEditComment$)};
this.commentHistoryEnabled=AH(this.activeSession,"enableCommentHistoryUi");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(ig(function(ra){return ha.editIssueService.editableIssue$(ra)}));this.modifiedDateDisplay$=this.event$.pipe(S(function(ra){return new Date(ra.modifiedDate)}),ig(function(ra){return COb(ha.dateFormatter,ra)}));this.ariaLabelHeading$=
(0,U.combineLatest)([this.event$,this.modifiedDateDisplay$]).pipe(S(function(ra){var Fa=r(ra);ra=Fa.next().value;Fa=Fa.next().value;if(null==ra)ra="";else{var Ka=[];ra.commentNumber&&Ka.push("Comment #"+ra.commentNumber);ra.userPerformingActionUser&&Ka.push(Ol(ra.userPerformingActionUser));Ka.push("Modified: "+Fa);ra=Ka.join(", ")}return ra}));this.showFullHistory$=this.userPreferencesManager.showFullHistory$;this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.preEventDiffs$=
(0,U.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(S(function(ra){ra=r(ra);var Fa=ra.next().value;return ra.next().value?Fa.postDiffs:Fa.preDiffs}));this.postEventDiffs$=(0,U.combineLatest)([this.event$,this.showRecentEventsFirst$]).pipe(S(function(ra){ra=r(ra);var Fa=ra.next().value;return ra.next().value?Fa.preDiffs:Fa.postDiffs}));this.isShowingCommentTimestamp$=this.showFullHistory$.pipe(S(function(ra){return ra&&sn(ha.event)&&!!ha.event.unlinkifiedComment&&(0<ha.event.preDiffs.length||
0<ha.event.postDiffs.length)}));this.getCommentNumberLink=function(ra){return fn(ha.issueId,{comment:ra})}};V(E8,yI);E8.\u0275dir=yI.\u0275dir;
E8.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(jg(this.destroyed$)).subscribe(function(){sn(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=(0,U.of)(void 0)});Iqc(this);this.userPreferencesManager.textDisplayPreferencesSubject$.pipe(jg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=
null!=b.commentDisplayOverride;a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(jg(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(jg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(jg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
var Iqc=function(a){if(a.formattingMode){for(var b=r(Object.values(a.formattingModeMenuItems)),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.formattingModeMenuItems[a.formattingMode].selected=!0}};g=E8.prototype;
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||yK(this.errorHandler,"Comment number is missing");Zn(this.analytics,ao.RESTRICTED_CONTENT,"updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(jg(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:W8a(c.getPiiRetention()),commentRetentionState:c.hasPiiRetentionState()?X8a(c.getPiiRetentionState()):null});tK(b.butterBar,
"Comment retention updated",4E3);b.commentRetentionOverride=2===a?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){yK(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&&(this.formattingMode=bsa(this.event.formattingMode),0===this.formattingMode&&(this.formattingMode=1));this.initializeActionsMenu()};
g.getRestrictedLabel=function(){return lqa(Fl(this.event.commentContentVerdict))};g.isRestricted=function(){if(!this.isInternalSession)return!1;var a=Fl(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "PII_SEVERITY_UNSPECIFIED":return!1;case "PII":case "SPII":return!0;default:sh(a)}};g.isDeleted=function(){return"DELETED"===this.event.commentDeletionStatus};var it=function(a){var b;return(null==(b=a.event)?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};g=E8.prototype;
g.loadRestrictedComment=function(){var a=this;Zn(this.analytics,ao.RESTRICTED_CONTENT,"viewRestrictedContent","comment");var b=String(this.issueId),c=this.event.commentNumber||0,d=El(Fl(this.event.commentContentVerdict));this.commentService.get(b,c,d).pipe(Xf()).subscribe(function(e){e=Jm(e);a.deobfuscatedEvent=Object.assign({},a.event,e);a.initializeActionsMenu()},function(e){var f;uK(a.butterBar,"Error showing comment "+c+": "+(null==(f=e.error)?void 0:f.message))})};
g.initializeActionsMenu=function(){var a=this,b=[];if(this.isCommentEvent(this.event)&&(this.isFormattingOverrideEnabled||(b.push({type:"submenu",label:"View as...",items:[this.formattingModeMenuItems[1],this.formattingModeMenuItems[2],this.formattingModeMenuItems[3]]}),Iqc(this)),this.canEditComment()&&b.push({type:"action",action:function(){ht(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment...",
disabled:it(this)}),this.commentHistoryEnabled&&0<(this.event.commentVersion||0)&&!it(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:it(this)}),this.isDeleted()||this.activeSession.isAnonymous()||b.push({type:"action",action:function(){vmc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to...",disabled:it(this)}),TMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){Bmc(a.issueCommentDialogsService,
String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),SMb(this.issuePermissionService,this.event)&&b.push({type:"action",action:function(){ymc(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(){Cmc(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;Dmc(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)};g.getUserEmailIfAvailable=function(){return Rl(this.event.userPerformingActionUser)};g.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};g.mayReadPii=function(){var a=gK(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Tk("error: ",b);return!1});return(0,U.from)(a)};
ji.Object.defineProperties(E8.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});E8.\u0275fac=function(a){return new (a||E8)(C(dP),C(yH),C(pW),C(s8),C(wd),C(fK),C(sK),C(xK),C(FM),C(VI),C(XN),C(VR),C(ZN),C(vS),C(g6),C(uP),C(GK),C(fP))};
E8.\u0275cmp=w({type:E8,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&Hf(Hqc,5);if(a&2){var c;Gf(c=Jf())&&(b.commentActionsMenu=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",event:"event"},features:[ie,Jc],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","matTooltip","Comment 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"],["mode","time","class","float-right muted type-s",3,"timestamp",4,"ngIf"],["class","muted italic",4,"ngIf"],[3,"disabled","onConfirm",4,"ngIf"],[3,"issueId","issueAccessLevel","note","formattingMode",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"],[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"],["matTooltip","Comment actions",1,"issue-detail-actions",3,"buttonLabel","menuItems"],["commentActionsMenu",""],[1,"bv2-event-major-status"],[3,"texts"],[3,"diffs","customFieldMap","effortSpecName","effortEnabled"],["mode","time",1,"float-right","muted","type-s",3,"timestamp"],
[1,"muted","italic"],[3,"disabled","onConfirm"],[3,"issueId","issueAccessLevel","note","formattingMode"],[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&&(O(0,Cab,37,30,"ng-container",0),Q(1,"async"));a&
2&&D("ngIf",R(1,1,b.issue$))},dependencies:[wZ,u8,EW,yx,ux,Ex,vP,dN,hN,D8,YR,V4,X4,ZS,aS,$R,pS,z8,A8,Fx],styles:[".bv2-event-user[_ngcontent-%COMP%]{font-weight:400;margin:0 0 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}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});
var F8=function(a,b,c,d,e,f,h,k){yI.call(this);var q=this;this.formattedCommentsForIssueFridge=a;this.preferences=b;this.eventsForIssue=c;this.editIssueService=d;this.issueDetailsBrain=e;this.dynamicScrollIntoView=f;this.bLocation=h;this.elementRef=k;this.showRecentEventsFirst=!1;this.issueId$=new U.ReplaySubject(1);this.internalIssueId=0;this.issue$=this.issueId$.pipe(ig(function(u){return q.editIssueService.editableIssue$(u.toString())}));this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=
this.issueDetailsBrain.isEffortEnabled$;this.events$=new U.ReplaySubject(1);this.commentsToFormat$=new U.ReplaySubject(1);this.internalEvents=[];this.allEventsToDisplay=[];this.firstEvent$=this.events$.pipe(S(function(u){return u[0]}));this.allEvents$=(0,U.combineLatest)([this.events$,this.firstEvent$]).pipe(S(function(u){var x=r(u);u=x.next().value;var E=x.next().value;if(u&&E){x=[].concat(v(u));E=Object.assign({},E,{addedAttachmentIds:[],attachments:[],commentNumber:null,formattedComment:void 0,
taggedSummary:[],isMajorEvent:!1});if(1===u.length)return[E];if(E.userPerformingAction===u[1].userPerformingAction)return u=Object.assign({},u[1],{preDiffs:[].concat(v(E.postDiffs),v(u[1].preDiffs))}),x.shift(),x[0]=u,x;x[0]=E;return x}return[]}));this.scrollToCommentOrAttachmentOnce=Ita(function(){var u=q.bLocation.hash();if(u&&q.internalEvents){var x,E=r(null!=(x=u.match(RegExp("(comment|attachment)([0-9]+)")))?x:[]);E.next();x=E.next().value;var I=E.next().value;E=x;var N=I;if("lastcomment"===
u){u=un(q.internalEvents);if(-1===u)return;N=String(u);E="comment"}E&&N&&(u=q.internalEvents.some(function(L){return L.commentNumber===Number(N)}),x=q.internalEvents.flatMap(function(L){return L.attachments}).some(function(L){return L.attachmentId===Number(N)}),(u||x)&&omc(q.dynamicScrollIntoView,{elementId:E+N,parentElement:q.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(jg(q.destroyed$)).subscribe())}})};V(F8,yI);F8.\u0275dir=yI.\u0275dir;
F8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(xf(cl),jg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b;Jqc(a)});this.allEvents$.pipe(xf(cl),jg(this.destroyed$)).subscribe(function(b){if(a.internalIssueId&&b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())(d=d.value)&&d.commentNumber&&c.push(a.internalIssueId+"-"+d.commentNumber);a.commentsToFormat$.next(c)}});this.commentsToFormat$.pipe(xf(cl),jg(this.destroyed$),ig(this.formattedCommentsForIssueFridge.watchSet)).subscribe(function(b){Kqc(a,
b)})};
var Kqc=function(a,b){a.allEventsToDisplay=[];var c,d=null!=(c=Ik(a.allEvents$))?c:[];c={};d=r(d);for(var e=d.next();!e.done;c={$jscomp$loop$prop$event$1750:c.$jscomp$loop$prop$event$1750},e=d.next())if(c.$jscomp$loop$prop$event$1750=e.value,c.$jscomp$loop$prop$event$1750.commentNumber){if(e=b.find(function(f){return function(h){return h.id.commentId===f.$jscomp$loop$prop$event$1750.commentNumber}}(c)))c.$jscomp$loop$prop$event$1750.formattedComment=e.formattedComment.formattedComment,c.$jscomp$loop$prop$event$1750.formattingMode=e.formattedComment.formattingMode,
a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1750))}else a.allEventsToDisplay.push(Object.assign({},c.$jscomp$loop$prop$event$1750));Jqc(a)};F8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(sn(a)&&!!a.unlinkifiedComment||gta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};
var Jqc=function(a){2>a.allEventsToDisplay.length||(a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate<=a.allEventsToDisplay[1].modifiedDate||!a.showRecentEventsFirst&&a.allEventsToDisplay[0].modifiedDate>=a.allEventsToDisplay[1].modifiedDate)&&a.allEventsToDisplay.reverse()};F8.prototype.isLoading=function(){return this.formattedCommentsForIssueFridge.isThinking()||this.eventsForIssue.isThinking(this.internalIssueId)};F8.prototype.trackEventByVersion=function(a,b){return b.version};
F8.prototype.scrollToHashIfPresent=function(){this.internalEvents&&0!==this.internalEvents.length&&this.scrollToCommentOrAttachmentOnce()};ji.Object.defineProperties(F8.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){a&&!wna(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a),this.scrollToHashIfPresent())}}});
F8.\u0275fac=function(a){return new (a||F8)(C(AL),C(VI),C(wL),C(VR),C(XN),C($5),C(FK),C(wd))};
F8.\u0275cmp=w({type:F8,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},features:[ie],decls:4,vars:4,consts:[["class","padded margined",4,"ngIf"],[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"padded","margined"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"]],template:function(a,b){a&1&&(O(0,Dab,2,0,"aside",0),F(1,"div",1),O(2,Fab,
2,1,"ng-container",2),G(),O(3,Gab,2,0,"aside",0));a&2&&(D("ngIf",b.isLoading()&&b.showRecentEventsFirst),B(2),D("ngForOf",b.allEventsToDisplay)("ngForTrackBy",b.trackEventByVersion),B(1),D("ngIf",b.isLoading()&&!b.showRecentEventsFirst))},dependencies:[yx,ux,E8,aN],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}"]});
var G8=function(a,b,c){yI.call(this);var d=this;this.dynamicScrollIntoView=a;this.bLocation=b;this.elementRef=c;this.scrollToCommentOrAttachmentOnce=Ita(function(){var e=d.bLocation.hash();if(e&&d.events){var f,h=r(null!=(f=e.match(RegExp("(comment|attachment)([0-9]+)")))?f:[]);h.next();f=h.next().value;var k=h.next().value;h=f;var q=k;if("lastcomment"===e){e=un(d.events);if(-1===e)return;q=String(e);h="comment"}h&&q&&(e=d.events.some(function(u){return u.commentNumber===Number(q)}),f=d.events.flatMap(function(u){return u.attachments}).some(function(u){return u.attachmentId===
Number(q)}),(e||f)&&omc(d.dynamicScrollIntoView,{elementId:h+q,parentElement:d.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(jg(d.destroyed$)).subscribe())}})};V(G8,yI);G8.\u0275dir=yI.\u0275dir;G8.prototype.ngOnChanges=function(a){a.events&&this.scrollToHashIfPresent()};G8.prototype.trackEventByVersion=function(a,b){return b.version};
G8.prototype.showEvent=function(a){return(this.showFullHistory||a.isMajorEvent)&&(sn(a)&&!!a.unlinkifiedComment||gta(a)||0<a.preDiffs.length||0<a.postDiffs.length)};G8.prototype.scrollToHashIfPresent=function(){this.events&&this.scrollToCommentOrAttachmentOnce()};G8.\u0275fac=function(a){return new (a||G8)(C($5),C(FK),C(wd))};
G8.\u0275cmp=w({type:G8,selectors:[["b-history-event-stream"]],inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",events:"events"},features:[ie,Jc],decls:2,vars:2,consts:[[1,"bv2-edit-issue-history-stream"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","bv2-event",4,"ngIf"],[1,"bv2-event"],[3,"issueId","issueAccessLevel","event"]],template:function(a,b){a&1&&(F(0,"div",0),O(1,Iab,2,1,"ng-container",1),G());a&2&&(B(1),D("ngForOf",b.events)("ngForTrackBy",
b.trackEventByVersion))},dependencies:[E8,yx,ux],encapsulation:2,changeDetection:0});
var Jab=function(a){return[a]},H8=function(a,b,c,d,e,f,h){yI.call(this);var k=this;this.eventsForIssue=a;this.issueFetchResponseFridge=b;this.preferences=c;this.activeSession=d;this.commentHistoryDialogService=e;this.issueDetailsBrain=f;this.errorHandler=h;this.id$=new U.ReplaySubject(1);this.events$=this.id$.pipe(ig(this.eventsForIssue.watch),S(function(q){var u;return null!=(u=null==q?void 0:q.events)?u:[]}));this.issue$=this.id$.pipe(ig(function(q){return lL(k.issueFetchResponseFridge,q)}));this.idNumber$=
this.id$.pipe(S(Number));this.accessLevel$=this.issue$.pipe(S(function(q){var u,x;return null==q?void 0:null==(u=q.issue)?void 0:null==(x=u.accessLimit)?void 0:x.accessLevel}));this.enableEnhancedCommentThread=AH(this.activeSession,"enableEnhancedCommentThread")};V(H8,yI);H8.\u0275dir=yI.\u0275dir;
H8.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=Ik(a.id$);d&&a.commentHistoryDialogService.show(Number(d),c,null!=b?b:-1)}}));this.subscriptions.add(this.eventsForIssue.error$.subscribe(function(b){a.errorHandler.errorHandler(null,b)}))};ji.Object.defineProperties(H8.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
H8.\u0275fac=function(a){return new (a||H8)(C(wL),C(kL),C(VI),C(yH),C(vS),C(XN),C(xK))};
H8.\u0275cmp=w({type:H8,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[ie],decls:6,vars:6,consts:[[3,"events","issueId","issueAccessLevel","showFullHistory",4,"ngIf"],[3,"issueId","events","issueAccessLevel","showFullHistory",4,"ngIf","ngIfElse"],["legacyCommentThread",""],["class","padded margined",4,"ngIf"],[3,"events","issueId","issueAccessLevel","showFullHistory"],[3,"issueId","events","issueAccessLevel","showFullHistory"],[3,"issueId","issueAccessLevel","events","showFullHistory"],
[1,"padded","margined"]],template:function(a,b){a&1&&(O(0,Kab,4,12,"b-history-event-stream",0),Q(1,"async"),O(2,Lab,5,12,"b-event-stream",1),O(3,Mab,6,15,"ng-template",null,2,Pf),O(5,Nab,2,0,"aside",3));if(a&2){var c=M(4),d;D("ngIf",!b.enableEnhancedCommentThread&&(null==(d=R(1,4,b.issue$))?null:d.firstEvent));B(2);D("ngIf",b.enableEnhancedCommentThread)("ngIfElse",c);B(3);D("ngIf",b.eventsForIssue.isThinking(b.id)&&!b.enableEnhancedCommentThread)}},dependencies:[ux,F8,G8,aN,Fx,Lx],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});
var Uab=function(a,b){return{empty:a,"never-focused":b}},I8=function(a,b,c,d,e,f,h,k){var q=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.issueId$=new U.ReplaySubject(1);this.distinctIssueId$=this.issueId$.pipe(Wf());this.issue$=this.distinctIssueId$.pipe(ig(function(u){return q.editIssueService.editableIssue$(u)}));this.wasFocused=!1;this.commentSubmitted=
new Jw;this.HOTKEYS=xI;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(S(function(u){return u.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(S(function(u){return q.editIssueService.issueCommentDraft(u)}));
this.judgementForNewContent$=this.issueCommentDraft$.pipe(ig(function(u){return u.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(ig(function(u){return u.comment$}));this.events$=this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(S(function(u){return q.editIssueService.savingState(u)}));this.isSaving$=this.savingState$.pipe(ig(function(u){return Hs(u.propertiesBeingSaved,Mn("comment"))}));this.commentLimitReached$=this.events$.pipe(S(function(u){var x=q.activeSession.getCommentNumberLimit();
return un(u)>=x}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(S(function(u){return u?"The comment limit has been reached and no additional comments are permitted.":q.activeSession.isAnonymous()?"Sign in to use full features.":q.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=(0,U.combineLatest)([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(S(function(u){var x=r(u);u=x.next().value;
var E=x.next().value;x=x.next().value;return u&&!E&&!x}));this.commentDraftUpdated$=new U.BehaviorSubject(!0);this.commentButtonEnabled$=(0,U.combineLatest)([this.hasAclToComment$,this.comment$,this.isSaving$,this.commentDraftUpdated$]).pipe(S(function(u){var x=r(u);u=x.next().value;var E=x.next().value;x=x.next().value;return u&&PQb(E)&&!x}));this.empty$=(0,U.combineLatest)([this.comment$,this.commentDraftUpdated$]).pipe(S(function(u){var x,E;return null!=(E=null==(x=r(u).next().value)?void 0:x.value)?
E:""}),S(function(u){return 0===u.length}))};I8.prototype.toggleAutoCcOnComment=function(){var a=this,b;return hf(function(c){b=!Fi(a.userPreferencesManager.preferencesSubject$.getValue()).autoCcOnComment;Zn(a.analytics,ao.EDIT_ISSUE,"toggleAutoCcOnComment",String(b));return jf(c,(0,U.firstValueFrom)(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
I8.prototype.saveCommentDraft=function(){var a=this,b;return hf(function(c){if(1==c.nextAddress)return jf(c,(0,U.firstValueFrom)(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(qo(Number(a.internalIssueId)),b.value);a.commentDraftUpdated$.next(!0);kf(c)})};I8.prototype.submitCommentBox=function(){var a=this;return hf(function(b){if(1==b.nextAddress)return jf(b,a.issueCommentDialogsService.submitCommentBox(a.internalIssueId),2);a.commentSubmitted.emit();kf(b)})};
I8.prototype.showNewContentJudgementDialog=function(){var a=this;return hf(function(b){return jf(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};ji.Object.defineProperties(I8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}}});I8.\u0275fac=function(a){return new (a||I8)(C(ZN),C(VI),C(VR),C(FM),C(uR),C(yH),C(XN),C(g6))};
I8.\u0275cmp=w({type:I8,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",""],[1,"goog-inline-block"],["format","fill",3,"disabled",
"onAction","click"],["class","goog-inline-block vertical-centered",4,"ngIf"],[3,"accessLevel"],["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"]],template:function(a,b){a&1&&(O(0,Wab,2,1,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.issue$))},dependencies:[hO,$W,DW,xx,ux,BS,dJ,fQ,Fx],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 J8=function(){this.images=[]};J8.\u0275fac=function(a){return new (a||J8)};
J8.\u0275cmp=w({type:J8,selectors:[["inline-images-summary"]],inputs:{images:"images"},decls:2,vars:1,consts:[[1,"container"],["class","image-wrapper",4,"ngFor","ngForOf"],[1,"image-wrapper"],["tabindex","0",3,"showByDefault","alt","src"],[1,"comment-info"],[3,"onedevHovercardTrigger"],["personCard",""],[3,"email",4,"ngIf"],[1,"keep-focus-ring",3,"href"],[3,"email"]],template:function(a,b){a&1&&(F(0,"div",0),O(1,Yab,10,8,"div",1),G());a&2&&(B(1),D("ngForOf",b.images))},dependencies:[yx,ux,dN,hN,YR,
VO],styles:[".container[_ngcontent-%COMP%]{align-items:flex-start;display:flex;flex-flow:row wrap;justify-content:flex-start}.image-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.image-wrapper[_ngcontent-%COMP%]   .comment-info[_ngcontent-%COMP%]{margin:0 8px}[_nghost-%COMP%]   b-secure-image-widget[_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%]   b-secure-image-widget[_ngcontent-%COMP%]:focus{border-color:#d2e3fc;border-color:var(--primary-c100)}[_nghost-%COMP%]   b-secure-image-widget[_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%}"]});
var K8=function(a,b){var c=this;this.issueFridge=a;this.eventsForIssueFridge=b;this.issueReferences$=new U.ReplaySubject(1);this.currentIssueId$=new U.ReplaySubject(1);this.commentNumberToEventMap=this.currentIssueId$.pipe(ig(function(d){return c.eventsForIssueFridge.watch(d)}),S(function(d){var e;return null!=(e=null==d?void 0:d.events)?e:[]}),S(function(d){return new Map(d.filter(function(e){return!!e.commentNumber}).map(function(e){return[e.commentNumber,e]}))}));this.issuesMap$=this.issueReferences$.pipe(xf(cl),
ig(function(d){var e=Fj(d.map(function(f){return f.issueId}));return c.issueFridge.watchSet(e).pipe(S(function(f){return new Map(f.map(function(h){return[null==h?void 0:h.issueId.toString(),h]}))}),S(function(f){return new Map(e.map(function(h){return[h,f.get(h)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(xf(cl),S(function(d){var e=new Map;d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=f.issueId.toString();e.has(h)?e.get(h).push(f):e.set(h,[f])}return e}));this.mentionedBugs$=
(0,U.combineLatest)([this.issueReferencesMap$,this.issuesMap$,this.commentNumberToEventMap]).pipe(S(function(d){d=r(d);var e=d.next().value,f=d.next().value,h=d.next().value;return[].concat(v(f)).map(function(k){var q=r(k);k=q.next().value;q=q.next().value;var u=e.get(k).map(function(x){x=x.commentNumber;var E,I,N=null==(E=h.get(x))?void 0:null==(I=E.userPerformingActionUser)?void 0:I.emailAddress;return{commentNumber:x,author:N}});return{issueId:k,sourceComments:u,title:q?q.snapshot[0].title:"Title not available",
priority:q?q.snapshot[0].priority:null}})}))};K8.prototype.ngOnInit=function(){};ji.Object.defineProperties(K8.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)}}});K8.\u0275fac=function(a){return new (a||K8)(C(hL),C(wL))};
K8.\u0275cmp=w({type:K8,selectors:[["b-mentioned-bugs"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId"},decls:2,vars:3,consts:[[4,"ngIf"],["class","mentioned-bug",4,"ngFor","ngForOf"],[1,"mentioned-bug"],[1,"bug-info"],[1,"bug-metadata"],["class","comment-number",4,"ngFor","ngForOf"],[1,"comment-number"],[3,"email"],[3,"href",4,"ngIf"],[3,"href"]],template:function(a,b){a&1&&(O(0,bbb,6,2,"ng-container",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.mentionedBugs$))},dependencies:[yx,
ux,jR,Fx],changeDetection:0});
var L8=function(){QA.apply(this,arguments)};V(L8,QA);L8.\u0275fac=function(){var a;return function(b){return(a||(a=md(L8)))(b||L8)}}();L8.\u0275dir=w({type:L8,selectors:[["","expandable-tab-content",""]],features:[ie]});var M8=function(){QA.apply(this,arguments)};V(M8,QA);M8.\u0275fac=function(){var a;return function(b){return(a||(a=md(M8)))(b||M8)}}();M8.\u0275dir=w({type:M8,selectors:[["","expandable-tab-header",""]],features:[ie]});var N8=function(){QA.apply(this,arguments)};V(N8,QA);
N8.\u0275fac=function(){var a;return function(b){return(a||(a=md(N8)))(b||N8)}}();N8.\u0275dir=w({type:N8,selectors:[["","expandable-tab-icon",""]],features:[ie]});var O8=function(){};O8.prototype.ngOnInit=function(){};O8.\u0275fac=function(a){return new (a||O8)};
O8.\u0275cmp=w({type:O8,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(If(c,M8,5,Df),If(c,L8,5,Df),If(c,N8,5,Df));if(a&2){var d;Gf(d=Jf())&&(b.tabHeaderTemplate=d.first);Gf(d=Jf())&&(b.tabContentTemplate=d.first);Gf(d=Jf())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});
var cbb=function(a){return{tab:a}},P8=function(){yI.apply(this,arguments);this.internalTabKeys$=new U.ReplaySubject(1);this.ariaLabel="";this.internalExpandedTabs=new RR;this.expandedTabsChanged=new Jw;this.tabs$=new U.BehaviorSubject([]);this.trackByKey=function(a,b){return b.key}};V(P8,yI);P8.\u0275dir=yI.\u0275dir;
P8.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(hg(void 0),S(function(){return a.internalTabs.toArray()}),S(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),ig(function(b){return(0,U.combineLatest)([(0,U.of)(b),a.internalTabKeys$])}),S(function(b){b=r(b);var c=b.next().value;return b.next().value.map(function(d){return Object.assign({},{key:d},c.get(d))})})).subscribe(this.tabs$))};P8.prototype.ngOnInit=function(){};
P8.prototype.showAll=function(){for(var a=r(this.tabs$.value),b=a.next();!b.done;b=a.next())this.internalExpandedTabs.add(b.value.key);this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};P8.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
ji.Object.defineProperties(P8.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(v(a)))},get:function(){var a;return null!=(a=Ik(this.internalTabKeys$))?a:[]}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){this.internalExpandedTabs=new RR(a)},get:function(){return[].concat(v(this.internalExpandedTabs))}}});P8.\u0275fac=function(){var a;return function(b){return(a||(a=md(P8)))(b||P8)}}();
P8.\u0275cmp=w({type:P8,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&If(c,O8,5);if(a&2){var d;Gf(d=Jf())&&(b.internalTabs=d)}},inputs:{tabKeys:"tabKeys",ariaLabel:"ariaLabel",expandedTabs:"expandedTabs"},outputs:{expandedTabsChanged:"expandedTabsChanged"},features:[ie],decls:14,vars:15,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","ngIfElse"],["showAllButton",""],[1,"expandable-tabs-contents"],[4,"ngFor","ngForOf","ngForTrackBy"],["headerText",""],["mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"click"],["notExpanded",""],["svgIcon","done",1,"icon-s"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[4,"ngTemplateOutlet"],["mat-button","","title","Hide all tabs",1,"expandable-tabs-hide-all","gmat-button","small",
3,"click"],["mat-button","","title","Show all tabs",1,"expandable-tabs-show-all","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&&(F(0,"div",0)(1,"div",1),O(2,ibb,8,16,"button",2),Q(3,"async"),G(),O(4,jbb,3,0,"ng-container",3),Q(5,"async"),Q(6,"async"),O(7,kbb,2,0,"ng-template",null,4,Pf),G(),F(9,"div",5),O(10,sbb,3,3,"ng-container",6),Q(11,"async"),
G(),O(12,xbb,3,2,"ng-template",null,7,Pf));if(a&2){var c=M(8),d;B(1);oe("aria-label",b.ariaLabel);B(1);D("ngForOf",R(3,7,b.tabs$))("ngForTrackBy",b.trackByKey);B(2);D("ngIf",R(5,9,b.internalExpandedTabs.size$)===(null==(d=R(6,11,b.tabs$))?null:d.length))("ngIfElse",c);B(6);D("ngForOf",R(11,13,b.tabs$))("ngForTrackBy",b.trackByKey)}},dependencies:[yx,ux,Ex,rB,XE,Fx],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:5px 7px;border-radius:16px;border:1px solid #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)}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-color:#dadce0;border-left-color:var(--divider);border-bottom:1px solid;border-bottom-color:var(--divider);border-right-color:var(--divider);border-top-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});
var Abb=function(){return[]},Lqc={IMAGES:"SW-images",MENTIONED_BUGS:"SW-mentioned-bugs",LINKS:"SW-links"},Q8=function(a,b){yI.call(this);var c=this;this.activeSession=a;this.userPreferencesManager=b;this.TabKeys=Lqc;this.images$=new U.BehaviorSubject([]);this.shouldShowImages$=this.images$.pipe(S(function(d){return AH(c.activeSession,"enableImageSummary")&&!!d.length}));this.bugs$=new U.BehaviorSubject([]);this.shouldShowBugs$=this.bugs$.pipe(S(function(d){return AH(c.activeSession,"enableRelatedIssuesWidget")&&
!!d.length}));this.links$=new U.BehaviorSubject([]);this.shouldShowLinks$=this.links$.pipe(S(function(d){return!!d.length}));this.tabKeys$=(0,U.combineLatest)([this.shouldShowImages$.pipe(S(function(d){return{show:d,key:"SW-images"}})),this.shouldShowBugs$.pipe(S(function(d){return{show:d,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(S(function(d){return{show:d,key:"SW-links"}}))]).pipe(S(function(d){return d.filter(function(e){return e.show}).map(function(e){return e.key})}));this.shouldShowSummaryCard$=
this.tabKeys$.pipe(S(function(d){return!!d.length}));this.initiallyExpandedTabs=[].concat(v(Object.values(Lqc))).map(function(d){return BFb(c.userPreferencesManager,d)?void 0:d}).filter(cl);this.onTabExpanded$=new Jw};V(Q8,yI);Q8.\u0275dir=yI.\u0275dir;Q8.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.onTabExpanded$.pipe(Tf(1E3),ig(function(b){var c=b.expandedTabKeys;return AFb(a.userPreferencesManager,Object.fromEntries(b.allTabKeys.map(function(d){return[d,!c.has(d)]})))})).subscribe())};
Q8.\u0275fac=function(a){return new (a||Q8)(C(yH),C(VI))};
Q8.\u0275cmp=w({type:Q8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId"},features:[ie],decls:2,vars:3,consts:[[3,"tabKeys","expandedTabs","expandedTabsChanged",4,"ngIf"],[3,"tabKeys","expandedTabs","expandedTabsChanged"],["ariaLabel","Toggle screenshots widget",3,"key"],["expandable-tab-icon",""],["expandable-tab-header",""],["expandable-tab-content",""],["ariaLabel","Toggle mentioned bugs widget",3,"key"],["ariaLabel","Toggle links widget",3,"key"],["svgIcon","image",1,"icon-s"],[3,
"images"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId",4,"ngIf"],[3,"issueReferences","currentIssueId"],["svgIcon","link",1,"icon-s"]],template:function(a,b){a&1&&(O(0,Jbb,13,5,"expandable-tabs",0),Q(1,"async"));a&2&&D("ngIf",R(1,1,b.tabKeys$))},dependencies:[ux,O8,L8,M8,N8,P8,J8,XE,K8,Fx],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 R8=function(a,b,c,d,e,f,h,k,q,u){yI.call(this);var x=this;this.brain=a;this.activeSession=b;this.preferences=c;this.scrollTiming=d;this.analytics=e;this.element=f;this.editIssueService=h;this.appEvents=k;this.routePerformance=q;this.clearcut=u;this.id$=this.brain.id$;this.enableEnhancedCommentThread=AH(this.activeSession,"enableEnhancedCommentThread");this.enableSummarySection=AH(this.activeSession,"enableSummarySection");this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(xf(cl),ig(function(E){return x.editIssueService.issueCommentDraft(E).comment$}));
this.finishedRendering$=(0,U.combineLatest)([this.brain.eventsJs$.pipe(Vf(0)),Pp("#AddCommentBox textarea",this.element.nativeElement)]).pipe(Xf())};V(R8,yI);R8.\u0275dir=yI.\u0275dir;
R8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(xf(cl),jg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){Mqc(a)});Pp("#comment1 .critical-feature",this.element.nativeElement).pipe(jg(this.destroyed$)).subscribe(function(){var b=function(){G7b(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.finishedRendering$.pipe(lg(this.comment$)).subscribe(function(b){b=
r(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};R8.prototype.unloadPageHandler=function(){Mqc(this)};
var Mqc=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);Zn(a.analytics,ao.EDIT_ISSUE,"scroll","commentThread",e);CO(a.clearcut,e,"idp-time-scrolling-comments")}};
R8.\u0275fac=function(a){return new (a||R8)(C(XN),C(yH),C(VI),C(LO),C(FM),C(wd),C(VR),C(BK),C(C_),C(BO))};
R8.\u0275cmp=w({type:R8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&J("unload",function(){return b.unloadPageHandler()},!1,zd)},features:[ie],decls:6,vars:9,consts:[["class","carded margined-s bg-main",4,"ngIf"],["class","carded margined-s bg-main",3,"issueId","hidden",4,"ngIf"],["id","bv2-edit-issue-details-scroll","class","carded margined-s bg-main","tabindex","-1",3,"recent-first","bFocus",4,"ngIf"],[1,"carded","margined-s","bg-main"],[1,"margin-s-bottom",3,"id"],[3,"id"],[1,"carded",
"margined-s","bg-main",3,"issueId"],["issueSummaryCard",""],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"carded","margined-s","bg-main",3,"bFocus"],["class","margin-s-bottom",3,"id",4,"ngIf"],[4,"ngIf"],[3,"id",4,"ngIf"],[3,"issueId"]],template:function(a,b){a&1&&(O(0,Kbb,3,2,"div",0),Q(1,"async"),O(2,Lbb,3,5,"issue-summary-card",1),Q(3,"async"),O(4,Qbb,6,8,"div",2),Q(5,"async"));a&2&&(D("ngIf",b.enableEnhancedCommentThread&&R(1,3,b.id$)),B(2),D("ngIf",b.enableSummarySection&&R(3,5,b.id$)),
B(2),D("ngIf",R(5,7,b.id$)))},dependencies:[ux,I8,x8,H8,Q8,SZ,v8,y8,Fx],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}"]});
var S8=function(){};S8.\u0275fac=function(a){return new (a||S8)};S8.\u0275mod=Cc({type:S8});S8.\u0275inj=mc({imports:[Mx,zZ,RS,dI,uG,pF,mH,Z4,LS]});
var T8=function(){};T8.\u0275fac=function(a){return new (a||T8)};T8.\u0275mod=Cc({type:T8});T8.\u0275inj=mc({imports:[zZ,S8,VW,Mx,PP,ON,nS,uG,mH,Z4,$S,qS]});
var U8=function(){};U8.\u0275fac=function(a){return new (a||U8)};U8.\u0275mod=Cc({type:U8});U8.\u0275inj=mc({imports:[Mx,eI,pF,UB,QI,yO,uG,EP,nK,wy,xy,KN,mH,xA]});
var V8=function(){};V8.\u0275fac=function(a){return new (a||V8)};V8.\u0275mod=Cc({type:V8});V8.\u0275inj=mc({imports:[Mx,uG,pF,mH,fC,hC]});
var W8=function(a){yI.call(this);this.prefs=a};V(W8,yI);W8.\u0275dir=yI.\u0275dir;W8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(jg(this.destroyed$)).subscribe()};W8.\u0275fac=function(a){return new (a||W8)(C(VI))};
W8.\u0275cmp=w({type:W8,selectors:[["b-toggle-code-font"]],features:[ie],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"checked","change"]],template:function(a,b){a&1&&(Ee(),F(0,"mat-slide-toggle",0),J("change",function(c){return b.onChange(c)}),Q(1,"async"),Fe(2),G());a&2&&D("checked",R(1,1,b.prefs.codeFont$))},dependencies:[lF,nT,Fx],changeDetection:0});
var X8=function(){};X8.\u0275fac=function(a){return new (a||X8)};X8.\u0275mod=Cc({type:X8});X8.\u0275inj=mc({imports:[Mx,mH,yO,qT,pF,uG,MN]});
var Y8=function(){};Y8.\u0275fac=function(a){return new (a||Y8)};Y8.\u0275mod=Cc({type:Y8});Y8.\u0275inj=mc({providers:[c7],imports:[Mx,MS,eJ,WX,U8,ON,qX,J4,k2,V8,uG,pF,mH,QI,KN,X8]});
var Z8=function(){};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275mod=Cc({type:Z8});Z8.\u0275inj=mc({imports:[Mx,pF,uG,fC,HS]});
var Nqc=[B8,D8,C8],$8=function(){};[].concat(v(Nqc));[].concat(v(Nqc));$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275mod=Cc({type:$8});$8.\u0275inj=mc({imports:[Mx,ON,qX,PP,qS,NS,VW]});
var a9=function(){};a9.\u0275fac=function(a){return new (a||a9)};a9.\u0275mod=Cc({type:a9});a9.\u0275inj=mc({imports:[zZ,S8,VW,Mx,PP,ON,$8,nS,Z4,$S,qS]});
var b9=function(){};b9.\u0275fac=function(a){return new (a||b9)};b9.\u0275mod=Cc({type:b9});b9.\u0275inj=mc({imports:[Mx,a9,$8,uG,pF,MN]});
var Oqc=[G8],c9=function(){};[].concat(v(Oqc));[].concat(v(Oqc));c9.\u0275fac=function(a){return new (a||c9)};c9.\u0275mod=Cc({type:c9});c9.\u0275inj=mc({imports:[a9,Mx]});
var d9=function(){};d9.\u0275fac=function(a){return new (a||d9)};d9.\u0275mod=Cc({type:d9});d9.\u0275inj=mc({imports:[VW,Mx,b9,c9,T8,J4,V8,uG,pF,mH,MN,KN,qS]});
var e9=function(){};e9.\u0275fac=function(a){return new (a||e9)};e9.\u0275mod=Cc({type:e9});e9.\u0275inj=mc({imports:[iO,FX,VW,Mx,MS,wy,eJ,uG,yO,pF,gQ]});
var f9=function(){};f9.\u0275fac=function(a){return new (a||f9)};f9.\u0275mod=Cc({type:f9});f9.\u0275inj=mc({imports:[Mx,ON,nS,XO]});
var g9=function(){};g9.\u0275fac=function(a){return new (a||g9)};g9.\u0275mod=Cc({type:g9});g9.\u0275inj=mc({imports:[Mx,lS]});
var h9=function(){};h9.\u0275fac=function(a){return new (a||h9)};h9.\u0275mod=Cc({type:h9});h9.\u0275inj=mc({imports:[Mx,uG,pF,SA]});
var i9=function(){};i9.\u0275fac=function(a){return new (a||i9)};i9.\u0275mod=Cc({type:i9});i9.\u0275inj=mc({imports:[Mx,h9,f9,pF,g9]});
var j9=function(){};j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=Cc({type:j9});j9.\u0275inj=mc({imports:[cz,Dz,wy,xy,QI,uG,UW,XO,e9,qS,Y8,d9,g9,i9,TZ,T8,Z8]});
var k9=function(a,b){this.issueFridge=a;this.issueDetailsBrain=b;this.ROBOT_SLEEPING=akc;this.issue$=this.issueDetailsBrain.id$.pipe(ig(this.issueFridge.watch),xf(cl));this.relatedLinks$=this.issue$.pipe(S(function(c){return c.relatedLinks||[]}));this.issueReferences$=this.relatedLinks$.pipe(S(function(c){return c.filter(function(d){return"issueReference"===d.type})}));this.ids$=(0,U.combineLatest)([this.issueReferences$.pipe(S(function(c){return c.map(function(d){return d.issueId})})),this.issue$]).pipe(S(function(c){var d=
r(c);c=d.next().value;d=d.next().value;return Pqc(c,d)}));this.urls$=this.relatedLinks$.pipe(S(function(c){return c.filter(function(d){return"hyperlink"===d.type})}),S(function(c){return c.map(function(d){return d.href})}),S(function(c){return[].concat(v(new Set(c)))}));this.state$=(0,U.combineLatest)([this.ids$,this.urls$]).pipe(S(function(c){var d=r(c);c=d.next().value;d=d.next().value;return{ids:c,urls:d,hasNoResults:0===c.length&&0===d.length}}))},Pqc=function(a,b){var c=String(b.issueId);return[].concat(v(new Set(a))).filter(function(d){return d!==
c})};k9.\u0275fac=function(a){return new (a||k9)(C(hL),C(XN))};
k9.\u0275cmp=w({type:k9,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&&(F(0,"section",0),O(1,Wbb,4,2,"ng-container",1),Q(2,"async"),G());a&2&&(B(1),D("ngIf",R(2,1,b.state$)))},dependencies:[yx,ux,mW,B6,XE,Fx],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 l9=function(){};l9.\u0275fac=function(a){return new (a||l9)};l9.\u0275mod=Cc({type:l9});l9.\u0275inj=mc({imports:[Mx,VW,H6,pF]});
var m9=function(a,b){var c=this;this.brain=a;this.codeMentions=b;this.ROBOT_SLEEPING=akc;this.id$=this.brain.id$.pipe(xf(cl));this.codeMentionsState$=this.id$.pipe(ig(function(d){return Ylc(c.codeMentions,Number(d))}))};m9.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};m9.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};m9.\u0275fac=function(a){return new (a||m9)(C(XN),C(T5))};
m9.\u0275cmp=w({type:m9,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&&(F(0,"section",0),O(1,bcb,3,3,"ng-container",1),Q(2,"async"),G());a&2&&(B(1),D("ngIf",R(2,1,b.id$)))},dependencies:[yx,ux,P4,Fx],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 n9=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()};n9.prototype.ngOnInit=function(){this.pageTitle.setTitle("All of my hotlists");this.fetchUserHotlists()};
n9.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)})};n9.\u0275fac=function(a){return new (a||n9)(C(uI,2),C(WN),C(YK),C(GK),C(xK))};
n9.\u0275cmp=w({type:n9,selectors:[["list-hotlists-page"]],features:[Me([uI])],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&&(F(0,"h2",0),P(1,"Browse Hotlists"),G(),F(2,"div",1)(3,"a",2),P(4," Create Hotlist "),G()(),F(5,"div",3),O(6,ccb,1,1,"b-spinner",4),O(7,dcb,1,1,"b-hotlist-grid",5),G());a&
2&&(B(3),D("href",b.createHotlistPath,Ud),B(3),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[ux,aZ,aN,sB],encapsulation:2});
var Qqc=new Set(["issueId","modifiedTime","createdTime"]),o9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La){yI.call(this);var jb=this;this.cdr=a;this.routerEvents=b;this.window=c;this.bLocation=d;this.$log=e;this.issueApi=f;this.userApi=h;this.hotlistApi=k;this.activeSession=q;this.butterBar=u;this.analytics=x;this.currentSearch=E;this.issuePagination=I;this.userPreferencesManager=N;this.urlPreferences=L;this.gridPreferencesFetcher=T;this.paths=Y;this.timeout=ja;this.errorHandler=
ha;this.statusMessages=ra;this.domSafe=Fa;this.appEvents=Ka;this.hotlistFridge=Ca;this.issueFridge=La;this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=this.cachedSort=null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue",
onPress:function(){var db;null==(db=jb.resultsGrid)||R4b(db)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var db;null==(db=jb.resultsGrid)||S4b(db)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var db;null==(db=jb.resultsGrid)||Q4b(db)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var db;null==(db=jb.resultsGrid)||U4b(db)}},{keys:[Pj("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var db;null==(db=jb.resultsGrid)||V4b(db,!0)}},{keys:[Pj("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var db;null==(db=jb.resultsGrid)||V4b(db,!1)}},{keys:[Qj("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var db;null==(db=jb.resultsGrid)||db.selectAll()}},{keys:[Qj("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var db;null==(db=jb.resultsGrid)||N4b(db)}},
{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var db;null==(db=jb.gridControls)||yX(db,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var db;null==(db=jb.gridControls)||yX(db,vn.DUPLICATE,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var db;if(null!=(db=jb.gridControls)&&db.hasSelectedIssues()){var Mb;null==(Mb=db.hotlistPicker)||Mb.open()}}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var db;
null==(db=jb.gridControls)||m3b(db)}},{keys:["u",Pj("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return jb.refreshResults()}},{keys:[Qj("p","0"),Qj("p","1"),Qj("p","2"),Qj("p","3"),Qj("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(db){jb.resultsGrid&&jb.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+db}],issueIds:Ni(jb.resultsGrid.getSelectedIssues(),"issueId")}])}},{keys:["o","ENTER",Una("ENTER")],
displayAs:"o / Enter",description:"Open the current issue",onPress:function(db){var Mb=c.document.activeElement;if(1==db&&"A"==Mb.tagName)if(Mb.href)db=jb.paths.getBaseUrl(),Mi(Mb.href,db)?jb.bLocation.url(Mb.href.slice(db.length)):jb.domSafe.openInNewTab(Mb.href);else{var va;null==(va=jb.resultsGrid)||AY(va)}else if(2===db){var Ba;null==(Ba=jb.resultsGrid)||AY(Ba,{openInNewTab:!0})}else{var Ga;null==(Ga=jb.resultsGrid)||AY(Ga)}}}]};V(o9,yI);
o9.prototype.ngOnInit=function(){var a=this;Rqc(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(jg(this.destroyed$)).subscribe(function(){Rqc(a)})};
var Sqc=function(a){var b=["priority","type","title","assignee","status"];a.activeSession.isInternalSession()&&b.push("minSlo");b.push("issueId","modifiedTime");return b.map(Ui)};
o9.prototype.fetchUserHotlists=function(){var a=this;this.userApi.getUserHotlists().then(function(b){b=r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.hotlistFridge.announce(c);var d=a.hotlistMap[c.hotlistId];Ei(d,c)||(d&&za(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var Rqc=function(a){return Tqc(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?Uqc(a,a.searchResults.startIndex,a.searchResults.endIndex):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})},Vqc=function(a){return null!=a.window.document.activeElement&&a.window.document.activeElement!==a.window.document.body},Wqc=function(a){var b,c;return null!=(c=null==(b=a.window.document.activeElement)?void 0:b.classList.contains("search-box"))?c:!1},Tqc=function(a){var b=
Mj();Vqc(a)&&Wqc(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},Uqc=function(a,b,c){var d=Mj();Vqc(a)||Xqc(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},Yqc=function(a,b){var c=a.activeSession.getMaxAccurateSearchResults();b.numResults>c&&!b.isPreSort&&(b=Ln("Number of search results exceeds "+c+"; some matching issues may be omitted.",Kn("BR"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "),
c={},c=Kn("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=Ln(Kn("BR"),"See ",c," for more details."),b=a.activeSession.isInternalSession()?Ln(b,c):b,DIb(a.butterBar,b))};g=o9.prototype;
g.setSort=function(a,b,c){c=void 0===c?!0:c;var d=Ui(a);if(d){var e=new Xi(d,"ASC"==b?"ASCENDING":"DESCENDING");Aa(this.sortPreferences,function(f){return Ei(f.fieldId,e.fieldId)});!c||Qqc.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(0==this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:"CUSTOM_FIELD"==a.fieldId.type?String(a.fieldId.customFieldId):Ii(a.fieldId.type),direction:"ASCENDING"==a.direction?"ASC":"DESC"};Ei(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){dZ(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=void 0===b?Zqc:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(v(b),v(q4b(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Ui(b.name)});dZ(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&"A"===(null==(d=c.target)?void 0:d.tagName)||(Zn(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?gP(this.domSafe,a):this.bLocation.url(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var jt=function(a,b,c){void 0!==b&&a.goToPage(b+c)};g=o9.prototype;g.refreshResults=function(){KM(this.issuePagination);return Rqc(this)};
g.hasResults=function(){return this.searchResults&&0<this.searchResults.issues.length};
g.sendBulkEditRequest=function(a){var b=this;if(1===a.length&&1===a[0].actions.length&&"readState"===a[0].actions[0].fieldName){for(var c=!!a[0].actions[0].value,d=r(a[0].issueIds),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;null==(f=this.searchResults)||lLb(f,e,c)}this.cdr.detectChanges();tK(this.butterBar,"Saving changes...",0);return jL(this.issueFridge,a[0].issueIds,{markRead:c}).then(function(k){for(var q=r(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var x=void 0,E=void 0;
null==(x=b.searchResults)||lLb(x,u,void 0,null!=(E=k)?E:null)}tK(b.butterBar,"Successfully marked issues "+(c?"read.":"unread."))}).catch(function(k){for(var q=r(a[0].issueIds),u=q.next();!u.done;u=q.next()){u=u.value;var x=void 0;null==(x=b.searchResults)||lLb(x,u)}b.errorHandler.errorHandler(null,k)}).finally(function(){b.cdr.detectChanges()})}d=BQb(a).map(function(k){return k.fieldName});Zn(this.analytics,this.ANALYTICS_CATEGORY,"bulkEdit",d.join(","));var h={bulkEditOps:a};tK(this.butterBar,"Saving changes...",
0);return this.issueApi.issueBulkEdit(h).then(function(k){if(b.searchResults){b.searchResults=b.searchResults.clone();for(var q=r(b.searchResults.issues.entries()),u=q.next();!u.done;u=q.next()){var x=r(u.value);u=x.next().value;x=x.next().value;k.affectedIssues[x.issueId]&&(x=k.affectedIssues[x.issueId],u=b.searchResults.issues[u],hLb(u,x,k.componentMap[sa(x.snapshot).componentId]),u.selected=!0,b.loadHotlists(u),Object.assign(b.customFieldMap,u.customFieldMap))}}k.errors&&k.errors.length?(q="Failed to update issue(s) "+
(Ni(k.errors,"issueId").join(", ")+"."),uK(b.butterBar,q),Zn(b.analytics,b.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=FQb(b.statusMessages,h,b.customFieldMap))?tK(b.butterBar,k):tK(b.butterBar,"Saved "+CQb(h.bulkEditOps).length+" issue(s).");b.cdr.detectChanges()}).catch(function(k){b.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=r(c),e=d.next();!e.done;e=d.next())if(e=e.value,e.hotlistId){e=r(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(v(a))).then(function(){for(var h={},k=r(c),q=k.next();!q.done;h={$jscomp$loop$prop$loadedHotlists$1752:h.$jscomp$loop$prop$loadedHotlists$1752},q=k.next()){q=q.value;if(!q.hotlistId)return;
h.$jscomp$loop$prop$loadedHotlists$1752=[];q.hotlists=h.$jscomp$loop$prop$loadedHotlists$1752;q=r(q.hotlistId);for(var u=q.next();!u.done;u=q.next())u=u.value,b.hotlistMap[u]?h.$jscomp$loop$prop$loadedHotlists$1752.push(b.hotlistMap[u]):b.hotlistApi.get(u).then(function(x){return function(E){b.hotlistFridge.announce(E);b.addHotlist(E);x.$jscomp$loop$prop$loadedHotlists$1752.push(E)}}(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;Zn(this.analytics,this.ANALYTICS_CATEGORY,"createHotlist");tK(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);tK(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;tK(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(){Zn(this.analytics,this.ANALYTICS_CATEGORY,"exportCsv");hP(this.domSafe,this.getCsvUrl())};
var $qc=function(a,b){a.userPreferencesManager.save({resultsPerPage:b}).pipe(jg(a.destroyed$)).subscribe(function(){a.resultsPerPage=b;dZ(a.urlPreferences,{page:1});Zn(a.analytics,a.ANALYTICS_CATEGORY,"resultsPerPageSave",b.toString());a.refreshResults();a.cdr.detectChanges()},function(c){Sk(c)})},Xqc=function(a,b,c){var d=a.issuePagination.focusedIssueIndex_;a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{tLb(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");
e&&(e.scrollTop=0)}a.cdr.detectChanges()})},icb=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
ji.Object.defineProperties(o9.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Ei(this.issueColumnsInternal,a)||(Zn(this.analytics,this.ANALYTICS_CATEGORY,"columnModification",Jua(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 Zqc=[BY,CY,DY];
o9.\u0275fac=function(a){return new (a||o9)(C(uI),C(TI),C(Window),C(FK),C(vK),C(bK),C(YK),C(SK),C(yH),C(sK),C(FM),C(EN),C(IM),C(VI),C(cZ),C(hZ),C(GK),C(nI),C(xK),C(yR),C(fP),C(BK),C(bL),C(hL))};o9.\u0275dir=w({type:o9,features:[ie]});
var p9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va){o9.call(this,a,b,c,d,f,h,k,q,e,u,x,E,I,N,L,T,Y,ja,Ca,ha,ra,jb,Mb,va);this.hotkeys=Fa;this.pageTitle=Ka;this.routePerformance=La;this.element=db;this.ANALYTICS_CATEGORY=ao.LIST_ISSUES;this.isLoading=!0;this.showHotlists=!1};V(p9,o9);p9.\u0275dir=o9.\u0275dir;g=p9.prototype;
g.ngOnInit=function(){var a=this;o9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(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]),uK(this.butterBar,b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",FN(this.currentSearch,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,dZ(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);FN(this.currentSearch,
this.query);b=IMb(this.currentSearch);if(0<b)return QIb(this.bLocation,this.paths.viewHotlist(b)),dZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=JMb(this.currentSearch);if(0<b)return QIb(this.bLocation,this.paths.viewSavedSearch(b)),dZ(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add((0,U.concat)((0,U.timer)(0).pipe(fha()),Pp("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){G7b(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:Sqc(this)}),c=b.searchPreferences.then(function(f){f=Fi(f);f.query=a.computeQuery(f);f.returnUrl=a.bLocation.url();return JM(a.issuePagination,f)}),d;(null==(d=this.query)?0:d.includes("teamid:"))&&Zn(this.analytics,this.ANALYTICS_CATEGORY,"searchByTeam");var e;(null==(e=this.query)?0:e.includes("componentid:"))&&Zn(this.analytics,this.ANALYTICS_CATEGORY,"searchByComponent");
c.then(function(f){Yqc(a,f)}).catch(function(f){"number"===typeof f?dZ(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Ao({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();Zn(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 Ui(b.name)});CFb(this.userPreferencesManager,r4b(a)).pipe(jg(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.currentSearch.currentSearch===GMb(this.currentUserEmail)?this.pageTitle.setTitle("Assigned to me"):this.currentSearch.currentSearch==="cc:"+this.currentUserEmail?this.pageTitle.setTitle("CC'ed to me"):this.currentSearch.currentSearch==="reporter:"+this.currentUserEmail?this.pageTitle.setTitle("Reported by me"):this.currentSearch.currentSearch===HMb(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(jg(this.destroyed$)).subscribe(function(){dZ(b.urlPreferences,{page:1,sortColumns:null});b.refreshResults().finally(function(){b.isLoading=!1;b.cdr.detectChanges();icb()})})};g.getCsvUrl=function(){return this.paths.issuesCsvAction(this.query,this.sortPreferences,this.displayColumns,this.showHotlists)};
p9.\u0275fac=function(a){return new (a||p9)(C(uI),C(TI),C(jM),C(FK),C(yH),C(vK),C(bK),C(YK),C(SK),C(sK),C(FM),C(EN),C(IM),C(VI),C(cZ),C(hZ),C(GK),C(nI),C(yR),C(fP),C(bJ),C(WN),C(xK),C(C_),C(BK),C(wd),C(bL),C(hL))};
p9.\u0275cmp=w({type:p9,selectors:[["list-issues-page"]],features:[Me([uI]),ie],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","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",3,"bFocus"],[4,"ngIf","ngIfElse"],["noQuery",""],[1,"bv2-grid-container"],[3,"searchResults","focusedRowIndex","columns","enableColumnSaving","sort","init","columnsChange","sortChange","rowClick","onNextPage","onPrevPage"]],template:function(a,b){a&1&&(F(0,"h2",0),P(1,"Issue search results"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("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(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return $qc(b,c.option)}),G()()(),F(6,"div",5),O(7,ecb,4,1,"div",6),O(8,hcb,4,3,"div",7),O(9,jcb,2,5,"div",8),G());a&2&&(B(3),D("grid",b.resultsGrid)("hotlistChoices",
b.hotlistChoices),B(2),D("searchResults",b.searchResults),B(1),oe("aria-busy",b.isLoading),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&!b.hasResults()),B(1),D("ngIf",!b.isLoading&&b.hasResults()))},dependencies:[GY,yZ,zY,ux,aN,SZ],encapsulation:2});var q9=function(){};q9.\u0275fac=function(a){return new (a||q9)};q9.\u0275mod=Cc({type:q9});q9.\u0275inj=mc({imports:[$Y,BZ,uZ,iO,jO,Mx,MN,TZ]});
var r9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba){p9.call(this,a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,va,Ba);this.issueLru=Mb;this.ANALYTICS_CATEGORY="recentIssues";this.recentIds=Array.from(this.issueLru.viewed.keys());this.initialLoad=!0};V(r9,p9);r9.\u0275dir=p9.\u0275dir;r9.prototype.ngOnInit=function(){p9.prototype.ngOnInit.call(this);this.pageTitle.setTitle("Recent Issues");this.currentSearch.clear();this.initialLoad=!0};
r9.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()})};r9.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("|")};
r9.prototype.processSearchResults=function(a){this.initialLoad&&(a.params.sortColumns=[]);var b;null!=(b=a.params.sortColumns)&&b.length||(a.issues=ncb(this.recentIds,a.issues));return a};r9.\u0275fac=function(a){return new (a||r9)(C(uI),C(TI),C(jM),C(FK),C(yH),C(vK),C(bK),C(YK),C(SK),C(sK),C(FM),C(EN),C(IM),C(VI),C(cZ),C(hZ),C(GK),C(nI),C(yR),C(fP),C(bJ),C(WN),C(xK),C(C_),C(BK),C(wd),C(GN),C(bL),C(hL))};
r9.\u0275cmp=w({type:r9,selectors:[["list-issues-recent"]],features:[Me([uI]),ie],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&&(F(0,"h2",0),P(1,"Recent Issues"),G(),F(2,"div",1)(3,"b-grid-controls",2),J("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(),F(4,"div",3)(5,"b-pagination",4),J("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return $qc(b,d.option)}),G()()(),F(6,"div",5),O(7,kcb,3,0,"div",6),O(8,lcb,2,0,"div",7),O(9,mcb,2,5,"div",8),G());if(a&2){var c;B(3);D("grid",null!==(c=b.resultsGrid)&&void 0!==c?c:void 0)("hotlistChoices",b.hotlistChoices);B(2);D("searchResults",
b.searchResults);B(1);oe("aria-busy",b.isLoading);B(1);D("ngIf",b.isLoading);B(1);D("ngIf",!b.isLoading&&!b.hasResults());B(1);D("ngIf",!b.isLoading&&b.hasResults())}},dependencies:[aN,GY,yZ,zY,ux],encapsulation:2});
var s9=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};s9.prototype.ngOnInit=function(){this.sloEnabled&&(this.pageTitle.setTitle("Manage SLOs"),arc(this))};
var arc=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)})};s9.\u0275fac=function(a){return new (a||s9)(C(uI,2),C(WN),C(GK),C(eY),C(xK),C(yH))};
s9.\u0275cmp=w({type:s9,selectors:[["list-slos-page"]],features:[Me([uI])],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&&(F(0,"div",0)(1,"a",1),P(2," Create SLO "),G()(),F(3,"div",2),O(4,ocb,5,0,"div",3),O(5,pcb,1,1,"b-spinner",4),O(6,scb,3,2,"ng-container",5),O(7,wcb,6,5,"ng-container",5),G());a&2&&(B(1),D("href",b.createSloPath,Ud),B(3),D("ngIf",b.sloEnabled),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading),B(1),D("ngIf",!b.isLoading))},dependencies:[ux,
sB,XE,q_,aN],encapsulation:2});
var brc=function(a){Z.call(this,a)};V(brc,Z);g=brc.prototype;g.getAuthor=function(){return m(this,Tl,1)};g.getTimestamp=function(){return m(this,tj,2)};g.setTimestamp=function(a){return Gb(this,2,a)};g.hasTimestamp=function(){return mj(this,2)};g.getAdd=function(){return m(this,sm,3)};g.getRemove=function(){return m(this,sm,4)};g.getAddMask=function(){return m(this,gH,5)};g.getRemoveMask=function(){return m(this,gH,6)};g.toObject=function(){return crc(void 0,this)};
var crc=function(a,b){if(null!=b){var c={author:qJ(a,b.getAuthor()),timestamp:Nu(a,b.getTimestamp()),add:wJ(a,b.getAdd()),remove:wJ(a,b.getRemove()),addMask:hH(a,b.getAddMask()),removeMask:hH(a,b.getRemoveMask())};a&&(c.$jspbMessageInstance=b);return c}};
var t9=function(a){Z.call(this,a,-1,drc)};V(t9,Z);t9.prototype.getUpdatesList=function(){return xb(this,brc,1)};var drc=[1];t9.prototype.toObject=function(){var a=null!=this?{updatesList:Hb(this.getUpdatesList(),crc)}:void 0;return a};t9.messageId="b.ComponentHistory";
var u9=function(a,b){this.executor=b;this.componentHistoriesCache=a.get("component_histories-second-level-cache")||a.create("component_histories-second-level-cache",{capacity:25})};u9.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:t9}))};u9.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};
u9.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(String(a))};u9.\u0275fac=function(a){return new (a||u9)(t(PK),t(qI))};u9.\u0275prov=lc({token:u9,factory:u9.\u0275fac,providedIn:"root"});
var kt=function(a){Z.call(this,a)};V(kt,Z);kt.prototype.toObject=function(){return erc(void 0,this)};var erc=function(a,b){if(null!=b){var c={groupEmail:n(p(b,1)),approximateSize:n(p(b,2)),sizeCategory:n(p(b,3)),permissionCategory:n(p(b,5))};a&&(c.$jspbMessageInstance=b);return c}};
var grc=function(a){Z.call(this,a,-1,frc)};V(grc,Z);var frc=[1];grc.prototype.toObject=function(){var a=null!=this?{groupMetadataList:Hb(xb(this,kt,1),erc)}:void 0;return a};grc.messageId="b.BatchGroupMetadataResult";
var v9=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=xcb(e);return Zt(d,function(h){return f[h]||null})})})};v9.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"}})};v9.\u0275fac=function(a){return new (a||v9)(t(w9),t(oI))};
v9.\u0275prov=lc({token:v9,factory:v9.\u0275fac,providedIn:"root"});var w9=function(a){this.executor=a};w9.prototype.bulkGet=function(a){a=[].concat(v(new Set(a)));a=yn(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:grc}).then(Bcb)};w9.\u0275fac=function(a){return new (a||w9)(t(qI))};w9.\u0275prov=lc({token:w9,factory:w9.\u0275fac,providedIn:"root"});
var irc=function(a){Z.call(this,a,-1,hrc)};V(irc,Z);var x9=function(a){Z.call(this,a)};V(x9,Z);x9.prototype.getRetentionSettings=function(){return m(this,Hl,2)};x9.prototype.setRetentionSettings=function(a){Gb(this,2,a)};x9.prototype.hasRetentionSettings=function(){return mj(this,2)};var hrc=[2];irc.prototype.toObject=function(){var a=null!=this?{descendantsList:Hb(xb(this,x9,2),jrc)}:void 0;return a};x9.prototype.toObject=function(){return jrc(void 0,this)};
var jrc=function(a,b){if(null!=b){var c={componentPath:n(p(b,1)),retentionSettings:mGb(a,b.getRetentionSettings())};a&&(c.$jspbMessageInstance=b);return c}};irc.messageId="b.SubcomponentsResponse";
var y9=function(a){this.executor=a};y9.prototype.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:irc})};y9.\u0275fac=function(a){return new (a||y9)(t(qI))};y9.\u0275prov=lc({token:y9,factory:y9.\u0275fac,providedIn:"root"});
var z9=function(){};z9.prototype.ngOnInit=function(){};z9.\u0275fac=function(a){return new (a||z9)};
z9.\u0275cmp=w({type:z9,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&&(O(0,Ccb,4,1,"ng-container",0),O(1,Dcb,4,1,"ng-container",0));a&2&&(D("ngIf",b.teamPath),B(1),D("ngIf",b.componentPath))},dependencies:[ux,aT,QZ],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});
var Ecb=[{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 A9=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 cX(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:In("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:In('"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){var k=f.activeSession.getUserEmail();Ocb(k,f.componentFlattenedAccessPolicy,f.componentAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Component Administrators Changed",
content:In("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){Ncb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)?f.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",
content:In("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 Lk(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=Fj([].concat(v(Qi(f.componentAccessPolicyUnderEdit.admins,f.componentFlattenedAccessPolicy.admins)),v(Qi(f.issueDefaultAccessPolicyUnderEdit.admins,f.issueDefaultFlattenedAccessPolicy.admins)),v(Qi(f.issueDefaultAccessPolicyUnderEdit.editors,f.issueDefaultFlattenedAccessPolicy.editors)),v(Qi(f.issueDefaultAccessPolicyUnderEdit.appenders,f.issueDefaultFlattenedAccessPolicy.appenders)),v(Qi(f.issueDefaultAccessPolicyUnderEdit.readers,f.issueDefaultFlattenedAccessPolicy.readers)),
v(Qi(f.issueDefaultAccessPolicyUnderEdit.restrictedReaders,f.issueDefaultFlattenedAccessPolicy.restrictedReaders)),v(Qi(f.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,f.issueDefaultFlattenedAccessPolicy.restrictedPlusReaders))));return Promise.all(h.map(function(k){return f.retrieveGroupMetadata(k)}))};this.performAddedLargeOrOpenGroupCheck=function(){return f.enableRostersChecks?f.evaluateNewGroups().then(function(h){var k=Icb(h);h=Mcb(h);if(0===k.size&&0===h.size)return Promise.resolve(!0);
var q=Jcb(k.size,h.size);k=Kcb(k);h=Lcb(h);var u=Ln(k,k===lt?lt:Kn("BR"),h);k={};u=Ln(u,Kn("P",{},Ln("Please review the ",Kn("A",(k.href=NNb(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:u,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()&&Hcb(f.issueDefaultAccessPolicyUnderEdit,f.issueDefaultFlattenedAccessPolicy)){var k={};k=Ln(Kn("P",{},"You are about to give a broad category of users permissions on a public component."),Kn("P",{},Ln("Please review the ",Kn("A",(k.href=ONb(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=Kn("A",(h.href=c7a(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:Ln("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:Ln("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(v(Fcb(f.issueDefaultFlattenedAccessPolicy,f.issueDefaultAccessPolicyUnderEdit)),v(Fcb(f.componentFlattenedAccessPolicy,
f.componentAccessPolicyUnderEdit))),k=new Set;h=r(h);for(var q=h.next();!q.done;q=h.next()){q=r(q.value.addedPrincipals);for(var u=q.next();!u.done;u=q.next())u=f.accessPolicyConverter.stringToAccessPolicyPrincipal(u.value),(Kk(u)?Hn(u.user.emailAddress):Lk(u)&&Hn(u.group.emailAddress))&&k.add(u)}return[].concat(v(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=Kn("A",(q.href=MNb(f.documentationLinks),q)," automation account documentation");f.confirmationDialogService.open({title:"Adding automation accounts",content:Ln(In("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"),Kn("wbr"),q,In("."),Kn.apply(Ky,["OL",{}].concat(v(h.map(function(u){if(Kk(u)){var x;return Kn("LI",{},In(null!=(x=u.user.emailAddress)?x:""))}if(Lk(u)){var E;return Kn("LI",
{},In(null!=(E=u.group.emailAddress)?E:""))}throw Error("Se`"+JSON.stringify(u));})))),Kn("BR",{}),In("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,u;return hf(function(x){switch(x.nextAddress){case 1:k=r(h),q=k.next();case 2:if(q.done){x.jumpTo(4);break}u=q.value;return jf(x,u(),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=AH(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=AH(this.activeSession,"enableComponentAutomationCheck")},krc=function(a,b){var c=b.component,d=b.originalComponent,e=b.componentReaders,f=b.componentAccessPolicyUnderEdit,h=b.componentFlattenedAccessPolicy,k=b.issueDefaultAccessPolicyUnderEdit,q=b.issueDefaultFlattenedAccessPolicy,u,x;return hf(function(E){if(1==E.nextAddress)return a.component=c,a.originalComponent=
d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,u=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],jf(E,a.runValidation(u),2);x=E.yieldResult;return E.return(x)})};
A9.\u0275fac=function(a){return new (a||A9)(t(tT),t(yH),t(PM),t(dP),t(v9))};A9.\u0275prov=lc({token:A9,factory:A9.\u0275fac});
var B9=function(a){yI.call(this);this.principalTypes=a;this.componentReaders=[];this.templates=[]};V(B9,yI);B9.\u0275dir=yI.\u0275dir;
B9.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(v(this.componentReaders))),d=new Set([].concat(v(a.admins),v(a.inheritedAdmins)));a=new Set([].concat(v(d),v(a.appenders)));var e=new Set([].concat(v(b.admins))),f=new Set([].concat(v(e),v(b.editors))),h=new Set([].concat(v(f),v(b.appenders))),k=new Set([].concat(v(b.restrictedPlusReaders))),q=new Set([].concat(v(k),v(b.restrictedReaders)));b=new Set([].concat(v(q),v(h),v(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(v(d)).map(mt)},{permission:"Create Issues",principals:[].concat(v(a)).map(mt)},{permission:"Admin Issues",principals:[].concat(v(e)).map(mt)},{permission:"Edit Issues",principals:[].concat(v(f)).map(mt)},{permission:"Comment Issues",principals:[].concat(v(h)).map(mt)},{permission:"View Issues",principals:[].concat(v(b)).map(mt)},{permission:"View Components",principals:[].concat(v(c)).map(mt)},{permission:"View Restricted",principals:[].concat(v(q)).map(mt)},
{permission:"View Restricted+",principals:[].concat(v(k)).map(mt)}];lrc(this,this.templates)};
var lrc=function(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d={};c=r(c.value.principals);for(var e=c.next();!e.done;d={$jscomp$loop$prop$principal$1754:d.$jscomp$loop$prop$principal$1754},e=c.next())d.$jscomp$loop$prop$principal$1754=e.value,4===d.$jscomp$loop$prop$principal$1754.principalType?d.$jscomp$loop$prop$principal$1754.detailedUserType=0:sI(a.principalTypes,d.$jscomp$loop$prop$principal$1754.value,!0).then(function(f){return function(h){f.$jscomp$loop$prop$principal$1754.detailedUserType=
X(h,2,0)}}(d))}};B9.\u0275fac=function(a){return new (a||B9)(C(rI))};
B9.\u0275cmp=w({type:B9,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[ie,Jc],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&&(F(0,"table")(1,"tr",0)(2,"th",1),P(3,"Permission"),G(),F(4,"th",1),P(5,"Users With Permission"),G()(),O(6,Qcb,6,2,"ng-container",2),G());a&2&&(B(6),D("ngForOf",b.templates))},dependencies:[yx,WY],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-color:#dadce0;border-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 mrc={componentAdmin:[],inheritedComponentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdminOnly:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},nrc={inheritance:"INHERIT_NOTHING",admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};
var C9=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=mrc;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(u){q.componentAccessPolicyUnderEdit&&(q.componentAccessPolicyUnderEdit=Object.assign({},q.componentAccessPolicyUnderEdit,{implicitAccess:u?"ALLOW":"DENY"}))},isUpdated:function(){var u;return q.componentAccessPolicyUnderEdit.implicitAccess!==(null==(u=q.componentFlattenedAccessPolicy)?void 0:u.implicitAccess)}};this.componentReaders=[];this.issueDefaultFlattenedAccessPolicy=
this.componentFlattenedAccessPolicy=nrc;this.componentAccessPolicyUnderEdit=uT();this.issueDefaultAccessPolicyUnderEdit=uT();this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(u){a:{var x=q.issueDefaultFlattenedAccessPolicy;if(u&&x){x=x.restrictedPlusReaders;u=r(u);for(var E=u.next();!E.done;E=u.next())if(E=E.value,0===E.indexOf("3:")&&-1===x.indexOf(E)){x=!1;break a}}x=!0}return x}}};
C9.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var orc=function(a){if(!a.hasUnsavedAccessLimitChanges())return Promise.resolve();a.isUpdatingAccessLimit=!0;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;tK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Zm(b)&&(c+=$m(b));uK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};C9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Fi(a);this.originalComponent=Fi(a)};
C9.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId,!0).then(function(b){a.updateComponentAndOriginalComponent(b);0<b.parentComponentId&&prc(a,b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var prc=function(a,b){a.componentActions.get(b).then(function(c){return a.parentComponent=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
C9.prototype.initialize=function(a){var b=this;a=void 0===a?this.componentId:a;if(!a&&!this.componentId)return uK(this.butterBar,"No component found!"),Promise.resolve();this.componentId=a;return Promise.all([this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(c){b.componentFlattenedAccessPolicy=vT(c);b.componentAccessPolicyUnderEdit=Fi(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
vT(c);b.issueDefaultAccessPolicyUnderEdit=Fi(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var qrc=function(a){var b=[idb,jdb,kdb,ldb];var c=[mdb,ndb],d=[odb,pdb,qdb,rdb,sdb,tdb],e=[udb,vdb];b=ddb(Object.assign({},{componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit},{rolesMap:mrc}),[].concat(v(b),v(c),v(d),v(e)));a.rolesMap=b},rrc=function(a,b){var c=a.issueDefaultFlattenedAccessPolicy;if(!c||!wdb(c,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",
a.componentId,b)},src=function(a){var b=pt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy),c=a.issueDefaultFlattenedAccessPolicy;a=!(!c||!wdb(c,a.issueDefaultAccessPolicyUnderEdit));return b||a},trc=function(a,b){return pt(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=vT(c);if(pt(d,a.componentAccessPolicyUnderEdit)){if(pt(d,a.componentFlattenedAccessPolicy))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}}):Promise.resolve(void 0)};C9.prototype.loadUserAccess=function(a){var b=this;return gK(this.userAccess,"admin","components/"+String(a)).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):gK(b.userAccess,"writer","components/"+String(a))}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
C9.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=wT(this.componentAccessPolicyUnderEdit);var c=wT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),uK(this.butterBar,c),Promise.resolve()}return src(this)?(this.isSaving=this.isUpdatingAccessPolicy=!0,tK(this.butterBar,"Saving access settings...",0),rrc(this,c).then(function(d){d&&(b.readers=[].concat(v(d.admins||[]),v(d.editors||[]),v(d.appenders||[]),v(d.readers||
[]),v(d.restrictedPlusReaders||[]),v(d.restrictedReaders||[])));return trc(a,b)}).then(function(){return orc(a)}).then(function(){return a.initialize()}).then(function(){tK(a.butterBar,"Access settings saved",0)}).catch(function(d){uK(a.butterBar,$m(d),0)}).finally(function(){var d,e;return hf(function(f){if(1==f.nextAddress)return jf(f,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;d=a.rolesMap;qrc(a);var h=a.rolesMap,k=
{componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},q={componentAdminOnly:h.componentAdminOnly,issueAdminOnly:h.issueAdminOnly,viewer:h.viewer,editExistingIssuesOnly:h.editExistingIssuesOnly,createIssuesOnly:h.createIssuesOnly,commentOnly:h.commentOnly,viewRestricted:h.viewRestricted,
viewRestrictedPlus:h.viewRestrictedPlus};h=xdb({componentAdmin:d.componentAdmin,issueAdmin:d.issueAdmin,editor:d.editor,contributor:d.contributor},{componentAdmin:h.componentAdmin,issueAdmin:h.issueAdmin,editor:h.editor,contributor:h.contributor});k=xdb(k,q);e=h&&k?2:h?0:k?1:3;Zn(a.analytics,ao.ROLE_BASED_PERMISSIONS,"update","rolesMap",e);kf(f)})})):orc(this)};
var urc=function(a,b){b=cdb({rolesMap:b,permissionsFromRoles:{componentPermissions:{inheritedAdmins:[],admins:[],appenders:[]},issuesPermissions:{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[]}}});a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},Kdb=function(a,b){a.component&&a.originalComponent&&
a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(urc(a,b),krc(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();
tK(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
ji.Object.defineProperties(C9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=hdb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=hdb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});C9.\u0275fac=function(a){return new (a||C9)(t(EL),t(tT),t(xK),t(sK),t(fK),t(iT),t(A9),t(FM))};C9.\u0275prov=lc({token:C9,factory:C9.\u0275fac});
var D9=function(a,b,c){this.activeSession=a;this.documentationLinks=b;this.rolesEditor=c;this.AccessLevelStrings=SAb};g=D9.prototype;g.getRecentIssuesLink=function(){return gn(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 bX(this.rolesEditor.parentComponent)||bX(this.rolesEditor.component)}else return!1};g.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!D2b(this.rolesEditor.parentComponent))};g.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!cX(this.rolesEditor.parentComponent))};
g.getAccessLevelDescription=function(a){return F2b(a)};D9.\u0275fac=function(a){return new (a||D9)(C(yH),C(dP),C(C9))};
D9.\u0275cmp=w({type:D9,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&&(O(0,Cdb,20,7,"div",0),F(1,"div",1)(2,"p"),P(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),F(4,"a",2),P(5,"Learn more"),G()()());a&2&&(D("ngIf",b.shouldShowAccessLimitChangeUi()),B(4),Ge("href","",yo(b.documentationLinks),"#recommended-role-based-permissions-configurations",Ud))},dependencies:[ux,Qg,ky,by,hy],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 E9=function(a,b){this.documentationLinks=a;this.rolesEditor=b};E9.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};E9.prototype.setImplicitAccess=function(a){var b;null==(b=this.rolesEditor.implicitAccess)||b.setValue(a)};E9.\u0275fac=function(a){return new (a||E9)(C(dP),C(C9))};
E9.\u0275cmp=w({type:E9,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&&(F(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),J("change",function(d){return b.setImplicitAccess(d.checked)}),G()(),F(3,"div",3)(4,"strong",4),P(5,"Expanded access"),G(),F(6,"div",5),P(7," When checked, verifiers and assignees can edit issues for this component, and CC'd users can add comments. "),F(8,"a",6),P(9,"Learn more"),G()()()());if(a&2){var c;te("bv2-edit-resource-readonly",b.isAccessEditDisabled());B(2);D("checked",
null!==(c=null==b.rolesEditor?null:null==b.rolesEditor.implicitAccess?null:b.rolesEditor.implicitAccess.getValue())&&void 0!==c?c:!1)("disabled",b.isAccessEditDisabled());B(6);Ge("href","",yo(b.documentationLinks),"#expanded-access",Ud)}},dependencies:[tO],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 Ddb=function(){return{}},Fdb=function(a,b){return{displayText:a,values:b}},Edb=function(a){return[a]},Gdb=function(){return[]},F9=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new Jw;this.formIsValid=new Jw;this.aclFormValidity=new Map};F9.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};F9.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};F9.\u0275fac=function(a){return new (a||F9)};
F9.\u0275cmp=w({type:F9,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&&(F(0,"table")(1,"thead")(2,"tr")(3,"th",0),P(4,"Role Assignments"),G(),F(5,"th",0)(6,"h6"),P(7,"Admin Components"),G()(),F(8,"th",0)(9,"h6"),P(10,"Create Issues"),G()(),F(11,"th",0)(12,"h6"),P(13,"Admin Issues"),G()(),F(14,"th",0)(15,"h6"),P(16,"Edit Issues"),G()(),F(17,"th",0)(18,"h6"),P(19,"Comment Issues"),G()(),F(20,"th",0)(21,"h6"),P(22,"View Issues"),G()(),F(23,
"th",0)(24,"h6"),P(25,"View Restricted"),G()(),F(26,"th",0)(27,"h6"),P(28,"View Restricted+"),G()()()(),F(29,"tbody"),O(30,Hdb,26,29,"ng-container",1),G()());a&2&&(B(30),D("ngForOf",b.rolesTableData))},dependencies:[yx,HY,BH,rB,XE,lF],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{width:40%;min-width:250px;flex:0 0 40%}td[_ngcontent-%COMP%]:not(:first-child){display:flex;justify-content:center;width:20em;padding-top:16px}.edit-field[_ngcontent-%COMP%]{margin:14px 0 0}.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-multi-user-input .bv2-multi-user-input{width:95%}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}\n/*# sourceMappingURL=roles_view_table.css.map */"]});
var G9=function(a){this.documentationLinks=a};G9.\u0275fac=function(a){return new (a||G9)(C(dP))};
G9.\u0275cmp=w({type:G9,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&&O(0,Idb,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,u=c.viewRestricted,x=c.viewRestrictedPlus;c=[].concat(v(c.componentAdmin),v(d),v(e),v(f));a=[].concat(v(a),v(b),v(h),v(k),v(q),v(u),v(x));a=0===c.length&&0<a.length}else a=!1;D("ngIf",a)}},dependencies:[ux],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 H9=function(){this.rolesMap=mrc;this.isSaving=!1;this.saveRolesMap=new Jw;this.rolesUnderEdit=mrc;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},vrc=function(a){var b=a.rolesUnderEdit;a.standardRolesTableData=[{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:!0,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."}];var c=a.rolesUnderEdit,d;b=[{ariaLabel:"Component Admin Only role",
label:"Component Admins Only",users:null==c?void 0:c.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, but have no issue-related permissions.",chips:{displayText:"Inherited Admins",values:null!=(d=c.inheritedComponentAdminOnly)?
d:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:null==c?void 0:c.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==c?void 0:c.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==c?void 0:c.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,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==c?void 0:c.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==c?void 0:c.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==c?void 0:c.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==c?void 0:c.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=b},wrc=function(a){return a.advancedRolesTableData.some(function(b){return 0<b.users.length})},xrc=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=H9.prototype;g.ngOnInit=function(){xrc(this);vrc(this)};g.ngOnChanges=function(a){a.rolesMap&&xrc(this);vrc(this)};
g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){var a;if(null==(a=this.component)?0:a.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()&&(!Ei(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};H9.\u0275fac=function(a){return new (a||H9)};
H9.\u0275cmp=w({type:H9,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Jc],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),F(2,"roles-view-table",1),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),G(),F(3,"mat-expansion-panel",2)(4,"mat-expansion-panel-header")(5,"mat-panel-title"),P(6," Advanced Roles "),G()(),F(7,"roles-view-table",1),J("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",
function(c){return b.formIsValid=c}),G()(),H(8,"expanded-access-settings"),F(9,"button",3),J("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),P(10,"Update"),G(),F(11,"button",4),J("click",function(){xrc(b);vrc(b)}),P(12," Revert Changes\n"),G());a&2&&(B(1),D("rolesMap",b.rolesMap),B(1),D("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(1),D("expanded",wrc(b)),B(4),
D("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),D("disabled",!b.canSave()),B(2),D("disabled",!!Ei(b.rolesMap,b.rolesUnderEdit)))},dependencies:[H5,I5,J5,rB,F9,D9,E9,G9],styles:["[_nghost-%COMP%]     mat-expansion-panel{margin:0 0 0 -1%}mat-expansion-panel-header[_ngcontent-%COMP%]{margin:0 0 0 8px}button[_ngcontent-%COMP%]{margin:0px 10px 5px 0px}\n/*# sourceMappingURL=roles_view.css.map */"]});
var I9=function(a,b){yI.call(this);this.rolesEditor=a;this.route=b};V(I9,yI);I9.\u0275dir=yI.\u0275dir;I9.prototype.ngOnInit=function(){var a=this;this.route.paramMap.pipe(S(function(b){return b.get("componentId")}),xf(cl),ig(function(b){return a.rolesEditor.initialize(Number(b))}),jg(this.destroyed$)).subscribe(function(){qrc(a.rolesEditor)})};I9.prototype.isSaving=function(){return this.rolesEditor.isSaving};I9.\u0275fac=function(a){return new (a||I9)(C(C9),C(mk))};
I9.\u0275cmp=w({type:I9,selectors:[["role-based-permissions"]],features:[Me([C9,A9]),ie],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&&(O(0,Jdb,2,0,"div",0),O(1,Ldb,7,8,"div",1));a&2&&(D("ngIf",!(null==b.rolesEditor.component?
0:b.rolesEditor.component.componentId)),B(1),D("ngIf",null==b.rolesEditor.component?null:b.rolesEditor.component.componentId))},dependencies:[ux,PW,NW,aN,B9,H9],styles:["\n/*# sourceMappingURL=role_based_permissions.css.map */"]});
var J9=function(a){yI.call(this);this.userPreferencesManager=a;this.timestamps$=this.userPreferencesManager.preferences$.pipe(S(function(b){var c;return null!=(c=b.dismissalTimestamps)?c:void 0}));this.timestampsSubject$=Hk(this.timestamps$.pipe(jg(this.destroyed$)),{})};V(J9,yI);J9.\u0275dir=yI.\u0275dir;var yrc=function(a,b){return a.timestamps$.pipe(S(function(c){return c?!!c[b]:!1}))};J9.prototype.isDismissed=function(a){return!!Ik(yrc(this,a))};
J9.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(S(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};J9.\u0275fac=function(a){return new (a||J9)(t(VI))};J9.\u0275prov=lc({token:J9,factory:J9.\u0275fac,providedIn:"root"});
var K9=function(a,b){this.dialogRef=a;this.documentationLinks=b};K9.\u0275fac=function(a){return new (a||K9)(C(CB),C(dP))};
K9.\u0275cmp=w({type:K9,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&&(F(0,"div",0)(1,"h1"),P(2,"Welcome to Role Based Permissions! \ud83c\udf89"),G()(),F(3,"p"),P(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. "),
F(5,"a",1),P(6," Learn more "),G()(),F(7,"div",0)(8,"button",2),J("click",function(){return b.dialogRef.close()}),P(9," Get started "),G()());a&2&&(B(5),Ge("href","",yo(b.documentationLinks),"#role-based-permissions",Ud))},dependencies:[rB],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 L9=function(a,b,c){this.dialog=a;this.dismissalService=b;this.documentationLinks=c};L9.prototype.openIfNecessary=function(){var a=this,b,c,d;hf(function(e){b=a.dismissalService.isDismissed("roles_based_permissions_onboarding_dialog");if(c=!b)d={maxWidth:"700px"},a.dialog.open(K9,d),a.dismissalService.dismiss("roles_based_permissions_onboarding_dialog").pipe(Xf()).subscribe();kf(e)})};L9.\u0275fac=function(a){return new (a||L9)(t(PB),t(J9),t(dP))};
L9.\u0275prov=lc({token:L9,factory:L9.\u0275fac,providedIn:"root"});
var zrc=["archiveDialog"],Arc=["archiveButton"],Brc=["metadataForm"],$eb=function(a){return{displayText:"Inherited Admins",values:a}},tt=function(a){return[a]},afb=function(a){return{displayText:"Component Admins",values:a}},bfb=function(a){return{displayText:"Issue Admins",values:a}},cfb=function(a){return{displayText:"Issue Admins & Editors",values:a}},dfb=function(a){return{displayText:"Restricted+ Viewers",values:a}},Crc={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",
TEMPLATES:"templates",ACCESS:"access"},M9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba){yI.call(this);var Ga=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=u;this.activeSession=x;this.documentationLinks=E;this.matDialogService=I;this.analytics=N;this.checkBeforeExit=L;this.userAccess=T;this.groupMetadata=Y;this.componentActions=ja;this.errorHandler=
ha;this.componentService=ra;this.componentUpdates=Fa;this.componentUpdatesApi=Ka;this.accessPolicyConverter=Ca;this.confirmationDialogService=La;this.appEvents=jb;this.teamsService=db;this.sloApi=Mb;this.sloService=va;this.roleBasedPermissionsOnboardingDialogService=Ba;this.componentId$=new U.ReplaySubject(1);this.Tab=Crc;this.AccessLevelStrings=SAb;this.componentListRoute=Csa;this.showSloInheritancePath=!1;this.component$=new U.BehaviorSubject(null);this.parentComponent$=new U.BehaviorSubject(null);
this.componentTeam$=new U.BehaviorSubject(null);this.team$=this.componentTeam$.pipe(ig(function(Xa){return(Xa=null==Xa?void 0:Xa.id)&&"0"!==Xa?Ga.teamsService.getTeam(Xa):(0,U.of)(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(ig(function(Xa){var $a;return(Xa=null==Xa?void 0:null==($a=Xa.team)?void 0:$a.id)&&"0"!==Xa?Ga.teamsService.getTeam(Xa):(0,U.of)(null)}));this.inheritedSloMetadata$=(0,U.combineLatest)([this.component$,this.parentComponent$,this.team$]).pipe(S(function(Xa){var $a=
r(Xa);Xa=$a.next().value;var ec=$a.next().value;$a=$a.next().value;if((null==Xa?0:Xa.team)&&!Xa.team.inherit&&"0"!==Xa.team.id){var Va;return null!=(Va=null==$a?void 0:$a.getSlo())?Va:null}var Ya;return null!=(Ya=null==ec?void 0:ec.slo)?Ya:null}));this.inheritedSlo$=this.inheritedSloMetadata$.pipe(Wf(),ig(function(Xa){var $a="0";Xa instanceof wt?$a=Xa.getSloId():Xa&&($a=Xa.id);return"0"===$a?(0,U.of)({id:"0"}):Ga.sloService.get($a).then(function(ec){return{id:$a,slo:ec}})}));this.sloPolicySource$=
this.inheritedSloMetadata$.pipe(Wf(),ig(function(Xa){if(!Xa)return(0,U.of)({name:"None",type:"none"});Xa=lfb(Xa);var $a=Xa.sourceTeamId,ec=Xa.sourceComponentId;return $a&&"0"!==$a?Ga.teamsService.getTeam($a).pipe(S(function(Va){var Ya;return{name:null!=(Ya=Va.getName())?Ya:$a,type:"team",link:{path:"/teams/"+$a+"/edit",fragment:"slo"}}})):ec?Ga.componentActions.get(Number(ec)).then(function(Va){var Ya;return{name:null!=(Ya=Va.name)?Ya:ec,type:"component",link:{path:"/components/"+ec+"/edit"}}}):(0,U.of)(null)}));
this.policySourcePath$=(0,U.combineLatest)([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(S(function(Xa){var $a=r(Xa);Xa=$a.next().value;var ec=$a.next().value,Va=$a.next().value;$a=$a.next().value;if(!Xa||!Xa.componentPathInfo||!$a)return null;var Ya=lfb($a);$a=Ya.sourceComponentId;ec=nfb(ec,Ya.sourceTeamId,Xa.team,Va);return null===$a?{componentPath:null,teamPath:ec}:{componentPath:mfb(Xa,$a),teamPath:ec}}));this.enableRoleBasedPermissions=AH(this.activeSession,
"enableRoleBasedPermissions");this.enableSloLockingCheck=AH(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.isAdmin_=this.isUpdatingAccessLimit_=
this.isUpdatingAccessPolicy_=this.isUpdating_=this.isArchiving_=!1;this.metadataForm=null;this.error="";this.isComponentSloEditor=this.isEditor_=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=AH(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(xf(Boolean),ig(function(Xa){return Ga.sloApi.executor.get({url:"action/components/"+Xa+"/slo_edit_policy",
responseConstructor:b4b}).pipe(S(wqa))}));this.aclFormValidity={};this.aclFormIsInvalid=function(){return Object.values(Ga.aclFormValidity).some(function(Xa){return!Xa})};this.getSloManagementLink=hn};V(M9,yI);M9.\u0275dir=yI.\u0275dir;M9.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&&this.roleBasedPermissionsOnboardingDialogService.openIfNecessary()};
M9.prototype.ngOnInit=function(){var a=this;this.componentId=Ki(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.componentAccessPolicyUnderEdit=uT();this.issueDefaultAccessPolicyUnderEdit=uT();this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.selectedTabIndex=0;this.subscriptions.add(LY(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess_(this.componentId);
this.enableSloLockingCheck&&Drc(this);this.restrictedPlusReadersValidators={noRestrictedPlusGroups:function(b){a:{if(b&&a.issueDefaultFlattenedAccessPolicy_){var c=a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders;b=r(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();Erc(this);this.enableComponentAutomationCheck=AH(this.activeSession,"enableComponentAutomationCheck");this.enableRostersChecks=AH(this.activeSession,"enableRostersChecks");this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=
Frc(b)}));this.hasInitialized=!0;this.route.fragment.pipe(jg(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 Erc=function(a){a=[Grc(a,a.componentId),Hrc(a,a.componentId),Irc(a,a.componentId)].concat(v(a.loadAccessPolicy_(a.componentId)));return Promise.all(a).then(function(){})};g=M9.prototype;g.isAdmin=function(){return this.isAdmin_};
g.isSaving=function(){return this.isUpdating_||this.isArchiving_};g.isArchived=function(){return this.component?this.component.archived:!1};g.isPublic=function(){return cX(this.component)};g.isExternal=function(){return bX(this.component)};g.isParentPublic=function(){return!(!this.parentComponent||!cX(this.parentComponent))};g.isParentPartner=function(){return!(!this.parentComponent||!D2b(this.parentComponent))};
var reb=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};M9.prototype.shouldShowAccessLimitChangeUi=function(){if(this.sessionIsExternal)return!1;if(this.component)if(this.component.parentComponentId){if(this.parentComponent)return bX(this.parentComponent)||bX(this.component)}else return!1};
M9.prototype.hasUnsavedMetadataChanges=function(){return!(Ei(this.component,this.originalComponent)&&Ei(this.parentComponent,this.originalParentComponent_))};M9.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||ut(this)||vt(this)};
var Jrc=function(a){var b=Mj();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:In("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},Krc=function(a){var b=Mj();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:Ln(In('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.'),Kn("BR",{}),Kn("BR",{}),In('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.'),
Kn("BR",{}),Kn("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},Lrc=function(a){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);var b=Mj(),c=a.getAddedAutomationInPolicyChange();if(c.length){var d={};d=Kn("A",(d.href=MNb(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",
content:Ln(In("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"),Kn("wbr"),d,In("."),Kn.apply(Ky,["OL",{}].concat(v(c.map(function(e){if(Kk(e)){var f;return Kn("LI",{},In(null!=(f=e.user.emailAddress)?f:""))}if(Lk(e)){var h;return Kn("LI",{},In(null!=(h=e.group.emailAddress)?h:""))}throw Error("Se`"+JSON.stringify(e));})))),Kn("BR",{}),In("Are you sure you wish to allow automation to access data in this component?")),
onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}})}else b.resolve(!0);return b.promise};M9.prototype.saveMetadata=function(){var a=this;return this.validate_()?Krc(this).then(function(b){return b?Jrc(a):Promise.resolve(!1)}).then(function(b){b&&Mrc(a).then(function(){return Erc(a)})}):Promise.resolve()};
var st=function(a,b){a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b)},Mrc=function(a){a.isUpdating_=!0;tK(a.butterBar,"Saving changes ...",0);return Nrc(a).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return Orc(a)}).then(function(){return Prc(a)}).then(function(){return Qrc(a)}).then(function(){tK(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating_=!1})},Nrc=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)},Orc=function(a){return a.component.slo&&!Ei(a.originalComponent.slo,a.component.slo)?a.componentActions.updateSlo(a.component.componentId,
a.component.slo).then(function(){Zn(a.analytics,ao.MANAGE_COMPONENT,"updateSlo");return!0}).catch(function(b){a.component.slo=a.originalComponent.slo;return Promise.reject(b)}):Promise.resolve(!1)},Prc=function(a){return a.component.team&&!Ei(a.originalComponent.team,a.component.team)?a.componentActions.updateTeam(a.component.componentId,a.component.team).then(function(){Zn(a.analytics,ao.MANAGE_COMPONENT,"updateTeam");return!0}).catch(function(b){a.component.team=a.originalComponent.team;return Promise.reject(b)}):
Promise.resolve(!1)},Qrc=function(a){return Rrc(a)?a.componentActions.update(a.component).then(function(){Zn(a.analytics,ao.MANAGE_COMPONENT,"update");a.commentEditsEnabled?Zn(a.analytics,"component","comment edits enabled","update"):Zn(a.analytics,"component","comment edits disabled","update");return!0}):Promise.resolve(!1)},Rrc=function(a){var b=Fi(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Ei(a.originalComponent,
b)};M9.prototype.validate_=function(){if(this.metadataForm.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid.";return!1};
M9.prototype.saveAccessPolicy=function(){var a=this;Src(this).then(function(b){return b?Trc(a):Promise.resolve(!1)}).then(function(b){return b?Urc(a):Promise.resolve(!1)}).then(function(b){return b?Vrc(a):Promise.resolve(!1)}).then(function(b){return b?Wrc(a):Promise.resolve(!1)}).then(function(b){return b?Xrc(a):Promise.resolve(!1)}).then(function(b){return b?Yrc(a):Promise.resolve(!1)}).then(function(b){return b?Lrc(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveAccessPolicy_()})};
M9.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};
var vt=function(a){return a.originalComponent&&a.component?a.originalComponent.accessLimit.accessLevel!==a.component.accessLimit.accessLevel:!1},Src=function(a){var b=Mj();vt(a)&&"INTERNAL"===a.component.accessLimit.accessLevel?a.confirmationDialogService.open({title:"Component Visibility Changed",content:In("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(){b.resolve(!0)},
onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Urc=function(a){var b=Mj();Zrc(a)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:In("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(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):
b.resolve(!0);return b.promise},Vrc=function(a){var b=Mj();$rc(a)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:In("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(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Trc=function(a){var b=Mj();a.componentReaders.includes("3:nobody@google.com")?a.confirmationDialogService.open({title:'"nobody@google.com" is on the access policy',
content:In('"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: '+[a.componentAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Component Admins"':null,a.componentAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Create Issues"':null,a.issueDefaultAccessPolicyUnderEdit.admins.includes("3:nobody@google.com")?'"Issue Admins"':null,a.issueDefaultAccessPolicyUnderEdit.editors.includes("3:nobody@google.com")?
'"Edit Issues"':null,a.issueDefaultAccessPolicyUnderEdit.appenders.includes("3:nobody@google.com")?'"Comment on Issues"':null,a.issueDefaultAccessPolicyUnderEdit.readers.includes("3:nobody@google.com")?'"View Issues"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders.includes("3:nobody@google.com")?'"View restricted+ content"':null,a.issueDefaultAccessPolicyUnderEdit.restrictedReaders.includes("3:nobody@google.com")?'"View restricted content"':null].filter(function(c){return!!c}).join(", ")+
". Do you want to proceed?"),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):b.resolve(!0);return b.promise},Yrc=function(a){var b=Mj(),c={};c=Kn("A",(c.href=c7a(a.documentationLinks),c),"Learn more.");a.implicitAccess.getValue()==a.implicitAccess.getSavedValue()?b.resolve(!0):a.implicitAccess.getValue()?a.confirmationDialogService.open({title:"Turn on expanded access for component "+a.component.componentId+"?",content:Ln("When expanded access is on, assignees and verifiers can edit issues in this component, and CC'd users can comment. ",
c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}}):a.confirmationDialogService.open({title:"Turn off expanded access for component "+a.component.componentId+"?",content:Ln("Some users may lose the ability to edit or comment on issues in this component. ",c),onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)}});return b.promise},Wrc=function(a){return a.enableRostersChecks&&ut(a)?asc(a).then(function(b){var c=bsc(b),d=csc(b);if(0===c.size&&0===d.size)return Promise.resolve(!0);
b=dsc(c.size,d.size);c=esc(c);d=fsc(d);c=Ln(c,c===lt?lt:Kn("BR"),d);d={};c=Ln(c,Kn("P",{},Ln("Please review the ",Kn("A",(d.href=NNb(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=Mj();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)},
bsc=function(a){var b=new Map;a=r(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},csc=function(a){var b=new Map;a=r(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},dsc=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"},esc=function(a){if(0===a.size)return lt;for(var b=1===a.size?Kn("P",{},"The following large group is added: "):Kn("P",{},"The following large groups are added: "),c=[],d=r(a.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.get(e).approximateSize;c.push(Kn("P",{},Ln(Kn("B",{},e)," has approximately ",Kn("B",{},f)," Googlers.")))}return Ln(b,c)},fsc=function(a){if(0===a.size)return lt;var b=1===a.size?
Kn("P",{},"The following open group is added: "):Kn("P",{},"The following open groups are added: "),c=[];a=r(a.keys());for(var d=a.next();!d.done;d=a.next())c.push(Kn("P",{},Kn("B",{},d.value)));return Ln(b,c)},Xrc=function(a){var b=Mj();if(a.isPublic()&&gsc(a)){var c={};c=Ln(Kn("P",{},"You are about to give a broad category of users permissions on a public component."),Kn("P",{},Ln("Please review the ",Kn("A",(c.href=ONb(a.documentationLinks),c.target="_blank",c),"recommended practices")," and be sure you know what you are doing. Are you  sure that you want to do this?")));
a.confirmationDialogService.open({title:"Adding an broad category of users to a public component",content:c,onConfirm:function(){b.resolve(!0)},onDismiss:function(){b.resolve(!1)},confirmButtonText:"Add Group Alias"})}else b.resolve(!0);return b.promise};
M9.prototype.doSaveAccessPolicy_=function(){var a=this;try{var b=wT(this.componentAccessPolicyUnderEdit);var c=wT(this.issueDefaultAccessPolicyUnderEdit)}catch(d){c="An unknown problem occurred";d instanceof Error&&(c=d.message);uK(this.butterBar,c);return}ut(this)?(this.isUpdating_=this.isUpdatingAccessPolicy_=!0,tK(this.butterBar,"Saving access settings...",0),hsc(this,c).then(function(d){d&&(b.readers=[].concat(v(d.admins||[]),v(d.editors||[]),v(d.appenders||[]),v(d.readers||[]),v(d.restrictedPlusReaders||
[]),v(d.restrictedReaders||[])));return isc(a,b)}).then(function(){return jsc(a)}).then(function(){return Promise.all([].concat(v(a.loadAccessPolicy_(a.componentId))))}).then(function(){tK(a.butterBar,"Access settings saved",0)}).catch(function(d){uK(a.butterBar,$m(d),0)}).finally(function(){a.loadUserAccess_(a.componentId);a.isUpdatingAccessPolicy_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})):jsc(this)};
var isc=function(a,b){return a.componentFlattenedAccessPolicy_&&ksc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=vT(c);if(a.componentAccessPolicyUnderEdit&&!ksc(d,a.componentAccessPolicyUnderEdit))return Promise.resolve(void 0);if(a.componentFlattenedAccessPolicy_&&ksc(d,a.componentFlattenedAccessPolicy_))return Promise.reject({data:{message:"ConflictingWriteException: The attempted change was based on stale data. Reload the data and try again."}});
b.readers=c.readers;b.inheritance=0===a.component.parentComponentId?"INHERIT_NOTHING":"INHERIT_ADMINS";return a.accessPolicyApi.update("COMPONENT",a.componentId,b)}):Promise.resolve(void 0)},hsc=function(a,b){if(!a.issueDefaultFlattenedAccessPolicy_||!lsc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))return Promise.resolve(void 0);b.inheritance="INHERIT_NOTHING";return a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b)},jsc=function(a){if(!vt(a))return Promise.resolve();
a.isUpdatingAccessLimit_=!0;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_;return a.accessPolicyApi.setAccessLimit("COMPONENT",a.componentId,a.component.accessLimit).then(function(b){a.component.accessLimit.accessLevel=b.accessLevel;a.originalComponent.accessLimit.accessLevel=b.accessLevel;tK(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;var c="Could not change access level. ";Zm(b)&&(c+=$m(b));
uK(a.butterBar,c)}).finally(function(){a.isUpdatingAccessLimit_=!1;a.isUpdating_=a.isUpdatingAccessPolicy_||a.isUpdatingAccessLimit_})},Zrc=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},$rc=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},gsc=function(a){if(!a.issueDefaultAccessPolicyUnderEdit.appenders||!a.issueDefaultFlattenedAccessPolicy_||Ei(a.issueDefaultFlattenedAccessPolicy_.appenders,
a.issueDefaultAccessPolicyUnderEdit.appenders))return!1;for(var b=r(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),c=b.next();!c.done;c=b.next())if(c=c.value,Gcb.has(c)&&!a.issueDefaultFlattenedAccessPolicy_.appenders.includes(c))return!0;return!1},asc=function(a){var b=[].concat(v(new Set([].concat(v(Qi(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy_.admins)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy_.admins)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.editors,
a.issueDefaultFlattenedAccessPolicy_.editors)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.appenders,a.issueDefaultFlattenedAccessPolicy_.appenders)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy_.readers)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedReaders)),v(Qi(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders,a.issueDefaultFlattenedAccessPolicy_.restrictedPlusReaders))))));return Promise.all(b.map(function(c){c=
a.accessPolicyConverter.stringToAccessPolicyPrincipal(c);return Lk(c)&&c.group.emailAddress?a.groupMetadata.get(c.group.emailAddress):Promise.resolve({approximateSize:0,groupEmail:"",sizeCategory:"UNKNOWN",permissionCategory:"UNKNOWN_PERMISSION"})}))},ut=function(a){return!(!a.componentFlattenedAccessPolicy_||!ksc(a.componentFlattenedAccessPolicy_,a.componentAccessPolicyUnderEdit))||!(!a.issueDefaultFlattenedAccessPolicy_||!lsc(a.issueDefaultFlattenedAccessPolicy_,a.issueDefaultAccessPolicyUnderEdit))},
ksc=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.appenders,b.appenders)||!Ei(a.implicitAccess,b.implicitAccess):!1},lsc=function(a,b){return b&&a?!Ei(a.admins,b.admins)||!Ei(a.editors,b.editors)||!Ei(a.appenders,b.appenders)||!Ei(a.readers,b.readers)||!Ei(a.restrictedReaders,b.restrictedReaders)||!Ei(a.restrictedPlusReaders,b.restrictedPlusReaders):!1},Grc=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,
c)})};M9.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Fi(this.originalParentComponent_);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled="ENABLED"==this.component.commentEditState};
M9.prototype.revertAccessPolicyChanges=function(){this.componentFlattenedAccessPolicy_&&(this.componentAccessPolicyUnderEdit=Fi(this.componentFlattenedAccessPolicy_));this.issueDefaultFlattenedAccessPolicy_&&(this.issueDefaultAccessPolicyUnderEdit=Fi(this.issueDefaultFlattenedAccessPolicy_));this.appEvents.contactChipsRevertChanges.next()};
var Jeb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=Frc(b.componentPathInfo.allCustomField)})},Frc=function(a){return a?a.filter(function(b){return b.enabledOnIssues}):[]},Hrc=function(a,b){a.isLoading=!0;return a.componentActions.getUncached(b,!0).then(function(c){a.updateComponentAndOriginalComponent(c);a.currentName=c.name;0<c.parentComponentId&&a.loadParentComponent_(c.parentComponentId);a.effectiveCustomFields=Frc(c.componentPathInfo.allCustomField);
a.pageTitle.setTitle("Component: "+c.name);a.archiveAction=c.archived?"Unarchive":"Archive";a.commentEditsEnabled="ENABLED"==c.commentEditState;0===a.component.parentComponentId&&(a.isParentComponentRequired=!1)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1;a.hasInitialized&&a.cdr.detectChanges()})};
M9.prototype.loadAccessPolicy_=function(){var a=this;return[this.accessPolicyApi.get("COMPONENT",this.componentId).then(function(b){a.componentFlattenedAccessPolicy_=vT(b);a.componentAccessPolicyUnderEdit=Fi(a.componentFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,b)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(b){a.issueDefaultFlattenedAccessPolicy_=vT(b);a.issueDefaultAccessPolicyUnderEdit=Fi(a.issueDefaultFlattenedAccessPolicy_)}).catch(function(b){a.errorHandler.errorHandler(null,
b)})]};M9.prototype.loadUserAccess_=function(a){var b=this;gK(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin_=c;return b.isAdmin_?!0:gK(b.userAccess,"writer","components/"+a)}).then(function(c){b.isEditor_=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var Drc=function(a){gK(a.userAccess,"writer","components/"+a.componentId+"/slo").then(function(b){a.isComponentSloEditor=b})},rt=function(a){return a.isSaving()||!a.isEditor_};g=M9.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_=Fi(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return gn(this.componentId,{includeArchived:a})};
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){Zn(this.analytics,"editComponent","click",a)};
var Mdb=function(a){a.butterBar.dismiss();a.retentionIsValid?a.hasUnsavedChanges()?uK(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,tK(a.butterBar,"Looking up subcomponents...",0),a.componentService.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=xb(b,x9,2);DB(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(jg(a.destroyed$)).subscribe(function(){a.archiveButton.focus()})}).catch(function(b){a.errorHandler.errorHandler(null,
b)})):uK(a.butterBar,"Required retention settings are missing or invalid. Please set retention settings before "+a.archiveAction.slice(0,-1)+"ing.")};M9.prototype.getRetentionPeriod=function(a){if(a&&a.hasRetentionSettings()&&X(a.getRetentionSettings(),1,0)){var b=X(a.getRetentionSettings(),1,0);switch(b){case 1:return"Buganizer default retention (10 years)";case 3:return"Indefinite retention";case 2:return a=fj(a.getRetentionSettings(),2),ko(a);default:throw Error("Te`"+b);}}return"Retention period unspecified"};
M9.prototype.archive=function(){var a=this;this.isArchiving_=!0;tK(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);tK(a.butterBar,a.archiveAction+'d component "'+a.component.name+'"',4E3);Zn(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;tK(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Zm(b)?$m(b):b));a.isArchiving_=!1})};
var Irc=function(a,b){var c=a.paths.getBaseUrl()+"/"+a.paths.createIssue();return a.templatesApi.query(b).then(function(d){a.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="+b+"&template="+e.templateId}})}).catch(function(d){a.errorHandler.errorHandler(null,d)})},msc=function(a){a.componentReaders=[].concat(v(new Set([].concat(v(a.componentAccessPolicyUnderEdit?[].concat(v(a.componentAccessPolicyUnderEdit.inheritedAdmins||
[]),v(a.componentAccessPolicyUnderEdit.admins||[]),v(a.componentAccessPolicyUnderEdit.editors||[]),v(a.componentAccessPolicyUnderEdit.appenders||[])):[]),v(a.issueDefaultAccessPolicyUnderEdit?[].concat(v(a.issueDefaultAccessPolicyUnderEdit.admins||[]),v(a.issueDefaultAccessPolicyUnderEdit.editors||[]),v(a.issueDefaultAccessPolicyUnderEdit.appenders||[]),v(a.issueDefaultAccessPolicyUnderEdit.readers||[]),v(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),v(a.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||
[])):[])))))};M9.prototype.setCommentEditState=function(){this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};M9.prototype.getAccessLevelDescription=function(a){return F2b(a)};
var nsc=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=nSb(d.getAddMask()),h=nSb(d.getRemoveMask()),k={author:d.getAuthor(),timestamp:d.getTimestamp(),diffs:[]},q=d.getAdd()||new sm;d=d.getRemove()||new sm;for(var u=r(new Set([].concat(v(f),v(h)))),x=u.next();!x.done;x=u.next()){var E=x.value;if(x=jSb.get(E))if("name"===E){var I=xS(h,E,d.getName());E=xS(f,E,q.getName());k.diffs.push(yS(x,
I,E))}else if("description"===E)I=xS(h,E,d.getDescription()),E=xS(f,E,q.getDescription()),k.diffs.push(yS(x,I,E));else if("parentComponentId"===E)I=xS(h,E,String(lj(d,2))),E=xS(f,E,String(lj(q,2))),k.diffs.push(yS(x,I,E));else if("isArchived"===E)I=xS(h,E,String(d.getArchived())),E=xS(f,E,String(q.getArchived())),k.diffs.push(yS(x,I,E));else if("commentEditState"===E){var N=kSb.get(X(d,15,0));I=kSb.get(X(q,15,0));N&&I&&(N=xS(h,E,N),E=xS(f,E,I),k.diffs.push(yS(x,N,E)))}else"defaultTemplateId"===E?
(I=xS(h,E,String(lj(d,18))),E=xS(f,E,String(lj(q,18))),k.diffs.push(yS(x,I,E))):"slo"===E?e.sessionIsInternal&&(I=xS(h,E,rSb(d.getSlo())),E=xS(f,E,rSb(q.getSlo())),k.diffs.push(yS(x,I,E))):"team"===E?e.sessionIsInternal&&(I=xS(h,E,sSb(d.getTeam())),E=xS(f,E,sSb(q.getTeam())),k.diffs.push(yS(x,I,E))):"retentionSettings"===E?(I=xS(h,E,pSb(d.getRetentionSettings())),E=xS(f,E,pSb(q.getRetentionSettings())),k.diffs.push(yS(x,I,E))):e.$log.error("Unsupported diff field "+E)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject()};M9.prototype.showUpdateHistoryModal=function(){var a=this;nsc(this,this.componentId).then(function(){a.matDialogService.open(d5,{width:"600px",data:{updateDiffs:a.updateDiffs}});Zn(a.analytics,ao.UPDATE_HISTORY_MODAL,"open");Zn(a.analytics,ao.MANAGE_COMPONENT,"viewHistory")})};M9.prototype.onSloChange=function(a){this.component.slo.id=a?a.getSloId():"0";a&&osc(this)};
var neb=function(a){var b=!!a.parentComponent,c="0"!==a.component.team.id;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(c||b)},teb=function(a){var b=!a.component.team||"0"===a.component.team.id,c=!a.parentComponent;return(a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin())&&(!a.component.slo.inherit||c&&b)},$db=function(a){var b,c,d,e;hf(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?jf(f,(0,U.firstValueFrom)(a.team$.pipe(S(function(h){h=h.getSlo();a.component.slo.id=h.getSloId();osc(a)}))),0):(d=psc(a),e=d.id,a.component.slo.id=e,osc(a),f.jumpTo(0))})},seb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return"0"!==a.component.team.id||b?!0:!1},psc=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}},qsc=function(a,b){var c=[];if(!b||!a)return c;for(var d=r([{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=Qi(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c};
M9.prototype.getAddedAutomationInPolicyChange=function(){var a=[].concat(v(qsc(this.issueDefaultFlattenedAccessPolicy_,this.issueDefaultAccessPolicyUnderEdit)),v(qsc(this.componentFlattenedAccessPolicy_,this.componentAccessPolicyUnderEdit))),b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.addedPrincipals);for(var d=c.next();!d.done;d=c.next())d=this.accessPolicyConverter.stringToAccessPolicyPrincipal(d.value),(Kk(d)?Hn(d.user.emailAddress):Lk(d)&&Hn(d.group.emailAddress))&&b.add(d)}return[].concat(v(b.values()))};
var Deb=function(a,b){tK(a.butterBar,"Saving effort spec...",0);a.component&&(a.component.effortSpec=jqa(b),a.componentActions.update(a.component).then(function(c){a.updateComponentAndOriginalComponent(c);Zn(a.analytics,ao.MANAGE_COMPONENT,"updateEffort");var d,e;if(null==(d=a.component)?0:null==(e=d.effortSpec)?0:e.name){var f;tK(a.butterBar,(null==(f=a.component.effortSpec)?void 0:f.name)+" saved")}else tK(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,
c)}))};M9.prototype.updateComponentAndOriginalComponent=function(a){this.component=Fi(a);this.component$.next(this.component);this.originalComponent=Fi(a);var b;this.componentTeam$.next(null!=(b=this.component.team)?b:null);osc(this)};M9.prototype.back=function(){A_(this.appHistory)};var osc=function(a){var b;(null==(b=a.component)?0:b.slo)?a.isEnableSloChecked="0"!==a.component.slo.id:a.isEnableSloChecked=!1};
ji.Object.defineProperties(M9.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,msc(this),this.componentAccessPolicyUnderEdit?(a=new Set([].concat(v(this.componentAccessPolicyUnderEdit.inheritedAdmins||[]),v(this.componentAccessPolicyUnderEdit.admins||[]))),a=[].concat(v(a))):a=[],this.componentAdmins=a)},get:function(){return this.componentAccessPolicyUnderEditInternal}},
issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Ei(a,this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,msc(this),this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(v(this.issueDefaultAccessPolicyUnderEdit.admins||[]),v(this.issueDefaultAccessPolicyUnderEdit.editors||[]))),a=[].concat(v(a)).sort()):a=[],this.issueCommenters=a,this.issueDefaultAccessPolicyUnderEdit?(a=new Set([].concat(v(this.issueDefaultAccessPolicyUnderEdit.admins||
[]),v(this.issueDefaultAccessPolicyUnderEdit.editors||[]),v(this.issueDefaultAccessPolicyUnderEdit.appenders||[]),v(this.issueDefaultAccessPolicyUnderEdit.restrictedReaders||[]),v(this.issueDefaultAccessPolicyUnderEdit.restrictedPlusReaders||[]))),a=[].concat(v(a)).sort()):a=[],this.issueViewersChip=[{displayText:"Issue Admins, Editors, Commenters, Restricted/Restricted+ Viewers",values:a}])},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});
M9.\u0275fac=function(a){return new (a||M9)(C(mk),C(uI,2),C(IR),C(FK),C(EL),C(MJ),C(GK),C(z_),C(sK),C(WN),C(yH),C(dP),C(PB),C(FM),C(KY),C(fK),C(v9),C(iT),C(xK),C(y9),C(zS),C(u9),C(tT),C(PM),C(BK),C(ZL),C(dY),C(eY),C(L9))};
M9.\u0275cmp=w({type:M9,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(Hf(zrc,5),Hf(Arc,5),Hf(Brc,5),Hf(NW,5,wd));if(a&2){var c;Gf(c=Jf())&&(b.confirmArchiveDialog=c.first);Gf(c=Jf())&&(b.archiveButton=c.first);Gf(c=Jf())&&(b.metadataForm=c.first);Gf(c=Jf())&&(b.tabs=c)}},features:[Me([uI]),ie],decls:11,vars:3,consts:[[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",
3,"routerLinkObj","click"],[3,"accessLevel"],[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"],[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"],[4,"ngIf","ngIfElse"],["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","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"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"b-button",3),J("onAction",function(){return b.back()}),H(4,"b-icon",4),G(),O(5,Pdb,5,3,"ng-container",5),G()()(),F(6,"div",6),O(7,Qdb,2,0,"div",7),O(8,gfb,32,20,"div",5),G(),O(9,kfb,13,3,"ng-template",null,8,Pf));
a&2&&(B(5),D("ngIf",b.component),B(2),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&b.component&&b.component.componentId))},dependencies:[hO,yx,ux,Ex,BS,aT,KS,i3,p3,u3,SX,SY,o4,iy,Qg,ky,by,cy,sy,hy,fy,dQ,QY,BH,rB,sB,tO,QB,RB,SB,TB,XE,sA,nT,PW,NW,lF,HY,fQ,d_,z9,b_,aN,oV,I9,ZS,Fx,Hx],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}.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 Kfb=function(a){return[a]},Lfb=function(){return[]},Ufb=function(a){return{value:a}},rsc={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping"},N9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N){yI.call(this);var L=this;this.activeSession=a;this.accessPolicyApi=b;this.appHistory=c;this.butterBar=d;this.checkBeforeExit=e;this.componentActions=f;this.errorHandler=h;this.location=k;this.pageTitle=q;this.routeParams=u;this.teamsService=x;this.userAccess=E;this.sloApi=I;this.sloService=N;this.originalSloLock=
!1;this.canEditSloLock=!0;this.sloJustification$=new U.BehaviorSubject("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new U.ReplaySubject(1);this.teamSlo$=this.team$.pipe(S(function(Y){return Y.getSlo()}));this.isSloLeadValid=!1;this.sloLeadEmail$=new U.BehaviorSubject("");this.sloLead$=new U.BehaviorSubject("");this.sloLeadUserValidators={sloLeadNotUser:function(Y){if(Y){Y=
r(Y);for(var ja=Y.next();!ja.done;ja=Y.next())if(0!==ja.value.indexOf("2:"))return!1}return!0}};this.sloLeadGooglerValidators={sloLeadNotGoogler:function(Y){if(Y){Y=r(Y);for(var ja=Y.next();!ja.done;ja=Y.next())if(0!==ja.value.indexOf("1:"))return!1}return!0}};this.teamAdmins$=(0,U.from)(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(S(function(Y){return Y.admins.filter(Kk).map(Cn)}));this.teamLeads$=this.team$.pipe(S(function(Y){return Y.getMembersList().filter(function(ja){return bj(ja,2)}).map(function(ja){var ha,
ra;return"2:"+(null!=(ra=null==(ha=ja.getUser())?void 0:ha.getEmailAddress())?ra:"")})}));this.adminsAndLeads$=(0,U.combineLatest)([this.teamAdmins$,this.teamLeads$]).pipe(S(function(Y){var ja=r(Y);Y=ja.next().value;ja=ja.next().value;var ha=new Set(Y);ja=ja.filter(function(ra){return!ha.has(ra)});return[].concat(v(Y),v(ja))}));this.associatedComponents$=(0,U.from)(this.componentActions.search("directteamid:"+this.teamId));this.teamPath$=this.team$.pipe(S(function(Y){var ja=Y.getPathNamesList();return Y.getPathIdsList().map(function(ha,
ra){return{id:ha,name:ja[ra]}})}));this.isRootTeam$=this.teamPath$.pipe(S(function(Y){return 1>=Y.length?!0:!1}));this.parentTeam$=(0,U.combineLatest)([this.isRootTeam$,this.teamPath$]).pipe(ig(function(Y){var ja=r(Y);Y=ja.next().value;ja=ja.next().value;return Y?(0,U.of)(null):L.teamsService.getTeam(""+ja[ja.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(ig(function(Y){var ja,ha=null==Y?void 0:null==(ja=Y.getSlo())?void 0:ja.getSloId();return ha&&"0"!==ha?L.sloService.get(ha).then(function(ra){return{id:ha,
link:hn(ha),slo:ra}}):(0,U.of)({id:"0"})}));this.sloPolicySource$=(0,U.combineLatest)([this.parentTeam$,this.teamPath$]).pipe(S(function(Y){var ja=r(Y);Y=ja.next().value;ja=ja.next().value;var ha,ra=null==Y?void 0:null==(ha=Y.getSlo())?void 0:ha.getSourceTeamId();ha=ja.find(function(Fa){return""+Fa.id===ra});return ra&&ha?{name:ha.name,link:{path:"/teams/"+ra+"/edit",fragment:"slo"}}:null}));this.Tab=rsc;this.enableSloLockingUi=AH(this.activeSession,"enableSloLockingUi");this.enableSloLead=AH(this.activeSession,
"enableSloLead");this.isSloInheritEnabled$=new U.BehaviorSubject(!0);this.sloId$=new U.BehaviorSubject("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new U.BehaviorSubject(!1);this.hasSloReadAccess$=this.sloId$.pipe(ig(function(Y){return gK(L.userAccess,"reader","slos/"+Y)}),hg(!1));this.sloPickerLink$=(0,U.combineLatest)([this.sloId$,this.hasSloReadAccess$]).pipe(S(function(Y){var ja=r(Y);Y=ja.next().value;ja=ja.next().value;return Y&&0<Number(Y)&&ja?hn(Y):null}));this.hasUnsavedChanges$=
(0,U.combineLatest)([this.team$,this.sloId$,this.isSloInheritEnabled$,this.sloLocked$,this.sloJustification$,this.sloLeadEmail$]).pipe(S(function(Y){var ja=r(Y),ha=ja.next().value;Y=ja.next().value;var ra=ja.next().value,Fa=ja.next().value,Ka=ja.next().value;ja=ja.next().value;var Ca=ha.getSlo(),La,jb;ha=null!=(jb=null==(La=m(ha,Tl,12))?void 0:La.getEmailAddress())?jb:"";return Ca.getInherit()!==ra||Ca.getSloId()!==Y||Fa!==L.originalSloLock||Ca.getComment()!==Ka||ha!==ja}));this.hasEditAccess=!1;
this.pageTitle.setTitle("Team Overview");this.team$.pipe(jg(this.destroyed$)).subscribe(function(Y){L.pageTitle.setTitle("Team: "+Y.getName())});a=AH(this.activeSession,"enableSloLockingCheck")?"teams/"+this.teamId+"/slo":"teams/"+this.teamId;gK(this.userAccess,"writer",a).then(function(Y){L.hasEditAccess=Y});this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(S(function(Y){return Y.values().next().value}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",
responseConstructor:aY}).pipe(S(vqa));var T=Hk(this.hasUnsavedChanges$.pipe(jg(this.destroyed$)),!1);this.subscriptions.add(LY(this.checkBeforeExit,function(){return T.getValue()},!1))};V(N9,yI);N9.\u0275dir=yI.\u0275dir;
N9.prototype.ngOnInit=function(){var a=this,b,c,d;return hf(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),jf(e,(0,U.firstValueFrom)(a.teamsService.get(a.teamId)),2);if(3!=e.nextAddress)return c=e.yieldResult,"0"===c.getTeamId()?uK(a.butterBar,"Unable to fetch team ID '"+a.teamId+"'"):a.team$.next(c),Ofb(a),d=a,jf(e,(0,U.firstValueFrom)(a.parentTeam$),3);d.parentTeam=e.yieldResult;
kf(e)})};N9.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)};N9.prototype.onSloChange=function(a){a&&(this.sloId=a.getSloId())};
var Nfb=function(a,b){var c,d,e,f,h,k;return hf(function(q){switch(q.nextAddress){case 1:if(!a.validate())return q.return();tK(a.butterBar,"Saving changes...",0);It(q,2);if(!a.enableSloLead||(null==(c=m(b,Tl,12))?void 0:c.getEmailAddress())===a.sloLeadEmail){q.jumpTo(4);break}var u=U.firstValueFrom;var x=(new Tl).setEmailAddress(a.sloLeadEmail);x=Gb(b,12,x);x=a.teamsService.updateTeam(x);return jf(q,u.call(U,x),5);case 5:d=q.yieldResult,a.team$.next(d);case 4:if(a.sloLocked===a.originalSloLock){q.jumpTo(6);
break}u=U.firstValueFrom;x=a.sloApi;var E=a.teamId,I=a.sloLocked,N=new pJ;I=ul(N,2,I?1:2).setTeamId(Number(E));x=x.executor.post({url:"action/teams/"+E+"/slo_edit_policy",responseConstructor:cY,body:I}).pipe(S(vqa));return jf(q,u.call(U,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}u=U.firstValueFrom;I=(new wt).setSloId(a.sloId).setInherit(a.isSloInheritEnabled);
a.isSloInheritEnabled||I.setComment(a.sloJustification$.getValue());x=a.teamsService;E=a.teamId;N=(new YL).setTeamId(E);I=Gb(N,2,I);x=x.executor.post({url:"/action/teams/"+E+"/update_slo",body:I,responseConstructor:VL});return jf(q,u.call(U,x),9);case 9:h=q.yieldResult,a.team$.next(h);case 8:tK(a.butterBar,"Save complete.");Jt(q,0);break;case 2:k=Kt(q),zK(a.errorHandler,k),kf(q)}})};
N9.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 ssc=function(a){(0,U.firstValueFrom)(a.team$).then(function(b){var c;b=null==(c=m(b,Tl,12))?void 0:c.getEmailAddress();a.sloLead=b?"2:"+b:""})},tsc=function(a){(0,U.firstValueFrom)(a.teamSlo$).then(function(b){a.sloId=b.getSloId();a.isSloInheritEnabled=b.getInherit();a.sloJustification$.next(b.getComment())})},usc=function(a){(0,U.firstValueFrom)(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},Ofb=function(a){a.error="";ssc(a);tsc(a);a.enableSloLockingUi&&usc(a)};
N9.prototype.back=function(){A_(this.appHistory)};
ji.Object.defineProperties(N9.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()}}});N9.\u0275fac=function(a){return new (a||N9)(C(yH),C(EL),C(z_),C(sK),C(KY),C(iT),C(xK),C(FK),C(WN),C(IR),C(ZL),C(fK),C(dY),C(eY))};
N9.\u0275cmp=w({type:N9,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&Hf(NW,5,wd);if(a&2){var c;Gf(c=Jf())&&(b.tabs=c)}},features:[ie],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&&(F(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),J("click",function(){return b.back()}),H(4,"mat-icon",4),G()()()(),F(5,"div",5),O(6,Vfb,86,39,"ng-container",6),Q(7,"async"),G());a&2&&(B(6),D("ngIf",R(7,1,b.team$)))},dependencies:[xx,yx,ux,SY,Qg,by,sy,hy,dQ,QY,rB,sB,tO,XE,PW,NW,lF,sA,nT,HY,KI,ZS,b_,QZ,Fx],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 Xfb=function(a){return{feature:a}},O9=function(a){this.beapService=a;this.beapFeaturesTF$=xic(this.beapService,"TEAM_FOOD");this.beapFeaturesEA$=xic(this.beapService,"EARLY_ACCESS");this.hasFeatures$=(0,U.combineLatest)([this.beapFeaturesTF$,this.beapFeaturesEA$]).pipe(S(function(b){var c=r(b);b=c.next().value;c=c.next().value;return 0<b.length+c.length}));this.hasFeaturesTF$=this.beapFeaturesTF$.pipe(S(function(b){return 0<b.length}));this.hasFeaturesEA$=this.beapFeaturesEA$.pipe(S(function(b){return 0<
b.length}));this.linkClicked={}},ggb=function(a,b){return!!a.linkClicked[b]};O9.\u0275fac=function(a){return new (a||O9)(C(C2))};
O9.\u0275cmp=w({type:O9,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&&(O(0,cgb,5,6,"ng-container",0),Q(1,"async"),O(2,dgb,2,0,"ng-template",null,1,Pf),O(4,igb,20,16,"ng-template",null,2,Pf));if(a&2){var c=M(3);D("ngIf",R(1,2,b.hasFeatures$))("ngIfElse",c)}},dependencies:function(){return[E2,jI,kI,yx,ux,Ex,sB,XE,nT,lF,Fx,P9]},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 P9=function(){};P9.prototype.transform=function(a){return 2===a?!0:!1};P9.\u0275fac=function(a){return new (a||P9)};P9.\u0275pipe=Ec({name:"featureState",type:P9,pure:!0});
var vsc=function(){this.name="Assigned issues";this.resourceType=null;this.hasOptions=!1;this.options=[]};vsc.prototype.shouldDisplay=function(){return!0};vsc.prototype.getDefaultOptionId=function(){return null};var Q9=function(a,b){this.name=a;this.resourceType=b;this.hasOptions=!0;this.options=[]};Q9.prototype.shouldDisplay=function(){return 0<this.options.length};Q9.prototype.getDefaultOptionId=function(){return this.options[0].id};
var wsc=function(a,b){this.id=a;this.name=b},ysc=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 U.Subscription;this.hotlistMainOption=new Q9("Hotlist","HOTLIST");this.savedSearchMainOption=new Q9("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=new Q9("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[new vsc,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];xsc(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){xsc(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,xsc(f)):(f.selectedMainOption=f.mainOptions[0],f.selectedOptionId=null))}))};ysc.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var mgb=function(a){tK(a.butterBar,"Saving preferences...",0);(null==a.selectedMainOption.resourceType||null==a.selectedOptionId?a.userPreferencesManager.clearHomepagePreferences():zFb(a.userPreferencesManager,{resourceType:a.selectedMainOption.resourceType,resourceId:a.selectedOptionId})).subscribe(function(){tK(a.butterBar,"Preferences saved.",4E3)})},xsc=function(a){var b=function(c){return new wsc(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 wsc(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};
var zsc=cj[3],R9=function(a,b,c,d,e,f,h,k,q){yI.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,v(h.supportedTimeZones.map(function(u){return{value:u.id,label:u.name}})));this.sloEnabled=d.isInternalSession();this.showBugScreensaverSetting=d.isInternalSession()};V(R9,yI);R9.\u0275dir=yI.\u0275dir;
R9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;null==(b=a.preferredHomepage)||b.destroy()});this.preferredHomepage=new ysc(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(jg(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
R9.prototype.save=function(a,b,c){var d=this;tK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){tK(d.butterBar,"Preferences saved.",4E3)});Zn(this.analytics,"preferences",a,b,c)};var Asc=function(a){var b;return(null==(b=a.userPreferences.textDisplayPreferences)?void 0:b.commentDisplayOverride)===zsc};R9.\u0275fac=function(a){return new (a||R9)(C(uI,2),C(VI),C(sK),C(yH),C(dP),C(FM),C(ZH),C(RM),C(BK))};
R9.\u0275cmp=w({type:R9,selectors:[["b-general-settings"]],features:[Me([uI]),ie],decls:67,vars:14,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"],[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-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&&(F(0,"div",0)(1,"div",1)(2,"div",2),P(3," Preferred homepage "),F(4,"p",3),P(5," See your preferred homepage selection. "),F(6,"a",4),P(7," Learn more "),G()()(),F(8,"div",5)(9,"div",6)(10,"label",7),P(11," Current selection "),G(),F(12,"mat-form-field",8)(13,"mat-select",9),J("ngModelChange",function(c){return b.preferredHomepage.selectedMainOption=c})("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();mgb(c);c.cdr.detectChanges()}),
O(14,kgb,2,1,"ng-container",10),G()(),O(15,ngb,3,2,"mat-form-field",11),G()()(),H(16,"hr"),F(17,"div",1)(18,"div",2),P(19," Date/time formatting settings "),F(20,"p",3),P(21," Select how you want dates and times to be formatted. "),F(22,"a",4),P(23," Learn more "),G()()(),F(24,"div",5)(25,"div",6)(26,"label",12),P(27," Dates "),G(),F(28,"mat-form-field",13)(29,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.calendarFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),
O(30,ogb,2,2,"mat-option",15),G()()(),F(31,"div",6)(32,"label",16),P(33," Times "),G(),F(34,"mat-form-field",17)(35,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeFormat=c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),O(36,pgb,2,2,"mat-option",15),G()()(),F(37,"div",6)(38,"label",18),P(39," Time Zones "),G(),F(40,"mat-form-field",19)(41,"mat-select",14),J("ngModelChange",function(c){return b.userPreferences.dateTimePreferences.timeZone=
c})("selectionChange",function(){return b.save("saveDateTimePreferences")}),O(42,qgb,2,2,"mat-option",15),G()()()(),H(43,"hr"),F(44,"div",1)(45,"div",2),P(46," Keyboard settings "),G(),F(47,"div",5)(48,"div",6)(49,"label",20),P(50," Enable all hotkeys? "),G(),F(51,"b-slide-toggle",21),J("modelChange",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c;return b.save("saveKeyboardPreferences")}),G()()()(),F(52,"div"),H(53,"hr"),F(54,"div",1)(55,"div",2),P(56," Display settings "),G(),
F(57,"div",5)(58,"div",6)(59,"label",22),P(60," Force comments to display as plain text? "),G(),F(61,"b-slide-toggle",23),J("modelChange",function(c){b.userPreferences.textDisplayPreferences&&(b.userPreferences.textDisplayPreferences.commentDisplayOverride=c?zsc:void 0,b.save("saveTextDisplayPreferences.commentDisplayOverride"))}),G()(),F(62,"div",6)(63,"label",24),P(64," Force comments to display with code font? "),G(),H(65,"b-toggle-code-font",25),G()()()(),O(66,rgb,10,1,"div",26),G()());a&2&&(B(6),
D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Ud),B(7),D("ngModel",b.preferredHomepage.selectedMainOption),B(1),D("ngForOf",b.preferredHomepage.mainOptions),B(1),D("ngIf",b.preferredHomepage.selectedMainOption.hasOptions),B(7),D("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Ud),B(7),D("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(1),D("ngForOf",b.dateFormats),B(5),D("ngModel",b.userPreferences.dateTimePreferences.timeFormat),
B(1),D("ngForOf",b.timeFormats),B(5),D("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(1),D("ngForOf",b.timeZones),B(9),D("model",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(10),D("model",Asc(b)),B(5),D("ngIf",b.showBugScreensaverSetting))},dependencies:[yx,ux,by,hy,eC,GS,nB,lF,rT,W8],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-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 S9=function(a,b,c,d){yI.call(this);var e=this;this.userPreferencesManager=a;this.butterBar=b;this.documentationLinks=c;this.analytics=d;this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(jg(this.destroyed$)).subscribe(function(f){e.userPreferences=f})};V(S9,yI);S9.\u0275dir=yI.\u0275dir;
S9.prototype.save=function(a,b,c){var d=this;tK(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){tK(d.butterBar,"Preferences saved.",4E3)});Zn(this.analytics,"preferences",a,b,c)};S9.\u0275fac=function(a){return new (a||S9)(C(VI),C(sK),C(dP),C(FM))};
S9.\u0275cmp=w({type:S9,selectors:[["b-notification-settings"]],features:[ie],decls:42,vars:12,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"],["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"]],template:function(a,b){a&1&&(F(0,"div",0)(1,"div",1),P(2," Notification settings "),F(3,"p",2),P(4," Select the level of email you want to receive for each issue role. "),F(5,"a",3),P(6," Learn more "),G()()(),F(7,"div",4)(8,"div",5)(9,"label",6),P(10," Assignee "),G(),F(11,"mat-form-field",7)(12,
"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.assignedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(13,sgb,3,4,"mat-option",9),G()()(),F(14,"div",5)(15,"label",10),P(16," Reporter "),G(),F(17,"mat-form-field",11)(18,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.reportedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),
O(19,tgb,3,4,"mat-option",9),G()()(),F(20,"div",5)(21,"label",12),P(22," Verifier "),G(),F(23,"mat-form-field",13)(24,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.verifiedPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(25,ugb,3,4,"mat-option",9),G()()(),F(26,"div",5)(27,"label",14),P(28," CC'd "),G(),F(29,"mat-form-field",15)(30,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.ccdPriority=
c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(31,vgb,3,4,"mat-option",9),G()()(),F(32,"div",5)(33,"label",16),P(34," Starred "),G(),F(35,"mat-form-field",17)(36,"mat-select",8),J("ngModelChange",function(c){return b.userPreferences.notificationPreferences.starredPriority=c})("selectionChange",function(){return b.save("saveNotificationPreferences")}),O(37,wgb,3,4,"mat-option",9),G()()(),F(38,"div",5)(39,"label",18),P(40," Exclude edits made by you? "),G(),F(41,"b-slide-toggle",
19),J("modelChange",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c;return b.save("saveNotificationPreferences")}),G()()()());a&2&&(B(5),D("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Ud),B(7),D("ngModel",b.userPreferences.notificationPreferences.assignedPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),
B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(1),D("ngForOf",b.priorities),B(5),D("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(1),D("ngForOf",b.priorities),B(4),D("model",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[yx,by,hy,eC,GS,nB,lF,rT,lM],styles:["hr[_ngcontent-%COMP%]{border-bottom-width:0px;border-left-width:0px;border-right-width:0px;border-top:1px solid;border-color:#dadce0;border-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 Bsc=[[["","page-bar-left",""]],[["","page-bar-right",""]]],T9=function(){this.showRefresh=this.showBack=!0;this.backLabel="Go back";this.refreshLabel="Refresh";this.onBack=new Jw;this.onRefresh=new Jw};T9.\u0275fac=function(a){return new (a||T9)};
T9.\u0275cmp=w({type:T9,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&&(Ee(Bsc),O(0,xgb,2,1,"button",0),O(1,ygb,2,1,"button",0),O(2,zgb,2,1,"h2",1),Fe(3),F(4,"div",2),Fe(5,1),G());a&2&&(D("ngIf",b.showBack),B(1),D("ngIf",b.showRefresh),B(1),D("ngIf",b.title))},dependencies:[ux,rB,lF,XE],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 U9=function(a,b,c,d){this.activeSession=a;this.location=b;this.routeParams=c;this.beapEnabled=AH(this.activeSession,"enableBeap");this.selectedTabIndex=0;d.setTitle("Settings")};U9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=Csc(this,this.routeParams.settingsTab)};U9.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(zsa(d))};
var Csc=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.nativeElement.id===b});return 0>a?0:a};U9.\u0275fac=function(a){return new (a||U9)(C(yH),C(FK),C(IR),C(WN))};
U9.\u0275cmp=w({type:U9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&Hf(NW,5,wd);if(a&2){var c;Gf(c=Jf())&&(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),F(1,"mat-tab-group",
1),J("selectedIndexChange",function(c){return b.tabChange(c)}),F(2,"mat-tab",2)(3,"div",3),H(4,"b-general-settings"),G()(),F(5,"mat-tab",4)(6,"div",3),H(7,"b-notification-settings"),G()(),O(8,Agb,3,0,"mat-tab",5),G());a&2&&(D("showRefresh",!1)("showBack",!1),B(1),D("selectedIndex",b.selectedTabIndex),B(7),D("ngIf",b.beapEnabled))},dependencies:[ux,QY,PW,NW,T9,O9,R9,S9],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 V9=function(a,b,c,d,e,f,h,k,q){yI.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()};V(V9,yI);V9.\u0275dir=yI.\u0275dir;g=V9.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsOwner=Ol(c.ownerUser)===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.userIsOwner};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("Ue`"+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("Ue`"+a.resourceType);}};V9.\u0275fac=function(a){return new (a||V9)(C(uI,2),C(IR),C(FK),C(WN),C(YK),C(NM),C(GK),C(yH),C(BK))};
V9.\u0275cmp=w({type:V9,selectors:[["view-bookmark-group-page"]],features:[Me([uI]),ie],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&&(F(0,"h2",0),P(1),G(),H(2,"div",1),F(3,"div",2),O(4,Egb,12,5,"div",3),G());a&2&&(B(1),Je("View Bookmark Group ",null==b.bookmarkGroup?null:b.bookmarkGroup.name,""),B(2),oe("aria-busy",
!b.bookmarkGroup),B(1),D("ngIf",b.bookmarkGroup))},dependencies:[yx,ux,ZM,lF],encapsulation:2});var W9=function(){};W9.\u0275fac=function(a){return new (a||W9)};W9.\u0275mod=Cc({type:W9});W9.\u0275inj=mc({imports:[Mx,KN,mH]});
var X9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba,Ga){o9.call(this,b,c,d,e,h,k,q,u,f,x,E,I,L,T,Y,ja,ha,ra,jb,Fa,Ka,va,Ba,Ga);this.ngZone=a;this.hotlists=N;this.hotkeys=Ca;this.pageTitle=La;this.userAccess=Mb;this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1;this.hotlistId=db.hotlistId};V(X9,o9);X9.\u0275dir=o9.\u0275dir;
X9.prototype.ngOnInit=function(){var a=this;o9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(v(this.BASE_HOTKEYS),[{keys:[Pj("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){Dsc(a,1)}},{keys:[Pj("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){Dsc(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
b.hotlistId==a.hotlistId&&"view-hotlist"!=b.origin&&Esc(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)};X9.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)}};
X9.prototype.loadUserAccess=function(a){var b=this;gK(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});gK(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
X9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;FN(this.currentSearch,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):Esc(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var Esc=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};
X9.prototype.doSearch=function(a){var b=this,c="priority type title assignee status issueId modifiedTime".split(" ").map(Ui),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=Fi(f);f.query=d;f.returnUrl=b.bLocation.url();f.hotlistId=b.hotlistId;return JM(b.issuePagination,f)});a.then(function(f){Yqc(b,
f)}).catch(function(f){"number"===typeof f?dZ(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Ao({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,Fsc(b)?Gsc:Hsc);b.loadHotlists()}).catch(function(){})};var Fsc=function(a){return 0===a.sortPreferences.length||1===a.sortPreferences.length&&"POSITION"==a.sortPreferences[0].fieldId.type};
X9.prototype.getCsvUrl=function(){return this.paths.hotlistIssuesCsvAction(this.hotlistId,this.sortPreferences,this.displayColumns,this.showHotlists)};
X9.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;Zn(d.analytics,d.ANALYTICS_CATEGORY,c?"reorderByKeyboard":"issueDragDrop")}).finally(function(){d.repositioning=!1}))};
var Dsc=function(a,b){if(a.searchResults&&!a.repositioning&&Fsc(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)||R4b(f)}else if(-1===b){var h;null==(h=a.resultsGrid)||S4b(h)}a.repositionIssue(e,c,!0)}}};g=X9.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=Jua(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}});tK(this.butterBar,"Saving changes to hotlist...");Isc(this,b).then(function(e){tK(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');dZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});Zn(a.analytics,a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){Zn(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");dZ(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?Pl(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();"position"==a||c&&"position"==c.field?o9.prototype.setSort.call(this,a,b,!1):o9.prototype.setSort.call(this,a,b)};
var Isc=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;Jsc(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},Jsc=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
X9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=qC(this.hotlistId),c=function(){Jsc(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)};X9.prototype.openEditHotlist=function(){this.bLocation.url(this.paths.editHotlist(this.hotlistId))};var Hsc=[BY,CY,DY,X4b],Gsc=[BY,W4b,CY,DY,X4b];
X9.\u0275fac=function(a){return new (a||X9)(C(qg),C(uI),C(TI),C(jM),C(FK),C(yH),C(vK),C(bK),C(YK),C(SK),C(sK),C(FM),C(EN),C(vZ),C(IM),C(VI),C(cZ),C(hZ),C(GK),C(nI),C(yR),C(fP),C(bJ),C(WN),C(xK),C(IR),C(fK),C(BK),C(bL),C(hL))};
X9.\u0275cmp=w({type:X9,selectors:[["view-hotlist-page"]],features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"b-grid-controls",1),J("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(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",
function(c){return $qc(b,c.option)}),G()()(),F(4,"div",4),O(5,Ogb,9,7,"div",5),O(6,Pgb,4,1,"div",6),O(7,Qgb,2,2,"div",7),O(8,Rgb,2,5,"div",8),G());a&2&&(B(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin),B(2),D("searchResults",b.searchResults),B(1),oe("aria-busy",b.isLoading),B(1),D("ngIf",!b.isInitializing),B(1),D("ngIf",b.isLoading),B(1),D("ngIf",!b.isLoading&&!b.hasResults()),B(1),D("ngIf",
!b.isLoading&&b.hasResults()))},dependencies:[GY,yZ,ZM,zY,lF,ux,aN,SZ,rB],encapsulation:2});var Y9=function(){};Y9.\u0275fac=function(a){return new (a||Y9)};Y9.\u0275mod=Cc({type:Y9});Y9.\u0275inj=mc({imports:[$Y,BZ,KN,uZ,mH,Mx,MN,TZ,uG]});
var Z9=function(a,b,c,d,e,f,h,k,q,u,x,E,I,N,L,T,Y,ja,ha,ra,Fa,Ka,Ca,La,jb,db,Mb,va,Ba){o9.call(this,a,b,c,d,f,h,k,u,e,x,E,I,N,L,T,Y,ja,ha,La,ra,Fa,Mb,va,Ba);this.savedSearchApi=q;this.hotkeys=Ka;this.pageTitle=Ca;this.userAccess=db;this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1;this.savedSearchId=jb.savedSearchId};V(Z9,o9);Z9.\u0275dir=o9.\u0275dir;g=Z9.prototype;
g.ngOnInit=function(){var a=this;o9.prototype.ngOnInit.call(this);this.subscriptions.add(cJ(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.currentSearch.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}));
this.subscriptions.add(KMb(this.currentSearch,function(b){a.savedSearch?dZ(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.url(b));Zn(a.analytics,"search","savedsearch-context")}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;gK(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;FN(this.currentSearch,this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;var 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:Sqc(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;FN(b.currentSearch,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Fi(d);d.returnUrl=b.bLocation.url();return JM(b.issuePagination,
d)});c.then(function(d){Yqc(b,d)}).catch(function(d){"number"===typeof d?dZ(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Ao({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.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;tK(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){tK(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;dZ(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});Zn(a.analytics,a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){Zn(this.analytics,this.ANALYTICS_CATEGORY,"discardChanges");dZ(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))};
Z9.\u0275fac=function(a){return new (a||Z9)(C(uI),C(TI),C(jM),C(FK),C(yH),C(vK),C(bK),C(YK),C(CN),C(SK),C(sK),C(FM),C(EN),C(IM),C(VI),C(cZ),C(hZ),C(GK),C(nI),C(yR),C(fP),C(bJ),C(WN),C(xK),C(IR),C(fK),C(BK),C(bL),C(hL))};
Z9.\u0275cmp=w({type:Z9,selectors:[["view-saved-search-page"]],features:[Me([uI]),ie],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&&(F(0,"div",0)(1,"b-grid-controls",1),J("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(),F(2,"div",2)(3,"b-pagination",3),J("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return $qc(b,c.option)}),G()()(),F(4,"div",4)(5,"div",5),O(6,Wgb,4,3,"div",6),O(7,Xgb,8,1,"div",7),G(),O(8,bhb,4,3,"div",8),G());a&2&&(B(1),D("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),D("searchResults",b.searchResults),
B(1),oe("aria-busy",b.isLoading),B(2),D("ngIf",!b.isInitializing),B(1),D("ngIf",b.hasParamChanges()),B(1),D("ngIf",b.savedSearch))},dependencies:[GY,yZ,zY,ux,lF,aN,SZ,rB],encapsulation:2});var $9=function(){};$9.\u0275fac=function(a){return new (a||$9)};$9.\u0275mod=Cc({type:$9});$9.\u0275inj=mc({imports:[$Y,BZ,uZ,Mx,mH,MN,TZ,uG]});
hna(Yi().getUserPreferences()||new uj);var Ksc;if(dj()){var Lsc=[{path:"",pathMatch:"full",component:R8},{path:"dependencies",component:W6},{path:"dupes",component:q8},{path:"blocking",component:C6},{path:"resources",component:k9}],Msc=Lsc.concat,Nsc,Osc={path:"todos",component:m9};Nsc=$i("enableCodeMentionsUi")?[Osc]:[];Ksc={path:"issues/:issueId",component:o8,children:Msc.call(Lsc,v(Nsc))}}else Ksc={path:"issues/:issueId",component:j6};
var Psc=[{path:"",component:t5,canActivateGuards:[y5]},{path:"issues",component:p9},{path:"recent",component:r9},{path:"issues/new",component:L5},Ksc,{path:"components",component:N4},{path:"components/new",component:A5},{path:"components/:componentId/edit",component:M9},{path:"components/:componentId",component:M9},{path:"components/:componentId/manage",component:M9},{path:"teams/:teamId/edit",component:N9},{path:"teams/:teamId",component:N9},{path:"bookmark-groups/new",component:z5},{path:"bookmark-groups/:groupId",
component:V9},{path:"bookmark-groups/:groupId/edit",component:Q5},{path:"hotlists/new",component:B5},{path:"hotlists/:hotlistId",component:X9},{path:"hotlists/:hotlistId/edit",component:RY},{path:"slos/new",component:M5},{path:"slos/:sloId",component:o6},{path:"slos/:sloId/edit",component:o6},{path:"savedsearches/:savedSearchId/edit",component:l6},{path:"hotlists",component:n9},{path:"slos",component:s9},{path:"savedsearches/:savedSearchId",component:Z9},{path:"dashboard/:groupId",component:O5},{path:"settings/:settingsTab?",
component:U9},{path:"settings",component:U9},{path:"**",component:t5,canActivateGuards:[y5]}];
var a$=function(){};a$.\u0275fac=function(a){return new (a||a$)};a$.\u0275mod=Cc({type:a$});a$.\u0275inj=mc({imports:[Mx,uG,UB]});
var Qsc=[y7,e7,f7],b$=function(){};[].concat(v(Qsc));[].concat(v(Qsc));b$.\u0275fac=function(a){return new (a||b$)};b$.\u0275mod=Cc({type:b$});b$.\u0275inj=mc({imports:[Mx,uG,fF,pF,QI]});
var c$=function(){};c$.\u0275fac=function(a){return new (a||c$)};c$.\u0275mod=Cc({type:c$});c$.\u0275inj=mc({imports:[pX,Mx,i7,eJ,b$,uG,eI,pF,fF,mH,a_,tZ,X8,a$]});
var d$=function(){};d$.\u0275fac=function(a){return new (a||d$)};d$.\u0275mod=Cc({type:d$});d$.\u0275inj=mc({imports:[Mx,pF,k2,oX,QI,uG]});
var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=Cc({type:e$});e$.\u0275inj=mc({imports:[Mx,pF,VW,ON,qX,d$]});
var f$=function(){};f$.\u0275fac=function(a){return new (a||f$)};f$.\u0275mod=Cc({type:f$});f$.\u0275inj=mc({imports:[Mx,pF,uG,QI,$S]});
var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=Cc({type:g$});g$.\u0275inj=mc({imports:[i2,Mx,uG,pF,qV,ON,mH,f$,QI,$S]});
var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=Cc({type:h$});h$.\u0275inj=mc({imports:[Mx,pF,i2,ON,UU]});
var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=Cc({type:i$});i$.\u0275inj=mc({imports:[e$,i2,Mx,g$,NS,eJ,ON,J4,V8,d$,uG,eI,pF,mH,QI,KN,UU,h$]});
var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=Cc({type:j$});j$.\u0275inj=mc({imports:[Mx,eJ,uG,pF,mH]});
var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=Cc({type:k$});k$.\u0275inj=mc({imports:[Mx]});
var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=Cc({type:l$});l$.\u0275inj=mc({imports:[Mx,wy,F4,k$]});
var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=Cc({type:m$});m$.\u0275inj=mc({imports:[Mx,qS,l$]});
var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=Cc({type:n$});n$.\u0275inj=mc({imports:[Mx,pF]});
var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=Cc({type:o$});o$.\u0275inj=mc({imports:[zM,n$,Mx,iV,MU,H4,E4,eJ,ON,b$,qX,M4,gV,pF,mH,XO,v3,m$,LS,RN]});
var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=Cc({type:p$});p$.\u0275inj=mc({imports:[cz,Dz,wy,xy,QI,uG,UB,UW,YY,wA,mH,jO,XO,i$,c$,j$,l2,tZ,MS,VW,o$,n8]});
var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=Cc({type:q$});q$.\u0275inj=mc({imports:[Mx,Q4]});
var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=Cc({type:r$});r$.\u0275inj=mc({imports:[cz,Dz,wy,xy,QI,uG,UW,YY,XO,pX,p$,j9,Y6,I6,r8,q$,l9]});
var Rsc=Psc.map(function(a){return{path:a.path,component:a.component,canDeactivate:[KY],canActivate:[v5,x5].concat(v(a.canActivateGuards||[])),children:a.children,isRootRoute:!0}});Rsc.push({path:"**",canActivate:["dontActivate"],component:t5,isRootRoute:!0});var Ssc=W(Yi(),10),Tsc,s$={initialNavigation:"disabled",relativeLinkResolution:"legacy"},Usc=[];
Tsc={ngModule:QI,providers:[uFb,[{provide:onb,multi:!0,useValue:Usc},{provide:PEb,multi:!0,useValue:Usc}],{provide:tFb,useFactory:function(){return"guarded"},deps:[[Gk,new Fv,new Gv]]},{provide:PI,useValue:s$?s$:{}},{provide:Px,useFactory:function(a,b,c){c=void 0===c?{}:c;return c.useHash?new Sx(a,b):new Qx(a,b)},deps:[Nx,[new Klb(Rx),new Fv],PI]},{provide:OI,useFactory:function(a,b,c){c.scrollOffset&&b.setOffset(c.scrollOffset);return new OI(a,b,c)},deps:[Gk,Lnb,PI]},{provide:lFb,useExisting:s$&&
s$.preloadingStrategy?s$.preloadingStrategy:nFb},{provide:inb,multi:!0,useFactory:function(){return new inb("Router",Gk)}},[RI,{provide:nmb,multi:!0,useFactory:function(a){return a.appInitializer.bind(a)},deps:[RI]},{provide:vFb,useFactory:function(a){return a.bootstrapListener.bind(a)},deps:[RI]},{provide:qmb,multi:!0,useExisting:vFb}]]};var t$=function(a,b){a.config=Rsc.map(pk);a.navigated=!1;a.lastSuccessfulId=-1;a.initialNavigation();RKb(b)};t$.\u0275fac=function(a){return new (a||t$)(t(Gk),t(gM))};
t$.\u0275mod=Cc({type:t$});t$.\u0275inj=mc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:MEb,useClass:Akc},{provide:Rx,useValue:Ssc},x5,v5],imports:[Tsc,u5,r$,QI]});
var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=Cc({type:u$});u$.\u0275inj=mc({imports:[Mx,uG,mH,pF,nK,wy,xy,TY]});
var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=Cc({type:v$});v$.\u0275inj=mc({imports:[iO,Mx,TY,TZ,wy,dI,mH,gQ,e_,qV]});
var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=Cc({type:w$});w$.\u0275inj=mc({imports:[Mx,uG,mH,pF,nK,wy,xy,TY]});
var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=Cc({type:x$});x$.\u0275inj=mc({imports:[iO,dI,MN,Mx,qX,ON,uG,pF]});
var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=Cc({type:y$});y$.\u0275inj=mc({imports:[Mx,wy,YB,F4]});
var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=Cc({type:z$});z$.\u0275inj=mc({imports:[iO,FX,VW,IU,bQ,G4,TZ,wy,WX,HX,dI,UX,gV,x$,uG,UB,K5,pF,fF,qT,mH,G4,zM,xy,y$,qV,Mx,xA]});
var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=Cc({type:A$});A$.\u0275inj=mc({imports:[iO,Mx,TY,TZ,wy,dI,mH,p_]});
var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=Cc({type:B$});B$.\u0275inj=mc({imports:[Mx,mH,uG,UW,TY,WX,HX,SN,nK,UB,pF,wy,xy,fF,XY]});
var C$=function(){};[].concat(v([f6]));C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=Cc({type:C$});C$.\u0275inj=mc({imports:[UB,yO,Mx,WA,pF,uG,VW,ZW]});
var D$=function(a,b,c){yI.call(this);this.activeSession=a;this.clipboard=b;this.analytics=c;this.issueId=this.componentId=0;this.issueTitle="";this.isExternalIssue=!1;this.HOTKEYS=xI};V(D$,yI);D$.\u0275dir=yI.\u0275dir;D$.prototype.ngOnInit=function(){};D$.prototype.openIssueIdPicker=function(){Zn(this.analytics,ao.EDIT_ISSUE,"click","issueIdPicker");this.trigger.open()};var xt=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};g=D$.prototype;g.isSessionInternal=function(){return this.activeSession.isInternalSession()};
g.getIssueUrl=function(){return xs(this.activeSession,this.isExternalIssue)+this.issueId};g.getUrlAndTitle=function(){return xs(this.activeSession)+this.issueId+" "+this.issueTitle};g.getIssueEmail=function(){return"buganizer-system"+(UBb(this.activeSession)?"":"-qa")+("+"+this.componentId+"+"+this.issueId)+"@google.com"};g.getTodoComment=function(){return"TODO("+(xs(this.activeSession).replace(/^.*?:\/\//,"")+this.issueId)+"): "+this.issueTitle};
D$.\u0275fac=function(a){return new (a||D$)(C(yH),C(TS),C(FM))};
D$.\u0275cmp=w({type:D$,selectors:[["b-issue-id-picker-legacy"]],viewQuery:function(a,b){a&1&&Hf(IP,7);if(a&2){var c;Gf(c=Jf())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue"},features:[ie],decls:31,vars:14,consts:[["onedevPopupPanelTrigger","","matTooltip","Show links for this issue",1,"id-expand","unstyled-button","keep-focus-ring",3,"hotkey","onedevPopupPanelTriggerFor","onHotkey","click"],["trigger","onedevPopupPanelTrigger"],
[1,"id-text"],["svgIcon","arrow-dropdown",1,"icon-s"],["role","region"],["contentPanel","onedevPopupPanel"],[1,"issue-id-picker-popup"],[1,"id-details-row"],[3,"htmlFor"],["type","text","readonly","","id","id-details-issue-id-field",1,"value",3,"focus"],["issueIdField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy ID","matTooltip","Copy ID",1,"gmat-button","copy",3,"click"],["svgIcon","copy",1,"icon-s"],["type","text","readonly","","id","id-details-issue-url-field",1,"value",3,"focus"],
["issueUrlField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy URL","matTooltip","Copy URL",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-url-and-title-field",1,"value",3,"focus"],["urlAndTitleField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy text","matTooltip","Copy text",1,"gmat-button","copy",3,"click"],["class","id-details-row",4,"ngIf"],["type","text","readonly","","id","id-details-issue-email-field","matTooltip","Email this address to add comments to this issue",
1,"value",3,"focus"],["issueEmailField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy email","matTooltip","Copy email",1,"gmat-button","copy",3,"click"],["type","text","readonly","","id","id-details-todo-comment-field","matTooltip","TODO comment for code",1,"value",3,"focus"],["todoCommentField",""],["mat-icon-button","","tabindex","-1","aria-label","Copy comment","matTooltip","Copy comment",1,"gmat-button","copy",3,"click"]],template:function(a,b){if(a&1){var c=y();F(0,"button",0,
1);J("onHotkey",function(){return b.openIssueIdPicker()})("click",function(){return b.openIssueIdPicker()});F(2,"span",2);P(3);G();H(4,"mat-icon",3);G();F(5,"onedev-popup-panel",4,5)(7,"div",6)(8,"div",7)(9,"label",8);P(10,"Issue ID");G();F(11,"input",9,10);J("focus",function(){z(c);var q=M(12);return A(q.select())});G();F(13,"button",11);J("click",function(){z(c);var q=M(12);return A(xt(b,q))});H(14,"mat-icon",12);G()();F(15,"div",7)(16,"label",8);P(17,"Issue URL");G();F(18,"input",13,14);J("focus",
function(){z(c);var q=M(19);return A(q.select())});G();F(20,"button",15);J("click",function(){z(c);var q=M(19);return A(xt(b,q))});H(21,"mat-icon",12);G()();F(22,"div",7)(23,"label",8);P(24,"URL and title");G();F(25,"input",16,17);J("focus",function(){z(c);var q=M(26);return A(q.select())});G();F(27,"button",18);J("click",function(){z(c);var q=M(26);return A(xt(b,q))});H(28,"mat-icon",12);G()();O(29,chb,7,2,"div",19);O(30,dhb,7,2,"div",19);G()()}if(a&2){var d=M(1),e=M(6),f=M(12),h=M(19),k=M(26);te("expanded",
d.isOpen);D("hotkey",b.HOTKEYS.HIGHLIGHT_ISSUE_ID)("onedevPopupPanelTriggerFor",e);oe("aria-label","Show links for the issue "+b.issueId);B(3);Ke(b.issueId);B(6);D("htmlFor",f.id);B(2);oe("value",b.issueId);B(5);D("htmlFor",h.id);B(2);oe("value",b.getIssueUrl());B(5);D("htmlFor",k.id);B(2);oe("value",b.getUrlAndTitle());B(4);D("ngIf",b.isSessionInternal());B(1);D("ngIf",b.isSessionInternal())}},dependencies:[ux,dJ,rB,XE,lF,HP,IP],styles:[".container[_ngcontent-%COMP%]{display:inline-block}button.id-expand[_ngcontent-%COMP%]{font-size:.6875rem;line-height:13px;color:#5f6368;color:var(--text-muted);font-weight:normal;padding-left:3px;background-color:#fff;background-color:var(--background);border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;margin:3px;cursor:pointer;height:15px;user-select:none}button.id-expand[_ngcontent-%COMP%]:hover, button.id-expand[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:2px;margin-top:-2px;transition:250ms transform}button.id-expand.expanded[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{transform:rotate(-180deg)}.classic-picker[_nghost-%COMP%]{margin-left:6px;margin-right:6px}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;color:inherit;vertical-align:middle;height:inherit;margin:0}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   .id-text[_ngcontent-%COMP%], .classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:.8125rem;vertical-align:middle}.classic-picker[_nghost-%COMP%]   button.id-expand[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin:0}  .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;width:475px}  .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:5px;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 .value:focus{background-color:rgba(0,0,0,.12);background-color:var(--focus-bg)}  .onedev-popup-panel .issue-id-picker-popup .id-details-row button.copy{cursor:pointer;color:#1a73e8;color:var(--link)}"],
changeDetection:0});
var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=Cc({type:E$});E$.\u0275inj=mc({imports:[Mx,eJ,uG,pF,mH,$P]});
var F$=function(a,b){this.appEvents=b;this.hasAclToComment=this.hasAclToEdit=!1;this.issueStatusQuickAction=void 0;this.upvoted=this.isDuplicate=this.statusIsSaving=!1;this.voteCount=0;this.onVote=new Jw;this.quickAction=new Jw;this.markAsDuplicate=new Jw;this.clearCanonical=new Jw;this.frontendIsInternalOrPartner=!1;this.frontendIsInternalOrPartner=a.isInternalSession()||zH(a)};F$.\u0275fac=function(a){return new (a||F$)(C(yH),C(BK))};
F$.\u0275cmp=w({type:F$,selectors:[["edit-issue-controls"]],inputs:{issueId:"issueId",hasAclToEdit:"hasAclToEdit",hasAclToComment:"hasAclToComment",issueStatusQuickAction:"issueStatusQuickAction",statusIsSaving:"statusIsSaving",isDuplicate:"isDuplicate",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote",quickAction:"quickAction",markAsDuplicate:"markAsDuplicate",clearCanonical:"clearCanonical"},decls:10,vars:8,consts:[[3,"roundCorners"],["format","flat",3,"tooltip","disabled","onAction"],
["format","flat","tooltip","Focus comment box",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction",4,"ngIf"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction",4,"ngIf"],[3,"issueId","upvoted","voteCount","onVote",4,"ngIf"],["format","flat","tooltip","Mark this issue as a duplicate",3,"disabled","onAction"],["format","flat","tooltip","Mark this issue as not being a duplicate",3,"disabled","onAction"],
[3,"issueId","upvoted","voteCount","onVote"]],template:function(a,b){a&1&&(F(0,"b-button-group",0)(1,"b-button",1),J("onAction",function(){return b.quickAction.emit(b.issueStatusQuickAction)}),F(2,"span"),P(3),G()(),F(4,"b-button",2),J("onAction",function(){return b.appEvents.focusCommentBox.next("editpage-appbar")}),F(5,"span"),P(6,"Comment"),G()(),O(7,ehb,3,1,"b-button",3),O(8,fhb,3,1,"b-button",4),O(9,ghb,1,3,"b-app-vote-button",5),G());a&2&&(D("roundCorners",!0),B(1),D("tooltip",null==b.issueStatusQuickAction?
null:b.issueStatusQuickAction.description)("disabled",!b.hasAclToEdit||!b.issueStatusQuickAction||b.statusIsSaving),B(2),Ke(null==b.issueStatusQuickAction?null:b.issueStatusQuickAction.displayText),B(1),D("disabled",!b.hasAclToComment),B(3),D("ngIf",!b.isDuplicate),B(1),D("ngIf",b.isDuplicate),B(1),D("ngIf",b.frontendIsInternalOrPartner))},dependencies:[mX,pH,hO,ux],encapsulation:2});
var G$=function(a,b){yI.call(this);var c=this;this.session=a;this.dismissalService=b;this.shouldEnableEaCallout$=(0,U.iif)(function(){return c.session.isInternalSession()&&AH(c.session,"enableEaCallout")},yrc(this.dismissalService,"wtdm-ea-announcement").pipe(S(function(d){return!d})))};V(G$,yI);G$.\u0275dir=yI.\u0275dir;G$.\u0275fac=function(a){return new (a||G$)(t(yH),t(J9))};G$.\u0275prov=lc({token:G$,factory:G$.\u0275fac,providedIn:"root"});
var Vsc=["content"],H$=function(a,b,c,d,e){yI.call(this);this.appEvents=a;this.scrolledOnScreen=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.eclipsing=new Jw;this.shouldEclipse=!1;this.HOTKEYS=xI;this.IssueSavingKey=hRb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$};V(H$,yI);H$.\u0275dir=yI.\u0275dir;
H$.prototype.ngOnInit=function(){};
H$.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b=document.getElementById("bv2-issue-title-box"),c=window.getComputedStyle(b),d=function(){var e=c.width;"0px"!==e&&(a.mainDiv.nativeElement.style.width=e)};a.scrolledOnScreen.getObservable(b,!0).pipe(jg(a.destroyed$)).subscribe(function(e){e?a.shouldEclipse=!1:(d(),a.shouldEclipse=!0);a.eclipsing.emit(a.shouldEclipse)});(0,U.merge)((0,U.fromEvent)(window,"resize"),a.appEvents.sidebarWidthChanged).pipe(Rf(200),jg(a.destroyed$)).subscribe(d)})};
H$.prototype.isSaving$=function(a){var b=this;return this.issueDetailsBrain.id$.pipe(xf(cl),S(function(c){return b.editIssueService.savingState(c)}),ig(function(c){return Hs(c.propertiesBeingSaved,Mn(a))}))};H$.\u0275fac=function(a){return new (a||H$)(C(BK),C(RO),C(VR),C(XN),C(ZN))};
H$.\u0275cmp=w({type:H$,selectors:[["edit-issue-scroll-eclipse"]],viewQuery:function(a,b){a&1&&Hf(Vsc,5);if(a&2){var c;Gf(c=Jf())&&(b.mainDiv=c.first)}},inputs:{parent:"parent"},outputs:{eclipsing:"eclipsing"},features:[ie],decls:12,vars:19,consts:[["id","bv2-issue-title-box-nowrap",1,"bv2-issue-title-box-nowrap","bv2-edit-issue-scroll-header","scroll-eclipse",3,"hidden"],["content",""],[3,"starMessage","unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",
3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],[1,"bv2-issue-title"],[1,"bv2-issue-title-text"],["class","bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown.enter",4,"ngIf"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown.enter"]],template:function(a,b){a&1&&(F(0,
"div",0,1)(2,"b-star-toggle",2),J("onHotkey",function(){return b.parent.toggleStarDebounced()})("starClicked",function(){return b.parent.toggleStar()}),Q(3,"async"),G(),O(4,hhb,2,6,"b-issue-id-picker-legacy",3),H(5,"b-access-level-indicator",4),Q(6,"async"),F(7,"h3",5)(8,"span",6),P(9),G(),O(10,ihb,5,13,"span",7),Q(11,"async"),G()());a&2&&(te("scroll-eclipse-hide",!b.shouldEclipse),D("hidden",b.parent.isLoading),B(2),D("starMessage",b.parent.starTooltip)("unStarMessage",b.parent.unStarTooltip)("starred",
!(null==b.parent.userData||!b.parent.userData.starred))("hotkey",b.HOTKEYS.TOGGLE_STAR)("disabled",!!R(3,13,b.isSaving$("star"))),B(2),D("ngIf",b.shouldEclipse),B(1),D("accessLevel",R(6,15,b.accessLevel$)),B(2),oe("aria-label",b.parent.ariaIssueTitle),B(2),Je(" ",b.parent.issue.title," "),B(1),D("ngIf",R(11,17,b.hasAclToEdit$)))},dependencies:[ux,BS,lF,ZM,D$,dJ,Fx],encapsulation:2});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=Cc({type:I$});
I$.\u0275inj=mc({imports:[Mx,MS,mH,KN,E$,eJ]});
var Wsc=["editIssueTitle"],thb=function(){return[]},Rhb=function(a){return[a]},J$=function(a,b,c,d,e,f,h,k,q,u,x,E){yI.call(this);var I=this;this.wtdmEa=a;this.activeSession=b;this.editIssueService=c;this.issueDetailsBrain=d;this.issuePermissionService=e;this.paths=f;this.issueEditComponentService=h;this.commentHistoryDialogService=k;this.issueInteractionsTracking=q;this.errorHandler=u;this.eventsForIssueFridge=x;this.issueFridge=E;this.scrollEclipseShowing=!1;this.isSaving$=function(N){return I.issueDetailsBrain.id$.pipe(xf(cl),
S(function(L){return I.editIssueService.savingState(L)}),ig(function(L){return Hs(L.propertiesBeingSaved,Mn(N))}))};this.HOTKEYS=xI;this.IssueSavingKey=hRb;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.hasAclToComment$=this.issuePermissionService.hasAclToComment$;this.isCurrentUserCCd$=this.issuePermissionService.isCurrentUserCCd$;this.canDeleteIssue$=this.issuePermissionService.canDeleteIssue$;this.canUndeleteIssue$=this.issuePermissionService.canUndeleteIssue$;this.userIsComponentAdmin$=
this.issuePermissionService.userIsComponentAdmin$;this.accessLevel$=this.issuePermissionService.accessLevel$;this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.audience$=this.issuePermissionService.audience$;this.undeleteButtonTooltip$=this.canUndeleteIssue$.pipe(S(function(N){return N?"":"Only component editors can undelete this issue."}));this.modifiedTime$=this.issueDetailsBrain.modifiedTime$;this.retentionState$=this.issueDetailsBrain.retentionState$};
V(J$,yI);J$.\u0275dir=yI.\u0275dir;
var Ghb=function(a,b){var c,d;return hf(function(e){if(1==e.nextAddress){a.editIssueTitle.nativeElement.focus();c=a.parent.issueIdString;PR(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1});It(e,2,3);var f=DJb(a.issueFridge,c,[],[String(b)]);return jf(e,f,3)}if(2!=e.nextAddress)return Lt(e),a.eventsForIssueFridge.poke(c),Mt(e,0);d=Kt(e);zK(a.errorHandler,d);return e.jumpTo(3)})},dib=function(a){var b=a.issuePermissionService.accessLevel();if(!b)return!1;var c;return!(null==(c=a.parent)?
0:c.issue.isDeleted)&&"EXTERNAL_PUBLIC"===b};J$.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,e=null==(d=a.parent)?void 0:d.issueId;e&&a.commentHistoryDialogService.show(Number(e),c,null!=b?b:-1)}}))};J$.\u0275fac=function(a){return new (a||J$)(C(G$),C(yH),C(VR),C(XN),C(ZN),C(GK),C(c6),C(vS),C(OR),C(xK),C(wL),C(hL))};
J$.\u0275cmp=w({type:J$,selectors:[["edit-issue-main-content"]],viewQuery:function(a,b){a&1&&Hf(Wsc,5);if(a&2){var c;Gf(c=Jf())&&(b.editIssueTitle=c.first)}},inputs:{parent:"parent"},features:[ie],decls:1,vars:1,consts:[["class","bv2-issue-main-content",4,"ngIf"],[1,"bv2-issue-main-content"],[1,"bv2-issue-static"],["id","rel-issues-tray-blocked-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",4,"ngIf"],["id","rel-issues-tray-blocking-content",
"class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",4,"ngIf"],["id","rel-issues-tray-duplicates-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",4,"ngIf"],["id","rel-issues-tray-parents-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-parents",4,"ngIf"],["id","rel-issues-tray-children-content","class","tab bv2-related-issues-tab","role","tabpanel",
"aria-labelledby","rel-issues-tray-children",4,"ngIf"],["id","rel-issues-tray-mentions-content","class","tab bv2-related-issues-tab","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",4,"ngIf"],[3,"messageType","format",4,"ngIf"],["id","bv2-edit-issue-details-scroll","tabindex","-1","cdkScrollable","",1,"bv2-edit-issue-details-scroll",3,"bFocus"],[3,"parent","eclipsing"],[1,"bv2-issue-info"],["id","bv2-issue-title-box",1,"bv2-issue-title-box","bv2-edit-issue-scroll-header"],[3,"starMessage",
"unStarMessage","starred","hotkey","disabled","onHotkey","starClicked"],["class","classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue",4,"ngIf"],[3,"accessLevel"],["tabindex","-1",1,"bv2-issue-title"],[3,"isReady"],[1,"bv2-issue-title-text"],["class","keep-focus-ring bv2-edit-icon bv2-issue-title-widget","tabindex","0","role","button",3,"matTooltip","bv2-disabled","click","keydown",4,"ngIf"],["class","bv2-flag-button",3,"xapInlineDialog",4,"ngIf"],["removable","check-acl",3,"id",
"removeHotlist",4,"ngFor","ngForOf"],[1,"float-clear"],["class","bv2-issue-vote-count",4,"ngIf"],[1,"bv2-issue-subtext"],[1,"bv2-issue-edit-component"],["class","bv2-issue-component-path",4,"ngIf"],["class","bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed",4,"ngIf"],[1,"bv2-issue-retention-chip"],[3,"retentionState","compactMode","modifiedTime"],["class","issue-detail-actions",3,"menuItems","buttonLabel","matTooltip",
4,"ngIf"],["class","margined carded bad",4,"ngIf"],[3,"issueId","issueAccessLevel","events",4,"ngIf"],[3,"issueId","issueAccessLevel","events","showFullHistory",4,"ngIf"],["class","bv2-edit-issue-history-stream",4,"ngIf"],[4,"ngIf"],["id","rel-issues-tray-blocked-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocked",1,"tab","bv2-related-issues-tab"],["relation","blocked","relDisplayMessage","Mark this issue as blocked by:",3,"disabled","removeButtonTitle","addButtonTitle","items",
"searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-blocking-content","role","tabpanel","aria-labelledby","rel-issues-tray-blocking",1,"tab","bv2-related-issues-tab"],["relation","blocking","relDisplayMessage","Mark this issue as blocking:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","itemsChange"],["id","rel-issues-tray-duplicates-content","role","tabpanel","aria-labelledby","rel-issues-tray-duplicates",
1,"tab","bv2-related-issues-tab"],[3,"disabled","hideStatus","items"],["id","rel-issues-tray-parents-content","role","tabpanel","aria-labelledby","rel-issues-tray-parents",1,"tab","bv2-related-issues-tab"],["relation","parent","relDisplayMessage","Add parent issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","currentResourceId","componentId","itemChange"],["footer-items","",4,"ngIf"],["footer-items",""],["id","rel-issues-tray-children-content","role","tabpanel","aria-labelledby","rel-issues-tray-children",
1,"tab","bv2-related-issues-tab"],["relation","child","relDisplayMessage","Add child issue:",3,"disabled","removeButtonTitle","addButtonTitle","items","searchLink","currentResourceId","componentId","reorderable","itemChange","itemMove"],["id","rel-issues-tray-mentions-content","role","tabpanel","aria-labelledby","rel-issues-tray-mentions",1,"tab","bv2-related-issues-tab"],[1,"bv2-rel-issues-tray-mentions-footer"],["target","_blank",3,"href","click"],[3,"issueId","packageMentionSet","displayPackageName",
4,"ngFor","ngForOf"],[3,"issueId","packageMentionSet","displayPackageName"],[3,"messageType","format"],["href","http://go/wtdm-home","target","_blank"],["format","flat",3,"onAction"],["href","http://go/wtdm-ea","target","_blank"],["format","fill"],[1,"classic-picker",3,"issueId","componentId","issueTitle","isExternalIssue"],["tabindex","0","role","button",1,"keep-focus-ring","bv2-edit-icon","bv2-issue-title-widget",3,"matTooltip","click","keydown"],["editIssueTitle",""],[1,"bv2-flag-button",3,"xapInlineDialog"],
["format","icon","size","small","bAriaLabel","Flag issue as spam",3,"disabled","onAction"],["name","flag","size","small"],["spamFlagBubble",""],["target","_blank",3,"href"],["removable","check-acl",3,"id","removeHotlist"],[1,"bv2-issue-vote-count"],[1,"bv2-issue-component-path"],[3,"componentPathInfo","isArchived"],["class","bv2-edit-button","tabindex","0","role","button","aria-label","Change component",3,"matTooltip","click","keydown.enter",4,"ngIf"],["tabindex","0","role","button","aria-label",
"Change component",1,"bv2-edit-button",3,"matTooltip","click","keydown.enter"],[1,"bv2-edit-issue-component-picker",3,"selectedComponent","placeholder","isRequired","shouldFocus","selectedComponentChange","dropdownClosed"],[1,"issue-detail-actions",3,"menuItems","buttonLabel","matTooltip"],[1,"margined","carded","bad"],["format","fill",3,"tooltip","disabled","onAction"],[3,"issueId","issueAccessLevel","events"],[3,"issueId","issueAccessLevel","events","showFullHistory"],[1,"bv2-edit-issue-history-stream"],
[1,"bv2-event-content-cell"],[1,"muted","padded-s-x","margin-y"],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment"],["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","componentId","placeholder","judgementForNewContent","audience","disabled","attachmentsDisabled","onHotkey","onChange","onSubmit","onRestrict"],["commentBox",""],[1,"goog-inline-block"],["format","fill",3,"disabled","onAction"],["class","goog-inline-block vertical-centered",4,"ngIf"],["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"]],template:function(a,b){a&1&&O(0,eib,46,49,"div",0);a&2&&D("ngIf",b.parent)},dependencies:[wZ,e2,hO,jI,kI,sA,$W,DW,yx,ux,BS,aT,H$,SZ,G8,dJ,VX,BH,D$,lF,fQ,P4,LZ,yY,aN,ZM,oV,w_,qN,pN,QN,Fx],encapsulation:2});
var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=Cc({type:K$});K$.\u0275inj=mc({imports:[l2,zZ,pX,i2,lP,zM,cI,iO,TN,jO,wA,n$,FX,VW,uS,Mx,MS,bT,iV,MU,I$,H4,vG,E4,TZ,nH,c9,eJ,WX,HX,ON,dI,b$,qX,E$,o$,M4,gV,uG,pF,mH,gQ,sT,a_,Q4,MZ,tZ,XO,MN,KN,qV,v3,m$,x_,LS,PN,RN]});pca(j6,[h2,hO,jI,kI,xx,ux,FC,AE,BE,FE,tG,dJ,gX,dN,eN,hN,fN,e7,nX,k8,rB,XE,lF,rT,$Z,QO,F$,J$],[sM,tM,uM,xM,Fx]);
var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=Cc({type:L$});L$.\u0275inj=mc({imports:[Mx,mH,uG,UW,TY,nK,UB,pF,wy,xy,fF,XY]});
var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=Cc({type:M$});M$.\u0275inj=mc({imports:[iO,Mx,TY,wy,YY,dI,UW,mH,XY,gQ,p_,MN]});
var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=Cc({type:N$});N$.\u0275inj=mc({imports:[Mx,bZ,MN,uG]});
var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=Cc({type:O$});O$.\u0275inj=mc({imports:[Mx,uG,pF,r_,MN]});
var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=Cc({type:P$});P$.\u0275inj=mc({imports:[Mx,bT,RZ]});
var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=Cc({type:Q$});Q$.\u0275inj=mc({imports:[Mx,MS,wy,UW,qS,XY,dI,K5,uG,yO,pF,mH,UB,$S,MN]});
var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=Cc({type:R$});R$.\u0275inj=mc({imports:[iO,Mx,MS,bT,PS,j3,r3,w3,YX,TY,r4,wy,eQ,YY,dI,uG,yO,UB,pF,HS,qT,UW,mH,XY,gQ,e_,QI,P$,c_,MN,qV,xA,Q$,$S]});
var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=Cc({type:S$});S$.\u0275inj=mc({imports:[Mx,TY,wy,eQ,YY,uG,yO,pF,UW,mH,qT,XY,QI,$S,xA,c_,RZ]});
var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=Cc({type:T$});T$.\u0275inj=mc({imports:[Mx,uG,mH,pF]});
var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=Cc({type:U$});U$.\u0275inj=mc({providers:[{provide:y5b,useValue:{enabled:!0}}],imports:[G2,jO,Mx,Mx,wy,YY,uG,uG,pF,HS,qT,UW,mH,mH,sT,T$,zM,X8]});
var V$=function(){this.isMultiCharShortName=gib;this.getTooltip=hib};V$.\u0275fac=function(a){return new (a||V$)};
V$.\u0275cmp=w({type:V$,selectors:[["b-entity-chip"]],inputs:{entity:"entity"},decls:1,vars:1,consts:[["class","chip",3,"smallType","uncoloredMultichar","noShortName","backgroundColor","color","title",4,"ngIf"],[1,"chip",3,"title"]],template:function(a,b){a&1&&O(0,fib,2,12,"output",0);a&2&&D("ngIf",!!b.entity&&(b.entity.color||b.entity.shortName))},dependencies:[ux],styles:["[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%], .chip[_ngcontent-%COMP%]{vertical-align:middle}.chip[_ngcontent-%COMP%]{box-sizing:border-box;display:inline-block;padding:2px 2px;margin-right:4px;border-radius:2px;text-align:center;line-height:14px;min-height:18px;min-width:18px;font-weight:500}.chip.smallType[_ngcontent-%COMP%]{font-size:84.6153846154%}.chip.uncoloredMultichar[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.02);box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.chip.noShortName[_ngcontent-%COMP%]{min-height:.8125rem;min-width:.8125rem}\n/*# sourceMappingURL=entity_chip.css.map */"],changeDetection:0});
var W$=function(){var a=this;this.entityChanged=new Jw;this.broadcastEntityChanged=lC(function(b){a.entityChanged.emit(Object.assign({},b))},400)};W$.prototype.update=function(a){this.broadcastEntityChanged(a)};W$.\u0275fac=function(a){return new (a||W$)};
W$.\u0275cmp=w({type:W$,selectors:[["b-entity-decorator"]],inputs:{entity:"entity"},outputs:{entityChanged:"entityChanged"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"colorInput"],["matInput","","placeholder","Color","type","text",3,"ngModel","ngModelChange","input"],[1,"shortNameInput"],["matInput","","placeholder","Symbol","type","text","title","A few letters (or an emoji) that represent this item. Think very short, like an airport code. eg: eg: 'FR', 'TODO', or '\u2601\ufe0f'",3,"ngModel","ngModelChange",
"input"],["matInput","","placeholder","Text Color","type","text","title","If your chip background is dark, you may want to use 'white' for your text.",3,"ngModel","ngModelChange","input"]],template:function(a,b){a&1&&O(0,iib,12,3,"ng-container",0);a&2&&D("ngIf",b.entity)},dependencies:[ux,Qg,by,hy,eC,aC,gC],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    mat-form-field[_ngcontent-%COMP%] {\n      margin-right: 16px;\n    }\n    .colorInput[_ngcontent-%COMP%] {\n      width: 120px; \n    }\n    .shortNameInput[_ngcontent-%COMP%] {\n      width: 60px;\n    }"],
changeDetection:0});
var X$=function(){this.isMultiCharShortName=gib;this.getTooltip=hib};X$.\u0275fac=function(a){return new (a||X$)};
X$.\u0275cmp=w({type:X$,selectors:[["b-entity-preview"]],inputs:{entity:"entity"},decls:3,vars:3,consts:[[3,"entity"],[1,"title",3,"title"]],template:function(a,b){a&1&&(H(0,"b-entity-chip",0),F(1,"span",1),P(2),G());a&2&&(D("entity",b.entity),B(1),D("title",b.getTooltip(b.entity)),B(1),Ke(null==b.entity?null:b.entity.title))},dependencies:[V$],styles:[".title[_ngcontent-%COMP%]{vertical-align:middle}\n/*# sourceMappingURL=entity_preview.css.map */"],changeDetection:0});
var Xsc=[X$,V$,W$],Y$=function(){};[].concat(v(Xsc));[].concat(v(Xsc));Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=Cc({type:Y$});Y$.\u0275inj=mc({imports:[Mx,wy,mH,fC,hC]});
var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=Cc({type:Z$});Z$.\u0275inj=mc({imports:[Mx,nK,uG,pF]});
var Ysc=function(){};Ysc.prototype.send=function(a,b){rza(a);return this.makeRequest(a).then(function(c){return b?Aza(b,c):c})};
var Bt=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};V(Bt,Ysc);Bt.prototype.getGapi=function(){var a=this;return BAa().then(function(b){b=b||window.gapi;a.setGapiConfig(b);return GAa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
Bt.prototype.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return hf(function(d){if(1==d.nextAddress)return void 0===b.gapiAuthParams.minAuthTokenTimeRemaining?d.jumpTo(2):jf(d,FAa(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})))})})};
Bt.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)})})};Bt.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&EAa(a,b,this.gapiConfigUpdates[b])};Bt.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];
var Zsc={disableCheatSheet:!0};Zsc=void 0===Zsc?{}:Zsc;
var $sc=[$O,mS,cz,Dz,RS,XP,UX,QP,wI,dI,gQ,UN,sT,gJ,e_,KN,VN,J4,iO,lZ,sV,fI,a3,c5,Z4,MU,gV,iV,VS,pX,MZ,A$,M$,O$,N$,P5,q9,Y9,$9,v$,R$,S$,W9,bZ,r_,YX,t4,Q4,PZ,KU,$Y,JX,e5,b3,vX,E3,c3,R4,DZ,OZ,D3,BZ,GX,AO,jO,VW,ZW,I$,K$,C$,sX,cI,YZ,SN,n$,a_,v_,sZ,tZ,O4,z2,MN,lP,zZ,Y$,UU,y2,w3,Z$,r4,l2,qS,oX,MS,PP,U$,G2,SU,lS,mZ,pZ,p_,c_,nZ,TY,e3,KZ,u$,w$,q3,h_,mT,bT,eT,PS,oZ,uZ,uV,VY,x_,H4,HX,n_,u_,M4,r3,YP,cQ,XY,ZY,FX,j3,B$,kO,nO,L$,z$,uS,p$,G_,pF,eB,TE,{ngModule:nH,providers:[{provide:rF,useFactory:function(){var a,
b=(null==(a=Yi().getConfig())?void 0:a.getEnvironmentType())||"QA";return"PROD"===b||"NIGHTLY"===b?{apikey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",environment:"prod"}:{apikey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM",environment:"nonprod"}},deps:[Iv]}]},{ngModule:jS,providers:[TQ,{provide:QPb,useFactory:function(a){return new At(new QRb("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,SRb,{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[RRb]},{provide:RRb,
useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc"}}}]},{ngModule:k$,providers:[z7,{provide:Coc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:vhc,autocompleteFactory:fcc}}}]},{ngModule:YI,providers:[XI,{provide:HFb,useValue:Zsc}]}],atc=[okc,L7b,M7b,N7b,O7b,EDb,{provide:P1b,useValue:{animationDuration:"0ms"}},{provide:ewb,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},
{provide:bxb,useValue:{disableTooltipInteractivity:!0}},{provide:hkc,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:kkc,useValue:"92912"},{provide:DPb,useFactory:jib},pkc,xkc,ykc,zkc],kx=function(){};kx.prototype.ngDoBootstrap=function(){Sk("bootstrapping AppModule")};[].concat(v($sc),[t$,qO]);[].concat(v(atc));kx.\u0275fac=function(a){return new (a||kx)};kx.\u0275mod=Cc({type:kx,bootstrap:[ZO,b5]});kx.\u0275inj=mc({providers:[].concat(v(atc)),imports:[$sc,t$,qO]});
XC(document,"DOMContentLoaded",function(){lnb()});

__._ModuleManager_initialize=function(){};

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

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